@fairmint/canton-node-sdk 0.0.252 → 0.0.253

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.
Files changed (47) hide show
  1. package/build/src/clients/ledger-json-api/operations/v2/commands/async/submit.d.ts +6 -0
  2. package/build/src/clients/ledger-json-api/operations/v2/commands/async/submit.d.ts.map +1 -1
  3. package/build/src/clients/ledger-json-api/operations/v2/commands/submit-and-wait-for-reassignment.d.ts +14 -3
  4. package/build/src/clients/ledger-json-api/operations/v2/commands/submit-and-wait-for-reassignment.d.ts.map +1 -1
  5. package/build/src/clients/ledger-json-api/operations/v2/commands/submit-and-wait-for-transaction-tree.d.ts +34 -28
  6. package/build/src/clients/ledger-json-api/operations/v2/commands/submit-and-wait-for-transaction-tree.d.ts.map +1 -1
  7. package/build/src/clients/ledger-json-api/operations/v2/commands/submit-and-wait-for-transaction.d.ts +6 -0
  8. package/build/src/clients/ledger-json-api/operations/v2/commands/submit-and-wait-for-transaction.d.ts.map +1 -1
  9. package/build/src/clients/ledger-json-api/operations/v2/commands/submit-and-wait.d.ts +58 -52
  10. package/build/src/clients/ledger-json-api/operations/v2/commands/submit-and-wait.d.ts.map +1 -1
  11. package/build/src/clients/ledger-json-api/operations/v2/updates/subscribe-to-updates.d.ts +268 -473
  12. package/build/src/clients/ledger-json-api/operations/v2/updates/subscribe-to-updates.d.ts.map +1 -1
  13. package/build/src/clients/ledger-json-api/operations/v2/updates/subscribe-to-updates.js +26 -6
  14. package/build/src/clients/ledger-json-api/operations/v2/updates/subscribe-to-updates.js.map +1 -1
  15. package/build/src/clients/ledger-json-api/schemas/api/completions.d.ts +75 -21
  16. package/build/src/clients/ledger-json-api/schemas/api/completions.d.ts.map +1 -1
  17. package/build/src/clients/ledger-json-api/schemas/api/completions.js +9 -4
  18. package/build/src/clients/ledger-json-api/schemas/api/completions.js.map +1 -1
  19. package/build/src/clients/ledger-json-api/schemas/api/event-details.d.ts +83 -8
  20. package/build/src/clients/ledger-json-api/schemas/api/event-details.d.ts.map +1 -1
  21. package/build/src/clients/ledger-json-api/schemas/api/event-details.js +65 -12
  22. package/build/src/clients/ledger-json-api/schemas/api/event-details.js.map +1 -1
  23. package/build/src/clients/ledger-json-api/schemas/api/reassignment.d.ts +86 -34
  24. package/build/src/clients/ledger-json-api/schemas/api/reassignment.d.ts.map +1 -1
  25. package/build/src/clients/ledger-json-api/schemas/api/reassignment.js +14 -3
  26. package/build/src/clients/ledger-json-api/schemas/api/reassignment.js.map +1 -1
  27. package/build/src/clients/ledger-json-api/schemas/api/state.d.ts +65 -41
  28. package/build/src/clients/ledger-json-api/schemas/api/state.d.ts.map +1 -1
  29. package/build/src/clients/ledger-json-api/schemas/api/updates.d.ts +2341 -1414
  30. package/build/src/clients/ledger-json-api/schemas/api/updates.d.ts.map +1 -1
  31. package/build/src/clients/ledger-json-api/schemas/api/updates.js +86 -42
  32. package/build/src/clients/ledger-json-api/schemas/api/updates.js.map +1 -1
  33. package/build/src/clients/ledger-json-api/schemas/common.d.ts +13 -6
  34. package/build/src/clients/ledger-json-api/schemas/common.d.ts.map +1 -1
  35. package/build/src/clients/ledger-json-api/schemas/common.js +16 -6
  36. package/build/src/clients/ledger-json-api/schemas/common.js.map +1 -1
  37. package/build/src/clients/ledger-json-api/schemas/operations/commands.d.ts +28 -20
  38. package/build/src/clients/ledger-json-api/schemas/operations/commands.d.ts.map +1 -1
  39. package/build/src/clients/ledger-json-api/schemas/wire.d.ts +23 -2
  40. package/build/src/clients/ledger-json-api/schemas/wire.d.ts.map +1 -1
  41. package/build/src/clients/ledger-json-api/schemas/wire.js +23 -3
  42. package/build/src/clients/ledger-json-api/schemas/wire.js.map +1 -1
  43. package/build/src/utils/traffic/paid-traffic-cost.d.ts +2 -2
  44. package/build/src/utils/traffic/paid-traffic-cost.d.ts.map +1 -1
  45. package/build/src/utils/traffic/paid-traffic-cost.js +2 -5
  46. package/build/src/utils/traffic/paid-traffic-cost.js.map +1 -1
  47. package/package.json +1 -1
