@fairmint/canton-node-sdk 0.0.243 → 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.
- package/build/src/clients/ledger-json-api/LedgerJsonApiClient.generated.d.ts +9 -3
- package/build/src/clients/ledger-json-api/LedgerJsonApiClient.generated.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/LedgerJsonApiClient.generated.js +8 -4
- package/build/src/clients/ledger-json-api/LedgerJsonApiClient.generated.js.map +1 -1
- package/build/src/clients/ledger-json-api/index.d.ts +2 -1
- package/build/src/clients/ledger-json-api/index.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/index.js +19 -1
- package/build/src/clients/ledger-json-api/index.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/commands/async/submit.d.ts +52 -52
- package/build/src/clients/ledger-json-api/operations/v2/commands/submit-and-wait-for-transaction.d.ts +52 -52
- package/build/src/clients/ledger-json-api/operations/v2/commands/submit-and-wait.d.ts +52 -52
- package/build/src/clients/ledger-json-api/operations/v2/contracts/get-contract-by-id.d.ts +15 -0
- package/build/src/clients/ledger-json-api/operations/v2/contracts/get-contract-by-id.d.ts.map +1 -0
- package/build/src/clients/ledger-json-api/operations/v2/contracts/get-contract-by-id.js +25 -0
- package/build/src/clients/ledger-json-api/operations/v2/contracts/get-contract-by-id.js.map +1 -0
- package/build/src/clients/ledger-json-api/operations/v2/contracts/index.d.ts +2 -0
- package/build/src/clients/ledger-json-api/operations/v2/contracts/index.d.ts.map +1 -0
- package/build/src/clients/ledger-json-api/operations/v2/contracts/index.js +18 -0
- package/build/src/clients/ledger-json-api/operations/v2/contracts/index.js.map +1 -0
- package/build/src/clients/ledger-json-api/operations/v2/dars/index.d.ts +3 -0
- package/build/src/clients/ledger-json-api/operations/v2/dars/index.d.ts.map +1 -0
- package/build/src/clients/ledger-json-api/operations/v2/dars/index.js +19 -0
- package/build/src/clients/ledger-json-api/operations/v2/dars/index.js.map +1 -0
- package/build/src/clients/ledger-json-api/operations/v2/dars/upload-dar.d.ts +9 -0
- package/build/src/clients/ledger-json-api/operations/v2/dars/upload-dar.d.ts.map +1 -0
- package/build/src/clients/ledger-json-api/operations/v2/dars/upload-dar.js +34 -0
- package/build/src/clients/ledger-json-api/operations/v2/dars/upload-dar.js.map +1 -0
- package/build/src/clients/ledger-json-api/operations/v2/dars/validate-dar.d.ts +9 -0
- package/build/src/clients/ledger-json-api/operations/v2/dars/validate-dar.d.ts.map +1 -0
- package/build/src/clients/ledger-json-api/operations/v2/dars/validate-dar.js +31 -0
- package/build/src/clients/ledger-json-api/operations/v2/dars/validate-dar.js.map +1 -0
- package/build/src/clients/ledger-json-api/operations/v2/index.d.ts +2 -0
- package/build/src/clients/ledger-json-api/operations/v2/index.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/index.js +2 -0
- package/build/src/clients/ledger-json-api/operations/v2/index.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/packages/index.d.ts +0 -1
- package/build/src/clients/ledger-json-api/operations/v2/packages/index.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/packages/index.js +0 -1
- package/build/src/clients/ledger-json-api/operations/v2/packages/index.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/users/revoke-user-rights.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/users/revoke-user-rights.js +5 -8
- package/build/src/clients/ledger-json-api/operations/v2/users/revoke-user-rights.js.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/api/contracts.d.ts +24 -0
- package/build/src/clients/ledger-json-api/schemas/api/contracts.d.ts.map +1 -0
- package/build/src/clients/ledger-json-api/schemas/api/contracts.js +64 -0
- package/build/src/clients/ledger-json-api/schemas/api/contracts.js.map +1 -0
- package/build/src/clients/ledger-json-api/schemas/api/created-event.d.ts +61 -0
- package/build/src/clients/ledger-json-api/schemas/api/created-event.d.ts.map +1 -0
- package/build/src/clients/ledger-json-api/schemas/api/created-event.js +96 -0
- package/build/src/clients/ledger-json-api/schemas/api/created-event.js.map +1 -0
- package/build/src/clients/ledger-json-api/schemas/api/dars.d.ts +19 -0
- package/build/src/clients/ledger-json-api/schemas/api/dars.d.ts.map +1 -0
- package/build/src/clients/ledger-json-api/schemas/api/dars.js +9 -0
- package/build/src/clients/ledger-json-api/schemas/api/dars.js.map +1 -0
- package/build/src/clients/ledger-json-api/schemas/api/index.d.ts +3 -0
- package/build/src/clients/ledger-json-api/schemas/api/index.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/api/index.js +6 -0
- package/build/src/clients/ledger-json-api/schemas/api/index.js.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/api/interactive-submission.d.ts +6 -19
- package/build/src/clients/ledger-json-api/schemas/api/interactive-submission.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/api/interactive-submission.js +5 -108
- package/build/src/clients/ledger-json-api/schemas/api/interactive-submission.js.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/api/packages.d.ts +0 -3
- package/build/src/clients/ledger-json-api/schemas/api/packages.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/api/packages.js +1 -3
- package/build/src/clients/ledger-json-api/schemas/api/packages.js.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/operations/contracts.d.ts +2 -0
- package/build/src/clients/ledger-json-api/schemas/operations/contracts.d.ts.map +1 -0
- package/build/src/clients/ledger-json-api/schemas/operations/contracts.js +3 -0
- package/build/src/clients/ledger-json-api/schemas/operations/contracts.js.map +1 -0
- package/build/src/clients/ledger-json-api/schemas/operations/dars.d.ts +33 -0
- package/build/src/clients/ledger-json-api/schemas/operations/dars.d.ts.map +1 -0
- package/build/src/clients/ledger-json-api/schemas/operations/dars.js +26 -0
- package/build/src/clients/ledger-json-api/schemas/operations/dars.js.map +1 -0
- package/build/src/clients/ledger-json-api/schemas/operations/index.d.ts +2 -0
- package/build/src/clients/ledger-json-api/schemas/operations/index.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/operations/index.js +4 -0
- package/build/src/clients/ledger-json-api/schemas/operations/index.js.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/operations/packages.d.ts +0 -6
- package/build/src/clients/ledger-json-api/schemas/operations/packages.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/operations/packages.js +1 -9
- package/build/src/clients/ledger-json-api/schemas/operations/packages.js.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/wire.d.ts +35 -0
- package/build/src/clients/ledger-json-api/schemas/wire.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/wire.js +142 -1
- package/build/src/clients/ledger-json-api/schemas/wire.js.map +1 -1
- package/build/src/core/branded-types.d.ts +12 -0
- package/build/src/core/branded-types.d.ts.map +1 -1
- package/build/src/core/branded-types.js +15 -0
- package/build/src/core/branded-types.js.map +1 -1
- package/build/src/core/config/EnvLoader.js +1 -1
- package/build/src/core/http/HttpClient.d.ts +8 -0
- package/build/src/core/http/HttpClient.d.ts.map +1 -1
- package/build/src/core/http/HttpClient.js +79 -2
- package/build/src/core/http/HttpClient.js.map +1 -1
- package/build/src/core/operations/ApiOperationFactory.d.ts +5 -2
- package/build/src/core/operations/ApiOperationFactory.d.ts.map +1 -1
- package/build/src/core/operations/ApiOperationFactory.js +12 -3
- package/build/src/core/operations/ApiOperationFactory.js.map +1 -1
- package/package.json +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/packages/post.d.ts +0 -34
- package/build/src/clients/ledger-json-api/operations/v2/packages/post.d.ts.map +0 -1
- package/build/src/clients/ledger-json-api/operations/v2/packages/post.js +0 -99
- package/build/src/clients/ledger-json-api/operations/v2/packages/post.js.map +0 -1
|
@@ -6,19 +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
|
-
|
|
10
|
-
reassignmentId: string;
|
|
11
|
-
source: string;
|
|
12
|
-
target: string;
|
|
13
|
-
};
|
|
14
|
-
} | {
|
|
15
|
-
UnassignCommand: {
|
|
16
|
-
contractId: string;
|
|
17
|
-
source: string;
|
|
18
|
-
target: string;
|
|
19
|
-
};
|
|
20
|
-
} | {
|
|
21
|
-
CreateAndExerciseCommand: {
|
|
9
|
+
CreateCommand: {
|
|
22
10
|
templateId: string;
|
|
23
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 | {
|
|
24
12
|
[key: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
|
|
@@ -45,6 +33,11 @@ export declare const SubmitAndWaitForTransaction: new (client: import("../../../
|
|
|
45
33
|
} | null)[] | {
|
|
46
34
|
[key: string]: string | number | boolean | any | any | null;
|
|
47
35
|
} | null>;
|
|
36
|
+
};
|
|
37
|
+
} | {
|
|
38
|
+
ExerciseCommand: {
|
|
39
|
+
templateId: string;
|
|
40
|
+
contractId: string;
|
|
48
41
|
choice: string;
|
|
49
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 | {
|
|
50
43
|
[key: string]: string | number | boolean | any | any | null;
|
|
@@ -73,7 +66,7 @@ export declare const SubmitAndWaitForTransaction: new (client: import("../../../
|
|
|
73
66
|
} | null>;
|
|
74
67
|
};
|
|
75
68
|
} | {
|
|
76
|
-
|
|
69
|
+
CreateAndExerciseCommand: {
|
|
77
70
|
templateId: string;
|
|
78
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 | {
|
|
79
72
|
[key: string]: string | number | boolean | any | any | null;
|
|
@@ -100,11 +93,8 @@ export declare const SubmitAndWaitForTransaction: new (client: import("../../../
|
|
|
100
93
|
} | null)[] | {
|
|
101
94
|
[key: string]: string | number | boolean | any | any | null;
|
|
102
95
|
} | null>;
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
ExerciseByKeyCommand: {
|
|
106
|
-
templateId: string;
|
|
107
|
-
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 | {
|
|
108
98
|
[key: string]: string | number | boolean | any | any | null;
|
|
109
99
|
} | null)[] | {
|
|
110
100
|
[key: string]: string | number | boolean | any | any | null;
|
|
@@ -129,8 +119,11 @@ export declare const SubmitAndWaitForTransaction: new (client: import("../../../
|
|
|
129
119
|
} | null)[] | {
|
|
130
120
|
[key: string]: string | number | boolean | any | any | null;
|
|
131
121
|
} | null>;
|
|
132
|
-
|
|
133
|
-
|
|
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 | {
|
|
134
127
|
[key: string]: string | number | boolean | any | any | null;
|
|
135
128
|
} | null)[] | {
|
|
136
129
|
[key: string]: string | number | boolean | any | any | null;
|
|
@@ -155,11 +148,6 @@ export declare const SubmitAndWaitForTransaction: new (client: import("../../../
|
|
|
155
148
|
} | null)[] | {
|
|
156
149
|
[key: string]: string | number | boolean | any | any | null;
|
|
157
150
|
} | null>;
|
|
158
|
-
};
|
|
159
|
-
} | {
|
|
160
|
-
ExerciseCommand: {
|
|
161
|
-
templateId: string;
|
|
162
|
-
contractId: string;
|
|
163
151
|
choice: string;
|
|
164
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 | {
|
|
165
153
|
[key: string]: string | number | boolean | any | any | null;
|
|
@@ -187,6 +175,18 @@ export declare const SubmitAndWaitForTransaction: new (client: import("../../../
|
|
|
187
175
|
[key: string]: string | number | boolean | any | any | null;
|
|
188
176
|
} | null>;
|
|
189
177
|
};
|
|
178
|
+
} | {
|
|
179
|
+
AssignCommand: {
|
|
180
|
+
reassignmentId: string;
|
|
181
|
+
source: string;
|
|
182
|
+
target: string;
|
|
183
|
+
};
|
|
184
|
+
} | {
|
|
185
|
+
UnassignCommand: {
|
|
186
|
+
contractId: string;
|
|
187
|
+
source: string;
|
|
188
|
+
target: string;
|
|
189
|
+
};
|
|
190
190
|
})[];
|
|
191
191
|
commandId?: string | undefined;
|
|
192
192
|
actAs?: string[] | undefined;
|
|
@@ -317,19 +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
|
-
|
|
321
|
-
reassignmentId: string;
|
|
322
|
-
source: string;
|
|
323
|
-
target: string;
|
|
324
|
-
};
|
|
325
|
-
} | {
|
|
326
|
-
UnassignCommand: {
|
|
327
|
-
contractId: string;
|
|
328
|
-
source: string;
|
|
329
|
-
target: string;
|
|
330
|
-
};
|
|
331
|
-
} | {
|
|
332
|
-
CreateAndExerciseCommand: {
|
|
320
|
+
CreateCommand: {
|
|
333
321
|
templateId: string;
|
|
334
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 | {
|
|
335
323
|
[key: string]: string | number | boolean | any | any | null;
|
|
@@ -356,6 +344,11 @@ export declare const SubmitAndWaitForTransaction: new (client: import("../../../
|
|
|
356
344
|
} | null)[] | {
|
|
357
345
|
[key: string]: string | number | boolean | any | any | null;
|
|
358
346
|
} | null>;
|
|
347
|
+
};
|
|
348
|
+
} | {
|
|
349
|
+
ExerciseCommand: {
|
|
350
|
+
templateId: string;
|
|
351
|
+
contractId: string;
|
|
359
352
|
choice: string;
|
|
360
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 | {
|
|
361
354
|
[key: string]: string | number | boolean | any | any | null;
|
|
@@ -384,7 +377,7 @@ export declare const SubmitAndWaitForTransaction: new (client: import("../../../
|
|
|
384
377
|
} | null>;
|
|
385
378
|
};
|
|
386
379
|
} | {
|
|
387
|
-
|
|
380
|
+
CreateAndExerciseCommand: {
|
|
388
381
|
templateId: string;
|
|
389
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 | {
|
|
390
383
|
[key: string]: string | number | boolean | any | any | null;
|
|
@@ -411,11 +404,8 @@ export declare const SubmitAndWaitForTransaction: new (client: import("../../../
|
|
|
411
404
|
} | null)[] | {
|
|
412
405
|
[key: string]: string | number | boolean | any | any | null;
|
|
413
406
|
} | null>;
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
ExerciseByKeyCommand: {
|
|
417
|
-
templateId: string;
|
|
418
|
-
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 | {
|
|
419
409
|
[key: string]: string | number | boolean | any | any | null;
|
|
420
410
|
} | null)[] | {
|
|
421
411
|
[key: string]: string | number | boolean | any | any | null;
|
|
@@ -440,8 +430,11 @@ export declare const SubmitAndWaitForTransaction: new (client: import("../../../
|
|
|
440
430
|
} | null)[] | {
|
|
441
431
|
[key: string]: string | number | boolean | any | any | null;
|
|
442
432
|
} | null>;
|
|
443
|
-
|
|
444
|
-
|
|
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 | {
|
|
445
438
|
[key: string]: string | number | boolean | any | any | null;
|
|
446
439
|
} | null)[] | {
|
|
447
440
|
[key: string]: string | number | boolean | any | any | null;
|
|
@@ -466,11 +459,6 @@ export declare const SubmitAndWaitForTransaction: new (client: import("../../../
|
|
|
466
459
|
} | null)[] | {
|
|
467
460
|
[key: string]: string | number | boolean | any | any | null;
|
|
468
461
|
} | null>;
|
|
469
|
-
};
|
|
470
|
-
} | {
|
|
471
|
-
ExerciseCommand: {
|
|
472
|
-
templateId: string;
|
|
473
|
-
contractId: string;
|
|
474
462
|
choice: string;
|
|
475
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 | {
|
|
476
464
|
[key: string]: string | number | boolean | any | any | null;
|
|
@@ -498,6 +486,18 @@ export declare const SubmitAndWaitForTransaction: new (client: import("../../../
|
|
|
498
486
|
[key: string]: string | number | boolean | any | any | null;
|
|
499
487
|
} | null>;
|
|
500
488
|
};
|
|
489
|
+
} | {
|
|
490
|
+
AssignCommand: {
|
|
491
|
+
reassignmentId: string;
|
|
492
|
+
source: string;
|
|
493
|
+
target: string;
|
|
494
|
+
};
|
|
495
|
+
} | {
|
|
496
|
+
UnassignCommand: {
|
|
497
|
+
contractId: string;
|
|
498
|
+
source: string;
|
|
499
|
+
target: string;
|
|
500
|
+
};
|
|
501
501
|
})[];
|
|
502
502
|
commandId?: string | undefined;
|
|
503
503
|
actAs?: string[] | undefined;
|
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
102
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
352
|
-
|
|
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,15 @@
|
|
|
1
|
+
import { type GetContractByIdRequest, type GetContractByIdResponse } from '../../../schemas/api/contracts';
|
|
2
|
+
/** Parameters for looking up a contract by its contract ID. */
|
|
3
|
+
export type GetContractByIdParams = GetContractByIdRequest;
|
|
4
|
+
/**
|
|
5
|
+
* Looks up current contract data by contract ID.
|
|
6
|
+
*
|
|
7
|
+
* This POST endpoint is a semantic read: callers may opt into the same read retry strategies as GET operations.
|
|
8
|
+
*
|
|
9
|
+
* The pinned service synthesizes event metadata that has no ledger-event meaning. The SDK removes `offset`, `nodeId`,
|
|
10
|
+
* `createdEventBlob`, `interfaceViews`, and `acsDelta` from the public response, then binds the remaining contract and
|
|
11
|
+
* witness data to the successful request attempt. This endpoint must not be used for contracts imported through party
|
|
12
|
+
* replication or repair.
|
|
13
|
+
*/
|
|
14
|
+
export declare const GetContractById: new (client: import("../../../../..").BaseClient) => import("../../../../..").ApiOperation<GetContractByIdRequest, GetContractByIdResponse, import("../../../../..").OperationExecuteOptions<GetContractByIdRequest>>;
|
|
15
|
+
//# sourceMappingURL=get-contract-by-id.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-contract-by-id.d.ts","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/contracts/get-contract-by-id.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAC7B,MAAM,gCAAgC,CAAC;AAIxC,+DAA+D;AAC/D,MAAM,MAAM,qBAAqB,GAAG,sBAAsB,CAAC;AAE3D;;;;;;;;;GASG;AACH,eAAO,MAAM,eAAe,uNAO1B,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetContractById = void 0;
|
|
4
|
+
const core_1 = require("../../../../../core");
|
|
5
|
+
const contracts_1 = require("../../../schemas/api/contracts");
|
|
6
|
+
const endpoint = '/v2/contracts/contract-by-id';
|
|
7
|
+
/**
|
|
8
|
+
* Looks up current contract data by contract ID.
|
|
9
|
+
*
|
|
10
|
+
* This POST endpoint is a semantic read: callers may opt into the same read retry strategies as GET operations.
|
|
11
|
+
*
|
|
12
|
+
* The pinned service synthesizes event metadata that has no ledger-event meaning. The SDK removes `offset`, `nodeId`,
|
|
13
|
+
* `createdEventBlob`, `interfaceViews`, and `acsDelta` from the public response, then binds the remaining contract and
|
|
14
|
+
* witness data to the successful request attempt. This endpoint must not be used for contracts imported through party
|
|
15
|
+
* replication or repair.
|
|
16
|
+
*/
|
|
17
|
+
exports.GetContractById = (0, core_1.createApiOperation)({
|
|
18
|
+
paramsSchema: contracts_1.GetContractByIdRequestSchema,
|
|
19
|
+
responseSchema: contracts_1.createGetContractByIdResponseSchema,
|
|
20
|
+
method: 'POST',
|
|
21
|
+
requestSemantics: 'read',
|
|
22
|
+
buildUrl: (_params, apiUrl) => `${apiUrl}${endpoint}`,
|
|
23
|
+
buildRequestData: (params) => params,
|
|
24
|
+
});
|
|
25
|
+
//# sourceMappingURL=get-contract-by-id.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-contract-by-id.js","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/contracts/get-contract-by-id.ts"],"names":[],"mappings":";;;AAAA,8CAAyD;AACzD,8DAKwC;AAExC,MAAM,QAAQ,GAAG,8BAAuC,CAAC;AAKzD;;;;;;;;;GASG;AACU,QAAA,eAAe,GAAG,IAAA,yBAAkB,EAAiD;IAChG,YAAY,EAAE,wCAA4B;IAC1C,cAAc,EAAE,+CAAmC;IACnD,MAAM,EAAE,MAAM;IACd,gBAAgB,EAAE,MAAM;IACxB,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,CAAC,GAAG,MAAM,GAAG,QAAQ,EAAE;IACrD,gBAAgB,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM;CACrC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/contracts/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
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("./get-contract-by-id"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/contracts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC"}
|
|
@@ -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"}
|