@alpic-ai/api 1.176.0 → 1.177.0

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 +18 -5
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -2,7 +2,7 @@ import { z } from "zod";
2
2
  import * as z$1 from "zod/v4";
3
3
  import { oc } from "@orpc/contract";
4
4
  import ms from "ms";
5
- //#region ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.1_supports-color@7.2.0_zod@4.5.4/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth.js
5
+ //#region ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.32.0_supports-color@7.2.0_zod@4.5.4/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth.js
6
6
  /**
7
7
  * Reusable URL validation that disallows javascript: scheme
8
8
  */
@@ -119,7 +119,12 @@ z$1.object({
119
119
  token_type: z$1.string(),
120
120
  expires_in: z$1.coerce.number().optional(),
121
121
  scope: z$1.string().optional(),
122
- refresh_token: z$1.string().optional()
122
+ refresh_token: z$1.string().optional(),
123
+ /**
124
+ * Not part of the wire format: the authorization server this value was obtained from, added by
125
+ * the client's `auth()` before it is stored and compared when it is read back.
126
+ */
127
+ issuer: z$1.string().optional().catch(void 0)
123
128
  }).strip();
124
129
  z$1.object({
125
130
  error: z$1.string(),
@@ -158,7 +163,12 @@ const OAuthClientInformationSchema = z$1.object({
158
163
  client_id: z$1.string(),
159
164
  client_secret: z$1.string().optional(),
160
165
  client_id_issued_at: z$1.number().optional(),
161
- client_secret_expires_at: z$1.number().optional()
166
+ client_secret_expires_at: z$1.number().optional(),
167
+ /**
168
+ * Not part of the wire format: the authorization server this value was obtained from, added by
169
+ * the client's `auth()` before it is stored and compared when it is read back.
170
+ */
171
+ issuer: z$1.string().optional().catch(void 0)
162
172
  }).strip();
163
173
  OAuthClientMetadataSchema.merge(OAuthClientInformationSchema);
164
174
  z$1.object({
@@ -336,7 +346,8 @@ const standaloneEnvironmentSchema = z.object({
336
346
  const protectedWithoutDiscoveryEnvironmentSchema = z.object({
337
347
  allowsAnonymous: z.literal(false),
338
348
  oAuthMetadata: z.strictObject({}),
339
- scope: z.string().optional()
349
+ scope: z.string().optional(),
350
+ wwwAuthenticate: z.string().optional()
340
351
  });
341
352
  const legacyPublicEnvironmentSchema = z.object({
342
353
  isPublic: z.literal(true),
@@ -1556,6 +1567,7 @@ const metricsQueueEventSchema = z.object({
1556
1567
  tool: z.string().nullable(),
1557
1568
  client: z.string(),
1558
1569
  sessionId: z.string().nullable(),
1570
+ conversationId: z.string().nullable().optional(),
1559
1571
  durationMs: z.number().int(),
1560
1572
  outputTokens: z.number().int().nullable(),
1561
1573
  errorType: z.enum([
@@ -1607,7 +1619,8 @@ z.object({
1607
1619
  protocol: otlpProtocolSchema,
1608
1620
  headers: z.array(telemetryDestinationHeaderSchema),
1609
1621
  status: telemetryDestinationStatusSchema,
1610
- lastFailureReason: otlpPushFailureReasonSchema.nullable()
1622
+ lastFailureReason: otlpPushFailureReasonSchema.nullable(),
1623
+ isScopedToIntentionalRequestsOnly: z.boolean()
1611
1624
  });
1612
1625
  //#endregion
1613
1626
  //#region src/auth-scope.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alpic-ai/api",
3
- "version": "1.176.0",
3
+ "version": "1.177.0",
4
4
  "description": "Contract for the Alpic API",
5
5
  "type": "module",
6
6
  "main": "./dist/index.mjs",
@@ -46,7 +46,7 @@
46
46
  "shx": "^0.4.0",
47
47
  "tsdown": "^0.23.0",
48
48
  "typescript": "^6.0.3",
49
- "vitest": "^5.0.2"
49
+ "vitest": "^5.0.3"
50
50
  },
51
51
  "scripts": {
52
52
  "build": "shx rm -rf dist && tsdown",