@@ -143,7 +143,8 @@ export declare const JsAssignmentEventSchema: z.ZodObject<{
143
143
  nodeId: z.ZodNumber;
144
144
  contractId: z.ZodString;
145
145
  templateId: z.ZodString;
146
- contractKey: z.ZodNullable<z.ZodString>;
146
+ contractKey: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodType<import("..").LedgerJsonValue, unknown, z.core.$ZodTypeInternals<import("..").LedgerJsonValue, unknown>>, z.ZodNull]>, z.ZodTransform<import("..").LedgerJsonValue | undefined, import("..").LedgerJsonValue>>>;
147
+ contractKeyHash: z.ZodOptional<z.ZodString>;
147
148
  createArgument: z.ZodRecord<z.ZodString, z.ZodType<string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
148
149
  [key: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
149
150
  } | null)[] | {
@@ -193,7 +194,7 @@ export declare const JsAssignmentEventSchema: z.ZodObject<{
193
194
  } | null)[] | {
194
195
  [key: string]: string | number | boolean | any | any | null;
195
196
  } | null, unknown>>>;
196
- createdEventBlob: z.ZodString;
197
+ createdEventBlob: z.ZodOptional<z.ZodString>;
197
198
  interfaceViews: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
198
199
  interfaceId: z.ZodString;
199
200
  implementationPackageId: z.ZodOptional<z.ZodString>;
@@ -206,11 +207,13 @@ export declare const JsAssignmentEventSchema: z.ZodObject<{
206
207
  }, z.core.$strict>>>>;
207
208
  witnessParties: z.ZodArray<z.ZodString>;
208
209
  signatories: z.ZodArray<z.ZodString>;
209
- observers: z.ZodArray<z.ZodString>;
210
+ observers: z.ZodOptional<z.ZodArray<z.ZodString>>;
210
211
  createdAt: z.ZodString;
211
212
  packageName: z.ZodString;
213
+ representativePackageId: z.ZodOptional<z.ZodString>;
214
+ acsDelta: z.ZodOptional<z.ZodBoolean>;
212
215
  implementedInterfaces: z.ZodOptional<z.ZodArray<z.ZodString>>;
213
- }, z.core.$strip>;
216
+ }, z.core.$loose>;
214
217
  }, z.core.$strip>;
215
218
  /** Unassigned event details. */
216
219
  export declare const JsUnassignedEventSchema: z.ZodObject<{
@@ -225,7 +228,7 @@ export declare const JsUnassignedEventSchema: z.ZodObject<{
225
228
  submitter: z.ZodString;
226
229
  reassignmentCounter: z.ZodNumber;
227
230
  packageName: z.ZodString;
228
- }, z.core.$strip>;
231
+ }, z.core.$loose>;
229
232
  }, z.core.$strip>;
230
233
  /** Reassignment event (oneOf assignment or unassigned). */
