squarefi-bff-api-module 1.36.49 → 1.36.50
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/api/frontend.d.ts +0 -5
- package/dist/api/frontend.js +0 -5
- package/dist/api/types/types.d.ts +0 -11
- package/package.json +1 -1
package/dist/api/frontend.d.ts
CHANGED
|
@@ -23,11 +23,6 @@ export declare const frontend: {
|
|
|
23
23
|
limits: {
|
|
24
24
|
update: ({ card_id, ...data }: API.Frontend.Issuing.Cards.Limits.Request) => Promise<API.Frontend.Issuing.Cards.Limits.Response>;
|
|
25
25
|
};
|
|
26
|
-
/**
|
|
27
|
-
* PLAINTEXT PAN/CVV — server-to-server only. In a browser or mobile client use
|
|
28
|
-
* `sensitiveEncrypted` instead, so the card number never travels readable.
|
|
29
|
-
*/
|
|
30
|
-
sensitive: ({ card_id, }: API.Frontend.Issuing.Cards.Sensitive.Request) => Promise<API.Frontend.Issuing.Cards.Sensitive.Response>;
|
|
31
26
|
/**
|
|
32
27
|
* PAN/CVV over the encrypted channel: generates an AES-256 key, sends it encrypted to
|
|
33
28
|
* the server's RSA public key (`SERVER_PUBLIC_KEY_BASE64`) and decrypts the answer —
|
package/dist/api/frontend.js
CHANGED
|
@@ -40,11 +40,6 @@ export const frontend = {
|
|
|
40
40
|
limits: {
|
|
41
41
|
update: ({ card_id, ...data }) => apiClientV1Frontend.putRequest(`/frontend/issuing/cards/${card_id}/limits`, { data }),
|
|
42
42
|
},
|
|
43
|
-
/**
|
|
44
|
-
* PLAINTEXT PAN/CVV — server-to-server only. In a browser or mobile client use
|
|
45
|
-
* `sensitiveEncrypted` instead, so the card number never travels readable.
|
|
46
|
-
*/
|
|
47
|
-
sensitive: ({ card_id, }) => apiClientV1Frontend.getRequest(`/frontend/issuing/cards/${card_id}/sensitive`),
|
|
48
43
|
/**
|
|
49
44
|
* PAN/CVV over the encrypted channel: generates an AES-256 key, sends it encrypted to
|
|
50
45
|
* the server's RSA public key (`SERVER_PUBLIC_KEY_BASE64`) and decrypts the answer —
|
|
@@ -676,7 +676,6 @@ export declare namespace API {
|
|
|
676
676
|
type CardFreezeRoot = pathsV1Frontend['/frontend/issuing/cards/{card_id}/freeze'];
|
|
677
677
|
type CardUnfreezeRoot = pathsV1Frontend['/frontend/issuing/cards/{card_id}/unfreeze'];
|
|
678
678
|
type CardLimitsRoot = pathsV1Frontend['/frontend/issuing/cards/{card_id}/limits'];
|
|
679
|
-
type CardSensitiveRoot = pathsV1Frontend['/frontend/issuing/cards/{card_id}/sensitive'];
|
|
680
679
|
type CardTransactionsRoot = pathsV1Frontend['/frontend/issuing/cards/{card_id}/transactions'];
|
|
681
680
|
type SubAccountTransactionsRoot = pathsV1Frontend['/frontend/issuing/sub-accounts/{sub_account_id}/transactions'];
|
|
682
681
|
type CardDepositRoot = pathsV1Frontend['/frontend/issuing/cards/{card_id}/deposit'];
|
|
@@ -788,16 +787,6 @@ export declare namespace API {
|
|
|
788
787
|
} & CardLimitsRoot['put']['requestBody']['content']['application/json'];
|
|
789
788
|
type Response = CardLimitsRoot['put']['responses']['200']['content']['application/json'];
|
|
790
789
|
}
|
|
791
|
-
/**
|
|
792
|
-
* Card PAN/CVV in PLAINTEXT. Server-to-server only — a browser or mobile client
|
|
793
|
-
* should use `SensitiveEncrypted`, which never puts the PAN in a readable body.
|
|
794
|
-
*/
|
|
795
|
-
namespace Sensitive {
|
|
796
|
-
type Request = {
|
|
797
|
-
card_id: string;
|
|
798
|
-
};
|
|
799
|
-
type Response = CardSensitiveRoot['get']['responses']['200']['content']['application/json'];
|
|
800
|
-
}
|
|
801
790
|
/**
|
|
802
791
|
* Card PAN/CVV over an end-to-end encrypted channel: the client's AES-256 key is
|
|
803
792
|
* sent encrypted to the server's RSA public key, and the answer comes back
|