@edge-markets/connect 1.5.0 → 1.5.1
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/dist/index.d.mts +4 -104
- package/dist/index.d.ts +4 -104
- package/dist/index.js +13 -5
- package/dist/index.mjs +13 -5
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -54,8 +54,8 @@ declare const EDGE_SCOPES: {
|
|
|
54
54
|
*/
|
|
55
55
|
readonly BALANCE_READ: "balance.read";
|
|
56
56
|
/**
|
|
57
|
-
* Initiate and
|
|
58
|
-
* Required for: `POST /v1/transfer`, `POST /v1/transfer/:id/
|
|
57
|
+
* Initiate fund transfers and create EDGE-hosted verification sessions.
|
|
58
|
+
* Required for: `POST /v1/transfer`, `POST /v1/transfer/:id/verification-session`, `GET /v1/transfers`
|
|
59
59
|
*/
|
|
60
60
|
readonly TRANSFER_WRITE: "transfer.write";
|
|
61
61
|
};
|
|
@@ -696,7 +696,7 @@ interface paths {
|
|
|
696
696
|
* Use the `idempotencyKey` to safely retry requests. If a transfer with the same key exists, its current status will be returned.
|
|
697
697
|
*
|
|
698
698
|
* **OTP Verification:**
|
|
699
|
-
* After initiating, the transfer will be in `pending_verification` status. Call `POST /transfer/{transferId}/
|
|
699
|
+
* After initiating, the transfer will be in `pending_verification` status. Call `POST /transfer/{transferId}/verification-session` to create an EDGE-hosted verification session and embed the returned `verificationUrl` in your frontend.
|
|
700
700
|
*/
|
|
701
701
|
post: operations['initiateTransfer'];
|
|
702
702
|
delete?: never;
|
|
@@ -745,32 +745,6 @@ interface paths {
|
|
|
745
745
|
patch?: never;
|
|
746
746
|
trace?: never;
|
|
747
747
|
};
|
|
748
|
-
'/v1/transfer/{transferId}/verify': {
|
|
749
|
-
parameters: {
|
|
750
|
-
query?: never;
|
|
751
|
-
header?: never;
|
|
752
|
-
path?: never;
|
|
753
|
-
cookie?: never;
|
|
754
|
-
};
|
|
755
|
-
get?: never;
|
|
756
|
-
put?: never;
|
|
757
|
-
/**
|
|
758
|
-
* Verify transfer with OTP
|
|
759
|
-
* @description Completes a pending transfer by verifying the one-time password.
|
|
760
|
-
*
|
|
761
|
-
* **OTP Methods:**
|
|
762
|
-
* - `sms`: User receives OTP via SMS
|
|
763
|
-
* - `totp`: User generates OTP from authenticator app
|
|
764
|
-
*
|
|
765
|
-
* The OTP method is indicated in the `otpMethod` field of the transfer response.
|
|
766
|
-
*/
|
|
767
|
-
post: operations['verifyTransfer'];
|
|
768
|
-
delete?: never;
|
|
769
|
-
options?: never;
|
|
770
|
-
head?: never;
|
|
771
|
-
patch?: never;
|
|
772
|
-
trace?: never;
|
|
773
|
-
};
|
|
774
748
|
'/v1/consent': {
|
|
775
749
|
parameters: {
|
|
776
750
|
query?: never;
|
|
@@ -1154,13 +1128,6 @@ interface components {
|
|
|
1154
1128
|
*/
|
|
1155
1129
|
total: number;
|
|
1156
1130
|
};
|
|
1157
|
-
VerifyTransferRequestDto: {
|
|
1158
|
-
/**
|
|
1159
|
-
* @description One-time password for verification
|
|
1160
|
-
* @example 123456
|
|
1161
|
-
*/
|
|
1162
|
-
otp: string;
|
|
1163
|
-
};
|
|
1164
1131
|
RevokeConsentResponseDto: {
|
|
1165
1132
|
/**
|
|
1166
1133
|
* @description Whether consent was successfully revoked
|
|
@@ -2035,69 +2002,6 @@ interface operations {
|
|
|
2035
2002
|
};
|
|
2036
2003
|
};
|
|
2037
2004
|
};
|
|
2038
|
-
verifyTransfer: {
|
|
2039
|
-
parameters: {
|
|
2040
|
-
query?: never;
|
|
2041
|
-
header?: never;
|
|
2042
|
-
path: {
|
|
2043
|
-
/** @description The unique transfer identifier */
|
|
2044
|
-
transferId: string;
|
|
2045
|
-
};
|
|
2046
|
-
cookie?: never;
|
|
2047
|
-
};
|
|
2048
|
-
requestBody: {
|
|
2049
|
-
content: {
|
|
2050
|
-
'application/json': components['schemas']['VerifyTransferRequestDto'];
|
|
2051
|
-
};
|
|
2052
|
-
};
|
|
2053
|
-
responses: {
|
|
2054
|
-
/** @description Transfer verified and completed (or failed) */
|
|
2055
|
-
200: {
|
|
2056
|
-
headers: {
|
|
2057
|
-
[name: string]: unknown;
|
|
2058
|
-
};
|
|
2059
|
-
content: {
|
|
2060
|
-
'application/json': components['schemas']['TransferResponseDto'];
|
|
2061
|
-
};
|
|
2062
|
-
};
|
|
2063
|
-
/** @description Invalid OTP or transfer expired */
|
|
2064
|
-
400: {
|
|
2065
|
-
headers: {
|
|
2066
|
-
[name: string]: unknown;
|
|
2067
|
-
};
|
|
2068
|
-
content: {
|
|
2069
|
-
'application/json': components['schemas']['ErrorResponseDto'];
|
|
2070
|
-
};
|
|
2071
|
-
};
|
|
2072
|
-
/** @description Invalid or expired access token */
|
|
2073
|
-
401: {
|
|
2074
|
-
headers: {
|
|
2075
|
-
[name: string]: unknown;
|
|
2076
|
-
};
|
|
2077
|
-
content: {
|
|
2078
|
-
'application/json': components['schemas']['ErrorResponseDto'];
|
|
2079
|
-
};
|
|
2080
|
-
};
|
|
2081
|
-
/** @description User consent required or insufficient scope */
|
|
2082
|
-
403: {
|
|
2083
|
-
headers: {
|
|
2084
|
-
[name: string]: unknown;
|
|
2085
|
-
};
|
|
2086
|
-
content: {
|
|
2087
|
-
'application/json': components['schemas']['ConsentRequiredErrorDto'];
|
|
2088
|
-
};
|
|
2089
|
-
};
|
|
2090
|
-
/** @description Transfer not found */
|
|
2091
|
-
404: {
|
|
2092
|
-
headers: {
|
|
2093
|
-
[name: string]: unknown;
|
|
2094
|
-
};
|
|
2095
|
-
content: {
|
|
2096
|
-
'application/json': components['schemas']['ErrorResponseDto'];
|
|
2097
|
-
};
|
|
2098
|
-
};
|
|
2099
|
-
};
|
|
2100
|
-
};
|
|
2101
2005
|
revokeConsent: {
|
|
2102
2006
|
parameters: {
|
|
2103
2007
|
query?: never;
|
|
@@ -2432,10 +2336,6 @@ type TransferListItem = components['schemas']['TransferListItemDto'];
|
|
|
2432
2336
|
* Paginated list of transfers.
|
|
2433
2337
|
*/
|
|
2434
2338
|
type TransferList = components['schemas']['ListTransfersResponseDto'];
|
|
2435
|
-
/**
|
|
2436
|
-
* Request payload for verifying a transfer with OTP.
|
|
2437
|
-
*/
|
|
2438
|
-
type VerifyTransferRequest = components['schemas']['VerifyTransferRequestDto'];
|
|
2439
2339
|
/**
|
|
2440
2340
|
* Response from revoking user consent.
|
|
2441
2341
|
*/
|
|
@@ -3139,4 +3039,4 @@ declare const SDK_VERSION = "1.0.0";
|
|
|
3139
3039
|
*/
|
|
3140
3040
|
declare const SDK_NAME = "@edge-markets/connect";
|
|
3141
3041
|
|
|
3142
|
-
export { ALL_EDGE_SCOPES, type ApiError, type Balance, type ConsentRequiredError, type CreateVerificationSessionRequest, EDGE_ENVIRONMENTS, EDGE_SCOPES, EdgeApiError, EdgeAuthenticationError, EdgeConsentRequiredError, type EdgeEnvironment, type EdgeEnvironmentConfig, EdgeError, EdgeIdentityVerificationError, EdgeInsufficientScopeError, type EdgeLinkConfigBase, type EdgeLinkEvent, type EdgeLinkEventName, type EdgeLinkExit, type EdgeLinkSuccess, EdgeNetworkError, EdgeNotFoundError, EdgePopupBlockedError, EdgePopupClosedError, type EdgeScope, EdgeStateMismatchError, EdgeTokenExchangeError, type EdgeTokens, EdgeValidationError, type InitiateTransferRequest, type ListTransfersParams, OTP_METHODS, type OtpMethod, type PKCEPair, type RevokeConsentResponse, SCOPE_DESCRIPTIONS, SCOPE_ICONS, SDK_NAME, SDK_VERSION, type SdkGeolocation, TRANSFER_CATEGORIES, TRANSFER_STATUSES, TRANSFER_TYPES, type Transfer, type TransferCategory, type TransferList, type TransferListItem, type TransferStatus, type TransferType, type User, type UserAddress, type VerificationSession, type VerificationSessionStatus, type VerificationSessionStatusResponse, type VerifyIdentityAddress, type VerifyIdentityOptions, type VerifyIdentityResult, type VerifyIdentityScores, type
|
|
3042
|
+
export { ALL_EDGE_SCOPES, type ApiError, type Balance, type ConsentRequiredError, type CreateVerificationSessionRequest, EDGE_ENVIRONMENTS, EDGE_SCOPES, EdgeApiError, EdgeAuthenticationError, EdgeConsentRequiredError, type EdgeEnvironment, type EdgeEnvironmentConfig, EdgeError, EdgeIdentityVerificationError, EdgeInsufficientScopeError, type EdgeLinkConfigBase, type EdgeLinkEvent, type EdgeLinkEventName, type EdgeLinkExit, type EdgeLinkSuccess, EdgeNetworkError, EdgeNotFoundError, EdgePopupBlockedError, EdgePopupClosedError, type EdgeScope, EdgeStateMismatchError, EdgeTokenExchangeError, type EdgeTokens, EdgeValidationError, type InitiateTransferRequest, type ListTransfersParams, OTP_METHODS, type OtpMethod, type PKCEPair, type RevokeConsentResponse, SCOPE_DESCRIPTIONS, SCOPE_ICONS, SDK_NAME, SDK_VERSION, type SdkGeolocation, TRANSFER_CATEGORIES, TRANSFER_STATUSES, TRANSFER_TYPES, type Transfer, type TransferCategory, type TransferList, type TransferListItem, type TransferStatus, type TransferType, type User, type UserAddress, type VerificationSession, type VerificationSessionStatus, type VerificationSessionStatusResponse, type VerifyIdentityAddress, type VerifyIdentityOptions, type VerifyIdentityResult, type VerifyIdentityScores, type components, formatScopeForEnvironment, formatScopesForEnvironment, getAvailableEnvironments, getEnvironmentConfig, isApiError, isAuthenticationError, isConsentRequiredError, isEdgeError, isIdentityVerificationError, isNetworkError, isProductionEnvironment, isValidScope, type operations, parseScope, type paths };
|
package/dist/index.d.ts
CHANGED
|
@@ -54,8 +54,8 @@ declare const EDGE_SCOPES: {
|
|
|
54
54
|
*/
|
|
55
55
|
readonly BALANCE_READ: "balance.read";
|
|
56
56
|
/**
|
|
57
|
-
* Initiate and
|
|
58
|
-
* Required for: `POST /v1/transfer`, `POST /v1/transfer/:id/
|
|
57
|
+
* Initiate fund transfers and create EDGE-hosted verification sessions.
|
|
58
|
+
* Required for: `POST /v1/transfer`, `POST /v1/transfer/:id/verification-session`, `GET /v1/transfers`
|
|
59
59
|
*/
|
|
60
60
|
readonly TRANSFER_WRITE: "transfer.write";
|
|
61
61
|
};
|
|
@@ -696,7 +696,7 @@ interface paths {
|
|
|
696
696
|
* Use the `idempotencyKey` to safely retry requests. If a transfer with the same key exists, its current status will be returned.
|
|
697
697
|
*
|
|
698
698
|
* **OTP Verification:**
|
|
699
|
-
* After initiating, the transfer will be in `pending_verification` status. Call `POST /transfer/{transferId}/
|
|
699
|
+
* After initiating, the transfer will be in `pending_verification` status. Call `POST /transfer/{transferId}/verification-session` to create an EDGE-hosted verification session and embed the returned `verificationUrl` in your frontend.
|
|
700
700
|
*/
|
|
701
701
|
post: operations['initiateTransfer'];
|
|
702
702
|
delete?: never;
|
|
@@ -745,32 +745,6 @@ interface paths {
|
|
|
745
745
|
patch?: never;
|
|
746
746
|
trace?: never;
|
|
747
747
|
};
|
|
748
|
-
'/v1/transfer/{transferId}/verify': {
|
|
749
|
-
parameters: {
|
|
750
|
-
query?: never;
|
|
751
|
-
header?: never;
|
|
752
|
-
path?: never;
|
|
753
|
-
cookie?: never;
|
|
754
|
-
};
|
|
755
|
-
get?: never;
|
|
756
|
-
put?: never;
|
|
757
|
-
/**
|
|
758
|
-
* Verify transfer with OTP
|
|
759
|
-
* @description Completes a pending transfer by verifying the one-time password.
|
|
760
|
-
*
|
|
761
|
-
* **OTP Methods:**
|
|
762
|
-
* - `sms`: User receives OTP via SMS
|
|
763
|
-
* - `totp`: User generates OTP from authenticator app
|
|
764
|
-
*
|
|
765
|
-
* The OTP method is indicated in the `otpMethod` field of the transfer response.
|
|
766
|
-
*/
|
|
767
|
-
post: operations['verifyTransfer'];
|
|
768
|
-
delete?: never;
|
|
769
|
-
options?: never;
|
|
770
|
-
head?: never;
|
|
771
|
-
patch?: never;
|
|
772
|
-
trace?: never;
|
|
773
|
-
};
|
|
774
748
|
'/v1/consent': {
|
|
775
749
|
parameters: {
|
|
776
750
|
query?: never;
|
|
@@ -1154,13 +1128,6 @@ interface components {
|
|
|
1154
1128
|
*/
|
|
1155
1129
|
total: number;
|
|
1156
1130
|
};
|
|
1157
|
-
VerifyTransferRequestDto: {
|
|
1158
|
-
/**
|
|
1159
|
-
* @description One-time password for verification
|
|
1160
|
-
* @example 123456
|
|
1161
|
-
*/
|
|
1162
|
-
otp: string;
|
|
1163
|
-
};
|
|
1164
1131
|
RevokeConsentResponseDto: {
|
|
1165
1132
|
/**
|
|
1166
1133
|
* @description Whether consent was successfully revoked
|
|
@@ -2035,69 +2002,6 @@ interface operations {
|
|
|
2035
2002
|
};
|
|
2036
2003
|
};
|
|
2037
2004
|
};
|
|
2038
|
-
verifyTransfer: {
|
|
2039
|
-
parameters: {
|
|
2040
|
-
query?: never;
|
|
2041
|
-
header?: never;
|
|
2042
|
-
path: {
|
|
2043
|
-
/** @description The unique transfer identifier */
|
|
2044
|
-
transferId: string;
|
|
2045
|
-
};
|
|
2046
|
-
cookie?: never;
|
|
2047
|
-
};
|
|
2048
|
-
requestBody: {
|
|
2049
|
-
content: {
|
|
2050
|
-
'application/json': components['schemas']['VerifyTransferRequestDto'];
|
|
2051
|
-
};
|
|
2052
|
-
};
|
|
2053
|
-
responses: {
|
|
2054
|
-
/** @description Transfer verified and completed (or failed) */
|
|
2055
|
-
200: {
|
|
2056
|
-
headers: {
|
|
2057
|
-
[name: string]: unknown;
|
|
2058
|
-
};
|
|
2059
|
-
content: {
|
|
2060
|
-
'application/json': components['schemas']['TransferResponseDto'];
|
|
2061
|
-
};
|
|
2062
|
-
};
|
|
2063
|
-
/** @description Invalid OTP or transfer expired */
|
|
2064
|
-
400: {
|
|
2065
|
-
headers: {
|
|
2066
|
-
[name: string]: unknown;
|
|
2067
|
-
};
|
|
2068
|
-
content: {
|
|
2069
|
-
'application/json': components['schemas']['ErrorResponseDto'];
|
|
2070
|
-
};
|
|
2071
|
-
};
|
|
2072
|
-
/** @description Invalid or expired access token */
|
|
2073
|
-
401: {
|
|
2074
|
-
headers: {
|
|
2075
|
-
[name: string]: unknown;
|
|
2076
|
-
};
|
|
2077
|
-
content: {
|
|
2078
|
-
'application/json': components['schemas']['ErrorResponseDto'];
|
|
2079
|
-
};
|
|
2080
|
-
};
|
|
2081
|
-
/** @description User consent required or insufficient scope */
|
|
2082
|
-
403: {
|
|
2083
|
-
headers: {
|
|
2084
|
-
[name: string]: unknown;
|
|
2085
|
-
};
|
|
2086
|
-
content: {
|
|
2087
|
-
'application/json': components['schemas']['ConsentRequiredErrorDto'];
|
|
2088
|
-
};
|
|
2089
|
-
};
|
|
2090
|
-
/** @description Transfer not found */
|
|
2091
|
-
404: {
|
|
2092
|
-
headers: {
|
|
2093
|
-
[name: string]: unknown;
|
|
2094
|
-
};
|
|
2095
|
-
content: {
|
|
2096
|
-
'application/json': components['schemas']['ErrorResponseDto'];
|
|
2097
|
-
};
|
|
2098
|
-
};
|
|
2099
|
-
};
|
|
2100
|
-
};
|
|
2101
2005
|
revokeConsent: {
|
|
2102
2006
|
parameters: {
|
|
2103
2007
|
query?: never;
|
|
@@ -2432,10 +2336,6 @@ type TransferListItem = components['schemas']['TransferListItemDto'];
|
|
|
2432
2336
|
* Paginated list of transfers.
|
|
2433
2337
|
*/
|
|
2434
2338
|
type TransferList = components['schemas']['ListTransfersResponseDto'];
|
|
2435
|
-
/**
|
|
2436
|
-
* Request payload for verifying a transfer with OTP.
|
|
2437
|
-
*/
|
|
2438
|
-
type VerifyTransferRequest = components['schemas']['VerifyTransferRequestDto'];
|
|
2439
2339
|
/**
|
|
2440
2340
|
* Response from revoking user consent.
|
|
2441
2341
|
*/
|
|
@@ -3139,4 +3039,4 @@ declare const SDK_VERSION = "1.0.0";
|
|
|
3139
3039
|
*/
|
|
3140
3040
|
declare const SDK_NAME = "@edge-markets/connect";
|
|
3141
3041
|
|
|
3142
|
-
export { ALL_EDGE_SCOPES, type ApiError, type Balance, type ConsentRequiredError, type CreateVerificationSessionRequest, EDGE_ENVIRONMENTS, EDGE_SCOPES, EdgeApiError, EdgeAuthenticationError, EdgeConsentRequiredError, type EdgeEnvironment, type EdgeEnvironmentConfig, EdgeError, EdgeIdentityVerificationError, EdgeInsufficientScopeError, type EdgeLinkConfigBase, type EdgeLinkEvent, type EdgeLinkEventName, type EdgeLinkExit, type EdgeLinkSuccess, EdgeNetworkError, EdgeNotFoundError, EdgePopupBlockedError, EdgePopupClosedError, type EdgeScope, EdgeStateMismatchError, EdgeTokenExchangeError, type EdgeTokens, EdgeValidationError, type InitiateTransferRequest, type ListTransfersParams, OTP_METHODS, type OtpMethod, type PKCEPair, type RevokeConsentResponse, SCOPE_DESCRIPTIONS, SCOPE_ICONS, SDK_NAME, SDK_VERSION, type SdkGeolocation, TRANSFER_CATEGORIES, TRANSFER_STATUSES, TRANSFER_TYPES, type Transfer, type TransferCategory, type TransferList, type TransferListItem, type TransferStatus, type TransferType, type User, type UserAddress, type VerificationSession, type VerificationSessionStatus, type VerificationSessionStatusResponse, type VerifyIdentityAddress, type VerifyIdentityOptions, type VerifyIdentityResult, type VerifyIdentityScores, type
|
|
3042
|
+
export { ALL_EDGE_SCOPES, type ApiError, type Balance, type ConsentRequiredError, type CreateVerificationSessionRequest, EDGE_ENVIRONMENTS, EDGE_SCOPES, EdgeApiError, EdgeAuthenticationError, EdgeConsentRequiredError, type EdgeEnvironment, type EdgeEnvironmentConfig, EdgeError, EdgeIdentityVerificationError, EdgeInsufficientScopeError, type EdgeLinkConfigBase, type EdgeLinkEvent, type EdgeLinkEventName, type EdgeLinkExit, type EdgeLinkSuccess, EdgeNetworkError, EdgeNotFoundError, EdgePopupBlockedError, EdgePopupClosedError, type EdgeScope, EdgeStateMismatchError, EdgeTokenExchangeError, type EdgeTokens, EdgeValidationError, type InitiateTransferRequest, type ListTransfersParams, OTP_METHODS, type OtpMethod, type PKCEPair, type RevokeConsentResponse, SCOPE_DESCRIPTIONS, SCOPE_ICONS, SDK_NAME, SDK_VERSION, type SdkGeolocation, TRANSFER_CATEGORIES, TRANSFER_STATUSES, TRANSFER_TYPES, type Transfer, type TransferCategory, type TransferList, type TransferListItem, type TransferStatus, type TransferType, type User, type UserAddress, type VerificationSession, type VerificationSessionStatus, type VerificationSessionStatusResponse, type VerifyIdentityAddress, type VerifyIdentityOptions, type VerifyIdentityResult, type VerifyIdentityScores, type components, formatScopeForEnvironment, formatScopesForEnvironment, getAvailableEnvironments, getEnvironmentConfig, isApiError, isAuthenticationError, isConsentRequiredError, isEdgeError, isIdentityVerificationError, isNetworkError, isProductionEnvironment, isValidScope, type operations, parseScope, type paths };
|
package/dist/index.js
CHANGED
|
@@ -89,9 +89,17 @@ var EDGE_ENVIRONMENTS = {
|
|
|
89
89
|
},
|
|
90
90
|
staging: {
|
|
91
91
|
cognitoDomain: "https://edge-connect-staging.auth.us-east-1.amazoncognito.com",
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
92
|
+
// Staging partner API — mTLS-enforced. Requires a partner client
|
|
93
|
+
// certificate on every request. Routed through API Gateway → VPC Link →
|
|
94
|
+
// internal ALB → ECS. Direct routes to the backend (e.g.
|
|
95
|
+
// backend.connect-staging.edgeboost.io) no longer exist.
|
|
96
|
+
apiBaseUrl: "https://connect-staging.edgeboost.io/connect/v1",
|
|
97
|
+
// OAuth token exchange — partner-facing, also mTLS-enforced.
|
|
98
|
+
oauthBaseUrl: "https://connect-staging.edgeboost.io/connect/oauth",
|
|
99
|
+
// User-facing captive frame for the Link SDK enrollment and transfer
|
|
100
|
+
// verification flows. Served from the edge-connect-oauth Vite app
|
|
101
|
+
// deployed on Amplify. No mTLS — browser traffic.
|
|
102
|
+
userClientUrl: "https://oauth.staging-app.edgeboost.bet",
|
|
95
103
|
displayName: "Staging",
|
|
96
104
|
isProduction: false
|
|
97
105
|
},
|
|
@@ -145,8 +153,8 @@ var EDGE_SCOPES = {
|
|
|
145
153
|
*/
|
|
146
154
|
BALANCE_READ: "balance.read",
|
|
147
155
|
/**
|
|
148
|
-
* Initiate and
|
|
149
|
-
* Required for: `POST /v1/transfer`, `POST /v1/transfer/:id/
|
|
156
|
+
* Initiate fund transfers and create EDGE-hosted verification sessions.
|
|
157
|
+
* Required for: `POST /v1/transfer`, `POST /v1/transfer/:id/verification-session`, `GET /v1/transfers`
|
|
150
158
|
*/
|
|
151
159
|
TRANSFER_WRITE: "transfer.write"
|
|
152
160
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -27,9 +27,17 @@ var EDGE_ENVIRONMENTS = {
|
|
|
27
27
|
},
|
|
28
28
|
staging: {
|
|
29
29
|
cognitoDomain: "https://edge-connect-staging.auth.us-east-1.amazoncognito.com",
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
// Staging partner API — mTLS-enforced. Requires a partner client
|
|
31
|
+
// certificate on every request. Routed through API Gateway → VPC Link →
|
|
32
|
+
// internal ALB → ECS. Direct routes to the backend (e.g.
|
|
33
|
+
// backend.connect-staging.edgeboost.io) no longer exist.
|
|
34
|
+
apiBaseUrl: "https://connect-staging.edgeboost.io/connect/v1",
|
|
35
|
+
// OAuth token exchange — partner-facing, also mTLS-enforced.
|
|
36
|
+
oauthBaseUrl: "https://connect-staging.edgeboost.io/connect/oauth",
|
|
37
|
+
// User-facing captive frame for the Link SDK enrollment and transfer
|
|
38
|
+
// verification flows. Served from the edge-connect-oauth Vite app
|
|
39
|
+
// deployed on Amplify. No mTLS — browser traffic.
|
|
40
|
+
userClientUrl: "https://oauth.staging-app.edgeboost.bet",
|
|
33
41
|
displayName: "Staging",
|
|
34
42
|
isProduction: false
|
|
35
43
|
},
|
|
@@ -83,8 +91,8 @@ var EDGE_SCOPES = {
|
|
|
83
91
|
*/
|
|
84
92
|
BALANCE_READ: "balance.read",
|
|
85
93
|
/**
|
|
86
|
-
* Initiate and
|
|
87
|
-
* Required for: `POST /v1/transfer`, `POST /v1/transfer/:id/
|
|
94
|
+
* Initiate fund transfers and create EDGE-hosted verification sessions.
|
|
95
|
+
* Required for: `POST /v1/transfer`, `POST /v1/transfer/:id/verification-session`, `GET /v1/transfers`
|
|
88
96
|
*/
|
|
89
97
|
TRANSFER_WRITE: "transfer.write"
|
|
90
98
|
};
|