@dynamic-labs/sdk-api-core 0.0.935 → 0.0.937

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.935",
3
+ "version": "0.0.937",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -6203,6 +6203,29 @@ class SDKApi extends runtime.BaseAPI {
6203
6203
  async quoteCheckoutTransactionOptions(requestParameters, initOverrides) {
6204
6204
  await this.quoteCheckoutTransactionOptionsRaw(requestParameters, initOverrides);
6205
6205
  }
6206
+ /**
6207
+ * Options call for this endpoint
6208
+ */
6209
+ async realtimeAuthOptionsRaw(requestParameters, initOverrides) {
6210
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
6211
+ throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling realtimeAuthOptions.');
6212
+ }
6213
+ const queryParameters = {};
6214
+ const headerParameters = {};
6215
+ const response = await this.request({
6216
+ path: `/sdk/{environmentId}/realtime/auth`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
6217
+ method: 'OPTIONS',
6218
+ headers: headerParameters,
6219
+ query: queryParameters,
6220
+ }, initOverrides);
6221
+ return new runtime.VoidApiResponse(response);
6222
+ }
6223
+ /**
6224
+ * Options call for this endpoint
6225
+ */
6226
+ async realtimeAuthOptions(requestParameters, initOverrides) {
6227
+ await this.realtimeAuthOptionsRaw(requestParameters, initOverrides);
6228
+ }
6206
6229
  /**
6207
6230
  * Records the on-chain transaction hash and transitions the transaction to broadcasted state. This is the point of no return.
6208
6231
  * Record a broadcast for a checkout transaction
@@ -793,6 +793,9 @@ export interface QuoteCheckoutTransactionOptionsRequest {
793
793
  environmentId: string;
794
794
  transactionId: string;
795
795
  }
796
+ export interface RealtimeAuthOptionsRequest {
797
+ environmentId: string;
798
+ }
796
799
  export interface RecordCheckoutBroadcastRequest {
797
800
  environmentId: string;
798
801
  transactionId: string;
@@ -2915,6 +2918,14 @@ export declare class SDKApi extends runtime.BaseAPI {
2915
2918
  * Options call for this endpoint
2916
2919
  */
2917
2920
  quoteCheckoutTransactionOptions(requestParameters: QuoteCheckoutTransactionOptionsRequest, initOverrides?: RequestInit): Promise<void>;
2921
+ /**
2922
+ * Options call for this endpoint
2923
+ */
2924
+ realtimeAuthOptionsRaw(requestParameters: RealtimeAuthOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
2925
+ /**
2926
+ * Options call for this endpoint
2927
+ */
2928
+ realtimeAuthOptions(requestParameters: RealtimeAuthOptionsRequest, initOverrides?: RequestInit): Promise<void>;
2918
2929
  /**
2919
2930
  * Records the on-chain transaction hash and transitions the transaction to broadcasted state. This is the point of no return.
2920
2931
  * Record a broadcast for a checkout transaction
@@ -6199,6 +6199,29 @@ class SDKApi extends BaseAPI {
6199
6199
  async quoteCheckoutTransactionOptions(requestParameters, initOverrides) {
6200
6200
  await this.quoteCheckoutTransactionOptionsRaw(requestParameters, initOverrides);
6201
6201
  }
6202
+ /**
6203
+ * Options call for this endpoint
6204
+ */
6205
+ async realtimeAuthOptionsRaw(requestParameters, initOverrides) {
6206
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
6207
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling realtimeAuthOptions.');
6208
+ }
6209
+ const queryParameters = {};
6210
+ const headerParameters = {};
6211
+ const response = await this.request({
6212
+ path: `/sdk/{environmentId}/realtime/auth`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
6213
+ method: 'OPTIONS',
6214
+ headers: headerParameters,
6215
+ query: queryParameters,
6216
+ }, initOverrides);
6217
+ return new VoidApiResponse(response);
6218
+ }
6219
+ /**
6220
+ * Options call for this endpoint
6221
+ */
6222
+ async realtimeAuthOptions(requestParameters, initOverrides) {
6223
+ await this.realtimeAuthOptionsRaw(requestParameters, initOverrides);
6224
+ }
6202
6225
  /**
6203
6226
  * Records the on-chain transaction hash and transitions the transaction to broadcasted state. This is the point of no return.
6204
6227
  * Record a broadcast for a checkout transaction