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
11
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 3.5.0 to 3.6.0

23

models/tenants.d.ts

@@ -20,2 +20,23 @@ import type { Auditable } from './shared';

}
export type { Tenant, UpdateTenant, TenantUsageReport, TokenReport, TokenTypeMetrics, };
interface TenantInvitation extends Auditable {
id: string;
tenantId: string;
email: string;
status: string;
expiresAt: string;
}
declare type CreateTenantInvitation = Pick<TenantInvitation, 'email'>;
interface User {
id: string;
email?: string;
firstName?: string;
lastName?: string;
picture?: string;
}
interface TenantMember extends Auditable {
id: string;
tenantId: string;
user: User;
role: string;
}
export type { Tenant, UpdateTenant, TenantUsageReport, TokenReport, TokenTypeMetrics, TenantInvitation, CreateTenantInvitation, TenantMember, User, };

2

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

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

@@ -1,3 +0,10 @@

import type { Tenant, TenantUsageReport, UpdateTenant } from '../../models';
import type { RequestOptions } from './shared';
import type { CreateTenantInvitation, Tenant, TenantInvitation, TenantMember, TenantUsageReport, UpdateTenant } from '../../models';
import type { PaginatedList, RequestOptions } from './shared';
import { PaginatedQuery } from './shared';
interface ListTenantInvitationsQuery extends PaginatedQuery {
status?: 'PENDING' | 'EXPIRED';
}
interface ListTenantMembersQuery extends PaginatedQuery {
userId?: string | string[];
}
interface Tenants {

@@ -8,3 +15,10 @@ retrieve(options?: RequestOptions): Promise<Tenant>;

retrieveUsageReport(options?: RequestOptions): Promise<TenantUsageReport>;
createInvitation(model: CreateTenantInvitation, options?: RequestOptions): Promise<TenantInvitation>;
resendInvitation(invitationId: string, options?: RequestOptions): Promise<TenantInvitation>;
listInvitations(query?: ListTenantInvitationsQuery, options?: RequestOptions): Promise<PaginatedList<TenantInvitation>>;
retrieveInvitation(invitationId: string, options?: RequestOptions): Promise<TenantInvitation>;
deleteInvitation(invitationId: string, options?: RequestOptions): Promise<void>;
listMembers(query?: ListTenantMembersQuery, options?: RequestOptions): Promise<PaginatedList<TenantMember>>;
deleteMember(memberId: string, options?: RequestOptions): Promise<void>;
}
export type { Tenants };
export type { Tenants, ListTenantInvitationsQuery, ListTenantMembersQuery };
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