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

@basis-theory/basis-theory-js

Package Overview
Dependencies
Maintainers
11
Versions
180
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@basis-theory/basis-theory-js - npm Package Compare versions

Comparing version 4.3.0 to 4.4.0

applicationKeys/BasisTheoryApplicationKeys.d.ts

3

applications/BasisTheoryApplications.d.ts

@@ -10,2 +10,5 @@ import type { Application, CreateApplication, UpdateApplication } from '../types/models';

retrieveByKey(options?: RequestOptions): Promise<Application>;
/**
* @deprecated This method is deprecated. Use Terraform or https://portal.basistheory.com to manage keys instead.
*/
regenerateKey(id: string, options?: RequestOptions): Promise<Application>;

@@ -12,0 +15,0 @@ readonly client: import("axios").AxiosInstance;

@@ -25,3 +25,7 @@ "use strict";

}
/**
* @deprecated This method is deprecated. Use Terraform or https://portal.basistheory.com to manage keys instead.
*/
regenerateKey(id, options) {

@@ -28,0 +32,0 @@ return this.client.post(`${id}/regenerate`, undefined, (0, _common.createRequestConfig)(options)).then(_common.dataExtractor);

18

BasisTheory.d.ts
import type { BasisTheoryElements, CardElement, CardExpirationDateElement, CardNumberElement, CardVerificationCodeElement, CreateCardElementOptions, CreateCardExpirationDateElementOptions, CreateCardNumberElementOptions, CreateCardVerificationCodeElementOptions, CreateTextElementOptions, TextElement, TokenizeData as ElementsTokenizeData, Tokens as ElementsTokens } from './types/elements';
import type { TokenizeData } from './types/models';
import type { Applications, ApplicationTemplates, BasisTheory as IBasisTheory, BasisTheoryInit, BasisTheoryInitOptions, BasisTheoryInitOptionsWithElements, BasisTheoryInitOptionsWithoutElements, HttpClient, Logs, Permissions, Proxies, Proxy, ReactorFormulas, Reactors, RequestOptions, Sessions, Tenants, Tokens, ThreeDS } from './types/sdk';
import type { ApplicationKeys, Applications, ApplicationTemplates, BasisTheory as IBasisTheory, BasisTheoryInit, BasisTheoryInitOptions, BasisTheoryInitOptionsWithElements, BasisTheoryInitOptionsWithoutElements, HttpClient, Logs, Permissions, Proxies, Proxy, ReactorFormulas, Reactors, RequestOptions, Sessions, Tenants, ThreeDS, Tokens } from './types/sdk';
export declare class BasisTheory implements BasisTheoryInit, IBasisTheory, BasisTheoryElements {
private _initStatus;
private _initOptions?;
private _tokens?;
private _tokenize?;
private _elements?;
private _applicationKeys?;
private _applications?;
private _applicationTemplates?;
private _tenants?;
private _elements?;
private _initOptions?;
private _logs?;
private _reactorFormulas?;
private _reactors?;
private _permissions?;
private _proxies?;
private _proxy?;
private _reactorFormulas?;
private _reactors?;
private _sessions?;
private _tenants?;
private _threeds?;
private _tokenize?;
private _tokens?;
init(apiKey: string | undefined, options?: BasisTheoryInitOptionsWithoutElements): Promise<IBasisTheory>;

@@ -33,2 +34,3 @@ init(apiKey: string | undefined, options: BasisTheoryInitOptionsWithElements): Promise<IBasisTheory & BasisTheoryElements>;

get applications(): Applications;
get applicationKeys(): ApplicationKeys;
get applicationTemplates(): ApplicationTemplates;

@@ -35,0 +37,0 @@ get client(): HttpClient | undefined;

@@ -10,2 +10,4 @@ "use strict";

var _applicationKeys = require("./applicationKeys");
var _applications = require("./applications");

@@ -96,2 +98,7 @@

});
this._applicationKeys = new _applicationKeys.BasisTheoryApplicationKeys({
apiKey,
baseURL: new URL(_common.CLIENT_BASE_PATHS.applicationKeys, baseUrl).toString(),
appInfo
});
this._applicationTemplates = new _applicationTemplates.BasisTheoryApplicationTemplates({

@@ -198,2 +205,6 @@ apiKey,

get applicationKeys() {
return (0, _common.assertInit)(this._applicationKeys);
}
get applicationTemplates() {

@@ -200,0 +211,0 @@ return (0, _common.assertInit)(this._applicationTemplates);

@@ -33,2 +33,3 @@ "use strict";

applications: 'applications',
applicationKeys: 'applications',
applicationTemplates: 'application-templates',

@@ -35,0 +36,0 @@ tenants: 'tenants/self',

{
"name": "@basis-theory/basis-theory-js",
"version": "4.3.0",
"version": "4.4.0",
"repository": "https://github.com/Basis-Theory/basis-theory-js",

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

@@ -10,3 +10,7 @@ import type { Auditable } from './shared';

name?: string;
/**
* @deprecated use `keys` instead.
*/
key?: string;
keys?: ApplicationKey[];
type: ApplicationType;

@@ -30,5 +34,13 @@ permissions?: string[];

};
type CreateApplication = Pick<Application, 'name' | 'type' | 'permissions' | 'rules' | 'expiresAt'>;
type ApplicationKey = {
id?: string;
key?: string;
createdAt?: string;
createdBy?: string;
};
type CreateApplication = Pick<Application, 'name' | 'type' | 'permissions' | 'rules' | 'expiresAt'> & {
createKey?: boolean;
};
type UpdateApplication = Pick<Application, 'name' | 'permissions' | 'rules'>;
export type { ApplicationType, Application, CreateApplication, TransformType, UpdateApplication, };
export type { Application, ApplicationKey, ApplicationType, CreateApplication, TransformType, UpdateApplication, };
export { APPLICATION_TYPES, TRANSFORM_TYPES, AccessRule };
import type { BasisTheoryElements } from '../../types/elements';
import type { Applications, ApplicationTemplates, HttpClient, Logs, Permissions, Proxies, Proxy, ReactorFormulas, Reactors, Sessions, Tenants, Tokenize, Tokens, ThreeDS } from './services';
import { ApplicationKeys } from './services/applicationKeys';
interface ApplicationInfo {

@@ -27,2 +28,3 @@ name?: string;

applications: Applications;
applicationKeys: ApplicationKeys;
applicationTemplates: ApplicationTemplates;

@@ -29,0 +31,0 @@ /**

@@ -5,2 +5,3 @@ export * from './shared';

export * from './applications';
export * from './applicationKeys';
export * from './tenants';

@@ -7,0 +8,0 @@ export * from './logs';

@@ -59,2 +59,15 @@ "use strict";

var _applicationKeys = require("./applicationKeys");
Object.keys(_applicationKeys).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
if (key in exports && exports[key] === _applicationKeys[key]) return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function () {
return _applicationKeys[key];
}
});
});
var _tenants = require("./tenants");

@@ -61,0 +74,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