From 1a9e562160b3713829c207bea94e24c4f1da765e Mon Sep 17 00:00:00 2001 From: skyflow-shravan Date: Thu, 12 Jun 2025 14:19:54 +0530 Subject: [PATCH 1/3] SK-2101 readme changes after fixing type gaps --- README.md | 191 ++++++++++++++++++++++++++++++++---------------------- 1 file changed, 114 insertions(+), 77 deletions(-) diff --git a/README.md b/README.md index bcd63f02..aab02691 100644 --- a/README.md +++ b/README.md @@ -245,7 +245,7 @@ const result = skyflow.insert({ #### V2 (New) - Request Building ```typescript // Prepare Insertion Data -const insertData: Array = [ +const insertData: Record[] = [ { card_number: '4111111111111112' } // Example sensitive data ]; @@ -291,7 +291,7 @@ InsertResponse( "": "" } ], - errors: null // optional + errors: null ); ``` @@ -508,7 +508,7 @@ import { try{ // Step 1: Initialize data to be inserted into the Skyflow vault - const insertData: Array = [ + const insertData: Record[] = [ { card_number: '4111111111111112', // Replace with actual card number (sensitive data) cardholder_name: 'John Doe', // Replace with actual cardholder name (sensitive data) @@ -557,7 +557,7 @@ InsertResponse { card_number: '5484-7829-1702-9110', cardholder_name: 'b2308e2a-c1f5-469b-97b7-1f193159399b' }, - errors: [] + errors: null } ``` @@ -586,7 +586,7 @@ import { try { // Initialize Skyflow client // Step 1: Prepare the data to be inserted into the Skyflow vault - const insertData: Array = [ + const insertData: Record[] = [ { : '', // Replace with actual fielname and value : '', // Replace with actual fielname and value @@ -649,7 +649,7 @@ This example demonstrates how to insert sensitive data (e.g., card information) try { // Initialize Skyflow client // Step 1: Initialize a list to hold the data records to be inserted into the vault - const insertData: Array = [ + const insertData: Record[] = [ // Step 2: Create the first record with card number and cardholder name { card_number: '4111111111111111', // Replace with actual card number (sensitive data) @@ -702,15 +702,15 @@ InsertResponse { [ { card_number: '5484-7829-1702-9110', - request_index: 0, + requestIndex: 0, skyflowId: '9fac9201-7b8a-4446-93f8-5244e1213bd1', cardholder_name: 'b2308e2a-c1f5-469b-97b7-1f193159399' } ], errors: [ { - request_index: 1, - error: 'Insert failed. Column card_numbe is invaliSpecify a valid column.' + requestIndex: 1, + error: 'Insert failed. Column card_numbe is invalid. Specify a valid column.' } ] } @@ -741,7 +741,7 @@ This example demonstrates how to insert sensitive data (e.g., card information) try { // Initialize Skyflow client // Step 1: Initialize a list to hold the data records for the insert/upsert operation - const insertData: Array = [ + const insertData: Record[] = [ // Step 2: Create a record with the field 'cardholder_name' to insert or upsert { cardholder_name: 'John Doe', // Replace with actual cardholder name @@ -790,7 +790,7 @@ InsertResponse { cardholder_name: "73ce45ce-20fd-490e-9310-c1d4f603ee83" } ], - errors: [] + errors: null } ``` @@ -804,7 +804,7 @@ import { DetokenizeOptions, DetokenizeRequest, DetokenizeResponse, - RedactionType, + DetokenizeData, SkyflowError, } from 'skyflow-node'; @@ -814,23 +814,28 @@ This example demonstrates how to detokenize sensitive data from tokens stored in try { // Step 1: Prepare Detokenization Data - const detokenizeData: Array = ['token1', 'token2', 'token3']; // Tokens to be detokenized - - // Step 2: Set the redaction type - const redactionType: RedactionType = RedactionType.REDACTED; + const detokenizeData: DetokenizeData[] = [ + { + token: "token1", // Token to be detokenized + redactionType: RedactionType.PLAIN_TEXT, // Redaction type + }, + { + token: "token2", // Token to be detokenized + redactionType: RedactionType.PLAIN_TEXT, // Redaction type + }, + ]; - // Step 3: Create the DetokenizeRequest object with the tokens and redaction type + // Step 2: Create the DetokenizeRequest object with the tokens data const detokenizeRequest: DetokenizeRequest = new DetokenizeRequest( - detokenizeData, - redactionType + detokenizeData ); - // Step 4: Configure Detokenize Options + // Step 3: Configure Detokenize Options const detokenizeOptions: DetokenizeOptions = new DetokenizeOptions(); detokenizeOptions.setContinueOnError(true); // Continue processing on errors detokenizeOptions.setDownloadURL(false); // Disable download URL generation - // Step 5: Perform Detokenization + // Step 4: Perform Detokenization const response: DetokenizeResponse = await skyflowClient .vault(primaryVaultConfig.vaultId) .detokenize(detokenizeRequest, detokenizeOptions); @@ -863,7 +868,7 @@ import { DetokenizeOptions, DetokenizeRequest, DetokenizeResponse, - RedactionType, + DetokenizeData, SkyflowError, } from 'skyflow-node'; @@ -877,22 +882,27 @@ import { try { // Step 1: Prepare Detokenization Data - const detokenizeData: Array = ['9738-1683-0486-1480', '6184-6357-8409-6668', '4914-9088-2814-3840']; // Replace with your actual token values - - // Step 2: Set the redaction type - const redactionType: RedactionType = RedactionType.PLAIN_TEXT; + const detokenizeData: DetokenizeData[] = [ + { + token: "9738-1683-0486-1480", // Replace with your actual token value + redactionType: RedactionType.PLAIN_TEXT, // Redaction type + }, + { + token: "6184-6357-8409-6668", // Replace with your actual token value + redactionType: RedactionType.PLAIN_TEXT, // Redaction type + }, + ]; - // Step 3: Create the DetokenizeRequest object with the tokens and redaction type + // Step 2: Create the DetokenizeRequest object with the tokens data const detokenizeRequest: DetokenizeRequest = new DetokenizeRequest( - detokenizeData, - redactionType + detokenizeData ); - // Step 4: Configure Detokenize Options + // Step 3: Configure Detokenize Options const detokenizeOptions: DetokenizeOptions = new DetokenizeOptions(); detokenizeOptions.setContinueOnError(false); // Stop the process if any token cannot be detokenized - // Step 5: Perform Detokenization + // Step 4: Perform Detokenization const response: DetokenizeResponse = await skyflowClient .vault(primaryVaultConfig.vaultId) .detokenize(detokenizeRequest, detokenizeOptions); @@ -920,9 +930,8 @@ DetokenizeResponse { detokenizedFields: [ {token: '9738-1683-0486-1480', value: '4111111111111115', type: 'STRING'}, {token: '6184-6357-8409-6668', value: '4111111111111119', type: 'STRING'}, - {token: '4914-9088-2814-3840', value: '4111111111111118', type: 'STRING'} ], - errors: [] + errors: null } ``` @@ -933,7 +942,7 @@ import { DetokenizeOptions, DetokenizeRequest, DetokenizeResponse, - RedactionType, + DetokenizeData, SkyflowError, } from 'skyflow-node'; @@ -947,18 +956,28 @@ import { try { // Step 1: Prepare Detokenization Data - const detokenizeData: Array = ['9738-1683-0486-1480', '6184-6357-8409-6668', '4914-9088-2814-3840']; // Replace with your actual token values - - // Step 2: Set the redaction type - const redactionType: RedactionType = RedactionType.PLAIN_TEXT; + const detokenizeData: DetokenizeData[] = [ + { + token: "9738-1683-0486-1480", // Replace with your actual token value + redactionType: RedactionType.PLAIN_TEXT, // Redaction type + }, + { + token: "6184-6357-8409-6668", // Replace with your actual token value + redactionType: RedactionType.PLAIN_TEXT, // Redaction type + }, + { + token: "4914-9088-2814-3840", // Replace with your actual token value + redactionType: RedactionType.PLAIN_TEXT, // Redaction type + }, + ]; - // Step 3: Create the DetokenizeRequest object with the tokens and redaction type + // Step 2: Create the DetokenizeRequest object with the tokens and redaction type const detokenizeRequest: DetokenizeRequest = new DetokenizeRequest( detokenizeData, redactionType ); - // Step 4: Configure Detokenize Options + // Step 3: Configure Detokenize Options const detokenizeOptions: DetokenizeOptions = new DetokenizeOptions(); detokenizeOptions.setContinueOnError(true); // Continue even if some tokens cannot be detokenized @@ -1013,6 +1032,7 @@ import { TokenizeRequest, TokenizeResponse, SkyflowError, + TokenizeRequestType } from 'skyflow-node'; try { @@ -1055,6 +1075,7 @@ import { TokenizeRequest, TokenizeResponse, SkyflowError, + TokenizeRequestType } from 'skyflow-node'; /* @@ -1102,11 +1123,12 @@ Sample response: ```typescript TokenizeResponse { - tokenizedFields: [ + tokens: [ { token: '5479-4229-4622-1393' } - ] + ], + errors: null } ``` @@ -1272,16 +1294,16 @@ GetResponse { card_number: '4555555555555553', email: 'john.doe@gmail.com', name: 'john doe', - skyflowId: 'a581d205-1969-4350-acbe-a2a13eb871a6' + skyflow_id: 'a581d205-1969-4350-acbe-a2a13eb871a6' }, { card_number: '4555555555555559', email: 'jane.doe@gmail.com', name: 'jane doe', - skyflowId: '5ff887c3-b334-4294-9acc-70e78ae5164a' + skyflow_id: '5ff887c3-b334-4294-9acc-70e78ae5164a' } ], - errors: [] + errors: null } ``` @@ -1352,16 +1374,16 @@ GetResponse { card_number: '3998-2139-0328-0697', email: 'c9a6c9555060@82c092e7.bd52', name: '82c092e7-74c0-4e60-bd52-c9a6c9555060', - skyflowId: 'a581d205-1969-4350-acbe-a2a13eb871a6' + skyflow_id: 'a581d205-1969-4350-acbe-a2a13eb871a6' }, { card_number: '3562-0140-8820-7499', email: '6174366e2bc6@59f82e89.93fc', name: '59f82e89-138e-4f9b-93fc-6174366e2bc6', - skyflowId: '5ff887c3-b334-4294-9acc-70e78ae5164a' + skyflow_id: '5ff887c3-b334-4294-9acc-70e78ae5164a' } ], - errors: [] + errors: null } ``` @@ -1438,16 +1460,16 @@ GetResponse { card_number: '4555555555555553', email: 'john.doe@gmail.com', name: 'john doe', - skyflowId: 'a581d205-1969-4350-acbe-a2a13eb871a6' + skyflow_id: 'a581d205-1969-4350-acbe-a2a13eb871a6' }, { card_number: '4555555555555559', email: 'jane.doe@gmail.com', name: 'jane doe', - skyflowId: '5ff887c3-b334-4294-9acc-70e78ae5164a' + skyflow_id: '5ff887c3-b334-4294-9acc-70e78ae5164a' } ], - errors: [] + errors: null } ``` @@ -1487,14 +1509,14 @@ try { // Initialize Skyflow client // Step 1: Prepare the data to update in the vault // Use a dictionary to store the data that will be updated in the specified table - const updateData: object = { + const updateData: Record = { skyflowId: 'your-skyflow-id', // Skyflow ID for identifying the record to update COLUMN_NAME1: '' //Example of a column name and its value to update COLUMN_NAME2: ''// Another example of a column name and its value to update }; // Step 2: Prepare the tokens (if necessary) for certain columns that require tokenization - const tokens: object = { + const tokens: Record = { COLUMN_NAME_2: '' // Example of a column name that should be tokenized } @@ -1555,14 +1577,14 @@ try { // Initialize Skyflow client // Step 1: Prepare the data to update in the vault // Use a dictionary to store the data that will be updated in the specified table - const updateData: object = { + const updateData: Record = { skyflowId: '5b699e2c-4301-4f9f-bcff-0a8fd3057413', // Skyflow ID for identifying the record to update name: 'john doe' //Example of a column name and its value to update card_number: '4111111111111115'// Another example of a column name and its value to update }; // Step 2: Prepare the tokens (if necessary) for certain columns that require tokenization - const tokens: object = { + const tokens: Record = { name: '72b8ffe3-c8d3-4b4f-8052-38b2a7405b5a' // Example of a column name that should be tokenized } @@ -1608,7 +1630,7 @@ UpdateResponse { name: '72b8ffe3-c8d3-4b4f-8052-38b2a7405b5a', card_number: '4131-1751-0217-8491' }, - errors: [] + errors: null } ``` @@ -1618,7 +1640,7 @@ UpdateResponse { updatedField: { skyflowId: '5b699e2c-4301-4f9f-bcff-0a8fd3057413', }, - errors: [] + errors: null } ``` @@ -1733,7 +1755,7 @@ DeleteResponse { 'ea74bef4-f27e-46fe-b6a0-a28e91b4477b', '47700796-6d3b-4b54-9153-3973e281cafb' ], - errors: [] + errors: null } ``` @@ -1759,7 +1781,7 @@ try { // Initialize Skyflow client // Step 1: Define the SQL query to execute on the Skyflow vault // Replace "" with the actual SQL query you want to run - const query = ""; // Example: "SELECT * FROM table1 WHERE column1 = 'value'" + const query: string = ""; // Example: "SELECT * FROM table1 WHERE column1 = 'value'" // Step 2: Create a QueryRequest with the specified SQL query const queryRequest: QueryRequest = new QueryRequest(query); @@ -1807,7 +1829,7 @@ try { // Initialize Skyflow client // Step 1: Define the SQL query to execute on the Skyflow vault // Example query: Retrieve all records from the "cards" table with a specific skyflow_id - const query = "SELECT * FROM cards WHERE skyflow_id='3ea3861-x107-40w8-la98-106sp08ea83f'"; + const query: string = "SELECT * FROM cards WHERE skyflow_id='3ea3861-x107-40w8-la98-106sp08ea83f'"; // Step 2: Create a QueryRequest with the specified SQL query const queryRequest: QueryRequest = new QueryRequest(query); @@ -1841,11 +1863,11 @@ QueryResponse { { card_number: 'XXXXXXXXXXXX1112', name: 'S***ar', - skyflowId: '3ea3861-x107-40w8-la98-106sp08ea83f', + skyflow_id: '3ea3861-x107-40w8-la98-106sp08ea83f', tokenizedData: {} } ], - errors: [], + errors: null, } ``` @@ -1916,7 +1938,8 @@ import { TokenFormat, TokenType, Transformations, - DetectEntities + DetectEntities, + DeidentifyTextResponse } from 'skyflow-node'; /** @@ -1959,7 +1982,7 @@ async function performDeidentifyText() { optionsText.setTransformations(transformations); // Step 3: Call deidentifyText API - const response = await skyflowClient + const response: DeidentifyTextResponse = await skyflowClient .detect(primaryVaultConfig.vaultId) .deidentifyText(textReq, optionsText); @@ -2038,7 +2061,8 @@ import { ReidentifyTextRequest, ReidentifyTextOptions, SkyflowError, - DetectEntities + DetectEntities, + ReidentifyTextResponse } from 'skyflow-node'; try { @@ -2054,7 +2078,7 @@ try { options.setPlainTextEntities([DetectEntities.NAME]); // Entities to return as plain text // Step 3: Call reidentifyText - const response = await skyflowClient + const response: ReidentifyTextResponse = await skyflowClient .detect(primaryVaultConfig.vaultId) .reidentifyText(textReq, options); @@ -2080,7 +2104,8 @@ try { import { ReidentifyTextRequest, ReidentifyTextOptions, - DetectEntities + DetectEntities, + ReidentifyTextResponse } from 'skyflow-node'; /** @@ -2108,7 +2133,7 @@ async function performReidentifyText() { options.setPlainTextEntities([DetectEntities.CREDIT_CARD, DetectEntities.SSN]); // Step 4: Call reidentifyText - const response = await skyflowClient + const response: ReidentifyTextResponse = await skyflowClient .detect(primaryVaultConfig.vaultId) .reidentifyText(reidentifyTextRequest, options); @@ -2151,6 +2176,7 @@ To deidentify files, use the `deidentifyFile` method. The `DeidentifyFileRequest import { DeidentifyFileRequest, DeidentifyFileOptions, + DeidentifyFileResponse SkyflowError, DetectEntities, MaskingMethod, @@ -2214,7 +2240,7 @@ try { // options.setBleep(bleep); // Step 3: Call deidentifyFile - const response = await skyflowClient + const response: DeidentifyFileResponse = await skyflowClient .detect(primaryVaultConfig.vaultId) .deidentifyFile(fileReq, options); @@ -2245,6 +2271,7 @@ import { TokenFormat, TokenType, Transformations, + DeidentifyFileResponse } from 'skyflow-node'; import fs from 'fs'; @@ -2291,7 +2318,7 @@ async function performDeidentifyFile() { // Step 6: Call deidentifyFile API - const response = await skyflowClient + const response: DeidentifyFileResponse = await skyflowClient .detect(primaryVaultConfig.vaultId) .deidentifyFile(fileReq, options); @@ -2386,6 +2413,7 @@ This method allows you to fetch the final results of the file processing operati import { GetDetectRunRequest, DeidentifyFileResponse, + DeidentifyFileResponse SkyflowError } from 'skyflow-node'; @@ -2711,7 +2739,7 @@ InvokeConnectionResponse { metadata: { requestId: '801279ety19289899' }, - errors: [] + errors: null } ``` @@ -2750,7 +2778,7 @@ The token can be generated in two ways: */ // Variable to store the generated token -let bearerToken = ''; +let bearerToken: string = ''; // Specify the full file path to the credentials.json file const filepath = 'CREDENTIALS_FILE_PATH'; @@ -3082,13 +3110,13 @@ function getSignedTokenFromCreds() { const tokens = async () => { try { - const tokenResponseFromFilePath: any = await getSignedTokenFromFilePath(); + const tokenResponseFromFilePath = await getSignedTokenFromFilePath(); tokenResponseFromFilePath.forEach((response) => { console.log(`Data Token: ${response.token}`); console.log(`Signed Data Token: ${response.signedToken}`); }); - const tokenResponseFromCreds: any = await getSignedTokenFromCreds(); + const tokenResponseFromCreds = await getSignedTokenFromCreds(); tokenResponseFromCreds.forEach((response) => { console.log(`Data Token: ${response.token}`); console.log(`Signed Data Token: ${response.signedToken}`); @@ -3122,6 +3150,7 @@ import { DetokenizeOptions, DetokenizeRequest, DetokenizeResponse, + DetokenizeData, Env, LogLevel, RedactionType, @@ -3141,12 +3170,20 @@ import { async function detokenizeData(skyflowClient: Skyflow, vaultId: string) { try { // Creating a list of tokens to be detokenized - const detokenizeData: Array = ['', '']; + const detokenizeData: DetokenizeData[] = [ + { + token: "", // Replace with your actual token value + redactionType: RedactionType.MASKED, // Redaction type + }, + { + token: "", // Replace with your actual token value + redactionType: RedactionType.PLAIN_TEXT, // Redaction type + }, + ]; // Building a detokenization request const detokenizeRequest: DetokenizeRequest = new DetokenizeRequest( - detokenizeData, - RedactionType.PLAIN_TEXT // Redaction type (e.g., PLAIN_TEXT) + detokenizeData ); // Configuring detokenization options From 12d034875ccfc10272497dcc2111c831ef48fa62 Mon Sep 17 00:00:00 2001 From: skyflow-shravan Date: Thu, 12 Jun 2025 16:04:36 +0530 Subject: [PATCH 2/3] SK-2101 update samples with proper types --- samples/detect-api/deidentify-file.ts | 3 +- samples/detect-api/deidentify-text.ts | 15 +- samples/detect-api/reidentify-text.ts | 5 +- samples/package-lock.json | 758 ++++++++++++++++++ samples/package.json | 2 +- .../bearer-token-expiry-example.ts | 17 +- .../scoped-token-generation-example.ts | 2 +- .../signed-token-generation-example.ts | 2 +- .../token-generation-example.ts | 4 +- .../token-generation-with-context-example.ts | 4 +- samples/vault-api/credentials-options.ts | 2 +- samples/vault-api/data-residency.ts | 6 +- samples/vault-api/detokenzie-records.ts | 8 +- samples/vault-api/file-upload.ts | 8 +- samples/vault-api/get-column-values.ts | 9 +- samples/vault-api/get-records.ts | 10 +- samples/vault-api/insert-byot.ts | 11 +- samples/vault-api/insert-continue-on-error.ts | 23 +- samples/vault-api/insert-records.ts | 18 +- samples/vault-api/invoke-connection.ts | 4 +- samples/vault-api/query-records.ts | 2 +- 21 files changed, 866 insertions(+), 47 deletions(-) create mode 100644 samples/package-lock.json diff --git a/samples/detect-api/deidentify-file.ts b/samples/detect-api/deidentify-file.ts index 82d9a24d..5919ffcf 100644 --- a/samples/detect-api/deidentify-file.ts +++ b/samples/detect-api/deidentify-file.ts @@ -15,6 +15,7 @@ import { Transformations, Bleep, VaultConfig, + DeidentifyFileResponse, } from 'skyflow-node'; import fs from 'fs'; @@ -112,7 +113,7 @@ async function performDeidentifyFile() { // Step 6: Call deidentifyFile API - const response = await skyflowClient + const response: DeidentifyFileResponse = await skyflowClient .detect(primaryVaultConfig.vaultId) .deidentifyFile(deidentifyFile, options); diff --git a/samples/detect-api/deidentify-text.ts b/samples/detect-api/deidentify-text.ts index 2f7e79c3..f2dc53e4 100644 --- a/samples/detect-api/deidentify-text.ts +++ b/samples/detect-api/deidentify-text.ts @@ -11,7 +11,8 @@ import { TokenFormat, TokenType, Transformations, - DetectEntities + DetectEntities, + DeidentifyTextResponse } from 'skyflow-node'; /** @@ -55,10 +56,10 @@ async function performDeidentifyText() { ); // Step 5: Configure DeidentifyTextOptions - const optionsText = new DeidentifyTextOptions(); + const options = new DeidentifyTextOptions(); // setEntities: Specify which entities to deidentify - optionsText.setEntities([DetectEntities.CREDIT_CARD, DetectEntities.SSN]); + options.setEntities([DetectEntities.CREDIT_CARD, DetectEntities.SSN]); // setAllowRegexList: Allowlist regex patterns (entities matching these will not be deidentified) // optionsText.setAllowRegexList(['']); @@ -69,7 +70,7 @@ async function performDeidentifyText() { // setTokenFormat: Specify the token format for deidentified entities const tokenFormat = new TokenFormat(); tokenFormat.setDefault(TokenType.VAULT_TOKEN); - optionsText.setTokenFormat(tokenFormat); + options.setTokenFormat(tokenFormat); // setTransformations: Specify custom transformations for entities const transformations = new Transformations(); @@ -78,12 +79,12 @@ async function performDeidentifyText() { min: 30, // Minimum shift days entities: [DetectEntities.DOB], // Entities to apply the shift }); - optionsText.setTransformations(transformations); + options.setTransformations(transformations); // Step 6: Call deidentifyText API - const response = await skyflowClient + const response: DeidentifyTextResponse = await skyflowClient .detect(primaryVaultConfig.vaultId) - .deidentifyText(deidentifyTextRequest, optionsText); + .deidentifyText(deidentifyTextRequest, options); // Handle Successful Response console.log('Deidentify Text Response:', response); diff --git a/samples/detect-api/reidentify-text.ts b/samples/detect-api/reidentify-text.ts index dfd23df0..45cea4a4 100644 --- a/samples/detect-api/reidentify-text.ts +++ b/samples/detect-api/reidentify-text.ts @@ -8,7 +8,8 @@ import { ReidentifyTextRequest, ReidentifyTextOptions, DetectEntities, - SkyflowError + SkyflowError, + ReidentifyTextResponse } from 'skyflow-node'; /** @@ -60,7 +61,7 @@ async function performReidentifyText() { options.setPlainTextEntities([DetectEntities.PHONE_NUMBER]); // Step 6: Call reidentifyText - const response = await skyflowClient + const response: ReidentifyTextResponse = await skyflowClient .detect(primaryVaultConfig.vaultId) .reidentifyText(reidentifyRequest, options); diff --git a/samples/package-lock.json b/samples/package-lock.json new file mode 100644 index 00000000..09ceeb16 --- /dev/null +++ b/samples/package-lock.json @@ -0,0 +1,758 @@ +{ + "name": "samples", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "samples", + "version": "1.0.0", + "license": "ISC", + "dependencies": { + "skyflow-node": "2.1.0-beta.1" + } + }, + "node_modules/@babel/runtime": { + "version": "7.27.6", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.27.6.tgz", + "integrity": "sha512-vbavdySgbTTrmFE+EsiqUTzlOr5bzlnJtUv9PynGCAKvfQqjIXbvFdumPM/GxMDfyuGMJaJAU6TO4zc1Jf1i8Q==", + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/abort-controller": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz", + "integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==", + "license": "MIT", + "dependencies": { + "event-target-shim": "^5.0.0" + }, + "engines": { + "node": ">=6.5" + } + }, + "node_modules/asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", + "license": "MIT" + }, + "node_modules/base64-js": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", + "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "node_modules/buffer": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", + "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT", + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.2.1" + } + }, + "node_modules/buffer-equal-constant-time": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz", + "integrity": "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==", + "license": "BSD-3-Clause" + }, + "node_modules/call-bind-apply-helpers": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", + "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/call-bound": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz", + "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "get-intrinsic": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "license": "MIT", + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "license": "MIT", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/dotenv": { + "version": "16.5.0", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.5.0.tgz", + "integrity": "sha512-m/C+AwOAr9/W1UOIZUo232ejMNnJAJtYQjUbHoNTBNTJSvqzzDh7vnrei3o3r3m9blf6ZoDkvcw0VmozNRFJxg==", + "license": "BSD-2-Clause", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://dotenvx.com" + } + }, + "node_modules/dunder-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", + "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.1", + "es-errors": "^1.3.0", + "gopd": "^1.2.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/ecdsa-sig-formatter": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz", + "integrity": "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==", + "license": "Apache-2.0", + "dependencies": { + "safe-buffer": "^5.0.1" + } + }, + "node_modules/es-define-property": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", + "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-errors": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", + "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-object-atoms": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", + "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-set-tostringtag": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz", + "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.6", + "has-tostringtag": "^1.0.2", + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/event-target-shim": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz", + "integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/events": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", + "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", + "license": "MIT", + "engines": { + "node": ">=0.8.x" + } + }, + "node_modules/form-data": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.3.tgz", + "integrity": "sha512-qsITQPfmvMOSAdeyZ+12I1c+CKSstAFAwu+97zrnWAbIr5u8wfsExUzCesVLC8NgHuRUqNN4Zy6UPWUTRGslcA==", + "license": "MIT", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "es-set-tostringtag": "^2.1.0", + "hasown": "^2.0.2", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/form-data-encoder": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/form-data-encoder/-/form-data-encoder-4.1.0.tgz", + "integrity": "sha512-G6NsmEW15s0Uw9XnCg+33H3ViYRyiM0hMrMhhqQOR8NFc5GhYrI+6I3u7OTw7b91J2g8rtvMBZJDbcGb2YUniw==", + "license": "MIT", + "engines": { + "node": ">= 18" + } + }, + "node_modules/formdata-node": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/formdata-node/-/formdata-node-6.0.3.tgz", + "integrity": "sha512-8e1++BCiTzUno9v5IZ2J6bv4RU+3UKDmqWUQD0MIMVCd9AdhWkO1gw57oo1mNEX1dMq2EGI+FbWz4B92pscSQg==", + "license": "MIT", + "engines": { + "node": ">= 18" + } + }, + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-intrinsic": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", + "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "es-define-property": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.1.1", + "function-bind": "^1.1.2", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "has-symbols": "^1.1.0", + "hasown": "^2.0.2", + "math-intrinsics": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", + "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", + "license": "MIT", + "dependencies": { + "dunder-proto": "^1.0.1", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/gopd": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", + "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-symbols": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", + "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-tostringtag": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", + "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", + "license": "MIT", + "dependencies": { + "has-symbols": "^1.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/hasown": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", + "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", + "license": "MIT", + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/ieee754": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", + "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "BSD-3-Clause" + }, + "node_modules/js-base64": { + "version": "3.7.7", + "resolved": "https://registry.npmjs.org/js-base64/-/js-base64-3.7.7.tgz", + "integrity": "sha512-7rCnleh0z2CkXhH67J8K1Ytz0b2Y+yxTPL+/KOJoa20hfnVQ/3/T6W/KflYI4bRHRagNeXeU2bkNGI3v1oS/lw==", + "license": "BSD-3-Clause" + }, + "node_modules/jsonwebtoken": { + "version": "9.0.2", + "resolved": "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-9.0.2.tgz", + "integrity": "sha512-PRp66vJ865SSqOlgqS8hujT5U4AOgMfhrwYIuIhfKaoSCZcirrmASQr8CX7cUg+RMih+hgznrjp99o+W4pJLHQ==", + "license": "MIT", + "dependencies": { + "jws": "^3.2.2", + "lodash.includes": "^4.3.0", + "lodash.isboolean": "^3.0.3", + "lodash.isinteger": "^4.0.4", + "lodash.isnumber": "^3.0.3", + "lodash.isplainobject": "^4.0.6", + "lodash.isstring": "^4.0.1", + "lodash.once": "^4.0.0", + "ms": "^2.1.1", + "semver": "^7.5.4" + }, + "engines": { + "node": ">=12", + "npm": ">=6" + } + }, + "node_modules/jwa": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/jwa/-/jwa-1.4.2.tgz", + "integrity": "sha512-eeH5JO+21J78qMvTIDdBXidBd6nG2kZjg5Ohz/1fpa28Z4CcsWUzJ1ZZyFq/3z3N17aZy+ZuBoHljASbL1WfOw==", + "license": "MIT", + "dependencies": { + "buffer-equal-constant-time": "^1.0.1", + "ecdsa-sig-formatter": "1.0.11", + "safe-buffer": "^5.0.1" + } + }, + "node_modules/jws": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/jws/-/jws-3.2.2.tgz", + "integrity": "sha512-YHlZCB6lMTllWDtSPHz/ZXTsi8S00usEV6v1tjq8tOUZzw7DpSDWVXjXDre6ed1w/pd495ODpHZYSdkRTsa0HA==", + "license": "MIT", + "dependencies": { + "jwa": "^1.4.1", + "safe-buffer": "^5.0.1" + } + }, + "node_modules/jwt-decode": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/jwt-decode/-/jwt-decode-2.2.0.tgz", + "integrity": "sha512-86GgN2vzfUu7m9Wcj63iUkuDzFNYFVmjeDm2GzWpUk+opB0pEpMsw6ePCMrhYkumz2C1ihqtZzOMAg7FiXcNoQ==", + "license": "MIT" + }, + "node_modules/lodash.includes": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/lodash.includes/-/lodash.includes-4.3.0.tgz", + "integrity": "sha512-W3Bx6mdkRTGtlJISOvVD/lbqjTlPPUDTMnlXZFnVwi9NKJ6tiAk6LVdlhZMm17VZisqhKcgzpO5Wz91PCt5b0w==", + "license": "MIT" + }, + "node_modules/lodash.isboolean": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/lodash.isboolean/-/lodash.isboolean-3.0.3.tgz", + "integrity": "sha512-Bz5mupy2SVbPHURB98VAcw+aHh4vRV5IPNhILUCsOzRmsTmSQ17jIuqopAentWoehktxGd9e/hbIXq980/1QJg==", + "license": "MIT" + }, + "node_modules/lodash.isinteger": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/lodash.isinteger/-/lodash.isinteger-4.0.4.tgz", + "integrity": "sha512-DBwtEWN2caHQ9/imiNeEA5ys1JoRtRfY3d7V9wkqtbycnAmTvRRmbHKDV4a0EYc678/dia0jrte4tjYwVBaZUA==", + "license": "MIT" + }, + "node_modules/lodash.isnumber": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/lodash.isnumber/-/lodash.isnumber-3.0.3.tgz", + "integrity": "sha512-QYqzpfwO3/CWf3XP+Z+tkQsfaLL/EnUlXWVkIk5FUPc4sBdTehEqZONuyRt2P67PXAk+NXmTBcc97zw9t1FQrw==", + "license": "MIT" + }, + "node_modules/lodash.isplainobject": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz", + "integrity": "sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA==", + "license": "MIT" + }, + "node_modules/lodash.isstring": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/lodash.isstring/-/lodash.isstring-4.0.1.tgz", + "integrity": "sha512-0wJxfxH1wgO3GrbuP+dTTk7op+6L41QCXbGINEmD+ny/G/eCqGzxyCsh7159S+mgDDcoarnBw6PC1PS5+wUGgw==", + "license": "MIT" + }, + "node_modules/lodash.once": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/lodash.once/-/lodash.once-4.1.1.tgz", + "integrity": "sha512-Sb487aTOCr9drQVL8pIxOzVhafOjZN9UU54hiN8PU3uAiSV7lx1yYNpbNmex2PK6dSJoNTSJUUswT651yww3Mg==", + "license": "MIT" + }, + "node_modules/math-intrinsics": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", + "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "license": "MIT", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "license": "MIT" + }, + "node_modules/node-fetch": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", + "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", + "license": "MIT", + "dependencies": { + "whatwg-url": "^5.0.0" + }, + "engines": { + "node": "4.x || >=6.0.0" + }, + "peerDependencies": { + "encoding": "^0.1.0" + }, + "peerDependenciesMeta": { + "encoding": { + "optional": true + } + } + }, + "node_modules/object-inspect": { + "version": "1.13.4", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz", + "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/process": { + "version": "0.11.10", + "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", + "integrity": "sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==", + "license": "MIT", + "engines": { + "node": ">= 0.6.0" + } + }, + "node_modules/qs": { + "version": "6.14.0", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.14.0.tgz", + "integrity": "sha512-YWWTjgABSKcvs/nWBi9PycY/JiPJqOD4JA6o9Sej2AtvSGarXxKC3OQSk4pAarbdQlKAh5D4FCQkJNkW+GAn3w==", + "license": "BSD-3-Clause", + "dependencies": { + "side-channel": "^1.1.0" + }, + "engines": { + "node": ">=0.6" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/readable-stream": { + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-4.7.0.tgz", + "integrity": "sha512-oIGGmcpTLwPga8Bn6/Z75SVaH1z5dUut2ibSyAMVhmUggWpmDn2dapB0n7f8nwaSiRtepAsfJyfXIO5DCVAODg==", + "license": "MIT", + "dependencies": { + "abort-controller": "^3.0.0", + "buffer": "^6.0.3", + "events": "^3.3.0", + "process": "^0.11.10", + "string_decoder": "^1.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "node_modules/semver": { + "version": "7.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz", + "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/side-channel": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz", + "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "object-inspect": "^1.13.3", + "side-channel-list": "^1.0.0", + "side-channel-map": "^1.0.1", + "side-channel-weakmap": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-list": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz", + "integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "object-inspect": "^1.13.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-map": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz", + "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==", + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-weakmap": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz", + "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==", + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3", + "side-channel-map": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/skyflow-node": { + "version": "2.1.0-beta.1", + "resolved": "https://registry.npmjs.org/skyflow-node/-/skyflow-node-2.1.0-beta.1.tgz", + "integrity": "sha512-tzGdRMBMHSYcrM+dn/ndr7M1d2wiqv6dvuz57GXsF3yercN5+g+AwY6OGBknfG4fNUQVQBlHaFGTNFSLaIT3lQ==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.27.1", + "dotenv": "^16.4.5", + "form-data": "^4.0.0", + "form-data-encoder": "^4.0.2", + "formdata-node": "^6.0.3", + "js-base64": "3.7.7", + "jsonwebtoken": "^9.0.2", + "jwt-decode": "^2.2.0", + "node-fetch": "^2.7.0", + "qs": "^6.13.1", + "readable-stream": "^4.5.2", + "url-join": "4.0.1" + } + }, + "node_modules/string_decoder": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", + "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", + "license": "MIT", + "dependencies": { + "safe-buffer": "~5.2.0" + } + }, + "node_modules/tr46": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==", + "license": "MIT" + }, + "node_modules/url-join": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/url-join/-/url-join-4.0.1.tgz", + "integrity": "sha512-jk1+QP6ZJqyOiuEI9AEWQfju/nB2Pw466kbA0LEZljHwKeMgd9WrAEgEGxjPDD2+TNbbb37rTyhEfrCXfuKXnA==", + "license": "MIT" + }, + "node_modules/webidl-conversions": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==", + "license": "BSD-2-Clause" + }, + "node_modules/whatwg-url": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", + "license": "MIT", + "dependencies": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" + } + } + } +} diff --git a/samples/package.json b/samples/package.json index ff7208c3..8de5935a 100644 --- a/samples/package.json +++ b/samples/package.json @@ -9,6 +9,6 @@ "author": "", "license": "ISC", "dependencies": { - "skyflow-node": "2.0.0-beta.5" + "skyflow-node": "2.1.0-beta.1" } } diff --git a/samples/service-account/bearer-token-expiry-example.ts b/samples/service-account/bearer-token-expiry-example.ts index 80171c82..e86f453d 100644 --- a/samples/service-account/bearer-token-expiry-example.ts +++ b/samples/service-account/bearer-token-expiry-example.ts @@ -9,7 +9,8 @@ import { Skyflow, SkyflowError, VaultConfig, - SkyflowConfig + SkyflowConfig, + DetokenizeData } from 'skyflow-node'; /** @@ -22,12 +23,20 @@ import { async function detokenizeData(skyflowClient: Skyflow, vaultId: string) { try { // Creating a list of tokens to be detokenized - const detokenizeData: Array = ['', '']; + const detokenizeData: DetokenizeData[] = [ + { + token: '', + redactionType: RedactionType.PLAIN_TEXT + }, + { + token: '', + redactionType: RedactionType.PLAIN_TEXT + } + ]; // Building a detokenization request const detokenizeRequest: DetokenizeRequest = new DetokenizeRequest( - detokenizeData, - RedactionType.PLAIN_TEXT // Redaction type (e.g., PLAIN_TEXT) + detokenizeData ); // Configuring detokenization options diff --git a/samples/service-account/scoped-token-generation-example.ts b/samples/service-account/scoped-token-generation-example.ts index 53782037..7482dec8 100644 --- a/samples/service-account/scoped-token-generation-example.ts +++ b/samples/service-account/scoped-token-generation-example.ts @@ -8,7 +8,7 @@ import { } from 'skyflow-node'; const filepath = 'CREDENTIALS_FILE_PATH'; -let bearerToken = ''; +let bearerToken: string = ''; // To generate Bearer Token from credentials string. const cred = { diff --git a/samples/service-account/signed-token-generation-example.ts b/samples/service-account/signed-token-generation-example.ts index e3bce250..e717967b 100644 --- a/samples/service-account/signed-token-generation-example.ts +++ b/samples/service-account/signed-token-generation-example.ts @@ -6,7 +6,7 @@ import { generateSignedDataTokensFromCreds, } from 'skyflow-node'; -let filepath = 'CREDENTIALS_FILE_PATH'; +let filepath: string = 'CREDENTIALS_FILE_PATH'; // To generate Bearer Token from credentials string. let cred = { diff --git a/samples/service-account/token-generation-example.ts b/samples/service-account/token-generation-example.ts index 3a42f3f3..040ec831 100644 --- a/samples/service-account/token-generation-example.ts +++ b/samples/service-account/token-generation-example.ts @@ -7,8 +7,8 @@ import { isExpired, } from 'skyflow-node'; -const filepath = 'CREDENTIALS_FILE_PATH'; -let bearerToken = ''; +const filepath: string = 'CREDENTIALS_FILE_PATH'; +let bearerToken: string = ''; // To generate Bearer Token from credentials string. const cred = { diff --git a/samples/service-account/token-generation-with-context-example.ts b/samples/service-account/token-generation-with-context-example.ts index 89a0b133..308898d1 100644 --- a/samples/service-account/token-generation-with-context-example.ts +++ b/samples/service-account/token-generation-with-context-example.ts @@ -7,8 +7,8 @@ import { isExpired, } from 'skyflow-node'; -const filepath = 'CREDENTIALS_FILE_PATH'; -let bearerToken = ''; +const filepath: string = 'CREDENTIALS_FILE_PATH'; +let bearerToken: string = ''; // To generate Bearer Token from credentials string. const cred = { diff --git a/samples/vault-api/credentials-options.ts b/samples/vault-api/credentials-options.ts index 4095cf29..c7f18347 100644 --- a/samples/vault-api/credentials-options.ts +++ b/samples/vault-api/credentials-options.ts @@ -22,7 +22,7 @@ import { async function performSecureDataDeletion() { try { // Step 1: Configure Skyflow client Credentials - const cred: object = { + const cred: Record = { clientID: '', // Client identifier clientName: '', // Client name keyID: '', // Key identifier diff --git a/samples/vault-api/data-residency.ts b/samples/vault-api/data-residency.ts index 5eb62fb6..d70ded1c 100644 --- a/samples/vault-api/data-residency.ts +++ b/samples/vault-api/data-residency.ts @@ -74,11 +74,11 @@ async function transferDataBetweenVaults() { // Step 6: Handle Get Response and Insert Data into Secondary Vault const getResponseData: GetResponse = getResponse as GetResponse; - const insertData: Array = getResponseData.data!; + const insertData: Array> = getResponseData.data!; // Remove skyflow_id from the data (if needed for re-insertion) - const sanitizedData = insertData.map(item => { - const { skyflow_id, ...rest } = item as any; // Exclude the skyflow_id field + const sanitizedData = insertData.map((item: Record) => { + const { skyflow_id, ...rest } = item; // Exclude the skyflow_id field return rest; }); diff --git a/samples/vault-api/detokenzie-records.ts b/samples/vault-api/detokenzie-records.ts index c72642b7..b94587c3 100644 --- a/samples/vault-api/detokenzie-records.ts +++ b/samples/vault-api/detokenzie-records.ts @@ -10,7 +10,8 @@ import { SkyflowError, VaultConfig, SkyflowConfig, - DetokenizeData + DetokenizeData, + SkyflowRecordError } from 'skyflow-node'; /** @@ -75,6 +76,11 @@ async function performDetokenization() { // Handle Successful Response console.log('Detokenization successful:', response); + if (response.errors != null) { + (response.errors).forEach((error: SkyflowRecordError) => { + console.log('Handle Error:', error.requestIndex, error.token); + }); + } } catch (error) { // Comprehensive Error Handling if (error instanceof SkyflowError) { diff --git a/samples/vault-api/file-upload.ts b/samples/vault-api/file-upload.ts index 61ad08ba..b30e7a6f 100644 --- a/samples/vault-api/file-upload.ts +++ b/samples/vault-api/file-upload.ts @@ -49,10 +49,10 @@ async function performFileUpload() { const skyflowClient: Skyflow = new Skyflow(skyflowConfig); // Step 4: Prepare File Upload Data - const tableName = 'table-name'; // Table name - const skyflowId = 'skyflow-id'; // Skyflow ID of the record - const columnName = 'column-name'; // Column name to store file - const filePath = 'file-path'; // Path to the file for upload + const tableName: string = 'table-name'; // Table name + const skyflowId: string = 'skyflow-id'; // Skyflow ID of the record + const columnName: string = 'column-name'; // Column name to store file + const filePath: string = 'file-path'; // Path to the file for upload // Step 5: Create File Upload Request const uploadReq: FileUploadRequest = new FileUploadRequest( diff --git a/samples/vault-api/get-column-values.ts b/samples/vault-api/get-column-values.ts index 01363efd..5c925451 100644 --- a/samples/vault-api/get-column-values.ts +++ b/samples/vault-api/get-column-values.ts @@ -8,7 +8,8 @@ import { SkyflowConfig, VaultConfig, SkyflowError, - GetResponse + GetResponse, + GetResponseData } from 'skyflow-node'; /** @@ -70,6 +71,12 @@ async function performSecureColumnRetrieval() { // Handle Successful Response console.log('Column-based retrieval successful:', response); + if (response.data != null) { + response.data.forEach((record: GetResponseData) => { + console.log("Get data:", record); + // Handle record data + }); + } } catch (error) { // Comprehensive Error Handling diff --git a/samples/vault-api/get-records.ts b/samples/vault-api/get-records.ts index 901a154a..6317225c 100644 --- a/samples/vault-api/get-records.ts +++ b/samples/vault-api/get-records.ts @@ -8,7 +8,8 @@ import { VaultConfig, SkyflowConfig, SkyflowError, - GetResponse + GetResponse, + GetResponseData } from 'skyflow-node'; /** @@ -67,6 +68,13 @@ async function performSecureDataRetrieval() { // Handle Successful Response console.log('Data retrieval successful:', response); + if(response.data!=null) { + for(let i=0; i = [ + const insertData: Record[] = [ { card_number: 'skyflow_id1', card_cvv: 'skyflow_id2' }, ]; @@ -54,7 +57,7 @@ async function performSecureDataInsertionWithBYOT() { const insertReq: InsertRequest = new InsertRequest(tableName, insertData); // Step 5: BYOT Configuration - const tokens: Array = [ + const tokens: Record[] = [ { card_number: 'token1', card_cvv: 'token2' }, ]; diff --git a/samples/vault-api/insert-continue-on-error.ts b/samples/vault-api/insert-continue-on-error.ts index 36d4c9d7..8ef09f22 100644 --- a/samples/vault-api/insert-continue-on-error.ts +++ b/samples/vault-api/insert-continue-on-error.ts @@ -8,7 +8,9 @@ import { VaultConfig, SkyflowConfig, SkyflowError, - InsertResponse + InsertResponse, + ApiKeyCredentials, + SkyflowRecordError } from 'skyflow-node'; /** @@ -23,11 +25,14 @@ import { async function performSecureDataInsertion() { try { // Step 1: Configure Credentials - const credentials: Credentials = { + const apiCredentials: ApiKeyCredentials = { // Using API Key authentication apiKey: 'your-skyflow-api-key', }; + const credentials: Credentials = apiCredentials; + + // Step 2: Configure Vault const primaryVaultConfig: VaultConfig = { vaultId: 'your-vault-id', // Unique vault identifier @@ -46,7 +51,7 @@ async function performSecureDataInsertion() { const skyflowClient: Skyflow = new Skyflow(skyflowConfig); // Step 4: Prepare Insertion Data - const insertData: Array = [ + const insertData: Record[] = [ { card_number: "41111111111111111", cvv: "111" }, // Example sensitive data { card_numbe: "41111111111111111", cvv: "132" }, // Example incorrect data ]; @@ -69,6 +74,7 @@ async function performSecureDataInsertion() { if ( + response.insertedFields && response.insertedFields.length === 0 && Array.isArray(response.errors) && response.errors.length > 0 @@ -76,18 +82,27 @@ async function performSecureDataInsertion() { //handle insert response failure console.error("Insert failed: ", response.errors); } else if ( + response.insertedFields && response.insertedFields.length > 0 && Array.isArray(response.errors) && response.errors.length > 0 ) { // handle partial response console.log("Inserted Fields: ", response.insertedFields); - console.warn("Partially Errors: ", response.errors); + console.warn("Partial Errors: ", response.errors); } else { // handle successful response console.log("Insert successful: ", response.insertedFields); } + if(response.errors!=null) { + for (let i=0; i < response.errors.length; i++) { + let error: SkyflowRecordError = response.errors[i]; + console.log('Skyflow Record Error:', error); + // Handle error + } + } + } catch (error) { // Comprehensive Error Handling if (error instanceof SkyflowError) { diff --git a/samples/vault-api/insert-records.ts b/samples/vault-api/insert-records.ts index 8a642d35..71d85a39 100644 --- a/samples/vault-api/insert-records.ts +++ b/samples/vault-api/insert-records.ts @@ -8,7 +8,9 @@ import { VaultConfig, SkyflowConfig, SkyflowError, - InsertResponse + InsertResponse, + ApiKeyCredentials, + InsertResponseType } from 'skyflow-node'; /** @@ -23,11 +25,13 @@ import { async function performSecureDataInsertion() { try { // Step 1: Configure Credentials - const credentials: Credentials = { + const apiKey: ApiKeyCredentials = { // Using API Key authentication apiKey: 'your-skyflow-api-key', }; + const credentials: Credentials = apiKey; + // Step 2: Configure Vault const primaryVaultConfig: VaultConfig = { vaultId: 'your-vault-id', // Unique vault identifier @@ -46,7 +50,7 @@ async function performSecureDataInsertion() { const skyflowClient: Skyflow = new Skyflow(skyflowConfig); // Step 4: Prepare Insertion Data - const insertData: Array = [ + const insertData: Record[] = [ { card_number: '4111111111111112' } // Example sensitive data ]; @@ -67,7 +71,13 @@ async function performSecureDataInsertion() { .insert(insertReq, insertOptions); // Handle Successful Response - console.log('Insertion successful:', response); + if(response.insertedFields!=null) { + for(let i = 0; i < response.insertedFields.length; i++) { + const field: InsertResponseType = response.insertedFields[i]; + console.log('Inserted Field: ',field); + // Handle filed + } + } } catch (error) { // Comprehensive Error Handling diff --git a/samples/vault-api/invoke-connection.ts b/samples/vault-api/invoke-connection.ts index 77e6758c..4138b7c4 100644 --- a/samples/vault-api/invoke-connection.ts +++ b/samples/vault-api/invoke-connection.ts @@ -55,12 +55,12 @@ async function invokeSkyflowConnection() { const skyflowClient: Skyflow = new Skyflow(skyflowConfig); // Step 5: Prepare Connection Request - const requestBody = { + const requestBody: Record = { key1: 'value1', // Replace with actual key-value pairs key2: 'value2' }; - const requestHeaders = { + const requestHeaders: Record = { 'content-type': 'application/json' }; diff --git a/samples/vault-api/query-records.ts b/samples/vault-api/query-records.ts index bbeb3493..f50b36c6 100644 --- a/samples/vault-api/query-records.ts +++ b/samples/vault-api/query-records.ts @@ -45,7 +45,7 @@ async function executeQuery() { const skyflowClient: Skyflow = new Skyflow(skyflowConfig); // Step 4: Prepare Query - const query = 'select * from table_name limit 1'; // Example query + const query: string = 'select * from table_name limit 1'; // Example query const queryRequest: QueryRequest = new QueryRequest(query); // Step 5: Execute Query From d93b6b02de9a1633ab1c6701f0959b728d4afa7c Mon Sep 17 00:00:00 2001 From: skyflow-shravan Date: Thu, 12 Jun 2025 16:50:32 +0530 Subject: [PATCH 3/3] SK-2101 update samples with proper types --- README.md | 2 +- samples/detect-api/deidentify-file.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index aab02691..2bb8e240 100644 --- a/README.md +++ b/README.md @@ -2218,7 +2218,7 @@ try { // options.setOutputOcrText(true); // Include OCR text in response - // options.setMaskingMethod(MaskingMethod.Blackout); // Masking method for image entities + // options.setMaskingMethod(MaskingMethod.Blackbox); // Masking method for image entities // ===== PDF Options (apply when file is a PDF) ===== diff --git a/samples/detect-api/deidentify-file.ts b/samples/detect-api/deidentify-file.ts index 5919ffcf..e74a0965 100644 --- a/samples/detect-api/deidentify-file.ts +++ b/samples/detect-api/deidentify-file.ts @@ -93,7 +93,7 @@ async function performDeidentifyFile() { // --- Image Options (apply when file is an image) --- // options.setOutputProcessedImage(true); // Include processed image in output // options.setOutputOcrText(true); // Include OCR text in response - // options.setMaskingMethod(MaskingMethod.Blackout); // Masking method for image entities + // options.setMaskingMethod(MaskingMethod.Blackbox); // Masking method for image entities // --- PDF Options (apply when file is a PDF) --- // options.setPixelDensity(1.5); // Pixel density for PDF processing