@engramx/idl 0.16.0-rc.21 → 0.16.0-rc.23

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.
@@ -7,7 +7,7 @@ export const idlFactory = ({ IDL }) => {
7
7
  Unavailable: IDL.Text,
8
8
  Conflict: IDL.Text,
9
9
  });
10
- const Result_1 = IDL.Variant({ Ok: IDL.Null, Err: Error });
10
+ const Result = IDL.Variant({ Ok: IDL.Null, Err: Error });
11
11
  const EndpointStatus = IDL.Variant({
12
12
  Enabled: IDL.Null,
13
13
  Disabled: IDL.Null,
@@ -28,7 +28,7 @@ export const idlFactory = ({ IDL }) => {
28
28
  suggestedPrice: IDL.Nat,
29
29
  enabledAtNs: IDL.Opt(IDL.Int),
30
30
  });
31
- const Result_20 = IDL.Variant({ Ok: X402Endpoint, Err: Error });
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 Result_19 = IDL.Variant({
68
+ const Result_18 = IDL.Variant({
69
69
  Ok: ServiceRequestResponse,
70
70
  Err: Error,
71
71
  });
@@ -126,9 +126,8 @@ export const idlFactory = ({ IDL }) => {
126
126
  Delivered: ContentDelivery,
127
127
  PaymentRequired: IDL.Vec(PaymentRequirement),
128
128
  });
129
- const Result_18 = IDL.Variant({ Ok: ContentResponse, Err: Error });
129
+ const Result_17 = IDL.Variant({ Ok: ContentResponse, Err: Error });
130
130
  const Result_15 = IDL.Variant({ Ok: IDL.Vec(IDL.Nat8), Err: Error });
131
- const Result_17 = IDL.Variant({ Ok: IDL.Opt(IDL.Text), Err: Error });
132
131
  const GenesisNote = IDL.Record({
133
132
  predecessorSize: IDL.Opt(IDL.Nat),
134
133
  predecessorHeadHash: IDL.Opt(IDL.Vec(IDL.Nat8)),
@@ -203,7 +202,6 @@ export const idlFactory = ({ IDL }) => {
203
202
  });
204
203
  const RevenueSummary = IDL.Record({
205
204
  serviceJobsSettled: IDL.Nat,
206
- owedToYou: IDL.Nat,
207
205
  endpointBreakdown: IDL.Vec(
208
206
  IDL.Record({
209
207
  revenue: IDL.Nat,
@@ -212,18 +210,22 @@ export const idlFactory = ({ IDL }) => {
212
210
  purchases: IDL.Nat,
213
211
  }),
214
212
  ),
213
+ parkedPayouts: IDL.Nat,
215
214
  contentRevenue: IDL.Nat,
216
215
  serviceRevenue: IDL.Nat,
217
216
  contentPurchases: IDL.Nat,
218
- unresolvedWithdrawals: IDL.Nat,
219
217
  });
220
218
  const Result_13 = IDL.Variant({ Ok: RevenueSummary, Err: Error });
221
219
  const SellerStatus = IDL.Record({
222
220
  expiresAtNs: IDL.Int,
223
221
  verifiedAtNs: IDL.Int,
224
222
  bytesStored: IDL.Nat,
223
+ evmPayout: IDL.Opt(IDL.Text),
224
+ parkedPayouts: IDL.Nat,
225
225
  engramId: IDL.Principal,
226
226
  byteQuota: IDL.Nat,
227
+ parkedSaleNotices: IDL.Nat,
228
+ evmPayoutError: IDL.Opt(IDL.Text),
227
229
  });
228
230
  const Result_12 = IDL.Variant({ Ok: SellerStatus, Err: Error });
229
231
  const SessionCounts = IDL.Record({
@@ -335,18 +337,21 @@ export const idlFactory = ({ IDL }) => {
335
337
  items: IDL.Vec(Job),
336
338
  });
337
339
  const Result_7 = IDL.Variant({ Ok: Page_2, Err: Error });
338
- const PendingWithdrawal = IDL.Record({
340
+ const PendingPayout = IDL.Record({
339
341
  id: IDL.Nat,
340
342
  parkedAtNs: IDL.Int,
341
343
  createdAtTimeNs: IDL.Nat64,
342
- seller: IDL.Principal,
343
- amountE6s: IDL.Nat,
344
- reason: IDL.Text,
344
+ memo: IDL.Vec(IDL.Nat8),
345
+ amountE6: IDL.Nat,
346
+ engramId: IDL.Principal,
347
+ receiptId: IDL.Text,
348
+ lastError: IDL.Text,
349
+ feeE6: IDL.Nat,
345
350
  });
346
351
  const Page_1 = IDL.Record({
347
352
  total: IDL.Nat,
348
353
  withheld: IDL.Nat,
349
- items: IDL.Vec(PendingWithdrawal),
354
+ items: IDL.Vec(PendingPayout),
350
355
  });
351
356
  const Result_6 = IDL.Variant({ Ok: Page_1, Err: Error });
352
357
  const ServiceType = IDL.Variant({ Sync: IDL.Null, Async: IDL.Null });
@@ -438,7 +443,6 @@ export const idlFactory = ({ IDL }) => {
438
443
  });
439
444
  const Result_4 = IDL.Variant({ Ok: PaymentQuote, Err: Error });
440
445
  const Result_2 = IDL.Variant({ Ok: IDL.Text, Err: Error });
441
- const Result = IDL.Variant({ Ok: IDL.Nat, Err: Error });
442
446
  const TokenAmount = IDL.Variant({
443
447
  Icp: IDL.Nat,
444
448
  Ckusdc: IDL.Nat,
@@ -449,26 +453,26 @@ export const idlFactory = ({ IDL }) => {
449
453
  amount: TokenAmount,
450
454
  });
451
455
  const Result_3 = IDL.Variant({ Ok: EscrowRecovery, Err: Error });
456
+ const Result_1 = IDL.Variant({ Ok: IDL.Nat, Err: Error });
452
457
  return IDL.Service({
453
- addAuditViewer: IDL.Func([IDL.Principal], [Result_1], []),
454
- anchorNow: IDL.Func([], [Result_1], []),
455
- claimJob: IDL.Func([IDL.Text], [Result_1], []),
456
- confirmJob: IDL.Func([IDL.Text, IDL.Opt(IDL.Vec(IDL.Nat8))], [Result_1], []),
457
- createEndpoint: IDL.Func([IDL.Text, IDL.Text, IDL.Text, IDL.Nat], [Result_20], []),
458
- createJob: IDL.Func([IDL.Text, IDL.Vec(IDL.Nat8), IDL.Opt(PaymentSignature)], [Result_19], []),
459
- deleteContent: IDL.Func([IDL.Text], [Result_1], []),
460
- deleteEndpoint: IDL.Func([IDL.Text], [Result_1], []),
461
- disputeJob: IDL.Func([IDL.Text, IDL.Text, IDL.Opt(IDL.Vec(IDL.Nat8))], [Result_1], []),
462
- endSession: IDL.Func([IDL.Text], [Result_1], []),
463
- forceCloseSession: IDL.Func([IDL.Text], [Result_1], []),
464
- forceResolveSession: IDL.Func([IDL.Text], [Result_1], []),
458
+ addAuditViewer: IDL.Func([IDL.Principal], [Result], []),
459
+ anchorNow: IDL.Func([], [Result], []),
460
+ claimJob: IDL.Func([IDL.Text], [Result], []),
461
+ confirmJob: IDL.Func([IDL.Text, IDL.Opt(IDL.Vec(IDL.Nat8))], [Result], []),
462
+ createEndpoint: IDL.Func([IDL.Text, IDL.Text, IDL.Text, IDL.Nat], [Result_19], []),
463
+ createJob: IDL.Func([IDL.Text, IDL.Vec(IDL.Nat8), IDL.Opt(PaymentSignature)], [Result_18], []),
464
+ deleteContent: IDL.Func([IDL.Text], [Result], []),
465
+ deleteEndpoint: IDL.Func([IDL.Text], [Result], []),
466
+ disputeJob: IDL.Func([IDL.Text, IDL.Text, IDL.Opt(IDL.Vec(IDL.Nat8))], [Result], []),
467
+ endSession: IDL.Func([IDL.Text], [Result], []),
468
+ forceCloseSession: IDL.Func([IDL.Text], [Result], []),
469
+ forceResolveSession: IDL.Func([IDL.Text], [Result], []),
465
470
  getAdminRoles: IDL.Func([], [AdminRoles], ['query']),
466
471
  getAuditHead: IDL.Func([], [AuditHead], ['query']),
467
472
  getBuyerActionMessage: IDL.Func([IDL.Text, IDL.Text], [IDL.Text], ['query']),
468
473
  getCertifiedAuditHead: IDL.Func([], [CertifiedAuditHead], ['query']),
469
- getContent: IDL.Func([IDL.Text, IDL.Opt(PaymentSignature)], [Result_18], []),
474
+ getContent: IDL.Func([IDL.Text, IDL.Opt(PaymentSignature)], [Result_17], []),
470
475
  getContentChunk: IDL.Func([AccessGrant, IDL.Nat], [Result_15], ['query']),
471
- getEvmSellerPayout: IDL.Func([IDL.Principal], [Result_17], ['query']),
472
476
  getGenesisNote: IDL.Func([], [GenesisNote], ['query']),
473
477
  getJob: IDL.Func([IDL.Text], [Result_16], ['query']),
474
478
  getJobCounts: IDL.Func([], [JobCounts], ['query']),
@@ -515,16 +519,15 @@ export const idlFactory = ({ IDL }) => {
515
519
  listEndpointPurchases: IDL.Func([IDL.Text, IDL.Nat, IDL.Nat], [Result_8], ['query']),
516
520
  listEndpoints: IDL.Func([IDL.Opt(EndpointStatus), IDL.Nat, IDL.Nat], [Page_3], ['query']),
517
521
  listJobs: IDL.Func([IDL.Text, IDL.Opt(JobStatus), IDL.Nat, IDL.Nat], [Result_7], ['query']),
518
- listMyPendingWithdrawals: IDL.Func([IDL.Nat, IDL.Nat], [Result_6], ['query']),
522
+ listMyParkedPayouts: IDL.Func([IDL.Nat, IDL.Nat], [Result_6], ['query']),
519
523
  listServices: IDL.Func([IDL.Bool, IDL.Nat, IDL.Nat], [Page], ['query']),
520
524
  openSession: IDL.Func([SessionConfig, PaymentSignature], [Result_5], []),
521
525
  previewOpenSession: IDL.Func([], [SessionIntent], ['query']),
522
526
  quotePayment: IDL.Func([IDL.Nat], [Result_4], ['query']),
523
527
  reconcileJob: IDL.Func([IDL.Text], [Result_2], []),
524
528
  reconcileSession: IDL.Func([IDL.Text], [Result_2], []),
525
- recoverContentWithdrawal: IDL.Func([IDL.Nat], [Result], []),
526
529
  recoverEscrow: IDL.Func([IDL.Text, TokenAmount], [Result_3], []),
527
- registerSeller: IDL.Func([IDL.Principal], [Result_1], []),
530
+ registerSeller: IDL.Func([IDL.Principal], [Result], []),
528
531
  registerService: IDL.Func(
529
532
  [
530
533
  IDL.Text,
@@ -541,29 +544,29 @@ export const idlFactory = ({ IDL }) => {
541
544
  [Result_2],
542
545
  [],
543
546
  ),
544
- removeAuditViewer: IDL.Func([IDL.Principal], [Result_1], []),
545
- removeCallerPolicy: IDL.Func([IDL.Principal], [Result_1], []),
546
- resolveDispute: IDL.Func([IDL.Text, IDL.Bool], [Result_1], []),
547
- resolveJob: IDL.Func([IDL.Text, JobStatus], [Result_1], []),
548
- retrySellerPayment: IDL.Func([IDL.Text], [Result_1], []),
549
- setAdmin: IDL.Func([IDL.Principal], [Result_1], []),
550
- setCallerPolicy: IDL.Func([IDL.Principal, SpendingPolicy], [Result_1], []),
551
- setEndpointEnabled: IDL.Func([IDL.Text, IDL.Bool], [Result_1], []),
552
- setEndpointPrice: IDL.Func([IDL.Text, IDL.Nat], [Result_1], []),
553
- setEvmSellerPayout: IDL.Func([IDL.Text], [Result_1], []),
554
- setPaymentPolicy: IDL.Func([SpendingPolicy], [Result_1], []),
555
- setRegistryId: IDL.Func([IDL.Principal], [Result_1], []),
556
- setServiceEnabled: IDL.Func([IDL.Text, IDL.Bool], [Result_1], []),
547
+ removeAuditViewer: IDL.Func([IDL.Principal], [Result], []),
548
+ removeCallerPolicy: IDL.Func([IDL.Principal], [Result], []),
549
+ resolveDispute: IDL.Func([IDL.Text, IDL.Bool], [Result], []),
550
+ resolveJob: IDL.Func([IDL.Text, JobStatus], [Result], []),
551
+ retrySaleNotices: IDL.Func([IDL.Principal], [Result_1], []),
552
+ retrySalePayout: IDL.Func([IDL.Nat], [Result_1], []),
553
+ retrySellerPayment: IDL.Func([IDL.Text], [Result], []),
554
+ setAdmin: IDL.Func([IDL.Principal], [Result], []),
555
+ setCallerPolicy: IDL.Func([IDL.Principal, SpendingPolicy], [Result], []),
556
+ setEndpointEnabled: IDL.Func([IDL.Text, IDL.Bool], [Result], []),
557
+ setEndpointPrice: IDL.Func([IDL.Text, IDL.Nat], [Result], []),
558
+ setPaymentPolicy: IDL.Func([SpendingPolicy], [Result], []),
559
+ setRegistryId: IDL.Func([IDL.Principal], [Result], []),
560
+ setServiceEnabled: IDL.Func([IDL.Text, IDL.Bool], [Result], []),
557
561
  submitJobResult: IDL.Func(
558
562
  [IDL.Text, IDL.Vec(IDL.Nat8), IDL.Opt(IDL.Vec(IDL.Nat8)), IDL.Opt(IDL.Nat)],
559
- [Result_1],
563
+ [Result],
560
564
  [],
561
565
  ),
562
- uploadContent: IDL.Func([IDL.Text, IDL.Text, IDL.Vec(IDL.Nat8)], [Result_1], []),
563
- uploadContentChunk: IDL.Func([IDL.Text, IDL.Nat, IDL.Vec(IDL.Nat8)], [Result_1], []),
564
- uploadContentInit: IDL.Func([IDL.Text, IDL.Text, IDL.Nat, IDL.Nat], [Result_1], []),
565
- verifyGrant: IDL.Func([AccessGrant], [Result_1], ['query']),
566
- withdrawContentRevenue: IDL.Func([], [Result], []),
566
+ uploadContent: IDL.Func([IDL.Text, IDL.Text, IDL.Vec(IDL.Nat8)], [Result], []),
567
+ uploadContentChunk: IDL.Func([IDL.Text, IDL.Nat, IDL.Vec(IDL.Nat8)], [Result], []),
568
+ uploadContentInit: IDL.Func([IDL.Text, IDL.Text, IDL.Nat, IDL.Nat], [Result], []),
569
+ verifyGrant: IDL.Func([AccessGrant], [Result], ['query']),
567
570
  });
568
571
  };
569
572
  export const init = ({ IDL }) => {