@dynamic-labs/sdk-api-core 0.0.643 → 0.0.645

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/sdk-api-core",
3
- "version": "0.0.643",
3
+ "version": "0.0.645",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -20,6 +20,7 @@ function GlobalWalletSettingsFromJSONTyped(json, ignoreDiscriminator) {
20
20
  'customCssUrl': !runtime.exists(json, 'customCssUrl') ? undefined : json['customCssUrl'],
21
21
  'termsOfServiceUrl': !runtime.exists(json, 'termsOfServiceUrl') ? undefined : json['termsOfServiceUrl'],
22
22
  'privacyPolicyUrl': !runtime.exists(json, 'privacyPolicyUrl') ? undefined : json['privacyPolicyUrl'],
23
+ 'termsOfServiceAndPrivacyPolicyMarkdown': !runtime.exists(json, 'termsOfServiceAndPrivacyPolicyMarkdown') ? undefined : json['termsOfServiceAndPrivacyPolicyMarkdown'],
23
24
  'enabledAt': !runtime.exists(json, 'enabledAt') ? undefined : (json['enabledAt'] === null ? null : new Date(json['enabledAt'])),
24
25
  };
25
26
  }
@@ -38,6 +39,7 @@ function GlobalWalletSettingsToJSON(value) {
38
39
  'customCssUrl': value.customCssUrl,
39
40
  'termsOfServiceUrl': value.termsOfServiceUrl,
40
41
  'privacyPolicyUrl': value.privacyPolicyUrl,
42
+ 'termsOfServiceAndPrivacyPolicyMarkdown': value.termsOfServiceAndPrivacyPolicyMarkdown,
41
43
  'enabledAt': value.enabledAt === undefined ? undefined : (value.enabledAt === null ? null : value.enabledAt.toISOString()),
42
44
  };
43
45
  }