231
234
  export declare const JsReassignmentEventSchema: z.ZodUnion<readonly [z.ZodObject<{
@@ -240,7 +243,8 @@ export declare const JsReassignmentEventSchema: z.ZodUnion<readonly [z.ZodObject
240
243
  nodeId: z.ZodNumber;
241
244
  contractId: z.ZodString;
242
245
  templateId: z.ZodString;
243
- contractKey: z.ZodNullable<z.ZodString>;
246
+ contractKey: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodType<import("..").LedgerJsonValue, unknown, z.core.$ZodTypeInternals<import("..").LedgerJsonValue, unknown>>, z.ZodNull]>, z.ZodTransform<import("..").LedgerJsonValue | undefined, import("..").LedgerJsonValue>>>;
247
+ contractKeyHash: z.ZodOptional<z.ZodString>;
244
248
  createArgument: z.ZodRecord<z.ZodString, z.ZodType<string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
245
249
  [key: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
246
250
  } | null)[] | {
@@ -290,7 +294,7 @@ export declare const JsReassignmentEventSchema: z.ZodUnion<readonly [z.ZodObject
290
294
  } | null)[] | {
291
295
  [key: string]: string | number | boolean | any | any | null;
292
296
  } | null, unknown>>>;
293
- createdEventBlob: z.ZodString;
297
+ createdEventBlob: z.ZodOptional<z.ZodString>;
294
298
  interfaceViews: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
295
299
  interfaceId: z.ZodString;
296
300
  implementationPackageId: z.ZodOptional<z.ZodString>;
@@ -303,11 +307,13 @@ export declare const JsReassignmentEventSchema: z.ZodUnion<readonly [z.ZodObject
303
307
  }, z.core.$strict>>>>;
304
308
  witnessParties: z.ZodArray<z.ZodString>;
305
309
  signatories: z.ZodArray<z.ZodString>;
306
- observers: z.ZodArray<z.ZodString>;
310
+ observers: z.ZodOptional<z.ZodArray<z.ZodString>>;
307
311
  createdAt: z.ZodString;
308
312
  packageName: z.ZodString;
313
+ representativePackageId: z.ZodOptional<z.ZodString>;
314
+ acsDelta: z.ZodOptional<z.ZodBoolean>;
309
315
  implementedInterfaces: z.ZodOptional<z.ZodArray<z.ZodString>>;
310
- }, z.core.$strip>;
316
+ }, z.core.$loose>;
311
317
  }, z.core.$strip>;
312
318
  }, z.core.$strip>, z.ZodObject<{
313
319
  JsUnassignedEvent: z.ZodObject<{
@@ -322,7 +328,7 @@ export declare const JsReassignmentEventSchema: z.ZodUnion<readonly [z.ZodObject
322
328
  submitter: z.ZodString;
323
329
  reassignmentCounter: z.ZodNumber;
324
330
  packageName: z.ZodString;
325
- }, z.core.$strip>;
331
+ }, z.core.$loose>;
326
332
  }, z.core.$strip>;
327
333
  }, z.core.$strip>]>;
328
334
  /** Complete reassignment view. */
@@ -343,7 +349,8 @@ export declare const JsReassignmentSchema: z.ZodObject<{
343
349
  nodeId: z.ZodNumber;
344
350
  contractId: z.ZodString;
345
351
  templateId: z.ZodString;
346
- contractKey: z.ZodNullable<z.ZodString>;
352
+ contractKey: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodType<import("..").LedgerJsonValue, unknown, z.core.$ZodTypeInternals<import("..").LedgerJsonValue, unknown>>, z.ZodNull]>, z.ZodTransform<import("..").LedgerJsonValue | undefined, import("..").LedgerJsonValue>>>;
353
+ contractKeyHash: z.ZodOptional<z.ZodString>;
347
354
  createArgument: z.ZodRecord<z.ZodString, z.ZodType<string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
348
355
  [key: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
349
356
  } | null)[] | {
@@ -393,7 +400,7 @@ export declare const JsReassignmentSchema: z.ZodObject<{
393
400
  } | null)[] | {
394
401
  [key: string]: string | number | boolean | any | any | null;
395
402
  } | null, unknown>>>;
396
- createdEventBlob: z.ZodString;
403
+ createdEventBlob: z.ZodOptional<z.ZodString>;
397
404
  interfaceViews: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
398
405
  interfaceId: z.ZodString;
399
406
  implementationPackageId: z.ZodOptional<z.ZodString>;
@@ -406,11 +413,13 @@ export declare const JsReassignmentSchema: z.ZodObject<{
406
413
  }, z.core.$strict>>>>;
