@pymthouse/builder-sdk 0.3.1 → 0.4.1-rc.2
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 +54 -28
- package/dist/{client-BHfjDvIe.d.ts → client-CauCfGa7.d.ts} +1 -1
- package/dist/{client-CvhJEhjV.d.cts → client-D1Xz-xlx.d.cts} +1 -1
- package/dist/config.cjs +0 -21
- package/dist/config.cjs.map +1 -1
- package/dist/config.d.cts +1 -5
- package/dist/config.d.ts +1 -5
- package/dist/config.js +1 -20
- package/dist/config.js.map +1 -1
- package/dist/device-initiate.cjs.map +1 -1
- package/dist/device-initiate.js.map +1 -1
- package/dist/device.cjs.map +1 -1
- package/dist/device.d.cts +1 -1
- package/dist/device.d.ts +1 -1
- package/dist/device.js.map +1 -1
- package/dist/env.cjs +13 -4
- package/dist/env.cjs.map +1 -1
- package/dist/env.d.cts +2 -2
- package/dist/env.d.ts +2 -2
- package/dist/env.js +13 -4
- package/dist/env.js.map +1 -1
- package/dist/index-B0ryx942.d.cts +66 -0
- package/dist/index-CvV5syf_.d.ts +66 -0
- package/dist/index.cjs +13 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +29 -5
- package/dist/index.d.ts +29 -5
- package/dist/index.js +13 -4
- package/dist/index.js.map +1 -1
- package/dist/{ingest-DoKJTWU9.d.ts → proxy-JrT6raU_.d.cts} +5 -42
- package/dist/{ingest-B3Yi8Tb1.d.cts → proxy-U32DFNuj.d.ts} +5 -42
- package/dist/signer/server.cjs +799 -895
- package/dist/signer/server.cjs.map +1 -1
- package/dist/signer/server.d.cts +11 -15
- package/dist/signer/server.d.ts +11 -15
- package/dist/signer/server.js +799 -893
- package/dist/signer/server.js.map +1 -1
- package/dist/signer/webhook/adapters/api-key.cjs +82 -0
- package/dist/signer/webhook/adapters/api-key.cjs.map +1 -0
- package/dist/signer/webhook/adapters/api-key.d.cts +18 -0
- package/dist/signer/webhook/adapters/api-key.d.ts +18 -0
- package/dist/signer/webhook/adapters/api-key.js +80 -0
- package/dist/signer/webhook/adapters/api-key.js.map +1 -0
- package/dist/signer/webhook/adapters/composite.cjs +60 -0
- package/dist/signer/webhook/adapters/composite.cjs.map +1 -0
- package/dist/signer/webhook/adapters/composite.d.cts +5 -0
- package/dist/signer/webhook/adapters/composite.d.ts +5 -0
- package/dist/signer/webhook/adapters/composite.js +58 -0
- package/dist/signer/webhook/adapters/composite.js.map +1 -0
- package/dist/signer/webhook/adapters/oauth1.cjs +18 -0
- package/dist/signer/webhook/adapters/oauth1.cjs.map +1 -0
- package/dist/signer/webhook/adapters/oauth1.d.cts +19 -0
- package/dist/signer/webhook/adapters/oauth1.d.ts +19 -0
- package/dist/signer/webhook/adapters/oauth1.js +16 -0
- package/dist/signer/webhook/adapters/oauth1.js.map +1 -0
- package/dist/signer/webhook/adapters/oidc.cjs +533 -0
- package/dist/signer/webhook/adapters/oidc.cjs.map +1 -0
- package/dist/signer/webhook/adapters/oidc.d.cts +4 -0
- package/dist/signer/webhook/adapters/oidc.d.ts +4 -0
- package/dist/signer/webhook/adapters/oidc.js +526 -0
- package/dist/signer/webhook/adapters/oidc.js.map +1 -0
- package/dist/signer/webhook/adapters/trusted-headers.cjs +110 -0
- package/dist/signer/webhook/adapters/trusted-headers.cjs.map +1 -0
- package/dist/signer/webhook/adapters/trusted-headers.d.cts +18 -0
- package/dist/signer/webhook/adapters/trusted-headers.d.ts +18 -0
- package/dist/signer/webhook/adapters/trusted-headers.js +106 -0
- package/dist/signer/webhook/adapters/trusted-headers.js.map +1 -0
- package/dist/signer/webhook.cjs +759 -0
- package/dist/signer/webhook.cjs.map +1 -0
- package/dist/signer/webhook.d.cts +26 -0
- package/dist/signer/webhook.d.ts +26 -0
- package/dist/signer/webhook.js +732 -0
- package/dist/signer/webhook.js.map +1 -0
- package/dist/tokens.d.cts +1 -1
- package/dist/tokens.d.ts +1 -1
- package/dist/{types-_R1AwEZp.d.cts → types-BORaHW_x.d.cts} +5 -5
- package/dist/{types-_R1AwEZp.d.ts → types-BORaHW_x.d.ts} +5 -5
- package/dist/verifier-B-WFDMz6.d.cts +48 -0
- package/dist/verifier-B-WFDMz6.d.ts +48 -0
- package/dist/verify.cjs.map +1 -1
- package/dist/verify.d.cts +1 -1
- package/dist/verify.d.ts +1 -1
- package/dist/verify.js.map +1 -1
- package/package.json +30 -30
- package/dist/gateway/client/index.cjs +0 -492
- package/dist/gateway/client/index.cjs.map +0 -1
- package/dist/gateway/client/index.d.cts +0 -63
- package/dist/gateway/client/index.d.ts +0 -63
- package/dist/gateway/client/index.js +0 -489
- package/dist/gateway/client/index.js.map +0 -1
- package/dist/gateway/index.cjs +0 -16
- package/dist/gateway/index.cjs.map +0 -1
- package/dist/gateway/index.d.cts +0 -52
- package/dist/gateway/index.d.ts +0 -52
- package/dist/gateway/index.js +0 -10
- package/dist/gateway/index.js.map +0 -1
- package/dist/gateway/server/index.cjs +0 -1248
- package/dist/gateway/server/index.cjs.map +0 -1
- package/dist/gateway/server/index.d.cts +0 -31
- package/dist/gateway/server/index.d.ts +0 -31
- package/dist/gateway/server/index.js +0 -1233
- package/dist/gateway/server/index.js.map +0 -1
- package/gateway/proto/lp_rpc.proto +0 -542
package/dist/signer/server.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { C as CachedSignerToken,
|
|
2
|
-
export {
|
|
3
|
-
import '../types-
|
|
1
|
+
import { C as CachedSignerToken, a as SignerTokenManagerOptions, F as ForwardDirectSignerRequestOptions, b as SignerJwtIdentity, M as MintUserSignerTokenOptions, D as DeviceExchangeHandlerConfig, c as DeviceExchangeHandlerConfigRemote, E as ExchangeDeviceTokenForSignerOptions, d as DeviceExchangeResponse, e as MintSignerTokenFromDeviceTokenOptions, f as DeviceExchangeMintResult, g as DeviceExchangeRequestBody, A as ApiKeyExchangeHandlerConfig, h as ExchangeApiKeyForSignerOptions, i as ApiKeyExchangeMintResult, j as ApiKeyExchangeRequestBody, k as DirectSignerProxyConfig } from '../proxy-U32DFNuj.js';
|
|
2
|
+
export { l as DeviceExchangeMintContext, m as DirectSignerBeforeSignContext, n as DirectSignerBeforeSignResult, o as ForwardToSignerOptions, p as ForwardToSignerResult, q as MintUserSignerTokenResponse, P as ProbeSignerHttpReachabilityOptions, r as SignerDmzGate, S as SignerUsageSnapshot, s as forwardToSigner, t as getCachedDmzBearerToken, u as normalizeSignerBaseUrl, v as parseSignerUsageSnapshot, w as pickConflictingNumberAliases, x as pickConflictingStringAliases, y as probeSignerHttpReachability, z as readSignerUpstreamBody, B as resolveSignerBaseUrl, G as stripSignerUsageFromResponse } from '../proxy-U32DFNuj.js';
|
|
3
|
+
import '../types-BORaHW_x.js';
|
|
4
4
|
|
|
5
5
|
interface SignerTokenManager {
|
|
6
|
-
getToken(externalUserId: string, options?: {
|
|
6
|
+
getToken(publicClientId: string, externalUserId: string, options?: {
|
|
7
7
|
forceRefresh?: boolean;
|
|
8
8
|
}): Promise<CachedSignerToken>;
|
|
9
|
-
invalidate(externalUserId: string): void;
|
|
10
|
-
peek(externalUserId: string): CachedSignerToken | undefined;
|
|
9
|
+
invalidate(publicClientId: string, externalUserId: string): void;
|
|
10
|
+
peek(publicClientId: string, externalUserId: string): CachedSignerToken | undefined;
|
|
11
11
|
}
|
|
12
12
|
declare function createSignerTokenManager(options: SignerTokenManagerOptions): SignerTokenManager;
|
|
13
13
|
|
|
@@ -17,7 +17,9 @@ declare function livepeerIdentityHeaders(identity: SignerJwtIdentity): Record<st
|
|
|
17
17
|
declare function forwardDirectSignerRequest(options: ForwardDirectSignerRequestOptions): Promise<Response>;
|
|
18
18
|
|
|
19
19
|
declare const SIGN_MINT_USER_TOKEN_SCOPE = "sign:mint_user_token";
|
|
20
|
+
/** @deprecated Signer JWT `aud` is the OIDC issuer URL; kept for legacy callers. */
|
|
20
21
|
declare const LIVEPEER_REMOTE_SIGNER_AUDIENCE = "livepeer-remote-signer";
|
|
22
|
+
declare function signerJwtAudience(issuerUrl: string): string;
|
|
21
23
|
declare function parseMintUserSignerTokenResponse(body: Record<string, unknown>, ttlRefreshRatio?: number): CachedSignerToken;
|
|
22
24
|
declare function mintUserSignerToken(options: MintUserSignerTokenOptions): Promise<CachedSignerToken>;
|
|
23
25
|
|
|
@@ -57,17 +59,11 @@ declare function mintSignerSessionFromApiKey(input: {
|
|
|
57
59
|
declare function exchangeApiKeyForSigner(options: ExchangeApiKeyForSignerOptions): Promise<DeviceExchangeResponse>;
|
|
58
60
|
declare function createApiKeyExchangeHandler(config: ApiKeyExchangeHandlerConfig): (request: Request) => Promise<Response>;
|
|
59
61
|
|
|
60
|
-
declare function forwardWithOptionalMetering(input: {
|
|
61
|
-
config: DirectSignerProxyConfig;
|
|
62
|
-
externalUserId: string;
|
|
63
|
-
forward: () => Promise<Response>;
|
|
64
|
-
}): Promise<Response>;
|
|
65
|
-
|
|
66
62
|
interface DirectSignerProxyHandler {
|
|
67
63
|
(request: Request): Promise<Response>;
|
|
68
|
-
getCachedUsage(externalUserId: string): CachedSignerToken | undefined;
|
|
69
|
-
invalidateToken(externalUserId: string): void;
|
|
64
|
+
getCachedUsage(publicClientId: string, externalUserId: string): CachedSignerToken | undefined;
|
|
65
|
+
invalidateToken(publicClientId: string, externalUserId: string): void;
|
|
70
66
|
}
|
|
71
67
|
declare function createDirectSignerProxyHandler(config: DirectSignerProxyConfig): DirectSignerProxyHandler;
|
|
72
68
|
|
|
73
|
-
export { ApiKeyExchangeHandlerConfig, ApiKeyExchangeMintResult, ApiKeyExchangeRequestBody, CachedSignerToken, DeviceExchangeHandlerConfig, DeviceExchangeHandlerConfigRemote, DeviceExchangeMintResult, DeviceExchangeRequestBody, DeviceExchangeResponse, DirectSignerProxyConfig, type DirectSignerProxyHandler, ExchangeApiKeyForSignerOptions, ExchangeDeviceTokenForSignerOptions, ForwardDirectSignerRequestOptions, LIVEPEER_REMOTE_SIGNER_AUDIENCE, MintSignerTokenFromDeviceTokenOptions, MintUserSignerTokenOptions, SIGN_MINT_USER_TOKEN_SCOPE, SignerJwtIdentity, type SignerTokenManager, SignerTokenManagerOptions, createApiKeyExchangeHandler, createDeviceExchangeHandler, createDirectSignerProxyHandler, createSignerTokenManager, decodeJwtPayload, exchangeApiKeyForSigner, exchangeDeviceTokenForSigner, extractSignerAccessTokenFromExchangeBody, forwardDirectSignerRequest,
|
|
69
|
+
export { ApiKeyExchangeHandlerConfig, ApiKeyExchangeMintResult, ApiKeyExchangeRequestBody, CachedSignerToken, DeviceExchangeHandlerConfig, DeviceExchangeHandlerConfigRemote, DeviceExchangeMintResult, DeviceExchangeRequestBody, DeviceExchangeResponse, DirectSignerProxyConfig, type DirectSignerProxyHandler, ExchangeApiKeyForSignerOptions, ExchangeDeviceTokenForSignerOptions, ForwardDirectSignerRequestOptions, LIVEPEER_REMOTE_SIGNER_AUDIENCE, MintSignerTokenFromDeviceTokenOptions, MintUserSignerTokenOptions, SIGN_MINT_USER_TOKEN_SCOPE, SignerJwtIdentity, type SignerTokenManager, SignerTokenManagerOptions, createApiKeyExchangeHandler, createDeviceExchangeHandler, createDirectSignerProxyHandler, createSignerTokenManager, decodeJwtPayload, exchangeApiKeyForSigner, exchangeDeviceTokenForSigner, extractSignerAccessTokenFromExchangeBody, forwardDirectSignerRequest, identityFromJwtPayload, livepeerIdentityHeaders, mintSignerSessionFromApiKey, mintSignerTokenFromDeviceToken, mintUserAccessTokenFromApiKey, mintUserSignerToken, normalizeDeviceExchangeResponse, parseApiKeyExchangeRequestBody, parseDeviceExchangeRequestBody, parseMintUserSignerTokenResponse, signerJwtAudience };
|