@dynamic-labs/sdk-api 0.31.0 → 0.32.0
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/src/models/SanctionsWalletBlockedEventPayload.d.ts +2 -2
- package/src/models/WalletAddressScreeningAlertedEventPayload.d.ts +2 -2
- package/src/models/WalletAddressScreeningBlockedEventPayload.d.ts +2 -2
package/package.json
CHANGED
package/src/apis/SDKApi.cjs
CHANGED
|
@@ -5035,7 +5035,7 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
5035
5035
|
await this.getPasskeyRegistrationOptionsOptionsRaw(requestParameters, initOverrides);
|
|
5036
5036
|
}
|
|
5037
5037
|
/**
|
|
5038
|
-
* 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.
|
|
5038
|
+
* 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. The token is always scoped to the channels of the resources the caller is entitled to: session tokens are scoped to their own transaction or flow, while JWT callers must name the flow and/or checkout transaction to follow via the X-Dynamic-Flow-Id and X-Dynamic-Checkout-Transaction-Id headers.
|
|
5039
5039
|
* Get a realtime auth token
|
|
5040
5040
|
*/
|
|
5041
5041
|
async getRealtimeAuthTokenRaw(requestParameters, initOverrides) {
|
|
@@ -5053,6 +5053,12 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
5053
5053
|
if (requestParameters.xDynamicFlowId !== undefined && requestParameters.xDynamicFlowId !== null) {
|
|
5054
5054
|
headerParameters['X-Dynamic-Flow-Id'] = String(requestParameters.xDynamicFlowId);
|
|
5055
5055
|
}
|
|
5056
|
+
if (requestParameters.xDynamicCheckoutSessionToken !== undefined && requestParameters.xDynamicCheckoutSessionToken !== null) {
|
|
5057
|
+
headerParameters['X-Dynamic-Checkout-Session-Token'] = String(requestParameters.xDynamicCheckoutSessionToken);
|
|
5058
|
+
}
|
|
5059
|
+
if (requestParameters.xDynamicCheckoutTransactionId !== undefined && requestParameters.xDynamicCheckoutTransactionId !== null) {
|
|
5060
|
+
headerParameters['X-Dynamic-Checkout-Transaction-Id'] = String(requestParameters.xDynamicCheckoutTransactionId);
|
|
5061
|
+
}
|
|
5056
5062
|
if (this.configuration && this.configuration.accessToken) {
|
|
5057
5063
|
const token = this.configuration.accessToken;
|
|
5058
5064
|
const tokenString = await token("bearerAuth", []);
|
|
@@ -5069,7 +5075,7 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
5069
5075
|
return new runtime.JSONApiResponse(response, (jsonValue) => RealtimeAuthTokenResponse.RealtimeAuthTokenResponseFromJSON(jsonValue));
|
|
5070
5076
|
}
|
|
5071
5077
|
/**
|
|
5072
|
-
* 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.
|
|
5078
|
+
* 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. The token is always scoped to the channels of the resources the caller is entitled to: session tokens are scoped to their own transaction or flow, while JWT callers must name the flow and/or checkout transaction to follow via the X-Dynamic-Flow-Id and X-Dynamic-Checkout-Transaction-Id headers.
|
|
5073
5079
|
* Get a realtime auth token
|
|
5074
5080
|
*/
|
|
5075
5081
|
async getRealtimeAuthToken(requestParameters, initOverrides) {
|
package/src/apis/SDKApi.d.ts
CHANGED
|
@@ -615,6 +615,8 @@ export interface GetRealtimeAuthTokenRequest {
|
|
|
615
615
|
capabilities?: string;
|
|
616
616
|
xDynamicFlowSessionToken?: string;
|
|
617
617
|
xDynamicFlowId?: string;
|
|
618
|
+
xDynamicCheckoutSessionToken?: string;
|
|
619
|
+
xDynamicCheckoutTransactionId?: string;
|
|
618
620
|
}
|
|
619
621
|
export interface GetRecoveryCodesRequest {
|
|
620
622
|
environmentId: string;
|
|
@@ -2958,12 +2960,12 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
2958
2960
|
*/
|
|
2959
2961
|
getPasskeyRegistrationOptionsOptions(requestParameters: GetPasskeyRegistrationOptionsOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
2960
2962
|
/**
|
|
2961
|
-
* 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.
|
|
2963
|
+
* 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. The token is always scoped to the channels of the resources the caller is entitled to: session tokens are scoped to their own transaction or flow, while JWT callers must name the flow and/or checkout transaction to follow via the X-Dynamic-Flow-Id and X-Dynamic-Checkout-Transaction-Id headers.
|
|
2962
2964
|
* Get a realtime auth token
|
|
2963
2965
|
*/
|
|
2964
2966
|
getRealtimeAuthTokenRaw(requestParameters: GetRealtimeAuthTokenRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<RealtimeAuthTokenResponse>>;
|
|
2965
2967
|
/**
|
|
2966
|
-
* 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.
|
|
2968
|
+
* 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. The token is always scoped to the channels of the resources the caller is entitled to: session tokens are scoped to their own transaction or flow, while JWT callers must name the flow and/or checkout transaction to follow via the X-Dynamic-Flow-Id and X-Dynamic-Checkout-Transaction-Id headers.
|
|
2967
2969
|
* Get a realtime auth token
|
|
2968
2970
|
*/
|
|
2969
2971
|
getRealtimeAuthToken(requestParameters: GetRealtimeAuthTokenRequest, initOverrides?: RequestInit): Promise<RealtimeAuthTokenResponse>;
|
package/src/apis/SDKApi.js
CHANGED
|
@@ -5031,7 +5031,7 @@ class SDKApi extends BaseAPI {
|
|
|
5031
5031
|
await this.getPasskeyRegistrationOptionsOptionsRaw(requestParameters, initOverrides);
|
|
5032
5032
|
}
|
|
5033
5033
|
/**
|
|
5034
|
-
* 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.
|
|
5034
|
+
* 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. The token is always scoped to the channels of the resources the caller is entitled to: session tokens are scoped to their own transaction or flow, while JWT callers must name the flow and/or checkout transaction to follow via the X-Dynamic-Flow-Id and X-Dynamic-Checkout-Transaction-Id headers.
|
|
5035
5035
|
* Get a realtime auth token
|
|
5036
5036
|
*/
|
|
5037
5037
|
async getRealtimeAuthTokenRaw(requestParameters, initOverrides) {
|
|
@@ -5049,6 +5049,12 @@ class SDKApi extends BaseAPI {
|
|
|
5049
5049
|
if (requestParameters.xDynamicFlowId !== undefined && requestParameters.xDynamicFlowId !== null) {
|
|
5050
5050
|
headerParameters['X-Dynamic-Flow-Id'] = String(requestParameters.xDynamicFlowId);
|
|
5051
5051
|
}
|
|
5052
|
+
if (requestParameters.xDynamicCheckoutSessionToken !== undefined && requestParameters.xDynamicCheckoutSessionToken !== null) {
|
|
5053
|
+
headerParameters['X-Dynamic-Checkout-Session-Token'] = String(requestParameters.xDynamicCheckoutSessionToken);
|
|
5054
|
+
}
|
|
5055
|
+
if (requestParameters.xDynamicCheckoutTransactionId !== undefined && requestParameters.xDynamicCheckoutTransactionId !== null) {
|
|
5056
|
+
headerParameters['X-Dynamic-Checkout-Transaction-Id'] = String(requestParameters.xDynamicCheckoutTransactionId);
|
|
5057
|
+
}
|
|
5052
5058
|
if (this.configuration && this.configuration.accessToken) {
|
|
5053
5059
|
const token = this.configuration.accessToken;
|
|
5054
5060
|
const tokenString = await token("bearerAuth", []);
|
|
@@ -5065,7 +5071,7 @@ class SDKApi extends BaseAPI {
|
|
|
5065
5071
|
return new JSONApiResponse(response, (jsonValue) => RealtimeAuthTokenResponseFromJSON(jsonValue));
|
|
5066
5072
|
}
|
|
5067
5073
|
/**
|
|
5068
|
-
* 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.
|
|
5074
|
+
* 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. The token is always scoped to the channels of the resources the caller is entitled to: session tokens are scoped to their own transaction or flow, while JWT callers must name the flow and/or checkout transaction to follow via the X-Dynamic-Flow-Id and X-Dynamic-Checkout-Transaction-Id headers.
|
|
5069
5075
|
* Get a realtime auth token
|
|
5070
5076
|
*/
|
|
5071
5077
|
async getRealtimeAuthToken(requestParameters, initOverrides) {
|
|
@@ -48,7 +48,7 @@ export interface SanctionsWalletBlockedEventPayload {
|
|
|
48
48
|
walletAddress: string;
|
|
49
49
|
/**
|
|
50
50
|
* Chain identifier (e.g. 'ethereum', 'bitcoin', 'solana'). Canonical
|
|
51
|
-
* value
|
|
51
|
+
* value recorded on the screening audit record.
|
|
52
52
|
* @type {string}
|
|
53
53
|
* @memberof SanctionsWalletBlockedEventPayload
|
|
54
54
|
*/
|
|
@@ -60,7 +60,7 @@ export interface SanctionsWalletBlockedEventPayload {
|
|
|
60
60
|
*/
|
|
61
61
|
sanctionsProvider: SanctionsWalletBlockedEventPayloadSanctionsProviderEnum;
|
|
62
62
|
/**
|
|
63
|
-
* Forensic key into the
|
|
63
|
+
* Forensic key into the screening audit record.
|
|
64
64
|
* @type {string}
|
|
65
65
|
* @memberof SanctionsWalletBlockedEventPayload
|
|
66
66
|
*/
|
|
@@ -34,7 +34,7 @@ export interface WalletAddressScreeningAlertedEventPayload {
|
|
|
34
34
|
walletAddress: string;
|
|
35
35
|
/**
|
|
36
36
|
* Chain identifier (e.g. 'ethereum', 'bitcoin', 'solana'). Canonical
|
|
37
|
-
* value
|
|
37
|
+
* value recorded on the screening audit record.
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof WalletAddressScreeningAlertedEventPayload
|
|
40
40
|
*/
|
|
@@ -46,7 +46,7 @@ export interface WalletAddressScreeningAlertedEventPayload {
|
|
|
46
46
|
*/
|
|
47
47
|
sanctionsProvider: WalletAddressScreeningAlertedEventPayloadSanctionsProviderEnum;
|
|
48
48
|
/**
|
|
49
|
-
* Forensic key into the
|
|
49
|
+
* Forensic key into the screening audit record.
|
|
50
50
|
* @type {string}
|
|
51
51
|
* @memberof WalletAddressScreeningAlertedEventPayload
|
|
52
52
|
*/
|
|
@@ -34,7 +34,7 @@ export interface WalletAddressScreeningBlockedEventPayload {
|
|
|
34
34
|
walletAddress: string;
|
|
35
35
|
/**
|
|
36
36
|
* Chain identifier (e.g. 'ethereum', 'bitcoin', 'solana'). Canonical
|
|
37
|
-
* value
|
|
37
|
+
* value recorded on the screening audit record.
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof WalletAddressScreeningBlockedEventPayload
|
|
40
40
|
*/
|
|
@@ -46,7 +46,7 @@ export interface WalletAddressScreeningBlockedEventPayload {
|
|
|
46
46
|
*/
|
|
47
47
|
sanctionsProvider: WalletAddressScreeningBlockedEventPayloadSanctionsProviderEnum;
|
|
48
48
|
/**
|
|
49
|
-
* Forensic key into the
|
|
49
|
+
* Forensic key into the screening audit record.
|
|
50
50
|
* @type {string}
|
|
51
51
|
* @memberof WalletAddressScreeningBlockedEventPayload
|
|
52
52
|
*/
|