@goplus123/core-api 1.0.3 → 1.0.5

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/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as _connectrpc_connect from '@connectrpc/connect';
2
- import { Client, CallOptions } from '@connectrpc/connect';
2
+ import { CallOptions, Client } from '@connectrpc/connect';
3
3
  import { DescMessage, DescService, MessageInitShape, MessageShape, Message } from '@bufbuild/protobuf';
4
4
  import * as _bufbuild_protobuf_codegenv2 from '@bufbuild/protobuf/codegenv2';
5
5
  import { GenService, GenMessage } from '@bufbuild/protobuf/codegenv2';
@@ -90,12 +90,27 @@ interface ApiLogger {
90
90
  }
91
91
 
92
92
  type MessageInit<Req extends DescMessage> = Exclude<MessageInitShape<Req>, MessageShape<Req>>;
93
+ type GrpcInvokerUnaryArgs = {
94
+ baseUrl: string;
95
+ service: DescService;
96
+ methodName: string;
97
+ method?: unknown;
98
+ request: unknown;
99
+ headers: Record<string, string>;
100
+ callOptions?: CallOptions;
101
+ };
102
+ interface GrpcInvoker {
103
+ unary(args: GrpcInvokerUnaryArgs): Promise<unknown>;
104
+ }
93
105
  /**
94
106
  * gRPC 客户端配置
95
107
  */