@@ -57,6 +57,12 @@ export interface GlobalWalletSettings {
57
57
  * @memberof GlobalWalletSettings
58
58
  */
59
59
  privacyPolicyUrl?: string;
60
+ /**
61
+ *
62
+ * @type {string}
63
+ * @memberof GlobalWalletSettings
64
+ */
65
+ termsOfServiceAndPrivacyPolicyMarkdown?: string;
60
66
  /**
61
67
  * If global wallet is enabled, then this timestamp will be present.
62
68
  * @type {Date}
@@ -16,6 +16,7 @@ function GlobalWalletSettingsFromJSONTyped(json, ignoreDiscriminator) {
16
16
  'customCssUrl': !exists(json, 'customCssUrl') ? undefined : json['customCssUrl'],
17
17
  'termsOfServiceUrl': !exists(json, 'termsOfServiceUrl') ? undefined : json['termsOfServiceUrl'],
18
18
  'privacyPolicyUrl': !exists(json, 'privacyPolicyUrl') ? undefined : json['privacyPolicyUrl'],
19
+ 'termsOfServiceAndPrivacyPolicyMarkdown': !exists(json, 'termsOfServiceAndPrivacyPolicyMarkdown') ? undefined : json['termsOfServiceAndPrivacyPolicyMarkdown'],
19
20
  'enabledAt': !exists(json, 'enabledAt') ? undefined : (json['enabledAt'] === null ? null : new Date(json['enabledAt'])),
20
21
  };
21
22
  }
@@ -34,6 +35,7 @@ function GlobalWalletSettingsToJSON(value) {
34
35
  'customCssUrl': value.customCssUrl,
35
36
  'termsOfServiceUrl': value.termsOfServiceUrl,
36
37
  'privacyPolicyUrl': value.privacyPolicyUrl,
38
+ 'termsOfServiceAndPrivacyPolicyMarkdown': value.termsOfServiceAndPrivacyPolicyMarkdown,
37
39
  'enabledAt': value.enabledAt === undefined ? undefined : (value.enabledAt === null ? null : value.enabledAt.toISOString()),
38
40
  };
39
41
  }
@@ -42,6 +42,8 @@ function ProviderFromJSONTyped(json, ignoreDiscriminator) {
42
42
  'enabledCountries': !runtime.exists(json, 'enabledCountries') ? undefined : (json['enabledCountries'].map(SmsCountryCode.SmsCountryCodeFromJSON)),
43
43
  'entryPointVersion': !runtime.exists(json, 'entryPointVersion') ? undefined : ProviderEntryPointVersionEnum.ProviderEntryPointVersionEnumFromJSON(json['entryPointVersion']),
44
44
  'kernelVersion': !runtime.exists(json, 'kernelVersion') ? undefined : ProviderKernelVersionEnum.ProviderKernelVersionEnumFromJSON(json['kernelVersion']),
45
+ 'factoryAddress': !runtime.exists(json, 'factoryAddress') ? undefined : json['factoryAddress'],
46
+ 'paymasterAddress': !runtime.exists(json, 'paymasterAddress') ? undefined : json['paymasterAddress'],
45
47
  'multichainAccountAbstractionProviders': !runtime.exists(json, 'multichainAccountAbstractionProviders') ? undefined : (json['multichainAccountAbstractionProviders'].map(ProviderMultichainAccountAbstractionProviders.ProviderMultichainAccountAbstractionProvidersFromJSON)),
46
48
  'ecdsaProviderType': !runtime.exists(json, 'ecdsaProviderType') ? undefined : EcdsaValidatorOptions.EcdsaValidatorOptionsFromJSON(json['ecdsaProviderType']),
47
49
  'createNewAccounts': !runtime.exists(json, 'createNewAccounts') ? undefined : json['createNewAccounts'],
@@ -79,6 +81,8 @@ function ProviderToJSON(value) {
79
81
  'enabledCountries': value.enabledCountries === undefined ? undefined : (value.enabledCountries.map(SmsCountryCode.SmsCountryCodeToJSON)),
80
82
  'entryPointVersion': ProviderEntryPointVersionEnum.ProviderEntryPointVersionEnumToJSON(value.entryPointVersion),
81
83
  'kernelVersion': ProviderKernelVersionEnum.ProviderKernelVersionEnumToJSON(value.kernelVersion),
84
+ 'factoryAddress': value.factoryAddress,
85
+ 'paymasterAddress': value.paymasterAddress,
82
86
  'multichainAccountAbstractionProviders': value.multichainAccountAbstractionProviders === undefined ? undefined : (value.multichainAccountAbstractionProviders.map(ProviderMultichainAccountAbstractionProviders.ProviderMultichainAccountAbstractionProvidersToJSON)),
83
87
  'ecdsaProviderType': EcdsaValidatorOptions.EcdsaValidatorOptionsToJSON(value.ecdsaProviderType),
84
88
  'createNewAccounts': value.createNewAccounts,
@@ -154,6 +154,18 @@ export interface Provider {
154
154
  * @memberof Provider
155
155
  */
156
156
  kernelVersion?: ProviderKernelVersionEnum;
157
+ /**
158
+ * The factory address for the provider (currently only used for zksync)
159
+ * @type {string}
160
+ * @memberof Provider
161
+ */
162
+ factoryAddress?: string;
163
+ /**
164
+ * The paymaster address for the provider (currently only used for zksync)
165
+ * @type {string}
166
+ * @memberof Provider
167
+ */
168
+ paymasterAddress?: string;
157
169
  /**
158
170
  *
159
171
  * @type {Array<ProviderMultichainAccountAbstractionProviders>}
@@ -38,6 +38,8 @@ function ProviderFromJSONTyped(json, ignoreDiscriminator) {
38
38
  'enabledCountries': !exists(json, 'enabledCountries') ? undefined : (json['enabledCountries'].map(SmsCountryCodeFromJSON)),
39
39
  'entryPointVersion': !exists(json, 'entryPointVersion') ? undefined : ProviderEntryPointVersionEnumFromJSON(json['entryPointVersion']),
40
40
  'kernelVersion': !exists(json, 'kernelVersion') ? undefined : ProviderKernelVersionEnumFromJSON(json['kernelVersion']),
41
+ 'factoryAddress': !exists(json, 'factoryAddress') ? undefined : json['factoryAddress'],
42
+ 'paymasterAddress': !exists(json, 'paymasterAddress') ? undefined : json['paymasterAddress'],
41
43
  'multichainAccountAbstractionProviders': !exists(json, 'multichainAccountAbstractionProviders') ? undefined : (json['multichainAccountAbstractionProviders'].map(ProviderMultichainAccountAbstractionProvidersFromJSON)),
42
44
  'ecdsaProviderType': !exists(json, 'ecdsaProviderType') ? undefined : EcdsaValidatorOptionsFromJSON(json['ecdsaProviderType']),
43
45
  'createNewAccounts': !exists(json, 'createNewAccounts') ? undefined : json['createNewAccounts'],
@@ -75,6 +77,8 @@ function ProviderToJSON(value) {
75
77
  'enabledCountries': value.enabledCountries === undefined ? undefined : (value.enabledCountries.map(SmsCountryCodeToJSON)),
76
78
  'entryPointVersion': ProviderEntryPointVersionEnumToJSON(value.entryPointVersion),
77
79
  'kernelVersion': ProviderKernelVersionEnumToJSON(value.kernelVersion),
80
+ 'factoryAddress': value.factoryAddress,
81
+ 'paymasterAddress': value.paymasterAddress,
78
82
  'multichainAccountAbstractionProviders': value.multichainAccountAbstractionProviders === undefined ? undefined : (value.multichainAccountAbstractionProviders.map(ProviderMultichainAccountAbstractionProvidersToJSON)),
79
83
  'ecdsaProviderType': EcdsaValidatorOptionsToJSON(value.ecdsaProviderType),
80
84
  'createNewAccounts': value.createNewAccounts,
@@ -54,6 +54,7 @@ exports.ProviderEnum = void 0;
54
54
  ProviderEnum["Line"] = "line";
55
55
  ProviderEnum["Steam"] = "steam";
56
56
  ProviderEnum["Shopify"] = "shopify";
57
+ ProviderEnum["Zksync"] = "zksync";
57
58
  })(exports.ProviderEnum || (exports.ProviderEnum = {}));
58
59
  function ProviderEnumFromJSON(json) {
59
60
  return ProviderEnumFromJSONTyped(json);
@@ -46,7 +46,8 @@ export declare enum ProviderEnum {
46
46
  Tiktok = "tiktok",
47
47
  Line = "line",
48
48
  Steam = "steam",
49
- Shopify = "shopify"
49
+ Shopify = "shopify",
50
+ Zksync = "zksync"
50
51
  }
51
52
  export declare function ProviderEnumFromJSON(json: any): ProviderEnum;
52
53
  export declare function ProviderEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProviderEnum;
@@ -50,6 +50,7 @@ var ProviderEnum;
50
50
  ProviderEnum["Line"] = "line";
51
51
  ProviderEnum["Steam"] = "steam";
52
52
  ProviderEnum["Shopify"] = "shopify";
53
+ ProviderEnum["Zksync"] = "zksync";
53
54
  })(ProviderEnum || (ProviderEnum = {}));
54
55
  function ProviderEnumFromJSON(json) {
55
56
  return ProviderEnumFromJSONTyped(json);