@basis-theory/basis-theory-js 1.26.0 → 1.29.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.
Files changed (122) hide show
  1. package/BasisTheory.d.ts +6 -5
  2. package/BasisTheory.js +1 -4
  3. package/applications/BasisTheoryApplications.d.ts +3 -3
  4. package/applications/BasisTheoryApplications.js +3 -3
  5. package/atomic/banks/BasisTheoryAtomicBanks.d.ts +4 -4
  6. package/atomic/banks/BasisTheoryAtomicBanks.js +3 -3
  7. package/atomic/cards/BasisTheoryAtomicCards.d.ts +4 -4
  8. package/atomic/cards/BasisTheoryAtomicCards.js +4 -4
  9. package/common/BasisTheoryApiError.d.ts +5 -0
  10. package/common/BasisTheoryApiError.js +18 -0
  11. package/common/BasisTheoryValidationError.d.ts +13 -0
  12. package/common/BasisTheoryValidationError.js +18 -0
  13. package/common/constants.d.ts +2 -2
  14. package/common/index.d.ts +2 -2
  15. package/common/index.js +4 -4
  16. package/common/utils.d.ts +1 -2
  17. package/common/utils.js +3 -3
  18. package/elements/load.d.ts +1 -1
  19. package/elements/services/banks.d.ts +3 -3
  20. package/elements/services/banks.js +1 -1
  21. package/elements/services/cards.d.ts +3 -3
  22. package/elements/services/cards.js +1 -1
  23. package/elements/services/tokenize.d.ts +3 -3
  24. package/elements/services/tokenize.js +1 -1
  25. package/elements/services/tokens.d.ts +3 -3
  26. package/elements/services/tokens.js +1 -1
  27. package/index.d.ts +1 -1
  28. package/logs/BasisTheoryLogs.d.ts +3 -3
  29. package/logs/BasisTheoryLogs.js +2 -2
  30. package/package.json +13 -2
  31. package/permissions/BasisTheoryPermissions.d.ts +3 -3
  32. package/permissions/BasisTheoryPermissions.js +2 -2
  33. package/reactor-formulas/BasisTheoryReactorFormulas.d.ts +3 -3
  34. package/reactor-formulas/BasisTheoryReactorFormulas.js +2 -2
  35. package/reactors/BasisTheoryReactors.d.ts +4 -4
  36. package/reactors/BasisTheoryReactors.js +4 -4
  37. package/service/BasisTheoryService.js +1 -1
  38. package/service/CrudBuilder.d.ts +1 -1
  39. package/service/CrudBuilder.js +1 -1
  40. package/service/types.d.ts +1 -1
  41. package/tenants/BasisTheoryTenants.d.ts +4 -4
  42. package/tenants/BasisTheoryTenants.js +3 -3
  43. package/tokenize/BasisTheoryTokenize.d.ts +3 -3
  44. package/tokenize/BasisTheoryTokenize.js +2 -2
  45. package/tokens/BasisTheoryTokens.d.ts +4 -4
  46. package/tokens/BasisTheoryTokens.js +4 -4
  47. package/types/elements/elements.d.ts +47 -0
  48. package/types/elements/elements.js +1 -0
  49. package/types/elements/events.d.ts +34 -0
  50. package/types/elements/events.js +1 -0
  51. package/types/elements/index.d.ts +6 -0
  52. package/types/elements/index.js +83 -0
  53. package/types/elements/options.d.ts +37 -0
  54. package/types/elements/options.js +8 -0
  55. package/types/elements/services/banks.d.ts +11 -0
  56. package/types/elements/services/banks.js +1 -0
  57. package/types/elements/services/cards.d.ts +13 -0
  58. package/types/elements/services/cards.js +1 -0
  59. package/types/elements/services/index.d.ts +4 -0
  60. package/types/elements/services/index.js +57 -0
  61. package/types/elements/services/tokenize.d.ts +8 -0
  62. package/types/elements/services/tokenize.js +1 -0
  63. package/types/elements/services/tokens.d.ts +6 -0
  64. package/types/elements/services/tokens.js +1 -0
  65. package/types/elements/shared.d.ts +22 -0
  66. package/types/elements/shared.js +1 -0
  67. package/types/elements/styles.d.ts +20 -0
  68. package/types/elements/styles.js +20 -0
  69. package/types/models/applications.d.ts +15 -0
  70. package/types/models/applications.js +8 -0
  71. package/types/models/banks.d.ts +14 -0
  72. package/types/models/banks.js +1 -0
  73. package/types/models/cards.d.ts +15 -0
  74. package/types/models/cards.js +1 -0
  75. package/types/models/index.d.ts +11 -0
  76. package/types/models/index.js +148 -0
  77. package/types/models/logs.d.ts +11 -0
  78. package/types/models/logs.js +1 -0
  79. package/types/models/permissions.d.ts +7 -0
  80. package/types/models/permissions.js +1 -0
  81. package/types/models/reactor-formulas.d.ts +26 -0
  82. package/types/models/reactor-formulas.js +1 -0
  83. package/types/models/reactors.d.ts +14 -0
  84. package/types/models/reactors.js +1 -0
  85. package/types/models/shared.d.ts +25 -0
  86. package/types/models/shared.js +1 -0
  87. package/types/models/tenants.d.ts +41 -0
  88. package/types/models/tenants.js +1 -0
  89. package/types/models/tokenize.d.ts +7 -0
  90. package/types/models/tokenize.js +1 -0
  91. package/types/models/tokens.d.ts +33 -0
  92. package/types/models/tokens.js +12 -0
  93. package/types/sdk/index.d.ts +2 -0
  94. package/types/sdk/index.js +31 -0
  95. package/types/sdk/sdk.d.ts +52 -0
  96. package/types/sdk/sdk.js +1 -0
  97. package/types/sdk/services/applications.d.ts +10 -0
  98. package/types/sdk/services/applications.js +1 -0
  99. package/types/sdk/services/banks.d.ts +5 -0
  100. package/types/sdk/services/banks.js +1 -0
  101. package/types/sdk/services/cards.d.ts +5 -0
  102. package/types/sdk/services/cards.js +1 -0
  103. package/types/sdk/services/index.d.ts +11 -0
  104. package/types/sdk/services/index.js +148 -0
  105. package/types/sdk/services/logs.d.ts +10 -0
  106. package/types/sdk/services/logs.js +1 -0
  107. package/types/sdk/services/permissions.d.ts +6 -0
  108. package/types/sdk/services/permissions.js +1 -0
  109. package/types/sdk/services/reactor-formulas.d.ts +8 -0
  110. package/types/sdk/services/reactor-formulas.js +1 -0
  111. package/types/sdk/services/reactors.d.ts +13 -0
  112. package/types/sdk/services/reactors.js +1 -0
  113. package/types/sdk/services/shared.d.ts +40 -0
  114. package/types/sdk/services/shared.js +1 -0
  115. package/types/sdk/services/tenants.d.ts +23 -0
  116. package/types/sdk/services/tenants.js +1 -0
  117. package/types/sdk/services/tokenize.d.ts +6 -0
  118. package/types/sdk/services/tokenize.js +1 -0
  119. package/types/sdk/services/tokens.d.ts +20 -0
  120. package/types/sdk/services/tokens.js +1 -0
  121. package/types.d.ts +0 -39
  122. package/types.js +0 -8
