@oaath/server 0.1.0 → 0.3.1
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/README.md +239 -5
- package/dist/apns.d.ts +2 -2
- package/dist/apns.js +2 -2
- package/dist/{challenge-AGTmUfj2.js → challenge-DmpGSogj.js} +2 -2
- package/dist/{challenge-AGTmUfj2.js.map → challenge-DmpGSogj.js.map} +1 -1
- package/dist/inbox-B80EUVht.js +249 -0
- package/dist/inbox-B80EUVht.js.map +1 -0
- package/dist/index.d.ts +9 -255
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +631 -48
- package/dist/index.js.map +1 -1
- package/dist/interface-DHpwP0wr.d.ts +245 -0
- package/dist/interface-DHpwP0wr.d.ts.map +1 -0
- package/dist/kernel.d.ts +42 -0
- package/dist/kernel.d.ts.map +1 -0
- package/dist/kernel.js +80 -0
- package/dist/kernel.js.map +1 -0
- package/dist/kms-BWkywdJM.d.ts +18 -0
- package/dist/kms-BWkywdJM.d.ts.map +1 -0
- package/dist/native.d.ts +3 -30
- package/dist/native.js +115 -2
- package/dist/native.js.map +1 -0
- package/dist/postgres.d.ts +38 -3
- package/dist/postgres.d.ts.map +1 -1
- package/dist/postgres.js +301 -14
- package/dist/postgres.js.map +1 -1
- package/dist/projection-B7IB9irs.d.ts +228 -0
- package/dist/projection-B7IB9irs.d.ts.map +1 -0
- package/dist/{records-Bgr-9PUh.js → records-BQNDxbPg.js} +32 -8
- package/dist/records-BQNDxbPg.js.map +1 -0
- package/dist/records-BUvqmp0D.js +70 -0
- package/dist/records-BUvqmp0D.js.map +1 -0
- package/dist/service-Cf4f-9KP.js +706 -0
- package/dist/service-Cf4f-9KP.js.map +1 -0
- package/dist/service-J51bOVe6.d.ts +483 -0
- package/dist/service-J51bOVe6.d.ts.map +1 -0
- package/package.json +39 -8
- package/LICENSE +0 -201
- package/dist/authentication-HUYWk5Y2.d.ts +0 -46
- package/dist/authentication-HUYWk5Y2.d.ts.map +0 -1
- package/dist/decision-dEe9n108.d.ts +0 -53
- package/dist/decision-dEe9n108.d.ts.map +0 -1
- package/dist/interface-WwvwWs8e.d.ts +0 -114
- package/dist/interface-WwvwWs8e.d.ts.map +0 -1
- package/dist/native.d.ts.map +0 -1
- package/dist/projection-dGIkE0rI.js +0 -516
- package/dist/projection-dGIkE0rI.js.map +0 -1
- package/dist/projection-g6k_CCUK.d.ts +0 -136
- package/dist/projection-g6k_CCUK.d.ts.map +0 -1
- package/dist/records-Bgr-9PUh.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,81 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Closed relay failure codes and their stable HTTP projection.
|
|
7
|
-
*
|
|
8
|
-
* Machine decisions and wire responses use these codes only. `Error.message`
|
|
9
|
-
* exists for local diagnostics and never reaches a response body.
|
|
10
|
-
*
|
|
11
|
-
* @author taek <leekt216@gmail.com>
|
|
12
|
-
*/
|
|
13
|
-
type RelayErrorCode =
|
|
14
|
-
/** Wire input is missing, malformed, oversized, or contains unknown fields. */
|
|
15
|
-
"relay_request_invalid" |
|
|
16
|
-
/** The deployment authentication port did not authenticate the caller. */
|
|
17
|
-
"relay_unauthenticated" |
|
|
18
|
-
/** Authenticated caller may not act in the required role. */
|
|
19
|
-
"relay_forbidden" |
|
|
20
|
-
/** Route, or a record the caller is entitled to see, does not exist. */
|
|
21
|
-
"relay_not_found" |
|
|
22
|
-
/** Route exists with a different method. */
|
|
23
|
-
"relay_method_not_allowed" |
|
|
24
|
-
/** The authorization request or code is past its injected-clock expiry. */
|
|
25
|
-
"relay_expired" |
|
|
26
|
-
/** The authorization request already reached a terminal decision. */
|
|
27
|
-
"relay_already_decided" |
|
|
28
|
-
/** The one-time authorization code was already consumed. */
|
|
29
|
-
"relay_code_already_consumed" |
|
|
30
|
-
/** The one-time encrypted artifact was already claimed. */
|
|
31
|
-
"relay_artifact_already_claimed" |
|
|
32
|
-
/**
|
|
33
|
-
* Authorization code redemption failed. One code for every reason it can
|
|
34
|
-
* fail — unknown code, another client's code, wrong redirect URI, wrong PKCE
|
|
35
|
-
* verifier — so the endpoint never confirms that a guessed code was correct.
|
|
36
|
-
* A code that existed is burned.
|
|
37
|
-
*/
|
|
38
|
-
"relay_code_invalid" |
|
|
39
|
-
/** The optional deployment limiter rejected the call. */
|
|
40
|
-
"relay_rate_limited" |
|
|
41
|
-
/** A durable record could not be read as the current schema version. */
|
|
42
|
-
"relay_record_unreadable" |
|
|
43
|
-
/** The KMS port was unavailable or returned an unusable result. */
|
|
44
|
-
"relay_kms_unavailable" |
|
|
45
|
-
/** The store failed before any state change could have been committed. */
|
|
46
|
-
"relay_store_unavailable" |
|
|
47
|
-
/**
|
|
48
|
-
* The store could not prove whether a transition committed. The caller must
|
|
49
|
-
* treat the transition as neither applied nor retryable: an ambiguous commit
|
|
50
|
-
* never authorizes resubmission.
|
|
51
|
-
*/
|
|
52
|
-
"relay_state_ambiguous" |
|
|
53
|
-
/**
|
|
54
|
-
* EXPERIMENTAL PREVIEW (`@oaath/server/apns`): the constructed APNs payload
|
|
55
|
-
* exceeded Apple's 4096-byte limit, so nothing was sent.
|
|
56
|
-
*/
|
|
57
|
-
"relay_apns_payload_too_large" |
|
|
58
|
-
/**
|
|
59
|
-
* EXPERIMENTAL PREVIEW (`@oaath/server/apns`): the injected Apple credential
|
|
60
|
-
* capability is not a usable P-256 signing key, key id, team id, or topic.
|
|
61
|
-
*/
|
|
62
|
-
"relay_apns_credentials_invalid" |
|
|
63
|
-
/** A deployment-injected chain execution port failed or answered unusably. */
|
|
64
|
-
"relay_chain_unavailable" |
|
|
65
|
-
/** The Grant's capability is durably invalidated; nothing more executes here. */
|
|
66
|
-
"relay_capability_invalidated" |
|
|
67
|
-
/** An invariant the relay owns was violated. */
|
|
68
|
-
"relay_internal";
|
|
69
|
-
/**
|
|
70
|
-
* Status projection. `relay_state_ambiguous` is deliberately 500 and not 503,
|
|
71
|
-
* because 503 invites the retry that an ambiguous commit forbids.
|
|
72
|
-
*/
|
|
73
|
-
declare const RELAY_ERROR_STATUS: Readonly<Record<RelayErrorCode, number>>;
|
|
74
|
-
declare class OaathRelayError extends Error {
|
|
75
|
-
readonly code: RelayErrorCode;
|
|
76
|
-
constructor(code: RelayErrorCode, message: string);
|
|
77
|
-
}
|
|
78
|
-
//#endregion
|
|
1
|
+
import { _ as OAATH_REVOCATION_REQUEST_RECORD_VERSION, a as AuthorizationDecisionRecord, b as RelayClock, c as EncryptedArtifactRecord, d as OAATH_AUTHORIZATION_REQUEST_RECORD_VERSION, f as OAATH_ENCRYPTED_ARTIFACT_RECORD_VERSION, g as OAATH_REVOCATION_DECISION_RECORD_VERSION, h as RelayErrorCode, i as AuthorizationDecisionOutcome, l as OAATH_AUTHORIZATION_CODE_RECORD_VERSION, m as RELAY_ERROR_STATUS, n as RelayTransaction, o as AuthorizationOwnerRoute, p as OaathRelayError, r as AuthorizationCodeRecord, s as AuthorizationRequestRecord, t as RelayStore, u as OAATH_AUTHORIZATION_DECISION_RECORD_VERSION, v as RevocationDecisionRecord, y as RevocationRequestRecord } from "./interface-DHpwP0wr.js";
|
|
2
|
+
import { h as RelayCallerRole, m as RelayCaller, p as RelayAuthentication } from "./projection-B7IB9irs.js";
|
|
3
|
+
import { t as RelayKms } from "./kms-BWkywdJM.js";
|
|
4
|
+
import { $ as FetchAuthorizationRequestInput, G as DirectoryOwnerDevice, H as DirectoryAccount, J as OAATH_SERVICE_DIRECTORY_VERSION, K as DirectorySelection, Q as CreatedAuthorizationRequest, U as DirectoryApplication, W as DirectoryMembership, X as AuthorizationState, Y as ServiceDirectoryDocument, Z as CreateAuthorizationRequestInput, _ as SessionSignerIdentity, a as createMemoryServiceDirectoryStore, at as SubmittedAuthorizationDecision, b as RelayRateLimitInput, c as RelayBootstrapSelection, d as RelayPaymasterServiceConfiguration, et as RelayOwnerRouting, f as RelayPaymasterServiceProvider, g as RelaySessionSignerProvider, h as createRelayHandler, i as ServiceDirectoryStore, it as SubmitAuthorizationDecisionInput, l as RelayHandler, m as RelaySessionSignerConfiguration, n as ServiceDirectory, nt as fetchAuthorizationRequest, o as createServiceDirectory, ot as submitAuthorizationDecision, p as RelayPaymasterServiceRequest, q as DirectoryWorkspace, r as ServiceDirectorySnapshot, rt as AuthorizationDecisionCommand, s as RelayBootstrapConfiguration, t as EnrollOwnerDeviceInput, tt as createAuthorizationRequest, u as RelayHandlerOptions, v as SessionSignerSignRequest, x as RelayRateLimiter, y as createKmsSessionSignerProvider } from "./service-J51bOVe6.js";
|
|
79
5
|
//#region src/artifact/claim.d.ts
|
|
80
6
|
interface ClaimEncryptedArtifactInput {
|
|
81
7
|
readonly store: RelayStore;
|
|
@@ -98,7 +24,10 @@ declare function claimEncryptedArtifact(input: ClaimEncryptedArtifactInput): Pro
|
|
|
98
24
|
* A port that echoes plaintext is rejected: the store must never hold it.
|
|
99
25
|
*/
|
|
100
26
|
declare function sealArtifact(kms: RelayKms, plaintext: string): Promise<string>;
|
|
101
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Opens retained ciphertext for an authorized internal reader. Client release
|
|
29
|
+
* calls this only after claim commits; authority verification releases no bytes.
|
|
30
|
+
*/
|
|
102
31
|
declare function openArtifact(kms: RelayKms, ciphertextRef: string): Promise<string>;
|
|
103
32
|
//#endregion
|
|
104
33
|
//#region src/authorization/challenge.d.ts
|
|
@@ -127,44 +56,6 @@ interface ConsumedAuthorizationCode {
|
|
|
127
56
|
}
|
|
128
57
|
declare function consumeAuthorizationCode(input: ConsumeAuthorizationCodeInput): Promise<ConsumedAuthorizationCode>;
|
|
129
58
|
//#endregion
|
|
130
|
-
//#region src/authorization/request.d.ts
|
|
131
|
-
interface CreateAuthorizationRequestInput {
|
|
132
|
-
readonly store: RelayStore;
|
|
133
|
-
readonly clock: RelayClock;
|
|
134
|
-
/** Authenticated `client` caller; it owns `clientId` and `subject`. */
|
|
135
|
-
readonly caller: RelayCaller;
|
|
136
|
-
readonly redirectUri: string;
|
|
137
|
-
readonly codeChallenge: string;
|
|
138
|
-
readonly requestedScope: string;
|
|
139
|
-
readonly requestTtlMs: number;
|
|
140
|
-
}
|
|
141
|
-
interface CreatedAuthorizationRequest {
|
|
142
|
-
readonly requestId: string;
|
|
143
|
-
readonly expiresAt: number;
|
|
144
|
-
}
|
|
145
|
-
interface AuthorizationState {
|
|
146
|
-
readonly requestId: string;
|
|
147
|
-
readonly clientId: string;
|
|
148
|
-
readonly redirectUri: string;
|
|
149
|
-
readonly requestedScope: string;
|
|
150
|
-
readonly expiresAt: number;
|
|
151
|
-
readonly expired: boolean;
|
|
152
|
-
readonly decision: Readonly<{
|
|
153
|
-
outcome: AuthorizationDecisionOutcome;
|
|
154
|
-
decidedAt: number;
|
|
155
|
-
}> | null;
|
|
156
|
-
}
|
|
157
|
-
declare function createAuthorizationRequest(input: CreateAuthorizationRequestInput): Promise<CreatedAuthorizationRequest>;
|
|
158
|
-
interface FetchAuthorizationRequestInput {
|
|
159
|
-
readonly store: RelayStore;
|
|
160
|
-
readonly clock: RelayClock;
|
|
161
|
-
/** Authenticated `owner` caller; only the bound subject may read the request. */
|
|
162
|
-
readonly caller: RelayCaller;
|
|
163
|
-
readonly requestId: string;
|
|
164
|
-
}
|
|
165
|
-
/** Read for the approving owner. */
|
|
166
|
-
declare function fetchAuthorizationRequest(input: FetchAuthorizationRequestInput): Promise<AuthorizationState>;
|
|
167
|
-
//#endregion
|
|
168
59
|
//#region src/authorization/resume.d.ts
|
|
169
60
|
interface ResumeAuthorizationInput {
|
|
170
61
|
readonly store: RelayStore;
|
|
@@ -175,143 +66,6 @@ interface ResumeAuthorizationInput {
|
|
|
175
66
|
}
|
|
176
67
|
declare function resumeAuthorization(input: ResumeAuthorizationInput): Promise<AuthorizationState>;
|
|
177
68
|
//#endregion
|
|
178
|
-
//#region src/security/rate-limit.d.ts
|
|
179
|
-
/**
|
|
180
|
-
* Optional deployment-owned limiter port.
|
|
181
|
-
*
|
|
182
|
-
* There is no default limiter: an unset port means no limiting, and the relay
|
|
183
|
-
* never invents a policy the deployment did not choose. A limiter that fails is
|
|
184
|
-
* treated as `limited`, because an unreadable limiter is not permission.
|
|
185
|
-
*
|
|
186
|
-
* @author taek <leekt216@gmail.com>
|
|
187
|
-
*/
|
|
188
|
-
interface RelayRateLimitInput {
|
|
189
|
-
/** Stable route name, never a credential-bearing URL. */
|
|
190
|
-
readonly route: string;
|
|
191
|
-
readonly clientId: string | null;
|
|
192
|
-
}
|
|
193
|
-
interface RelayRateLimiter {
|
|
194
|
-
/** Resolves to `"allowed"` or `"limited"`. Anything else is `limited`. */
|
|
195
|
-
check(input: RelayRateLimitInput): Promise<unknown>;
|
|
196
|
-
}
|
|
197
|
-
//#endregion
|
|
198
|
-
//#region src/session-signer/kms-provider.d.ts
|
|
199
|
-
interface SessionSignerIdentity {
|
|
200
|
-
readonly clientId: string;
|
|
201
|
-
readonly subject: string;
|
|
202
|
-
readonly deviceId: string;
|
|
203
|
-
}
|
|
204
|
-
interface SessionSignerSignRequest extends SessionSignerIdentity {
|
|
205
|
-
/** The exact 32-byte hash to sign; never a message to interpret. */
|
|
206
|
-
readonly hash: `0x${string}`;
|
|
207
|
-
}
|
|
208
|
-
interface RelaySessionSignerProvider {
|
|
209
|
-
/**
|
|
210
|
-
* The operator credential for one authenticated identity, creating the key
|
|
211
|
-
* on first use. Idempotent: the same identity always answers the same
|
|
212
|
-
* credential.
|
|
213
|
-
*/
|
|
214
|
-
readonly credential: (request: Readonly<SessionSignerIdentity>) => Promise<unknown>;
|
|
215
|
-
/** One ECDSA signature over one exact hash, under that identity's key. */
|
|
216
|
-
readonly sign: (request: Readonly<SessionSignerSignRequest>) => Promise<unknown>;
|
|
217
|
-
}
|
|
218
|
-
declare function createKmsSessionSignerProvider(input: {
|
|
219
|
-
readonly kms: RelayKms;
|
|
220
|
-
}): RelaySessionSignerProvider;
|
|
221
|
-
//#endregion
|
|
222
|
-
//#region src/relay/handler.d.ts
|
|
223
|
-
/**
|
|
224
|
-
* One deployment-injected chain execution surface the relay serves to clients.
|
|
225
|
-
* Each port takes exactly one captured request value and answers with the
|
|
226
|
-
* evidence it owns; the relay never interprets the payload beyond exact wire
|
|
227
|
-
* hygiene, so port meaning stays with its SDK owner.
|
|
228
|
-
*/
|
|
229
|
-
interface RelayChainPort {
|
|
230
|
-
readonly chainId: number;
|
|
231
|
-
readonly reads: (request: unknown) => Promise<unknown>;
|
|
232
|
-
readonly observation: (request: unknown) => Promise<unknown>;
|
|
233
|
-
readonly bundler: (request: unknown) => Promise<unknown>;
|
|
234
|
-
readonly quote: (request: unknown) => Promise<unknown>;
|
|
235
|
-
/** Opens, sends, and settles one submission in one call; never retried here. */
|
|
236
|
-
readonly submission: (request: unknown) => Promise<unknown>;
|
|
237
|
-
/** Finalized per-grant usage evidence, or null when this chain serves none. */
|
|
238
|
-
readonly usage: ((request: unknown) => Promise<unknown>) | null;
|
|
239
|
-
readonly feePayer: Readonly<{
|
|
240
|
-
address: `0x${string}`;
|
|
241
|
-
balance: string;
|
|
242
|
-
}> | null;
|
|
243
|
-
/** Authenticated commitment to one exact ERC-7902 static paymaster, or null. */
|
|
244
|
-
readonly staticPaymasterConfigurationHash: `0x${string}` | null;
|
|
245
|
-
}
|
|
246
|
-
/** The identity facts `GET /bootstrap` serves; chains derive from `chains`. */
|
|
247
|
-
interface RelayBootstrapConfiguration {
|
|
248
|
-
readonly application: unknown;
|
|
249
|
-
readonly userHandle: string;
|
|
250
|
-
readonly account: unknown;
|
|
251
|
-
readonly ownerValidator: `0x${string}` | null;
|
|
252
|
-
}
|
|
253
|
-
/**
|
|
254
|
-
* Remote session-key custody, declared once for the deployment: the mode and
|
|
255
|
-
* provider identity are served through the bootstrap document, and the same
|
|
256
|
-
* provider answers the `/session-signers` routes. For `oaath_hosted` the
|
|
257
|
-
* provider is typically `createKmsSessionSignerProvider`; for
|
|
258
|
-
* `application_backend` it is the deployment's own authenticated port to the
|
|
259
|
-
* integrating application's signer — never a client-supplied endpoint.
|
|
260
|
-
*/
|
|
261
|
-
interface RelaySessionSignerConfiguration {
|
|
262
|
-
readonly mode: "application_backend" | "oaath_hosted";
|
|
263
|
-
readonly providerId: string;
|
|
264
|
-
readonly provider: Readonly<RelaySessionSignerProvider>;
|
|
265
|
-
}
|
|
266
|
-
/** Authenticated identity and one opaque ERC-7677 params tuple. */
|
|
267
|
-
interface RelayPaymasterServiceRequest {
|
|
268
|
-
readonly caller: Readonly<{
|
|
269
|
-
clientId: string;
|
|
270
|
-
subject: string;
|
|
271
|
-
}>;
|
|
272
|
-
readonly params: unknown;
|
|
273
|
-
readonly signal: AbortSignal;
|
|
274
|
-
}
|
|
275
|
-
/**
|
|
276
|
-
* One deployment-owned paymaster provider. The relay exposes only these two
|
|
277
|
-
* closed ERC-7677 operations and invokes the selected method once.
|
|
278
|
-
*/
|
|
279
|
-
interface RelayPaymasterServiceProvider {
|
|
280
|
-
readonly getPaymasterStubData: (request: Readonly<RelayPaymasterServiceRequest>) => Promise<unknown>;
|
|
281
|
-
readonly getPaymasterData: (request: Readonly<RelayPaymasterServiceRequest>) => Promise<unknown>;
|
|
282
|
-
}
|
|
283
|
-
interface RelayPaymasterServiceConfiguration {
|
|
284
|
-
readonly chainId: number;
|
|
285
|
-
readonly providerId: string;
|
|
286
|
-
/** Hard response deadline; the provider also receives its abort signal. */
|
|
287
|
-
readonly requestTimeoutMs: number;
|
|
288
|
-
readonly provider: Readonly<RelayPaymasterServiceProvider>;
|
|
289
|
-
}
|
|
290
|
-
interface RelayHandlerOptions {
|
|
291
|
-
readonly store: RelayStore;
|
|
292
|
-
readonly authentication: RelayAuthentication;
|
|
293
|
-
readonly kms: RelayKms;
|
|
294
|
-
readonly clock: RelayClock;
|
|
295
|
-
/** Optional. There is no default limiter. */
|
|
296
|
-
readonly rateLimit?: RelayRateLimiter;
|
|
297
|
-
readonly requestTtlMs?: number;
|
|
298
|
-
readonly codeTtlMs?: number;
|
|
299
|
-
readonly maxBodyBytes?: number;
|
|
300
|
-
/** Optional URL-only bootstrap surface; requires `chains` as well. */
|
|
301
|
-
readonly bootstrap?: Readonly<RelayBootstrapConfiguration>;
|
|
302
|
-
/** Optional chain execution relays; required when `bootstrap` is served. */
|
|
303
|
-
readonly chains?: readonly Readonly<RelayChainPort>[];
|
|
304
|
-
/** Optional remote session-key custody; requires `bootstrap` as well. */
|
|
305
|
-
readonly sessionSigner?: Readonly<RelaySessionSignerConfiguration>;
|
|
306
|
-
/**
|
|
307
|
-
* Optional deployment-owned paymaster services, at most one per chain.
|
|
308
|
-
* Configuration requires both bootstrap and a deployment rate limiter.
|
|
309
|
-
*/
|
|
310
|
-
readonly paymasterServices?: readonly Readonly<RelayPaymasterServiceConfiguration>[];
|
|
311
|
-
}
|
|
312
|
-
type RelayHandler = (request: Request) => Promise<Response>;
|
|
313
|
-
declare function createRelayHandler(options: RelayHandlerOptions): RelayHandler;
|
|
314
|
-
//#endregion
|
|
315
69
|
//#region src/security/redact.d.ts
|
|
316
70
|
/**
|
|
317
71
|
* Bounded credential and URL redaction for diagnostics only.
|
|
@@ -331,5 +85,5 @@ declare function redactForLog(value: unknown): unknown;
|
|
|
331
85
|
//#region src/store/memory.d.ts
|
|
332
86
|
declare function createMemoryRelayStore(): RelayStore;
|
|
333
87
|
//#endregion
|
|
334
|
-
export { type AuthorizationCodeRecord, type AuthorizationDecisionCommand, type AuthorizationDecisionOutcome, type AuthorizationDecisionRecord, type AuthorizationRequestRecord, type AuthorizationState, type ClaimEncryptedArtifactInput, type ClaimedEncryptedArtifact, type ConsumeAuthorizationCodeInput, type ConsumedAuthorizationCode, type CreateAuthorizationRequestInput, type CreatedAuthorizationRequest, type EncryptedArtifactRecord, type FetchAuthorizationRequestInput, OAATH_AUTHORIZATION_CODE_RECORD_VERSION, OAATH_AUTHORIZATION_DECISION_RECORD_VERSION, OAATH_AUTHORIZATION_REQUEST_RECORD_VERSION, OAATH_ENCRYPTED_ARTIFACT_RECORD_VERSION, OaathRelayError, REDACTED, RELAY_ERROR_STATUS, type RelayAuthentication, type RelayCaller, type RelayCallerRole, type RelayClock, type RelayErrorCode, type RelayHandler, type RelayHandlerOptions, type RelayKms, type RelayPaymasterServiceConfiguration, type RelayPaymasterServiceProvider, type RelayPaymasterServiceRequest, type RelayRateLimitInput, type RelayRateLimiter, type RelaySessionSignerConfiguration, type RelaySessionSignerProvider, type RelayStore, type RelayTransaction, type ResumeAuthorizationInput, type SessionSignerIdentity, type SessionSignerSignRequest, type SubmitAuthorizationDecisionInput, type SubmittedAuthorizationDecision, claimEncryptedArtifact, consumeAuthorizationCode, createAuthorizationRequest, createKmsSessionSignerProvider, createMemoryRelayStore, createRelayHandler, fetchAuthorizationRequest, isCodeChallengeS256, openArtifact, redactForLog, redactUrl, resumeAuthorization, sealArtifact, submitAuthorizationDecision, verifyPkceS256 };
|
|
88
|
+
export { type AuthorizationCodeRecord, type AuthorizationDecisionCommand, type AuthorizationDecisionOutcome, type AuthorizationDecisionRecord, type AuthorizationOwnerRoute, type AuthorizationRequestRecord, type AuthorizationState, type ClaimEncryptedArtifactInput, type ClaimedEncryptedArtifact, type ConsumeAuthorizationCodeInput, type ConsumedAuthorizationCode, type CreateAuthorizationRequestInput, type CreatedAuthorizationRequest, type DirectoryAccount, type DirectoryApplication, type DirectoryMembership, type DirectoryOwnerDevice, type DirectorySelection, type DirectoryWorkspace, type EncryptedArtifactRecord, type EnrollOwnerDeviceInput, type FetchAuthorizationRequestInput, OAATH_AUTHORIZATION_CODE_RECORD_VERSION, OAATH_AUTHORIZATION_DECISION_RECORD_VERSION, OAATH_AUTHORIZATION_REQUEST_RECORD_VERSION, OAATH_ENCRYPTED_ARTIFACT_RECORD_VERSION, OAATH_REVOCATION_DECISION_RECORD_VERSION, OAATH_REVOCATION_REQUEST_RECORD_VERSION, OAATH_SERVICE_DIRECTORY_VERSION, OaathRelayError, REDACTED, RELAY_ERROR_STATUS, type RelayAuthentication, type RelayBootstrapConfiguration, type RelayBootstrapSelection, type RelayCaller, type RelayCallerRole, type RelayClock, type RelayErrorCode, type RelayHandler, type RelayHandlerOptions, type RelayKms, type RelayOwnerRouting, type RelayPaymasterServiceConfiguration, type RelayPaymasterServiceProvider, type RelayPaymasterServiceRequest, type RelayRateLimitInput, type RelayRateLimiter, type RelaySessionSignerConfiguration, type RelaySessionSignerProvider, type RelayStore, type RelayTransaction, type ResumeAuthorizationInput, type RevocationDecisionRecord, type RevocationRequestRecord, type ServiceDirectory, type ServiceDirectoryDocument, type ServiceDirectorySnapshot, type ServiceDirectoryStore, type SessionSignerIdentity, type SessionSignerSignRequest, type SubmitAuthorizationDecisionInput, type SubmittedAuthorizationDecision, claimEncryptedArtifact, consumeAuthorizationCode, createAuthorizationRequest, createKmsSessionSignerProvider, createMemoryRelayStore, createMemoryServiceDirectoryStore, createRelayHandler, createServiceDirectory, fetchAuthorizationRequest, isCodeChallengeS256, openArtifact, redactForLog, redactUrl, resumeAuthorization, sealArtifact, submitAuthorizationDecision, verifyPkceS256 };
|
|
335
89
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/artifact/claim.ts","../src/artifact/encrypt.ts","../src/authorization/challenge.ts","../src/authorization/code.ts","../src/authorization/resume.ts","../src/security/redact.ts","../src/store/memory.ts"],"mappings":";;;;;UAwBiB;WACN,OAAO;WACP,OAAO;WACP,KAAK;;WAEL,QAAQ;;WAER;;UAGM;WACN;WACA;;iBAGW,uBACpB,OAAO,8BACN,QAAQ;;;;;;;iBCzBW,aAAa,KAAK,UAAU,oBAAoB;;;;;iBAuBhD,aAAa,KAAK,UAAU,wBAAwB;;;;;;;iBCapD,eACpB,sBACA,8BACC;;iBAMa,oBAAoB;;;UChCnB;WACN,OAAO;WACP,OAAO;;WAEP,QAAQ;WACR;WACA;WACA;;UAGM;WACN;;WAEA;;iBAOW,yBACpB,OAAO,gCACN,QAAQ;;;UCnCM;WACN,OAAO;WACP,OAAO;;WAEP,QAAQ;WACR;;iBAGK,oBAAoB,OAAO,2BAA2B,QAAQ;;;;;;;;;;;;cCdjE;;iBAiDG,UAAU;;iBA+DV,aAAa;;;iBC7Bb,0BAA0B"}
|