@basis-theory/basis-theory-js 1.34.0 → 1.37.0
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.
package/package.json
CHANGED
|
@@ -4,4 +4,4 @@ export declare const BasisTheoryProxies: {
|
|
|
4
4
|
new (options: import("../service/types").BasisTheoryServiceOptions): {
|
|
5
5
|
readonly client: import("axios").AxiosInstance;
|
|
6
6
|
};
|
|
7
|
-
} & (new (...args: any[]) => import("../types/sdk/services/shared").Create<Proxy, Pick<Proxy, "name" | "destinationUrl" | "requestReactorId">>) & (new (...args: any[]) => import("../types/sdk/services/shared").Retrieve<Proxy>) & (new (...args: any[]) => import("../types/sdk/services/shared").Update<Proxy, Pick<Proxy, "name" | "destinationUrl" | "requestReactorId">>) & (new (...args: any[]) => import("../types/sdk/services/shared").Delete) & (new (...args: any[]) => import("../types/sdk/services/shared").List<Proxy, ListProxyQuery>);
|
|
7
|
+
} & (new (...args: any[]) => import("../types/sdk/services/shared").Create<Proxy, Pick<Proxy, "name" | "destinationUrl" | "requestReactorId" | "responseReactorId" | "requireAuth">>) & (new (...args: any[]) => import("../types/sdk/services/shared").Retrieve<Proxy>) & (new (...args: any[]) => import("../types/sdk/services/shared").Update<Proxy, Pick<Proxy, "name" | "destinationUrl" | "requestReactorId" | "responseReactorId" | "requireAuth">>) & (new (...args: any[]) => import("../types/sdk/services/shared").Delete) & (new (...args: any[]) => import("../types/sdk/services/shared").List<Proxy, ListProxyQuery>);
|
|
@@ -11,5 +11,5 @@ export declare const BasisTheoryTokens: {
|
|
|
11
11
|
search(searchRequest: SearchTokensRequest, options?: RequestOptions | undefined): Promise<PaginatedList<Token>>;
|
|
12
12
|
readonly client: import("axios").AxiosInstance;
|
|
13
13
|
};
|
|
14
|
-
} & (new (...args: any[]) => import("../types/sdk/services/shared").Create<Token<import("../types/models/shared").Primitive>,
|
|
14
|
+
} & (new (...args: any[]) => import("../types/sdk/services/shared").Create<Token<import("../types/models/shared").Primitive>, CreateToken<import("../types/models/shared").Primitive>>) & (new (...args: any[]) => import("../types/sdk/services/shared").Delete) & (new (...args: any[]) => import("../types/sdk/services/shared").List<Token<import("../types/models/shared").Primitive>, ListTokensQuery>);
|
|
15
15
|
export declare type BasisTheoryTokens = InstanceType<typeof BasisTheoryTokens>;
|
|
@@ -5,8 +5,10 @@ interface Proxy extends Auditable {
|
|
|
5
5
|
tenantId: string;
|
|
6
6
|
name: string;
|
|
7
7
|
destinationUrl: string;
|
|
8
|
-
requestReactorId
|
|
8
|
+
requestReactorId?: string;
|
|
9
|
+
responseReactorId?: string;
|
|
10
|
+
requireAuth?: boolean;
|
|
9
11
|
}
|
|
10
|
-
declare type CreateProxy = Pick<Proxy, 'name' | 'destinationUrl' | 'requestReactorId'>;
|
|
12
|
+
declare type CreateProxy = Pick<Proxy, 'name' | 'destinationUrl' | 'requestReactorId' | 'responseReactorId' | 'requireAuth'>;
|
|
11
13
|
declare type UpdateProxy = CreateProxy;
|
|
12
14
|
export type { Proxy, CreateProxy, UpdateProxy };
|
|
@@ -3,8 +3,9 @@ interface Tenant extends Auditable {
|
|
|
3
3
|
id: string;
|
|
4
4
|
ownerId: string;
|
|
5
5
|
name: string;
|
|
6
|
+
settings?: Record<string, string>;
|
|
6
7
|
}
|
|
7
|
-
declare type UpdateTenant = Pick<Tenant, 'name'>;
|
|
8
|
+
declare type UpdateTenant = Pick<Tenant, 'name' | 'settings'>;
|
|
8
9
|
interface TenantUsageReport {
|
|
9
10
|
tokenReport: TokenReport;
|
|
10
11
|
}
|
package/types/models/tokens.d.ts
CHANGED
|
@@ -30,6 +30,8 @@ interface Token<DataType = Primitive> extends TokenBase {
|
|
|
30
30
|
searchIndexes?: string[];
|
|
31
31
|
fingerprintExpression?: string;
|
|
32
32
|
}
|
|
33
|
-
declare type CreateToken<DataType = Primitive> = Pick<Token<DataType>, 'type' | 'data' | 'privacy' | 'metadata' | 'encryption' | 'searchIndexes' | 'fingerprintExpression'
|
|
33
|
+
declare type CreateToken<DataType = Primitive> = Pick<Token<DataType>, 'type' | 'data' | 'privacy' | 'metadata' | 'encryption' | 'searchIndexes' | 'fingerprintExpression'> & {
|
|
34
|
+
deduplicateToken?: boolean;
|
|
35
|
+
};
|
|
34
36
|
export type { Token, CreateToken, DataArray, DataObject, TokenData, DataClassification, DataImpactLevel, DataRestrictionPolicy, };
|
|
35
37
|
export { DATA_CLASSIFICATIONS, DATA_IMPACT_LEVELS, DATA_RESTRICTION_POLICIES };
|