@nevermined-io/core-kit 0.0.17-rc0 → 0.0.17
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/dist/Instantiable.abstract.d.ts +1 -0
- package/dist/Instantiable.abstract.d.ts.map +1 -0
- package/dist/Instantiable.abstract.js +1 -0
- package/dist/artifacts/generated.d.ts +33 -166
- package/dist/artifacts/generated.d.ts.map +1 -0
- package/dist/artifacts/generated.js +16 -124
- package/dist/contracts/AccessManager.d.ts +1 -0
- package/dist/contracts/AccessManager.d.ts.map +1 -0
- package/dist/contracts/AssetRegistry.d.ts +2 -1
- package/dist/contracts/AssetRegistry.d.ts.map +1 -0
- package/dist/contracts/AssetRegistry.js +1 -1
- package/dist/contracts/ContractBase.d.ts +1 -0
- package/dist/contracts/ContractBase.d.ts.map +1 -0
- package/dist/contracts/ContractBase.js +3 -0
- package/dist/contracts/ContractsApi.d.ts +1 -0
- package/dist/contracts/ContractsApi.d.ts.map +1 -0
- package/dist/contracts/ContractsApi.js +43 -0
- package/dist/contracts/FiatPaymentTemplate.d.ts +1 -0
- package/dist/contracts/FiatPaymentTemplate.d.ts.map +1 -0
- package/dist/contracts/FiatSettlementCondition.d.ts +1 -0
- package/dist/contracts/FiatSettlementCondition.d.ts.map +1 -0
- package/dist/contracts/FixedPaymentTemplate.d.ts +1 -0
- package/dist/contracts/FixedPaymentTemplate.d.ts.map +1 -0
- package/dist/contracts/FixedPaymentTemplate.js +3 -6
- package/dist/contracts/NFT1155Base.d.ts +1 -0
- package/dist/contracts/NFT1155Base.d.ts.map +1 -0
- package/dist/contracts/NFT1155Credits.d.ts +1 -0
- package/dist/contracts/NFT1155Credits.d.ts.map +1 -0
- package/dist/contracts/NFT1155ExpirableCredits.d.ts +1 -0
- package/dist/contracts/NFT1155ExpirableCredits.d.ts.map +1 -0
- package/dist/contracts/NVMConfig.d.ts +1 -0
- package/dist/contracts/NVMConfig.d.ts.map +1 -0
- package/dist/contracts/ProtocolStandardFees.d.ts +2 -1
- package/dist/contracts/ProtocolStandardFees.d.ts.map +1 -0
- package/dist/contracts/Roles.d.ts +1 -0
- package/dist/contracts/Roles.d.ts.map +1 -0
- package/dist/contracts/index.d.ts +1 -0
- package/dist/contracts/index.d.ts.map +1 -0
- package/dist/errors/NeverminedErrors.d.ts +1 -0
- package/dist/errors/NeverminedErrors.d.ts.map +1 -0
- package/dist/errors/index.d.ts +1 -0
- package/dist/errors/index.d.ts.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +7 -7
- package/dist/models/AgentAccessToken.d.ts +1 -0
- package/dist/models/AgentAccessToken.d.ts.map +1 -0
- package/dist/models/AgentAccessToken.js +22 -0
- package/dist/models/Logger.d.ts +1 -0
- package/dist/models/Logger.d.ts.map +1 -0
- package/dist/models/NeverminedOptions.d.ts +1 -0
- package/dist/models/NeverminedOptions.d.ts.map +1 -0
- package/dist/models/NeverminedOptions.js +26 -6
- package/dist/models/NvmApiKey.d.ts +1 -0
- package/dist/models/NvmApiKey.d.ts.map +1 -0
- package/dist/models/NvmApiKey.js +36 -6
- package/dist/models/Transactions.d.ts +1 -0
- package/dist/models/Transactions.d.ts.map +1 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.d.ts.map +1 -0
- package/dist/nevermined/DID.d.ts +1 -0
- package/dist/nevermined/DID.d.ts.map +1 -0
- package/dist/nevermined/DID.js +4 -0
- package/dist/nevermined/Nevermined.d.ts +1 -0
- package/dist/nevermined/Nevermined.d.ts.map +1 -0
- package/dist/nevermined/Nevermined.js +21 -0
- package/dist/nevermined/api/PaymentsApi.d.ts +2 -1
- package/dist/nevermined/api/PaymentsApi.d.ts.map +1 -0
- package/dist/nevermined/api/PaymentsApi.js +1 -1
- package/dist/nevermined/api/ServicesApi.d.ts +1 -0
- package/dist/nevermined/api/ServicesApi.d.ts.map +1 -0
- package/dist/nevermined/api/ServicesApi.js +12 -0
- package/dist/nevermined/api/UtilsApi.d.ts +1 -0
- package/dist/nevermined/api/UtilsApi.d.ts.map +1 -0
- package/dist/nevermined/api/UtilsApi.js +12 -0
- package/dist/nevermined/index.d.ts +1 -0
- package/dist/nevermined/index.d.ts.map +1 -0
- package/dist/nevermined/utils/AgentUtils.d.ts +2 -1
- package/dist/nevermined/utils/AgentUtils.d.ts.map +1 -0
- package/dist/nevermined/utils/BlockchainViemUtils.d.ts +1 -0
- package/dist/nevermined/utils/BlockchainViemUtils.d.ts.map +1 -0
- package/dist/nevermined/utils/JwtUtils.d.ts +2 -1
- package/dist/nevermined/utils/JwtUtils.d.ts.map +1 -0
- package/dist/nevermined/utils/JwtUtils.js +5 -1
- package/dist/nevermined/utils/SignatureUtils.d.ts +2 -1
- package/dist/nevermined/utils/SignatureUtils.d.ts.map +1 -0
- package/dist/nevermined/utils/WebServiceConnector.d.ts +1 -0
- package/dist/nevermined/utils/WebServiceConnector.d.ts.map +1 -0
- package/dist/nevermined/utils/WebServiceConnector.js +2 -0
- package/dist/nevermined/utils/ZeroDevPolicies.d.ts +1 -0
- package/dist/nevermined/utils/ZeroDevPolicies.d.ts.map +1 -0
- package/dist/nevermined/utils/index.d.ts +1 -0
- package/dist/nevermined/utils/index.d.ts.map +1 -0
- package/dist/services/Api.d.ts +1 -0
- package/dist/services/Api.d.ts.map +1 -0
- package/dist/services/MetadataService.d.ts +2 -1
- package/dist/services/MetadataService.d.ts.map +1 -0
- package/dist/services/MetadataService.js +1 -1
- package/dist/services/Profiles.d.ts +2 -1
- package/dist/services/Profiles.d.ts.map +1 -0
- package/dist/services/index.d.ts +1 -0
- package/dist/services/index.d.ts.map +1 -0
- package/dist/utils/ConversionTypeHelpers.d.ts +1 -0
- package/dist/utils/ConversionTypeHelpers.d.ts.map +1 -0
- package/dist/utils/Network.d.ts +1 -0
- package/dist/utils/Network.d.ts.map +1 -0
- package/dist/utils/helpers.d.ts +2 -1
- package/dist/utils/helpers.d.ts.map +1 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/package.json +1 -20
- package/dist/vendor/commons/index.d.ts +0 -4
- package/dist/vendor/commons/index.js +0 -4
- package/dist/vendor/commons/lib/constants/AssetConstants.d.ts +0 -3
- package/dist/vendor/commons/lib/constants/AssetConstants.js +0 -3
- package/dist/vendor/commons/lib/constants/index.d.ts +0 -2
- package/dist/vendor/commons/lib/constants/index.js +0 -1
- package/dist/vendor/commons/lib/ddo/DDO.d.ts +0 -39
- package/dist/vendor/commons/lib/ddo/DDO.js +0 -95
- package/dist/vendor/commons/lib/ddo/index.d.ts +0 -1
- package/dist/vendor/commons/lib/ddo/index.js +0 -1
- package/dist/vendor/commons/lib/types/ContractsTypes.d.ts +0 -98
- package/dist/vendor/commons/lib/types/ContractsTypes.js +0 -36
- package/dist/vendor/commons/lib/types/DDOTypes.d.ts +0 -113
- package/dist/vendor/commons/lib/types/DDOTypes.js +0 -14
- package/dist/vendor/commons/lib/types/GeneralTypes.d.ts +0 -19
- package/dist/vendor/commons/lib/types/GeneralTypes.js +0 -1
- package/dist/vendor/commons/lib/types/MetadataTypes.d.ts +0 -120
- package/dist/vendor/commons/lib/types/MetadataTypes.js +0 -57
- package/dist/vendor/commons/lib/types/TranscoderTypes.d.ts +0 -27
- package/dist/vendor/commons/lib/types/TranscoderTypes.js +0 -30
- package/dist/vendor/commons/lib/types/index.d.ts +0 -6
- package/dist/vendor/commons/lib/types/index.js +0 -6
- package/dist/vendor/commons/lib/types/types.d.ts +0 -202
- package/dist/vendor/commons/lib/types/types.js +0 -140
|
@@ -1,202 +0,0 @@
|
|
|
1
|
-
import * as jose from 'jose';
|
|
2
|
-
export declare enum AuthRoles {
|
|
3
|
-
Admin = "admin"
|
|
4
|
-
}
|
|
5
|
-
export interface AuthUser {
|
|
6
|
-
userId: string;
|
|
7
|
-
address: string;
|
|
8
|
-
hash: string;
|
|
9
|
-
roles?: AuthRoles[];
|
|
10
|
-
nvmApiKey?: jose.JWTPayload;
|
|
11
|
-
}
|
|
12
|
-
export interface Request<G> {
|
|
13
|
-
hostname: string;
|
|
14
|
-
body?: G;
|
|
15
|
-
query?: G;
|
|
16
|
-
params?: G;
|
|
17
|
-
client: {
|
|
18
|
-
localPort: number;
|
|
19
|
-
};
|
|
20
|
-
protocol: string;
|
|
21
|
-
url: string;
|
|
22
|
-
user?: AuthUser;
|
|
23
|
-
}
|
|
24
|
-
export type DistinctPlans = {
|
|
25
|
-
page: number;
|
|
26
|
-
totalPages: number;
|
|
27
|
-
totalResults: number;
|
|
28
|
-
results: any[];
|
|
29
|
-
};
|
|
30
|
-
export declare enum PointsRulesCategory {
|
|
31
|
-
wau = "wau",
|
|
32
|
-
supply = "supply",
|
|
33
|
-
purchases = "purchases",
|
|
34
|
-
demand = "demand",
|
|
35
|
-
curation = "curation",
|
|
36
|
-
network = "network",
|
|
37
|
-
other = "other"
|
|
38
|
-
}
|
|
39
|
-
export declare enum PointsRulesRecurrency {
|
|
40
|
-
unlimitted = "unlimitted",
|
|
41
|
-
timeslimitted = "timeslimitted",
|
|
42
|
-
onlyonce = "onlyonce",
|
|
43
|
-
onceperitem = "onceperitem",
|
|
44
|
-
capday = "capday",
|
|
45
|
-
capweek = "capweek",
|
|
46
|
-
capmonth = "capmonth",
|
|
47
|
-
capyear = "capyear",
|
|
48
|
-
other = "other"
|
|
49
|
-
}
|
|
50
|
-
export declare enum PointsEventStatus {
|
|
51
|
-
Pending = "Pending",
|
|
52
|
-
Processed = "Processed",
|
|
53
|
-
Failed = "Failed",
|
|
54
|
-
Skipped = "Skipped",
|
|
55
|
-
Other = "Other"
|
|
56
|
-
}
|
|
57
|
-
export declare enum NotificationType {
|
|
58
|
-
SubscriptionReceived = "SubscriptionReceived",
|
|
59
|
-
SubscriptionPurchased = "SubscriptionPurchased",
|
|
60
|
-
AccountSetup = "AccountSetup",
|
|
61
|
-
EmailValidation = "EmailValidation",
|
|
62
|
-
Other = "Other"
|
|
63
|
-
}
|
|
64
|
-
export declare enum NotificationOriginator {
|
|
65
|
-
Nevermined = "Nevermined",
|
|
66
|
-
Other = "Other"
|
|
67
|
-
}
|
|
68
|
-
export declare enum NotificationReadStatus {
|
|
69
|
-
Pending = "Pending",
|
|
70
|
-
Read = "Read",
|
|
71
|
-
Deleted = "Deleted",
|
|
72
|
-
Other = "Other"
|
|
73
|
-
}
|
|
74
|
-
export declare enum NotificationDeliveryStatus {
|
|
75
|
-
Pending = "Pending",
|
|
76
|
-
Sent = "Sent",
|
|
77
|
-
Failed = "Failed",
|
|
78
|
-
NotRequired = "NotRequired",
|
|
79
|
-
Skipped = "Skipped",
|
|
80
|
-
Other = "Other"
|
|
81
|
-
}
|
|
82
|
-
export declare enum EmailChallengeStatus {
|
|
83
|
-
Pending = "Pending",
|
|
84
|
-
Validated = "Validated",
|
|
85
|
-
Failed = "Failed"
|
|
86
|
-
}
|
|
87
|
-
export declare enum PlanTransactionType {
|
|
88
|
-
Purchase = "Purchase",
|
|
89
|
-
Mint = "Mint",
|
|
90
|
-
Burn = "Burn",
|
|
91
|
-
Transfer = "Transfer",
|
|
92
|
-
Error = "Error",
|
|
93
|
-
Other = "Other"
|
|
94
|
-
}
|
|
95
|
-
export declare enum PlanTransactionPaymentType {
|
|
96
|
-
Crypto = "Crypto",
|
|
97
|
-
Fiat = "Fiat"
|
|
98
|
-
}
|
|
99
|
-
export declare enum CheckoutSessionType {
|
|
100
|
-
embedded = "embedded",
|
|
101
|
-
redirect = "redirect"
|
|
102
|
-
}
|
|
103
|
-
export declare enum WidgetLayout {
|
|
104
|
-
Horizontal = "Horizontal",
|
|
105
|
-
Vertical = "Vertical",
|
|
106
|
-
Reduced = "Reduced"
|
|
107
|
-
}
|
|
108
|
-
export declare enum StripeEventStatus {
|
|
109
|
-
Pending = "Pending",
|
|
110
|
-
Done = "Done",
|
|
111
|
-
Error = "Error",
|
|
112
|
-
Ignored = "Ignored",
|
|
113
|
-
Other = "Other"
|
|
114
|
-
}
|
|
115
|
-
export declare enum ResultType {
|
|
116
|
-
matrix = "matrix",
|
|
117
|
-
vector = "vector",
|
|
118
|
-
scalar = "scalar",
|
|
119
|
-
string = "string"
|
|
120
|
-
}
|
|
121
|
-
export declare enum ApiKeyTxType {
|
|
122
|
-
NewPlan = "NewPlan",
|
|
123
|
-
NewAgent = "NewAgent",
|
|
124
|
-
EditPlan = "EditPlan",
|
|
125
|
-
EditAgent = "EditAgent",
|
|
126
|
-
Purchase = "Purchase",
|
|
127
|
-
Download = "Download",
|
|
128
|
-
AccessHit = "AccessHit",
|
|
129
|
-
Mint = "Mint",
|
|
130
|
-
Burn = "Burn",
|
|
131
|
-
AgentExecution = "AgentExecution",
|
|
132
|
-
Other = "Other"
|
|
133
|
-
}
|
|
134
|
-
export interface Metric {
|
|
135
|
-
consumer: string;
|
|
136
|
-
did: string;
|
|
137
|
-
endpoint: string;
|
|
138
|
-
job: string;
|
|
139
|
-
namespace: string;
|
|
140
|
-
owner: string;
|
|
141
|
-
access_date: Date;
|
|
142
|
-
}
|
|
143
|
-
export interface AccessHistory {
|
|
144
|
-
date: string;
|
|
145
|
-
owner: string;
|
|
146
|
-
consumer: string;
|
|
147
|
-
endpoint: string;
|
|
148
|
-
}
|
|
149
|
-
export interface LineItem {
|
|
150
|
-
planId: string;
|
|
151
|
-
currency: string;
|
|
152
|
-
name: string;
|
|
153
|
-
price: number;
|
|
154
|
-
quantity: number;
|
|
155
|
-
description?: string;
|
|
156
|
-
imageUrl?: string;
|
|
157
|
-
}
|
|
158
|
-
export interface StripeLineItem {
|
|
159
|
-
price_data: {
|
|
160
|
-
currency: string;
|
|
161
|
-
product_data: {
|
|
162
|
-
name: string;
|
|
163
|
-
description?: string;
|
|
164
|
-
images?: string[];
|
|
165
|
-
metadata?: [string, string];
|
|
166
|
-
};
|
|
167
|
-
unit_amount_decimal: number;
|
|
168
|
-
};
|
|
169
|
-
quantity: number;
|
|
170
|
-
}
|
|
171
|
-
export declare const DEFAULT_PAGE = 1;
|
|
172
|
-
export declare const DEFAULT_OFFSET = 10000;
|
|
173
|
-
export interface PaginationOptions {
|
|
174
|
-
page: number;
|
|
175
|
-
skip: number;
|
|
176
|
-
offset: number;
|
|
177
|
-
sortBy?: string;
|
|
178
|
-
sortOrder?: 'asc' | 'desc';
|
|
179
|
-
}
|
|
180
|
-
export declare enum TaskLogLevel {
|
|
181
|
-
debug = "debug",
|
|
182
|
-
info = "info",
|
|
183
|
-
warn = "warn",
|
|
184
|
-
error = "error"
|
|
185
|
-
}
|
|
186
|
-
export declare enum PaymentPlanTypes {
|
|
187
|
-
expirable = "expirable",
|
|
188
|
-
credits = "credits"
|
|
189
|
-
}
|
|
190
|
-
export interface OrderResult {
|
|
191
|
-
txHash: `0x${string}`;
|
|
192
|
-
planId: bigint;
|
|
193
|
-
planReceiver: `0x${string}`;
|
|
194
|
-
currency: string;
|
|
195
|
-
totalAmount: bigint;
|
|
196
|
-
numCredits: bigint;
|
|
197
|
-
paymentMethod: PlanTransactionPaymentType;
|
|
198
|
-
tokenAddress?: `0x${string}`;
|
|
199
|
-
}
|
|
200
|
-
export declare const NVM_USERID_HEADER = "NVM-User-id";
|
|
201
|
-
export declare const NVM_COST_HEADER = "NVMCreditsConsumed";
|
|
202
|
-
export declare const DEFAULT_COST_CREDITS = "1";
|
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
export var AuthRoles;
|
|
2
|
-
(function (AuthRoles) {
|
|
3
|
-
AuthRoles["Admin"] = "admin";
|
|
4
|
-
})(AuthRoles || (AuthRoles = {}));
|
|
5
|
-
export var PointsRulesCategory;
|
|
6
|
-
(function (PointsRulesCategory) {
|
|
7
|
-
PointsRulesCategory["wau"] = "wau";
|
|
8
|
-
PointsRulesCategory["supply"] = "supply";
|
|
9
|
-
PointsRulesCategory["purchases"] = "purchases";
|
|
10
|
-
PointsRulesCategory["demand"] = "demand";
|
|
11
|
-
PointsRulesCategory["curation"] = "curation";
|
|
12
|
-
PointsRulesCategory["network"] = "network";
|
|
13
|
-
PointsRulesCategory["other"] = "other";
|
|
14
|
-
})(PointsRulesCategory || (PointsRulesCategory = {}));
|
|
15
|
-
export var PointsRulesRecurrency;
|
|
16
|
-
(function (PointsRulesRecurrency) {
|
|
17
|
-
PointsRulesRecurrency["unlimitted"] = "unlimitted";
|
|
18
|
-
PointsRulesRecurrency["timeslimitted"] = "timeslimitted";
|
|
19
|
-
PointsRulesRecurrency["onlyonce"] = "onlyonce";
|
|
20
|
-
PointsRulesRecurrency["onceperitem"] = "onceperitem";
|
|
21
|
-
PointsRulesRecurrency["capday"] = "capday";
|
|
22
|
-
PointsRulesRecurrency["capweek"] = "capweek";
|
|
23
|
-
PointsRulesRecurrency["capmonth"] = "capmonth";
|
|
24
|
-
PointsRulesRecurrency["capyear"] = "capyear";
|
|
25
|
-
PointsRulesRecurrency["other"] = "other";
|
|
26
|
-
})(PointsRulesRecurrency || (PointsRulesRecurrency = {}));
|
|
27
|
-
export var PointsEventStatus;
|
|
28
|
-
(function (PointsEventStatus) {
|
|
29
|
-
PointsEventStatus["Pending"] = "Pending";
|
|
30
|
-
PointsEventStatus["Processed"] = "Processed";
|
|
31
|
-
PointsEventStatus["Failed"] = "Failed";
|
|
32
|
-
PointsEventStatus["Skipped"] = "Skipped";
|
|
33
|
-
PointsEventStatus["Other"] = "Other";
|
|
34
|
-
})(PointsEventStatus || (PointsEventStatus = {}));
|
|
35
|
-
export var NotificationType;
|
|
36
|
-
(function (NotificationType) {
|
|
37
|
-
NotificationType["SubscriptionReceived"] = "SubscriptionReceived";
|
|
38
|
-
NotificationType["SubscriptionPurchased"] = "SubscriptionPurchased";
|
|
39
|
-
NotificationType["AccountSetup"] = "AccountSetup";
|
|
40
|
-
NotificationType["EmailValidation"] = "EmailValidation";
|
|
41
|
-
NotificationType["Other"] = "Other";
|
|
42
|
-
})(NotificationType || (NotificationType = {}));
|
|
43
|
-
export var NotificationOriginator;
|
|
44
|
-
(function (NotificationOriginator) {
|
|
45
|
-
NotificationOriginator["Nevermined"] = "Nevermined";
|
|
46
|
-
NotificationOriginator["Other"] = "Other";
|
|
47
|
-
})(NotificationOriginator || (NotificationOriginator = {}));
|
|
48
|
-
export var NotificationReadStatus;
|
|
49
|
-
(function (NotificationReadStatus) {
|
|
50
|
-
NotificationReadStatus["Pending"] = "Pending";
|
|
51
|
-
NotificationReadStatus["Read"] = "Read";
|
|
52
|
-
NotificationReadStatus["Deleted"] = "Deleted";
|
|
53
|
-
NotificationReadStatus["Other"] = "Other";
|
|
54
|
-
})(NotificationReadStatus || (NotificationReadStatus = {}));
|
|
55
|
-
export var NotificationDeliveryStatus;
|
|
56
|
-
(function (NotificationDeliveryStatus) {
|
|
57
|
-
NotificationDeliveryStatus["Pending"] = "Pending";
|
|
58
|
-
NotificationDeliveryStatus["Sent"] = "Sent";
|
|
59
|
-
NotificationDeliveryStatus["Failed"] = "Failed";
|
|
60
|
-
NotificationDeliveryStatus["NotRequired"] = "NotRequired";
|
|
61
|
-
NotificationDeliveryStatus["Skipped"] = "Skipped";
|
|
62
|
-
NotificationDeliveryStatus["Other"] = "Other";
|
|
63
|
-
})(NotificationDeliveryStatus || (NotificationDeliveryStatus = {}));
|
|
64
|
-
export var EmailChallengeStatus;
|
|
65
|
-
(function (EmailChallengeStatus) {
|
|
66
|
-
EmailChallengeStatus["Pending"] = "Pending";
|
|
67
|
-
EmailChallengeStatus["Validated"] = "Validated";
|
|
68
|
-
EmailChallengeStatus["Failed"] = "Failed";
|
|
69
|
-
})(EmailChallengeStatus || (EmailChallengeStatus = {}));
|
|
70
|
-
export var PlanTransactionType;
|
|
71
|
-
(function (PlanTransactionType) {
|
|
72
|
-
PlanTransactionType["Purchase"] = "Purchase";
|
|
73
|
-
PlanTransactionType["Mint"] = "Mint";
|
|
74
|
-
PlanTransactionType["Burn"] = "Burn";
|
|
75
|
-
PlanTransactionType["Transfer"] = "Transfer";
|
|
76
|
-
PlanTransactionType["Error"] = "Error";
|
|
77
|
-
PlanTransactionType["Other"] = "Other";
|
|
78
|
-
})(PlanTransactionType || (PlanTransactionType = {}));
|
|
79
|
-
export var PlanTransactionPaymentType;
|
|
80
|
-
(function (PlanTransactionPaymentType) {
|
|
81
|
-
PlanTransactionPaymentType["Crypto"] = "Crypto";
|
|
82
|
-
PlanTransactionPaymentType["Fiat"] = "Fiat";
|
|
83
|
-
})(PlanTransactionPaymentType || (PlanTransactionPaymentType = {}));
|
|
84
|
-
export var CheckoutSessionType;
|
|
85
|
-
(function (CheckoutSessionType) {
|
|
86
|
-
CheckoutSessionType["embedded"] = "embedded";
|
|
87
|
-
CheckoutSessionType["redirect"] = "redirect";
|
|
88
|
-
})(CheckoutSessionType || (CheckoutSessionType = {}));
|
|
89
|
-
export var WidgetLayout;
|
|
90
|
-
(function (WidgetLayout) {
|
|
91
|
-
WidgetLayout["Horizontal"] = "Horizontal";
|
|
92
|
-
WidgetLayout["Vertical"] = "Vertical";
|
|
93
|
-
WidgetLayout["Reduced"] = "Reduced";
|
|
94
|
-
})(WidgetLayout || (WidgetLayout = {}));
|
|
95
|
-
export var StripeEventStatus;
|
|
96
|
-
(function (StripeEventStatus) {
|
|
97
|
-
StripeEventStatus["Pending"] = "Pending";
|
|
98
|
-
StripeEventStatus["Done"] = "Done";
|
|
99
|
-
StripeEventStatus["Error"] = "Error";
|
|
100
|
-
StripeEventStatus["Ignored"] = "Ignored";
|
|
101
|
-
StripeEventStatus["Other"] = "Other";
|
|
102
|
-
})(StripeEventStatus || (StripeEventStatus = {}));
|
|
103
|
-
export var ResultType;
|
|
104
|
-
(function (ResultType) {
|
|
105
|
-
ResultType["matrix"] = "matrix";
|
|
106
|
-
ResultType["vector"] = "vector";
|
|
107
|
-
ResultType["scalar"] = "scalar";
|
|
108
|
-
ResultType["string"] = "string";
|
|
109
|
-
})(ResultType || (ResultType = {}));
|
|
110
|
-
export var ApiKeyTxType;
|
|
111
|
-
(function (ApiKeyTxType) {
|
|
112
|
-
ApiKeyTxType["NewPlan"] = "NewPlan";
|
|
113
|
-
ApiKeyTxType["NewAgent"] = "NewAgent";
|
|
114
|
-
ApiKeyTxType["EditPlan"] = "EditPlan";
|
|
115
|
-
ApiKeyTxType["EditAgent"] = "EditAgent";
|
|
116
|
-
ApiKeyTxType["Purchase"] = "Purchase";
|
|
117
|
-
ApiKeyTxType["Download"] = "Download";
|
|
118
|
-
ApiKeyTxType["AccessHit"] = "AccessHit";
|
|
119
|
-
ApiKeyTxType["Mint"] = "Mint";
|
|
120
|
-
ApiKeyTxType["Burn"] = "Burn";
|
|
121
|
-
ApiKeyTxType["AgentExecution"] = "AgentExecution";
|
|
122
|
-
ApiKeyTxType["Other"] = "Other";
|
|
123
|
-
})(ApiKeyTxType || (ApiKeyTxType = {}));
|
|
124
|
-
export const DEFAULT_PAGE = 1;
|
|
125
|
-
export const DEFAULT_OFFSET = 10000;
|
|
126
|
-
export var TaskLogLevel;
|
|
127
|
-
(function (TaskLogLevel) {
|
|
128
|
-
TaskLogLevel["debug"] = "debug";
|
|
129
|
-
TaskLogLevel["info"] = "info";
|
|
130
|
-
TaskLogLevel["warn"] = "warn";
|
|
131
|
-
TaskLogLevel["error"] = "error";
|
|
132
|
-
})(TaskLogLevel || (TaskLogLevel = {}));
|
|
133
|
-
export var PaymentPlanTypes;
|
|
134
|
-
(function (PaymentPlanTypes) {
|
|
135
|
-
PaymentPlanTypes["expirable"] = "expirable";
|
|
136
|
-
PaymentPlanTypes["credits"] = "credits";
|
|
137
|
-
})(PaymentPlanTypes || (PaymentPlanTypes = {}));
|
|
138
|
-
export const NVM_USERID_HEADER = 'NVM-User-id';
|
|
139
|
-
export const NVM_COST_HEADER = 'NVMCreditsConsumed';
|
|
140
|
-
export const DEFAULT_COST_CREDITS = '1';
|