407
414
  witnessParties: z.ZodArray<z.ZodString>;
408
415
  signatories: z.ZodArray<z.ZodString>;
409
- observers: z.ZodArray<z.ZodString>;
416
+ observers: z.ZodOptional<z.ZodArray<z.ZodString>>;
410
417
  createdAt: z.ZodString;
411
418
  packageName: z.ZodString;
419
+ representativePackageId: z.ZodOptional<z.ZodString>;
420
+ acsDelta: z.ZodOptional<z.ZodBoolean>;
412
421
  implementedInterfaces: z.ZodOptional<z.ZodArray<z.ZodString>>;
413
- }, z.core.$strip>;
422
+ }, z.core.$loose>;
414
423
  }, z.core.$strip>;
415
424
  }, z.core.$strip>, z.ZodObject<{
416
425
  JsUnassignedEvent: z.ZodObject<{
@@ -425,17 +434,37 @@ export declare const JsReassignmentSchema: z.ZodObject<{
425
434
  submitter: z.ZodString;
426
435
  reassignmentCounter: z.ZodNumber;
427
436
  packageName: z.ZodString;
428
- }, z.core.$strip>;
437
+ }, z.core.$loose>;
429
438
  }, z.core.$strip>;
430
439
  }, z.core.$strip>]>>;
431
- traceContext: z.ZodOptional<z.ZodObject<{
432
- traceId: z.ZodOptional<z.ZodString>;
433
- spanId: z.ZodOptional<z.ZodString>;
434
- parentSpanId: z.ZodOptional<z.ZodString>;
435
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
436
- }, z.core.$strip>>;
440
+ traceContext: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodObject<{
441
+ traceparent: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>, z.ZodTransform<string | undefined, string | null>>>;
442
+ tracestate: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>, z.ZodTransform<string | undefined, string | null>>>;
443
+ traceId: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>, z.ZodTransform<string | undefined, string | null>>>;
444
+ spanId: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>, z.ZodTransform<string | undefined, string | null>>>;
445
+ parentSpanId: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>, z.ZodTransform<string | undefined, string | null>>>;
446
+ metadata: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodString>, z.ZodNull]>, z.ZodTransform<Record<string, string> | undefined, Record<string, string> | null>>>;
447
+ }, z.core.$loose>, z.ZodNull]>, z.ZodTransform<{
448
+ [x: string]: unknown;
449
+ traceparent?: string | undefined;
450
+ tracestate?: string | undefined;
451
+ traceId?: string | undefined;
452
+ spanId?: string | undefined;
453
+ parentSpanId?: string | undefined;
454
+ metadata?: Record<string, string> | undefined;
455
+ } | undefined, {
456
+ [x: string]: unknown;
457
+ traceparent?: string | undefined;
458
+ tracestate?: string | undefined;
459
+ traceId?: string | undefined;
460
+ spanId?: string | undefined;
461
+ parentSpanId?: string | undefined;
462
+ metadata?: Record<string, string> | undefined;
463
+ } | null>>>;
437
464
  recordTime: z.ZodString;
438
- }, z.core.$strip>;
465
+ synchronizerId: z.ZodString;
466
+ paidTrafficCost: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<string, string | number>>, z.ZodNull]>, z.ZodTransform<string | undefined, string | null>>>;
467
+ }, z.core.$loose>;
439
468
  /** Submit and wait for reassignment response. */
