@fanvue/builder-sdk 0.3.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/README.md +427 -0
- package/dist/core/index.d.ts +2 -0
- package/dist/core/index.js +2 -0
- package/dist/core-CvVOMyqr.js +5826 -0
- package/dist/core-CvVOMyqr.js.map +1 -0
- package/dist/index-CweVyIKX.d.ts +48 -0
- package/dist/index-CweVyIKX.d.ts.map +1 -0
- package/dist/index-pS9wR5yg.d.ts +2776 -0
- package/dist/index-pS9wR5yg.d.ts.map +1 -0
- package/dist/nextjs/embedded-app/index.d.ts +105 -0
- package/dist/nextjs/embedded-app/index.d.ts.map +1 -0
- package/dist/nextjs/embedded-app/index.js +162 -0
- package/dist/nextjs/embedded-app/index.js.map +1 -0
- package/dist/nextjs/off-platform/index.d.ts +74 -0
- package/dist/nextjs/off-platform/index.d.ts.map +1 -0
- package/dist/nextjs/off-platform/index.js +257 -0
- package/dist/nextjs/off-platform/index.js.map +1 -0
- package/dist/nextjs-CESI_EiU.js +80 -0
- package/dist/nextjs-CESI_EiU.js.map +1 -0
- package/dist/react/index.d.ts +96 -0
- package/dist/react/index.d.ts.map +1 -0
- package/dist/react/index.js +192 -0
- package/dist/react/index.js.map +1 -0
- package/package.json +94 -0
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { C as OAuthConfig } from "./index-pS9wR5yg.js";
|
|
2
|
+
|
|
3
|
+
//#region src/nextjs/index.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* User-facing configuration options for Fanvue OAuth.
|
|
6
|
+
*
|
|
7
|
+
* All fields are optional — when omitted, values are read from the
|
|
8
|
+
* corresponding environment variables at runtime. This type uses optional
|
|
9
|
+
* properties (`?`) rather than nullable fields because every value has an
|
|
10
|
+
* env-var fallback, so `undefined` genuinely means "use the default."
|
|
11
|
+
*/
|
|
12
|
+
type FanvueAuthOptions = {
|
|
13
|
+
clientId?: string;
|
|
14
|
+
clientSecret?: string;
|
|
15
|
+
redirectUri?: string;
|
|
16
|
+
issuerUrl?: string;
|
|
17
|
+
apiBaseUrl?: string;
|
|
18
|
+
scopes?: string;
|
|
19
|
+
sessionSecret?: string;
|
|
20
|
+
sessionCookieName?: string;
|
|
21
|
+
responseMode?: string;
|
|
22
|
+
prompt?: string;
|
|
23
|
+
baseUrl?: string;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Fully-resolved configuration produced by {@link createConfig}.
|
|
27
|
+
*
|
|
28
|
+
* Extends the core {@link OAuthConfig} with session-specific settings that
|
|
29
|
+
* are guaranteed to be present.
|
|
30
|
+
*/
|
|
31
|
+
type ResolvedConfig = OAuthConfig & {
|
|
32
|
+
sessionSecret: string;
|
|
33
|
+
sessionCookieName: string;
|
|
34
|
+
baseUrl: string | null;
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* Resolves a complete {@link ResolvedConfig} from the supplied options,
|
|
38
|
+
* falling back to environment variables for any values not provided.
|
|
39
|
+
*
|
|
40
|
+
* @param opts - Optional overrides for the OAuth and session configuration.
|
|
41
|
+
* @returns A fully-resolved configuration object.
|
|
42
|
+
* @throws If any required value (`clientId`, `clientSecret`, `redirectUri`,
|
|
43
|
+
* `sessionSecret`) is missing from both `opts` and the environment.
|
|
44
|
+
*/
|
|
45
|
+
declare function createConfig(opts?: FanvueAuthOptions): ResolvedConfig;
|
|
46
|
+
//#endregion
|
|
47
|
+
export { ResolvedConfig as n, createConfig as r, FanvueAuthOptions as t };
|
|
48
|
+
//# sourceMappingURL=index-CweVyIKX.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-CweVyIKX.d.ts","names":[],"sources":["../src/nextjs/index.ts"],"mappings":";;;;;AAcA;;;;;;KAAY,iBAAA;EACV,QAAA;EACA,YAAA;EACA,WAAA;EACA,SAAA;EACA,UAAA;EACA,MAAA;EACA,aAAA;EACA,iBAAA;EACA,YAAA;EACA,MAAA;EACA,OAAA;AAAA;;;;;;;KASU,cAAA,GAAiB,WAAA;EAC3B,aAAA;EACA,iBAAA;EACA,OAAA;AAAA;;;;;;;;;;iBAYc,YAAA,CAAa,IAAA,GAAO,iBAAA,GAAoB,cAAA"}
|