96
108
  interface GrpcClientConfig {
97
109
  /** 服务基础地址 (e.g. https://demo.connect.build) */
98
110
  baseUrl: string;
111
+ baseUrlByService?: Record<string, string>;
112
+ resolveBaseUrl?: (serviceTypeName: string) => string | undefined;
113
+ autoBaseUrlByNamespace?: boolean;
99
114
  /**
100
115
  * 传输协议类型
101
116
  * - 'connect': 使用 Connect 协议 (推荐,更轻量,支持 HTTP/1.1 和 HTTP/2)
@@ -114,23 +129,47 @@ interface GrpcClientConfig {
114
129
  headers?: Record<string, string>;
115
130
  getHeaders?: () => Record<string, string> | null | undefined | Promise<Record<string, string> | null | undefined>;
116
131
  logger?: ApiLogger;
132
+ invoker?: GrpcInvoker;
117
133
  }
118
134
  /**
119
135
  * 通用 gRPC 客户端封装 (基于 ConnectRPC)
120
136
  */
121
137
  declare class GrpcClient {
122
138
  private transport;
139
+ private baseUrl;
140
+ private baseUrlByService?;
141
+ private resolveBaseUrl?;
142
+ private autoBaseUrlByNamespace;
143
+ private protocol;
144
+ private fetchImpl?;
145
+ private interceptors;
146
+ private transportByBaseUrl;
123
147
  private getToken?;
124
148
  private headers?;
125
149
  private getHeaders?;
126
150
  private logger?;
151
+ private invoker?;
152
+ private invokerClientByKey;
127
153
  constructor(config: GrpcClientConfig);
154
+ private createTransport;
155
+ private pickBaseUrl;
156
+ private normalizeHeaders;
157
+ private hasHeader;
158
+ private attachInvokerHeaders;
159
+ private getInvokerClientKey;
160
+ private getServiceMethodDesc;
161
+ private getServiceViaInvoker;
162
+ private invokeUnary;
128
163
  /**
129
164
  * 创建特定服务的客户端实例
130
165
  * @param service Service Definition (从生成的 _connect.ts 导入)
131
166
  */
132
167
  getService<TService extends DescService>(service: TService): Client<TService>;
133
168
  unary<Req extends DescMessage, Res>(schema: Req, payload: MessageInit<Req> | undefined, call: (req: MessageInitShape<Req>, options?: CallOptions) => Promise<Res>, options?: CallOptions): Promise<Res>;
169
+ /**
170
+ * rpc_from 拦截器
171
+ */
172
+ private createRpcFromInterceptor;
134
173
  /**
135
174
  * 认证拦截器
136
175
  */
@@ -16290,6 +16329,709 @@ declare const apiMap: {
16290
16329
  partnerId?: string | undefined;
16291
16330
  }, PlayerLoginOrRegisterWithMayaRes>;
16292
16331
  };
16332
+ readonly packet: {
16333
+ readonly assignPacket: EndpointSpec<{
16334
+ readonly $typeName?: undefined;
16335
+ playerName?: string | undefined;
16336
+ requestId?: string | undefined;
16337
+ eventId?: string | undefined;
16338
+ session?: number | undefined;
16339
+ token?: string | undefined;
16340
+ signature?: string | undefined;
16341
+ }, AssignPacketRes>;
16342
+ readonly getServerTime: EndpointSpec<{
16343
+ readonly $typeName?: undefined;
16344
+ requestId?: string | undefined;
16345
+ }, GetServerTimeRes>;
16346
+ readonly getPacketsInfo: EndpointSpec<{
16347
+ readonly $typeName?: undefined;
16348
+ requestId?: string | undefined;
16349
+ }, GetPacketsInfoRes>;
16350
+ readonly verifyPlayerPacket: EndpointSpec<{
16351
+ readonly $typeName?: undefined;
16352
+ requestId?: string | undefined;
16353
+ token?: string | undefined;
16354
+ eventId?: string | undefined;
16355
+ }, VerifyPlayerPacketRes>;
16356
+ };
16357
+ readonly payment: {
16358
+ readonly getCredit: EndpointSpec<{
16359
+ readonly $typeName?: undefined;
16360
+ }, GetCreditRes>;
16361
+ readonly getBankTypes: EndpointSpec<{
16362
+ readonly $typeName?: undefined;
16363
+ platformId?: string | undefined;
16364
+ }, GetBankTypesRes>;
16365
+ readonly getBindBankCards: EndpointSpec<{
16366
+ readonly $typeName?: undefined;
16367
+ platformId?: string | undefined;
16368
+ childPlatformId?: string | undefined;
16369
+ deviceType?: number | undefined;
16370
+ }, GetBindBankCardsRes>;
16371
+ readonly getAvailableDepositMethods: EndpointSpec<{
16372
+ readonly $typeName?: undefined;
16373
+ platformId?: string | undefined;
16374
+ childPlatformId?: string | undefined;
16375
+ deviceType?: number | undefined;
16376
+ sessionId?: string | undefined;
16377
+ }, GetAvailableDepositMethodsRes>;
16378
+ readonly updatePaymentInfo: EndpointSpec<{
16379
+ readonly $typeName?: undefined;
16380
+ bankCard?: (BankCard | {
16381
+ readonly $typeName?: undefined;
16382
+ id?: string | undefined;
16383
+ bankTypeId?: string | undefined;
16384
+ bankName?: string | undefined;
16385
+ paymentTypeName?: string | undefined;
16386
+ paymentChoice?: string | undefined;
16387
+ paymentType?: string | undefined;
16388
+ bankAccount?: string | undefined;
16389
+ bankAccountName?: string | undefined;
16390
+ bankAccountProvince?: string | undefined;
16391
+ bankAccountDistrict?: string | undefined;
16392
+ bankAddress?: string | undefined;
16393
+ bankAccountCity?: string | undefined;
16394
+ isGLife?: boolean | undefined;
16395
+ isMaya?: boolean | undefined;
16396
+ isDefault?: boolean | undefined;
16397
+ isMaintenance?: boolean | undefined;
16398
+ bankCode?: string | undefined;
16399
+ bankChoice?: string | undefined;
16400
+ }) | undefined;
16401
+ childPlatformId?: string | undefined;
16402
+ platformId?: string | undefined;
16403
+ smsCode?: string | undefined;
16404
+ }, UpdatePaymentInfoRes>;
16405
+ readonly verifyUnionBank: EndpointSpec<{
16406
+ readonly $typeName?: undefined;
16407
+ platformId?: string | undefined;
16408
+ }, VerifyUnionBankRes>;
16409
+ readonly getPlayerDisbursements: EndpointSpec<{
16410
+ readonly $typeName?: undefined;
16411
+ platformId?: string | undefined;
16412
+ walletType?: string | undefined;
16413
+ status?: string | undefined;
16414
+ }, GetPlayerDisbursementsRes>;
16415
+ readonly claimPlayerDisbursement: EndpointSpec<{
16416
+ readonly $typeName?: undefined;
16417
+ platformId?: string | undefined;
16418
+ batchId?: string | undefined;
16419
+ }, ClaimPlayerDisbursementRes>;
16420
+ readonly getPlayerMudTransactions: EndpointSpec<{
16421
+ readonly $typeName?: undefined;
16422
+ platformId?: string | undefined;
16423
+ batchId?: string | undefined;
16424
+ }, GetPlayerMudTransactionsRes>;
16425
+ readonly getMudTransactionHistory: EndpointSpec<{
16426
+ readonly $typeName?: undefined;
16427
+ platformId?: string | undefined;
16428
+ walletType?: string | undefined;
16429
+ startTime?: string | undefined;
16430
+ endTime?: string | undefined;
16431
+ requestCount?: number | undefined;
16432
+ startIndex?: number | undefined;
16433
+ }, GetMudTransactionHistoryRes>;
16434
+ readonly getCreditChangeNotifyMsg: EndpointSpec<{
16435
+ readonly $typeName?: undefined;
16436
+ }, GetCreditChangeNotifyMsgRes>;
16437
+ readonly removeCreditChangeNotifyMsg: EndpointSpec<{
16438
+ readonly $typeName?: undefined;
16439
+ proposalId?: string | undefined;
16440
+ }, RemoveCreditChangeNotifyMsgRes>;
16441
+ readonly getPlatformPlayerFreeSpinListing: EndpointSpec<{
16442
+ readonly $typeName?: undefined;
16443
+ dateTimeRangeFilter?: (DateTimeRangeFilter | {
16444
+ readonly $typeName?: undefined;
16445
+ startTime?: string | undefined;
16446
+ endTime?: string | undefined;
16447
+ }) | undefined;
16448
+ pagination?: (Pagination | {
16449
+ readonly $typeName?: undefined;
16450
+ limit?: number | undefined;
16451
+ offset?: number | undefined;
16452
+ }) | undefined;
16453
+ }, GetPlatformPlayerFreeSpinListingRes>;
16454
+ };
16455
+ readonly player: {
16456
+ readonly getVerificationStatus: EndpointSpec<{
16457
+ readonly $typeName?: undefined;
16458
+ }, GetVerificationStatusRes>;
16459
+ readonly verifyEmail: EndpointSpec<{
16460
+ readonly $typeName?: undefined;
16461
+ code?: string | undefined;
16462
+ email?: string | undefined;
16463
+ }, BaseResponse>;
16464
+ readonly getMergingList: EndpointSpec<{
16465
+ readonly $typeName?: undefined;
16466
+ }, GetMergingListRes>;
16467
+ readonly mergePlayerAccount: EndpointSpec<{
16468
+ readonly $typeName?: undefined;
16469
+ targetPlayerId?: string | undefined;
16470
+ }, BaseResponse>;
16471
+ readonly verifyMergePlayerCode: EndpointSpec<{
16472
+ readonly $typeName?: undefined;
16473
+ code?: string | undefined;
16474
+ }, BaseResponse>;
16475
+ readonly getMergingListPendingProposalCount: EndpointSpec<{
16476
+ readonly $typeName?: undefined;
16477
+ }, GetMergingListPendingProposalCountRes>;
16478
+ readonly checkMergePlayerProposal: EndpointSpec<{
16479
+ readonly $typeName?: undefined;
16480
+ playerId?: string | undefined;
16481
+ }, BaseResponse>;
16482
+ readonly playerBypassKycRestriction: EndpointSpec<{
16483
+ readonly $typeName?: undefined;
16484
+ }, PlayerBypassKycRestrictionRes>;
16485
+ readonly checkPlayerLoginStatus: EndpointSpec<{
16486
+ readonly $typeName?: undefined;
16487
+ }, CheckPlayerLoginStatusRes>;
16488
+ readonly getPlayerProfileByJwt: EndpointSpec<{
16489
+ readonly $typeName?: undefined;
16490
+ }, GetPlayerProfileByJwtRes>;
16491
+ readonly updatePassword: EndpointSpec<{
16492
+ readonly $typeName?: undefined;
16493
+ oldPassword?: string | undefined;
16494
+ newPassword?: string | undefined;
16495
+ confirmNewPassword?: string | undefined;
16496
+ code?: string | undefined;
16497
+ }, BaseResponse>;
16498
+ readonly getPlayerInfoForSportsForum: EndpointSpec<{
16499
+ readonly $typeName?: undefined;
16500
+ }, GetPlayerInfoForSportsForumRes>;
16501
+ readonly getWithdrawalInfo: EndpointSpec<{
16502
+ readonly $typeName?: undefined;
16503
+ }, GetWithdrawalInfoRes>;
16504
+ readonly getDepositInfo: EndpointSpec<{
16505
+ readonly $typeName?: undefined;
16506
+ }, GetDepositInfoRes>;
16507
+ readonly getAccountCombineInfo: EndpointSpec<{
16508
+ readonly $typeName?: undefined;
16509
+ }, GetAccountCombineInfoRes>;
16510
+ readonly getViberStatus: EndpointSpec<{
16511
+ readonly $typeName?: undefined;
16512
+ phone?: string | undefined;
16513
+ platformId?: string | undefined;
16514
+ }, GetViberStatusRes>;
16515
+ readonly updateAdditionalInfo: EndpointSpec<{
16516
+ readonly $typeName?: undefined;
16517
+ realName?: string | undefined;
16518
+ nationality?: string | undefined;
16519
+ placeOfBirth?: string | undefined;
16520
+ dob?: string | undefined;
16521
+ natureOfWork?: string | undefined;
16522
+ sourceOfFunds?: string | undefined;
16523
+ photoId?: string | undefined;
16524
+ photoIdType?: PlayerPhotoIdType$1 | undefined;
16525
+ verifyPhoto?: string | undefined;
16526
+ faceVerification?: string | undefined;
16527
+ idCardNumber?: string | undefined;
16528
+ memberCardId?: string | undefined;
16529
+ address?: string | undefined;
16530
+ currentAddress?: string | undefined;
16531
+ deviceType?: number | undefined;
16532
+ nickname?: string | undefined;
16533
+ barangay?: string | undefined;
16534
+ province?: string | undefined;
16535
+ city?: string | undefined;
16536
+ postcode?: string | undefined;
16537
+ playerAvatar?: string | undefined;
16538
+ isVerifyPhoto?: boolean | undefined;
16539
+ isKycInfo?: boolean | undefined;
16540
+ docType?: string | undefined;
16541
+ bizId?: string | undefined;
16542
+ certName?: string | undefined;
16543
+ }, BaseResponse>;
16544
+ readonly playerGetPlayerProfileByJwt: EndpointSpec<{
16545
+ readonly $typeName?: undefined;
16546
+ }, GetPlayerProfileByJwtRes>;
16547
+ readonly playerUpdatePassword: EndpointSpec<{
16548
+ readonly $typeName?: undefined;
16549
+ oldPassword?: string | undefined;
16550
+ newPassword?: string | undefined;
16551
+ confirmNewPassword?: string | undefined;
16552
+ code?: string | undefined;
16553
+ }, BaseResponse>;
16554
+ readonly playerGetPlayerInfoForSportsForum: EndpointSpec<{
16555
+ readonly $typeName?: undefined;
16556
+ }, GetPlayerInfoForSportsForumRes>;
16557
+ readonly playerGetWithdrawalInfo: EndpointSpec<{
16558
+ readonly $typeName?: undefined;
16559
+ }, GetWithdrawalInfoRes>;
16560
+ readonly playerGetDepositInfo: EndpointSpec<{
16561
+ readonly $typeName?: undefined;
16562
+ }, GetDepositInfoRes>;
16563
+ readonly playerGetAccountCombineInfo: EndpointSpec<{
16564
+ readonly $typeName?: undefined;
16565
+ }, GetAccountCombineInfoRes>;
16566
+ readonly playerGetViberStatus: EndpointSpec<{
16567
+ readonly $typeName?: undefined;
16568
+ phone?: string | undefined;
16569
+ platformId?: string | undefined;
16570
+ }, GetViberStatusRes>;
16571
+ readonly updatePasswordAndNotify: EndpointSpec<{
16572
+ readonly $typeName?: undefined;
16573
+ playerObjId?: string | undefined;
16574
+ playerId?: string | undefined;
16575
+ platformId?: string | undefined;
16576
+ newPassword?: string | undefined;
16577
+ playerType?: number | undefined;
16578
+ resetPassword?: boolean | undefined;
16579
+ playerName?: string | undefined;
16580
+ inputDevice?: number | undefined;
16581
+ refId?: string | undefined;
16582
+ roomId?: string | undefined;
16583
+ }, BaseResponse>;
16584
+ readonly resetPasswordFg: EndpointSpec<{
16585
+ readonly $typeName?: undefined;
16586
+ phone?: string | undefined;
16587
+ platformId?: string | undefined;
16588
+ newPassword?: string | undefined;
16589
+ confirmNewPassword?: string | undefined;
16590
+ code?: number | undefined;
16591
+ }, BaseResponse>;
16592
+ readonly updateDob: EndpointSpec<{
16593
+ readonly $typeName?: undefined;
16594
+ dob?: string | undefined;
16595
+ }, BaseResponse>;
16596
+ readonly updatePlaceOfBirth: EndpointSpec<{
16597
+ readonly $typeName?: undefined;
16598
+ placeOfBirth?: string | undefined;
16599
+ }, BaseResponse>;
16600
+ readonly updateGender: EndpointSpec<{
16601
+ readonly $typeName?: undefined;
16602
+ gender?: UpdateGenderReq_Gender | undefined;
16603
+ }, BaseResponse>;
16604
+ readonly updateNickname: EndpointSpec<{
16605
+ readonly $typeName?: undefined;
16606
+ nickname?: string | undefined;
16607
+ }, BaseResponse>;
16608
+ readonly updateEmail: EndpointSpec<{
16609
+ readonly $typeName?: undefined;
16610
+ email?: string | undefined;
16611
+ oldEmail?: string | undefined;
16612
+ code?: string | undefined;
16613
+ }, BaseResponse>;
16614
+ readonly updateAddress: EndpointSpec<{
16615
+ readonly $typeName?: undefined;
16616
+ address?: string | undefined;
16617
+ currentAddress?: string | undefined;
16618
+ city?: string | undefined;
16619
+ province?: string | undefined;
16620
+ postcode?: string | undefined;
16621
+ }, BaseResponse>;
16622
+ readonly updatePhone: EndpointSpec<{
16623
+ readonly $typeName?: undefined;
16624
+ phone?: string | undefined;
16625
+ code?: string | undefined;
16626
+ }, BaseResponse>;
16627
+ readonly updatePlayerAvatar: EndpointSpec<{
16628
+ readonly $typeName?: undefined;
16629
+ playerAvatar?: string | undefined;
16630
+ }, BaseResponse>;
16631
+ readonly updateEKyc: EndpointSpec<{
16632
+ readonly $typeName?: undefined;
16633
+ step?: UpdateEKycReq_Step | undefined;
16634
+ dob?: string | undefined;
16635
+ placeOfBirth?: string | undefined;
16636
+ firstName?: string | undefined;
16637
+ middleName?: string | undefined;
16638
+ lastName?: string | undefined;
16639
+ fullName?: string | undefined;
16640
+ natureOfWork?: string | undefined;
16641
+ sourceOfFunds?: string | undefined;
16642
+ nationality?: UpdateEKycReq_PlayerNationality | undefined;
16643
+ address?: string | undefined;
16644
+ playerProvince?: string | undefined;
16645
+ playerCity?: string | undefined;
16646
+ photoIdType?: UpdateEKycReq_PlayerPhotoIdType | undefined;
16647
+ photoId?: string | undefined;
16648
+ verifyPhoto?: string | undefined;
16649
+ }, BaseResponse>;
16650
+ readonly getSmsStatus: EndpointSpec<{
16651
+ readonly $typeName?: undefined;
16652
+ }, GetSmsStatusRes>;
16653
+ readonly updateSmsStatus: EndpointSpec<{
16654
+ readonly $typeName?: undefined;
16655
+ smsId?: number | undefined;
16656
+ status?: boolean | undefined;
16657
+ }, BaseResponse>;
16658
+ readonly getAllLevel: EndpointSpec<{
16659
+ readonly $typeName?: undefined;
16660
+ }, GetAllLevelRes>;
16661
+ readonly getPlayerProgress: EndpointSpec<{
16662
+ readonly $typeName?: undefined;
16663
+ }, GetPlayerProgressRes>;
16664
+ readonly verifyPhoneNumberWithSms: EndpointSpec<{
16665
+ readonly $typeName?: undefined;
16666
+ code?: string | undefined;
16667
+ platformId?: string | undefined;
16668
+ }, BaseResponse>;
16669
+ readonly updateSourceOfFunds: EndpointSpec<{
16670
+ readonly $typeName?: undefined;
16671
+ sourceOfFunds?: string | undefined;
16672
+ }, BaseResponse>;
16673
+ readonly updateNatureOfWork: EndpointSpec<{
16674
+ readonly $typeName?: undefined;
16675
+ natureOfWork?: string | undefined;
16676
+ }, BaseResponse>;
16677
+ readonly updateRealName: EndpointSpec<{
16678
+ readonly $typeName?: undefined;
16679
+ firstName?: string | undefined;
16680
+ middleName?: string | undefined;
16681
+ lastName?: string | undefined;
16682
+ }, BaseResponse>;
16683
+ readonly checkIsValidSmsCode: EndpointSpec<{
16684
+ readonly $typeName?: undefined;
16685
+ code?: string | undefined;
16686
+ phone?: string | undefined;
16687
+ platformId?: string | undefined;
16688
+ purpose?: CheckIsValidSmsCodeReq_Purpose | undefined;
16689
+ }, BaseResponse>;
16690
+ readonly getAllPlayerLevel: EndpointSpec<{
16691
+ readonly $typeName?: undefined;
16692
+ platformId?: string | undefined;
16693
+ }, GetAllPlayerLevelRes>;
16694
+ readonly getPlayerLevelWithPlayerLevelObjId: EndpointSpec<{
16695
+ readonly $typeName?: undefined;
16696
+ playerLevelObjId?: string | undefined;
16697
+ }, GetPlayerLevelWithPlayerLevelObjIdRes>;
16698
+ readonly getCasinoPlayerByPlayerId: EndpointSpec<{
16699
+ readonly $typeName?: undefined;
16700
+ playerId?: string | undefined;
16701
+ memberCardId?: string | undefined;
16702
+ }, GetCasinoPlayerByPlayerIdRes>;
16703
+ readonly getCasinoPlayers: EndpointSpec<{
16704
+ readonly $typeName?: undefined;
16705
+ platformId?: string | undefined;
16706
+ }, GetCasinoPlayersRes>;
16707
+ readonly getCasinoPlayerByMemberCardId: EndpointSpec<{
16708
+ readonly $typeName?: undefined;
16709
+ memberCardId?: string | undefined;
16710
+ }, GetCasinoPlayerByMemberCardIdRes>;
16711
+ readonly updateCasinoPlayerByPlayerId: EndpointSpec<{
16712
+ readonly $typeName?: undefined;
16713
+ playerId?: string | undefined;
16714
+ email?: string | undefined;
16715
+ realName?: string | undefined;
16716
+ nationality?: string | undefined;
16717
+ country?: string | undefined;
16718
+ placeOfBirth?: string | undefined;
16719
+ dob?: string | undefined;
16720
+ natureOfWork?: string | undefined;
16721
+ sourceOfFunds?: string | undefined;
16722
+ photoId?: string | undefined;
16723
+ photoIdType?: PlayerPhotoIdType | undefined;
16724
+ idCardNumber?: string | undefined;
16725
+ memberCardId?: string | undefined;
16726
+ address?: string | undefined;
16727
+ currentAddress?: string | undefined;
16728
+ playerProvince?: string | undefined;
16729
+ playerCity?: string | undefined;
16730
+ verifyPhoto?: string | undefined;
16731
+ gender?: boolean | undefined;
16732
+ registrationForm?: string | undefined;
16733
+ verificationForm?: string | undefined;
16734
+ }, UpdateCasinoPlayerByPlayerIdRes>;
16735
+ readonly updatePlayerStatusByPlayerId: EndpointSpec<{
16736
+ readonly $typeName?: undefined;
16737
+ playerId?: string | undefined;
16738
+ status?: string | undefined;
16739
+ }, UpdatePlayerStatusByPlayerIdRes>;
16740
+ readonly getBetRecordsByPlayerId: EndpointSpec<{
16741
+ readonly $typeName?: undefined;
16742
+ playerId?: string | undefined;
16743
+ startTime?: string | undefined;
16744
+ endTime?: string | undefined;
16745
+ }, GetBetRecordsByPlayerIdRes>;
16746
+ readonly getPlayerInfoWithPlayerId: EndpointSpec<{
16747
+ readonly $typeName?: undefined;
16748
+ playerId?: string | undefined;
16749
+ }, GetPlayerInfoWithPlayerIdRes>;
16750
+ readonly updatePlayerBaccaratTicket: EndpointSpec<{
16751
+ readonly $typeName?: undefined;
16752
+ playerId?: string | undefined;
16753
+ }, UpdatePlayerBaccaratTicketRes>;
16754
+ readonly getPlayerPhoneAndBankInfo: EndpointSpec<{
16755
+ readonly $typeName?: undefined;
16756
+ }, GetPlayerPhoneAndBankInfoRes>;
16757
+ readonly getPlayerKYCAndWithdrawStatus: EndpointSpec<{
16758
+ readonly $typeName?: undefined;
16759
+ playerId?: string | undefined;
16760
+ }, GetPlayerKYCAndWithdrawStatusRes>;
16761
+ readonly getPlayerValidCreditByPlayerObjId: EndpointSpec<{
16762
+ readonly $typeName?: undefined;
16763
+ playerId?: string | undefined;
16764
+ }, GetPlayerValidCreditByPlayerObjIdRes>;
16765
+ readonly getPlayerIdAndName: EndpointSpec<{
16766
+ readonly $typeName?: undefined;
16767
+ }, GetPlayerIdAndNameRes>;
16768
+ readonly getFreeSpinPlayerInfo: EndpointSpec<{
16769
+ readonly $typeName?: undefined;
16770
+ }, GetFreeSpinPlayerInfoRes>;
16771
+ readonly getPlayerInfo: EndpointSpec<{
16772
+ readonly $typeName?: undefined;
16773
+ playerId?: string | undefined;
16774
+ name?: string | undefined;
16775
+ }, GetPlayerInfoRes>;
16776
+ readonly getPlayerEmailByPlayerId: EndpointSpec<{
16777
+ readonly $typeName?: undefined;
16778
+ playerId?: string | undefined;
16779
+ }, GetPlayerEmailByPlayerIdRes>;
16780
+ readonly getPlayerIdAndLevelByPhone: EndpointSpec<{
16781
+ readonly $typeName?: undefined;
16782
+ phones?: string[] | undefined;
16783
+ platformId?: string | undefined;
16784
+ }, GetPlayerIdAndLevelByPhoneRes>;
16785
+ readonly updateViberStatus: EndpointSpec<{
16786
+ readonly $typeName?: undefined;
16787
+ playerId?: string | undefined;
16788
+ platformId?: string | undefined;
16789
+ status?: boolean | undefined;
16790
+ }, BaseResponse>;
16791
+ readonly getPlayerAvatars: EndpointSpec<{
16792
+ readonly $typeName?: undefined;
16793
+ }, GetPlayerAvatarsRes>;
16794
+ readonly getKycParamsConfig: EndpointSpec<{
16795
+ readonly $typeName?: undefined;
16796
+ platformId?: string | undefined;
16797
+ }, GetKycParamsConfigRes>;
16798
+ readonly ekycInit: EndpointSpec<{
16799
+ readonly $typeName?: undefined;
16800
+ docType?: string | undefined;
16801
+ playerId?: string | undefined;
16802
+ type?: string | undefined;
16803
+ metaInfo?: string | undefined;
16804
+ h5ModeConfig?: {
16805
+ [key: string]: string;
16806
+ } | undefined;
16807
+ metaInfoApp?: string | undefined;
16808
+ pages?: string | undefined;
16809
+ pageConfig?: string | undefined;
16810
+ productConfig?: (EkycInitReq_ProductConfig | {
16811
+ readonly $typeName?: undefined;
16812
+ allowExpiredDocument?: string | undefined;
16813
+ }) | undefined;
16814
+ operationMode?: string | undefined;
16815
+ }, EkycInitRes>;
16816
+ readonly ekycResult: EndpointSpec<{
16817
+ readonly $typeName?: undefined;
16818
+ bizId?: string | undefined;
16819
+ transactionId?: string | undefined;
16820
+ type?: string | undefined;
16821
+ isReturnImage?: string | undefined;
16822
+ platformId?: string | undefined;
16823
+ docType?: string | undefined;
16824
+ }, EkycResultRes>;
16825
+ };
16826
+ readonly promotion: {
16827
+ readonly getTodayLiveDrawEvents: EndpointSpec<{
16828
+ readonly $typeName?: undefined;
16829
+ }, GetTodayLiveDrawEventsRes>;
16830
+ readonly getTodayCurrentRoundLiveDrawEvents: EndpointSpec<{
16831
+ readonly $typeName?: undefined;
16832
+ }, GetTodayCurrentRoundLiveDrawEventsRes>;
16833
+ readonly startLiveDrawEvent: EndpointSpec<{
16834
+ readonly $typeName?: undefined;
16835
+ }, StartLiveDrawEventRes>;
16836
+ readonly redrawLiveDrawEvent: EndpointSpec<{
16837
+ readonly $typeName?: undefined;
16838
+ }, RedrawLiveDrawEventRes>;
16839
+ readonly confirmLiveDraw: EndpointSpec<{
16840
+ readonly $typeName?: undefined;
16841
+ }, ConfirmLiveDrawRes>;
16842
+ readonly liveDrawEventPhoneCallPlayer: EndpointSpec<{
16843
+ readonly $typeName?: undefined;
16844
+ eventId?: string | undefined;
16845
+ }, LiveDrawEventPhoneCallPlayerRes>;
16846
+ readonly getLiveDrawEventWinnerList: EndpointSpec<{
16847
+ readonly $typeName?: undefined;
16848
+ eventId?: string | undefined;
16849
+ currentDrawSession?: number | undefined;
16850
+ }, GetLiveDrawEventWinnerListRes>;
16851
+ readonly makePhoneCall: EndpointSpec<{
16852
+ readonly $typeName?: undefined;
16853
+ playerId?: string | undefined;
16854
+ }, MakePhoneCallRes>;
16855
+ readonly getCharityDetail: EndpointSpec<{
16856
+ readonly $typeName?: undefined;
16857
+ }, GetCharityDetailRes>;
16858
+ readonly getPlayerCharityDetail: EndpointSpec<{
16859
+ readonly $typeName?: undefined;
16860
+ }, GetPlayerCharityDetailRes>;
16861
+ readonly getPlayerRewardProgress: EndpointSpec<{
16862
+ readonly $typeName?: undefined;
16863
+ platformId?: string | undefined;
16864
+ providerId?: string | undefined;
16865
+ }, GetPlayerRewardProgressRes>;
16866
+ readonly claimReward: EndpointSpec<{
16867
+ readonly $typeName?: undefined;
16868
+ eventId?: string | undefined;
16869
+ session?: number | undefined;
16870
+ }, ClaimRewardRes>;
16871
+ readonly getLuckyDrawRewardList: EndpointSpec<{
16872
+ readonly $typeName?: undefined;
16873
+ tier?: string | undefined;
16874
+ startTime?: string | undefined;
16875
+ }, GetLuckyDrawRewardListRes>;
16876
+ readonly getPlayerTicketList: EndpointSpec<{
16877
+ readonly $typeName?: undefined;
16878
+ }, GetPlayerTicketListRes>;
16879
+ readonly getPlayerInRiskList: EndpointSpec<{
16880
+ readonly $typeName?: undefined;
16881
+ }, GetPlayerInRiskListRes>;
16882
+ readonly claimCampaignPromoCode: EndpointSpec<{
16883
+ readonly $typeName?: undefined;
16884
+ deviceType?: DeviceType | undefined;
16885
+ eventId?: string | undefined;
16886
+ }, ClaimCampaignPromoCodeRes>;
16887
+ readonly hasReceiveEventCampaignReward: EndpointSpec<{
16888
+ readonly $typeName?: undefined;
16889
+ eventId?: string | undefined;
16890
+ deviceType?: DeviceType | undefined;
16891
+ }, HasReceiveEventCampaignRewardRes>;
16892
+ readonly getPlayerFreeSpinInfo: EndpointSpec<{
16893
+ readonly $typeName?: undefined;
16894
+ freeSpinSessionToken?: string | undefined;
16895
+ }, GetPlayerFreeSpinInfoRes>;
16896
+ readonly getFreeSpinHistory: EndpointSpec<{
16897
+ readonly $typeName?: undefined;
16898
+ type?: HistoryReqType | undefined;
16899
+ }, GetFreeSpinHistoryRes>;
16900
+ readonly getCurrentMissionConfig: EndpointSpec<{
16901
+ readonly $typeName?: undefined;
16902
+ }, GetCurrentMissionConfigRes>;
16903
+ readonly getPlayerTaskProgress: EndpointSpec<{
16904
+ readonly $typeName?: undefined;
16905
+ eventId?: string | undefined;
16906
+ }, GetPlayerTaskProgressRes>;
16907
+ readonly claimTaskReward: EndpointSpec<{
16908
+ readonly $typeName?: undefined;
16909
+ eventId?: string | undefined;
16910
+ rewardId?: string | undefined;
16911
+ taskId?: string | undefined;
16912
+ }, ClaimTaskRewardRes>;
16913
+ readonly checkAndCreateMission: EndpointSpec<{
16914
+ readonly $typeName?: undefined;
16915
+ playerId?: string | undefined;
16916
+ }, CheckAndCreateMissionRes>;
16917
+ readonly getCurrentCardEvents: EndpointSpec<{
16918
+ readonly $typeName?: undefined;
16919
+ }, GetCurrentCardEventsRes>;
16920
+ readonly playerReceiveEgg: EndpointSpec<{
16921
+ readonly $typeName?: undefined;
16922
+ eventObjId?: string | undefined;
16923
+ rewardObjId?: string | undefined;
16924
+ }, PlayerReceiveEggRes>;
16925
+ readonly getConsumptionProgress: EndpointSpec<{
16926
+ readonly $typeName?: undefined;
16927
+ platformId?: string | undefined;
16928
+ eventObjId?: string | undefined;
16929
+ }, GetConsumptionProgressRes>;
16930
+ readonly playerClaimAllDailyReward: EndpointSpec<{
16931
+ readonly $typeName?: undefined;
16932
+ eventObjId?: string | undefined;
16933
+ }, PlayerClaimAllDailyRewardRes>;
16934
+ readonly claimTimedEventReward: EndpointSpec<{
16935
+ readonly $typeName?: undefined;
16936
+ eventObjId?: string | undefined;
16937
+ }, ClaimTimedEventRewardRes>;
16938
+ readonly getEventRewardHistory: EndpointSpec<{
16939
+ readonly $typeName?: undefined;
16940
+ page?: number | undefined;
16941
+ pageSize?: number | undefined;
16942
+ eventObjId?: string | undefined;
16943
+ rewardObjId?: string | undefined;
16944
+ filterOngoingReward?: boolean | undefined;
16945
+ }, GetEventRewardHistoryRes>;
16946
+ readonly dailyClaimReward: EndpointSpec<{
16947
+ readonly $typeName?: undefined;
16948
+ eventObjId?: string | undefined;
16949
+ }, DailyClaimRewardRes>;
16950
+ readonly queryPlayerEgg: EndpointSpec<{
16951
+ readonly $typeName?: undefined;
16952
+ eventObjId?: string | undefined;
16953
+ queryClaimDate?: boolean | undefined;
16954
+ }, QueryPlayerEggRes>;
16955
+ readonly updateTutorialFlag: EndpointSpec<{
16956
+ readonly $typeName?: undefined;
16957
+ eventObjId?: string | undefined;
16958
+ }, UpdateTutorialFlagRes>;
16959
+ readonly referralAssistance: EndpointSpec<{
16960
+ readonly $typeName?: undefined;
16961
+ eventObjId?: string | undefined;
16962
+ receiverId?: string | undefined;
16963
+ rewardObjId?: string | undefined;
16964
+ platformId?: string | undefined;
16965
+ }, ReferralAssistanceRes>;
16966
+ readonly getSingleRewardInfo: EndpointSpec<{
16967
+ readonly $typeName?: undefined;
16968
+ platformId?: string | undefined;
16969
+ rewardObjId?: string | undefined;
16970
+ eventObjId?: string | undefined;
16971
+ }, GetSingleRewardInfoRes>;
16972
+ readonly getPlayerRedPacketRecords: EndpointSpec<{
16973
+ readonly $typeName?: undefined;
16974
+ dateTimeRangeFilter?: (DateTimeRangeFilter | {
16975
+ readonly $typeName?: undefined;
16976
+ startTime?: string | undefined;
16977
+ endTime?: string | undefined;
16978
+ }) | undefined;
16979
+ pagination?: (Pagination | {
16980
+ readonly $typeName?: undefined;
16981
+ limit?: number | undefined;
16982
+ offset?: number | undefined;
16983
+ }) | undefined;
16984
+ }, GetPlayerRedPacketRecordsRes>;
16985
+ };
16986
+ readonly recommend: {
16987
+ readonly saveSearchHistory: EndpointSpec<{
16988
+ readonly $typeName?: undefined;
16989
+ keyword?: string | undefined;
16990
+ searchFrom?: string | undefined;
16991
+ }, SaveSearchHistoryRes>;
16992
+ readonly getSearchHistories: EndpointSpec<{
16993
+ readonly $typeName?: undefined;
16994
+ }, GetSearchHistoriesRes>;
16995
+ readonly deleteSearchHistory: EndpointSpec<{
16996
+ readonly $typeName?: undefined;
16997
+ keyword?: string | undefined;
16998
+ deleteAll?: boolean | undefined;
16999
+ }, BaseResponse>;
17000
+ readonly searchGames: EndpointSpec<{
17001
+ readonly $typeName?: undefined;
17002
+ keyword?: string | undefined;
17003
+ resourceId?: string | undefined;
17004
+ }, SearchGamesRes>;
17005
+ };
17006
+ readonly riskcontrol: {
17007
+ readonly getPlayerDepositLimitStateOverview: EndpointSpec<{
17008
+ readonly $typeName?: undefined;
17009
+ }, PlayerDepositLimitStateOverviewRes>;
17010
+ readonly updatePlayerDepositLimitSwitch: EndpointSpec<{
17011
+ readonly $typeName?: undefined;
17012
+ depositLimitEnabled?: boolean | undefined;
17013
+ }, UpdatePlayerDepositLimitSwitchRes>;
17014
+ readonly updatePlayerPeriodDepositLimit: EndpointSpec<{
17015
+ readonly $typeName?: undefined;
17016
+ periodDepositLimit?: number | undefined;
17017
+ }, UpdatePlayerPeriodDepositLimitRes>;
17018
+ };
17019
+ readonly userEngagement: {
17020
+ readonly updatePWASubscriptionStatus: EndpointSpec<{
17021
+ readonly $typeName?: undefined;
17022
+ sub?: (UpdatePWASubscriptionStatusReq_Sub | {
17023
+ readonly $typeName?: undefined;
17024
+ endpoint?: string | undefined;
17025
+ expirationTime?: string | undefined;
17026
+ keys?: (UpdatePWASubscriptionStatusReq_Sub_Keys | {
17027
+ readonly $typeName?: undefined;
17028
+ p256dh?: string | undefined;
17029
+ auth?: string | undefined;
17030
+ }) | undefined;
17031
+ }) | undefined;
17032
+ pwaPushEnabled?: boolean | undefined;
17033
+ }, BaseResponse>;
17034
+ };
16293
17035
  };
16294
17036
  type ApiMap = typeof apiMap;
16295
17037