@alpic-ai/api 0.0.0-staging.gcf0df1f → 0.0.0-staging.gcf903cb

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.mjs +7 -42
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -276,11 +276,11 @@ const deploymentSummarySchema = z.object({
276
276
  /**
277
277
  * Public environment
278
278
  *
279
- * Answers anonymously and exposes no OAuth metadata.
279
+ * No OAuth metadata exposed.
280
280
  */
281
281
  const publicEnvironmentSchema = z.object({
282
- allowsAnonymous: z.literal(true),
283
- oAuthMetadata: z.strictObject({})
282
+ isPublic: z.literal(true),
283
+ oAuthMetadata: z.undefined().optional()
284
284
  });
285
285
  /**
286
286
  * Protected environment with an external resource metadata URL
@@ -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
- allowsAnonymous: z.boolean(),
292
+ isPublic: z.literal(false),
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
- allowsAnonymous: z.boolean(),
304
+ isPublic: z.literal(false),
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
- allowsAnonymous: z.boolean(),
318
+ isPublic: z.literal(false),
319
319
  oAuthMetadata: z.object({
320
320
  authorizationServerMetadata: z.union([OAuthMetadataSchema, OpenIdProviderDiscoveryMetadataSchema]),
321
321
  resourceMetadata: OAuthProtectedResourceMetadataSchema.optional()
@@ -330,36 +330,6 @@ const standaloneEnvironmentSchema = z.object({
330
330
  * are advertised. Clients must obtain credentials out-of-band.
331
331
  */
332
332
  const protectedWithoutDiscoveryEnvironmentSchema = z.object({
333
- allowsAnonymous: z.literal(false),
334
- oAuthMetadata: z.strictObject({}),
335
- scope: z.string().optional()
336
- });
337
- const legacyPublicEnvironmentSchema = z.object({
338
- isPublic: z.literal(true),
339
- oAuthMetadata: z.undefined().optional()
340
- });
341
- const legacyExternalResourceMetadataEnvironmentSchema = z.object({
342
- isPublic: z.literal(false),
343
- oAuthMetadata: z.object({ externalResourceMetadataUrl: z.url() }),
344
- scope: z.string().optional()
345
- });
346
- const legacyExternalAuthorizationServerEnvironmentSchema = z.object({
347
- isPublic: z.literal(false),
348
- oAuthMetadata: z.object({
349
- externalAuthorizationServerUrl: z.url(),
350
- resourceMetadata: OAuthProtectedResourceMetadataSchema.optional()
351
- }),
352
- scope: z.string().optional()
353
- });
354
- const legacyStandaloneEnvironmentSchema = z.object({
355
- isPublic: z.literal(false),
356
- oAuthMetadata: z.object({
357
- authorizationServerMetadata: z.union([OAuthMetadataSchema, OpenIdProviderDiscoveryMetadataSchema]),
358
- resourceMetadata: OAuthProtectedResourceMetadataSchema.optional()
359
- }),
360
- scope: z.string().optional()
361
- });
362
- const legacyProtectedWithoutDiscoveryEnvironmentSchema = z.object({
363
333
  isPublic: z.literal(false),
364
334
  oAuthMetadata: z.strictObject({}),
365
335
  scope: z.string().optional()
@@ -369,12 +339,7 @@ z.union([
369
339
  externalResourceMetadataEnvironmentSchema,
370
340
  externalAuthorizationServerEnvironmentSchema,
371
341
  standaloneEnvironmentSchema,
372
- protectedWithoutDiscoveryEnvironmentSchema,
373
- legacyPublicEnvironmentSchema,
374
- legacyExternalResourceMetadataEnvironmentSchema,
375
- legacyExternalAuthorizationServerEnvironmentSchema,
376
- legacyStandaloneEnvironmentSchema,
377
- legacyProtectedWithoutDiscoveryEnvironmentSchema
342
+ protectedWithoutDiscoveryEnvironmentSchema
378
343
  ]);
379
344
  const allowedPlatformSchema = platformSchema;
380
345
  const playgroundModelSchema = z.enum([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alpic-ai/api",
3
- "version": "0.0.0-staging.gcf0df1f",
3
+ "version": "0.0.0-staging.gcf903cb",
4
4
  "description": "Contract for the Alpic API",
5
5
  "type": "module",
6
6
  "main": "./dist/index.mjs",