440
469
  export declare const JsSubmitAndWaitForReassignmentResponseSchema: z.ZodObject<{
441
470
  reassignment: z.ZodObject<{
@@ -455,7 +484,8 @@ export declare const JsSubmitAndWaitForReassignmentResponseSchema: z.ZodObject<{
455
484
  nodeId: z.ZodNumber;
456
485
  contractId: z.ZodString;
457
486
  templateId: z.ZodString;
458
- contractKey: z.ZodNullable<z.ZodString>;
487
+ contractKey: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodType<import("..").LedgerJsonValue, unknown, z.core.$ZodTypeInternals<import("..").LedgerJsonValue, unknown>>, z.ZodNull]>, z.ZodTransform<import("..").LedgerJsonValue | undefined, import("..").LedgerJsonValue>>>;
488
+ contractKeyHash: z.ZodOptional<z.ZodString>;
459
489
  createArgument: z.ZodRecord<z.ZodString, z.ZodType<string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
460
490
  [key: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
461
491
  } | null)[] | {
@@ -505,7 +535,7 @@ export declare const JsSubmitAndWaitForReassignmentResponseSchema: z.ZodObject<{
505
535
  } | null)[] | {
506
536
  [key: string]: string | number | boolean | any | any | null;
507
537
  } | null, unknown>>>;
508
- createdEventBlob: z.ZodString;
538
+ createdEventBlob: z.ZodOptional<z.ZodString>;
509
539
  interfaceViews: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
510
540
  interfaceId: z.ZodString;
511
541
  implementationPackageId: z.ZodOptional<z.ZodString>;
@@ -518,11 +548,13 @@ export declare const JsSubmitAndWaitForReassignmentResponseSchema: z.ZodObject<{
518
548
  }, z.core.$strict>>>>;
519
549
  witnessParties: z.ZodArray<z.ZodString>;
520
550
  signatories: z.ZodArray<z.ZodString>;
521
- observers: z.ZodArray<z.ZodString>;
551
+ observers: z.ZodOptional<z.ZodArray<z.ZodString>>;
522
552
  createdAt: z.ZodString;
523
553
  packageName: z.ZodString;
554
+ representativePackageId: z.ZodOptional<z.ZodString>;
555
+ acsDelta: z.ZodOptional<z.ZodBoolean>;
524
556
  implementedInterfaces: z.ZodOptional<z.ZodArray<z.ZodString>>;
525
- }, z.core.$strip>;
557
+ }, z.core.$loose>;
526
558
  }, z.core.$strip>;
527
559
  }, z.core.$strip>, z.ZodObject<{
528
560
  JsUnassignedEvent: z.ZodObject<{
@@ -537,17 +569,37 @@ export declare const JsSubmitAndWaitForReassignmentResponseSchema: z.ZodObject<{
537
569
  submitter: z.ZodString;
538
570
  reassignmentCounter: z.ZodNumber;
539
571
  packageName: z.ZodString;
540
- }, z.core.$strip>;
572
+ }, z.core.$loose>;
541
573
  }, z.core.$strip>;
542
574
  }, z.core.$strip>]>>;
543
- traceContext: z.ZodOptional<z.ZodObject<{
544
- traceId: z.ZodOptional<z.ZodString>;
545
- spanId: z.ZodOptional<z.ZodString>;
546
- parentSpanId: z.ZodOptional<z.ZodString>;
547
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
548
- }, z.core.$strip>>;
575
+ traceContext: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodObject<{
576
+ traceparent: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>, z.ZodTransform<string | undefined, string | null>>>;
577
+ tracestate: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>, z.ZodTransform<string | undefined, string | null>>>;
578
+ traceId: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>, z.ZodTransform<string | undefined, string | null>>>;
579
+ spanId: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>, z.ZodTransform<string | undefined, string | null>>>;
580
+ parentSpanId: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>, z.ZodTransform<string | undefined, string | null>>>;
581
+ metadata: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodString>, z.ZodNull]>, z.ZodTransform<Record<string, string> | undefined, Record<string, string> | null>>>;
582
+ }, z.core.$loose>, z.ZodNull]>, z.ZodTransform<{
583
+ [x: string]: unknown;
584
+ traceparent?: string | undefined;
585
+ tracestate?: string | undefined;
586
+ traceId?: string | undefined;
587
+ spanId?: string | undefined;
588
+ parentSpanId?: string | undefined;
589
+ metadata?: Record<string, string> | undefined;
590
+ } | undefined, {
591
+ [x: string]: unknown;
592
+ traceparent?: string | undefined;
593
+ tracestate?: string | undefined;
594
+ traceId?: string | undefined;
595
+ spanId?: string | undefined;
596
+ parentSpanId?: string | undefined;
597
+ metadata?: Record<string, string> | undefined;
598
+ } | null>>>;
549
599
  recordTime: z.ZodString;
