@accelbyte/sdk 0.1.1-alpha.62 → 0.2.0-beta.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/CHANGELOG.md +13 -1
- package/README.md +4 -4
- package/dist/index.browser.es.js +39 -44
- package/dist/index.browser.es.js.map +1 -1
- package/dist/index.d.ts +51797 -54741
- package/dist/index.node.es.js +39 -44
- package/dist/index.node.es.js.map +1 -1
- package/dist/index.node.js +46 -52
- package/dist/index.node.js.map +1 -1
- package/examples/next/README.md +1 -22
- package/examples/next/package.json +1 -1
- package/examples/next/pages/index.tsx +15 -14
- package/examples/next/yarn.lock +9 -9
- package/examples/node/index.mjs +13 -12
- package/examples/node/package.json +1 -1
- package/examples/node/yarn.lock +9 -9
- package/examples/vite/README.md +13 -0
- package/examples/vite/package.json +1 -1
- package/examples/vite/src/Sdk.ts +12 -12
- package/examples/vite/yarn.lock +9 -9
- package/package.json +1 -1
- package/examples/next/.env.example +0 -7
- package/examples/node/.env.example +0 -7
- package/examples/vite/.env.example +0 -5
package/dist/index.node.js
CHANGED
|
@@ -12102,7 +12102,7 @@ const uponRefreshComplete = (error, tokenResponse, onGetUserSession, onSessionEx
|
|
|
12102
12102
|
};
|
|
12103
12103
|
|
|
12104
12104
|
/*
|
|
12105
|
-
* Copyright (c) 2022 AccelByte Inc. All Rights Reserved
|
|
12105
|
+
* Copyright (c) 2022-2023 AccelByte Inc. All Rights Reserved
|
|
12106
12106
|
* This is licensed software from AccelByte Inc, for limitations
|
|
12107
12107
|
* and restrictions contact your company contract manager.
|
|
12108
12108
|
*/
|
|
@@ -18813,7 +18813,7 @@ var rabbitLegacy = {exports: {}};
|
|
|
18813
18813
|
var cryptoJs = cryptoJs$1.exports;
|
|
18814
18814
|
|
|
18815
18815
|
/*
|
|
18816
|
-
* Copyright (c) 2022 AccelByte Inc. All Rights Reserved
|
|
18816
|
+
* Copyright (c) 2022-2023 AccelByte Inc. All Rights Reserved
|
|
18817
18817
|
* This is licensed software from AccelByte Inc, for limitations
|
|
18818
18818
|
* and restrictions contact your company contract manager.
|
|
18819
18819
|
*/
|
|
@@ -20294,7 +20294,7 @@ class UserAuthorization {
|
|
|
20294
20294
|
const axios = Network.create(config);
|
|
20295
20295
|
const data = {
|
|
20296
20296
|
grant_type: 'authorization_code',
|
|
20297
|
-
code
|
|
20297
|
+
code,
|
|
20298
20298
|
code_verifier: codeVerifier,
|
|
20299
20299
|
client_id: this.options.clientId,
|
|
20300
20300
|
redirect_uri: this.options.redirectURI
|
|
@@ -20313,9 +20313,8 @@ class UserAuthorization {
|
|
|
20313
20313
|
const doesMFADataExist = Validate.safeParse(errorResponse.data, MFADataResponse);
|
|
20314
20314
|
if (!doesMFADataExist)
|
|
20315
20315
|
return;
|
|
20316
|
-
|
|
20317
|
-
const {
|
|
20318
|
-
const result = { mfaToken: mfa_token, factors, defaultFactor: default_factor, email };
|
|
20316
|
+
const { mfa_token: mfaToken, factors, default_factor: defaultFactor, email } = errorResponse.data;
|
|
20317
|
+
const result = { mfaToken, factors, defaultFactor, email };
|
|
20319
20318
|
if (BrowserHelper.isOnBrowser()) {
|
|
20320
20319
|
localStorage.setItem(MFA_DATA_STORAGE_KEY, JSON.stringify(result));
|
|
20321
20320
|
}
|
|
@@ -24688,7 +24687,7 @@ const Image = mod.object({
|
|
|
24688
24687
|
* This is licensed software from AccelByte Inc, for limitations
|
|
24689
24688
|
* and restrictions contact your company contract manager.
|
|
24690
24689
|
*/
|
|
24691
|
-
const
|
|
24690
|
+
const Predicate = mod.object({
|
|
24692
24691
|
name: mod.string().nullish(),
|
|
24693
24692
|
predicateType: mod.enum(['EntitlementPredicate', 'SeasonPassPredicate', 'SeasonTierPredicate']).nullish(),
|
|
24694
24693
|
comparison: mod
|
|
@@ -24704,7 +24703,7 @@ const PredicateObject = mod.object({
|
|
|
24704
24703
|
* This is licensed software from AccelByte Inc, for limitations
|
|
24705
24704
|
* and restrictions contact your company contract manager.
|
|
24706
24705
|
*/
|
|
24707
|
-
const ConditionGroup = mod.object({ predicates: mod.array(
|
|
24706
|
+
const ConditionGroup = mod.object({ predicates: mod.array(Predicate).nullish(), operator: mod.enum(['and', 'or']).nullish() });
|
|
24708
24707
|
|
|
24709
24708
|
/*
|
|
24710
24709
|
* Copyright (c) 2022-2023 AccelByte Inc. All Rights Reserved
|
|
@@ -25214,13 +25213,6 @@ const OrderHistoryInfo = mod.object({
|
|
|
25214
25213
|
*/
|
|
25215
25214
|
const OrderHistoryInfoArray = mod.array(OrderHistoryInfo);
|
|
25216
25215
|
|
|
25217
|
-
/*
|
|
25218
|
-
* Copyright (c) 2022-2023 AccelByte Inc. All Rights Reserved
|
|
25219
|
-
* This is licensed software from AccelByte Inc, for limitations
|
|
25220
|
-
* and restrictions contact your company contract manager.
|
|
25221
|
-
*/
|
|
25222
|
-
const ADtoObjectForOrderCreationOptions = mod.object({ skipPriceValidation: mod.boolean().nullish() });
|
|
25223
|
-
|
|
25224
25216
|
/*
|
|
25225
25217
|
* Copyright (c) 2022-2023 AccelByte Inc. All Rights Reserved
|
|
25226
25218
|
* This is licensed software from AccelByte Inc, for limitations
|
|
@@ -25234,6 +25226,13 @@ const CurrencySummary = mod.object({
|
|
|
25234
25226
|
decimals: mod.number().int()
|
|
25235
25227
|
});
|
|
25236
25228
|
|
|
25229
|
+
/*
|
|
25230
|
+
* Copyright (c) 2022-2023 AccelByte Inc. All Rights Reserved
|
|
25231
|
+
* This is licensed software from AccelByte Inc, for limitations
|
|
25232
|
+
* and restrictions contact your company contract manager.
|
|
25233
|
+
*/
|
|
25234
|
+
const OrderCreationOptions = mod.object({ skipPriceValidation: mod.boolean().nullish() });
|
|
25235
|
+
|
|
25237
25236
|
/*
|
|
25238
25237
|
* Copyright (c) 2022-2023 AccelByte Inc. All Rights Reserved
|
|
25239
25238
|
* This is licensed software from AccelByte Inc, for limitations
|
|
@@ -25249,7 +25248,7 @@ const OrderInfo = mod.object({
|
|
|
25249
25248
|
quantity: mod.number().int(),
|
|
25250
25249
|
price: mod.number().int(),
|
|
25251
25250
|
discountedPrice: mod.number().int(),
|
|
25252
|
-
creationOptions:
|
|
25251
|
+
creationOptions: OrderCreationOptions.nullish(),
|
|
25253
25252
|
paymentProvider: mod.enum(['WALLET', 'XSOLLA', 'ADYEN', 'STRIPE', 'CHECKOUT', 'ALIPAY', 'WXPAY', 'PAYPAL']).nullish(),
|
|
25254
25253
|
paymentMethod: mod.string().nullish(),
|
|
25255
25254
|
tax: mod.number().int().nullish(),
|
|
@@ -30121,7 +30120,7 @@ const ItemCreate = mod.object({
|
|
|
30121
30120
|
* This is licensed software from AccelByte Inc, for limitations
|
|
30122
30121
|
* and restrictions contact your company contract manager.
|
|
30123
30122
|
*/
|
|
30124
|
-
const
|
|
30123
|
+
const AvailableComparison = mod.object({
|
|
30125
30124
|
comparison: mod
|
|
30126
30125
|
.enum(['is', 'isNot', 'isGreaterThan', 'isGreaterThanOrEqual', 'isLessThan', 'isLessThanOrEqual', 'includes', 'excludes'])
|
|
30127
30126
|
.nullish(),
|
|
@@ -30133,9 +30132,9 @@ const AvailableComparisonObject = mod.object({
|
|
|
30133
30132
|
* This is licensed software from AccelByte Inc, for limitations
|
|
30134
30133
|
* and restrictions contact your company contract manager.
|
|
30135
30134
|
*/
|
|
30136
|
-
const
|
|
30135
|
+
const AvailablePredicate = mod.object({
|
|
30137
30136
|
predicateType: mod.enum(['EntitlementPredicate', 'SeasonPassPredicate', 'SeasonTierPredicate']).nullish(),
|
|
30138
|
-
availableComparisons: mod.array(
|
|
30137
|
+
availableComparisons: mod.array(AvailableComparison).nullish(),
|
|
30139
30138
|
valueType: mod.enum(['List', 'Number', 'String']).nullish(),
|
|
30140
30139
|
showAnyOf: mod.boolean().nullish()
|
|
30141
30140
|
});
|
|
@@ -30873,22 +30872,22 @@ const AchievementInfo = mod.object({
|
|
|
30873
30872
|
* This is licensed software from AccelByte Inc, for limitations
|
|
30874
30873
|
* and restrictions contact your company contract manager.
|
|
30875
30874
|
*/
|
|
30876
|
-
const
|
|
30875
|
+
const XblUserAchievements = mod.object({ achievements: mod.array(AchievementInfo).nullish() });
|
|
30877
30876
|
|
|
30878
30877
|
/*
|
|
30879
30878
|
* Copyright (c) 2022-2023 AccelByte Inc. All Rights Reserved
|
|
30880
30879
|
* This is licensed software from AccelByte Inc, for limitations
|
|
30881
30880
|
* and restrictions contact your company contract manager.
|
|
30882
30881
|
*/
|
|
30883
|
-
const
|
|
30882
|
+
const Achievement = mod.object({ id: mod.string().nullish(), value: mod.number().int().nullish() });
|
|
30884
30883
|
|
|
30885
30884
|
/*
|
|
30886
30885
|
* Copyright (c) 2022-2023 AccelByte Inc. All Rights Reserved
|
|
30887
30886
|
* This is licensed software from AccelByte Inc, for limitations
|
|
30888
30887
|
* and restrictions contact your company contract manager.
|
|
30889
30888
|
*/
|
|
30890
|
-
const
|
|
30891
|
-
achievements: mod.array(
|
|
30889
|
+
const XblAchievementUpdateRequest = mod.object({
|
|
30890
|
+
achievements: mod.array(Achievement).nullish(),
|
|
30892
30891
|
serviceConfigId: mod.string().nullish(),
|
|
30893
30892
|
titleId: mod.string().nullish(),
|
|
30894
30893
|
xboxUserId: mod.string().nullish()
|
|
@@ -30899,17 +30898,7 @@ const ADtoObjectForUpdateXboxAchievementCompletePercentageApi = mod.object({
|
|
|
30899
30898
|
* This is licensed software from AccelByte Inc, for limitations
|
|
30900
30899
|
* and restrictions contact your company contract manager.
|
|
30901
30900
|
*/
|
|
30902
|
-
const
|
|
30903
|
-
|
|
30904
|
-
/*
|
|
30905
|
-
* Copyright (c) 2022-2023 AccelByte Inc. All Rights Reserved
|
|
30906
|
-
* This is licensed software from AccelByte Inc, for limitations
|
|
30907
|
-
* and restrictions contact your company contract manager.
|
|
30908
|
-
*/
|
|
30909
|
-
const ADtoObjectForUnlockSteamAchievementApi = mod.object({
|
|
30910
|
-
steamUserId: mod.string().nullish(),
|
|
30911
|
-
achievements: mod.array(SteamAchievementRequest).nullish()
|
|
30912
|
-
});
|
|
30901
|
+
const SteamAchievementUpdateRequest = mod.object({ steamUserId: mod.string().nullish(), achievements: mod.array(Achievement).nullish() });
|
|
30913
30902
|
|
|
30914
30903
|
/*
|
|
30915
30904
|
* Copyright (c) 2022-2023 AccelByte Inc. All Rights Reserved
|
|
@@ -31542,7 +31531,7 @@ const Order = mod.object({
|
|
|
31542
31531
|
'DELETED'
|
|
31543
31532
|
])
|
|
31544
31533
|
.nullish(),
|
|
31545
|
-
creationOptions:
|
|
31534
|
+
creationOptions: OrderCreationOptions.nullish(),
|
|
31546
31535
|
sandbox: mod.boolean().nullish(),
|
|
31547
31536
|
itemId: mod.string().nullish(),
|
|
31548
31537
|
quantity: mod.number().int().nullish(),
|
|
@@ -31695,7 +31684,7 @@ const AdminOrderCreate = mod.object({
|
|
|
31695
31684
|
ext: mod.record(mod.any()).nullish(),
|
|
31696
31685
|
sandbox: mod.boolean().nullish(),
|
|
31697
31686
|
platform: mod.enum(['Playstation', 'Xbox', 'Steam', 'Epic', 'IOS', 'GooglePlay', 'Nintendo', 'Other']).nullish(),
|
|
31698
|
-
options:
|
|
31687
|
+
options: OrderCreationOptions.nullish(),
|
|
31699
31688
|
currencyNamespace: mod.string().nullish()
|
|
31700
31689
|
});
|
|
31701
31690
|
|
|
@@ -32476,12 +32465,7 @@ const RevokeCurrency = mod.object({
|
|
|
32476
32465
|
* This is licensed software from AccelByte Inc, for limitations
|
|
32477
32466
|
* and restrictions contact your company contract manager.
|
|
32478
32467
|
*/
|
|
32479
|
-
const RevokeEntitlement = mod.object({
|
|
32480
|
-
entitlementId: mod.string().nullish(),
|
|
32481
|
-
ownerId: mod.string().nullish(),
|
|
32482
|
-
type: mod.enum(['DURABLE', 'CONSUMABLE']).nullish(),
|
|
32483
|
-
clazz: mod.enum(['APP', 'ENTITLEMENT', 'CODE', 'SUBSCRIPTION', 'MEDIA', 'OPTIONBOX', 'LOOTBOX']).nullish()
|
|
32484
|
-
});
|
|
32468
|
+
const RevokeEntitlement = mod.object({ entitlementId: mod.string().nullish() });
|
|
32485
32469
|
|
|
32486
32470
|
/*
|
|
32487
32471
|
* Copyright (c) 2022-2023 AccelByte Inc. All Rights Reserved
|
|
@@ -38752,6 +38736,17 @@ mod.enum([
|
|
|
38752
38736
|
CommonValidationErrorType.enum.alreadyUsed
|
|
38753
38737
|
]);
|
|
38754
38738
|
|
|
38739
|
+
/*
|
|
38740
|
+
* Copyright (c) 2020. AccelByte Inc. All Rights Reserved
|
|
38741
|
+
* This is licensed software from AccelByte Inc, for limitations
|
|
38742
|
+
* and restrictions contact your company contract manager.
|
|
38743
|
+
*/
|
|
38744
|
+
mod.enum([
|
|
38745
|
+
...ValidateLengthErrorType.options,
|
|
38746
|
+
CommonValidationErrorType.enum.invalidFormat,
|
|
38747
|
+
CommonValidationErrorType.enum.alreadyUsed
|
|
38748
|
+
]);
|
|
38749
|
+
|
|
38755
38750
|
/*
|
|
38756
38751
|
* Copyright (c) 2021 AccelByte Inc. All Rights Reserved.
|
|
38757
38752
|
* This is licensed software from AccelByte Inc, for limitations
|
|
@@ -39412,7 +39407,7 @@ const PageConfig = mod.object({
|
|
|
39412
39407
|
});
|
|
39413
39408
|
|
|
39414
39409
|
/*
|
|
39415
|
-
* Copyright (c) 2022 AccelByte Inc. All Rights Reserved
|
|
39410
|
+
* Copyright (c) 2022-2023 AccelByte Inc. All Rights Reserved
|
|
39416
39411
|
* This is licensed software from AccelByte Inc, for limitations
|
|
39417
39412
|
* and restrictions contact your company contract manager.
|
|
39418
39413
|
*/
|
|
@@ -39775,16 +39770,13 @@ exports.ADtoForUnbanUserApiCall = ADtoForUnbanUserApiCall;
|
|
|
39775
39770
|
exports.ADtoForUpdateEqu8ConfigApiCall = ADtoForUpdateEqu8ConfigApiCall;
|
|
39776
39771
|
exports.ADtoObjectForEqu8UserBanStatus = ADtoObjectForEqu8UserBanStatus;
|
|
39777
39772
|
exports.ADtoObjectForEqu8UserStatus = ADtoObjectForEqu8UserStatus;
|
|
39778
|
-
exports.ADtoObjectForOrderCreationOptions = ADtoObjectForOrderCreationOptions;
|
|
39779
|
-
exports.ADtoObjectForQueryingXboxUserAchievements = ADtoObjectForQueryingXboxUserAchievements;
|
|
39780
|
-
exports.ADtoObjectForUnlockSteamAchievementApi = ADtoObjectForUnlockSteamAchievementApi;
|
|
39781
|
-
exports.ADtoObjectForUpdateXboxAchievementCompletePercentageApi = ADtoObjectForUpdateXboxAchievementCompletePercentageApi;
|
|
39782
39773
|
exports.ARCH = ARCH;
|
|
39783
39774
|
exports.Accelbyte = Accelbyte;
|
|
39784
39775
|
exports.AcceptAgreementRequest = AcceptAgreementRequest;
|
|
39785
39776
|
exports.AcceptAgreementResponse = AcceptAgreementResponse;
|
|
39786
39777
|
exports.AcceptedPoliciesRequest = AcceptedPoliciesRequest;
|
|
39787
39778
|
exports.AccountProgressionInfo = AccountProgressionInfo;
|
|
39779
|
+
exports.Achievement = Achievement;
|
|
39788
39780
|
exports.AchievementInfo = AchievementInfo;
|
|
39789
39781
|
exports.Action = Action;
|
|
39790
39782
|
exports.AddCountryGroupRequest = AddCountryGroupRequest;
|
|
@@ -39812,9 +39804,9 @@ exports.AssignUserV4Request = AssignUserV4Request;
|
|
|
39812
39804
|
exports.AssignedUserV4Response = AssignedUserV4Response;
|
|
39813
39805
|
exports.AuthenticatorKeyResponseV4 = AuthenticatorKeyResponseV4;
|
|
39814
39806
|
exports.AuthenticatorSecretKey = AuthenticatorSecretKey;
|
|
39815
|
-
exports.
|
|
39807
|
+
exports.AvailableComparison = AvailableComparison;
|
|
39816
39808
|
exports.AvailablePlatform = AvailablePlatform;
|
|
39817
|
-
exports.
|
|
39809
|
+
exports.AvailablePredicate = AvailablePredicate;
|
|
39818
39810
|
exports.AvatarSyncRequestV4 = AvatarSyncRequestV4;
|
|
39819
39811
|
exports.BUILDINFO_PLATFORM_ID = BUILDINFO_PLATFORM_ID;
|
|
39820
39812
|
exports.BackgroundOverlay = BackgroundOverlay;
|
|
@@ -40224,6 +40216,7 @@ exports.OptionBoxConfig = OptionBoxConfig;
|
|
|
40224
40216
|
exports.Order = Order;
|
|
40225
40217
|
exports.Order$ = Order$;
|
|
40226
40218
|
exports.OrderCreate = OrderCreate;
|
|
40219
|
+
exports.OrderCreationOptions = OrderCreationOptions;
|
|
40227
40220
|
exports.OrderGrantInfo = OrderGrantInfo;
|
|
40228
40221
|
exports.OrderHistoryInfo = OrderHistoryInfo;
|
|
40229
40222
|
exports.OrderHistoryInfoArray = OrderHistoryInfoArray;
|
|
@@ -40324,7 +40317,7 @@ exports.PolicyVersionObject = PolicyVersionObject;
|
|
|
40324
40317
|
exports.PolicyVersionWithLocalizedVersionObject = PolicyVersionWithLocalizedVersionObject;
|
|
40325
40318
|
exports.PopulatedItemInfo = PopulatedItemInfo;
|
|
40326
40319
|
exports.PreCheckUploadRequest = PreCheckUploadRequest;
|
|
40327
|
-
exports.
|
|
40320
|
+
exports.Predicate = Predicate;
|
|
40328
40321
|
exports.PredicateValidateResult = PredicateValidateResult;
|
|
40329
40322
|
exports.PublicKeyPresignedUrl = PublicKeyPresignedUrl;
|
|
40330
40323
|
exports.PublicThirdPartyPlatformInfo = PublicThirdPartyPlatformInfo;
|
|
@@ -40461,7 +40454,7 @@ exports.SsoSaml20$ = SsoSaml20$;
|
|
|
40461
40454
|
exports.StackableEntitlementInfo = StackableEntitlementInfo;
|
|
40462
40455
|
exports.StartMultipartUploadRequest = StartMultipartUploadRequest;
|
|
40463
40456
|
exports.StaticConfigs$ = StaticConfigs$;
|
|
40464
|
-
exports.
|
|
40457
|
+
exports.SteamAchievementUpdateRequest = SteamAchievementUpdateRequest;
|
|
40465
40458
|
exports.SteamDlcSyncRequest = SteamDlcSyncRequest;
|
|
40466
40459
|
exports.SteamIapConfig = SteamIapConfig;
|
|
40467
40460
|
exports.SteamIapConfigInfo = SteamIapConfigInfo;
|
|
@@ -40642,13 +40635,14 @@ exports.WalletTransactionPagingSlicedResult = WalletTransactionPagingSlicedResul
|
|
|
40642
40635
|
exports.WebLinkingResponse = WebLinkingResponse;
|
|
40643
40636
|
exports.WxPayConfigInfo = WxPayConfigInfo;
|
|
40644
40637
|
exports.WxPayConfigRequest = WxPayConfigRequest;
|
|
40638
|
+
exports.XblAchievementUpdateRequest = XblAchievementUpdateRequest;
|
|
40645
40639
|
exports.XblDlcSyncRequest = XblDlcSyncRequest;
|
|
40646
40640
|
exports.XblIapConfigInfo = XblIapConfigInfo;
|
|
40647
40641
|
exports.XblIapConfigRequest = XblIapConfigRequest;
|
|
40648
40642
|
exports.XblReconcileRequest = XblReconcileRequest;
|
|
40649
40643
|
exports.XblReconcileResult = XblReconcileResult;
|
|
40650
40644
|
exports.XblReconcileResultArray = XblReconcileResultArray;
|
|
40651
|
-
exports.
|
|
40645
|
+
exports.XblUserAchievements = XblUserAchievements;
|
|
40652
40646
|
exports.XsollaConfig = XsollaConfig;
|
|
40653
40647
|
exports.XsollaPaywallConfig = XsollaPaywallConfig;
|
|
40654
40648
|
exports.XsollaPaywallConfigRequest = XsollaPaywallConfigRequest;
|