@goplus123/core-api 1.0.2 → 1.0.3
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 +59 -1
- package/dist/index.cjs +509 -45
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +252 -1
- package/dist/index.d.ts +252 -1
- package/dist/index.js +505 -44
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -376,6 +376,7 @@ declare class WsClient {
|
|
|
376
376
|
private emit;
|
|
377
377
|
private cleanup;
|
|
378
378
|
private isPong;
|
|
379
|
+
private isAliveAck;
|
|
379
380
|
private buildURL;
|
|
380
381
|
private log;
|
|
381
382
|
}
|
|
@@ -16054,6 +16055,241 @@ declare const apiMap: {
|
|
|
16054
16055
|
limit?: number | undefined;
|
|
16055
16056
|
}, GetGameSuggestionsRes>;
|
|
16056
16057
|
};
|
|
16058
|
+
readonly auth: {
|
|
16059
|
+
readonly playerRegisterRequestCode: EndpointSpec<{
|
|
16060
|
+
readonly $typeName?: undefined;
|
|
16061
|
+
phone?: string | undefined;
|
|
16062
|
+
platformId?: string | undefined;
|
|
16063
|
+
codeType?: PlayerRegisterRequestCodeReq_CodeType | undefined;
|
|
16064
|
+
}, BaseResponse>;
|
|
16065
|
+
readonly playerRegisterWithCode: EndpointSpec<{
|
|
16066
|
+
readonly $typeName?: undefined;
|
|
16067
|
+
phone?: string | undefined;
|
|
16068
|
+
code?: string | undefined;
|
|
16069
|
+
platformId?: string | undefined;
|
|
16070
|
+
sourceUrl?: string | undefined;
|
|
16071
|
+
clientDomain?: string | undefined;
|
|
16072
|
+
eId?: string | undefined;
|
|
16073
|
+
partnerId?: string | undefined;
|
|
16074
|
+
}, PlayerRegisterWithCodeRes>;
|
|
16075
|
+
readonly playerLoginWithSessionToken: EndpointSpec<{
|
|
16076
|
+
readonly $typeName?: undefined;
|
|
16077
|
+
sessionToken?: string | undefined;
|
|
16078
|
+
platformId?: string | undefined;
|
|
16079
|
+
partnerId?: string | undefined;
|
|
16080
|
+
eId?: string | undefined;
|
|
16081
|
+
type?: PlayerLoginWithSessionTokenReq_Type | undefined;
|
|
16082
|
+
sourceUrl?: string | undefined;
|
|
16083
|
+
clientDomain?: string | undefined;
|
|
16084
|
+
freespinSessionToken?: string | undefined;
|
|
16085
|
+
deviceType?: number | undefined;
|
|
16086
|
+
}, PlayerLoginWithSessionTokenRes>;
|
|
16087
|
+
readonly phoneNumberLoginWithPassword: EndpointSpec<{
|
|
16088
|
+
readonly $typeName?: undefined;
|
|
16089
|
+
phone?: string | undefined;
|
|
16090
|
+
password?: string | undefined;
|
|
16091
|
+
platformId?: string | undefined;
|
|
16092
|
+
sourceUrl?: string | undefined;
|
|
16093
|
+
clientDomain?: string | undefined;
|
|
16094
|
+
partnerId?: string | undefined;
|
|
16095
|
+
freespinSessionToken?: string | undefined;
|
|
16096
|
+
deviceType?: number | undefined;
|
|
16097
|
+
}, PhoneNumberLoginWithPasswordRes>;
|
|
16098
|
+
readonly playerLoginOrRegisterWithSMS: EndpointSpec<{
|
|
16099
|
+
readonly $typeName?: undefined;
|
|
16100
|
+
phone?: string | undefined;
|
|
16101
|
+
platformId?: string | undefined;
|
|
16102
|
+
code?: string | undefined;
|
|
16103
|
+
clientDomain?: string | undefined;
|
|
16104
|
+
sourceUrl?: string | undefined;
|
|
16105
|
+
signature?: string | undefined;
|
|
16106
|
+
partnerId?: string | undefined;
|
|
16107
|
+
childPlatformId?: string | undefined;
|
|
16108
|
+
referralId?: string | undefined;
|
|
16109
|
+
deviceType?: DeviceType$1 | undefined;
|
|
16110
|
+
deviceId?: string | undefined;
|
|
16111
|
+
freespinSessionToken?: string | undefined;
|
|
16112
|
+
}, PlayerLoginOrRegisterWithSMSRes>;
|
|
16113
|
+
readonly playerLogout: EndpointSpec<{
|
|
16114
|
+
readonly $typeName?: undefined;
|
|
16115
|
+
isPlayerLogout?: boolean | undefined;
|
|
16116
|
+
}, BaseResponse>;
|
|
16117
|
+
readonly authenticate: EndpointSpec<{
|
|
16118
|
+
readonly $typeName?: undefined;
|
|
16119
|
+
isLogin?: boolean | undefined;
|
|
16120
|
+
eId?: string | undefined;
|
|
16121
|
+
partnerId?: string | undefined;
|
|
16122
|
+
clientDomain?: string | undefined;
|
|
16123
|
+
sourceUrl?: string | undefined;
|
|
16124
|
+
}, BaseResponse>;
|
|
16125
|
+
readonly sendSmsCode: EndpointSpec<{
|
|
16126
|
+
readonly $typeName?: undefined;
|
|
16127
|
+
phone?: string | undefined;
|
|
16128
|
+
platformId?: string | undefined;
|
|
16129
|
+
purpose?: Purpose | undefined;
|
|
16130
|
+
email?: string | undefined;
|
|
16131
|
+
useEmail?: boolean | undefined;
|
|
16132
|
+
}, BaseResponse>;
|
|
16133
|
+
readonly sendSmsCodeViber: EndpointSpec<{
|
|
16134
|
+
readonly $typeName?: undefined;
|
|
16135
|
+
phone?: string | undefined;
|
|
16136
|
+
platformId?: string | undefined;
|
|
16137
|
+
purpose?: Purpose | undefined;
|
|
16138
|
+
}, BaseResponse>;
|
|
16139
|
+
readonly playerLoginOrRegisterWithFacebook: EndpointSpec<{
|
|
16140
|
+
readonly $typeName?: undefined;
|
|
16141
|
+
facebookId?: string | undefined;
|
|
16142
|
+
facebookAccount?: string | undefined;
|
|
16143
|
+
phone?: string | undefined;
|
|
16144
|
+
smsCode?: string | undefined;
|
|
16145
|
+
skipFacebookAuthorization?: boolean | undefined;
|
|
16146
|
+
signature?: string | undefined;
|
|
16147
|
+
deviceType?: number | undefined;
|
|
16148
|
+
platformId?: string | undefined;
|
|
16149
|
+
partnerId?: string | undefined;
|
|
16150
|
+
sourceUrl?: string | undefined;
|
|
16151
|
+
clientDomain?: string | undefined;
|
|
16152
|
+
freespinSessionToken?: string | undefined;
|
|
16153
|
+
}, PlayerLoginOrRegisterWithFacebookRes>;
|
|
16154
|
+
readonly getFacebookConsentPage: EndpointSpec<{
|
|
16155
|
+
readonly $typeName?: undefined;
|
|
16156
|
+
platformId?: string | undefined;
|
|
16157
|
+
facebookId?: string | undefined;
|
|
16158
|
+
fingerprint?: string | undefined;
|
|
16159
|
+
isBinding?: boolean | undefined;
|
|
16160
|
+
}, GetFacebookConsentPageRes>;
|
|
16161
|
+
readonly facebookAuthorization: EndpointSpec<{
|
|
16162
|
+
readonly $typeName?: undefined;
|
|
16163
|
+
platformId?: string | undefined;
|
|
16164
|
+
code?: string | undefined;
|
|
16165
|
+
isBinding?: boolean | undefined;
|
|
16166
|
+
}, FacebookAuthorizationRes>;
|
|
16167
|
+
readonly getFacebookFriendList: EndpointSpec<{
|
|
16168
|
+
readonly $typeName?: undefined;
|
|
16169
|
+
playerId?: string | undefined;
|
|
16170
|
+
}, GetFacebookFriendListRes>;
|
|
16171
|
+
readonly manualFetchFacebookFriends: EndpointSpec<{
|
|
16172
|
+
readonly $typeName?: undefined;
|
|
16173
|
+
playerId?: string | undefined;
|
|
16174
|
+
}, ManualFetchFacebookFriendsRes>;
|
|
16175
|
+
readonly bindFacebookAccount: EndpointSpec<{
|
|
16176
|
+
readonly $typeName?: undefined;
|
|
16177
|
+
facebookId?: string | undefined;
|
|
16178
|
+
}, BaseResponse>;
|
|
16179
|
+
readonly unbindFacebookAccount: EndpointSpec<{
|
|
16180
|
+
readonly $typeName?: undefined;
|
|
16181
|
+
}, UnbindFacebookAccountRes>;
|
|
16182
|
+
readonly facebookVerifyPhoneNumber: EndpointSpec<{
|
|
16183
|
+
readonly $typeName?: undefined;
|
|
16184
|
+
code?: string | undefined;
|
|
16185
|
+
}, BaseResponse>;
|
|
16186
|
+
readonly enableFaceId: EndpointSpec<{
|
|
16187
|
+
readonly $typeName?: undefined;
|
|
16188
|
+
deviceType?: DeviceType$1 | undefined;
|
|
16189
|
+
smsCode?: string | undefined;
|
|
16190
|
+
isFakeApp?: boolean | undefined;
|
|
16191
|
+
}, EnableFaceIdRes>;
|
|
16192
|
+
readonly initFaceIdSession: EndpointSpec<{
|
|
16193
|
+
readonly $typeName?: undefined;
|
|
16194
|
+
phoneNumber?: string | undefined;
|
|
16195
|
+
clientDomain?: string | undefined;
|
|
16196
|
+
deviceType?: DeviceType$1 | undefined;
|
|
16197
|
+
platformId?: string | undefined;
|
|
16198
|
+
isFakeApp?: boolean | undefined;
|
|
16199
|
+
}, InitFaceIdSessionRes>;
|
|
16200
|
+
readonly playerLoginWithFaceId: EndpointSpec<{
|
|
16201
|
+
readonly $typeName?: undefined;
|
|
16202
|
+
platformId?: string | undefined;
|
|
16203
|
+
sourceUrl?: string | undefined;
|
|
16204
|
+
clientDomain?: string | undefined;
|
|
16205
|
+
eId?: string | undefined;
|
|
16206
|
+
partnerId?: string | undefined;
|
|
16207
|
+
freespinSessionToken?: string | undefined;
|
|
16208
|
+
faceId?: string | undefined;
|
|
16209
|
+
deviceType?: DeviceType$1 | undefined;
|
|
16210
|
+
transactionId?: string | undefined;
|
|
16211
|
+
isFakeApp?: boolean | undefined;
|
|
16212
|
+
}, PlayerLoginWithFaceIdRes>;
|
|
16213
|
+
readonly disableFaceId: EndpointSpec<{
|
|
16214
|
+
readonly $typeName?: undefined;
|
|
16215
|
+
deviceType?: DeviceType$1 | undefined;
|
|
16216
|
+
isFakeApp?: boolean | undefined;
|
|
16217
|
+
}, DisableFaceIdRes>;
|
|
16218
|
+
readonly initEnrollSession: EndpointSpec<{
|
|
16219
|
+
readonly $typeName?: undefined;
|
|
16220
|
+
clientDomain?: string | undefined;
|
|
16221
|
+
deviceType?: DeviceType$1 | undefined;
|
|
16222
|
+
isFakeApp?: boolean | undefined;
|
|
16223
|
+
}, InitEnrollSessionRes>;
|
|
16224
|
+
readonly getFaceIdInfo: EndpointSpec<{
|
|
16225
|
+
readonly $typeName?: undefined;
|
|
16226
|
+
deviceType?: DeviceType$1 | undefined;
|
|
16227
|
+
isFakeApp?: boolean | undefined;
|
|
16228
|
+
}, GetFaceIdInfoRes>;
|
|
16229
|
+
readonly verifyPassword: EndpointSpec<{
|
|
16230
|
+
readonly $typeName?: undefined;
|
|
16231
|
+
password?: string | undefined;
|
|
16232
|
+
}, VerifyPasswordRes>;
|
|
16233
|
+
readonly gLifeAuth: EndpointSpec<{
|
|
16234
|
+
readonly $typeName?: undefined;
|
|
16235
|
+
authCode?: string | undefined;
|
|
16236
|
+
platformId?: string | undefined;
|
|
16237
|
+
phone?: string | undefined;
|
|
16238
|
+
applyToken?: boolean | undefined;
|
|
16239
|
+
accessToken?: string | undefined;
|
|
16240
|
+
refreshToken?: string | undefined;
|
|
16241
|
+
currentTime?: string | undefined;
|
|
16242
|
+
useAuthCode?: boolean | undefined;
|
|
16243
|
+
}, GLifeAuthRes>;
|
|
16244
|
+
readonly playerLoginWithGLife: EndpointSpec<{
|
|
16245
|
+
readonly $typeName?: undefined;
|
|
16246
|
+
phone?: string | undefined;
|
|
16247
|
+
clientDomain?: string | undefined;
|
|
16248
|
+
deviceType?: number | undefined;
|
|
16249
|
+
platformId?: string | undefined;
|
|
16250
|
+
customerId?: string | undefined;
|
|
16251
|
+
gLifeData?: string | undefined;
|
|
16252
|
+
authCode?: string | undefined;
|
|
16253
|
+
isWebsite?: boolean | undefined;
|
|
16254
|
+
sourceUrl?: string | undefined;
|
|
16255
|
+
eId?: string | undefined;
|
|
16256
|
+
partnerId?: string | undefined;
|
|
16257
|
+
}, PlayerLoginWithGLifeRes>;
|
|
16258
|
+
readonly playerLoginOrRegisterWithGLife: EndpointSpec<{
|
|
16259
|
+
readonly $typeName?: undefined;
|
|
16260
|
+
platformId?: string | undefined;
|
|
16261
|
+
authCode?: string | undefined;
|
|
16262
|
+
sourceUrl?: string | undefined;
|
|
16263
|
+
deviceType?: number | undefined;
|
|
16264
|
+
clientDomain?: string | undefined;
|
|
16265
|
+
signature?: string | undefined;
|
|
16266
|
+
partnerId?: string | undefined;
|
|
16267
|
+
}, PlayerLoginOrRegisterWithGLifeRes>;
|
|
16268
|
+
readonly mayaAuth: EndpointSpec<{
|
|
16269
|
+
readonly $typeName?: undefined;
|
|
16270
|
+
platformId?: string | undefined;
|
|
16271
|
+
sessionId?: string | undefined;
|
|
16272
|
+
phone?: string | undefined;
|
|
16273
|
+
useSessionId?: boolean | undefined;
|
|
16274
|
+
}, MayaAuthRes>;
|
|
16275
|
+
readonly playerLoginWithMaya: EndpointSpec<{
|
|
16276
|
+
readonly $typeName?: undefined;
|
|
16277
|
+
sessionId?: string | undefined;
|
|
16278
|
+
sourceUrl?: string | undefined;
|
|
16279
|
+
clientDomain?: string | undefined;
|
|
16280
|
+
eId?: string | undefined;
|
|
16281
|
+
platformId?: string | undefined;
|
|
16282
|
+
partnerId?: string | undefined;
|
|
16283
|
+
}, PlayerLoginWithMayaRes>;
|
|
16284
|
+
readonly playerLoginOrRegisterWithMaya: EndpointSpec<{
|
|
16285
|
+
readonly $typeName?: undefined;
|
|
16286
|
+
sessionId?: string | undefined;
|
|
16287
|
+
sourceUrl?: string | undefined;
|
|
16288
|
+
clientDomain?: string | undefined;
|
|
16289
|
+
platformId?: string | undefined;
|
|
16290
|
+
partnerId?: string | undefined;
|
|
16291
|
+
}, PlayerLoginOrRegisterWithMayaRes>;
|
|
16292
|
+
};
|
|
16057
16293
|
};
|
|
16058
16294
|
type ApiMap = typeof apiMap;
|
|
16059
16295
|
|
|
@@ -16105,6 +16341,21 @@ declare function requestApi<TReq = any, TRes = any>(args: {
|
|
|
16105
16341
|
meta?: Record<string, any>;
|
|
16106
16342
|
}): Promise<TRes>;
|
|
16107
16343
|
|
|
16344
|
+
type KeyValueStorage = {
|
|
16345
|
+
get: (key: string) => string | null;
|
|
16346
|
+
set: (key: string, val: string) => void;
|
|
16347
|
+
};
|
|
16348
|
+
|
|
16349
|
+
type FetchGuidOptions = {
|
|
16350
|
+
key?: string;
|
|
16351
|
+
format?: 'uuid' | 'hex' | 'base64';
|
|
16352
|
+
prefix?: string;
|
|
16353
|
+
};
|
|
16354
|
+
declare function createFetchGuid(storage: KeyValueStorage, options?: FetchGuidOptions): () => string;
|
|
16355
|
+
|
|
16356
|
+
declare const webStorage: KeyValueStorage;
|
|
16357
|
+
|
|
16358
|
+
declare const setUniqueKeyStorage: (adapter?: KeyValueStorage | null) => void;
|
|
16108
16359
|
declare const fetchGuid: () => string;
|
|
16109
16360
|
|
|
16110
16361
|
type WsStatusState = 'connected' | 'disconnected' | 'reconnecting' | 'reconnect_failed' | 'error';
|
|
@@ -16221,4 +16472,4 @@ declare function initSDK(config: RequestApiConfig): {
|
|
|
16221
16472
|
*/
|
|
16222
16473
|
declare function getSDK(): RequestApi;
|
|
16223
16474
|
|
|
16224
|
-
export { type ApiErrorMiddleware, type NotifyMiddleware, type WsStatusPayload, type WsStatusState, apiError, requestApi as callApi, destroySDK, fetchGuid, getSDK, getWsSnapshot, initSDK, notify, requestApi, requestApi as requestApiSpec };
|
|
16475
|
+
export { type ApiErrorMiddleware, type KeyValueStorage, type NotifyMiddleware, type WsStatusPayload, type WsStatusState, apiError, requestApi as callApi, createFetchGuid, destroySDK, fetchGuid, getSDK, getWsSnapshot, initSDK, notify, requestApi, requestApi as requestApiSpec, setUniqueKeyStorage, webStorage };
|
package/dist/index.d.ts
CHANGED
|
@@ -376,6 +376,7 @@ declare class WsClient {
|
|
|
376
376
|
private emit;
|
|
377
377
|
private cleanup;
|
|
378
378
|
private isPong;
|
|
379
|
+
private isAliveAck;
|
|
379
380
|
private buildURL;
|
|
380
381
|
private log;
|
|
381
382
|
}
|
|
@@ -16054,6 +16055,241 @@ declare const apiMap: {
|
|
|
16054
16055
|
limit?: number | undefined;
|
|
16055
16056
|
}, GetGameSuggestionsRes>;
|
|
16056
16057
|
};
|
|
16058
|
+
readonly auth: {
|
|
16059
|
+
readonly playerRegisterRequestCode: EndpointSpec<{
|
|
16060
|
+
readonly $typeName?: undefined;
|
|
16061
|
+
phone?: string | undefined;
|
|
16062
|
+
platformId?: string | undefined;
|
|
16063
|
+
codeType?: PlayerRegisterRequestCodeReq_CodeType | undefined;
|
|
16064
|
+
}, BaseResponse>;
|
|
16065
|
+
readonly playerRegisterWithCode: EndpointSpec<{
|
|
16066
|
+
readonly $typeName?: undefined;
|
|
16067
|
+
phone?: string | undefined;
|
|
16068
|
+
code?: string | undefined;
|
|
16069
|
+
platformId?: string | undefined;
|
|
16070
|
+
sourceUrl?: string | undefined;
|
|
16071
|
+
clientDomain?: string | undefined;
|
|
16072
|
+
eId?: string | undefined;
|
|
16073
|
+
partnerId?: string | undefined;
|
|
16074
|
+
}, PlayerRegisterWithCodeRes>;
|
|
16075
|
+
readonly playerLoginWithSessionToken: EndpointSpec<{
|
|
16076
|
+
readonly $typeName?: undefined;
|
|
16077
|
+
sessionToken?: string | undefined;
|
|
16078
|
+
platformId?: string | undefined;
|
|
16079
|
+
partnerId?: string | undefined;
|
|
16080
|
+
eId?: string | undefined;
|
|
16081
|
+
type?: PlayerLoginWithSessionTokenReq_Type | undefined;
|
|
16082
|
+
sourceUrl?: string | undefined;
|
|
16083
|
+
clientDomain?: string | undefined;
|
|
16084
|
+
freespinSessionToken?: string | undefined;
|
|
16085
|
+
deviceType?: number | undefined;
|
|
16086
|
+
}, PlayerLoginWithSessionTokenRes>;
|
|
16087
|
+
readonly phoneNumberLoginWithPassword: EndpointSpec<{
|
|
16088
|
+
readonly $typeName?: undefined;
|
|
16089
|
+
phone?: string | undefined;
|
|
16090
|
+
password?: string | undefined;
|
|
16091
|
+
platformId?: string | undefined;
|
|
16092
|
+
sourceUrl?: string | undefined;
|
|
16093
|
+
clientDomain?: string | undefined;
|
|
16094
|
+
partnerId?: string | undefined;
|
|
16095
|
+
freespinSessionToken?: string | undefined;
|
|
16096
|
+
deviceType?: number | undefined;
|
|
16097
|
+
}, PhoneNumberLoginWithPasswordRes>;
|
|
16098
|
+
readonly playerLoginOrRegisterWithSMS: EndpointSpec<{
|
|
16099
|
+
readonly $typeName?: undefined;
|
|
16100
|
+
phone?: string | undefined;
|
|
16101
|
+
platformId?: string | undefined;
|
|
16102
|
+
code?: string | undefined;
|
|
16103
|
+
clientDomain?: string | undefined;
|
|
16104
|
+
sourceUrl?: string | undefined;
|
|
16105
|
+
signature?: string | undefined;
|
|
16106
|
+
partnerId?: string | undefined;
|
|
16107
|
+
childPlatformId?: string | undefined;
|
|
16108
|
+
referralId?: string | undefined;
|
|
16109
|
+
deviceType?: DeviceType$1 | undefined;
|
|
16110
|
+
deviceId?: string | undefined;
|
|
16111
|
+
freespinSessionToken?: string | undefined;
|
|
16112
|
+
}, PlayerLoginOrRegisterWithSMSRes>;
|
|
16113
|
+
readonly playerLogout: EndpointSpec<{
|
|
16114
|
+
readonly $typeName?: undefined;
|
|
16115
|
+
isPlayerLogout?: boolean | undefined;
|
|
16116
|
+
}, BaseResponse>;
|
|
16117
|
+
readonly authenticate: EndpointSpec<{
|
|
16118
|
+
readonly $typeName?: undefined;
|
|
16119
|
+
isLogin?: boolean | undefined;
|
|
16120
|
+
eId?: string | undefined;
|
|
16121
|
+
partnerId?: string | undefined;
|
|
16122
|
+
clientDomain?: string | undefined;
|
|
16123
|
+
sourceUrl?: string | undefined;
|
|
16124
|
+
}, BaseResponse>;
|
|
16125
|
+
readonly sendSmsCode: EndpointSpec<{
|
|
16126
|
+
readonly $typeName?: undefined;
|
|
16127
|
+
phone?: string | undefined;
|
|
16128
|
+
platformId?: string | undefined;
|
|
16129
|
+
purpose?: Purpose | undefined;
|
|
16130
|
+
email?: string | undefined;
|
|
16131
|
+
useEmail?: boolean | undefined;
|
|
16132
|
+
}, BaseResponse>;
|
|
16133
|
+
readonly sendSmsCodeViber: EndpointSpec<{
|
|
16134
|
+
readonly $typeName?: undefined;
|
|
16135
|
+
phone?: string | undefined;
|
|
16136
|
+
platformId?: string | undefined;
|
|
16137
|
+
purpose?: Purpose | undefined;
|
|
16138
|
+
}, BaseResponse>;
|
|
16139
|
+
readonly playerLoginOrRegisterWithFacebook: EndpointSpec<{
|
|
16140
|
+
readonly $typeName?: undefined;
|
|
16141
|
+
facebookId?: string | undefined;
|
|
16142
|
+
facebookAccount?: string | undefined;
|
|
16143
|
+
phone?: string | undefined;
|
|
16144
|
+
smsCode?: string | undefined;
|
|
16145
|
+
skipFacebookAuthorization?: boolean | undefined;
|
|
16146
|
+
signature?: string | undefined;
|
|
16147
|
+
deviceType?: number | undefined;
|
|
16148
|
+
platformId?: string | undefined;
|
|
16149
|
+
partnerId?: string | undefined;
|
|
16150
|
+
sourceUrl?: string | undefined;
|
|
16151
|
+
clientDomain?: string | undefined;
|
|
16152
|
+
freespinSessionToken?: string | undefined;
|
|
16153
|
+
}, PlayerLoginOrRegisterWithFacebookRes>;
|
|
16154
|
+
readonly getFacebookConsentPage: EndpointSpec<{
|
|
16155
|
+
readonly $typeName?: undefined;
|
|
16156
|
+
platformId?: string | undefined;
|
|
16157
|
+
facebookId?: string | undefined;
|
|
16158
|
+
fingerprint?: string | undefined;
|
|
16159
|
+
isBinding?: boolean | undefined;
|
|
16160
|
+
}, GetFacebookConsentPageRes>;
|
|
16161
|
+
readonly facebookAuthorization: EndpointSpec<{
|
|
16162
|
+
readonly $typeName?: undefined;
|
|
16163
|
+
platformId?: string | undefined;
|
|
16164
|
+
code?: string | undefined;
|
|
16165
|
+
isBinding?: boolean | undefined;
|
|
16166
|
+
}, FacebookAuthorizationRes>;
|
|
16167
|
+
readonly getFacebookFriendList: EndpointSpec<{
|
|
16168
|
+
readonly $typeName?: undefined;
|
|
16169
|
+
playerId?: string | undefined;
|
|
16170
|
+
}, GetFacebookFriendListRes>;
|
|
16171
|
+
readonly manualFetchFacebookFriends: EndpointSpec<{
|
|
16172
|
+
readonly $typeName?: undefined;
|
|
16173
|
+
playerId?: string | undefined;
|
|
16174
|
+
}, ManualFetchFacebookFriendsRes>;
|
|
16175
|
+
readonly bindFacebookAccount: EndpointSpec<{
|
|
16176
|
+
readonly $typeName?: undefined;
|
|
16177
|
+
facebookId?: string | undefined;
|
|
16178
|
+
}, BaseResponse>;
|
|
16179
|
+
readonly unbindFacebookAccount: EndpointSpec<{
|
|
16180
|
+
readonly $typeName?: undefined;
|
|
16181
|
+
}, UnbindFacebookAccountRes>;
|
|
16182
|
+
readonly facebookVerifyPhoneNumber: EndpointSpec<{
|
|
16183
|
+
readonly $typeName?: undefined;
|
|
16184
|
+
code?: string | undefined;
|
|
16185
|
+
}, BaseResponse>;
|
|
16186
|
+
readonly enableFaceId: EndpointSpec<{
|
|
16187
|
+
readonly $typeName?: undefined;
|
|
16188
|
+
deviceType?: DeviceType$1 | undefined;
|
|
16189
|
+
smsCode?: string | undefined;
|
|
16190
|
+
isFakeApp?: boolean | undefined;
|
|
16191
|
+
}, EnableFaceIdRes>;
|
|
16192
|
+
readonly initFaceIdSession: EndpointSpec<{
|
|
16193
|
+
readonly $typeName?: undefined;
|
|
16194
|
+
phoneNumber?: string | undefined;
|
|
16195
|
+
clientDomain?: string | undefined;
|
|
16196
|
+
deviceType?: DeviceType$1 | undefined;
|
|
16197
|
+
platformId?: string | undefined;
|
|
16198
|
+
isFakeApp?: boolean | undefined;
|
|
16199
|
+
}, InitFaceIdSessionRes>;
|
|
16200
|
+
readonly playerLoginWithFaceId: EndpointSpec<{
|
|
16201
|
+
readonly $typeName?: undefined;
|
|
16202
|
+
platformId?: string | undefined;
|
|
16203
|
+
sourceUrl?: string | undefined;
|
|
16204
|
+
clientDomain?: string | undefined;
|
|
16205
|
+
eId?: string | undefined;
|
|
16206
|
+
partnerId?: string | undefined;
|
|
16207
|
+
freespinSessionToken?: string | undefined;
|
|
16208
|
+
faceId?: string | undefined;
|
|
16209
|
+
deviceType?: DeviceType$1 | undefined;
|
|
16210
|
+
transactionId?: string | undefined;
|
|
16211
|
+
isFakeApp?: boolean | undefined;
|
|
16212
|
+
}, PlayerLoginWithFaceIdRes>;
|
|
16213
|
+
readonly disableFaceId: EndpointSpec<{
|
|
16214
|
+
readonly $typeName?: undefined;
|
|
16215
|
+
deviceType?: DeviceType$1 | undefined;
|
|
16216
|
+
isFakeApp?: boolean | undefined;
|
|
16217
|
+
}, DisableFaceIdRes>;
|
|
16218
|
+
readonly initEnrollSession: EndpointSpec<{
|
|
16219
|
+
readonly $typeName?: undefined;
|
|
16220
|
+
clientDomain?: string | undefined;
|
|
16221
|
+
deviceType?: DeviceType$1 | undefined;
|
|
16222
|
+
isFakeApp?: boolean | undefined;
|
|
16223
|
+
}, InitEnrollSessionRes>;
|
|
16224
|
+
readonly getFaceIdInfo: EndpointSpec<{
|
|
16225
|
+
readonly $typeName?: undefined;
|
|
16226
|
+
deviceType?: DeviceType$1 | undefined;
|
|
16227
|
+
isFakeApp?: boolean | undefined;
|
|
16228
|
+
}, GetFaceIdInfoRes>;
|
|
16229
|
+
readonly verifyPassword: EndpointSpec<{
|
|
16230
|
+
readonly $typeName?: undefined;
|
|
16231
|
+
password?: string | undefined;
|
|
16232
|
+
}, VerifyPasswordRes>;
|
|
16233
|
+
readonly gLifeAuth: EndpointSpec<{
|
|
16234
|
+
readonly $typeName?: undefined;
|
|
16235
|
+
authCode?: string | undefined;
|
|
16236
|
+
platformId?: string | undefined;
|
|
16237
|
+
phone?: string | undefined;
|
|
16238
|
+
applyToken?: boolean | undefined;
|
|
16239
|
+
accessToken?: string | undefined;
|
|
16240
|
+
refreshToken?: string | undefined;
|
|
16241
|
+
currentTime?: string | undefined;
|
|
16242
|
+
useAuthCode?: boolean | undefined;
|
|
16243
|
+
}, GLifeAuthRes>;
|
|
16244
|
+
readonly playerLoginWithGLife: EndpointSpec<{
|
|
16245
|
+
readonly $typeName?: undefined;
|
|
16246
|
+
phone?: string | undefined;
|
|
16247
|
+
clientDomain?: string | undefined;
|
|
16248
|
+
deviceType?: number | undefined;
|
|
16249
|
+
platformId?: string | undefined;
|
|
16250
|
+
customerId?: string | undefined;
|
|
16251
|
+
gLifeData?: string | undefined;
|
|
16252
|
+
authCode?: string | undefined;
|
|
16253
|
+
isWebsite?: boolean | undefined;
|
|
16254
|
+
sourceUrl?: string | undefined;
|
|
16255
|
+
eId?: string | undefined;
|
|
16256
|
+
partnerId?: string | undefined;
|
|
16257
|
+
}, PlayerLoginWithGLifeRes>;
|
|
16258
|
+
readonly playerLoginOrRegisterWithGLife: EndpointSpec<{
|
|
16259
|
+
readonly $typeName?: undefined;
|
|
16260
|
+
platformId?: string | undefined;
|
|
16261
|
+
authCode?: string | undefined;
|
|
16262
|
+
sourceUrl?: string | undefined;
|
|
16263
|
+
deviceType?: number | undefined;
|
|
16264
|
+
clientDomain?: string | undefined;
|
|
16265
|
+
signature?: string | undefined;
|
|
16266
|
+
partnerId?: string | undefined;
|
|
16267
|
+
}, PlayerLoginOrRegisterWithGLifeRes>;
|
|
16268
|
+
readonly mayaAuth: EndpointSpec<{
|
|
16269
|
+
readonly $typeName?: undefined;
|
|
16270
|
+
platformId?: string | undefined;
|
|
16271
|
+
sessionId?: string | undefined;
|
|
16272
|
+
phone?: string | undefined;
|
|
16273
|
+
useSessionId?: boolean | undefined;
|
|
16274
|
+
}, MayaAuthRes>;
|
|
16275
|
+
readonly playerLoginWithMaya: EndpointSpec<{
|
|
16276
|
+
readonly $typeName?: undefined;
|
|
16277
|
+
sessionId?: string | undefined;
|
|
16278
|
+
sourceUrl?: string | undefined;
|
|
16279
|
+
clientDomain?: string | undefined;
|
|
16280
|
+
eId?: string | undefined;
|
|
16281
|
+
platformId?: string | undefined;
|
|
16282
|
+
partnerId?: string | undefined;
|
|
16283
|
+
}, PlayerLoginWithMayaRes>;
|
|
16284
|
+
readonly playerLoginOrRegisterWithMaya: EndpointSpec<{
|
|
16285
|
+
readonly $typeName?: undefined;
|
|
16286
|
+
sessionId?: string | undefined;
|
|
16287
|
+
sourceUrl?: string | undefined;
|
|
16288
|
+
clientDomain?: string | undefined;
|
|
16289
|
+
platformId?: string | undefined;
|
|
16290
|
+
partnerId?: string | undefined;
|
|
16291
|
+
}, PlayerLoginOrRegisterWithMayaRes>;
|
|
16292
|
+
};
|
|
16057
16293
|
};
|
|
16058
16294
|
type ApiMap = typeof apiMap;
|
|
16059
16295
|
|
|
@@ -16105,6 +16341,21 @@ declare function requestApi<TReq = any, TRes = any>(args: {
|
|
|
16105
16341
|
meta?: Record<string, any>;
|
|
16106
16342
|
}): Promise<TRes>;
|
|
16107
16343
|
|
|
16344
|
+
type KeyValueStorage = {
|
|
16345
|
+
get: (key: string) => string | null;
|
|
16346
|
+
set: (key: string, val: string) => void;
|
|
16347
|
+
};
|
|
16348
|
+
|
|
16349
|
+
type FetchGuidOptions = {
|
|
16350
|
+
key?: string;
|
|
16351
|
+
format?: 'uuid' | 'hex' | 'base64';
|
|
16352
|
+
prefix?: string;
|
|
16353
|
+
};
|
|
16354
|
+
declare function createFetchGuid(storage: KeyValueStorage, options?: FetchGuidOptions): () => string;
|
|
16355
|
+
|
|
16356
|
+
declare const webStorage: KeyValueStorage;
|
|
16357
|
+
|
|
16358
|
+
declare const setUniqueKeyStorage: (adapter?: KeyValueStorage | null) => void;
|
|
16108
16359
|
declare const fetchGuid: () => string;
|
|
16109
16360
|
|
|
16110
16361
|
type WsStatusState = 'connected' | 'disconnected' | 'reconnecting' | 'reconnect_failed' | 'error';
|
|
@@ -16221,4 +16472,4 @@ declare function initSDK(config: RequestApiConfig): {
|
|
|
16221
16472
|
*/
|
|
16222
16473
|
declare function getSDK(): RequestApi;
|
|
16223
16474
|
|
|
16224
|
-
export { type ApiErrorMiddleware, type NotifyMiddleware, type WsStatusPayload, type WsStatusState, apiError, requestApi as callApi, destroySDK, fetchGuid, getSDK, getWsSnapshot, initSDK, notify, requestApi, requestApi as requestApiSpec };
|
|
16475
|
+
export { type ApiErrorMiddleware, type KeyValueStorage, type NotifyMiddleware, type WsStatusPayload, type WsStatusState, apiError, requestApi as callApi, createFetchGuid, destroySDK, fetchGuid, getSDK, getWsSnapshot, initSDK, notify, requestApi, requestApi as requestApiSpec, setUniqueKeyStorage, webStorage };
|