550
- }, z.core.$strip>;
600
+ synchronizerId: z.ZodString;
601
+ paidTrafficCost: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodTransform<string, string | number>>, z.ZodNull]>, z.ZodTransform<string | undefined, string | null>>>;
602
+ }, z.core.$loose>;
551
603
  }, z.core.$strip>;
552
604
  export type ReassignmentCommand = z.infer<typeof ReassignmentCommandSchema>;
553
605
  export type ReassignmentCommands = z.infer<typeof ReassignmentCommandsSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"reassignment.d.ts","sourceRoot":"","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AAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AACxF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC;AAC1F,MAAM,MAAM,mCAAmC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yCAAyC,CAAC,CAAC;AAC5G,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,MAAM,MAAM,sCAAsC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4CAA4C,CAAC,CAAC"}
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.JsSubmitAndWaitForReassignmentResponseSchema = exports.JsReassignmentSchema = exports.JsReassignmentEventSchema = exports.JsUnassignedEventSchema = exports.JsAssignmentEventSchema = exports.SubmitAndWaitForReassignmentRequestSchema = exports.SubmitReassignmentResponseSchema = exports.SubmitReassignmentRequestSchema = exports.ReassignmentCommandsSchema = exports.ReassignmentCommandSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const common_1 = require("../common");
6
+ const wire_1 = require("../wire");
6
7
  const commands_1 = require("./commands");
7
8
  const event_details_1 = require("./event-details");
8
9
  const events_1 = require("./events");
@@ -66,7 +67,7 @@ exports.JsReassignmentEventSchema = zod_1.z.union([
66
67
  zod_1.z.object({ JsUnassignedEvent: exports.JsUnassignedEventSchema }),
67
68
  ]);
68
69
  /** Complete reassignment view. */
69
- exports.JsReassignmentSchema = zod_1.z.object({
70
+ exports.JsReassignmentSchema = zod_1.z.looseObject({
70
71
  /** Unique update ID for the reassignment. */
71
72
  updateId: zod_1.z.string(),
72
73
  /** Command ID that resulted in this reassignment (optional). */
@@ -77,10 +78,20 @@ exports.JsReassignmentSchema = zod_1.z.object({
77
78
  offset: zod_1.z.number(),
78
79
  /** Collection of reassignment events. */
79
80
  events: zod_1.z.array(exports.JsReassignmentEventSchema),
80
- /** Trace context (optional). */
81
- traceContext: common_1.TraceContextSchema.optional(),
81
+ /**
82
+ * Trace context (optional). Wire often sends JSON `null` for Scala `Option.None`; outputs normalize to
83
+ * `undefined` so consumers see optional, not nullable.
84
+ */
85
+ traceContext: (0, wire_1.ledgerNullableOptionalResponseField)(common_1.TraceContextSchema),
82
86
  /** Record time of the reassignment. */
83
87
  recordTime: zod_1.z.string(),
88
+ /** Synchronizer that synchronized this reassignment. */
89
+ synchronizerId: zod_1.z.string(),
90
+ /**
91
+ * Traffic cost paid by this participant for the (un)assignment request (`Option[Long]`).
92
+ * Wire may send number, digit string, or `null`; outputs normalize to digit string or `undefined`.
93
+ */
94
+ paidTrafficCost: wire_1.ledgerOptionalPaidTrafficCostSchema,
84
95
  });
85
96
  /** Submit and wait for reassignment response. */
86
97
  exports.JsSubmitAndWaitForReassignmentResponseSchema = zod_1.z.object({
@@ -1 +1 @@
1
- {"version":3,"file":"reassignment.js","sourceRoot":"","sources":["../../../../../../src/clients/ledger-json-api/schemas/api/reassignment.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,sCAA+C;AAC/C,yCAAwE;AACxE,mDAA8G;AAC9G,qCAA6C;AAE7C,oCAAoC;AACvB,QAAA,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC;IAChD,gCAAgC;IAChC,OAAO,EAAE,OAAC,CAAC,KAAK,CAAC,CAAC,8BAAmB,EAAE,gCAAqB,EAAE,OAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,kCAAkB,EAAE,CAAC,CAAC,CAAC;CACxG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