@dynamic-labs/sdk-api 0.0.939 → 0.0.940
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 +8 -2
- package/src/apis/SDKApi.d.ts +4 -2
- package/src/apis/SDKApi.js +8 -2
package/package.json
CHANGED
package/src/apis/SDKApi.cjs
CHANGED
|
@@ -4098,7 +4098,7 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
4098
4098
|
await this.getPasskeyRegistrationOptionsOptionsRaw(requestParameters, initOverrides);
|
|
4099
4099
|
}
|
|
4100
4100
|
/**
|
|
4101
|
-
* Returns a short-lived JWT for subscribing to realtime channels.
|
|
4101
|
+
* Returns a short-lived JWT for subscribing to realtime channels. Accepts either a JWT (via Authorization header) or a checkout session token with transaction ID for unauthenticated checkout flows.
|
|
4102
4102
|
* Get a realtime auth token
|
|
4103
4103
|
*/
|
|
4104
4104
|
async getRealtimeAuthTokenRaw(requestParameters, initOverrides) {
|
|
@@ -4110,6 +4110,12 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
4110
4110
|
queryParameters['capabilities'] = requestParameters.capabilities;
|
|
4111
4111
|
}
|
|
4112
4112
|
const headerParameters = {};
|
|
4113
|
+
if (requestParameters.xDynamicCheckoutSessionToken !== undefined && requestParameters.xDynamicCheckoutSessionToken !== null) {
|
|
4114
|
+
headerParameters['X-Dynamic-Checkout-Session-Token'] = String(requestParameters.xDynamicCheckoutSessionToken);
|
|
4115
|
+
}
|
|
4116
|
+
if (requestParameters.xDynamicCheckoutTransactionId !== undefined && requestParameters.xDynamicCheckoutTransactionId !== null) {
|
|
4117
|
+
headerParameters['X-Dynamic-Checkout-Transaction-Id'] = String(requestParameters.xDynamicCheckoutTransactionId);
|
|
4118
|
+
}
|
|
4113
4119
|
if (this.configuration && this.configuration.accessToken) {
|
|
4114
4120
|
const token = this.configuration.accessToken;
|
|
4115
4121
|
const tokenString = await token("bearerAuth", []);
|
|
@@ -4126,7 +4132,7 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
4126
4132
|
return new runtime.JSONApiResponse(response, (jsonValue) => RealtimeAuthTokenResponse.RealtimeAuthTokenResponseFromJSON(jsonValue));
|
|
4127
4133
|
}
|
|
4128
4134
|
/**
|
|
4129
|
-
* Returns a short-lived JWT for subscribing to realtime channels.
|
|
4135
|
+
* Returns a short-lived JWT for subscribing to realtime channels. Accepts either a JWT (via Authorization header) or a checkout session token with transaction ID for unauthenticated checkout flows.
|
|
4130
4136
|
* Get a realtime auth token
|
|
4131
4137
|
*/
|
|
4132
4138
|
async getRealtimeAuthToken(requestParameters, initOverrides) {
|
package/src/apis/SDKApi.d.ts
CHANGED
|
@@ -497,6 +497,8 @@ export interface GetPasskeyRegistrationOptionsOptionsRequest {
|
|
|
497
497
|
export interface GetRealtimeAuthTokenRequest {
|
|
498
498
|
environmentId: string;
|
|
499
499
|
capabilities?: string;
|
|
500
|
+
xDynamicCheckoutSessionToken?: string;
|
|
501
|
+
xDynamicCheckoutTransactionId?: string;
|
|
500
502
|
}
|
|
501
503
|
export interface GetRecoveryCodesRequest {
|
|
502
504
|
environmentId: string;
|
|
@@ -2308,12 +2310,12 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
2308
2310
|
*/
|
|
2309
2311
|
getPasskeyRegistrationOptionsOptions(requestParameters: GetPasskeyRegistrationOptionsOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
2310
2312
|
/**
|
|
2311
|
-
* Returns a short-lived JWT for subscribing to realtime channels.
|
|
2313
|
+
* Returns a short-lived JWT for subscribing to realtime channels. Accepts either a JWT (via Authorization header) or a checkout session token with transaction ID for unauthenticated checkout flows.
|
|
2312
2314
|
* Get a realtime auth token
|
|
2313
2315
|
*/
|
|
2314
2316
|
getRealtimeAuthTokenRaw(requestParameters: GetRealtimeAuthTokenRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<RealtimeAuthTokenResponse>>;
|
|
2315
2317
|
/**
|
|
2316
|
-
* Returns a short-lived JWT for subscribing to realtime channels.
|
|
2318
|
+
* Returns a short-lived JWT for subscribing to realtime channels. Accepts either a JWT (via Authorization header) or a checkout session token with transaction ID for unauthenticated checkout flows.
|
|
2317
2319
|
* Get a realtime auth token
|
|
2318
2320
|
*/
|
|
2319
2321
|
getRealtimeAuthToken(requestParameters: GetRealtimeAuthTokenRequest, initOverrides?: RequestInit): Promise<RealtimeAuthTokenResponse>;
|
package/src/apis/SDKApi.js
CHANGED
|
@@ -4094,7 +4094,7 @@ class SDKApi extends BaseAPI {
|
|
|
4094
4094
|
await this.getPasskeyRegistrationOptionsOptionsRaw(requestParameters, initOverrides);
|
|
4095
4095
|
}
|
|
4096
4096
|
/**
|
|
4097
|
-
* Returns a short-lived JWT for subscribing to realtime channels.
|
|
4097
|
+
* Returns a short-lived JWT for subscribing to realtime channels. Accepts either a JWT (via Authorization header) or a checkout session token with transaction ID for unauthenticated checkout flows.
|
|
4098
4098
|
* Get a realtime auth token
|
|
4099
4099
|
*/
|
|
4100
4100
|
async getRealtimeAuthTokenRaw(requestParameters, initOverrides) {
|
|
@@ -4106,6 +4106,12 @@ class SDKApi extends BaseAPI {
|
|
|
4106
4106
|
queryParameters['capabilities'] = requestParameters.capabilities;
|
|
4107
4107
|
}
|
|
4108
4108
|
const headerParameters = {};
|
|
4109
|
+
if (requestParameters.xDynamicCheckoutSessionToken !== undefined && requestParameters.xDynamicCheckoutSessionToken !== null) {
|
|
4110
|
+
headerParameters['X-Dynamic-Checkout-Session-Token'] = String(requestParameters.xDynamicCheckoutSessionToken);
|
|
4111
|
+
}
|
|
4112
|
+
if (requestParameters.xDynamicCheckoutTransactionId !== undefined && requestParameters.xDynamicCheckoutTransactionId !== null) {
|
|
4113
|
+
headerParameters['X-Dynamic-Checkout-Transaction-Id'] = String(requestParameters.xDynamicCheckoutTransactionId);
|
|
4114
|
+
}
|
|
4109
4115
|
if (this.configuration && this.configuration.accessToken) {
|
|
4110
4116
|
const token = this.configuration.accessToken;
|
|
4111
4117
|
const tokenString = await token("bearerAuth", []);
|
|
@@ -4122,7 +4128,7 @@ class SDKApi extends BaseAPI {
|
|
|
4122
4128
|
return new JSONApiResponse(response, (jsonValue) => RealtimeAuthTokenResponseFromJSON(jsonValue));
|
|
4123
4129
|
}
|
|
4124
4130
|
/**
|
|
4125
|
-
* Returns a short-lived JWT for subscribing to realtime channels.
|
|
4131
|
+
* Returns a short-lived JWT for subscribing to realtime channels. Accepts either a JWT (via Authorization header) or a checkout session token with transaction ID for unauthenticated checkout flows.
|
|
4126
4132
|
* Get a realtime auth token
|
|
4127
4133
|
*/
|
|
4128
4134
|
async getRealtimeAuthToken(requestParameters, initOverrides) {
|