@voltro/protocol 0.81.0 → 0.83.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/CHANGELOG.md +1806 -6
- package/dist/apikey.d.ts +2 -2
- package/dist/index.d.ts +613 -69
- package/dist/index.js +881 -644
- package/dist/inspect.d.ts +85 -1
- package/dist/inspect.js +106 -61
- package/dist/jwt.d.ts +1 -1
- package/dist/rest.d.ts +40 -3
- package/dist/rest.js +191 -159
- package/dist/{restFormat-CzdGVkuB.js → restFormat-EZ8k9ZcQ.js} +38 -33
- package/dist/{scopes-CvU5QBQ4.js → scopes-Di756ENh.js} +126 -106
- package/dist/session.d.ts +11 -0
- package/dist/session.js +53 -52
- package/dist/sessionHeader-DriTZhmv.js +7 -0
- package/package.json +3 -3
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. `'
|
|
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_'`, `'
|
|
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 —
|