@engramx/idl 0.16.0-rc.8 → 0.16.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.
@@ -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,
@@ -127,8 +127,7 @@ export const idlFactory = ({ IDL }) => {
127
127
  PaymentRequired: IDL.Vec(PaymentRequirement),
128
128
  });
129
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 });
130
+ const Result_15 = IDL.Variant({ Ok: IDL.Vec(IDL.Nat8), Err: Error });
132
131
  const GenesisNote = IDL.Record({
133
132
  predecessorSize: IDL.Opt(IDL.Nat),
134
133
  predecessorHeadHash: IDL.Opt(IDL.Vec(IDL.Nat8)),
@@ -179,7 +178,7 @@ export const idlFactory = ({ IDL }) => {
179
178
  amount: IDL.Nat,
180
179
  params: IDL.Vec(IDL.Nat8),
181
180
  });
182
- const Result_15 = IDL.Variant({ Ok: Job, Err: Error });
181
+ const Result_16 = IDL.Variant({ Ok: Job, Err: Error });
183
182
  const JobCounts = IDL.Record({
184
183
  total: IDL.Nat,
185
184
  active: IDL.Nat,
@@ -189,7 +188,7 @@ export const idlFactory = ({ IDL }) => {
189
188
  settling: IDL.Nat,
190
189
  parked: IDL.Nat,
191
190
  });
192
- const Result_13 = IDL.Variant({ Ok: JobStatus, Err: Error });
191
+ const Result_14 = IDL.Variant({ Ok: JobStatus, Err: Error });
193
192
  const SpendingPolicy = IDL.Record({
194
193
  maxSessionDeposit: IDL.Opt(IDL.Nat),
195
194
  blockedCallers: IDL.Opt(IDL.Vec(IDL.Principal)),
@@ -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,20 +210,24 @@ 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
- const Result_12 = IDL.Variant({ Ok: RevenueSummary, Err: Error });
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
- const Result_11 = IDL.Variant({ Ok: SellerStatus, Err: Error });
230
+ const Result_12 = IDL.Variant({ Ok: SellerStatus, Err: Error });
229
231
  const SessionCounts = IDL.Record({
230
232
  closed: IDL.Nat,
231
233
  total: IDL.Nat,
@@ -246,6 +248,11 @@ export const idlFactory = ({ IDL }) => {
246
248
  upgrade: IDL.Opt(IDL.Bool),
247
249
  status_code: IDL.Nat16,
248
250
  });
251
+ const SealedEntry = IDL.Record({
252
+ id: IDL.Nat,
253
+ entryHash: IDL.Vec(IDL.Nat8),
254
+ digest: IDL.Vec(IDL.Nat8),
255
+ });
249
256
  const Role = IDL.Variant({
250
257
  Anonymous: IDL.Null,
251
258
  Viewer: IDL.Null,
@@ -270,12 +277,14 @@ export const idlFactory = ({ IDL }) => {
270
277
  success: IDL.Bool,
271
278
  timestampNs: IDL.Int,
272
279
  });
273
- const Page_5 = IDL.Record({
280
+ const RecordPage = IDL.Record({
281
+ ringFloor: IDL.Nat,
274
282
  total: IDL.Nat,
275
- withheld: IDL.Nat,
283
+ sealed: IDL.Vec(SealedEntry),
276
284
  items: IDL.Vec(AuditEntry),
285
+ hashFirstFrom: IDL.Nat,
277
286
  });
278
- const Result_9 = IDL.Variant({ Ok: Page_5, Err: Error });
287
+ const Result_11 = IDL.Variant({ Ok: RecordPage, Err: Error });
279
288
  const Page_7 = IDL.Record({
280
289
  total: IDL.Nat,
281
290
  withheld: IDL.Nat,
@@ -294,6 +303,12 @@ export const idlFactory = ({ IDL }) => {
294
303
  withheld: IDL.Nat,
295
304
  items: IDL.Vec(ContentEntry),
296
305
  });
306
+ const Page_5 = IDL.Record({
307
+ total: IDL.Nat,
308
+ withheld: IDL.Nat,
309
+ items: IDL.Vec(AuditEntry),
310
+ });
311
+ const Result_9 = IDL.Variant({ Ok: Page_5, Err: Error });
297
312
  const Payer = IDL.Variant({ Evm: IDL.Text, Icp: IDL.Principal });
298
313
  const PurchaseRecord = IDL.Record({
299
314
  id: IDL.Text,
@@ -322,18 +337,21 @@ export const idlFactory = ({ IDL }) => {
322
337
  items: IDL.Vec(Job),
323
338
  });
324
339
  const Result_7 = IDL.Variant({ Ok: Page_2, Err: Error });
325
- const PendingWithdrawal = IDL.Record({
340
+ const PendingPayout = IDL.Record({
326
341
  id: IDL.Nat,
327
342
  parkedAtNs: IDL.Int,
328
343
  createdAtTimeNs: IDL.Nat64,
329
- seller: IDL.Principal,
330
- amountE6s: IDL.Nat,
331
- 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,
332
350
  });
333
351
  const Page_1 = IDL.Record({
334
352
  total: IDL.Nat,
335
353
  withheld: IDL.Nat,
336
- items: IDL.Vec(PendingWithdrawal),
354
+ items: IDL.Vec(PendingPayout),
337
355
  });
338
356
  const Result_6 = IDL.Variant({ Ok: Page_1, Err: Error });
339
357
  const ServiceType = IDL.Variant({ Sync: IDL.Null, Async: IDL.Null });
@@ -425,7 +443,6 @@ export const idlFactory = ({ IDL }) => {
425
443
  });
426
444
  const Result_4 = IDL.Variant({ Ok: PaymentQuote, Err: Error });
427
445
  const Result_2 = IDL.Variant({ Ok: IDL.Text, Err: Error });
428
- const Result = IDL.Variant({ Ok: IDL.Nat, Err: Error });
429
446
  const TokenAmount = IDL.Variant({
430
447
  Icp: IDL.Nat,
431
448
  Ckusdc: IDL.Nat,
@@ -436,34 +453,34 @@ export const idlFactory = ({ IDL }) => {
436
453
  amount: TokenAmount,
437
454
  });
438
455
  const Result_3 = IDL.Variant({ Ok: EscrowRecovery, Err: Error });
456
+ const Result_1 = IDL.Variant({ Ok: IDL.Nat, Err: Error });
439
457
  return IDL.Service({
440
- addAuditViewer: IDL.Func([IDL.Principal], [Result_1], []),
441
- anchorNow: IDL.Func([], [Result_1], []),
442
- claimJob: IDL.Func([IDL.Text], [Result_1], []),
443
- confirmJob: IDL.Func([IDL.Text, IDL.Opt(IDL.Vec(IDL.Nat8))], [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], []),
444
462
  createEndpoint: IDL.Func([IDL.Text, IDL.Text, IDL.Text, IDL.Nat], [Result_19], []),
445
463
  createJob: IDL.Func([IDL.Text, IDL.Vec(IDL.Nat8), IDL.Opt(PaymentSignature)], [Result_18], []),
446
- deleteContent: IDL.Func([IDL.Text], [Result_1], []),
447
- deleteEndpoint: IDL.Func([IDL.Text], [Result_1], []),
448
- disputeJob: IDL.Func([IDL.Text, IDL.Text, IDL.Opt(IDL.Vec(IDL.Nat8))], [Result_1], []),
449
- endSession: IDL.Func([IDL.Text], [Result_1], []),
450
- forceCloseSession: IDL.Func([IDL.Text], [Result_1], []),
451
- forceResolveSession: IDL.Func([IDL.Text], [Result_1], []),
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], []),
452
470
  getAdminRoles: IDL.Func([], [AdminRoles], ['query']),
453
471
  getAuditHead: IDL.Func([], [AuditHead], ['query']),
454
472
  getBuyerActionMessage: IDL.Func([IDL.Text, IDL.Text], [IDL.Text], ['query']),
455
473
  getCertifiedAuditHead: IDL.Func([], [CertifiedAuditHead], ['query']),
456
474
  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']),
475
+ getContentChunk: IDL.Func([AccessGrant, IDL.Nat], [Result_15], ['query']),
459
476
  getGenesisNote: IDL.Func([], [GenesisNote], ['query']),
460
- getJob: IDL.Func([IDL.Text], [Result_15], ['query']),
477
+ getJob: IDL.Func([IDL.Text], [Result_16], ['query']),
461
478
  getJobCounts: IDL.Func([], [JobCounts], ['query']),
462
- getJobResult: IDL.Func([IDL.Text], [Result_14], ['query']),
463
- getJobStatus: IDL.Func([IDL.Text], [Result_13], ['query']),
479
+ getJobResult: IDL.Func([IDL.Text], [Result_15], ['query']),
480
+ getJobStatus: IDL.Func([IDL.Text], [Result_14], ['query']),
464
481
  getPaymentPolicy: IDL.Func([], [SpendingPolicy], ['query']),
465
- getRevenueSummary: IDL.Func([], [Result_12], ['query']),
466
- getSellerStatus: IDL.Func([IDL.Principal], [Result_11], ['query']),
482
+ getRevenueSummary: IDL.Func([], [Result_13], ['query']),
483
+ getSellerStatus: IDL.Func([IDL.Principal], [Result_12], ['query']),
467
484
  getSessionCounts: IDL.Func([], [SessionCounts], ['query']),
468
485
  http_request: IDL.Func([HttpRequest], [HttpResponse], ['query']),
469
486
  http_request_update: IDL.Func([HttpRequest], [HttpResponse], []),
@@ -495,23 +512,22 @@ export const idlFactory = ({ IDL }) => {
495
512
  ['query'],
496
513
  ),
497
514
  isTradeFrozen: IDL.Func([], [IDL.Bool], ['query']),
498
- listAuditEntries: IDL.Func([IDL.Nat, IDL.Nat], [Result_9], ['query']),
515
+ listAuditEntries: IDL.Func([IDL.Nat, IDL.Nat], [Result_11], ['query']),
499
516
  listAuditViewers: IDL.Func([], [Result_10], ['query']),
500
517
  listContent: IDL.Func([IDL.Nat, IDL.Nat], [Page_6], ['query']),
501
518
  listDenialEntries: IDL.Func([IDL.Nat, IDL.Nat], [Result_9], ['query']),
502
519
  listEndpointPurchases: IDL.Func([IDL.Text, IDL.Nat, IDL.Nat], [Result_8], ['query']),
503
520
  listEndpoints: IDL.Func([IDL.Opt(EndpointStatus), IDL.Nat, IDL.Nat], [Page_3], ['query']),
504
521
  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']),
522
+ listMyParkedPayouts: IDL.Func([IDL.Nat, IDL.Nat], [Result_6], ['query']),
506
523
  listServices: IDL.Func([IDL.Bool, IDL.Nat, IDL.Nat], [Page], ['query']),
507
524
  openSession: IDL.Func([SessionConfig, PaymentSignature], [Result_5], []),
508
525
  previewOpenSession: IDL.Func([], [SessionIntent], ['query']),
509
526
  quotePayment: IDL.Func([IDL.Nat], [Result_4], ['query']),
510
527
  reconcileJob: IDL.Func([IDL.Text], [Result_2], []),
511
528
  reconcileSession: IDL.Func([IDL.Text], [Result_2], []),
512
- recoverContentWithdrawal: IDL.Func([IDL.Nat], [Result], []),
513
529
  recoverEscrow: IDL.Func([IDL.Text, TokenAmount], [Result_3], []),
514
- registerSeller: IDL.Func([IDL.Principal], [Result_1], []),
530
+ registerSeller: IDL.Func([IDL.Principal], [Result], []),
515
531
  registerService: IDL.Func(
516
532
  [
517
533
  IDL.Text,
@@ -528,29 +544,29 @@ export const idlFactory = ({ IDL }) => {
528
544
  [Result_2],
529
545
  [],
530
546
  ),
531
- removeAuditViewer: IDL.Func([IDL.Principal], [Result_1], []),
532
- removeCallerPolicy: IDL.Func([IDL.Principal], [Result_1], []),
533
- resolveDispute: IDL.Func([IDL.Text, IDL.Bool], [Result_1], []),
534
- resolveJob: IDL.Func([IDL.Text, JobStatus], [Result_1], []),
535
- retrySellerPayment: IDL.Func([IDL.Text], [Result_1], []),
536
- setAdmin: IDL.Func([IDL.Principal], [Result_1], []),
537
- setCallerPolicy: IDL.Func([IDL.Principal, SpendingPolicy], [Result_1], []),
538
- setEndpointEnabled: IDL.Func([IDL.Text, IDL.Bool], [Result_1], []),
539
- setEndpointPrice: IDL.Func([IDL.Text, IDL.Nat], [Result_1], []),
540
- setEvmSellerPayout: IDL.Func([IDL.Text], [Result_1], []),
541
- setPaymentPolicy: IDL.Func([SpendingPolicy], [Result_1], []),
542
- setRegistryId: IDL.Func([IDL.Principal], [Result_1], []),
543
- 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], []),
544
561
  submitJobResult: IDL.Func(
545
562
  [IDL.Text, IDL.Vec(IDL.Nat8), IDL.Opt(IDL.Vec(IDL.Nat8)), IDL.Opt(IDL.Nat)],
546
- [Result_1],
563
+ [Result],
547
564
  [],
548
565
  ),
549
- uploadContent: IDL.Func([IDL.Text, IDL.Text, IDL.Vec(IDL.Nat8)], [Result_1], []),
550
- uploadContentChunk: IDL.Func([IDL.Text, IDL.Nat, IDL.Vec(IDL.Nat8)], [Result_1], []),
551
- uploadContentInit: IDL.Func([IDL.Text, IDL.Text, IDL.Nat, IDL.Nat], [Result_1], []),
552
- verifyGrant: IDL.Func([AccessGrant], [Result_1], ['query']),
553
- 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']),
554
570
  });
555
571
  };
556
572
  export const init = ({ IDL }) => {