@voltro/protocol 0.80.0 → 0.82.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.
package/dist/apikey.d.ts CHANGED
@@ -52,7 +52,7 @@ export declare interface ApiKeyRecord {
52
52
  export declare const apiKeyStrategy: (options: ApiKeyStrategyOptions) => AuthStrategy;
53
53
 
54
54
  export declare interface ApiKeyStrategyOptions {
55
- /** Token prefix gate, e.g. `'awb_'`. A bearer token without it is
55
+ /** Token prefix gate, e.g. `'acme_'`. A bearer token without it is
56
56
  * SKIPPED (another strategy may own it). Empty = match any bearer. */
57
57
  readonly prefix?: string;
58
58
  /**
@@ -107,7 +107,7 @@ declare interface AuthStrategy {
107
107
  readonly resolve: (input: AuthStrategyInput) => Promise<StrategyResolution> | StrategyResolution;
108
108
  /**
109
109
  * The bearer-token PREFIX this strategy claims, when it gates on one
110
- * (`'sk_'`, `'awb_'`). Declared so a collision is DETECTABLE.
110
+ * (`'sk_'`, `'acme_'`). Declared so a collision is DETECTABLE.
111
111
  *
112
112
  * Two strategies claiming the same prefix is not a harmless duplicate: the
113
113
  * chain is first-match-wins, so whichever runs first decides the Subject —
@@ -244,6 +244,14 @@ declare const Subject: Schema.Union<[Schema.Struct<{
244
244
  tenantId: typeof Schema.Null;
245
245
  scopes: Schema.optional<Schema.Array$<typeof Schema.String>>;
246
246
  metadata: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>;
247
+ }>, Schema.Struct<{
248
+ type: Schema.Literal<["service"]>;
249
+ id: typeof Schema.String;
250
+ /** The calling app's name, as the callee lists it in `serviceCallers`. */
251
+ service: typeof Schema.String;
252
+ tenantId: typeof Schema.Null;
253
+ scopes: Schema.optional<Schema.Array$<typeof Schema.String>>;
254
+ metadata: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>;
247
255
  }>]>;
248
256
 
249
257
  declare type Subject = typeof Subject.Type;