@basis-theory/basis-theory-js 1.55.0 → 1.56.1

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.
@@ -1,4 +1,4 @@
1
- import type { Application, CreateApplication } from '../types/models';
1
+ import type { Application } from '../types/models';
2
2
  import type { ListApplicationsQuery, RequestOptions } from '../types/sdk';
3
3
  export declare const BasisTheoryApplications: {
4
4
  new (options: import("../service/types").BasisTheoryServiceOptions): {
@@ -10,5 +10,5 @@ export declare const BasisTheoryApplications: {
10
10
  regenerateKey(id: string, options?: RequestOptions | undefined): Promise<Application>;
11
11
  readonly client: import("axios").AxiosInstance;
12
12
  };
13
- } & (new (...args: any[]) => import("../types/sdk/services/shared").Create<Application, CreateApplication>) & (new (...args: any[]) => import("../types/sdk/services/shared").Retrieve<Application>) & (new (...args: any[]) => import("../types/sdk/services/shared").Update<Application, Partial<Pick<Application, "name" | "permissions" | "rules">>>) & (new (...args: any[]) => import("../types/sdk/services/shared").Delete) & (new (...args: any[]) => import("../types/sdk/services/shared").List<Application, ListApplicationsQuery>);
13
+ } & (new (...args: any[]) => import("../types/sdk/services/shared").Create<Application, Pick<Application, "type" | "expiresAt" | "name" | "permissions" | "rules" | "canCreateExpiringApplications">>) & (new (...args: any[]) => import("../types/sdk/services/shared").Retrieve<Application>) & (new (...args: any[]) => import("../types/sdk/services/shared").Update<Application, Pick<Application, "name" | "permissions" | "rules" | "canCreateExpiringApplications">>) & (new (...args: any[]) => import("../types/sdk/services/shared").Delete) & (new (...args: any[]) => import("../types/sdk/services/shared").List<Application, ListApplicationsQuery>);
14
14
  export declare type BasisTheoryApplications = InstanceType<typeof BasisTheoryApplications>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@basis-theory/basis-theory-js",
3
- "version": "1.55.0",
3
+ "version": "1.56.1",
4
4
  "repository": "https://github.com/Basis-Theory/basis-theory-js",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -6,20 +6,28 @@ declare type TransformType = typeof TRANSFORM_TYPES[number];
6
6
  interface Application extends Auditable {
7
7
  id: string;
8
8
  tenantId: string;
9
- name: string;
9
+ name?: string;
10
10
  key?: string;
11
11
  type: ApplicationType;
12
12
  permissions?: string[];
13
13
  rules?: AccessRule[];
14
+ canCreateExpiringApplications?: boolean;
15
+ expiresAt?: string;
14
16
  }
15
17
  interface AccessRule {
16
18
  description: string;
17
19
  priority: number;
18
- container: string;
20
+ container?: string;
19
21
  transform: TransformType;
20
22
  permissions: string[];
23
+ conditions?: Condition[];
21
24
  }
22
- declare type CreateApplication = Pick<Application, 'name' | 'type'> & Partial<Pick<Application, 'permissions' | 'rules'>>;
23
- declare type UpdateApplication = Partial<Pick<Application, 'name' | 'permissions' | 'rules'>>;
25
+ declare type Condition = {
26
+ attribute: string;
27
+ operator: string;
28
+ value: string;
29
+ };
30
+ declare type CreateApplication = Pick<Application, 'name' | 'type' | 'permissions' | 'rules' | 'canCreateExpiringApplications' | 'expiresAt'>;
31
+ declare type UpdateApplication = Pick<Application, 'name' | 'permissions' | 'rules' | 'canCreateExpiringApplications'>;
24
32
  export type { ApplicationType, Application, CreateApplication, TransformType, UpdateApplication, };
25
33
  export { APPLICATION_TYPES, TRANSFORM_TYPES };
@@ -42,7 +42,7 @@ declare type CreateToken<DataType = Primitive> = Pick<Token<DataType>, 'type' |
42
42
  deduplicateToken?: boolean;
43
43
  id?: string;
44
44
  };
45
- declare type UpdateToken<DataType = Primitive> = Partial<Pick<Token<DataType>, 'data' | 'containers' | 'metadata' | 'encryption' | 'searchIndexes' | 'fingerprintExpression' | 'mask'> & {
45
+ declare type UpdateToken<DataType = Primitive> = Partial<Pick<Token<DataType>, 'data' | 'containers' | 'metadata' | 'encryption' | 'searchIndexes' | 'fingerprintExpression' | 'mask' | 'expiresAt'> & {
46
46
  privacy: Omit<TokenPrivacy, 'classification'>;
47
47
  deduplicateToken: boolean;
48
48
  }>;