@dynamic-labs/sdk-api 0.0.1079 → 0.0.1081

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.
Files changed (35) hide show
  1. package/package.json +1 -1
  2. package/src/apis/GaslessApi.cjs +251 -0
  3. package/src/apis/GaslessApi.d.ts +53 -0
  4. package/src/apis/GaslessApi.js +247 -0
  5. package/src/apis/SDKApi.cjs +68 -0
  6. package/src/apis/SDKApi.d.ts +28 -0
  7. package/src/apis/SDKApi.js +68 -0
  8. package/src/apis/index.d.ts +1 -0
  9. package/src/index.cjs +26 -0
  10. package/src/index.js +7 -0
  11. package/src/models/GaslessBillingChainBreakdown.cjs +51 -0
  12. package/src/models/GaslessBillingChainBreakdown.d.ts +51 -0
  13. package/src/models/GaslessBillingChainBreakdown.js +45 -0
  14. package/src/models/GaslessBillingPeriod.cjs +43 -0
  15. package/src/models/GaslessBillingPeriod.d.ts +58 -0
  16. package/src/models/GaslessBillingPeriod.js +37 -0
  17. package/src/models/GaslessBillingSummaryResponse.cjs +36 -0
  18. package/src/models/GaslessBillingSummaryResponse.d.ts +35 -0
  19. package/src/models/GaslessBillingSummaryResponse.js +30 -0
  20. package/src/models/GaslessBillingTotals.cjs +49 -0
  21. package/src/models/GaslessBillingTotals.d.ts +45 -0
  22. package/src/models/GaslessBillingTotals.js +43 -0
  23. package/src/models/GaslessTransactionItem.cjs +55 -0
  24. package/src/models/GaslessTransactionItem.d.ts +93 -0
  25. package/src/models/GaslessTransactionItem.js +49 -0
  26. package/src/models/GaslessTransactionsListResponse.cjs +37 -0
  27. package/src/models/GaslessTransactionsListResponse.d.ts +40 -0
  28. package/src/models/GaslessTransactionsListResponse.js +31 -0
  29. package/src/models/WaasWalletProperties.cjs +2 -0
  30. package/src/models/WaasWalletProperties.d.ts +6 -0
  31. package/src/models/WaasWalletProperties.js +2 -0
  32. package/src/models/WalletProperties.cjs +2 -0
  33. package/src/models/WalletProperties.d.ts +6 -0
  34. package/src/models/WalletProperties.js +2 -0
  35. package/src/models/index.d.ts +6 -0
@@ -1094,6 +1094,11 @@ export interface SdkBusinessAccountTransferOwnershipOptionsRequest {
1094
1094
  environmentId: string;
1095
1095
  businessAccountId: string;
1096
1096
  }