@@ -0,0 +1,148 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+
7
+ var _tokens = require("./tokens");
8
+
9
+ Object.keys(_tokens).forEach(function (key) {
10
+ if (key === "default" || key === "__esModule") return;
11
+ if (key in exports && exports[key] === _tokens[key]) return;
12
+ Object.defineProperty(exports, key, {
13
+ enumerable: true,
14
+ get: function () {
15
+ return _tokens[key];
16
+ }
17
+ });
18
+ });
19
+
20
+ var _shared = require("./shared");
21
+
22
+ Object.keys(_shared).forEach(function (key) {
23
+ if (key === "default" || key === "__esModule") return;
24
+ if (key in exports && exports[key] === _shared[key]) return;
25
+ Object.defineProperty(exports, key, {
26
+ enumerable: true,
27
+ get: function () {
28
+ return _shared[key];
29
+ }
30
+ });
31
+ });
32
+
33
+ var _cards = require("./cards");
34
+
35
+ Object.keys(_cards).forEach(function (key) {
36
+ if (key === "default" || key === "__esModule") return;
37
+ if (key in exports && exports[key] === _cards[key]) return;
38
+ Object.defineProperty(exports, key, {
39
+ enumerable: true,
40
+ get: function () {
41
+ return _cards[key];
42
+ }
43
+ });
44
+ });
45
+
46
+ var _banks = require("./banks");
47
+
48
+ Object.keys(_banks).forEach(function (key) {
49
+ if (key === "default" || key === "__esModule") return;
50
+ if (key in exports && exports[key] === _banks[key]) return;
51
+ Object.defineProperty(exports, key, {
52
+ enumerable: true,
53
+ get: function () {
54
+ return _banks[key];
55
+ }
56
+ });
57
+ });
58
+
59
+ var _applications = require("./applications");
60
+
61
+ Object.keys(_applications).forEach(function (key) {
62
+ if (key === "default" || key === "__esModule") return;
63
+ if (key in exports && exports[key] === _applications[key]) return;
64
+ Object.defineProperty(exports, key, {
65
+ enumerable: true,
66
+ get: function () {
67
+ return _applications[key];
68
+ }
69
+ });
70
+ });
71
+
72
+ var _tenants = require("./tenants");
73
+
74
+ Object.keys(_tenants).forEach(function (key) {
75
+ if (key === "default" || key === "__esModule") return;
76
+ if (key in exports && exports[key] === _tenants[key]) return;
77
+ Object.defineProperty(exports, key, {
78
+ enumerable: true,
79
+ get: function () {
80
+ return _tenants[key];
81
+ }
82
+ });
83
+ });
84
+
85
+ var _logs = require("./logs");
86
+
87
+ Object.keys(_logs).forEach(function (key) {
88
+ if (key === "default" || key === "__esModule") return;
89
+ if (key in exports && exports[key] === _logs[key]) return;
90
+ Object.defineProperty(exports, key, {
91
+ enumerable: true,
92
+ get: function () {
93
+ return _logs[key];
94
+ }
95
+ });
96
+ });
97
+
98
+ var _reactorFormulas = require("./reactor-formulas");
99
+
100
+ Object.keys(_reactorFormulas).forEach(function (key) {
101
+ if (key === "default" || key === "__esModule") return;
102
+ if (key in exports && exports[key] === _reactorFormulas[key]) return;
103
+ Object.defineProperty(exports, key, {
104
+ enumerable: true,
105
+ get: function () {
106
+ return _reactorFormulas[key];
107
+ }
108
+ });
109
+ });
110
+
111
+ var _reactors = require("./reactors");
112
+
113
+ Object.keys(_reactors).forEach(function (key) {
114
+ if (key === "default" || key === "__esModule") return;
115
+ if (key in exports && exports[key] === _reactors[key]) return;
116
+ Object.defineProperty(exports, key, {
117
+ enumerable: true,
118
+ get: function () {
119
+ return _reactors[key];
120
+ }
121
+ });
122
+ });
123
+
124
+ var _permissions = require("./permissions");
125
+
126
+ Object.keys(_permissions).forEach(function (key) {
127
+ if (key === "default" || key === "__esModule") return;
128
+ if (key in exports && exports[key] === _permissions[key]) return;
129
+ Object.defineProperty(exports, key, {
130
+ enumerable: true,
131
+ get: function () {
132
+ return _permissions[key];
133
+ }
134
+ });
135
+ });
136
+
137
+ var _tokenize = require("./tokenize");
138
+
139
+ Object.keys(_tokenize).forEach(function (key) {
140
+ if (key === "default" || key === "__esModule") return;
141
+ if (key in exports && exports[key] === _tokenize[key]) return;
142
+ Object.defineProperty(exports, key, {
143
+ enumerable: true,
144
+ get: function () {
145
+ return _tokenize[key];
146
+ }
147
+ });
148
+ });
@@ -0,0 +1,11 @@
1
+ interface Log {
2
+ tenantId: string;
3
+ actorId?: string;
4
+ actorType?: string;
5
+ entityType: string;
6
+ entityId: string;
7
+ operation: string;
8
+ message: string;
9
+ createdAt: string;
10
+ }
11
+ export type { Log };
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1,7 @@
1
+ import type { ApplicationType } from './applications';
2
+ interface Permission {
3
+ type: string;
4
+ description: string;
5
+ applicationTypes: ApplicationType[];
6
+ }
7
+ export type { Permission };
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1,26 @@
1
+ import type { Auditable } from './shared';
2
+ declare type FormulaType = 'official' | 'private';
3
+ declare type DataType = 'string' | 'boolean' | 'number';
4
+ interface ReactorFormula extends Auditable {
5
+ id: string;
6
+ name: string;
7
+ description?: string;
8
+ type: FormulaType;
9
+ icon?: string;
10
+ code: string;
11
+ configuration: ReactorFormulaConfig[];
12
+ requestParameters: ReactorFormulaRequestParam[];
13
+ }
14
+ interface ReactorFormulaConfig {
15
+ name: string;
16
+ description?: string;
17
+ type: DataType;
18
+ }
19
+ interface ReactorFormulaRequestParam {
20
+ name: string;
21
+ description?: string;
22
+ type: DataType;
23
+ optional?: boolean;
24
+ }
25
+ declare type CreateReactorFormula = Omit<ReactorFormula, 'id' | 'createdAt' | 'createdBy' | 'modifiedAt' | 'modifiedBy'>;
26
+ export type { FormulaType, DataType, ReactorFormula, ReactorFormulaConfig, ReactorFormulaRequestParam, CreateReactorFormula, };
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1,14 @@
1
+ import type { ReactorFormula } from './reactor-formulas';
2
+ import type { Auditable } from './shared';
3
+ interface Reactor extends Auditable {
4
+ id: string;
5
+ tenantId: string;
6
+ name: string;
7
+ formula: ReactorFormula;
8
+ configuration: Record<string, string>;
9
+ }
10
+ declare type CreateReactor = Pick<Reactor, 'name' | 'configuration'> & {
11
+ formula: Pick<ReactorFormula, 'id'>;
12
+ };
13
+ declare type UpdateReactor = Pick<Reactor, 'name' | 'configuration'>;
14
+ export type { Reactor, CreateReactor, UpdateReactor };
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1,25 @@
1
+ import type { DataObject } from './tokens';
2
+ declare type Primitive = string | number | boolean | null;
3
+ declare type TokenType = 'token' | 'card' | 'bank' | 'card_number' | 'us_bank_routing_number' | 'us_bank_account_number' | 'social_security_number';
4
+ interface Auditable {
5
+ createdBy?: string;
6
+ createdAt?: string;
7
+ modifiedBy?: string;
8
+ modifiedAt?: string;
9
+ }
10
+ interface TokenBase<T extends TokenType = TokenType> extends Auditable {
11
+ id: string;
12
+ type: T;
13
+ tenantId: string;
14
+ fingerprint?: string;
15
+ metadata?: Record<string, string>;
16
+ }
17
+ interface AtomicReactRequest {
18
+ reactorId: string;
19
+ requestParameters?: Record<string, unknown>;
20
+ }
21
+ interface ReactResponse {
22
+ tokens: DataObject;
23
+ raw: DataObject;
24
+ }
25
+ export type { Primitive, Auditable, TokenType, TokenBase, AtomicReactRequest, ReactResponse, };
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1,41 @@
1
+ import type { Auditable } from './shared';
2
+ interface Tenant extends Auditable {
3
+ id: string;
4
+ ownerId: string;
5
+ name: string;
6
+ }
7
+ declare type UpdateTenant = Pick<Tenant, 'name'>;
8
+ interface TenantUsageReport {
9
+ tokenReport: TokenReport;
10
+ }
11
+ interface TokenReport {
12
+ metricsByType: Record<string, TokenTypeMetrics>;
13
+ includedMonthlyActiveTokens: number;
14
+ monthlyActiveTokens: number;
15
+ }
16
+ interface TokenTypeMetrics {
17
+ count: number;
18
+ lastCreatedAt?: string;
19
+ }
20
+ interface TenantInvitation extends Auditable {
21
+ id: string;
22
+ tenantId: string;
23
+ email: string;
24
+ status: string;
25
+ expiresAt: string;
26
+ }
27
+ declare type CreateTenantInvitation = Pick<TenantInvitation, 'email'>;
28
+ interface User {
29
+ id: string;
30
+ email?: string;
31
+ firstName?: string;
32
+ lastName?: string;
33
+ picture?: string;
34
+ }
35
+ interface TenantMember extends Auditable {
36
+ id: string;
37
+ tenantId: string;
38
+ user: User;
39
+ role: string;
40
+ }
41
+ export type { Tenant, UpdateTenant, TenantUsageReport, TokenReport, TokenTypeMetrics, TenantInvitation, CreateTenantInvitation, TenantMember, User, };
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1,7 @@
1
+ import type { Primitive } from './shared';
2
+ declare type TokenizeObject<DataType = Primitive> = {
3
+ [key: string]: Primitive | TokenizeObject<DataType> | TokenizeArray<DataType> | DataType;
4
+ };
5
+ declare type TokenizeArray<DataType = Primitive> = Array<Primitive | TokenizeObject<DataType> | TokenizeArray<DataType> | DataType>;
6
+ declare type TokenizeData<DataType = Primitive> = TokenizeArray<DataType> | TokenizeObject<DataType>;
7
+ export type { TokenizeObject, TokenizeArray, TokenizeData };
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1,33 @@
1
+ import type { Primitive, TokenBase } from './shared';
2
+ declare const DATA_CLASSIFICATIONS: readonly ["general", "bank", "pci", "pii"];
3
+ declare type DataClassification = typeof DATA_CLASSIFICATIONS[number];
4
+ declare const DATA_IMPACT_LEVELS: readonly ["low", "moderate", "high"];
5
+ declare type DataImpactLevel = typeof DATA_IMPACT_LEVELS[number];
6
+ declare const DATA_RESTRICTION_POLICIES: readonly ["mask", "redact"];
7
+ declare type DataRestrictionPolicy = typeof DATA_RESTRICTION_POLICIES[number];
8
+ declare type DataObject<DataType = Primitive> = {
9
+ [member: string]: TokenData<DataType>;
10
+ };
11
+ declare type DataArray<DataType> = Array<TokenData<DataType>>;
12
+ declare type TokenData<DataType = Primitive> = Primitive | DataObject<DataType> | DataArray<DataType> | DataType;
13
+ interface TokenEncryptionKey {
14
+ key: string;
15
+ alg: string;
16
+ }
17
+ interface TokenEncryption {
18
+ cek: TokenEncryptionKey;
19
+ kek: TokenEncryptionKey;
20
+ }
21
+ interface TokenPrivacy {
22
+ classification?: DataClassification;
23
+ impactLevel?: DataImpactLevel;
24
+ restrictionPolicy?: DataRestrictionPolicy;
25
+ }
26
+ interface Token<DataType = Primitive> extends TokenBase {
27
+ data: TokenData<DataType>;
28
+ privacy?: TokenPrivacy;
29
+ encryption?: TokenEncryption;
30
+ }
31
+ declare type CreateToken<DataType = Primitive> = Pick<Token<DataType>, 'type' | 'data' | 'privacy' | 'metadata' | 'encryption'>;
32
+ export type { Token, CreateToken, DataArray, DataObject, TokenData, DataClassification, DataImpactLevel, DataRestrictionPolicy, };
33
+ export { DATA_CLASSIFICATIONS, DATA_IMPACT_LEVELS, DATA_RESTRICTION_POLICIES };
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.DATA_RESTRICTION_POLICIES = exports.DATA_IMPACT_LEVELS = exports.DATA_CLASSIFICATIONS = void 0;
7
+ const DATA_CLASSIFICATIONS = ['general', 'bank', 'pci', 'pii'];
8
+ exports.DATA_CLASSIFICATIONS = DATA_CLASSIFICATIONS;
9
+ const DATA_IMPACT_LEVELS = ['low', 'moderate', 'high'];
10
+ exports.DATA_IMPACT_LEVELS = DATA_IMPACT_LEVELS;
11
+ const DATA_RESTRICTION_POLICIES = ['mask', 'redact'];
12
+ exports.DATA_RESTRICTION_POLICIES = DATA_RESTRICTION_POLICIES;
@@ -0,0 +1,2 @@
1
+ export * from './sdk';
2
+ export * from './services';
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+
7
+ var _sdk = require("./sdk");
8
+
9
+ Object.keys(_sdk).forEach(function (key) {
10
+ if (key === "default" || key === "__esModule") return;
11
+ if (key in exports && exports[key] === _sdk[key]) return;
12
+ Object.defineProperty(exports, key, {
13
+ enumerable: true,
14
+ get: function () {
15
+ return _sdk[key];
16
+ }
17
+ });
18
+ });
19
+
20
+ var _services = require("./services");
21
+
22
+ Object.keys(_services).forEach(function (key) {
23
+ if (key === "default" || key === "__esModule") return;
24
+ if (key in exports && exports[key] === _services[key]) return;
25
+ Object.defineProperty(exports, key, {
26
+ enumerable: true,
27
+ get: function () {
28
+ return _services[key];
29
+ }
30
+ });
31
+ });
@@ -0,0 +1,52 @@
1
+ import type { BasisTheoryElements } from '@/types/elements';
2
+ import type { AtomicBanks, AtomicCards, Tokens, Tokenize, Applications, Tenants, Logs, ReactorFormulas, Reactors, Permissions } from './services';
3
+ interface ApplicationInfo {
4
+ name?: string;
5
+ version?: string;
6
+ url?: string;
7
+ }
8
+ interface BasisTheoryInitOptions {
9
+ apiBaseUrl?: string;
10
+ appInfo?: ApplicationInfo;
11
+ }
12
+ interface BasisTheoryInitOptionsWithoutElements extends BasisTheoryInitOptions {
13
+ elements?: false;
14
+ }
15
+ interface BasisTheoryInitOptionsWithElements extends BasisTheoryInitOptions {
16
+ elements: true;
17
+ elementsBaseUrl?: string;
18
+ }
19
+ interface BasisTheoryInit {
20
+ init(apiKey: string, options?: BasisTheoryInitOptionsWithoutElements): Promise<BasisTheory>;
21
+ init(apiKey: string, options: BasisTheoryInitOptionsWithElements): Promise<BasisTheory & BasisTheoryElements>;
22
+ }
23
+ interface BasisTheory extends Tokenize {
24
+ /**
25
+ * @deprecated use {@link tokens} or {@link tokenize}
26
+ */
27
+ atomicBanks: AtomicBanks;
28
+ /**
29
+ * @deprecated use {@link tokens} or {@link tokenize}
30
+ */
31
+ atomicCards: AtomicCards;
32
+ tokens: Tokens;
33
+ applications: Applications;
34
+ tenants: Tenants;
35
+ logs: Logs;
36
+ reactorFormulas: ReactorFormulas;
37
+ reactors: Reactors;
38
+ permissions: Permissions;
39
+ }
40
+ interface ClientUserAgent {
41
+ client: string;
42
+ clientVersion: string;
43
+ osVersion: string;
44
+ runtimeVersion: string;
45
+ application?: ApplicationInfo;
46
+ }
47
+ declare type BasisTheoryServices = 'tokens' | 'tokenize' | 'applications' | 'reactorFormulas' | 'reactors' | 'atomicBanks' | 'atomicCards' | 'permissions' | 'logs' | 'tenants';
48
+ declare type BasisTheoryServicesBasePathMap = {
49
+ [key in BasisTheoryServices]: string;
50
+ };
51
+ declare type BasisTheoryInitStatus = 'not-started' | 'in-progress' | 'done' | 'error';
52
+ export type { ApplicationInfo, BasisTheoryInitStatus, BasisTheoryInit, BasisTheory, BasisTheoryInitOptionsWithoutElements, BasisTheoryInitOptionsWithElements, BasisTheoryInitOptions, BasisTheoryServicesBasePathMap, ClientUserAgent, };
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1,10 @@
1
+ import type { Application, CreateApplication, UpdateApplication } from '@/types/models';
2
+ import type { Create, Delete, List, PaginatedQuery, RequestOptions, Retrieve, Update } from './shared';
3
+ interface ListApplicationsQuery extends PaginatedQuery {
4
+ id?: string | string[];
5
+ }
6
+ interface Applications extends Create<Application, CreateApplication>, Retrieve<Application>, Update<Application, UpdateApplication>, Delete, List<Application, ListApplicationsQuery> {
7
+ retrieveByKey(options?: RequestOptions): Promise<Application>;
8
+ regenerateKey(id: string, options?: RequestOptions): Promise<Application>;
9
+ }
10
+ export type { Applications, ListApplicationsQuery };
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1,5 @@
1
+ import type { AtomicBank, CreateAtomicBank, UpdateAtomicBank } from '@/types/models';
2
+ import type { Create, Retrieve, Update, Delete, List, AtomicReact } from './shared';
3
+ interface AtomicBanks extends Create<AtomicBank, CreateAtomicBank>, Retrieve<AtomicBank>, Update<AtomicBank, UpdateAtomicBank>, Delete, List<AtomicBank>, AtomicReact {
4
+ }
5
+ export type { AtomicBanks };
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1,5 @@
1
+ import type { AtomicCard, CreateAtomicCard, UpdateAtomicCard } from '@/types/models';
2
+ import type { Create, Retrieve, Update, Delete, List, AtomicReact } from './shared';
3
+ interface AtomicCards extends Create<AtomicCard, CreateAtomicCard>, Retrieve<AtomicCard>, Update<AtomicCard, UpdateAtomicCard>, Delete, List<AtomicCard>, AtomicReact {
4
+ }
5
+ export type { AtomicCards };
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1,11 @@
1
+ export * from './shared';
2
+ export * from './banks';
3
+ export * from './cards';
4
+ export * from './tokens';
5
+ export * from './tokenize';
6
+ export * from './applications';
7
+ export * from './tenants';
8
+ export * from './logs';
9
+ export * from './reactor-formulas';
10
+ export * from './reactors';
11
+ export * from './permissions';
@@ -0,0 +1,148 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+
7
+ var _shared = require("./shared");
8
+
9
+ Object.keys(_shared).forEach(function (key) {
10
+ if (key === "default" || key === "__esModule") return;
11
+ if (key in exports && exports[key] === _shared[key]) return;
12
+ Object.defineProperty(exports, key, {
13
+ enumerable: true,
14
+ get: function () {
15
+ return _shared[key];
16
+ }
17
+ });
18
+ });
19
+
20
+ var _banks = require("./banks");
21
+
22
+ Object.keys(_banks).forEach(function (key) {
23
+ if (key === "default" || key === "__esModule") return;
24
+ if (key in exports && exports[key] === _banks[key]) return;
25
+ Object.defineProperty(exports, key, {
26
+ enumerable: true,
27
+ get: function () {
28
+ return _banks[key];
29
+ }
30
+ });
31
+ });
32
+
33
+ var _cards = require("./cards");
34
+
35
+ Object.keys(_cards).forEach(function (key) {
36
+ if (key === "default" || key === "__esModule") return;
37
+ if (key in exports && exports[key] === _cards[key]) return;
38
+ Object.defineProperty(exports, key, {
39
+ enumerable: true,
40
+ get: function () {
41
+ return _cards[key];
42
+ }
43
+ });
44
+ });
45
+
46
+ var _tokens = require("./tokens");
47
+
48
+ Object.keys(_tokens).forEach(function (key) {
49
+ if (key === "default" || key === "__esModule") return;
50
+ if (key in exports && exports[key] === _tokens[key]) return;
51
+ Object.defineProperty(exports, key, {
52
+ enumerable: true,
53
+ get: function () {
54
+ return _tokens[key];
55
+ }
56
+ });
57
+ });
58
+
59
+ var _tokenize = require("./tokenize");
60
+
61
+ Object.keys(_tokenize).forEach(function (key) {
62
+ if (key === "default" || key === "__esModule") return;
63
+ if (key in exports && exports[key] === _tokenize[key]) return;
64
+ Object.defineProperty(exports, key, {
65
+ enumerable: true,
66
+ get: function () {
67
+ return _tokenize[key];
68
+ }
69
+ });
70
+ });
71
+
72
+ var _applications = require("./applications");
73
+
74
+ Object.keys(_applications).forEach(function (key) {
75
+ if (key === "default" || key === "__esModule") return;
76
+ if (key in exports && exports[key] === _applications[key]) return;
77
+ Object.defineProperty(exports, key, {
78
+ enumerable: true,
79
+ get: function () {
80
+ return _applications[key];
81
+ }
82
+ });
83
+ });
84
+
85
+ var _tenants = require("./tenants");
86
+
87
+ Object.keys(_tenants).forEach(function (key) {
88
+ if (key === "default" || key === "__esModule") return;
89
+ if (key in exports && exports[key] === _tenants[key]) return;
90
+ Object.defineProperty(exports, key, {
91
+ enumerable: true,
92
+ get: function () {
93
+ return _tenants[key];
94
+ }
95
+ });
96
+ });
97
+
98
+ var _logs = require("./logs");
99
+
100
+ Object.keys(_logs).forEach(function (key) {
101
+ if (key === "default" || key === "__esModule") return;
102
+ if (key in exports && exports[key] === _logs[key]) return;
103
+ Object.defineProperty(exports, key, {
104
+ enumerable: true,
105
+ get: function () {
106
+ return _logs[key];
107
+ }
108
+ });
109
+ });
110
+
111
+ var _reactorFormulas = require("./reactor-formulas");
112
+
113
+ Object.keys(_reactorFormulas).forEach(function (key) {
114
+ if (key === "default" || key === "__esModule") return;
115
+ if (key in exports && exports[key] === _reactorFormulas[key]) return;
116
+ Object.defineProperty(exports, key, {
117
+ enumerable: true,
118
+ get: function () {
119
+ return _reactorFormulas[key];
120
+ }
121
+ });
122
+ });
123
+
124
+ var _reactors = require("./reactors");
125
+
126
+ Object.keys(_reactors).forEach(function (key) {
127
+ if (key === "default" || key === "__esModule") return;
128
+ if (key in exports && exports[key] === _reactors[key]) return;
129
+ Object.defineProperty(exports, key, {
130
+ enumerable: true,
131
+ get: function () {
132
+ return _reactors[key];
133
+ }
134
+ });
135
+ });
136
+
137
+ var _permissions = require("./permissions");
138
+
139
+ Object.keys(_permissions).forEach(function (key) {
140
+ if (key === "default" || key === "__esModule") return;
141
+ if (key in exports && exports[key] === _permissions[key]) return;
142
+ Object.defineProperty(exports, key, {
143
+ enumerable: true,
144
+ get: function () {
145
+ return _permissions[key];
146
+ }
147
+ });
148
+ });
@@ -0,0 +1,10 @@
1
+ import type { Log } from '@/types/models';
2
+ import type { List, PaginatedQuery } from './shared';
3
+ interface ListLogQuery extends PaginatedQuery {
4
+ entityType?: string;
5
+ entityId?: string;
6
+ startDate?: string;
7
+ endDate?: string;
8
+ }
9
+ declare type Logs = List<Log, ListLogQuery>;
10
+ export type { ListLogQuery, Logs };
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1,6 @@
1
+ import type { Permission } from '@/types/models';
2
+ import type { RequestOptions } from './shared';
3
+ interface Permissions {
4
+ list(options?: RequestOptions): Promise<Permission[]>;
5
+ }
6
+ export type { Permissions };
@@ -0,0 +1 @@
1
+ "use strict";