UNPKG

1.4 kBTypeScriptView Raw
1import Authentication from '@bearer/types/lib/authentications';
2export declare type BearerEnv = 'dev' | 'staging' | 'production';
3export declare type BaseConfig = {
4 IntegrationServiceHost: string;
5 IntegrationServiceUrl: string;
6 BearerEnv: string;
7 DeveloperPortalAPIUrl: string;
8 DeveloperPortalUrl: string;
9 CdnHost: string;
10 LoginDomain: string;
11};
12export declare type BearerConfig = {
13 Username: string;
14 ExpiresAt: number;
15 authorization: {
16 AuthenticationResult?: {
17 IdToken: string;
18 RefreshToken: string;
19 TokenType: string;
20 ExpiresIn: number;
21 AccessToken: string;
22 };
23 };
24 open: false;
25 configs: string[];
26 config: string;
27};
28export declare type IntegrationConfig = {
29 integrationId: string;
30 integrationTitle: string;
31 open: boolean;
32 configs: string[];
33 rootPathRc: string | null;
34 config: string;
35};
36export declare type AuthConfig = {
37 authType: Authentication;
38};
39export declare type IntegrationBuildEnv = {
40 BEARER_INTEGRATION_ID: string;
41 BEARER_INTEGRATION_HOST: string;
42 BEARER_AUTHORIZATION_HOST: string;
43 CDN_HOST: string;
44};
45export declare type TAccessToken = {
46 access_token: string;
47 id_token: string;
48 refresh_token: string;
49 scope: string;
50 expires_in: number;
51 expires_at: number;
52 token_type: string;
53};