New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@basis-theory/basis-theory-elements-interfaces

Package Overview
Dependencies
Maintainers
10
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@basis-theory/basis-theory-elements-interfaces - npm Package Compare versions

Comparing version 2.0.1 to 2.1.0

17

models/tokens.d.ts
import type { Primitive, TokenBase } from './shared';
declare const DATA_CLASSIFICATIONS: readonly ["general", "bank", "pci", "pii"];
declare type DataClassification = typeof DATA_CLASSIFICATIONS[number];
declare const DATA_IMPACT_LEVELS: readonly ["low", "moderate", "high"];
declare type DataImpactLevel = typeof DATA_IMPACT_LEVELS[number];
declare const DATA_RESTRICTION_POLICIES: readonly ["mask", "redact"];
declare type DataRestrictionPolicy = typeof DATA_RESTRICTION_POLICIES[number];
declare type DataObject<DataType = Primitive> = {

@@ -15,7 +21,14 @@ [member: string]: TokenData<DataType>;

}
interface TokenPrivacy {
classification?: DataClassification;
impactLevel?: DataImpactLevel;
restrictionPolicy?: DataRestrictionPolicy;
}
interface Token<DataType = Primitive> extends TokenBase {
data: TokenData<DataType>;
privacy?: TokenPrivacy;
encryption?: TokenEncryption;
}
declare type CreateToken<DataType = Primitive> = Pick<Token<DataType>, 'type' | 'data' | 'metadata' | 'encryption'>;
export type { Token, CreateToken, DataArray, DataObject, TokenData };
declare type CreateToken<DataType = Primitive> = Pick<Token<DataType>, 'type' | 'data' | 'privacy' | 'metadata' | 'encryption'>;
export type { Token, CreateToken, DataArray, DataObject, TokenData, DataClassification, DataImpactLevel, DataRestrictionPolicy, };
export { DATA_CLASSIFICATIONS, DATA_IMPACT_LEVELS, DATA_RESTRICTION_POLICIES };

@@ -5,2 +5,9 @@ "use strict";

value: true
});
});
exports.DATA_RESTRICTION_POLICIES = exports.DATA_IMPACT_LEVELS = exports.DATA_CLASSIFICATIONS = void 0;
const DATA_CLASSIFICATIONS = ['general', 'bank', 'pci', 'pii'];
exports.DATA_CLASSIFICATIONS = DATA_CLASSIFICATIONS;
const DATA_IMPACT_LEVELS = ['low', 'moderate', 'high'];
exports.DATA_IMPACT_LEVELS = DATA_IMPACT_LEVELS;
const DATA_RESTRICTION_POLICIES = ['mask', 'redact'];
exports.DATA_RESTRICTION_POLICIES = DATA_RESTRICTION_POLICIES;

2

package.json
{
"name": "@basis-theory/basis-theory-elements-interfaces",
"version": "2.0.1",
"version": "2.1.0",
"repository": "https://github.com/Basis-Theory/basis-theory-elements-interfaces",

@@ -5,0 +5,0 @@ "license": "Apache-2.0",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc