@fairmint/canton-node-sdk 0.0.244 → 0.0.245

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 (73) hide show
  1. package/build/src/clients/ledger-json-api/LedgerJsonApiClient.generated.d.ts +6 -3
  2. package/build/src/clients/ledger-json-api/LedgerJsonApiClient.generated.d.ts.map +1 -1
  3. package/build/src/clients/ledger-json-api/LedgerJsonApiClient.generated.js +6 -4
  4. package/build/src/clients/ledger-json-api/LedgerJsonApiClient.generated.js.map +1 -1
  5. package/build/src/clients/ledger-json-api/index.d.ts +2 -2
  6. package/build/src/clients/ledger-json-api/index.d.ts.map +1 -1
  7. package/build/src/clients/ledger-json-api/index.js +7 -1
  8. package/build/src/clients/ledger-json-api/index.js.map +1 -1
  9. package/build/src/clients/ledger-json-api/operations/v2/commands/async/submit.d.ts +28 -28
  10. package/build/src/clients/ledger-json-api/operations/v2/commands/submit-and-wait-for-transaction-tree.d.ts +28 -28
  11. package/build/src/clients/ledger-json-api/operations/v2/commands/submit-and-wait-for-transaction.d.ts +28 -28
  12. package/build/src/clients/ledger-json-api/operations/v2/commands/submit-and-wait.d.ts +52 -52
  13. package/build/src/clients/ledger-json-api/operations/v2/dars/index.d.ts +3 -0
  14. package/build/src/clients/ledger-json-api/operations/v2/dars/index.d.ts.map +1 -0
  15. package/build/src/clients/ledger-json-api/operations/v2/dars/index.js +19 -0
  16. package/build/src/clients/ledger-json-api/operations/v2/dars/index.js.map +1 -0
  17. package/build/src/clients/ledger-json-api/operations/v2/dars/upload-dar.d.ts +9 -0
  18. package/build/src/clients/ledger-json-api/operations/v2/dars/upload-dar.d.ts.map +1 -0
  19. package/build/src/clients/ledger-json-api/operations/v2/dars/upload-dar.js +34 -0
  20. package/build/src/clients/ledger-json-api/operations/v2/dars/upload-dar.js.map +1 -0
  21. package/build/src/clients/ledger-json-api/operations/v2/dars/validate-dar.d.ts +9 -0
  22. package/build/src/clients/ledger-json-api/operations/v2/dars/validate-dar.d.ts.map +1 -0
  23. package/build/src/clients/ledger-json-api/operations/v2/dars/validate-dar.js +31 -0
  24. package/build/src/clients/ledger-json-api/operations/v2/dars/validate-dar.js.map +1 -0
  25. package/build/src/clients/ledger-json-api/operations/v2/index.d.ts +1 -0
  26. package/build/src/clients/ledger-json-api/operations/v2/index.d.ts.map +1 -1
  27. package/build/src/clients/ledger-json-api/operations/v2/index.js +1 -0
  28. package/build/src/clients/ledger-json-api/operations/v2/index.js.map +1 -1
  29. package/build/src/clients/ledger-json-api/operations/v2/packages/index.d.ts +0 -1
  30. package/build/src/clients/ledger-json-api/operations/v2/packages/index.d.ts.map +1 -1
  31. package/build/src/clients/ledger-json-api/operations/v2/packages/index.js +0 -1
  32. package/build/src/clients/ledger-json-api/operations/v2/packages/index.js.map +1 -1
  33. package/build/src/clients/ledger-json-api/schemas/api/dars.d.ts +19 -0
  34. package/build/src/clients/ledger-json-api/schemas/api/dars.d.ts.map +1 -0
  35. package/build/src/clients/ledger-json-api/schemas/api/dars.js +9 -0
  36. package/build/src/clients/ledger-json-api/schemas/api/dars.js.map +1 -0
  37. package/build/src/clients/ledger-json-api/schemas/api/index.d.ts +1 -0
  38. package/build/src/clients/ledger-json-api/schemas/api/index.d.ts.map +1 -1
  39. package/build/src/clients/ledger-json-api/schemas/api/index.js +2 -0
  40. package/build/src/clients/ledger-json-api/schemas/api/index.js.map +1 -1
  41. package/build/src/clients/ledger-json-api/schemas/api/packages.d.ts +0 -3
  42. package/build/src/clients/ledger-json-api/schemas/api/packages.d.ts.map +1 -1
  43. package/build/src/clients/ledger-json-api/schemas/api/packages.js +1 -3
  44. package/build/src/clients/ledger-json-api/schemas/api/packages.js.map +1 -1
  45. package/build/src/clients/ledger-json-api/schemas/operations/dars.d.ts +33 -0
  46. package/build/src/clients/ledger-json-api/schemas/operations/dars.d.ts.map +1 -0
  47. package/build/src/clients/ledger-json-api/schemas/operations/dars.js +26 -0
  48. package/build/src/clients/ledger-json-api/schemas/operations/dars.js.map +1 -0
  49. package/build/src/clients/ledger-json-api/schemas/operations/index.d.ts +1 -0
  50. package/build/src/clients/ledger-json-api/schemas/operations/index.d.ts.map +1 -1
  51. package/build/src/clients/ledger-json-api/schemas/operations/index.js +2 -0
  52. package/build/src/clients/ledger-json-api/schemas/operations/index.js.map +1 -1
  53. package/build/src/clients/ledger-json-api/schemas/operations/packages.d.ts +0 -6
  54. package/build/src/clients/ledger-json-api/schemas/operations/packages.d.ts.map +1 -1
  55. package/build/src/clients/ledger-json-api/schemas/operations/packages.js +1 -9
  56. package/build/src/clients/ledger-json-api/schemas/operations/packages.js.map +1 -1
  57. package/build/src/clients/ledger-json-api/schemas/wire.d.ts +8 -1
  58. package/build/src/clients/ledger-json-api/schemas/wire.d.ts.map +1 -1
  59. package/build/src/clients/ledger-json-api/schemas/wire.js +23 -1
  60. package/build/src/clients/ledger-json-api/schemas/wire.js.map +1 -1
  61. package/build/src/core/branded-types.d.ts +4 -0
  62. package/build/src/core/branded-types.d.ts.map +1 -1
  63. package/build/src/core/branded-types.js +5 -0
  64. package/build/src/core/branded-types.js.map +1 -1
  65. package/build/src/core/http/HttpClient.d.ts +8 -0
  66. package/build/src/core/http/HttpClient.d.ts.map +1 -1
  67. package/build/src/core/http/HttpClient.js +79 -2
  68. package/build/src/core/http/HttpClient.js.map +1 -1
  69. package/package.json +1 -1
  70. package/build/src/clients/ledger-json-api/operations/v2/packages/post.d.ts +0 -34
  71. package/build/src/clients/ledger-json-api/operations/v2/packages/post.d.ts.map +0 -1
  72. package/build/src/clients/ledger-json-api/operations/v2/packages/post.js +0 -99
  73. package/build/src/clients/ledger-json-api/operations/v2/packages/post.js.map +0 -1
@@ -6,7 +6,7 @@ export type SubmitAndWaitForTransactionParams = z.infer<typeof SubmitAndWaitForT
6
6
  export type SubmitAndWaitForTransactionResponse = paths[typeof endpoint]['post']['responses']['200']['content']['application/json'];
7
7
  export declare const SubmitAndWaitForTransaction: new (client: import("../../../../..").BaseClient) => import("../../../../..").ApiOperation<{
8
8
  commands: ({
9
- CreateAndExerciseCommand: {
9
+ CreateCommand: {
10
10
  templateId: string;
11
11
  createArguments: Record<string, 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 | {
12
12
  [key: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
@@ -33,6 +33,11 @@ export declare const SubmitAndWaitForTransaction: new (client: import("../../../
33
33
  } | null)[] | {
34
34
  [key: string]: string | number | boolean | any | any | null;
35
35
  } | null>;
36
+ };
37
+ } | {
38
+ ExerciseCommand: {
39
+ templateId: string;
40
+ contractId: string;
36
41
  choice: string;
37
42
  choiceArgument: Record<string, 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 | any | {
38
43
  [key: string]: string | number | boolean | any | any | null;
@@ -61,7 +66,7 @@ export declare const SubmitAndWaitForTransaction: new (client: import("../../../
61
66
  } | null>;
62
67
  };
63
68
  } | {
64
- CreateCommand: {
69
+ CreateAndExerciseCommand: {
65
70
  templateId: string;
66
71
  createArguments: Record<string, 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 | any | {
67
72
  [key: string]: string | number | boolean | any | any | null;
@@ -88,11 +93,8 @@ export declare const SubmitAndWaitForTransaction: new (client: import("../../../
88
93
  } | null)[] | {
89
94
  [key: string]: string | number | boolean | any | any | null;
90
95
  } | null>;
91
- };
92
- } | {
93
- ExerciseByKeyCommand: {
94
- templateId: string;
95
- contractKey: Record<string, 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 | any | {
96
+ choice: string;
97
+ choiceArgument: Record<string, 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 | any | {
96
98
  [key: string]: string | number | boolean | any | any | null;
97
99
  } | null)[] | {
98
100
  [key: string]: string | number | boolean | any | any | null;
@@ -117,8 +119,11 @@ export declare const SubmitAndWaitForTransaction: new (client: import("../../../
117
119
  } | null)[] | {
118
120
  [key: string]: string | number | boolean | any | any | null;
119
121
  } | null>;
120
- choice: string;
121
- choiceArgument: Record<string, 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 | any | {
122
+ };
123
+ } | {
124
+ ExerciseByKeyCommand: {
125
+ templateId: string;
126
+ contractKey: Record<string, 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 | any | {
122
127
  [key: string]: string | number | boolean | any | any | null;
123
128
  } | null)[] | {
124
129
  [key: string]: string | number | boolean | any | any | null;
@@ -143,11 +148,6 @@ export declare const SubmitAndWaitForTransaction: new (client: import("../../../
143
148
  } | null)[] | {
144
149
  [key: string]: string | number | boolean | any | any | null;
145
150
  } | null>;
146
- };
147
- } | {
148
- ExerciseCommand: {
149
- templateId: string;
150
- contractId: string;
151
151
  choice: string;
152
152
  choiceArgument: Record<string, 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 | any | {
153
153
  [key: string]: string | number | boolean | any | any | null;
@@ -317,7 +317,7 @@ export declare const SubmitAndWaitForTransaction: new (client: import("../../../
317
317
  transaction: import("../../../../../generated/canton/community/ledger/ledger-json-api/src/test/resources/json-api-docs/openapi").components["schemas"]["JsTransaction"];
318
318
  }, import("../../../../..").OperationExecuteOptions<{
319
319
  commands: ({
320
- CreateAndExerciseCommand: {
320
+ CreateCommand: {
321
321
  templateId: string;
322
322
  createArguments: Record<string, 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 | any | {
323
323
  [key: string]: string | number | boolean | any | any | null;
@@ -344,6 +344,11 @@ export declare const SubmitAndWaitForTransaction: new (client: import("../../../
344
344
  } | null)[] | {
345
345
  [key: string]: string | number | boolean | any | any | null;
346
346
  } | null>;
347
+ };
348
+ } | {
349
+ ExerciseCommand: {
350
+ templateId: string;
351
+ contractId: string;
347
352
  choice: string;
348
353
  choiceArgument: Record<string, 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 | any | {
349
354
  [key: string]: string | number | boolean | any | any | null;
@@ -372,7 +377,7 @@ export declare const SubmitAndWaitForTransaction: new (client: import("../../../
372
377
  } | null>;
373
378
  };
374
379
  } | {
375
- CreateCommand: {
380
+ CreateAndExerciseCommand: {
376
381
  templateId: string;
377
382
  createArguments: Record<string, 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 | any | {
378
383
  [key: string]: string | number | boolean | any | any | null;
@@ -399,11 +404,8 @@ export declare const SubmitAndWaitForTransaction: new (client: import("../../../
399
404
  } | null)[] | {
400
405
  [key: string]: string | number | boolean | any | any | null;
401
406
  } | null>;
402
- };
403
- } | {
404
- ExerciseByKeyCommand: {
405
- templateId: string;
406
- contractKey: Record<string, 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 | any | {
407
+ choice: string;
408
+ choiceArgument: Record<string, 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 | any | {
407
409
  [key: string]: string | number | boolean | any | any | null;
408
410
  } | null)[] | {
409
411
  [key: string]: string | number | boolean | any | any | null;
@@ -428,8 +430,11 @@ export declare const SubmitAndWaitForTransaction: new (client: import("../../../
428
430
  } | null)[] | {
429
431
  [key: string]: string | number | boolean | any | any | null;
430
432
  } | null>;
431
- choice: string;
432
- choiceArgument: Record<string, 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 | any | {
433
+ };
434
+ } | {
435
+ ExerciseByKeyCommand: {
436
+ templateId: string;
437
+ contractKey: Record<string, 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 | any | {
433
438
  [key: string]: string | number | boolean | any | any | null;
434
439
  } | null)[] | {
435
440
  [key: string]: string | number | boolean | any | any | null;
@@ -454,11 +459,6 @@ export declare const SubmitAndWaitForTransaction: new (client: import("../../../
454
459
  } | null)[] | {
455
460
  [key: string]: string | number | boolean | any | any | null;
456
461
  } | null>;
457
- };
458
- } | {
459
- ExerciseCommand: {
460
- templateId: string;
461
- contractId: string;
462
462
  choice: string;
463
463
  choiceArgument: Record<string, 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 | any | {
464
464
  [key: string]: string | number | boolean | any | any | null;
@@ -11,7 +11,19 @@ export type SubmitAndWaitResponse = paths[typeof endpoint]['post']['responses'][
11
11
  */
12
12
  export declare const SubmitAndWait: new (client: import("../../../../..").BaseClient) => import("../../../../..").ApiOperation<{
13
13
  commands: ({
14
- CreateCommand: {
14
+ AssignCommand: {
15
+ reassignmentId: string;
16
+ source: string;
17
+ target: string;
18
+ };
19
+ } | {
20
+ UnassignCommand: {
21
+ contractId: string;
22
+ source: string;
23
+ target: string;
24
+ };
25
+ } | {
26
+ CreateAndExerciseCommand: {
15
27
  templateId: string;
16
28
  createArguments: Record<string, 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 | {
17
29
  [key: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
@@ -38,11 +50,6 @@ export declare const SubmitAndWait: new (client: import("../../../../..").BaseCl
38
50
  } | null)[] | {
39
51
  [key: string]: string | number | boolean | any | any | null;
40
52
  } | null>;
41
- };
42
- } | {
43
- ExerciseCommand: {
44
- templateId: string;
45
- contractId: string;
46
53
  choice: string;
47
54
  choiceArgument: Record<string, 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 | any | {
48
55
  [key: string]: string | number | boolean | any | any | null;
@@ -71,7 +78,7 @@ export declare const SubmitAndWait: new (client: import("../../../../..").BaseCl
71
78
  } | null>;
72
79
  };
73
80
  } | {
74
- CreateAndExerciseCommand: {
81
+ CreateCommand: {
75
82
  templateId: string;
76
83
  createArguments: Record<string, 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 | any | {
77
84
  [key: string]: string | number | boolean | any | any | null;
@@ -98,8 +105,11 @@ export declare const SubmitAndWait: new (client: import("../../../../..").BaseCl
98
105
  } | null)[] | {
99
106
  [key: string]: string | number | boolean | any | any | null;
100
107
  } | null>;
101
- choice: string;
102
- choiceArgument: Record<string, 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 | any | {
108
+ };
109
+ } | {
110
+ ExerciseByKeyCommand: {
111
+ templateId: string;
112
+ contractKey: Record<string, 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 | any | {
103
113
  [key: string]: string | number | boolean | any | any | null;
104
114
  } | null)[] | {
105
115
  [key: string]: string | number | boolean | any | any | null;
@@ -124,11 +134,8 @@ export declare const SubmitAndWait: new (client: import("../../../../..").BaseCl
124
134
  } | null)[] | {
125
135
  [key: string]: string | number | boolean | any | any | null;
126
136
  } | null>;
127
- };
128
- } | {
129
- ExerciseByKeyCommand: {
130
- templateId: string;
131
- contractKey: Record<string, 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 | any | {
137
+ choice: string;
138
+ choiceArgument: Record<string, 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 | any | {
132
139
  [key: string]: string | number | boolean | any | any | null;
133
140
  } | null)[] | {
134
141
  [key: string]: string | number | boolean | any | any | null;
@@ -153,6 +160,11 @@ export declare const SubmitAndWait: new (client: import("../../../../..").BaseCl
153
160
  } | null)[] | {
154
161
  [key: string]: string | number | boolean | any | any | null;
155
162
  } | null>;
163
+ };
164
+ } | {
165
+ ExerciseCommand: {
166
+ templateId: string;
167
+ contractId: string;
156
168
  choice: string;
157
169
  choiceArgument: Record<string, 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 | any | {
158
170
  [key: string]: string | number | boolean | any | any | null;
@@ -180,18 +192,6 @@ export declare const SubmitAndWait: new (client: import("../../../../..").BaseCl
180
192
  [key: string]: string | number | boolean | any | any | null;
181
193
  } | null>;
182
194
  };
183
- } | {
184
- AssignCommand: {
185
- reassignmentId: string;
186
- source: string;
187
- target: string;
188
- };
189
- } | {
190
- UnassignCommand: {
191
- contractId: string;
192
- source: string;
193
- target: string;
194
- };
195
195
  })[];
196
196
  commandId?: string | undefined;
197
197
  actAs?: string[] | undefined;
@@ -261,7 +261,19 @@ export declare const SubmitAndWait: new (client: import("../../../../..").BaseCl
261
261
  completionOffset: number;
262
262
  }, import("../../../../..").OperationExecuteOptions<{
263
263
  commands: ({
264
- CreateCommand: {
264
+ AssignCommand: {
265
+ reassignmentId: string;
266
+ source: string;
267
+ target: string;
268
+ };
269
+ } | {
270
+ UnassignCommand: {
271
+ contractId: string;
272
+ source: string;
273
+ target: string;
274
+ };
275
+ } | {
276
+ CreateAndExerciseCommand: {
265
277
  templateId: string;
266
278
  createArguments: Record<string, 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 | any | {
267
279
  [key: string]: string | number | boolean | any | any | null;
@@ -288,11 +300,6 @@ export declare const SubmitAndWait: new (client: import("../../../../..").BaseCl
288
300
  } | null)[] | {
289
301
  [key: string]: string | number | boolean | any | any | null;
290
302
  } | null>;
291
- };
292
- } | {
293
- ExerciseCommand: {
294
- templateId: string;
295
- contractId: string;
296
303
  choice: string;
297
304
  choiceArgument: Record<string, 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 | any | {
298
305
  [key: string]: string | number | boolean | any | any | null;
@@ -321,7 +328,7 @@ export declare const SubmitAndWait: new (client: import("../../../../..").BaseCl
321
328
  } | null>;
322
329
  };
323
330
  } | {
324
- CreateAndExerciseCommand: {
331
+ CreateCommand: {
325
332
  templateId: string;
326
333
  createArguments: Record<string, 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 | any | {
327
334
  [key: string]: string | number | boolean | any | any | null;
@@ -348,8 +355,11 @@ export declare const SubmitAndWait: new (client: import("../../../../..").BaseCl
348
355
  } | null)[] | {
349
356
  [key: string]: string | number | boolean | any | any | null;
350
357
  } | null>;
351
- choice: string;
352
- choiceArgument: Record<string, 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 | any | {
358
+ };
359
+ } | {
360
+ ExerciseByKeyCommand: {
361
+ templateId: string;
362
+ contractKey: Record<string, 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 | any | {
353
363
  [key: string]: string | number | boolean | any | any | null;
354
364
  } | null)[] | {
355
365
  [key: string]: string | number | boolean | any | any | null;
@@ -374,11 +384,8 @@ export declare const SubmitAndWait: new (client: import("../../../../..").BaseCl
374
384
  } | null)[] | {
375
385
  [key: string]: string | number | boolean | any | any | null;
376
386
  } | null>;
377
- };
378
- } | {
379
- ExerciseByKeyCommand: {
380
- templateId: string;
381
- contractKey: Record<string, 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 | any | {
387
+ choice: string;
388
+ choiceArgument: Record<string, 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 | any | {
382
389
  [key: string]: string | number | boolean | any | any | null;
383
390
  } | null)[] | {
384
391
  [key: string]: string | number | boolean | any | any | null;
@@ -403,6 +410,11 @@ export declare const SubmitAndWait: new (client: import("../../../../..").BaseCl
403
410
  } | null)[] | {
404
411
  [key: string]: string | number | boolean | any | any | null;
405
412
  } | null>;
413
+ };
414
+ } | {
415
+ ExerciseCommand: {
416
+ templateId: string;
417
+ contractId: string;
406
418
  choice: string;
407
419
  choiceArgument: Record<string, 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 | any | {
408
420
  [key: string]: string | number | boolean | any | any | null;
@@ -430,18 +442,6 @@ export declare const SubmitAndWait: new (client: import("../../../../..").BaseCl
430
442
  [key: string]: string | number | boolean | any | any | null;
431
443
  } | null>;
432
444
  };
433
- } | {
434
- AssignCommand: {
435
- reassignmentId: string;
436
- source: string;
437
- target: string;
438
- };
439
- } | {
440
- UnassignCommand: {
441
- contractId: string;
442
- source: string;
443
- target: string;
444
- };
445
445
  })[];
446
446
  commandId?: string | undefined;
447
447
  actAs?: string[] | undefined;
@@ -0,0 +1,3 @@
1
+ export * from './upload-dar';
2
+ export * from './validate-dar';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/dars/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./upload-dar"), exports);
18
+ __exportStar(require("./validate-dar"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/dars/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,iDAA+B"}
@@ -0,0 +1,9 @@
1
+ import { type UploadDarParams } from '../../../schemas/operations';
2
+ /**
3
+ * Upload a DAR to the participant package store.
4
+ *
5
+ * Canton vets every uploaded package by default. Set `vetAllPackages` to `false` to persist the DAR without changing
6
+ * package-vetting state.
7
+ */
8
+ export declare const UploadDar: new (client: import("../../../../..").BaseClient) => import("../../../../..").ApiOperation<UploadDarParams, Record<string, never>, import("../../../../..").OperationExecuteOptions<UploadDarParams>>;
9
+ //# sourceMappingURL=upload-dar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"upload-dar.d.ts","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/dars/upload-dar.ts"],"names":[],"mappings":"AAEA,OAAO,EAAyB,KAAK,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAE1F;;;;;GAKG;AACH,eAAO,MAAM,SAAS,uMAoBpB,CAAC"}
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UploadDar = void 0;
4
+ const core_1 = require("../../../../../core");
5
+ const api_1 = require("../../../schemas/api");
6
+ const operations_1 = require("../../../schemas/operations");
7
+ /**
8
+ * Upload a DAR to the participant package store.
9
+ *
10
+ * Canton vets every uploaded package by default. Set `vetAllPackages` to `false` to persist the DAR without changing
11
+ * package-vetting state.
12
+ */
13
+ exports.UploadDar = (0, core_1.createApiOperation)({
14
+ paramsSchema: operations_1.UploadDarParamsSchema,
15
+ method: 'POST',
16
+ requestSemantics: 'mutation',
17
+ buildUrl: (params, apiUrl) => {
18
+ const url = new URL(`${apiUrl}/v2/dars`);
19
+ if (params.vetAllPackages !== undefined) {
20
+ url.searchParams.set('vetAllPackages', String(params.vetAllPackages));
21
+ }
22
+ if (params.synchronizerId !== undefined) {
23
+ url.searchParams.set('synchronizerId', params.synchronizerId);
24
+ }
25
+ return url.toString();
26
+ },
27
+ buildRequestData: (params) => params.darFile,
28
+ requestConfig: {
29
+ contentType: 'application/octet-stream',
30
+ includeBearerToken: true,
31
+ },
32
+ responseSchema: api_1.UploadDarResponseSchema,
33
+ });
34
+ //# sourceMappingURL=upload-dar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"upload-dar.js","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/dars/upload-dar.ts"],"names":[],"mappings":";;;AAAA,8CAAyD;AACzD,8CAAuF;AACvF,4DAA0F;AAE1F;;;;;GAKG;AACU,QAAA,SAAS,GAAG,IAAA,yBAAkB,EAAqC;IAC9E,YAAY,EAAE,kCAAqB;IACnC,MAAM,EAAE,MAAM;IACd,gBAAgB,EAAE,UAAU;IAC5B,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,EAAU,EAAE;QACnC,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,GAAG,MAAM,UAAU,CAAC,CAAC;QACzC,IAAI,MAAM,CAAC,cAAc,KAAK,SAAS,EAAE,CAAC;YACxC,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,gBAAgB,EAAE,MAAM,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,CAAC;QACxE,CAAC;QACD,IAAI,MAAM,CAAC,cAAc,KAAK,SAAS,EAAE,CAAC;YACxC,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,gBAAgB,EAAE,MAAM,CAAC,cAAc,CAAC,CAAC;QAChE,CAAC;QACD,OAAO,GAAG,CAAC,QAAQ,EAAE,CAAC;IACxB,CAAC;IACD,gBAAgB,EAAE,CAAC,MAAM,EAAU,EAAE,CAAC,MAAM,CAAC,OAAO;IACpD,aAAa,EAAE;QACb,WAAW,EAAE,0BAA0B;QACvC,kBAAkB,EAAE,IAAI;KACzB;IACD,cAAc,EAAE,6BAAuB;CACxC,CAAC,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { type ValidateDarParams } from '../../../schemas/operations';
2
+ /**
3
+ * Validate a DAR and its package upgrades without changing participant or ledger state.
4
+ *
5
+ * The validated bytes are not persisted or vetted. When no synchronizer is supplied, Canton selects the target vetting
6
+ * synchronizer according to the participant's package-management configuration.
7
+ */
8
+ export declare const ValidateDar: new (client: import("../../../../..").BaseClient) => import("../../../../..").ApiOperation<ValidateDarParams, void, import("../../../../..").OperationExecuteOptions<ValidateDarParams>>;
9
+ //# sourceMappingURL=validate-dar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validate-dar.d.ts","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/dars/validate-dar.ts"],"names":[],"mappings":"AAEA,OAAO,EAA2B,KAAK,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAE9F;;;;;GAKG;AACH,eAAO,MAAM,WAAW,0LAiBtB,CAAC"}
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ValidateDar = void 0;
4
+ const core_1 = require("../../../../../core");
5
+ const api_1 = require("../../../schemas/api");
6
+ const operations_1 = require("../../../schemas/operations");
7
+ /**
8
+ * Validate a DAR and its package upgrades without changing participant or ledger state.
9
+ *
10
+ * The validated bytes are not persisted or vetted. When no synchronizer is supplied, Canton selects the target vetting
11
+ * synchronizer according to the participant's package-management configuration.
12
+ */
13
+ exports.ValidateDar = (0, core_1.createApiOperation)({
14
+ paramsSchema: operations_1.ValidateDarParamsSchema,
15
+ method: 'POST',
16
+ requestSemantics: 'read',
17
+ buildUrl: (params, apiUrl) => {
18
+ const url = new URL(`${apiUrl}/v2/dars/validate`);
19
+ if (params.synchronizerId !== undefined) {
20
+ url.searchParams.set('synchronizerId', params.synchronizerId);
21
+ }
22
+ return url.toString();
23
+ },
24
+ buildRequestData: (params) => params.darFile,
25
+ requestConfig: {
26
+ contentType: 'application/octet-stream',
27
+ includeBearerToken: true,
28
+ },
29
+ responseSchema: api_1.ValidateDarResponseSchema,
30
+ });
31
+ //# sourceMappingURL=validate-dar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validate-dar.js","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/dars/validate-dar.ts"],"names":[],"mappings":";;;AAAA,8CAAyD;AACzD,8CAA2F;AAC3F,4DAA8F;AAE9F;;;;;GAKG;AACU,QAAA,WAAW,GAAG,IAAA,yBAAkB,EAAyC;IACpF,YAAY,EAAE,oCAAuB;IACrC,MAAM,EAAE,MAAM;IACd,gBAAgB,EAAE,MAAM;IACxB,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,EAAU,EAAE;QACnC,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,GAAG,MAAM,mBAAmB,CAAC,CAAC;QAClD,IAAI,MAAM,CAAC,cAAc,KAAK,SAAS,EAAE,CAAC;YACxC,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,gBAAgB,EAAE,MAAM,CAAC,cAAc,CAAC,CAAC;QAChE,CAAC;QACD,OAAO,GAAG,CAAC,QAAQ,EAAE,CAAC;IACxB,CAAC;IACD,gBAAgB,EAAE,CAAC,MAAM,EAAU,EAAE,CAAC,MAAM,CAAC,OAAO;IACpD,aAAa,EAAE;QACb,WAAW,EAAE,0BAA0B;QACvC,kBAAkB,EAAE,IAAI;KACzB;IACD,cAAc,EAAE,+BAAyB;CAC1C,CAAC,CAAC"}
@@ -1,6 +1,7 @@
1
1
  export * from './authenticated-user';
2
2
  export * from './commands';
3
3
  export * from './contracts';
4
+ export * from './dars';
4
5
  export * from './events';
5
6
  export * from './idps';
6
7
  export * from './interactive-submission';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/clients/ledger-json-api/operations/v2/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,0BAA0B,CAAC;AACzC,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/clients/ledger-json-api/operations/v2/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,0BAA0B,CAAC;AACzC,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC"}
@@ -17,6 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./authenticated-user"), exports);
18
18
  __exportStar(require("./commands"), exports);
19
19
  __exportStar(require("./contracts"), exports);
20
+ __exportStar(require("./dars"), exports);
20
21
  __exportStar(require("./events"), exports);
21
22
  __exportStar(require("./idps"), exports);
22
23
  __exportStar(require("./interactive-submission"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/clients/ledger-json-api/operations/v2/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,6CAA2B;AAC3B,8CAA4B;AAC5B,2CAAyB;AACzB,yCAAuB;AACvB,2DAAyC;AACzC,6CAA2B;AAC3B,4CAA0B;AAC1B,0CAAwB;AACxB,4CAA0B;AAC1B,0CAAwB;AACxB,4CAA0B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/clients/ledger-json-api/operations/v2/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,6CAA2B;AAC3B,8CAA4B;AAC5B,yCAAuB;AACvB,2CAAyB;AACzB,yCAAuB;AACvB,2DAAyC;AACzC,6CAA2B;AAC3B,4CAA0B;AAC1B,0CAAwB;AACxB,4CAA0B;AAC1B,0CAAwB;AACxB,4CAA0B"}
@@ -1,4 +1,3 @@
1
1
  export * from './get';
2
2
  export * from './get-package-status';
3
- export * from './post';
4
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/packages/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,sBAAsB,CAAC;AACrC,cAAc,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/packages/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,sBAAsB,CAAC"}
@@ -16,5 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./get"), exports);
18
18
  __exportStar(require("./get-package-status"), exports);
19
- __exportStar(require("./post"), exports);
20
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/packages/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB;AACtB,uDAAqC;AACrC,yCAAuB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/packages/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB;AACtB,uDAAqC"}
@@ -0,0 +1,19 @@
1
+ import { z } from 'zod';
2
+ import type { paths } from '../../../../generated/canton/community/ledger/ledger-json-api/src/test/resources/json-api-docs/openapi';
3
+ type UploadDarEndpoint = '/v2/dars';
4
+ type ValidateDarEndpoint = '/v2/dars/validate';
5
+ type NoContentSuccess<OpenApiResponse extends {
6
+ content?: never;
7
+ }> = OpenApiResponse extends {
8
+ content?: never;
9
+ } ? void : never;
10
+ /** Exact successful response from the pinned Ledger DAR validation endpoint. */
11
+ export type ValidateDarResponse = NoContentSuccess<paths[ValidateDarEndpoint]['post']['responses']['200']>;
12
+ /** Exact successful response from the pinned Ledger DAR upload endpoint. */
13
+ export type UploadDarResponse = paths[UploadDarEndpoint]['post']['responses']['200']['content']['application/json'];
14
+ /** Normalize Axios' empty-string representation of a bodyless HTTP 200 response to `void`. */
15
+ export declare const ValidateDarResponseSchema: z.ZodType<ValidateDarResponse>;
16
+ /** The Ledger JSON API represents a successful DAR upload as an exact empty JSON object. */
17
+ export declare const UploadDarResponseSchema: z.ZodType<UploadDarResponse>;
18
+ export {};
19
+ //# sourceMappingURL=dars.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dars.d.ts","sourceRoot":"","sources":["../../../../../../src/clients/ledger-json-api/schemas/api/dars.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,wGAAwG,CAAC;AAEpI,KAAK,iBAAiB,GAAG,UAAU,CAAC;AACpC,KAAK,mBAAmB,GAAG,mBAAmB,CAAC;AAC/C,KAAK,gBAAgB,CAAC,eAAe,SAAS;IAAE,OAAO,CAAC,EAAE,KAAK,CAAA;CAAE,IAAI,eAAe,SAAS;IAC3F,OAAO,CAAC,EAAE,KAAK,CAAC;CACjB,GACG,IAAI,GACJ,KAAK,CAAC;AAEV,gFAAgF;AAChF,MAAM,MAAM,mBAAmB,GAAG,gBAAgB,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;AAE3G,4EAA4E;AAC5E,MAAM,MAAM,iBAAiB,GAAG,KAAK,CAAC,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAAC;AAEpH,8FAA8F;AAC9F,eAAO,MAAM,yBAAyB,EAAE,CAAC,CAAC,OAAO,CAAC,mBAAmB,CAGpE,CAAC;AAEF,4FAA4F;AAC5F,eAAO,MAAM,uBAAuB,EAAE,CAAC,CAAC,OAAO,CAAC,iBAAiB,CAAsB,CAAC"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UploadDarResponseSchema = exports.ValidateDarResponseSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ /** Normalize Axios' empty-string representation of a bodyless HTTP 200 response to `void`. */
6
+ exports.ValidateDarResponseSchema = zod_1.z.preprocess((value) => (value === '' ? undefined : value), zod_1.z.void());
7
+ /** The Ledger JSON API represents a successful DAR upload as an exact empty JSON object. */
8
+ exports.UploadDarResponseSchema = zod_1.z.strictObject({});
9
+ //# sourceMappingURL=dars.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dars.js","sourceRoot":"","sources":["../../../../../../src/clients/ledger-json-api/schemas/api/dars.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAiBxB,8FAA8F;AACjF,QAAA,yBAAyB,GAAmC,OAAC,CAAC,UAAU,CACnF,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,KAAK,KAAK,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,EAC7C,OAAC,CAAC,IAAI,EAAE,CACT,CAAC;AAEF,4FAA4F;AAC/E,QAAA,uBAAuB,GAAiC,OAAC,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC"}
@@ -1,5 +1,6 @@
1
1
  export * from './commands';
2
2
  export * from './contracts';
3
+ export * from './dars';
3
4
  export * from './created-event';
4
5
  export * from './completions';
5
6
  export * from './errors';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/clients/ledger-json-api/schemas/api/index.ts"],"names":[],"mappings":"AACA,cAAc,YAAY,CAAC;AAG3B,cAAc,aAAa,CAAC;AAG5B,cAAc,iBAAiB,CAAC;AAGhC,cAAc,eAAe,CAAC;AAG9B,cAAc,UAAU,CAAC;AAGzB,cAAc,UAAU,CAAC;AAGzB,cAAc,iBAAiB,CAAC;AAGhC,cAAc,YAAY,CAAC;AAG3B,cAAc,gBAAgB,CAAC;AAG/B,cAAc,SAAS,CAAC;AAGxB,cAAc,gBAAgB,CAAC;AAG/B,cAAc,WAAW,CAAC;AAG1B,cAAc,SAAS,CAAC;AAGxB,cAAc,QAAQ,CAAC;AAGvB,cAAc,0BAA0B,CAAC;AAGzC,cAAc,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/clients/ledger-json-api/schemas/api/index.ts"],"names":[],"mappings":"AACA,cAAc,YAAY,CAAC;AAG3B,cAAc,aAAa,CAAC;AAG5B,cAAc,QAAQ,CAAC;AAGvB,cAAc,iBAAiB,CAAC;AAGhC,cAAc,eAAe,CAAC;AAG9B,cAAc,UAAU,CAAC;AAGzB,cAAc,UAAU,CAAC;AAGzB,cAAc,iBAAiB,CAAC;AAGhC,cAAc,YAAY,CAAC;AAG3B,cAAc,gBAAgB,CAAC;AAG/B,cAAc,SAAS,CAAC;AAGxB,cAAc,gBAAgB,CAAC;AAG/B,cAAc,WAAW,CAAC;AAG1B,cAAc,SAAS,CAAC;AAGxB,cAAc,QAAQ,CAAC;AAGvB,cAAc,0BAA0B,CAAC;AAGzC,cAAc,qBAAqB,CAAC"}
@@ -18,6 +18,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
18
18
  __exportStar(require("./commands"), exports);
19
19
  // Contract lookup schemas
20
20
  __exportStar(require("./contracts"), exports);
21
+ // DAR validation and upload schemas
22
+ __exportStar(require("./dars"), exports);
21
23
  // Shared strict CreatedEvent schema
22
24
  __exportStar(require("./created-event"), exports);
23
25
  // Completion schemas
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/clients/ledger-json-api/schemas/api/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kBAAkB;AAClB,6CAA2B;AAE3B,0BAA0B;AAC1B,8CAA4B;AAE5B,oCAAoC;AACpC,kDAAgC;AAEhC,qBAAqB;AACrB,gDAA8B;AAE9B,gBAAgB;AAChB,2CAAyB;AAEzB,gBAAgB;AAChB,2CAAyB;AAEzB,uBAAuB;AACvB,kDAAgC;AAEhC,kBAAkB;AAClB,6CAA2B;AAE3B,uBAAuB;AACvB,iDAA+B;AAE/B,gBAAgB;AAChB,0CAAwB;AAExB,sBAAsB;AACtB,iDAA+B;AAE/B,iBAAiB;AACjB,4CAA0B;AAE1B,oCAAoC;AACpC,0CAAwB;AAExB,eAAe;AACf,yCAAuB;AAEvB,iCAAiC;AACjC,2DAAyC;AAEzC,2BAA2B;AAC3B,sDAAoC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/clients/ledger-json-api/schemas/api/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kBAAkB;AAClB,6CAA2B;AAE3B,0BAA0B;AAC1B,8CAA4B;AAE5B,oCAAoC;AACpC,yCAAuB;AAEvB,oCAAoC;AACpC,kDAAgC;AAEhC,qBAAqB;AACrB,gDAA8B;AAE9B,gBAAgB;AAChB,2CAAyB;AAEzB,gBAAgB;AAChB,2CAAyB;AAEzB,uBAAuB;AACvB,kDAAgC;AAEhC,kBAAkB;AAClB,6CAA2B;AAE3B,uBAAuB;AACvB,iDAA+B;AAE/B,gBAAgB;AAChB,0CAAwB;AAExB,sBAAsB;AACtB,iDAA+B;AAE/B,iBAAiB;AACjB,4CAA0B;AAE1B,oCAAoC;AACpC,0CAAwB;AAExB,eAAe;AACf,yCAAuB;AAEvB,iCAAiC;AACjC,2DAAyC;AAEzC,2BAA2B;AAC3B,sDAAoC"}