@fairmint/canton-node-sdk 0.0.272 → 0.0.273
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/README.md +26 -0
- package/build/src/clients/ledger-json-api/LedgerJsonApiClient.generated.d.ts +18 -1
- 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 -0
- package/build/src/clients/ledger-json-api/LedgerJsonApiClient.generated.js.map +1 -1
- package/build/src/clients/ledger-json-api/index.d.ts +6 -1
- package/build/src/clients/ledger-json-api/index.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/index.js +9 -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.d.ts +52 -52
- package/build/src/clients/ledger-json-api/operations/v2/commands/subscribe-to-raw-completions.d.ts +66 -0
- package/build/src/clients/ledger-json-api/operations/v2/commands/subscribe-to-raw-completions.d.ts.map +1 -0
- package/build/src/clients/ledger-json-api/operations/v2/commands/subscribe-to-raw-completions.js +65 -0
- package/build/src/clients/ledger-json-api/operations/v2/commands/subscribe-to-raw-completions.js.map +1 -0
- package/build/src/clients/ledger-json-api/operations/v2/events/get-events-by-contract-id.d.ts +26 -3
- package/build/src/clients/ledger-json-api/operations/v2/events/get-events-by-contract-id.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/events/get-events-by-contract-id.js +36 -5
- package/build/src/clients/ledger-json-api/operations/v2/events/get-events-by-contract-id.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/state/active-contracts-request.d.ts +17 -3
- package/build/src/clients/ledger-json-api/operations/v2/state/active-contracts-request.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/state/active-contracts-request.js +24 -7
- package/build/src/clients/ledger-json-api/operations/v2/state/active-contracts-request.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-update-by-id.d.ts +37 -2
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-update-by-id.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-update-by-id.js +42 -23
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-update-by-id.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-updates-page.d.ts +503 -0
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-updates-page.d.ts.map +1 -0
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-updates-page.js +178 -0
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-updates-page.js.map +1 -0
- package/build/src/clients/ledger-json-api/operations/v2/updates/subscribe-to-raw-updates.d.ts +87 -0
- package/build/src/clients/ledger-json-api/operations/v2/updates/subscribe-to-raw-updates.d.ts.map +1 -0
- package/build/src/clients/ledger-json-api/operations/v2/updates/subscribe-to-raw-updates.js +99 -0
- package/build/src/clients/ledger-json-api/operations/v2/updates/subscribe-to-raw-updates.js.map +1 -0
- package/build/src/clients/ledger-json-api/operations/v2/updates/subscribe-to-updates.d.ts +31 -2
- package/build/src/clients/ledger-json-api/operations/v2/updates/subscribe-to-updates.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/updates/subscribe-to-updates.js +38 -7
- package/build/src/clients/ledger-json-api/operations/v2/updates/subscribe-to-updates.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/utils/event-format-builder.d.ts +68 -20
- package/build/src/clients/ledger-json-api/operations/v2/utils/event-format-builder.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/utils/event-format-builder.js +76 -50
- package/build/src/clients/ledger-json-api/operations/v2/utils/event-format-builder.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/utils/party-scope.d.ts +36 -0
- package/build/src/clients/ledger-json-api/operations/v2/utils/party-scope.d.ts.map +1 -0
- package/build/src/clients/ledger-json-api/operations/v2/utils/party-scope.js +45 -0
- package/build/src/clients/ledger-json-api/operations/v2/utils/party-scope.js.map +1 -0
- package/build/src/clients/ledger-json-api/operations/v2/utils/raw-frame-stream.d.ts +113 -0
- package/build/src/clients/ledger-json-api/operations/v2/utils/raw-frame-stream.d.ts.map +1 -0
- package/build/src/clients/ledger-json-api/operations/v2/utils/raw-frame-stream.js +295 -0
- package/build/src/clients/ledger-json-api/operations/v2/utils/raw-frame-stream.js.map +1 -0
- package/build/src/core/http/HttpClient.d.ts +5 -0
- package/build/src/core/http/HttpClient.d.ts.map +1 -1
- package/build/src/core/http/HttpClient.js +40 -11
- package/build/src/core/http/HttpClient.js.map +1 -1
- package/build/src/core/operations/WebSocketOperationFactory.js +1 -1
- package/build/src/core/operations/WebSocketOperationFactory.js.map +1 -1
- package/build/src/core/types.d.ts +6 -0
- package/build/src/core/types.d.ts.map +1 -1
- package/build/src/core/utils/index.d.ts +1 -0
- package/build/src/core/utils/index.d.ts.map +1 -1
- package/build/src/core/utils/index.js +7 -1
- package/build/src/core/utils/index.js.map +1 -1
- package/build/src/core/utils/lossless-json.d.ts +52 -0
- package/build/src/core/utils/lossless-json.d.ts.map +1 -0
- package/build/src/core/utils/lossless-json.js +250 -0
- package/build/src/core/utils/lossless-json.js.map +1 -0
- package/build/src/core/ws/WebSocketClient.d.ts +5 -1
- package/build/src/core/ws/WebSocketClient.d.ts.map +1 -1
- package/build/src/core/ws/WebSocketClient.js +1 -1
- package/build/src/core/ws/WebSocketClient.js.map +1 -1
- package/build/src/utils/ledger/user-rights.d.ts +46 -0
- package/build/src/utils/ledger/user-rights.d.ts.map +1 -1
- package/build/src/utils/ledger/user-rights.js +68 -0
- package/build/src/utils/ledger/user-rights.js.map +1 -1
- package/package.json +1 -1
|
@@ -11,19 +11,7 @@ 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
|
-
|
|
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: {
|
|
14
|
+
CreateCommand: {
|
|
27
15
|
templateId: string;
|
|
28
16
|
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 | {
|
|
29
17
|
[key: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
|
|
@@ -50,6 +38,11 @@ export declare const SubmitAndWait: new (client: import("../../../../..").BaseCl
|
|
|
50
38
|
} | null)[] | {
|
|
51
39
|
[key: string]: string | number | boolean | any | any | null;
|
|
52
40
|
} | null>;
|
|
41
|
+
};
|
|
42
|
+
} | {
|
|
43
|
+
ExerciseCommand: {
|
|
44
|
+
templateId: string;
|
|
45
|
+
contractId: string;
|
|
53
46
|
choice: string;
|
|
54
47
|
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 | {
|
|
55
48
|
[key: string]: string | number | boolean | any | any | null;
|
|
@@ -78,7 +71,7 @@ export declare const SubmitAndWait: new (client: import("../../../../..").BaseCl
|
|
|
78
71
|
} | null>;
|
|
79
72
|
};
|
|
80
73
|
} | {
|
|
81
|
-
|
|
74
|
+
CreateAndExerciseCommand: {
|
|
82
75
|
templateId: string;
|
|
83
76
|
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 | {
|
|
84
77
|
[key: string]: string | number | boolean | any | any | null;
|
|
@@ -105,11 +98,8 @@ export declare const SubmitAndWait: new (client: import("../../../../..").BaseCl
|
|
|
105
98
|
} | null)[] | {
|
|
106
99
|
[key: string]: string | number | boolean | any | any | null;
|
|
107
100
|
} | null>;
|
|
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 | {
|
|
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 | {
|
|
113
103
|
[key: string]: string | number | boolean | any | any | null;
|
|
114
104
|
} | null)[] | {
|
|
115
105
|
[key: string]: string | number | boolean | any | any | null;
|
|
@@ -134,8 +124,11 @@ export declare const SubmitAndWait: new (client: import("../../../../..").BaseCl
|
|
|
134
124
|
} | null)[] | {
|
|
135
125
|
[key: string]: string | number | boolean | any | any | null;
|
|
136
126
|
} | null>;
|
|
137
|
-
|
|
138
|
-
|
|
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 | {
|
|
139
132
|
[key: string]: string | number | boolean | any | any | null;
|
|
140
133
|
} | null)[] | {
|
|
141
134
|
[key: string]: string | number | boolean | any | any | null;
|
|
@@ -160,11 +153,6 @@ export declare const SubmitAndWait: new (client: import("../../../../..").BaseCl
|
|
|
160
153
|
} | null)[] | {
|
|
161
154
|
[key: string]: string | number | boolean | any | any | null;
|
|
162
155
|
} | null>;
|
|
163
|
-
};
|
|
164
|
-
} | {
|
|
165
|
-
ExerciseCommand: {
|
|
166
|
-
templateId: string;
|
|
167
|
-
contractId: string;
|
|
168
156
|
choice: string;
|
|
169
157
|
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 | {
|
|
170
158
|
[key: string]: string | number | boolean | any | any | null;
|
|
@@ -192,6 +180,18 @@ export declare const SubmitAndWait: new (client: import("../../../../..").BaseCl
|
|
|
192
180
|
[key: string]: string | number | boolean | any | any | null;
|
|
193
181
|
} | null>;
|
|
194
182
|
};
|
|
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;
|
|
@@ -264,19 +264,7 @@ export declare const SubmitAndWait: new (client: import("../../../../..").BaseCl
|
|
|
264
264
|
completionOffset: number;
|
|
265
265
|
}, import("../../../../..").OperationExecuteOptions<{
|
|
266
266
|
commands: ({
|
|
267
|
-
|
|
268
|
-
reassignmentId: string;
|
|
269
|
-
source: string;
|
|
270
|
-
target: string;
|
|
271
|
-
};
|
|
272
|
-
} | {
|
|
273
|
-
UnassignCommand: {
|
|
274
|
-
contractId: string;
|
|
275
|
-
source: string;
|
|
276
|
-
target: string;
|
|
277
|
-
};
|
|
278
|
-
} | {
|
|
279
|
-
CreateAndExerciseCommand: {
|
|
267
|
+
CreateCommand: {
|
|
280
268
|
templateId: string;
|
|
281
269
|
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 | {
|
|
282
270
|
[key: string]: string | number | boolean | any | any | null;
|
|
@@ -303,6 +291,11 @@ export declare const SubmitAndWait: new (client: import("../../../../..").BaseCl
|
|
|
303
291
|
} | null)[] | {
|
|
304
292
|
[key: string]: string | number | boolean | any | any | null;
|
|
305
293
|
} | null>;
|
|
294
|
+
};
|
|
295
|
+
} | {
|
|
296
|
+
ExerciseCommand: {
|
|
297
|
+
templateId: string;
|
|
298
|
+
contractId: string;
|
|
306
299
|
choice: string;
|
|
307
300
|
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 | {
|
|
308
301
|
[key: string]: string | number | boolean | any | any | null;
|
|
@@ -331,7 +324,7 @@ export declare const SubmitAndWait: new (client: import("../../../../..").BaseCl
|
|
|
331
324
|
} | null>;
|
|
332
325
|
};
|
|
333
326
|
} | {
|
|
334
|
-
|
|
327
|
+
CreateAndExerciseCommand: {
|
|
335
328
|
templateId: string;
|
|
336
329
|
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 | {
|
|
337
330
|
[key: string]: string | number | boolean | any | any | null;
|
|
@@ -358,11 +351,8 @@ export declare const SubmitAndWait: new (client: import("../../../../..").BaseCl
|
|
|
358
351
|
} | null)[] | {
|
|
359
352
|
[key: string]: string | number | boolean | any | any | null;
|
|
360
353
|
} | null>;
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
ExerciseByKeyCommand: {
|
|
364
|
-
templateId: string;
|
|
365
|
-
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 | {
|
|
354
|
+
choice: string;
|
|
355
|
+
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 | {
|
|
366
356
|
[key: string]: string | number | boolean | any | any | null;
|
|
367
357
|
} | null)[] | {
|
|
368
358
|
[key: string]: string | number | boolean | any | any | null;
|
|
@@ -387,8 +377,11 @@ export declare const SubmitAndWait: new (client: import("../../../../..").BaseCl
|
|
|
387
377
|
} | null)[] | {
|
|
388
378
|
[key: string]: string | number | boolean | any | any | null;
|
|
389
379
|
} | null>;
|
|
390
|
-
|
|
391
|
-
|
|
380
|
+
};
|
|
381
|
+
} | {
|
|
382
|
+
ExerciseByKeyCommand: {
|
|
383
|
+
templateId: string;
|
|
384
|
+
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 | {
|
|
392
385
|
[key: string]: string | number | boolean | any | any | null;
|
|
393
386
|
} | null)[] | {
|
|
394
387
|
[key: string]: string | number | boolean | any | any | null;
|
|
@@ -413,11 +406,6 @@ export declare const SubmitAndWait: new (client: import("../../../../..").BaseCl
|
|
|
413
406
|
} | null)[] | {
|
|
414
407
|
[key: string]: string | number | boolean | any | any | null;
|
|
415
408
|
} | null>;
|
|
416
|
-
};
|
|
417
|
-
} | {
|
|
418
|
-
ExerciseCommand: {
|
|
419
|
-
templateId: string;
|
|
420
|
-
contractId: string;
|
|
421
409
|
choice: string;
|
|
422
410
|
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 | {
|
|
423
411
|
[key: string]: string | number | boolean | any | any | null;
|
|
@@ -445,6 +433,18 @@ export declare const SubmitAndWait: new (client: import("../../../../..").BaseCl
|
|
|
445
433
|
[key: string]: string | number | boolean | any | any | null;
|
|
446
434
|
} | null>;
|
|
447
435
|
};
|
|
436
|
+
} | {
|
|
437
|
+
AssignCommand: {
|
|
438
|
+
reassignmentId: string;
|
|
439
|
+
source: string;
|
|
440
|
+
target: string;
|
|
441
|
+
};
|
|
442
|
+
} | {
|
|
443
|
+
UnassignCommand: {
|
|
444
|
+
contractId: string;
|
|
445
|
+
source: string;
|
|
446
|
+
target: string;
|
|
447
|
+
};
|
|
448
448
|
})[];
|
|
449
449
|
commandId?: string | undefined;
|
|
450
450
|
actAs?: string[] | undefined;
|
package/build/src/clients/ledger-json-api/operations/v2/commands/subscribe-to-raw-completions.d.ts
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { type WebSocketOptions } from '../../../../../core/ws/WebSocketClient';
|
|
2
|
+
import type { LedgerJsonApiClient } from '../../../LedgerJsonApiClient.generated';
|
|
3
|
+
import { type RawFrame, type RawStreamSubscription } from '../utils/raw-frame-stream';
|
|
4
|
+
/** The completion response kinds the Ledger API sends on `/v2/commands/completions`. */
|
|
5
|
+
export type RawCompletionKind = 'Completion' | 'Empty' | 'OffsetCheckpoint';
|
|
6
|
+
/**
|
|
7
|
+
* One `/v2/commands/completions` frame exactly as the participant sent it: `{ "completionResponse": { "<kind>": {
|
|
8
|
+
* "value": { ... } } } }`. A `Completion` carries `commandId`, `userId`, `actAs`, `submissionId`, `status`, `updateId`,
|
|
9
|
+
* `offset`, `synchronizerTime`, `paidTrafficCost`, the deduplication period and `traceContext`.
|
|
10
|
+
*/
|
|
11
|
+
export type RawCompletionFrame = RawFrame<RawCompletionKind>;
|
|
12
|
+
export interface SubscribeToRawCompletionsParams {
|
|
13
|
+
/**
|
|
14
|
+
* The user whose submissions to read. Completions are stored per user and the participant returns only those of the
|
|
15
|
+
* exact user id asked for. A user with `CanReadAsAnyParty` may read any user's completions; others only their own.
|
|
16
|
+
*/
|
|
17
|
+
readonly userId: string;
|
|
18
|
+
/**
|
|
19
|
+
* Parties to read for; required and non-empty, as the Ledger API demands. The participant drops a completion none of
|
|
20
|
+
* whose `actAs` parties is listed, and trims `actAs` to the listed parties, so a reader that needs every completion
|
|
21
|
+
* with its full `actAs` lists every party that can submit on the participant. There is no client-party fallback.
|
|
22
|
+
*/
|
|
23
|
+
readonly parties: readonly string[];
|
|
24
|
+
/** Read completions after this offset. Pass the subscription's `lastOffset` to resume. */
|
|
25
|
+
readonly beginExclusive: number;
|
|
26
|
+
/**
|
|
27
|
+
* Called for each frame, one at a time, in the order received; the next frame waits until the returned promise
|
|
28
|
+
* resolves. Throwing ends the stream: `done` rejects with that error and `lastOffset` stays at the frame before.
|
|
29
|
+
*/
|
|
30
|
+
readonly onFrame: (frame: RawCompletionFrame) => void | Promise<void>;
|
|
31
|
+
/** End the stream with an error when no frame arrives for this many milliseconds (default `0`, never). */
|
|
32
|
+
readonly idleTimeoutMs?: number;
|
|
33
|
+
/** Called when the access token is about to expire, before the stream ends with reason `token-refresh`. */
|
|
34
|
+
readonly onTokenExpiring?: WebSocketOptions['onTokenExpiring'];
|
|
35
|
+
/** Called just before the stream closes for a token refresh; it may return the close code and reason. */
|
|
36
|
+
readonly onTokenRefreshNeeded?: WebSocketOptions['onTokenRefreshNeeded'];
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Streams `/v2/commands/completions` frames for one user exactly as the participant sends them: completions (accepted
|
|
40
|
+
* and rejected), offset checkpoints and empty responses, each with its text, its `JSON.parse` value (checked to keep
|
|
41
|
+
* every number and key), its kind and its offset.
|
|
42
|
+
*
|
|
43
|
+
* Unlike `subscribeToCompletions`, it takes no defaults: `userId` and a non-empty `parties` list are required, and
|
|
44
|
+
* neither falls back to the client's configuration. Ordering, back-pressure, `lastOffset`, token refresh and how `done`
|
|
45
|
+
* settles are those of `subscribeToRawUpdates`.
|
|
46
|
+
*
|
|
47
|
+
* A reader with `CanReadAsAnyParty` reads every user's completions by opening one stream per user id (`listUsers` lists
|
|
48
|
+
* them and needs admin rights), each with every party that can submit on the participant.
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* ```typescript
|
|
52
|
+
* const stream = client.subscribeToRawCompletions({
|
|
53
|
+
* userId: 'ta-service',
|
|
54
|
+
* parties: hostedParties,
|
|
55
|
+
* beginExclusive: cursor,
|
|
56
|
+
* onFrame: async (frame) => storeCompletion(frame.kind, frame.offset, frame.json),
|
|
57
|
+
* });
|
|
58
|
+
* await stream.done;
|
|
59
|
+
* ```;
|
|
60
|
+
*/
|
|
61
|
+
export declare class SubscribeToRawCompletions {
|
|
62
|
+
private readonly client;
|
|
63
|
+
constructor(client: LedgerJsonApiClient);
|
|
64
|
+
connect(params: SubscribeToRawCompletionsParams): RawStreamSubscription;
|
|
65
|
+
}
|
|
66
|
+
//# sourceMappingURL=subscribe-to-raw-completions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscribe-to-raw-completions.d.ts","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/commands/subscribe-to-raw-completions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAC/E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAClF,OAAO,EAAsB,KAAK,QAAQ,EAAE,KAAK,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAI1G,wFAAwF;AACxF,MAAM,MAAM,iBAAiB,GAAG,YAAY,GAAG,OAAO,GAAG,kBAAkB,CAAC;AAK5E;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAAG,QAAQ,CAAC,iBAAiB,CAAC,CAAC;AAS7D,MAAM,WAAW,+BAA+B;IAC9C;;;OAGG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;IACpC,0FAA0F;IAC1F,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC;;;OAGG;IACH,QAAQ,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACtE,0GAA0G;IAC1G,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;IAChC,2GAA2G;IAC3G,QAAQ,CAAC,eAAe,CAAC,EAAE,gBAAgB,CAAC,iBAAiB,CAAC,CAAC;IAC/D,yGAAyG;IACzG,QAAQ,CAAC,oBAAoB,CAAC,EAAE,gBAAgB,CAAC,sBAAsB,CAAC,CAAC;CAC1E;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,qBAAa,yBAAyB;IACxB,OAAO,CAAC,QAAQ,CAAC,MAAM;IAAnC,YAA6B,MAAM,EAAE,mBAAmB,EAAI;IAErD,OAAO,CAAC,MAAM,EAAE,+BAA+B,GAAG,qBAAqB,CAsB7E;CACF"}
|
package/build/src/clients/ledger-json-api/operations/v2/commands/subscribe-to-raw-completions.js
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SubscribeToRawCompletions = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const errors_1 = require("../../../../../core/errors");
|
|
6
|
+
const raw_frame_stream_1 = require("../utils/raw-frame-stream");
|
|
7
|
+
const path = '/v2/commands/completions';
|
|
8
|
+
/** Completions and checkpoints carry `value.offset`; `Empty` does not. */
|
|
9
|
+
const OFFSET_KINDS = ['Completion', 'OffsetCheckpoint'];
|
|
10
|
+
const SubscribeToRawCompletionsParamsSchema = zod_1.z.object({
|
|
11
|
+
userId: zod_1.z.string().min(1, 'userId must be a non-empty string'),
|
|
12
|
+
parties: zod_1.z.array(zod_1.z.string().min(1, 'each party must be a non-empty string')).min(1, 'parties must not be empty'),
|
|
13
|
+
beginExclusive: zod_1.z.number().int().min(0),
|
|
14
|
+
idleTimeoutMs: zod_1.z.number().min(0).optional(),
|
|
15
|
+
});
|
|
16
|
+
/**
|
|
17
|
+
* Streams `/v2/commands/completions` frames for one user exactly as the participant sends them: completions (accepted
|
|
18
|
+
* and rejected), offset checkpoints and empty responses, each with its text, its `JSON.parse` value (checked to keep
|
|
19
|
+
* every number and key), its kind and its offset.
|
|
20
|
+
*
|
|
21
|
+
* Unlike `subscribeToCompletions`, it takes no defaults: `userId` and a non-empty `parties` list are required, and
|
|
22
|
+
* neither falls back to the client's configuration. Ordering, back-pressure, `lastOffset`, token refresh and how `done`
|
|
23
|
+
* settles are those of `subscribeToRawUpdates`.
|
|
24
|
+
*
|
|
25
|
+
* A reader with `CanReadAsAnyParty` reads every user's completions by opening one stream per user id (`listUsers` lists
|
|
26
|
+
* them and needs admin rights), each with every party that can submit on the participant.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```typescript
|
|
30
|
+
* const stream = client.subscribeToRawCompletions({
|
|
31
|
+
* userId: 'ta-service',
|
|
32
|
+
* parties: hostedParties,
|
|
33
|
+
* beginExclusive: cursor,
|
|
34
|
+
* onFrame: async (frame) => storeCompletion(frame.kind, frame.offset, frame.json),
|
|
35
|
+
* });
|
|
36
|
+
* await stream.done;
|
|
37
|
+
* ```;
|
|
38
|
+
*/
|
|
39
|
+
class SubscribeToRawCompletions {
|
|
40
|
+
constructor(client) {
|
|
41
|
+
this.client = client;
|
|
42
|
+
}
|
|
43
|
+
connect(params) {
|
|
44
|
+
const validated = SubscribeToRawCompletionsParamsSchema.safeParse(params);
|
|
45
|
+
if (!validated.success) {
|
|
46
|
+
throw new errors_1.ValidationError(`Parameter validation failed: ${validated.error.issues.map((e) => `${e.path.join('.')}: ${e.message}`).join(', ')}`);
|
|
47
|
+
}
|
|
48
|
+
const { userId, parties, beginExclusive, idleTimeoutMs } = validated.data;
|
|
49
|
+
return (0, raw_frame_stream_1.openRawFrameStream)({
|
|
50
|
+
client: this.client,
|
|
51
|
+
name: 'completions',
|
|
52
|
+
path,
|
|
53
|
+
request: { userId, parties, beginExclusive },
|
|
54
|
+
beginExclusive,
|
|
55
|
+
dataKey: 'completionResponse',
|
|
56
|
+
offsetKinds: OFFSET_KINDS,
|
|
57
|
+
onFrame: params.onFrame,
|
|
58
|
+
idleTimeoutMs,
|
|
59
|
+
onTokenExpiring: params.onTokenExpiring,
|
|
60
|
+
onTokenRefreshNeeded: params.onTokenRefreshNeeded,
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
exports.SubscribeToRawCompletions = SubscribeToRawCompletions;
|
|
65
|
+
//# sourceMappingURL=subscribe-to-raw-completions.js.map
|
package/build/src/clients/ledger-json-api/operations/v2/commands/subscribe-to-raw-completions.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscribe-to-raw-completions.js","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/commands/subscribe-to-raw-completions.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,uDAA6D;AAG7D,gEAA0G;AAE1G,MAAM,IAAI,GAAG,0BAAmC,CAAC;AAKjD,0EAA0E;AAC1E,MAAM,YAAY,GAAiC,CAAC,YAAY,EAAE,kBAAkB,CAAC,CAAC;AAStF,MAAM,qCAAqC,GAAG,OA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EAAE;YAC5C,cAAc;YACd,OAAO,EAAE,oBAAoB;YAC7B,WAAW,EAAE,YAAY;YACzB,OAAO,EAAE,MAAM,CAAC,OAAO;YACvB,aAAa;YACb,eAAe,EAAE,MAAM,CAAC,eAAe;YACvC,oBAAoB,EAAE,MAAM,CAAC,oBAAoB;SAClD,CAAC,CAAC;IACL,CAAC;CACF"}
|
package/build/src/clients/ledger-json-api/operations/v2/events/get-events-by-contract-id.d.ts
CHANGED
|
@@ -1,15 +1,27 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import type { paths } from '../../../../../generated/canton/community/ledger/ledger-json-api/src/test/resources/json-api-docs/openapi';
|
|
3
3
|
declare const endpoint = "/v2/events/events-by-contract-id";
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
* Either `readAs` (optional; the client's party is always added) or `anyParty: true` (every party the participant
|
|
6
|
+
* hosts, through `filtersForAnyParty`; needs `CanReadAsAnyParty`), never both.
|
|
7
|
+
*/
|
|
8
|
+
export declare const EventsByContractIdParamsSchema: z.ZodPipe<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5
9
|
contractId: z.ZodString;
|
|
6
10
|
readAs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
7
|
-
|
|
11
|
+
anyParty: z.ZodOptional<z.ZodUndefined>;
|
|
12
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
13
|
+
contractId: z.ZodString;
|
|
14
|
+
anyParty: z.ZodLiteral<true>;
|
|
15
|
+
readAs: z.ZodOptional<z.ZodUndefined>;
|
|
16
|
+
}, z.core.$strip>], "anyParty">>;
|
|
8
17
|
export type EventsByContractIdParams = z.infer<typeof EventsByContractIdParamsSchema>;
|
|
9
18
|
export type EventsByContractIdRequest = paths[typeof endpoint]['post']['requestBody']['content']['application/json'];
|
|
10
19
|
export type EventsByContractIdResponse = paths[typeof endpoint]['post']['responses']['200']['content']['application/json'];
|
|
11
20
|
/**
|
|
12
|
-
* Retrieves events for a specific contract ID with filtering options
|
|
21
|
+
* Retrieves events for a specific contract ID with filtering options.
|
|
22
|
+
*
|
|
23
|
+
* Reads as the client's party plus `readAs`, or, with `anyParty: true`, as every party the participant hosts (which
|
|
24
|
+
* needs the `CanReadAsAnyParty` right and does not need a configured client party).
|
|
13
25
|
*
|
|
14
26
|
* @example
|
|
15
27
|
* ```typescript
|
|
@@ -17,17 +29,28 @@ export type EventsByContractIdResponse = paths[typeof endpoint]['post']['respons
|
|
|
17
29
|
* contractId: 'contract-123',
|
|
18
30
|
* readAs: ['party1', 'party2']
|
|
19
31
|
* });
|
|
32
|
+
* const everyPartysView = await client.getEventsByContractId({ contractId: 'contract-123', anyParty: true });
|
|
20
33
|
* ```;
|
|
21
34
|
*/
|
|
22
35
|
export declare const GetEventsByContractId: new (client: import("../../../../..").BaseClient) => import("../../../../..").ApiOperation<{
|
|
23
36
|
contractId: string;
|
|
24
37
|
readAs?: string[] | undefined;
|
|
38
|
+
anyParty?: undefined;
|
|
39
|
+
} | {
|
|
40
|
+
contractId: string;
|
|
41
|
+
anyParty: true;
|
|
42
|
+
readAs?: undefined;
|
|
25
43
|
}, {
|
|
26
44
|
created?: import("../../../../../generated/canton/community/ledger/ledger-json-api/src/test/resources/json-api-docs/openapi").components["schemas"]["JsCreated"];
|
|
27
45
|
archived?: import("../../../../../generated/canton/community/ledger/ledger-json-api/src/test/resources/json-api-docs/openapi").components["schemas"]["JsArchived"];
|
|
28
46
|
}, import("../../../../..").OperationExecuteOptions<{
|
|
29
47
|
contractId: string;
|
|
30
48
|
readAs?: string[] | undefined;
|
|
49
|
+
anyParty?: undefined;
|
|
50
|
+
} | {
|
|
51
|
+
contractId: string;
|
|
52
|
+
anyParty: true;
|
|
53
|
+
readAs?: undefined;
|
|
31
54
|
}>>;
|
|
32
55
|
export {};
|
|
33
56
|
//# sourceMappingURL=get-events-by-contract-id.d.ts.map
|
package/build/src/clients/ledger-json-api/operations/v2/events/get-events-by-contract-id.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-events-by-contract-id.d.ts","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/events/get-events-by-contract-id.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2GAA2G,CAAC;
|
|
1
|
+
{"version":3,"file":"get-events-by-contract-id.d.ts","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/events/get-events-by-contract-id.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2GAA2G,CAAC;AAGvI,QAAA,MAAM,QAAQ,qCAAqC,CAAC;AAEpD;;;GAGG;AACH,eAAO,MAAM,8BAA8B;;;;;;;;gCAe1C,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AAEtF,MAAM,MAAM,yBAAyB,GAAG,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAAC;AACrH,MAAM,MAAM,0BAA0B,GACpC,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAAC;AAEpF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;GAgChC,CAAC"}
|
|
@@ -3,13 +3,31 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.GetEventsByContractId = exports.EventsByContractIdParamsSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const core_1 = require("../../../../../core");
|
|
6
|
+
const party_scope_1 = require("../utils/party-scope");
|
|
6
7
|
const endpoint = '/v2/events/events-by-contract-id';
|
|
7
|
-
exports.EventsByContractIdParamsSchema = zod_1.z.object({
|
|
8
|
-
contractId: zod_1.z.string(),
|
|
9
|
-
readAs: zod_1.z.array(zod_1.z.string()).optional(),
|
|
10
|
-
});
|
|
11
8
|
/**
|
|
12
|
-
*
|
|
9
|
+
* Either `readAs` (optional; the client's party is always added) or `anyParty: true` (every party the participant
|
|
10
|
+
* hosts, through `filtersForAnyParty`; needs `CanReadAsAnyParty`), never both.
|
|
11
|
+
*/
|
|
12
|
+
exports.EventsByContractIdParamsSchema = (0, party_scope_1.partyScopeGuard)('readAs').pipe(zod_1.z.discriminatedUnion('anyParty', [
|
|
13
|
+
zod_1.z.object({
|
|
14
|
+
contractId: zod_1.z.string(),
|
|
15
|
+
/** Parties to read as, in addition to the client's party. */
|
|
16
|
+
readAs: zod_1.z.array(zod_1.z.string()).optional(),
|
|
17
|
+
anyParty: zod_1.z.undefined().optional(),
|
|
18
|
+
}),
|
|
19
|
+
zod_1.z.object({
|
|
20
|
+
contractId: zod_1.z.string(),
|
|
21
|
+
/** Read as every party the participant hosts. Needs the `CanReadAsAnyParty` right. */
|
|
22
|
+
anyParty: zod_1.z.literal(true),
|
|
23
|
+
readAs: zod_1.z.undefined().optional(),
|
|
24
|
+
}),
|
|
25
|
+
]));
|
|
26
|
+
/**
|
|
27
|
+
* Retrieves events for a specific contract ID with filtering options.
|
|
28
|
+
*
|
|
29
|
+
* Reads as the client's party plus `readAs`, or, with `anyParty: true`, as every party the participant hosts (which
|
|
30
|
+
* needs the `CanReadAsAnyParty` right and does not need a configured client party).
|
|
13
31
|
*
|
|
14
32
|
* @example
|
|
15
33
|
* ```typescript
|
|
@@ -17,6 +35,7 @@ exports.EventsByContractIdParamsSchema = zod_1.z.object({
|
|
|
17
35
|
* contractId: 'contract-123',
|
|
18
36
|
* readAs: ['party1', 'party2']
|
|
19
37
|
* });
|
|
38
|
+
* const everyPartysView = await client.getEventsByContractId({ contractId: 'contract-123', anyParty: true });
|
|
20
39
|
* ```;
|
|
21
40
|
*/
|
|
22
41
|
exports.GetEventsByContractId = (0, core_1.createApiOperation)({
|
|
@@ -25,6 +44,18 @@ exports.GetEventsByContractId = (0, core_1.createApiOperation)({
|
|
|
25
44
|
requestSemantics: 'read',
|
|
26
45
|
buildUrl: (_params, apiUrl) => `${apiUrl}${endpoint}`,
|
|
27
46
|
buildRequestData: (params, client) => {
|
|
47
|
+
if (params.anyParty === true) {
|
|
48
|
+
return {
|
|
49
|
+
contractId: params.contractId,
|
|
50
|
+
eventFormat: {
|
|
51
|
+
verbose: true,
|
|
52
|
+
filtersByParty: {},
|
|
53
|
+
filtersForAnyParty: {
|
|
54
|
+
cumulative: [{ identifierFilter: { WildcardFilter: { value: { includeCreatedEventBlob: true } } } }],
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
};
|
|
58
|
+
}
|
|
28
59
|
const readParties = [...new Set([client.getPartyId(), ...(params.readAs ?? [])])];
|
|
29
60
|
return {
|
|
30
61
|
contractId: params.contractId,
|
package/build/src/clients/ledger-json-api/operations/v2/events/get-events-by-contract-id.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-events-by-contract-id.js","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/events/get-events-by-contract-id.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,8CAAyD;
|
|
1
|
+
{"version":3,"file":"get-events-by-contract-id.js","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/events/get-events-by-contract-id.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,8CAAyD;AAEzD,sDAAuD;AAEvD,MAAM,QAAQ,GAAG,kCAAkC,CAAC;AAEpD;;;GAGG;AACU,QAAA,8BAA8B,GAAG,IAAA,6BAAe,EAAC,Q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CAAC;QACD,MAAM,WAAW,GAAG,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC,MAAM,CAAC,UAAU,EAAE,EAAE,GAAG,CAAC,MAAM,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;QAClF,OAAO;YACL,UAAU,EAAE,MAAM,CAAC,UAAU;YAC7B,WAAW,EAAE;gBACX,OAAO,EAAE,IAAI;gBACb,cAAc,EAAE,MAAM,CAAC,WAAW,CAChC,WAAW,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC;oBACzB,KAAK;oBACL,EAAE,UAAU,EAAE,CAAC,EAAE,gBAAgB,EAAE,EAAE,cAAc,EAAE,EAAE,KAAK,EAAE,EAAE,uBAAuB,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE;iBACzG,CAAC,CACH;aACF;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -5,15 +5,29 @@ import { type JsGetActiveContractsResponseItem } from '../../../schemas/api/stat
|
|
|
5
5
|
import { buildEventFormat } from '../utils/event-format-builder';
|
|
6
6
|
/** WebSocket endpoint shared by the collecting and the streaming active-contracts reads. */
|
|
7
7
|
export declare const ACTIVE_CONTRACTS_PATH: '/v2/state/active-contracts';
|
|
8
|
-
|
|
8
|
+
/**
|
|
9
|
+
* Either `parties` (optional; an empty or missing list falls back to the client's party list) or `anyParty: true`
|
|
10
|
+
* (every party the participant hosts, through `filtersForAnyParty`; needs `CanReadAsAnyParty`), never both.
|
|
11
|
+
*/
|
|
12
|
+
export declare const ActiveContractsParamsSchema: z.ZodPipe<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
13
|
+
templateIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
14
|
+
interfaceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
15
|
+
includeInterfaceView: z.ZodOptional<z.ZodBoolean>;
|
|
16
|
+
includeCreatedEventBlob: z.ZodOptional<z.ZodBoolean>;
|
|
17
|
+
activeAtOffset: z.ZodOptional<z.ZodNumber>;
|
|
18
|
+
idleTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
9
19
|
parties: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
20
|
+
anyParty: z.ZodOptional<z.ZodUndefined>;
|
|
21
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
10
22
|
templateIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
11
23
|
interfaceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
12
24
|
includeInterfaceView: z.ZodOptional<z.ZodBoolean>;
|
|
13
25
|
includeCreatedEventBlob: z.ZodOptional<z.ZodBoolean>;
|
|
14
26
|
activeAtOffset: z.ZodOptional<z.ZodNumber>;
|
|
15
27
|
idleTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
16
|
-
|
|
28
|
+
anyParty: z.ZodLiteral<true>;
|
|
29
|
+
parties: z.ZodOptional<z.ZodUndefined>;
|
|
30
|
+
}, z.core.$strip>], "anyParty">>;
|
|
17
31
|
export type ActiveContractsParams = z.infer<typeof ActiveContractsParamsSchema>;
|
|
18
32
|
/** Request message for the active contracts WebSocket endpoint. */
|
|
19
33
|
export interface ActiveContractsRequestMessage {
|
|
@@ -27,7 +41,7 @@ export interface ActiveContractsRequest {
|
|
|
27
41
|
}
|
|
28
42
|
/**
|
|
29
43
|
* Validates the parameters and builds the snapshot request. The offset defaults to the ledger end and the parties to
|
|
30
|
-
* the client's party list.
|
|
44
|
+
* the client's party list; `anyParty: true` reads every party's contracts instead.
|
|
31
45
|
*/
|
|
32
46
|
export declare function buildActiveContractsRequest(client: LedgerJsonApiClient, params: ActiveContractsParams): Promise<ActiveContractsRequest>;
|
|
33
47
|
/** One decoded snapshot frame: an item, or the error that a Canton error frame or an unexpected frame stands for. */
|
package/build/src/clients/ledger-json-api/operations/v2/state/active-contracts-request.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"active-contracts-request.d.ts","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/state/active-contracts-request.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAEtD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAOlF,OAAO,EAEL,KAAK,gCAAgC,EACtC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"active-contracts-request.d.ts","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/state/active-contracts-request.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAEtD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAOlF,OAAO,EAEL,KAAK,gCAAgC,EACtC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAGjE,4FAA4F;AAC5F,eAAO,MAAM,qBAAqB,EAAG,4BAAqC,CAAC;AA+B3E;;;GAGG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;gCAavC,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF,mEAAmE;AACnE,MAAM,WAAW,6BAA6B;IAC5C,OAAO,EAAE,OAAO,CAAC;IACjB,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC;CAClD;AAED,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,cAAc,EAAE,6BAA6B,CAAC;IACvD,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;CAChC;AAED;;;GAGG;AACH,wBAAsB,2BAA2B,CAC/C,MAAM,EAAE,mBAAmB,EAC3B,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,sBAAsB,CAAC,CA2CjC;AAQD,qHAAqH;AACrH,MAAM,MAAM,oBAAoB,GAAG;IAAE,QAAQ,CAAC,IAAI,EAAE,gCAAgC,CAAA;CAAE,GAAG;IAAE,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAA;CAAE,CAAC;AAkBtH;;;;;;;GAOG;AACH,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,QAAQ,GAAG,SAAS,CAK5F;AAED,wBAAgB,0BAA0B,CAAC,MAAM,EAAE,OAAO,GAAG,oBAAoB,CAShF"}
|
|
@@ -10,6 +10,7 @@ const HttpClient_1 = require("../../../../../core/http/HttpClient");
|
|
|
10
10
|
const errors_2 = require("../../../schemas/api/errors");
|
|
11
11
|
const state_1 = require("../../../schemas/api/state");
|
|
12
12
|
const event_format_builder_1 = require("../utils/event-format-builder");
|
|
13
|
+
const party_scope_1 = require("../utils/party-scope");
|
|
13
14
|
/** WebSocket endpoint shared by the collecting and the streaming active-contracts reads. */
|
|
14
15
|
exports.ACTIVE_CONTRACTS_PATH = '/v2/state/active-contracts';
|
|
15
16
|
/**
|
|
@@ -22,9 +23,7 @@ exports.ACTIVE_CONTRACTS_PATH = '/v2/state/active-contracts';
|
|
|
22
23
|
* connection at the same "this is clearly stuck" horizon.
|
|
23
24
|
*/
|
|
24
25
|
const DEFAULT_IDLE_TIMEOUT_MS = HttpClient_1.DEFAULT_HTTP_TIMEOUT_MS;
|
|
25
|
-
|
|
26
|
-
/** Optional list of parties to scope the filter. */
|
|
27
|
-
parties: zod_1.z.array(zod_1.z.string()).optional(),
|
|
26
|
+
const ActiveContractsFilterSchema = zod_1.z.object({
|
|
28
27
|
/** Optional template filters applied server-side. */
|
|
29
28
|
templateIds: zod_1.z.array(zod_1.z.string()).optional(),
|
|
30
29
|
/** Optional interface filters applied server-side. */
|
|
@@ -41,9 +40,25 @@ exports.ActiveContractsParamsSchema = zod_1.z.object({
|
|
|
41
40
|
/** Fail the snapshot when no message arrives for this many milliseconds. `0` waits indefinitely. */
|
|
42
41
|
idleTimeoutMs: zod_1.z.number().min(0).optional(),
|
|
43
42
|
});
|
|
43
|
+
/**
|
|
44
|
+
* Either `parties` (optional; an empty or missing list falls back to the client's party list) or `anyParty: true`
|
|
45
|
+
* (every party the participant hosts, through `filtersForAnyParty`; needs `CanReadAsAnyParty`), never both.
|
|
46
|
+
*/
|
|
47
|
+
exports.ActiveContractsParamsSchema = (0, party_scope_1.partyScopeGuard)('parties').pipe(zod_1.z.discriminatedUnion('anyParty', [
|
|
48
|
+
ActiveContractsFilterSchema.extend({
|
|
49
|
+
/** Optional list of parties to scope the filter. Defaults to the client's party list. */
|
|
50
|
+
parties: zod_1.z.array(zod_1.z.string()).optional(),
|
|
51
|
+
anyParty: zod_1.z.undefined().optional(),
|
|
52
|
+
}),
|
|
53
|
+
ActiveContractsFilterSchema.extend({
|
|
54
|
+
/** Read the contracts of every party the participant hosts. Needs the `CanReadAsAnyParty` right. */
|
|
55
|
+
anyParty: zod_1.z.literal(true),
|
|
56
|
+
parties: zod_1.z.undefined().optional(),
|
|
57
|
+
}),
|
|
58
|
+
]));
|
|
44
59
|
/**
|
|
45
60
|
* Validates the parameters and builds the snapshot request. The offset defaults to the ledger end and the parties to
|
|
46
|
-
* the client's party list.
|
|
61
|
+
* the client's party list; `anyParty: true` reads every party's contracts instead.
|
|
47
62
|
*/
|
|
48
63
|
async function buildActiveContractsRequest(client, params) {
|
|
49
64
|
const validated = exports.ActiveContractsParamsSchema.parse(params);
|
|
@@ -60,11 +75,13 @@ async function buildActiveContractsRequest(client, params) {
|
|
|
60
75
|
}
|
|
61
76
|
activeAtOffset = offset;
|
|
62
77
|
}
|
|
63
|
-
//
|
|
64
|
-
const
|
|
78
|
+
// Whose contracts to read: every party (anyParty), or the given parties, defaulting to the client's party list.
|
|
79
|
+
const scope = validated.anyParty === true
|
|
80
|
+
? { anyParty: true }
|
|
81
|
+
: { parties: validated.parties && validated.parties.length > 0 ? validated.parties : client.buildPartyList() };
|
|
65
82
|
// Build event format
|
|
66
83
|
const eventFormat = (0, event_format_builder_1.buildEventFormat)({
|
|
67
|
-
|
|
84
|
+
...scope,
|
|
68
85
|
...(validated.templateIds !== undefined && { templateIds: validated.templateIds }),
|
|
69
86
|
...(validated.interfaceIds !== undefined && { interfaceIds: validated.interfaceIds }),
|
|
70
87
|
...(validated.includeInterfaceView !== undefined && {
|
package/build/src/clients/ledger-json-api/operations/v2/state/active-contracts-request.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"active-contracts-request.js","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/state/active-contracts-request.ts"],"names":[],"mappings":";;;;;;AAAA,6BAAwB;AACxB,uDAAsD;AACtD,oEAA8E;AAE9E,wDAKqC;AACrC,sDAGoC;AACpC,wEAAiE;
|
|
1
|
+
{"version":3,"file":"active-contracts-request.js","sourceRoot":"","sources":["../../../../../../../src/clients/ledger-json-api/operations/v2/state/active-contracts-request.ts"],"names":[],"mappings":";;;;;;AAAA,6BAAwB;AACxB,uDAAsD;AACtD,oEAA8E;AAE9E,wDAKqC;AACrC,sDAGoC;AACpC,wEAAiE;AACjE,sDAAwE;AAExE,4FAA4F;AAC/E,QAAA,qBAAqB,GAAG,4BAAqC,CAAC;AAE3E;;;;;;;;GAQG;AACH,MAAM,uBAAuB,GAAG,oCAAuB,CAAC;AAExD,MAAM,2BAA2B,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3C,qDAAqD;IACrD,WAAW,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,Q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