@dynamic-labs/sdk-api 0.0.810 → 0.0.812

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",
3
- "version": "0.0.810",
3
+ "version": "0.0.812",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -3572,6 +3572,9 @@ class SDKApi extends runtime.BaseAPI {
3572
3572
  if (requestParameters.includeDisabled !== undefined) {
3573
3573
  queryParameters['includeDisabled'] = requestParameters.includeDisabled;
3574
3574
  }
3575
+ if (requestParameters.currency !== undefined) {
3576
+ queryParameters['currency'] = requestParameters.currency;
3577
+ }
3575
3578
  const headerParameters = {};
3576
3579
  const response = yield this.request({
3577
3580
  path: `/sdk/{environmentId}/onramps`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
@@ -396,6 +396,7 @@ export interface GetSupportedOnrampsRequest {
396
396
  token?: string;
397
397
  tokenAmount?: number;
398
398
  includeDisabled?: boolean;
399
+ currency?: string;
399
400
  }
400
401
  export interface GetTelegramAuthRequest {
401
402
  environmentId: string;
@@ -3568,6 +3568,9 @@ class SDKApi extends BaseAPI {
3568
3568
  if (requestParameters.includeDisabled !== undefined) {
3569
3569
  queryParameters['includeDisabled'] = requestParameters.includeDisabled;
3570
3570
  }
3571
+ if (requestParameters.currency !== undefined) {
3572
+ queryParameters['currency'] = requestParameters.currency;
3573
+ }
3571
3574
  const headerParameters = {};
3572
3575
  const response = yield this.request({
3573
3576
  path: `/sdk/{environmentId}/onramps`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
@@ -42,6 +42,7 @@ function ProviderFromJSONTyped(json, ignoreDiscriminator) {
42
42
  'accountSid': !runtime.exists(json, 'accountSid') ? undefined : json['accountSid'],
43
43
  'twilioNumber': !runtime.exists(json, 'twilioNumber') ? undefined : json['twilioNumber'],
44
44
  'enabledCountries': !runtime.exists(json, 'enabledCountries') ? undefined : (json['enabledCountries'].map(SmsCountryCode.SmsCountryCodeFromJSON)),
45
+ 'sendgridIpPoolName': !runtime.exists(json, 'sendgridIpPoolName') ? undefined : json['sendgridIpPoolName'],
45
46
  'entryPointVersion': !runtime.exists(json, 'entryPointVersion') ? undefined : ProviderEntryPointVersionEnum.ProviderEntryPointVersionEnumFromJSON(json['entryPointVersion']),
46
47
  'kernelVersion': !runtime.exists(json, 'kernelVersion') ? undefined : ProviderKernelVersionEnum.ProviderKernelVersionEnumFromJSON(json['kernelVersion']),
47
48
  'factoryAddress': !runtime.exists(json, 'factoryAddress') ? undefined : json['factoryAddress'],
@@ -91,6 +92,7 @@ function ProviderToJSON(value) {
91
92
  'accountSid': value.accountSid,
92
93
  'twilioNumber': value.twilioNumber,
93
94
  'enabledCountries': value.enabledCountries === undefined ? undefined : (value.enabledCountries.map(SmsCountryCode.SmsCountryCodeToJSON)),
95
+ 'sendgridIpPoolName': value.sendgridIpPoolName,
94
96
  'entryPointVersion': ProviderEntryPointVersionEnum.ProviderEntryPointVersionEnumToJSON(value.entryPointVersion),
95
97
  'kernelVersion': ProviderKernelVersionEnum.ProviderKernelVersionEnumToJSON(value.kernelVersion),
96
98
  'factoryAddress': value.factoryAddress,
@@ -149,6 +149,12 @@ export interface Provider {
149
149
  * @memberof Provider
150
150
  */
151
151
  enabledCountries?: Array<SmsCountryCode>;
152
+ /**
153
+ * The IP pool name for the SendGrid provider.
154
+ * @type {string}
155
+ * @memberof Provider
156
+ */
157
+ sendgridIpPoolName?: string;
152
158
  /**
153
159
  *
154
160
  * @type {ProviderEntryPointVersionEnum}
@@ -38,6 +38,7 @@ function ProviderFromJSONTyped(json, ignoreDiscriminator) {
38
38
  'accountSid': !exists(json, 'accountSid') ? undefined : json['accountSid'],
39
39
  'twilioNumber': !exists(json, 'twilioNumber') ? undefined : json['twilioNumber'],
40
40
  'enabledCountries': !exists(json, 'enabledCountries') ? undefined : (json['enabledCountries'].map(SmsCountryCodeFromJSON)),
41
+ 'sendgridIpPoolName': !exists(json, 'sendgridIpPoolName') ? undefined : json['sendgridIpPoolName'],
41
42
  'entryPointVersion': !exists(json, 'entryPointVersion') ? undefined : ProviderEntryPointVersionEnumFromJSON(json['entryPointVersion']),
42
43
  'kernelVersion': !exists(json, 'kernelVersion') ? undefined : ProviderKernelVersionEnumFromJSON(json['kernelVersion']),
43
44
  'factoryAddress': !exists(json, 'factoryAddress') ? undefined : json['factoryAddress'],
@@ -87,6 +88,7 @@ function ProviderToJSON(value) {
87
88
  'accountSid': value.accountSid,
88
89
  'twilioNumber': value.twilioNumber,
89
90
  'enabledCountries': value.enabledCountries === undefined ? undefined : (value.enabledCountries.map(SmsCountryCodeToJSON)),
91
+ 'sendgridIpPoolName': value.sendgridIpPoolName,
90
92
  'entryPointVersion': ProviderEntryPointVersionEnumToJSON(value.entryPointVersion),
91
93
  'kernelVersion': ProviderKernelVersionEnumToJSON(value.kernelVersion),
92
94
  'factoryAddress': value.factoryAddress,
@@ -36,6 +36,7 @@ function ProviderCreateRequestFromJSONTyped(json, ignoreDiscriminator) {
36
36
  'accountSid': !runtime.exists(json, 'accountSid') ? undefined : json['accountSid'],
37
37
  'twilioNumber': !runtime.exists(json, 'twilioNumber') ? undefined : json['twilioNumber'],
38
38
  'enabledCountries': !runtime.exists(json, 'enabledCountries') ? undefined : (json['enabledCountries'].map(SmsCountryCode.SmsCountryCodeFromJSON)),
39
+ 'sendgridIpPoolName': !runtime.exists(json, 'sendgridIpPoolName') ? undefined : json['sendgridIpPoolName'],
39
40
  'multichainAccountAbstractionProviders': !runtime.exists(json, 'multichainAccountAbstractionProviders') ? undefined : (json['multichainAccountAbstractionProviders'].map(ProviderCreateRequestMultichainAccountAbstractionProviders.ProviderCreateRequestMultichainAccountAbstractionProvidersFromJSON)),
40
41
  'entryPointVersion': !runtime.exists(json, 'entryPointVersion') ? undefined : ProviderEntryPointVersionEnum.ProviderEntryPointVersionEnumFromJSON(json['entryPointVersion']),
41
42
  'kernelVersion': !runtime.exists(json, 'kernelVersion') ? undefined : ProviderKernelVersionEnum.ProviderKernelVersionEnumFromJSON(json['kernelVersion']),
@@ -79,6 +80,7 @@ function ProviderCreateRequestToJSON(value) {
79
80
  'accountSid': value.accountSid,
80
81
  'twilioNumber': value.twilioNumber,
81
82
  'enabledCountries': value.enabledCountries === undefined ? undefined : (value.enabledCountries.map(SmsCountryCode.SmsCountryCodeToJSON)),
83
+ 'sendgridIpPoolName': value.sendgridIpPoolName,
82
84
  'multichainAccountAbstractionProviders': value.multichainAccountAbstractionProviders === undefined ? undefined : (value.multichainAccountAbstractionProviders.map(ProviderCreateRequestMultichainAccountAbstractionProviders.ProviderCreateRequestMultichainAccountAbstractionProvidersToJSON)),
83
85
  'entryPointVersion': ProviderEntryPointVersionEnum.ProviderEntryPointVersionEnumToJSON(value.entryPointVersion),
84
86
  'kernelVersion': ProviderKernelVersionEnum.ProviderKernelVersionEnumToJSON(value.kernelVersion),
@@ -118,6 +118,12 @@ export interface ProviderCreateRequest {
118
118
  * @memberof ProviderCreateRequest
119
119
  */
120
120
  enabledCountries?: Array<SmsCountryCode>;
121
+ /**
122
+ * The IP pool name for the SendGrid provider.
123
+ * @type {string}
124
+ * @memberof ProviderCreateRequest
125
+ */
126
+ sendgridIpPoolName?: string;
121
127
  /**
122
128
  *
123
129
  * @type {Array<ProviderCreateRequestMultichainAccountAbstractionProviders>}
@@ -32,6 +32,7 @@ function ProviderCreateRequestFromJSONTyped(json, ignoreDiscriminator) {
32
32
  'accountSid': !exists(json, 'accountSid') ? undefined : json['accountSid'],
33
33
  'twilioNumber': !exists(json, 'twilioNumber') ? undefined : json['twilioNumber'],
34
34
  'enabledCountries': !exists(json, 'enabledCountries') ? undefined : (json['enabledCountries'].map(SmsCountryCodeFromJSON)),
35
+ 'sendgridIpPoolName': !exists(json, 'sendgridIpPoolName') ? undefined : json['sendgridIpPoolName'],
35
36
  'multichainAccountAbstractionProviders': !exists(json, 'multichainAccountAbstractionProviders') ? undefined : (json['multichainAccountAbstractionProviders'].map(ProviderCreateRequestMultichainAccountAbstractionProvidersFromJSON)),
36
37
  'entryPointVersion': !exists(json, 'entryPointVersion') ? undefined : ProviderEntryPointVersionEnumFromJSON(json['entryPointVersion']),
37
38
  'kernelVersion': !exists(json, 'kernelVersion') ? undefined : ProviderKernelVersionEnumFromJSON(json['kernelVersion']),
@@ -75,6 +76,7 @@ function ProviderCreateRequestToJSON(value) {
75
76
  'accountSid': value.accountSid,
76
77
  'twilioNumber': value.twilioNumber,
77
78
  'enabledCountries': value.enabledCountries === undefined ? undefined : (value.enabledCountries.map(SmsCountryCodeToJSON)),
79
+ 'sendgridIpPoolName': value.sendgridIpPoolName,
78
80
  'multichainAccountAbstractionProviders': value.multichainAccountAbstractionProviders === undefined ? undefined : (value.multichainAccountAbstractionProviders.map(ProviderCreateRequestMultichainAccountAbstractionProvidersToJSON)),
79
81
  'entryPointVersion': ProviderEntryPointVersionEnumToJSON(value.entryPointVersion),
80
82
  'kernelVersion': ProviderKernelVersionEnumToJSON(value.kernelVersion),
@@ -60,6 +60,8 @@ exports.ProviderEnum = void 0;
60
60
  ProviderEnum["Blockaid"] = "blockaid";
61
61
  ProviderEnum["Passkey"] = "passkey";
62
62
  ProviderEnum["Okta"] = "okta";
63
+ ProviderEnum["Sendgrid"] = "sendgrid";
64
+ ProviderEnum["Resend"] = "resend";
63
65
  })(exports.ProviderEnum || (exports.ProviderEnum = {}));
64
66
  function ProviderEnumFromJSON(json) {
65
67
  return ProviderEnumFromJSONTyped(json);
@@ -52,7 +52,9 @@ export declare enum ProviderEnum {
52
52
  Kraken = "kraken",
53
53
  Blockaid = "blockaid",
54
54
  Passkey = "passkey",
55
- Okta = "okta"
55
+ Okta = "okta",
56
+ Sendgrid = "sendgrid",
57
+ Resend = "resend"
56
58
  }
57
59
  export declare function ProviderEnumFromJSON(json: any): ProviderEnum;
58
60
  export declare function ProviderEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProviderEnum;
@@ -56,6 +56,8 @@ var ProviderEnum;
56
56
  ProviderEnum["Blockaid"] = "blockaid";
57
57
  ProviderEnum["Passkey"] = "passkey";
58
58
  ProviderEnum["Okta"] = "okta";
59
+ ProviderEnum["Sendgrid"] = "sendgrid";
60
+ ProviderEnum["Resend"] = "resend";
59
61
  })(ProviderEnum || (ProviderEnum = {}));
60
62
  function ProviderEnumFromJSON(json) {
61
63
  return ProviderEnumFromJSONTyped(json);
@@ -34,6 +34,7 @@ function ProviderUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
34
34
  'accountSid': !runtime.exists(json, 'accountSid') ? undefined : json['accountSid'],
35
35
  'twilioNumber': !runtime.exists(json, 'twilioNumber') ? undefined : json['twilioNumber'],
36
36
  'enabledCountries': !runtime.exists(json, 'enabledCountries') ? undefined : (json['enabledCountries'].map(SmsCountryCode.SmsCountryCodeFromJSON)),
37
+ 'sendgridIpPoolName': !runtime.exists(json, 'sendgridIpPoolName') ? undefined : json['sendgridIpPoolName'],
37
38
  'multichainAccountAbstractionProviders': !runtime.exists(json, 'multichainAccountAbstractionProviders') ? undefined : (json['multichainAccountAbstractionProviders'].map(ProviderCreateRequestMultichainAccountAbstractionProviders.ProviderCreateRequestMultichainAccountAbstractionProvidersFromJSON)),
38
39
  'entryPointVersion': !runtime.exists(json, 'entryPointVersion') ? undefined : ProviderEntryPointVersionEnum.ProviderEntryPointVersionEnumFromJSON(json['entryPointVersion']),
39
40
  'kernelVersion': !runtime.exists(json, 'kernelVersion') ? undefined : ProviderKernelVersionEnum.ProviderKernelVersionEnumFromJSON(json['kernelVersion']),
@@ -75,6 +76,7 @@ function ProviderUpdateRequestToJSON(value) {
75
76
  'accountSid': value.accountSid,
76
77
  'twilioNumber': value.twilioNumber,
77
78
  'enabledCountries': value.enabledCountries === undefined ? undefined : (value.enabledCountries.map(SmsCountryCode.SmsCountryCodeToJSON)),
79
+ 'sendgridIpPoolName': value.sendgridIpPoolName,
78
80
  'multichainAccountAbstractionProviders': value.multichainAccountAbstractionProviders === undefined ? undefined : (value.multichainAccountAbstractionProviders.map(ProviderCreateRequestMultichainAccountAbstractionProviders.ProviderCreateRequestMultichainAccountAbstractionProvidersToJSON)),
79
81
  'entryPointVersion': ProviderEntryPointVersionEnum.ProviderEntryPointVersionEnumToJSON(value.entryPointVersion),
80
82
  'kernelVersion': ProviderKernelVersionEnum.ProviderKernelVersionEnumToJSON(value.kernelVersion),
@@ -111,6 +111,12 @@ export interface ProviderUpdateRequest {
111
111
  * @memberof ProviderUpdateRequest
112
112
  */
113
113
  enabledCountries?: Array<SmsCountryCode>;
114
+ /**
115
+ * The IP pool name for the SendGrid provider.
116
+ * @type {string}
117
+ * @memberof ProviderUpdateRequest
118
+ */
119
+ sendgridIpPoolName?: string;
114
120
  /**
115
121
  *
116
122
  * @type {Array<ProviderCreateRequestMultichainAccountAbstractionProviders>}
@@ -30,6 +30,7 @@ function ProviderUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
30
30
  'accountSid': !exists(json, 'accountSid') ? undefined : json['accountSid'],
31
31
  'twilioNumber': !exists(json, 'twilioNumber') ? undefined : json['twilioNumber'],
32
32
  'enabledCountries': !exists(json, 'enabledCountries') ? undefined : (json['enabledCountries'].map(SmsCountryCodeFromJSON)),
33
+ 'sendgridIpPoolName': !exists(json, 'sendgridIpPoolName') ? undefined : json['sendgridIpPoolName'],
33
34
  'multichainAccountAbstractionProviders': !exists(json, 'multichainAccountAbstractionProviders') ? undefined : (json['multichainAccountAbstractionProviders'].map(ProviderCreateRequestMultichainAccountAbstractionProvidersFromJSON)),
34
35
  'entryPointVersion': !exists(json, 'entryPointVersion') ? undefined : ProviderEntryPointVersionEnumFromJSON(json['entryPointVersion']),
35
36
  'kernelVersion': !exists(json, 'kernelVersion') ? undefined : ProviderKernelVersionEnumFromJSON(json['kernelVersion']),
@@ -71,6 +72,7 @@ function ProviderUpdateRequestToJSON(value) {
71
72
  'accountSid': value.accountSid,
72
73
  'twilioNumber': value.twilioNumber,
73
74
  'enabledCountries': value.enabledCountries === undefined ? undefined : (value.enabledCountries.map(SmsCountryCodeToJSON)),
75
+ 'sendgridIpPoolName': value.sendgridIpPoolName,
74
76
  'multichainAccountAbstractionProviders': value.multichainAccountAbstractionProviders === undefined ? undefined : (value.multichainAccountAbstractionProviders.map(ProviderCreateRequestMultichainAccountAbstractionProvidersToJSON)),
75
77
  'entryPointVersion': ProviderEntryPointVersionEnumToJSON(value.entryPointVersion),
76
78
  'kernelVersion': ProviderKernelVersionEnumToJSON(value.kernelVersion),