@dynamic-labs/sdk-api 0.0.935 → 0.0.936
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 +1 -1
- package/src/apis/SDKApi.cjs +23 -0
- package/src/apis/SDKApi.d.ts +11 -0
- package/src/apis/SDKApi.js +23 -0
package/package.json
CHANGED
package/src/apis/SDKApi.cjs
CHANGED
|
@@ -6302,6 +6302,29 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
6302
6302
|
async quoteCheckoutTransactionOptions(requestParameters, initOverrides) {
|
|
6303
6303
|
await this.quoteCheckoutTransactionOptionsRaw(requestParameters, initOverrides);
|
|
6304
6304
|
}
|
|
6305
|
+
/**
|
|
6306
|
+
* Options call for this endpoint
|
|
6307
|
+
*/
|
|
6308
|
+
async realtimeAuthOptionsRaw(requestParameters, initOverrides) {
|
|
6309
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
6310
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling realtimeAuthOptions.');
|
|
6311
|
+
}
|
|
6312
|
+
const queryParameters = {};
|
|
6313
|
+
const headerParameters = {};
|
|
6314
|
+
const response = await this.request({
|
|
6315
|
+
path: `/sdk/{environmentId}/realtime/auth`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
6316
|
+
method: 'OPTIONS',
|
|
6317
|
+
headers: headerParameters,
|
|
6318
|
+
query: queryParameters,
|
|
6319
|
+
}, initOverrides);
|
|
6320
|
+
return new runtime.VoidApiResponse(response);
|
|
6321
|
+
}
|
|
6322
|
+
/**
|
|
6323
|
+
* Options call for this endpoint
|
|
6324
|
+
*/
|
|
6325
|
+
async realtimeAuthOptions(requestParameters, initOverrides) {
|
|
6326
|
+
await this.realtimeAuthOptionsRaw(requestParameters, initOverrides);
|
|
6327
|
+
}
|
|
6305
6328
|
/**
|
|
6306
6329
|
* Records the on-chain transaction hash and transitions the transaction to broadcasted state. This is the point of no return.
|
|
6307
6330
|
* Record a broadcast for a checkout transaction
|
package/src/apis/SDKApi.d.ts
CHANGED
|
@@ -798,6 +798,9 @@ export interface QuoteCheckoutTransactionOptionsRequest {
|
|
|
798
798
|
environmentId: string;
|
|
799
799
|
transactionId: string;
|
|
800
800
|
}
|
|
801
|
+
export interface RealtimeAuthOptionsRequest {
|
|
802
|
+
environmentId: string;
|
|
803
|
+
}
|
|
801
804
|
export interface RecordCheckoutBroadcastRequest {
|
|
802
805
|
environmentId: string;
|
|
803
806
|
transactionId: string;
|
|
@@ -2948,6 +2951,14 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
2948
2951
|
* Options call for this endpoint
|
|
2949
2952
|
*/
|
|
2950
2953
|
quoteCheckoutTransactionOptions(requestParameters: QuoteCheckoutTransactionOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
2954
|
+
/**
|
|
2955
|
+
* Options call for this endpoint
|
|
2956
|
+
*/
|
|
2957
|
+
realtimeAuthOptionsRaw(requestParameters: RealtimeAuthOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
2958
|
+
/**
|
|
2959
|
+
* Options call for this endpoint
|
|
2960
|
+
*/
|
|
2961
|
+
realtimeAuthOptions(requestParameters: RealtimeAuthOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
2951
2962
|
/**
|
|
2952
2963
|
* Records the on-chain transaction hash and transitions the transaction to broadcasted state. This is the point of no return.
|
|
2953
2964
|
* Record a broadcast for a checkout transaction
|
package/src/apis/SDKApi.js
CHANGED
|
@@ -6298,6 +6298,29 @@ class SDKApi extends BaseAPI {
|
|
|
6298
6298
|
async quoteCheckoutTransactionOptions(requestParameters, initOverrides) {
|
|
6299
6299
|
await this.quoteCheckoutTransactionOptionsRaw(requestParameters, initOverrides);
|
|
6300
6300
|
}
|
|
6301
|
+
/**
|
|
6302
|
+
* Options call for this endpoint
|
|
6303
|
+
*/
|
|
6304
|
+
async realtimeAuthOptionsRaw(requestParameters, initOverrides) {
|
|
6305
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
6306
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling realtimeAuthOptions.');
|
|
6307
|
+
}
|
|
6308
|
+
const queryParameters = {};
|
|
6309
|
+
const headerParameters = {};
|
|
6310
|
+
const response = await this.request({
|
|
6311
|
+
path: `/sdk/{environmentId}/realtime/auth`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
6312
|
+
method: 'OPTIONS',
|
|
6313
|
+
headers: headerParameters,
|
|
6314
|
+
query: queryParameters,
|
|
6315
|
+
}, initOverrides);
|
|
6316
|
+
return new VoidApiResponse(response);
|
|
6317
|
+
}
|
|
6318
|
+
/**
|
|
6319
|
+
* Options call for this endpoint
|
|
6320
|
+
*/
|
|
6321
|
+
async realtimeAuthOptions(requestParameters, initOverrides) {
|
|
6322
|
+
await this.realtimeAuthOptionsRaw(requestParameters, initOverrides);
|
|
6323
|
+
}
|
|
6301
6324
|
/**
|
|
6302
6325
|
* Records the on-chain transaction hash and transitions the transaction to broadcasted state. This is the point of no return.
|
|
6303
6326
|
* Record a broadcast for a checkout transaction
|