@liff/consts 2.27.0 → 2.27.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/lib/index.d.ts +55 -55
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
type ElementType<T extends ReadonlyArray<unknown>> = T extends ReadonlyArray<infer ElementType> ? ElementType : never;
|
|
2
|
-
export declare const UNKNOWN = "UNKNOWN";
|
|
3
|
-
export declare const UNAUTHORIZED = "UNAUTHORIZED";
|
|
4
|
-
export declare const INVALID_ARGUMENT = "INVALID_ARGUMENT";
|
|
5
|
-
export declare const INIT_FAILED = "INIT_FAILED";
|
|
6
|
-
export declare const FORBIDDEN = "FORBIDDEN";
|
|
7
|
-
export declare const INVALID_CONFIG = "INVALID_CONFIG";
|
|
8
|
-
export declare const INVALID_ID_TOKEN = "INVALID_ID_TOKEN";
|
|
9
|
-
export declare const TIMEOUT = "TIMEOUT";
|
|
10
|
-
export declare const CREATE_SUBWINDOW_FAILED = "CREATE_SUBWINDOW_FAILED";
|
|
11
|
-
export declare const EXCEPTION_IN_SUBWINDOW = "EXCEPTION_IN_SUBWINDOW";
|
|
12
|
-
export declare const LIFF_EVENT = "liffEvent";
|
|
13
|
-
export declare const STORE_KEY = "LIFF_STORE";
|
|
14
|
-
export declare const PERMANENT_LINK_ORIGIN: string;
|
|
15
|
-
export declare const PERMANENT_LINK_ORIGIN_MINI: string;
|
|
16
|
-
export declare const STORE_OBJECT: {
|
|
17
|
-
readonly ACCESS_TOKEN: "accessToken";
|
|
18
|
-
readonly ID_TOKEN: "IDToken";
|
|
19
|
-
readonly DECODED_ID_TOKEN: "decodedIDToken";
|
|
20
|
-
readonly FEATURE_TOKEN: "featureToken";
|
|
21
|
-
readonly LOGIN_TMP: "loginTmp";
|
|
22
|
-
readonly CONFIG: "config";
|
|
23
|
-
readonly CONTEXT: "context";
|
|
24
|
-
readonly EXPIRES: "expires";
|
|
25
|
-
readonly RAW_CONTEXT: "rawContext";
|
|
26
|
-
readonly CLIENT_ID: "clientId";
|
|
27
|
-
readonly IS_SUBSEQUENT_LIFF_APP: "isSubsequentLiffApp";
|
|
28
|
-
readonly MST_CHALLENGE: "mstChallenge";
|
|
29
|
-
readonly MSIT: "msit";
|
|
30
|
-
readonly MST: "mst";
|
|
31
|
-
readonly MST_VERIFIER: "mstVerifier";
|
|
32
|
-
readonly APP_DATA: "appData";
|
|
33
|
-
};
|
|
34
|
-
export declare const STORE_SUBKEY_IS_IN_CLIENT = "isInClient";
|
|
35
|
-
export declare const CREDENTIAL_KEYS: readonly ["context_token", "feature_token", "access_token", "id_token", "client_id", "mst_verifier", "mst_challenge", "msit"];
|
|
36
|
-
export type CREDENTIAL_OBJECTS = {
|
|
37
|
-
[key in ElementType<typeof CREDENTIAL_KEYS>]: string | null;
|
|
38
|
-
};
|
|
39
|
-
export declare const MAX_NUM_OF_SEND_MESSAGES = 5;
|
|
40
|
-
export declare const UTS_REFERRER_QUERY: string[];
|
|
41
|
-
export declare const SUB_WINDOW_MODAL_SCHEME_URL = "liff://subwindow";
|
|
42
|
-
export declare const SUB_WINDOW_STATUS: {
|
|
43
|
-
readonly INIT: "init";
|
|
44
|
-
readonly SUBMIT: "submit";
|
|
45
|
-
readonly CANCEL: "cancel";
|
|
46
|
-
readonly CLOSE: "close";
|
|
47
|
-
readonly ERROR: "error";
|
|
48
|
-
};
|
|
49
|
-
export declare const SUB_WINDOW_MONITOR_CLOSE_INTERVAL = 100;
|
|
50
|
-
export declare const SUB_WINDOW_HEALTH_CHECK_INTERVAL = 100;
|
|
51
|
-
export declare const SUB_WINDOW_IDNTIFICATION_KEY = "liff.subwindow";
|
|
52
|
-
export declare const SUB_WINDOW_HEALTH_CHECK_MESSAGE = "healthCheck";
|
|
53
|
-
export declare const SUB_WINDOW_GET_APP_DATA_MESSAGE = "getAppData";
|
|
54
|
-
export declare const PERMISSION_NAMES: readonly ["profile", "chat_message.write", "openid", "email"];
|
|
55
|
-
export {};
|
|
1
|
+
type ElementType<T extends ReadonlyArray<unknown>> = T extends ReadonlyArray<infer ElementType> ? ElementType : never;
|
|
2
|
+
export declare const UNKNOWN = "UNKNOWN";
|
|
3
|
+
export declare const UNAUTHORIZED = "UNAUTHORIZED";
|
|
4
|
+
export declare const INVALID_ARGUMENT = "INVALID_ARGUMENT";
|
|
5
|
+
export declare const INIT_FAILED = "INIT_FAILED";
|
|
6
|
+
export declare const FORBIDDEN = "FORBIDDEN";
|
|
7
|
+
export declare const INVALID_CONFIG = "INVALID_CONFIG";
|
|
8
|
+
export declare const INVALID_ID_TOKEN = "INVALID_ID_TOKEN";
|
|
9
|
+
export declare const TIMEOUT = "TIMEOUT";
|
|
10
|
+
export declare const CREATE_SUBWINDOW_FAILED = "CREATE_SUBWINDOW_FAILED";
|
|
11
|
+
export declare const EXCEPTION_IN_SUBWINDOW = "EXCEPTION_IN_SUBWINDOW";
|
|
12
|
+
export declare const LIFF_EVENT = "liffEvent";
|
|
13
|
+
export declare const STORE_KEY = "LIFF_STORE";
|
|
14
|
+
export declare const PERMANENT_LINK_ORIGIN: string;
|
|
15
|
+
export declare const PERMANENT_LINK_ORIGIN_MINI: string;
|
|
16
|
+
export declare const STORE_OBJECT: {
|
|
17
|
+
readonly ACCESS_TOKEN: "accessToken";
|
|
18
|
+
readonly ID_TOKEN: "IDToken";
|
|
19
|
+
readonly DECODED_ID_TOKEN: "decodedIDToken";
|
|
20
|
+
readonly FEATURE_TOKEN: "featureToken";
|
|
21
|
+
readonly LOGIN_TMP: "loginTmp";
|
|
22
|
+
readonly CONFIG: "config";
|
|
23
|
+
readonly CONTEXT: "context";
|
|
24
|
+
readonly EXPIRES: "expires";
|
|
25
|
+
readonly RAW_CONTEXT: "rawContext";
|
|
26
|
+
readonly CLIENT_ID: "clientId";
|
|
27
|
+
readonly IS_SUBSEQUENT_LIFF_APP: "isSubsequentLiffApp";
|
|
28
|
+
readonly MST_CHALLENGE: "mstChallenge";
|
|
29
|
+
readonly MSIT: "msit";
|
|
30
|
+
readonly MST: "mst";
|
|
31
|
+
readonly MST_VERIFIER: "mstVerifier";
|
|
32
|
+
readonly APP_DATA: "appData";
|
|
33
|
+
};
|
|
34
|
+
export declare const STORE_SUBKEY_IS_IN_CLIENT = "isInClient";
|
|
35
|
+
export declare const CREDENTIAL_KEYS: readonly ["context_token", "feature_token", "access_token", "id_token", "client_id", "mst_verifier", "mst_challenge", "msit"];
|
|
36
|
+
export type CREDENTIAL_OBJECTS = {
|
|
37
|
+
[key in ElementType<typeof CREDENTIAL_KEYS>]: string | null;
|
|
38
|
+
};
|
|
39
|
+
export declare const MAX_NUM_OF_SEND_MESSAGES = 5;
|
|
40
|
+
export declare const UTS_REFERRER_QUERY: string[];
|
|
41
|
+
export declare const SUB_WINDOW_MODAL_SCHEME_URL = "liff://subwindow";
|
|
42
|
+
export declare const SUB_WINDOW_STATUS: {
|
|
43
|
+
readonly INIT: "init";
|
|
44
|
+
readonly SUBMIT: "submit";
|
|
45
|
+
readonly CANCEL: "cancel";
|
|
46
|
+
readonly CLOSE: "close";
|
|
47
|
+
readonly ERROR: "error";
|
|
48
|
+
};
|
|
49
|
+
export declare const SUB_WINDOW_MONITOR_CLOSE_INTERVAL = 100;
|
|
50
|
+
export declare const SUB_WINDOW_HEALTH_CHECK_INTERVAL = 100;
|
|
51
|
+
export declare const SUB_WINDOW_IDNTIFICATION_KEY = "liff.subwindow";
|
|
52
|
+
export declare const SUB_WINDOW_HEALTH_CHECK_MESSAGE = "healthCheck";
|
|
53
|
+
export declare const SUB_WINDOW_GET_APP_DATA_MESSAGE = "getAppData";
|
|
54
|
+
export declare const PERMISSION_NAMES: readonly ["profile", "chat_message.write", "openid", "email"];
|
|
55
|
+
export {};
|