@edge-markets/connect 1.8.0 → 1.9.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/README.md +3 -1
- package/dist/index.d.mts +23 -15
- package/dist/index.d.ts +23 -15
- package/dist/index.js +14 -7
- package/dist/index.mjs +13 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -153,7 +153,9 @@ try {
|
|
|
153
153
|
| `EDGE_ENVIRONMENTS` | All environment configs |
|
|
154
154
|
| `getEnvironmentConfig(env)` | Get config for environment |
|
|
155
155
|
| `EDGE_SCOPES` | Available OAuth scopes |
|
|
156
|
-
| `
|
|
156
|
+
| `ACTIVE_EDGE_SCOPES` | Scopes enabled for current partner integrations |
|
|
157
|
+
| `ALL_EDGE_SCOPES` | Alias for all currently requestable scopes |
|
|
158
|
+
| `RESERVED_EDGE_SCOPES` | Future-only scopes that should not be requested |
|
|
157
159
|
| `formatScopeForEnvironment(scope, env)` | Format scope for Cognito |
|
|
158
160
|
|
|
159
161
|
### Errors
|
package/dist/index.d.mts
CHANGED
|
@@ -45,7 +45,7 @@ declare function getAvailableEnvironments(): readonly EdgeEnvironment[];
|
|
|
45
45
|
* scopes: [EDGE_SCOPES.USER_READ, EDGE_SCOPES.BALANCE_READ],
|
|
46
46
|
* })
|
|
47
47
|
*
|
|
48
|
-
* // Or request all scopes
|
|
48
|
+
* // Or request all currently enabled scopes
|
|
49
49
|
* link.open({
|
|
50
50
|
* scopes: ALL_EDGE_SCOPES,
|
|
51
51
|
* })
|
|
@@ -63,9 +63,10 @@ declare const EDGE_SCOPES: {
|
|
|
63
63
|
*/
|
|
64
64
|
readonly BALANCE_READ: "balance.read";
|
|
65
65
|
/**
|
|
66
|
-
*
|
|
67
|
-
* Not available
|
|
68
|
-
* EdgeFeatureUnavailableError until EDGE enables transfers
|
|
66
|
+
* Reserved for future fund transfers and EDGE-hosted verification sessions.
|
|
67
|
+
* Not available in staging or production. Requesting this scope from Link
|
|
68
|
+
* SDKs fails with EdgeFeatureUnavailableError until EDGE enables transfers
|
|
69
|
+
* for a partner.
|
|
69
70
|
*
|
|
70
71
|
* Required for: `POST /v1/transfer`, `POST /v1/transfer/:id/verification-session`, `GET /v1/transfers`
|
|
71
72
|
*/
|
|
@@ -76,27 +77,34 @@ declare const EDGE_SCOPES: {
|
|
|
76
77
|
*/
|
|
77
78
|
type EdgeScope = (typeof EDGE_SCOPES)[keyof typeof EDGE_SCOPES];
|
|
78
79
|
/**
|
|
79
|
-
*
|
|
80
|
-
*
|
|
80
|
+
* Scopes active for current EDGE Connect partner integrations.
|
|
81
|
+
*
|
|
82
|
+
* Transfers are intentionally unavailable for now, so SDK Link flows request
|
|
83
|
+
* this set by default.
|
|
84
|
+
*/
|
|
85
|
+
declare const ACTIVE_EDGE_SCOPES: readonly EdgeScope[];
|
|
86
|
+
/**
|
|
87
|
+
* Reserved scopes kept in the SDK catalog for future feature launches.
|
|
88
|
+
*
|
|
89
|
+
* Do not request these scopes unless EDGE has explicitly enabled the feature
|
|
90
|
+
* for your integration.
|
|
91
|
+
*/
|
|
92
|
+
declare const RESERVED_EDGE_SCOPES: readonly EdgeScope[];
|
|
93
|
+
/**
|
|
94
|
+
* All currently requestable scopes as an array.
|
|
95
|
+
* This intentionally excludes reserved scopes such as `transfer.write`.
|
|
81
96
|
*
|
|
82
97
|
* @example
|
|
83
98
|
* ```typescript
|
|
84
99
|
* const link = new EdgeLink({
|
|
85
100
|
* clientId: 'your-client-id',
|
|
86
101
|
* environment: 'staging',
|
|
87
|
-
* scopes: ALL_EDGE_SCOPES, //
|
|
102
|
+
* scopes: ALL_EDGE_SCOPES, // Same values as ACTIVE_EDGE_SCOPES today
|
|
88
103
|
* onSuccess: handleSuccess,
|
|
89
104
|
* })
|
|
90
105
|
* ```
|
|
91
106
|
*/
|
|
92
107
|
declare const ALL_EDGE_SCOPES: readonly EdgeScope[];
|
|
93
|
-
/**
|
|
94
|
-
* Scopes active for current EDGE Connect partner integrations.
|
|
95
|
-
*
|
|
96
|
-
* Transfers are intentionally unavailable for now, so SDK default Link flows
|
|
97
|
-
* should request this set rather than {@link ALL_EDGE_SCOPES}.
|
|
98
|
-
*/
|
|
99
|
-
declare const ACTIVE_EDGE_SCOPES: readonly EdgeScope[];
|
|
100
108
|
/**
|
|
101
109
|
* Human-readable descriptions for each scope.
|
|
102
110
|
* Useful for building custom consent UIs or explaining permissions.
|
|
@@ -3245,4 +3253,4 @@ declare const SDK_VERSION = "1.0.0";
|
|
|
3245
3253
|
*/
|
|
3246
3254
|
declare const SDK_NAME = "@edge-markets/connect";
|
|
3247
3255
|
|
|
3248
|
-
export { ACTIVE_EDGE_SCOPES, ALL_EDGE_SCOPES, type ApiError, type Balance, type BaseWebhookEvent, type ConsentRequiredError, type ConsentRevokedEventData, type CreateVerificationSessionRequest, EDGE_CONNECT_FEATURE_UNAVAILABLE_MESSAGE, EDGE_ENVIRONMENTS, EDGE_LINK_PATH, EDGE_SCOPES, EDGE_WEBHOOK_EVENT_TYPES, EdgeApiError, EdgeAuthenticationError, EdgeConsentRequiredError, type EdgeEnvironment, type EdgeEnvironmentConfig, EdgeError, EdgeFeatureUnavailableError, EdgeIdentityVerificationError, EdgeInsufficientScopeError, type EdgeLinkConfigBase, type EdgeLinkEvent, type EdgeLinkEventName, type EdgeLinkExit, type EdgeLinkSuccess, EdgeNetworkError, EdgeNotFoundError, EdgePopupBlockedError, EdgePopupClosedError, type EdgeScope, EdgeStateMismatchError, EdgeTokenExchangeError, type EdgeTokens, EdgeValidationError, type EdgeWebhookEvent, type EdgeWebhookEventType, 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 TransferCompletedEventData, type TransferExpiredEventData, type TransferFailedEventData, type TransferList, type TransferListItem, type TransferProcessingEventData, 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, getLinkUrl, isApiError, isAuthenticationError, isConsentRequiredError, isEdgeError, isFeatureUnavailableError, isIdentityVerificationError, isNetworkError, isProductionEnvironment, isTransferWriteScope, isValidScope, type operations, parseScope, type paths };
|
|
3256
|
+
export { ACTIVE_EDGE_SCOPES, ALL_EDGE_SCOPES, type ApiError, type Balance, type BaseWebhookEvent, type ConsentRequiredError, type ConsentRevokedEventData, type CreateVerificationSessionRequest, EDGE_CONNECT_FEATURE_UNAVAILABLE_MESSAGE, EDGE_ENVIRONMENTS, EDGE_LINK_PATH, EDGE_SCOPES, EDGE_WEBHOOK_EVENT_TYPES, EdgeApiError, EdgeAuthenticationError, EdgeConsentRequiredError, type EdgeEnvironment, type EdgeEnvironmentConfig, EdgeError, EdgeFeatureUnavailableError, EdgeIdentityVerificationError, EdgeInsufficientScopeError, type EdgeLinkConfigBase, type EdgeLinkEvent, type EdgeLinkEventName, type EdgeLinkExit, type EdgeLinkSuccess, EdgeNetworkError, EdgeNotFoundError, EdgePopupBlockedError, EdgePopupClosedError, type EdgeScope, EdgeStateMismatchError, EdgeTokenExchangeError, type EdgeTokens, EdgeValidationError, type EdgeWebhookEvent, type EdgeWebhookEventType, type InitiateTransferRequest, type ListTransfersParams, OTP_METHODS, type OtpMethod, type PKCEPair, RESERVED_EDGE_SCOPES, type RevokeConsentResponse, SCOPE_DESCRIPTIONS, SCOPE_ICONS, SDK_NAME, SDK_VERSION, type SdkGeolocation, TRANSFER_CATEGORIES, TRANSFER_STATUSES, TRANSFER_TYPES, type Transfer, type TransferCategory, type TransferCompletedEventData, type TransferExpiredEventData, type TransferFailedEventData, type TransferList, type TransferListItem, type TransferProcessingEventData, 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, getLinkUrl, isApiError, isAuthenticationError, isConsentRequiredError, isEdgeError, isFeatureUnavailableError, isIdentityVerificationError, isNetworkError, isProductionEnvironment, isTransferWriteScope, isValidScope, type operations, parseScope, type paths };
|
package/dist/index.d.ts
CHANGED
|
@@ -45,7 +45,7 @@ declare function getAvailableEnvironments(): readonly EdgeEnvironment[];
|
|
|
45
45
|
* scopes: [EDGE_SCOPES.USER_READ, EDGE_SCOPES.BALANCE_READ],
|
|
46
46
|
* })
|
|
47
47
|
*
|
|
48
|
-
* // Or request all scopes
|
|
48
|
+
* // Or request all currently enabled scopes
|
|
49
49
|
* link.open({
|
|
50
50
|
* scopes: ALL_EDGE_SCOPES,
|
|
51
51
|
* })
|
|
@@ -63,9 +63,10 @@ declare const EDGE_SCOPES: {
|
|
|
63
63
|
*/
|
|
64
64
|
readonly BALANCE_READ: "balance.read";
|
|
65
65
|
/**
|
|
66
|
-
*
|
|
67
|
-
* Not available
|
|
68
|
-
* EdgeFeatureUnavailableError until EDGE enables transfers
|
|
66
|
+
* Reserved for future fund transfers and EDGE-hosted verification sessions.
|
|
67
|
+
* Not available in staging or production. Requesting this scope from Link
|
|
68
|
+
* SDKs fails with EdgeFeatureUnavailableError until EDGE enables transfers
|
|
69
|
+
* for a partner.
|
|
69
70
|
*
|
|
70
71
|
* Required for: `POST /v1/transfer`, `POST /v1/transfer/:id/verification-session`, `GET /v1/transfers`
|
|
71
72
|
*/
|
|
@@ -76,27 +77,34 @@ declare const EDGE_SCOPES: {
|
|
|
76
77
|
*/
|
|
77
78
|
type EdgeScope = (typeof EDGE_SCOPES)[keyof typeof EDGE_SCOPES];
|
|
78
79
|
/**
|
|
79
|
-
*
|
|
80
|
-
*
|
|
80
|
+
* Scopes active for current EDGE Connect partner integrations.
|
|
81
|
+
*
|
|
82
|
+
* Transfers are intentionally unavailable for now, so SDK Link flows request
|
|
83
|
+
* this set by default.
|
|
84
|
+
*/
|
|
85
|
+
declare const ACTIVE_EDGE_SCOPES: readonly EdgeScope[];
|
|
86
|
+
/**
|
|
87
|
+
* Reserved scopes kept in the SDK catalog for future feature launches.
|
|
88
|
+
*
|
|
89
|
+
* Do not request these scopes unless EDGE has explicitly enabled the feature
|
|
90
|
+
* for your integration.
|
|
91
|
+
*/
|
|
92
|
+
declare const RESERVED_EDGE_SCOPES: readonly EdgeScope[];
|
|
93
|
+
/**
|
|
94
|
+
* All currently requestable scopes as an array.
|
|
95
|
+
* This intentionally excludes reserved scopes such as `transfer.write`.
|
|
81
96
|
*
|
|
82
97
|
* @example
|
|
83
98
|
* ```typescript
|
|
84
99
|
* const link = new EdgeLink({
|
|
85
100
|
* clientId: 'your-client-id',
|
|
86
101
|
* environment: 'staging',
|
|
87
|
-
* scopes: ALL_EDGE_SCOPES, //
|
|
102
|
+
* scopes: ALL_EDGE_SCOPES, // Same values as ACTIVE_EDGE_SCOPES today
|
|
88
103
|
* onSuccess: handleSuccess,
|
|
89
104
|
* })
|
|
90
105
|
* ```
|
|
91
106
|
*/
|
|
92
107
|
declare const ALL_EDGE_SCOPES: readonly EdgeScope[];
|
|
93
|
-
/**
|
|
94
|
-
* Scopes active for current EDGE Connect partner integrations.
|
|
95
|
-
*
|
|
96
|
-
* Transfers are intentionally unavailable for now, so SDK default Link flows
|
|
97
|
-
* should request this set rather than {@link ALL_EDGE_SCOPES}.
|
|
98
|
-
*/
|
|
99
|
-
declare const ACTIVE_EDGE_SCOPES: readonly EdgeScope[];
|
|
100
108
|
/**
|
|
101
109
|
* Human-readable descriptions for each scope.
|
|
102
110
|
* Useful for building custom consent UIs or explaining permissions.
|
|
@@ -3245,4 +3253,4 @@ declare const SDK_VERSION = "1.0.0";
|
|
|
3245
3253
|
*/
|
|
3246
3254
|
declare const SDK_NAME = "@edge-markets/connect";
|
|
3247
3255
|
|
|
3248
|
-
export { ACTIVE_EDGE_SCOPES, ALL_EDGE_SCOPES, type ApiError, type Balance, type BaseWebhookEvent, type ConsentRequiredError, type ConsentRevokedEventData, type CreateVerificationSessionRequest, EDGE_CONNECT_FEATURE_UNAVAILABLE_MESSAGE, EDGE_ENVIRONMENTS, EDGE_LINK_PATH, EDGE_SCOPES, EDGE_WEBHOOK_EVENT_TYPES, EdgeApiError, EdgeAuthenticationError, EdgeConsentRequiredError, type EdgeEnvironment, type EdgeEnvironmentConfig, EdgeError, EdgeFeatureUnavailableError, EdgeIdentityVerificationError, EdgeInsufficientScopeError, type EdgeLinkConfigBase, type EdgeLinkEvent, type EdgeLinkEventName, type EdgeLinkExit, type EdgeLinkSuccess, EdgeNetworkError, EdgeNotFoundError, EdgePopupBlockedError, EdgePopupClosedError, type EdgeScope, EdgeStateMismatchError, EdgeTokenExchangeError, type EdgeTokens, EdgeValidationError, type EdgeWebhookEvent, type EdgeWebhookEventType, 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 TransferCompletedEventData, type TransferExpiredEventData, type TransferFailedEventData, type TransferList, type TransferListItem, type TransferProcessingEventData, 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, getLinkUrl, isApiError, isAuthenticationError, isConsentRequiredError, isEdgeError, isFeatureUnavailableError, isIdentityVerificationError, isNetworkError, isProductionEnvironment, isTransferWriteScope, isValidScope, type operations, parseScope, type paths };
|
|
3256
|
+
export { ACTIVE_EDGE_SCOPES, ALL_EDGE_SCOPES, type ApiError, type Balance, type BaseWebhookEvent, type ConsentRequiredError, type ConsentRevokedEventData, type CreateVerificationSessionRequest, EDGE_CONNECT_FEATURE_UNAVAILABLE_MESSAGE, EDGE_ENVIRONMENTS, EDGE_LINK_PATH, EDGE_SCOPES, EDGE_WEBHOOK_EVENT_TYPES, EdgeApiError, EdgeAuthenticationError, EdgeConsentRequiredError, type EdgeEnvironment, type EdgeEnvironmentConfig, EdgeError, EdgeFeatureUnavailableError, EdgeIdentityVerificationError, EdgeInsufficientScopeError, type EdgeLinkConfigBase, type EdgeLinkEvent, type EdgeLinkEventName, type EdgeLinkExit, type EdgeLinkSuccess, EdgeNetworkError, EdgeNotFoundError, EdgePopupBlockedError, EdgePopupClosedError, type EdgeScope, EdgeStateMismatchError, EdgeTokenExchangeError, type EdgeTokens, EdgeValidationError, type EdgeWebhookEvent, type EdgeWebhookEventType, type InitiateTransferRequest, type ListTransfersParams, OTP_METHODS, type OtpMethod, type PKCEPair, RESERVED_EDGE_SCOPES, type RevokeConsentResponse, SCOPE_DESCRIPTIONS, SCOPE_ICONS, SDK_NAME, SDK_VERSION, type SdkGeolocation, TRANSFER_CATEGORIES, TRANSFER_STATUSES, TRANSFER_TYPES, type Transfer, type TransferCategory, type TransferCompletedEventData, type TransferExpiredEventData, type TransferFailedEventData, type TransferList, type TransferListItem, type TransferProcessingEventData, 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, getLinkUrl, isApiError, isAuthenticationError, isConsentRequiredError, isEdgeError, isFeatureUnavailableError, isIdentityVerificationError, isNetworkError, isProductionEnvironment, isTransferWriteScope, isValidScope, type operations, parseScope, type paths };
|
package/dist/index.js
CHANGED
|
@@ -42,6 +42,7 @@ __export(index_exports, {
|
|
|
42
42
|
EdgeTokenExchangeError: () => EdgeTokenExchangeError,
|
|
43
43
|
EdgeValidationError: () => EdgeValidationError,
|
|
44
44
|
OTP_METHODS: () => OTP_METHODS,
|
|
45
|
+
RESERVED_EDGE_SCOPES: () => RESERVED_EDGE_SCOPES,
|
|
45
46
|
SCOPE_DESCRIPTIONS: () => SCOPE_DESCRIPTIONS,
|
|
46
47
|
SCOPE_ICONS: () => SCOPE_ICONS,
|
|
47
48
|
SDK_NAME: () => SDK_NAME,
|
|
@@ -123,9 +124,12 @@ var EDGE_ENVIRONMENTS = {
|
|
|
123
124
|
},
|
|
124
125
|
sandbox: {
|
|
125
126
|
cognitoDomain: "https://edge-connect-sandbox.auth.us-east-1.amazoncognito.com",
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
127
|
+
// Sandbox partner API — mTLS-enforced. Uses its own sandbox gateway and
|
|
128
|
+
// sandbox OAuth/JWKS issuer. The browser Link UI is served from a separate
|
|
129
|
+
// sandbox host so SDK consumers do not enter the staging OAuth origin.
|
|
130
|
+
apiBaseUrl: "https://sandbox.connect.staging.edgeboost.io/connect/v1",
|
|
131
|
+
oauthBaseUrl: "https://sandbox.connect.staging.edgeboost.io/connect/oauth",
|
|
132
|
+
userClientUrl: "https://sandbox-oauth.staging-app.edgeboost.io",
|
|
129
133
|
displayName: "Sandbox",
|
|
130
134
|
isProduction: false
|
|
131
135
|
},
|
|
@@ -182,16 +186,18 @@ var EDGE_SCOPES = {
|
|
|
182
186
|
*/
|
|
183
187
|
BALANCE_READ: "balance.read",
|
|
184
188
|
/**
|
|
185
|
-
*
|
|
186
|
-
* Not available
|
|
187
|
-
* EdgeFeatureUnavailableError until EDGE enables transfers
|
|
189
|
+
* Reserved for future fund transfers and EDGE-hosted verification sessions.
|
|
190
|
+
* Not available in staging or production. Requesting this scope from Link
|
|
191
|
+
* SDKs fails with EdgeFeatureUnavailableError until EDGE enables transfers
|
|
192
|
+
* for a partner.
|
|
188
193
|
*
|
|
189
194
|
* Required for: `POST /v1/transfer`, `POST /v1/transfer/:id/verification-session`, `GET /v1/transfers`
|
|
190
195
|
*/
|
|
191
196
|
TRANSFER_WRITE: "transfer.write"
|
|
192
197
|
};
|
|
193
|
-
var ALL_EDGE_SCOPES = Object.values(EDGE_SCOPES);
|
|
194
198
|
var ACTIVE_EDGE_SCOPES = [EDGE_SCOPES.USER_READ, EDGE_SCOPES.BALANCE_READ];
|
|
199
|
+
var RESERVED_EDGE_SCOPES = [EDGE_SCOPES.TRANSFER_WRITE];
|
|
200
|
+
var ALL_EDGE_SCOPES = ACTIVE_EDGE_SCOPES;
|
|
195
201
|
var SCOPE_DESCRIPTIONS = {
|
|
196
202
|
[EDGE_SCOPES.USER_READ]: "View your profile information (name and email)",
|
|
197
203
|
[EDGE_SCOPES.BALANCE_READ]: "View your EdgeBoost account balance",
|
|
@@ -399,6 +405,7 @@ var SDK_NAME = "@edge-markets/connect";
|
|
|
399
405
|
EdgeTokenExchangeError,
|
|
400
406
|
EdgeValidationError,
|
|
401
407
|
OTP_METHODS,
|
|
408
|
+
RESERVED_EDGE_SCOPES,
|
|
402
409
|
SCOPE_DESCRIPTIONS,
|
|
403
410
|
SCOPE_ICONS,
|
|
404
411
|
SDK_NAME,
|
package/dist/index.mjs
CHANGED
|
@@ -53,9 +53,12 @@ var EDGE_ENVIRONMENTS = {
|
|
|
53
53
|
},
|
|
54
54
|
sandbox: {
|
|
55
55
|
cognitoDomain: "https://edge-connect-sandbox.auth.us-east-1.amazoncognito.com",
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
56
|
+
// Sandbox partner API — mTLS-enforced. Uses its own sandbox gateway and
|
|
57
|
+
// sandbox OAuth/JWKS issuer. The browser Link UI is served from a separate
|
|
58
|
+
// sandbox host so SDK consumers do not enter the staging OAuth origin.
|
|
59
|
+
apiBaseUrl: "https://sandbox.connect.staging.edgeboost.io/connect/v1",
|
|
60
|
+
oauthBaseUrl: "https://sandbox.connect.staging.edgeboost.io/connect/oauth",
|
|
61
|
+
userClientUrl: "https://sandbox-oauth.staging-app.edgeboost.io",
|
|
59
62
|
displayName: "Sandbox",
|
|
60
63
|
isProduction: false
|
|
61
64
|
},
|
|
@@ -112,16 +115,18 @@ var EDGE_SCOPES = {
|
|
|
112
115
|
*/
|
|
113
116
|
BALANCE_READ: "balance.read",
|
|
114
117
|
/**
|
|
115
|
-
*
|
|
116
|
-
* Not available
|
|
117
|
-
* EdgeFeatureUnavailableError until EDGE enables transfers
|
|
118
|
+
* Reserved for future fund transfers and EDGE-hosted verification sessions.
|
|
119
|
+
* Not available in staging or production. Requesting this scope from Link
|
|
120
|
+
* SDKs fails with EdgeFeatureUnavailableError until EDGE enables transfers
|
|
121
|
+
* for a partner.
|
|
118
122
|
*
|
|
119
123
|
* Required for: `POST /v1/transfer`, `POST /v1/transfer/:id/verification-session`, `GET /v1/transfers`
|
|
120
124
|
*/
|
|
121
125
|
TRANSFER_WRITE: "transfer.write"
|
|
122
126
|
};
|
|
123
|
-
var ALL_EDGE_SCOPES = Object.values(EDGE_SCOPES);
|
|
124
127
|
var ACTIVE_EDGE_SCOPES = [EDGE_SCOPES.USER_READ, EDGE_SCOPES.BALANCE_READ];
|
|
128
|
+
var RESERVED_EDGE_SCOPES = [EDGE_SCOPES.TRANSFER_WRITE];
|
|
129
|
+
var ALL_EDGE_SCOPES = ACTIVE_EDGE_SCOPES;
|
|
125
130
|
var SCOPE_DESCRIPTIONS = {
|
|
126
131
|
[EDGE_SCOPES.USER_READ]: "View your profile information (name and email)",
|
|
127
132
|
[EDGE_SCOPES.BALANCE_READ]: "View your EdgeBoost account balance",
|
|
@@ -328,6 +333,7 @@ export {
|
|
|
328
333
|
EdgeTokenExchangeError,
|
|
329
334
|
EdgeValidationError,
|
|
330
335
|
OTP_METHODS,
|
|
336
|
+
RESERVED_EDGE_SCOPES,
|
|
331
337
|
SCOPE_DESCRIPTIONS,
|
|
332
338
|
SCOPE_ICONS,
|
|
333
339
|
SDK_NAME,
|