@engramx/idl 0.16.0-rc.5 → 0.16.0-rc.7
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 +148 -122
- package/dist/engram.idl.d.ts +142 -121
- package/dist/engram.idl.js +126 -120
- package/dist/market.did +87 -35
- package/dist/market.idl.d.ts +84 -35
- package/dist/market.idl.js +42 -35
- package/package.json +1 -1
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,12 +225,13 @@ 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,
|
|
232
232
|
expired: IDL.Nat,
|
|
233
233
|
open: IDL.Nat,
|
|
234
|
+
refundOwed: IDL.Opt(IDL.Nat),
|
|
234
235
|
closing: IDL.Nat,
|
|
235
236
|
});
|
|
236
237
|
const HttpRequest = IDL.Record({
|
|
@@ -274,13 +275,13 @@ export const idlFactory = ({ IDL }) => {
|
|
|
274
275
|
withheld: IDL.Nat,
|
|
275
276
|
items: IDL.Vec(AuditEntry),
|
|
276
277
|
});
|
|
277
|
-
const
|
|
278
|
+
const Result_9 = IDL.Variant({ Ok: Page_5, Err: Error });
|
|
278
279
|
const Page_7 = IDL.Record({
|
|
279
280
|
total: IDL.Nat,
|
|
280
281
|
withheld: IDL.Nat,
|
|
281
282
|
items: IDL.Vec(IDL.Principal),
|
|
282
283
|
});
|
|
283
|
-
const
|
|
284
|
+
const Result_10 = IDL.Variant({ Ok: Page_7, Err: Error });
|
|
284
285
|
const ContentEntry = IDL.Record({
|
|
285
286
|
id: IDL.Text,
|
|
286
287
|
createdAt: IDL.Int,
|
|
@@ -309,7 +310,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
309
310
|
withheld: IDL.Nat,
|
|
310
311
|
items: IDL.Vec(PurchaseRecord),
|
|
311
312
|
});
|
|
312
|
-
const
|
|
313
|
+
const Result_8 = IDL.Variant({ Ok: Page_4, Err: Error });
|
|
313
314
|
const Page_3 = IDL.Record({
|
|
314
315
|
total: IDL.Nat,
|
|
315
316
|
withheld: IDL.Nat,
|
|
@@ -320,7 +321,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
320
321
|
withheld: IDL.Nat,
|
|
321
322
|
items: IDL.Vec(Job),
|
|
322
323
|
});
|
|
323
|
-
const
|
|
324
|
+
const Result_7 = IDL.Variant({ Ok: Page_2, Err: Error });
|
|
324
325
|
const PendingWithdrawal = IDL.Record({
|
|
325
326
|
id: IDL.Nat,
|
|
326
327
|
parkedAtNs: IDL.Int,
|
|
@@ -334,7 +335,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
334
335
|
withheld: IDL.Nat,
|
|
335
336
|
items: IDL.Vec(PendingWithdrawal),
|
|
336
337
|
});
|
|
337
|
-
const
|
|
338
|
+
const Result_6 = IDL.Variant({ Ok: Page_1, Err: Error });
|
|
338
339
|
const ServiceType = IDL.Variant({ Sync: IDL.Null, Async: IDL.Null });
|
|
339
340
|
const PricingScheme = IDL.Variant({
|
|
340
341
|
Exact: IDL.Nat,
|
|
@@ -397,7 +398,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
397
398
|
remaining: IDL.Nat,
|
|
398
399
|
payer: Payer,
|
|
399
400
|
});
|
|
400
|
-
const
|
|
401
|
+
const Result_5 = IDL.Variant({ Ok: SessionState, Err: Error });
|
|
401
402
|
const SessionIntent = IDL.Record({
|
|
402
403
|
token: IDL.Text,
|
|
403
404
|
costPerCall: IDL.Opt(IDL.Nat),
|
|
@@ -422,7 +423,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
422
423
|
amountE6: IDL.Nat,
|
|
423
424
|
requirements: IDL.Vec(QuotedRequirement),
|
|
424
425
|
});
|
|
425
|
-
const
|
|
426
|
+
const Result_4 = IDL.Variant({ Ok: PaymentQuote, Err: Error });
|
|
426
427
|
const Result_2 = IDL.Variant({ Ok: IDL.Text, Err: Error });
|
|
427
428
|
const Result = IDL.Variant({ Ok: IDL.Nat, Err: Error });
|
|
428
429
|
const TokenAmount = IDL.Variant({
|
|
@@ -430,13 +431,18 @@ export const idlFactory = ({ IDL }) => {
|
|
|
430
431
|
Ckusdc: IDL.Nat,
|
|
431
432
|
Ckusdt: IDL.Nat,
|
|
432
433
|
});
|
|
434
|
+
const EscrowRecovery = IDL.Record({
|
|
435
|
+
blockIndex: IDL.Nat,
|
|
436
|
+
amount: TokenAmount,
|
|
437
|
+
});
|
|
438
|
+
const Result_3 = IDL.Variant({ Ok: EscrowRecovery, Err: Error });
|
|
433
439
|
return IDL.Service({
|
|
434
440
|
addAuditViewer: IDL.Func([IDL.Principal], [Result_1], []),
|
|
435
441
|
anchorNow: IDL.Func([], [Result_1], []),
|
|
436
442
|
claimJob: IDL.Func([IDL.Text], [Result_1], []),
|
|
437
443
|
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)], [
|
|
444
|
+
createEndpoint: IDL.Func([IDL.Text, IDL.Text, IDL.Text, IDL.Nat], [Result_19], []),
|
|
445
|
+
createJob: IDL.Func([IDL.Text, IDL.Vec(IDL.Nat8), IDL.Opt(PaymentSignature)], [Result_18], []),
|
|
440
446
|
deleteContent: IDL.Func([IDL.Text], [Result_1], []),
|
|
441
447
|
deleteEndpoint: IDL.Func([IDL.Text], [Result_1], []),
|
|
442
448
|
disputeJob: IDL.Func([IDL.Text, IDL.Text, IDL.Opt(IDL.Vec(IDL.Nat8))], [Result_1], []),
|
|
@@ -447,17 +453,17 @@ export const idlFactory = ({ IDL }) => {
|
|
|
447
453
|
getAuditHead: IDL.Func([], [AuditHead], ['query']),
|
|
448
454
|
getBuyerActionMessage: IDL.Func([IDL.Text, IDL.Text], [IDL.Text], ['query']),
|
|
449
455
|
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], [
|
|
456
|
+
getContent: IDL.Func([IDL.Text, IDL.Opt(PaymentSignature)], [Result_17], []),
|
|
457
|
+
getContentChunk: IDL.Func([AccessGrant, IDL.Nat], [Result_14], ['query']),
|
|
458
|
+
getEvmSellerPayout: IDL.Func([IDL.Principal], [Result_16], ['query']),
|
|
453
459
|
getGenesisNote: IDL.Func([], [GenesisNote], ['query']),
|
|
454
|
-
getJob: IDL.Func([IDL.Text], [
|
|
460
|
+
getJob: IDL.Func([IDL.Text], [Result_15], ['query']),
|
|
455
461
|
getJobCounts: IDL.Func([], [JobCounts], ['query']),
|
|
456
|
-
getJobResult: IDL.Func([IDL.Text], [
|
|
457
|
-
getJobStatus: IDL.Func([IDL.Text], [
|
|
462
|
+
getJobResult: IDL.Func([IDL.Text], [Result_14], ['query']),
|
|
463
|
+
getJobStatus: IDL.Func([IDL.Text], [Result_13], ['query']),
|
|
458
464
|
getPaymentPolicy: IDL.Func([], [SpendingPolicy], ['query']),
|
|
459
|
-
getRevenueSummary: IDL.Func([], [
|
|
460
|
-
getSellerStatus: IDL.Func([IDL.Principal], [
|
|
465
|
+
getRevenueSummary: IDL.Func([], [Result_12], ['query']),
|
|
466
|
+
getSellerStatus: IDL.Func([IDL.Principal], [Result_11], ['query']),
|
|
461
467
|
getSessionCounts: IDL.Func([], [SessionCounts], ['query']),
|
|
462
468
|
http_request: IDL.Func([HttpRequest], [HttpResponse], ['query']),
|
|
463
469
|
http_request_update: IDL.Func([HttpRequest], [HttpResponse], []),
|
|
@@ -489,22 +495,22 @@ export const idlFactory = ({ IDL }) => {
|
|
|
489
495
|
['query'],
|
|
490
496
|
),
|
|
491
497
|
isTradeFrozen: IDL.Func([], [IDL.Bool], ['query']),
|
|
492
|
-
listAuditEntries: IDL.Func([IDL.Nat, IDL.Nat], [
|
|
493
|
-
listAuditViewers: IDL.Func([], [
|
|
498
|
+
listAuditEntries: IDL.Func([IDL.Nat, IDL.Nat], [Result_9], ['query']),
|
|
499
|
+
listAuditViewers: IDL.Func([], [Result_10], ['query']),
|
|
494
500
|
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], [
|
|
501
|
+
listDenialEntries: IDL.Func([IDL.Nat, IDL.Nat], [Result_9], ['query']),
|
|
502
|
+
listEndpointPurchases: IDL.Func([IDL.Text, IDL.Nat, IDL.Nat], [Result_8], ['query']),
|
|
497
503
|
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], [
|
|
504
|
+
listJobs: IDL.Func([IDL.Text, IDL.Opt(JobStatus), IDL.Nat, IDL.Nat], [Result_7], ['query']),
|
|
505
|
+
listMyPendingWithdrawals: IDL.Func([IDL.Nat, IDL.Nat], [Result_6], ['query']),
|
|
500
506
|
listServices: IDL.Func([IDL.Bool, IDL.Nat, IDL.Nat], [Page], ['query']),
|
|
501
|
-
openSession: IDL.Func([SessionConfig, PaymentSignature], [
|
|
507
|
+
openSession: IDL.Func([SessionConfig, PaymentSignature], [Result_5], []),
|
|
502
508
|
previewOpenSession: IDL.Func([], [SessionIntent], ['query']),
|
|
503
|
-
quotePayment: IDL.Func([IDL.Nat], [
|
|
509
|
+
quotePayment: IDL.Func([IDL.Nat], [Result_4], ['query']),
|
|
504
510
|
reconcileJob: IDL.Func([IDL.Text], [Result_2], []),
|
|
505
511
|
reconcileSession: IDL.Func([IDL.Text], [Result_2], []),
|
|
506
512
|
recoverContentWithdrawal: IDL.Func([IDL.Nat], [Result], []),
|
|
507
|
-
recoverEscrow: IDL.Func([IDL.Text, TokenAmount], [
|
|
513
|
+
recoverEscrow: IDL.Func([IDL.Text, TokenAmount], [Result_3], []),
|
|
508
514
|
registerSeller: IDL.Func([IDL.Principal], [Result_1], []),
|
|
509
515
|
registerService: IDL.Func(
|
|
510
516
|
[
|
|
@@ -526,6 +532,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
526
532
|
removeCallerPolicy: IDL.Func([IDL.Principal], [Result_1], []),
|
|
527
533
|
resolveDispute: IDL.Func([IDL.Text, IDL.Bool], [Result_1], []),
|
|
528
534
|
resolveJob: IDL.Func([IDL.Text, JobStatus], [Result_1], []),
|
|
535
|
+
retrySellerPayment: IDL.Func([IDL.Text], [Result_1], []),
|
|
529
536
|
setAdmin: IDL.Func([IDL.Principal], [Result_1], []),
|
|
530
537
|
setCallerPolicy: IDL.Func([IDL.Principal, SpendingPolicy], [Result_1], []),
|
|
531
538
|
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.7",
|
|
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>",
|