@engramx/idl 0.16.0-rc.4 → 0.16.0-rc.6
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/engram.did +143 -121
- package/dist/engram.idl.d.ts +137 -120
- package/dist/engram.idl.js +125 -120
- package/dist/market.did +86 -35
- package/dist/market.idl.d.ts +83 -35
- package/dist/market.idl.js +41 -35
- package/package.json +2 -2
package/dist/market.idl.js
CHANGED
|
@@ -28,7 +28,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
28
28
|
suggestedPrice: IDL.Nat,
|
|
29
29
|
enabledAtNs: IDL.Opt(IDL.Int),
|
|
30
30
|
});
|
|
31
|
-
const
|
|
31
|
+
const Result_19 = IDL.Variant({ Ok: X402Endpoint, Err: Error });
|
|
32
32
|
const Eip3009Authorization = IDL.Record({
|
|
33
33
|
r: IDL.Vec(IDL.Nat8),
|
|
34
34
|
s: IDL.Vec(IDL.Nat8),
|
|
@@ -65,7 +65,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
65
65
|
Accepted: IDL.Record({ jobId: IDL.Text }),
|
|
66
66
|
PaymentRequired: IDL.Vec(PaymentRequirement),
|
|
67
67
|
});
|
|
68
|
-
const
|
|
68
|
+
const Result_18 = IDL.Variant({
|
|
69
69
|
Ok: ServiceRequestResponse,
|
|
70
70
|
Err: Error,
|
|
71
71
|
});
|
|
@@ -126,9 +126,9 @@ export const idlFactory = ({ IDL }) => {
|
|
|
126
126
|
Delivered: ContentDelivery,
|
|
127
127
|
PaymentRequired: IDL.Vec(PaymentRequirement),
|
|
128
128
|
});
|
|
129
|
-
const
|
|
130
|
-
const
|
|
131
|
-
const
|
|
129
|
+
const Result_17 = IDL.Variant({ Ok: ContentResponse, Err: Error });
|
|
130
|
+
const Result_14 = IDL.Variant({ Ok: IDL.Vec(IDL.Nat8), Err: Error });
|
|
131
|
+
const Result_16 = IDL.Variant({ Ok: IDL.Opt(IDL.Text), Err: Error });
|
|
132
132
|
const GenesisNote = IDL.Record({
|
|
133
133
|
predecessorSize: IDL.Opt(IDL.Nat),
|
|
134
134
|
predecessorHeadHash: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
@@ -179,7 +179,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
179
179
|
amount: IDL.Nat,
|
|
180
180
|
params: IDL.Vec(IDL.Nat8),
|
|
181
181
|
});
|
|
182
|
-
const
|
|
182
|
+
const Result_15 = IDL.Variant({ Ok: Job, Err: Error });
|
|
183
183
|
const JobCounts = IDL.Record({
|
|
184
184
|
total: IDL.Nat,
|
|
185
185
|
active: IDL.Nat,
|
|
@@ -189,7 +189,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
189
189
|
settling: IDL.Nat,
|
|
190
190
|
parked: IDL.Nat,
|
|
191
191
|
});
|
|
192
|
-
const
|
|
192
|
+
const Result_13 = IDL.Variant({ Ok: JobStatus, Err: Error });
|
|
193
193
|
const SpendingPolicy = IDL.Record({
|
|
194
194
|
maxSessionDeposit: IDL.Opt(IDL.Nat),
|
|
195
195
|
blockedCallers: IDL.Opt(IDL.Vec(IDL.Principal)),
|
|
@@ -217,7 +217,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
217
217
|
contentPurchases: IDL.Nat,
|
|
218
218
|
unresolvedWithdrawals: IDL.Nat,
|
|
219
219
|
});
|
|
220
|
-
const
|
|
220
|
+
const Result_12 = IDL.Variant({ Ok: RevenueSummary, Err: Error });
|
|
221
221
|
const SellerStatus = IDL.Record({
|
|
222
222
|
expiresAtNs: IDL.Int,
|
|
223
223
|
verifiedAtNs: IDL.Int,
|
|
@@ -225,7 +225,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
225
225
|
engramId: IDL.Principal,
|
|
226
226
|
byteQuota: IDL.Nat,
|
|
227
227
|
});
|
|
228
|
-
const
|
|
228
|
+
const Result_11 = IDL.Variant({ Ok: SellerStatus, Err: Error });
|
|
229
229
|
const SessionCounts = IDL.Record({
|
|
230
230
|
closed: IDL.Nat,
|
|
231
231
|
total: IDL.Nat,
|
|
@@ -274,13 +274,13 @@ export const idlFactory = ({ IDL }) => {
|
|
|
274
274
|
withheld: IDL.Nat,
|
|
275
275
|
items: IDL.Vec(AuditEntry),
|
|
276
276
|
});
|
|
277
|
-
const
|
|
277
|
+
const Result_9 = IDL.Variant({ Ok: Page_5, Err: Error });
|
|
278
278
|
const Page_7 = IDL.Record({
|
|
279
279
|
total: IDL.Nat,
|
|
280
280
|
withheld: IDL.Nat,
|
|
281
281
|
items: IDL.Vec(IDL.Principal),
|
|
282
282
|
});
|
|
283
|
-
const
|
|
283
|
+
const Result_10 = IDL.Variant({ Ok: Page_7, Err: Error });
|
|
284
284
|
const ContentEntry = IDL.Record({
|
|
285
285
|
id: IDL.Text,
|
|
286
286
|
createdAt: IDL.Int,
|
|
@@ -309,7 +309,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
309
309
|
withheld: IDL.Nat,
|
|
310
310
|
items: IDL.Vec(PurchaseRecord),
|
|
311
311
|
});
|
|
312
|
-
const
|
|
312
|
+
const Result_8 = IDL.Variant({ Ok: Page_4, Err: Error });
|
|
313
313
|
const Page_3 = IDL.Record({
|
|
314
314
|
total: IDL.Nat,
|
|
315
315
|
withheld: IDL.Nat,
|
|
@@ -320,7 +320,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
320
320
|
withheld: IDL.Nat,
|
|
321
321
|
items: IDL.Vec(Job),
|
|
322
322
|
});
|
|
323
|
-
const
|
|
323
|
+
const Result_7 = IDL.Variant({ Ok: Page_2, Err: Error });
|
|
324
324
|
const PendingWithdrawal = IDL.Record({
|
|
325
325
|
id: IDL.Nat,
|
|
326
326
|
parkedAtNs: IDL.Int,
|
|
@@ -334,7 +334,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
334
334
|
withheld: IDL.Nat,
|
|
335
335
|
items: IDL.Vec(PendingWithdrawal),
|
|
336
336
|
});
|
|
337
|
-
const
|
|
337
|
+
const Result_6 = IDL.Variant({ Ok: Page_1, Err: Error });
|
|
338
338
|
const ServiceType = IDL.Variant({ Sync: IDL.Null, Async: IDL.Null });
|
|
339
339
|
const PricingScheme = IDL.Variant({
|
|
340
340
|
Exact: IDL.Nat,
|
|
@@ -397,7 +397,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
397
397
|
remaining: IDL.Nat,
|
|
398
398
|
payer: Payer,
|
|
399
399
|
});
|
|
400
|
-
const
|
|
400
|
+
const Result_5 = IDL.Variant({ Ok: SessionState, Err: Error });
|
|
401
401
|
const SessionIntent = IDL.Record({
|
|
402
402
|
token: IDL.Text,
|
|
403
403
|
costPerCall: IDL.Opt(IDL.Nat),
|
|
@@ -422,7 +422,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
422
422
|
amountE6: IDL.Nat,
|
|
423
423
|
requirements: IDL.Vec(QuotedRequirement),
|
|
424
424
|
});
|
|
425
|
-
const
|
|
425
|
+
const Result_4 = IDL.Variant({ Ok: PaymentQuote, Err: Error });
|
|
426
426
|
const Result_2 = IDL.Variant({ Ok: IDL.Text, Err: Error });
|
|
427
427
|
const Result = IDL.Variant({ Ok: IDL.Nat, Err: Error });
|
|
428
428
|
const TokenAmount = IDL.Variant({
|
|
@@ -430,13 +430,18 @@ export const idlFactory = ({ IDL }) => {
|
|
|
430
430
|
Ckusdc: IDL.Nat,
|
|
431
431
|
Ckusdt: IDL.Nat,
|
|
432
432
|
});
|
|
433
|
+
const EscrowRecovery = IDL.Record({
|
|
434
|
+
blockIndex: IDL.Nat,
|
|
435
|
+
amount: TokenAmount,
|
|
436
|
+
});
|
|
437
|
+
const Result_3 = IDL.Variant({ Ok: EscrowRecovery, Err: Error });
|
|
433
438
|
return IDL.Service({
|
|
434
439
|
addAuditViewer: IDL.Func([IDL.Principal], [Result_1], []),
|
|
435
440
|
anchorNow: IDL.Func([], [Result_1], []),
|
|
436
441
|
claimJob: IDL.Func([IDL.Text], [Result_1], []),
|
|
437
442
|
confirmJob: IDL.Func([IDL.Text, IDL.Opt(IDL.Vec(IDL.Nat8))], [Result_1], []),
|
|
438
|
-
createEndpoint: IDL.Func([IDL.Text, IDL.Text, IDL.Text, IDL.Nat], [
|
|
439
|
-
createJob: IDL.Func([IDL.Text, IDL.Vec(IDL.Nat8), IDL.Opt(PaymentSignature)], [
|
|
443
|
+
createEndpoint: IDL.Func([IDL.Text, IDL.Text, IDL.Text, IDL.Nat], [Result_19], []),
|
|
444
|
+
createJob: IDL.Func([IDL.Text, IDL.Vec(IDL.Nat8), IDL.Opt(PaymentSignature)], [Result_18], []),
|
|
440
445
|
deleteContent: IDL.Func([IDL.Text], [Result_1], []),
|
|
441
446
|
deleteEndpoint: IDL.Func([IDL.Text], [Result_1], []),
|
|
442
447
|
disputeJob: IDL.Func([IDL.Text, IDL.Text, IDL.Opt(IDL.Vec(IDL.Nat8))], [Result_1], []),
|
|
@@ -447,17 +452,17 @@ export const idlFactory = ({ IDL }) => {
|
|
|
447
452
|
getAuditHead: IDL.Func([], [AuditHead], ['query']),
|
|
448
453
|
getBuyerActionMessage: IDL.Func([IDL.Text, IDL.Text], [IDL.Text], ['query']),
|
|
449
454
|
getCertifiedAuditHead: IDL.Func([], [CertifiedAuditHead], ['query']),
|
|
450
|
-
getContent: IDL.Func([IDL.Text, IDL.Opt(PaymentSignature)], [
|
|
451
|
-
getContentChunk: IDL.Func([AccessGrant, IDL.Nat], [
|
|
452
|
-
getEvmSellerPayout: IDL.Func([IDL.Principal], [
|
|
455
|
+
getContent: IDL.Func([IDL.Text, IDL.Opt(PaymentSignature)], [Result_17], []),
|
|
456
|
+
getContentChunk: IDL.Func([AccessGrant, IDL.Nat], [Result_14], ['query']),
|
|
457
|
+
getEvmSellerPayout: IDL.Func([IDL.Principal], [Result_16], ['query']),
|
|
453
458
|
getGenesisNote: IDL.Func([], [GenesisNote], ['query']),
|
|
454
|
-
getJob: IDL.Func([IDL.Text], [
|
|
459
|
+
getJob: IDL.Func([IDL.Text], [Result_15], ['query']),
|
|
455
460
|
getJobCounts: IDL.Func([], [JobCounts], ['query']),
|
|
456
|
-
getJobResult: IDL.Func([IDL.Text], [
|
|
457
|
-
getJobStatus: IDL.Func([IDL.Text], [
|
|
461
|
+
getJobResult: IDL.Func([IDL.Text], [Result_14], ['query']),
|
|
462
|
+
getJobStatus: IDL.Func([IDL.Text], [Result_13], ['query']),
|
|
458
463
|
getPaymentPolicy: IDL.Func([], [SpendingPolicy], ['query']),
|
|
459
|
-
getRevenueSummary: IDL.Func([], [
|
|
460
|
-
getSellerStatus: IDL.Func([IDL.Principal], [
|
|
464
|
+
getRevenueSummary: IDL.Func([], [Result_12], ['query']),
|
|
465
|
+
getSellerStatus: IDL.Func([IDL.Principal], [Result_11], ['query']),
|
|
461
466
|
getSessionCounts: IDL.Func([], [SessionCounts], ['query']),
|
|
462
467
|
http_request: IDL.Func([HttpRequest], [HttpResponse], ['query']),
|
|
463
468
|
http_request_update: IDL.Func([HttpRequest], [HttpResponse], []),
|
|
@@ -489,22 +494,22 @@ export const idlFactory = ({ IDL }) => {
|
|
|
489
494
|
['query'],
|
|
490
495
|
),
|
|
491
496
|
isTradeFrozen: IDL.Func([], [IDL.Bool], ['query']),
|
|
492
|
-
listAuditEntries: IDL.Func([IDL.Nat, IDL.Nat], [
|
|
493
|
-
listAuditViewers: IDL.Func([], [
|
|
497
|
+
listAuditEntries: IDL.Func([IDL.Nat, IDL.Nat], [Result_9], ['query']),
|
|
498
|
+
listAuditViewers: IDL.Func([], [Result_10], ['query']),
|
|
494
499
|
listContent: IDL.Func([IDL.Nat, IDL.Nat], [Page_6], ['query']),
|
|
495
|
-
listDenialEntries: IDL.Func([IDL.Nat, IDL.Nat], [
|
|
496
|
-
listEndpointPurchases: IDL.Func([IDL.Text, IDL.Nat, IDL.Nat], [
|
|
500
|
+
listDenialEntries: IDL.Func([IDL.Nat, IDL.Nat], [Result_9], ['query']),
|
|
501
|
+
listEndpointPurchases: IDL.Func([IDL.Text, IDL.Nat, IDL.Nat], [Result_8], ['query']),
|
|
497
502
|
listEndpoints: IDL.Func([IDL.Opt(EndpointStatus), IDL.Nat, IDL.Nat], [Page_3], ['query']),
|
|
498
|
-
listJobs: IDL.Func([IDL.Text, IDL.Opt(JobStatus), IDL.Nat, IDL.Nat], [
|
|
499
|
-
listMyPendingWithdrawals: IDL.Func([IDL.Nat, IDL.Nat], [
|
|
503
|
+
listJobs: IDL.Func([IDL.Text, IDL.Opt(JobStatus), IDL.Nat, IDL.Nat], [Result_7], ['query']),
|
|
504
|
+
listMyPendingWithdrawals: IDL.Func([IDL.Nat, IDL.Nat], [Result_6], ['query']),
|
|
500
505
|
listServices: IDL.Func([IDL.Bool, IDL.Nat, IDL.Nat], [Page], ['query']),
|
|
501
|
-
openSession: IDL.Func([SessionConfig, PaymentSignature], [
|
|
506
|
+
openSession: IDL.Func([SessionConfig, PaymentSignature], [Result_5], []),
|
|
502
507
|
previewOpenSession: IDL.Func([], [SessionIntent], ['query']),
|
|
503
|
-
quotePayment: IDL.Func([IDL.Nat], [
|
|
508
|
+
quotePayment: IDL.Func([IDL.Nat], [Result_4], ['query']),
|
|
504
509
|
reconcileJob: IDL.Func([IDL.Text], [Result_2], []),
|
|
505
510
|
reconcileSession: IDL.Func([IDL.Text], [Result_2], []),
|
|
506
511
|
recoverContentWithdrawal: IDL.Func([IDL.Nat], [Result], []),
|
|
507
|
-
recoverEscrow: IDL.Func([IDL.Text, TokenAmount], [
|
|
512
|
+
recoverEscrow: IDL.Func([IDL.Text, TokenAmount], [Result_3], []),
|
|
508
513
|
registerSeller: IDL.Func([IDL.Principal], [Result_1], []),
|
|
509
514
|
registerService: IDL.Func(
|
|
510
515
|
[
|
|
@@ -526,6 +531,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
526
531
|
removeCallerPolicy: IDL.Func([IDL.Principal], [Result_1], []),
|
|
527
532
|
resolveDispute: IDL.Func([IDL.Text, IDL.Bool], [Result_1], []),
|
|
528
533
|
resolveJob: IDL.Func([IDL.Text, JobStatus], [Result_1], []),
|
|
534
|
+
retrySellerPayment: IDL.Func([IDL.Text], [Result_1], []),
|
|
529
535
|
setAdmin: IDL.Func([IDL.Principal], [Result_1], []),
|
|
530
536
|
setCallerPolicy: IDL.Func([IDL.Principal, SpendingPolicy], [Result_1], []),
|
|
531
537
|
setEndpointEnabled: IDL.Func([IDL.Text, IDL.Bool], [Result_1], []),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@engramx/idl",
|
|
3
|
-
"version": "0.16.0-rc.
|
|
3
|
+
"version": "0.16.0-rc.6",
|
|
4
4
|
"description": "The Candid interfaces of the EngramX canisters (engram, registry, market) — the .did files and the JS/TS IDL factories generated from them, published with every release so code that calls them pins the interface by version.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "EngramX <developer@engramx.ai>",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"access": "public"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"@icp-sdk/core": "^
|
|
45
|
+
"@icp-sdk/core": "^6.1.0"
|
|
46
46
|
},
|
|
47
47
|
"scripts": {
|
|
48
48
|
"build": "node scripts/build.mjs"
|