1097
+ export interface SdkBusinessAccountWalletOptionsRequest {
1098
+ environmentId: string;
1099
+ businessAccountId: string;
1100
+ walletId: string;
1101
+ }
1097
1102
  export interface SdkBusinessAccountWalletSignerOptionsRequest {
1098
1103
  environmentId: string;
1099
1104
  businessAccountId: string;
@@ -1134,6 +1139,11 @@ export interface SdkRemoveBusinessAccountSignerRequest {
1134
1139
  walletId: string;
1135
1140
  signerId: string;
1136
1141
  }
1142
+ export interface SdkRemoveBusinessAccountWalletRequest {
1143
+ environmentId: string;
1144
+ businessAccountId: string;
1145
+ walletId: string;
1146
+ }
1137
1147
  export interface SdkSettingsOptionsRequest {
1138
1148
  environmentId: string;
1139
1149
  }
@@ -3880,6 +3890,14 @@ export declare class SDKApi extends runtime.BaseAPI {
3880
3890
  * Options call for this endpoint
3881
3891
  */
3882
3892
  sdkBusinessAccountTransferOwnershipOptions(requestParameters: SdkBusinessAccountTransferOwnershipOptionsRequest, initOverrides?: RequestInit): Promise<void>;
3893
+ /**
3894
+ * Options call for this endpoint
3895
+ */
3896
+ sdkBusinessAccountWalletOptionsRaw(requestParameters: SdkBusinessAccountWalletOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
3897
+ /**
3898
+ * Options call for this endpoint
3899
+ */
3900
+ sdkBusinessAccountWalletOptions(requestParameters: SdkBusinessAccountWalletOptionsRequest, initOverrides?: RequestInit): Promise<void>;
3883
3901
  /**
3884
3902
  * Options call for this endpoint
3885
3903
  */
@@ -3962,6 +3980,16 @@ export declare class SDKApi extends runtime.BaseAPI {
3962
3980
  * SDK — remove a signer from a wallet in a business account
3963
3981
  */
3964
3982
  sdkRemoveBusinessAccountSigner(requestParameters: SdkRemoveBusinessAccountSignerRequest, initOverrides?: RequestInit): Promise<InlineResponse2009>;
3983
+ /**
3984
+ * Owner/admin only. Removes the wallet from the business account and cascades: every signer + share set on the wallet is soft-deleted and the wallet itself is soft-deleted, in one transaction. Returns 404 when the wallet isn\'t part of this business account.
3985
+ * SDK — remove a wallet from a business account
3986
+ */
3987
+ sdkRemoveBusinessAccountWalletRaw(requestParameters: SdkRemoveBusinessAccountWalletRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<BusinessAccountDetail>>;
3988
+ /**
3989
+ * Owner/admin only. Removes the wallet from the business account and cascades: every signer + share set on the wallet is soft-deleted and the wallet itself is soft-deleted, in one transaction. Returns 404 when the wallet isn\'t part of this business account.
3990
+ * SDK — remove a wallet from a business account
3991
+ */
3992
+ sdkRemoveBusinessAccountWallet(requestParameters: SdkRemoveBusinessAccountWalletRequest, initOverrides?: RequestInit): Promise<BusinessAccountDetail>;
3965
3993
  /**
3966
3994
  */
3967
3995
  sdkSettingsOptionsRaw(requestParameters: SdkSettingsOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
@@ -8602,6 +8602,35 @@ class SDKApi extends BaseAPI {
8602
8602
  async sdkBusinessAccountTransferOwnershipOptions(requestParameters, initOverrides) {
8603
8603
  await this.sdkBusinessAccountTransferOwnershipOptionsRaw(requestParameters, initOverrides);
8604
8604
  }
8605
+ /**
8606
+ * Options call for this endpoint
8607
+ */
8608
+ async sdkBusinessAccountWalletOptionsRaw(requestParameters, initOverrides) {
8609
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
8610
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkBusinessAccountWalletOptions.');
8611
+ }
8612
+ if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
8613
+ throw new RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkBusinessAccountWalletOptions.');
8614
+ }
8615
+ if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
8616
+ throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling sdkBusinessAccountWalletOptions.');
8617
+ }
8618
+ const queryParameters = {};
8619
+ const headerParameters = {};
8620
+ const response = await this.request({
8621
+ path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}/wallets/{walletId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
8622
+ method: 'OPTIONS',
8623
+ headers: headerParameters,
8624
+ query: queryParameters,
8625
+ }, initOverrides);
8626
+ return new VoidApiResponse(response);
8627
+ }
8628
+ /**
8629
+ * Options call for this endpoint
8630
+ */
8631
+ async sdkBusinessAccountWalletOptions(requestParameters, initOverrides) {
8632
+ await this.sdkBusinessAccountWalletOptionsRaw(requestParameters, initOverrides);
8633
+ }
8605
8634
  /**
8606
8635
  * Options call for this endpoint
8607
8636
  */
@@ -8907,6 +8936,45 @@ class SDKApi extends BaseAPI {
8907
8936
  const response = await this.sdkRemoveBusinessAccountSignerRaw(requestParameters, initOverrides);
8908
8937
  return await response.value();
8909
8938
  }
8939
+ /**
8940
+ * Owner/admin only. Removes the wallet from the business account and cascades: every signer + share set on the wallet is soft-deleted and the wallet itself is soft-deleted, in one transaction. Returns 404 when the wallet isn\'t part of this business account.
8941
+ * SDK — remove a wallet from a business account
8942
+ */
8943
+ async sdkRemoveBusinessAccountWalletRaw(requestParameters, initOverrides) {
8944
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
8945
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling sdkRemoveBusinessAccountWallet.');
8946
+ }
8947
+ if (requestParameters.businessAccountId === null || requestParameters.businessAccountId === undefined) {
8948
+ throw new RequiredError('businessAccountId', 'Required parameter requestParameters.businessAccountId was null or undefined when calling sdkRemoveBusinessAccountWallet.');
8949
+ }
8950
+ if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
8951
+ throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling sdkRemoveBusinessAccountWallet.');
8952
+ }
8953
+ const queryParameters = {};
8954
+ const headerParameters = {};
8955
+ if (this.configuration && this.configuration.accessToken) {
8956
+ const token = this.configuration.accessToken;
8957
+ const tokenString = await token("bearerAuth", []);
8958
+ if (tokenString) {
8959
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
8960
+ }
8961
+ }
8962
+ const response = await this.request({
8963
+ path: `/sdk/{environmentId}/businessAccounts/{businessAccountId}/wallets/{walletId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"businessAccountId"}}`, encodeURIComponent(String(requestParameters.businessAccountId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
8964
+ method: 'DELETE',
8965
+ headers: headerParameters,
8966
+ query: queryParameters,
8967
+ }, initOverrides);
8968
+ return new JSONApiResponse(response, (jsonValue) => BusinessAccountDetailFromJSON(jsonValue));
8969
+ }
8970
+ /**
8971
+ * Owner/admin only. Removes the wallet from the business account and cascades: every signer + share set on the wallet is soft-deleted and the wallet itself is soft-deleted, in one transaction. Returns 404 when the wallet isn\'t part of this business account.
8972
+ * SDK — remove a wallet from a business account
8973
+ */
8974
+ async sdkRemoveBusinessAccountWallet(requestParameters, initOverrides) {
8975
+ const response = await this.sdkRemoveBusinessAccountWalletRaw(requestParameters, initOverrides);
8976
+ return await response.value();
8977
+ }
8910
8978
  /**
8911
8979
  */
8912
8980
  async sdkSettingsOptionsRaw(requestParameters, initOverrides) {
@@ -17,6 +17,7 @@ export * from './ExchangesApi';
17
17
  export * from './ExportsApi';
18
18
  export * from './ExternalJwtApi';
19
19
  export * from './FlowAnalyticsApi';
20
+ export * from './GaslessApi';
20
21
  export * from './GatesApi';
21
22
  export * from './GlobalWalletAccessControlApi';
22
23
  export * from './GlobalWalletConnectionsApi';
package/src/index.cjs CHANGED
@@ -22,6 +22,7 @@ var ExchangesApi = require('./apis/ExchangesApi.cjs');
22
22
  var ExportsApi = require('./apis/ExportsApi.cjs');
23
23
  var ExternalJwtApi = require('./apis/ExternalJwtApi.cjs');
24
24
  var FlowAnalyticsApi = require('./apis/FlowAnalyticsApi.cjs');
25
+ var GaslessApi = require('./apis/GaslessApi.cjs');
25
26
  var GatesApi = require('./apis/GatesApi.cjs');
26
27
  var GlobalWalletAccessControlApi = require('./apis/GlobalWalletAccessControlApi.cjs');
27
28
  var GlobalWalletConnectionsApi = require('./apis/GlobalWalletConnectionsApi.cjs');
@@ -354,6 +355,12 @@ var Funding = require('./models/Funding.cjs');
354
355
  var FundingExternalWallets = require('./models/FundingExternalWallets.cjs');
355
356
  var FundingExternalWalletsDefaultSettings = require('./models/FundingExternalWalletsDefaultSettings.cjs');
356
357
  var FundingExternalWalletsMinAmount = require('./models/FundingExternalWalletsMinAmount.cjs');
358
+ var GaslessBillingChainBreakdown = require('./models/GaslessBillingChainBreakdown.cjs');
359
+ var GaslessBillingPeriod = require('./models/GaslessBillingPeriod.cjs');
360
+ var GaslessBillingSummaryResponse = require('./models/GaslessBillingSummaryResponse.cjs');
361
+ var GaslessBillingTotals = require('./models/GaslessBillingTotals.cjs');
362
+ var GaslessTransactionItem = require('./models/GaslessTransactionItem.cjs');
363
+ var GaslessTransactionsListResponse = require('./models/GaslessTransactionsListResponse.cjs');
357
364
  var Gate = require('./models/Gate.cjs');
358
365
  var GateCreateRequest = require('./models/GateCreateRequest.cjs');
359
366
  var GateRule = require('./models/GateRule.cjs');
@@ -882,6 +889,7 @@ exports.ExchangesApi = ExchangesApi.ExchangesApi;
882
889
  exports.ExportsApi = ExportsApi.ExportsApi;
883
890
  exports.ExternalJwtApi = ExternalJwtApi.ExternalJwtApi;
884
891
  exports.FlowAnalyticsApi = FlowAnalyticsApi.FlowAnalyticsApi;
892
+ exports.GaslessApi = GaslessApi.GaslessApi;
885
893
  exports.GatesApi = GatesApi.GatesApi;
886
894
  exports.GlobalWalletAccessControlApi = GlobalWalletAccessControlApi.GlobalWalletAccessControlApi;
887
895
  Object.defineProperty(exports, 'GetGlobalWalletConnectionsStatusEnum', {
@@ -2090,6 +2098,24 @@ exports.FundingExternalWalletsDefaultSettingsToJSON = FundingExternalWalletsDefa
2090
2098
  exports.FundingExternalWalletsMinAmountFromJSON = FundingExternalWalletsMinAmount.FundingExternalWalletsMinAmountFromJSON;
2091
2099
  exports.FundingExternalWalletsMinAmountFromJSONTyped = FundingExternalWalletsMinAmount.FundingExternalWalletsMinAmountFromJSONTyped;
2092
2100
  exports.FundingExternalWalletsMinAmountToJSON = FundingExternalWalletsMinAmount.FundingExternalWalletsMinAmountToJSON;
2101
+ exports.GaslessBillingChainBreakdownFromJSON = GaslessBillingChainBreakdown.GaslessBillingChainBreakdownFromJSON;
2102
+ exports.GaslessBillingChainBreakdownFromJSONTyped = GaslessBillingChainBreakdown.GaslessBillingChainBreakdownFromJSONTyped;
2103
+ exports.GaslessBillingChainBreakdownToJSON = GaslessBillingChainBreakdown.GaslessBillingChainBreakdownToJSON;
2104
+ exports.GaslessBillingPeriodFromJSON = GaslessBillingPeriod.GaslessBillingPeriodFromJSON;
2105
+ exports.GaslessBillingPeriodFromJSONTyped = GaslessBillingPeriod.GaslessBillingPeriodFromJSONTyped;
2106
+ exports.GaslessBillingPeriodToJSON = GaslessBillingPeriod.GaslessBillingPeriodToJSON;
2107
+ exports.GaslessBillingSummaryResponseFromJSON = GaslessBillingSummaryResponse.GaslessBillingSummaryResponseFromJSON;
2108
+ exports.GaslessBillingSummaryResponseFromJSONTyped = GaslessBillingSummaryResponse.GaslessBillingSummaryResponseFromJSONTyped;
2109
+ exports.GaslessBillingSummaryResponseToJSON = GaslessBillingSummaryResponse.GaslessBillingSummaryResponseToJSON;
2110
+ exports.GaslessBillingTotalsFromJSON = GaslessBillingTotals.GaslessBillingTotalsFromJSON;
2111
+ exports.GaslessBillingTotalsFromJSONTyped = GaslessBillingTotals.GaslessBillingTotalsFromJSONTyped;
2112
+ exports.GaslessBillingTotalsToJSON = GaslessBillingTotals.GaslessBillingTotalsToJSON;
2113
+ exports.GaslessTransactionItemFromJSON = GaslessTransactionItem.GaslessTransactionItemFromJSON;
2114
+ exports.GaslessTransactionItemFromJSONTyped = GaslessTransactionItem.GaslessTransactionItemFromJSONTyped;
2115
+ exports.GaslessTransactionItemToJSON = GaslessTransactionItem.GaslessTransactionItemToJSON;
2116
+ exports.GaslessTransactionsListResponseFromJSON = GaslessTransactionsListResponse.GaslessTransactionsListResponseFromJSON;
2117
+ exports.GaslessTransactionsListResponseFromJSONTyped = GaslessTransactionsListResponse.GaslessTransactionsListResponseFromJSONTyped;
2118
+ exports.GaslessTransactionsListResponseToJSON = GaslessTransactionsListResponse.GaslessTransactionsListResponseToJSON;
2093
2119
  exports.GateFromJSON = Gate.GateFromJSON;
2094
2120
  exports.GateFromJSONTyped = Gate.GateFromJSONTyped;
2095
2121
  exports.GateToJSON = Gate.GateToJSON;
package/src/index.js CHANGED
@@ -18,6 +18,7 @@ export { ExchangesApi } from './apis/ExchangesApi.js';
18
18
  export { ExportsApi } from './apis/ExportsApi.js';
19
19
  export { ExternalJwtApi } from './apis/ExternalJwtApi.js';
20
20
  export { FlowAnalyticsApi } from './apis/FlowAnalyticsApi.js';
21
+ export { GaslessApi } from './apis/GaslessApi.js';
21
22
  export { GatesApi } from './apis/GatesApi.js';
22
23
  export { GlobalWalletAccessControlApi } from './apis/GlobalWalletAccessControlApi.js';
23
24
  export { GetGlobalWalletConnectionsStatusEnum, GlobalWalletConnectionsApi } from './apis/GlobalWalletConnectionsApi.js';
@@ -350,6 +351,12 @@ export { FundingFromJSON, FundingFromJSONTyped, FundingToJSON } from './models/F
350
351
  export { FundingExternalWalletsFromJSON, FundingExternalWalletsFromJSONTyped, FundingExternalWalletsToJSON } from './models/FundingExternalWallets.js';
351
352
  export { FundingExternalWalletsDefaultSettingsFromJSON, FundingExternalWalletsDefaultSettingsFromJSONTyped, FundingExternalWalletsDefaultSettingsToJSON } from './models/FundingExternalWalletsDefaultSettings.js';
352
353
  export { FundingExternalWalletsMinAmountFromJSON, FundingExternalWalletsMinAmountFromJSONTyped, FundingExternalWalletsMinAmountToJSON } from './models/FundingExternalWalletsMinAmount.js';
354
+ export { GaslessBillingChainBreakdownFromJSON, GaslessBillingChainBreakdownFromJSONTyped, GaslessBillingChainBreakdownToJSON } from './models/GaslessBillingChainBreakdown.js';
355
+ export { GaslessBillingPeriodFromJSON, GaslessBillingPeriodFromJSONTyped, GaslessBillingPeriodToJSON } from './models/GaslessBillingPeriod.js';
356
+ export { GaslessBillingSummaryResponseFromJSON, GaslessBillingSummaryResponseFromJSONTyped, GaslessBillingSummaryResponseToJSON } from './models/GaslessBillingSummaryResponse.js';
357
+ export { GaslessBillingTotalsFromJSON, GaslessBillingTotalsFromJSONTyped, GaslessBillingTotalsToJSON } from './models/GaslessBillingTotals.js';
358
+ export { GaslessTransactionItemFromJSON, GaslessTransactionItemFromJSONTyped, GaslessTransactionItemToJSON } from './models/GaslessTransactionItem.js';
359
+ export { GaslessTransactionsListResponseFromJSON, GaslessTransactionsListResponseFromJSONTyped, GaslessTransactionsListResponseToJSON } from './models/GaslessTransactionsListResponse.js';
353
360
  export { GateFromJSON, GateFromJSONTyped, GateToJSON } from './models/Gate.js';
354
361
  export { GateCreateRequestFromJSON, GateCreateRequestFromJSONTyped, GateCreateRequestToJSON } from './models/GateCreateRequest.js';
355
362
  export { GateRuleFromJSON, GateRuleFromJSONTyped, GateRuleToJSON } from './models/GateRule.js';
@@ -0,0 +1,51 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ /* tslint:disable */
6
+ /* eslint-disable */
7
+ /**
8
+ * Dashboard API
9
+ * Dashboard API documentation
10
+ *
11
+ * The version of the OpenAPI document: 1.0.0
12
+ *
13
+ *
14
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
15
+ * https://openapi-generator.tech
16
+ * Do not edit the class manually.
17
+ */
18
+ function GaslessBillingChainBreakdownFromJSON(json) {
19
+ return GaslessBillingChainBreakdownFromJSONTyped(json);
20
+ }
21
+ function GaslessBillingChainBreakdownFromJSONTyped(json, ignoreDiscriminator) {
22
+ if ((json === undefined) || (json === null)) {
23
+ return json;
24
+ }
25
+ return {
26
+ 'chainId': json['chainId'],
27
+ 'networkFeeUsd': json['networkFeeUsd'],
28
+ 'serviceFeeUsd': json['serviceFeeUsd'],
29
+ 'totalUsd': json['totalUsd'],
30
+ 'transactionCount': json['transactionCount'],
31
+ };
32
+ }
33
+ function GaslessBillingChainBreakdownToJSON(value) {
34
+ if (value === undefined) {
35
+ return undefined;
36
+ }
37
+ if (value === null) {
38
+ return null;
39
+ }
40
+ return {
41
+ 'chainId': value.chainId,
42
+ 'networkFeeUsd': value.networkFeeUsd,
43
+ 'serviceFeeUsd': value.serviceFeeUsd,
44
+ 'totalUsd': value.totalUsd,
45
+ 'transactionCount': value.transactionCount,
46
+ };
47
+ }
48
+
49
+ exports.GaslessBillingChainBreakdownFromJSON = GaslessBillingChainBreakdownFromJSON;
50
+ exports.GaslessBillingChainBreakdownFromJSONTyped = GaslessBillingChainBreakdownFromJSONTyped;
51
+ exports.GaslessBillingChainBreakdownToJSON = GaslessBillingChainBreakdownToJSON;
@@ -0,0 +1,51 @@
1
+ /**
2
+ * Dashboard API
3
+ * Dashboard API documentation
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface GaslessBillingChainBreakdown
16
+ */
17
+ export interface GaslessBillingChainBreakdown {
18
+ /**
19
+ * EVM chain id the amounts belong to
20
+ * @type {string}
21
+ * @memberof GaslessBillingChainBreakdown
22
+ */
23
+ chainId: string;
24
+ /**
25
+ * Decimal string, summed sponsored gas cost in USD for the chain
26
+ * @type {string}
27
+ * @memberof GaslessBillingChainBreakdown
28
+ */
29
+ networkFeeUsd: string;
30
+ /**
31
+ * Decimal string, summed Dynamic service fee in USD for the chain
32
+ * @type {string}
33
+ * @memberof GaslessBillingChainBreakdown
34
+ */
35
+ serviceFeeUsd: string;
36
+ /**
37
+ * Decimal string, networkFeeUsd plus serviceFeeUsd for the chain
38
+ * @type {string}
39
+ * @memberof GaslessBillingChainBreakdown
40
+ */
41
+ totalUsd: string;
42
+ /**
43
+ * Number of billable transactions on the chain in the month
44
+ * @type {number}
45
+ * @memberof GaslessBillingChainBreakdown
46
+ */
47
+ transactionCount: number;
48
+ }
49
+ export declare function GaslessBillingChainBreakdownFromJSON(json: any): GaslessBillingChainBreakdown;
50
+ export declare function GaslessBillingChainBreakdownFromJSONTyped(json: any, ignoreDiscriminator: boolean): GaslessBillingChainBreakdown;
51
+ export declare function GaslessBillingChainBreakdownToJSON(value?: GaslessBillingChainBreakdown | null): any;
@@ -0,0 +1,45 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Dashboard API
5
+ * Dashboard API documentation
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ function GaslessBillingChainBreakdownFromJSON(json) {
15
+ return GaslessBillingChainBreakdownFromJSONTyped(json);
16
+ }
17
+ function GaslessBillingChainBreakdownFromJSONTyped(json, ignoreDiscriminator) {
18
+ if ((json === undefined) || (json === null)) {
19
+ return json;
20
+ }
21
+ return {
22
+ 'chainId': json['chainId'],
23
+ 'networkFeeUsd': json['networkFeeUsd'],
24
+ 'serviceFeeUsd': json['serviceFeeUsd'],
25
+ 'totalUsd': json['totalUsd'],
26
+ 'transactionCount': json['transactionCount'],
27
+ };
28
+ }
29
+ function GaslessBillingChainBreakdownToJSON(value) {
30
+ if (value === undefined) {
31
+ return undefined;
32
+ }
33
+ if (value === null) {
34
+ return null;
35
+ }
36
+ return {
37
+ 'chainId': value.chainId,
38
+ 'networkFeeUsd': value.networkFeeUsd,
39
+ 'serviceFeeUsd': value.serviceFeeUsd,
40
+ 'totalUsd': value.totalUsd,
41
+ 'transactionCount': value.transactionCount,
42
+ };
43
+ }
44
+
45
+ export { GaslessBillingChainBreakdownFromJSON, GaslessBillingChainBreakdownFromJSONTyped, GaslessBillingChainBreakdownToJSON };
@@ -0,0 +1,43 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var GaslessBillingChainBreakdown = require('./GaslessBillingChainBreakdown.cjs');
6
+
7
+ /* tslint:disable */
8
+ function GaslessBillingPeriodFromJSON(json) {
9
+ return GaslessBillingPeriodFromJSONTyped(json);
10
+ }
11
+ function GaslessBillingPeriodFromJSONTyped(json, ignoreDiscriminator) {
12
+ if ((json === undefined) || (json === null)) {
13
+ return json;
14
+ }
15
+ return {
16
+ 'chains': (json['chains'].map(GaslessBillingChainBreakdown.GaslessBillingChainBreakdownFromJSON)),
17
+ 'month': json['month'],
18
+ 'networkFeeUsd': json['networkFeeUsd'],
19
+ 'serviceFeeUsd': json['serviceFeeUsd'],
20
+ 'totalUsd': json['totalUsd'],
21
+ 'transactionCount': json['transactionCount'],
22
+ };
23
+ }
24
+ function GaslessBillingPeriodToJSON(value) {
25
+ if (value === undefined) {
26
+ return undefined;
27
+ }
28
+ if (value === null) {
29
+ return null;
30
+ }
31
+ return {
32
+ 'chains': (value.chains.map(GaslessBillingChainBreakdown.GaslessBillingChainBreakdownToJSON)),
33
+ 'month': value.month,
34
+ 'networkFeeUsd': value.networkFeeUsd,
35
+ 'serviceFeeUsd': value.serviceFeeUsd,
36
+ 'totalUsd': value.totalUsd,
37
+ 'transactionCount': value.transactionCount,
38
+ };
39
+ }
40
+
41
+ exports.GaslessBillingPeriodFromJSON = GaslessBillingPeriodFromJSON;
42
+ exports.GaslessBillingPeriodFromJSONTyped = GaslessBillingPeriodFromJSONTyped;
43
+ exports.GaslessBillingPeriodToJSON = GaslessBillingPeriodToJSON;
@@ -0,0 +1,58 @@
1
+ /**
2
+ * Dashboard API
3
+ * Dashboard API documentation
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { GaslessBillingChainBreakdown } from './GaslessBillingChainBreakdown';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface GaslessBillingPeriod
17
+ */
18
+ export interface GaslessBillingPeriod {
19
+ /**
20
+ * Per-chain breakdown of the month's billable amounts
21
+ * @type {Array<GaslessBillingChainBreakdown>}
22
+ * @memberof GaslessBillingPeriod
23
+ */
24
+ chains: Array<GaslessBillingChainBreakdown>;
25
+ /**
26
+ * UTC calendar month, formatted YYYY-MM
27
+ * @type {string}
28
+ * @memberof GaslessBillingPeriod
29
+ */
30
+ month: string;
31
+ /**
32
+ * Decimal string, summed sponsored gas cost in USD
33
+ * @type {string}
34
+ * @memberof GaslessBillingPeriod
35
+ */
36
+ networkFeeUsd: string;
37
+ /**
38
+ * Decimal string, summed Dynamic service fee in USD
39
+ * @type {string}
40
+ * @memberof GaslessBillingPeriod
41
+ */
42
+ serviceFeeUsd: string;
43
+ /**
44
+ * Decimal string, networkFeeUsd plus serviceFeeUsd
45
+ * @type {string}
46
+ * @memberof GaslessBillingPeriod
47
+ */
48
+ totalUsd: string;
49
+ /**
50
+ * Number of billable transactions in the month
51
+ * @type {number}
52
+ * @memberof GaslessBillingPeriod
53
+ */
54
+ transactionCount: number;
55
+ }
56
+ export declare function GaslessBillingPeriodFromJSON(json: any): GaslessBillingPeriod;
57
+ export declare function GaslessBillingPeriodFromJSONTyped(json: any, ignoreDiscriminator: boolean): GaslessBillingPeriod;
58
+ export declare function GaslessBillingPeriodToJSON(value?: GaslessBillingPeriod | null): any;
@@ -0,0 +1,37 @@
1
+ import { GaslessBillingChainBreakdownFromJSON, GaslessBillingChainBreakdownToJSON } from './GaslessBillingChainBreakdown.js';
2
+
3
+ /* tslint:disable */
4
+ function GaslessBillingPeriodFromJSON(json) {
5
+ return GaslessBillingPeriodFromJSONTyped(json);
6
+ }
7
+ function GaslessBillingPeriodFromJSONTyped(json, ignoreDiscriminator) {
8
+ if ((json === undefined) || (json === null)) {
9
+ return json;
10
+ }
11
+ return {
12
+ 'chains': (json['chains'].map(GaslessBillingChainBreakdownFromJSON)),
13
+ 'month': json['month'],
14
+ 'networkFeeUsd': json['networkFeeUsd'],
15
+ 'serviceFeeUsd': json['serviceFeeUsd'],
16
+ 'totalUsd': json['totalUsd'],
17
+ 'transactionCount': json['transactionCount'],
18
+ };
19
+ }
20
+ function GaslessBillingPeriodToJSON(value) {
21
+ if (value === undefined) {
22
+ return undefined;
23
+ }
24
+ if (value === null) {
25
+ return null;
26
+ }
27
+ return {
28
+ 'chains': (value.chains.map(GaslessBillingChainBreakdownToJSON)),
29
+ 'month': value.month,
30
+ 'networkFeeUsd': value.networkFeeUsd,
31
+ 'serviceFeeUsd': value.serviceFeeUsd,
32
+ 'totalUsd': value.totalUsd,
33
+ 'transactionCount': value.transactionCount,
34
+ };
35
+ }
36
+
37
+ export { GaslessBillingPeriodFromJSON, GaslessBillingPeriodFromJSONTyped, GaslessBillingPeriodToJSON };
@@ -0,0 +1,36 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var GaslessBillingPeriod = require('./GaslessBillingPeriod.cjs');
6
+ var GaslessBillingTotals = require('./GaslessBillingTotals.cjs');
7
+
8
+ /* tslint:disable */
9
+ function GaslessBillingSummaryResponseFromJSON(json) {
10
+ return GaslessBillingSummaryResponseFromJSONTyped(json);
11
+ }
12
+ function GaslessBillingSummaryResponseFromJSONTyped(json, ignoreDiscriminator) {
13
+ if ((json === undefined) || (json === null)) {
14
+ return json;
15
+ }
16
+ return {
17
+ 'periods': (json['periods'].map(GaslessBillingPeriod.GaslessBillingPeriodFromJSON)),
18
+ 'totals': GaslessBillingTotals.GaslessBillingTotalsFromJSON(json['totals']),
19
+ };
20
+ }
21
+ function GaslessBillingSummaryResponseToJSON(value) {
22
+ if (value === undefined) {
23
+ return undefined;
24
+ }
25
+ if (value === null) {
26
+ return null;
27
+ }
28
+ return {
29
+ 'periods': (value.periods.map(GaslessBillingPeriod.GaslessBillingPeriodToJSON)),
30
+ 'totals': GaslessBillingTotals.GaslessBillingTotalsToJSON(value.totals),
31
+ };
32
+ }
33
+
34
+ exports.GaslessBillingSummaryResponseFromJSON = GaslessBillingSummaryResponseFromJSON;
35
+ exports.GaslessBillingSummaryResponseFromJSONTyped = GaslessBillingSummaryResponseFromJSONTyped;
36
+ exports.GaslessBillingSummaryResponseToJSON = GaslessBillingSummaryResponseToJSON;
@@ -0,0 +1,35 @@
1
+ /**
2
+ * Dashboard API
3
+ * Dashboard API documentation
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { GaslessBillingPeriod } from './GaslessBillingPeriod';
13
+ import { GaslessBillingTotals } from './GaslessBillingTotals';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface GaslessBillingSummaryResponse
18
+ */
19
+ export interface GaslessBillingSummaryResponse {
20
+ /**
21
+ *
22
+ * @type {Array<GaslessBillingPeriod>}
23
+ * @memberof GaslessBillingSummaryResponse
24
+ */
25
+ periods: Array<GaslessBillingPeriod>;
26
+ /**
27
+ *
28
+ * @type {GaslessBillingTotals}
29
+ * @memberof GaslessBillingSummaryResponse
30
+ */
31
+ totals: GaslessBillingTotals;
32
+ }
33
+ export declare function GaslessBillingSummaryResponseFromJSON(json: any): GaslessBillingSummaryResponse;
34
+ export declare function GaslessBillingSummaryResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GaslessBillingSummaryResponse;
35
+ export declare function GaslessBillingSummaryResponseToJSON(value?: GaslessBillingSummaryResponse | null): any;
@@ -0,0 +1,30 @@
1
+ import { GaslessBillingPeriodFromJSON, GaslessBillingPeriodToJSON } from './GaslessBillingPeriod.js';
2
+ import { GaslessBillingTotalsFromJSON, GaslessBillingTotalsToJSON } from './GaslessBillingTotals.js';
3
+
4
+ /* tslint:disable */
5
+ function GaslessBillingSummaryResponseFromJSON(json) {
6
+ return GaslessBillingSummaryResponseFromJSONTyped(json);
7
+ }
8
+ function GaslessBillingSummaryResponseFromJSONTyped(json, ignoreDiscriminator) {
9
+ if ((json === undefined) || (json === null)) {
10
+ return json;
11
+ }
12
+ return {
13
+ 'periods': (json['periods'].map(GaslessBillingPeriodFromJSON)),
14
+ 'totals': GaslessBillingTotalsFromJSON(json['totals']),
15
+ };
16
+ }
17
+ function GaslessBillingSummaryResponseToJSON(value) {
18
+ if (value === undefined) {
19
+ return undefined;
20
+ }
21
+ if (value === null) {
22
+ return null;
23
+ }
24
+ return {
25
+ 'periods': (value.periods.map(GaslessBillingPeriodToJSON)),
26
+ 'totals': GaslessBillingTotalsToJSON(value.totals),
27
+ };
28
+ }
29
+
30
+ export { GaslessBillingSummaryResponseFromJSON, GaslessBillingSummaryResponseFromJSONTyped, GaslessBillingSummaryResponseToJSON };
@@ -0,0 +1,49 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ /* tslint:disable */
6
+ /* eslint-disable */
7
+ /**
8
+ * Dashboard API
9
+ * Dashboard API documentation
10
+ *
11
+ * The version of the OpenAPI document: 1.0.0
12
+ *
13
+ *
14
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
15
+ * https://openapi-generator.tech
16
+ * Do not edit the class manually.
17
+ */
18
+ function GaslessBillingTotalsFromJSON(json) {
19
+ return GaslessBillingTotalsFromJSONTyped(json);
20
+ }
21
+ function GaslessBillingTotalsFromJSONTyped(json, ignoreDiscriminator) {
22
+ if ((json === undefined) || (json === null)) {
23
+ return json;
24
+ }
25
+ return {
26
+ 'networkFeeUsd': json['networkFeeUsd'],
27
+ 'serviceFeeUsd': json['serviceFeeUsd'],
28
+ 'totalUsd': json['totalUsd'],
29
+ 'transactionCount': json['transactionCount'],
30
+ };
31
+ }
32
+ function GaslessBillingTotalsToJSON(value) {
33
+ if (value === undefined) {
34
+ return undefined;
35
+ }
36
+ if (value === null) {
37
+ return null;
38
+ }
39
+ return {
40
+ 'networkFeeUsd': value.networkFeeUsd,
41
+ 'serviceFeeUsd': value.serviceFeeUsd,
42
+ 'totalUsd': value.totalUsd,
43
+ 'transactionCount': value.transactionCount,
44
+ };
45
+ }
46
+
47
+ exports.GaslessBillingTotalsFromJSON = GaslessBillingTotalsFromJSON;
48
+ exports.GaslessBillingTotalsFromJSONTyped = GaslessBillingTotalsFromJSONTyped;
49
+ exports.GaslessBillingTotalsToJSON = GaslessBillingTotalsToJSON;