@canton-network/core-splice-client 1.12.1 → 1.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -526,7 +526,11 @@ export interface paths {
526
526
  get?: never;
527
527
  put?: never;
528
528
  /**
529
- * @description Returns the ACS in creation date ascending order, paged, for a given migration id and record time.
529
+ * @deprecated
530
+ * @description Deprecated. Please use /v2/state/acs instead.
531
+ * The only difference with this endpoint and that one is the type of the `after`/`next_page_token` pagination token.
532
+ *
533
+ * Returns the ACS in creation date ascending order, paged, for a given migration id and record time.
530
534
  * Unlike /v0/state/acs, every contract is identified by an (optional) update_id
531
535
  * (as opposed to the event ID in /v0/state/acs, which was not BFT-safe).
532
536
  * The update_id is the ID of the update in which the contract was created, and can be used to correlate with updates returned by /v2/updates.
@@ -539,6 +543,29 @@ export interface paths {
539
543
  patch?: never;
540
544
  trace?: never;
541
545
  };
546
+ '/v2/state/acs': {
547
+ parameters: {
548
+ query?: never;
549
+ header?: never;
550
+ path?: never;
551
+ cookie?: never;
552
+ };
553
+ get?: never;
554
+ put?: never;
555
+ /**
556
+ * @description Returns the ACS in creation date ascending order, paged, for a given migration id and record time.
557
+ * Unlike /v0/state/acs, every contract is identified by an (optional) update_id
558
+ * (as opposed to the event ID in /v0/state/acs, which was not BFT-safe).
559
+ * The update_id is the ID of the update in which the contract was created, and can be used to correlate with updates returned by /v2/updates.
560
+ * For contracts created in an earlier migration ID, the update_id will be absent.
561
+ */
562
+ post: operations['getAcsSnapshotAtV2'];
563
+ delete?: never;
564
+ options?: never;
565
+ head?: never;
566
+ patch?: never;
567
+ trace?: never;
568
+ };
542
569
  '/v0/state/acs/force': {
543
570
  parameters: {
544
571
  query?: never;
@@ -588,7 +615,13 @@ export interface paths {
588
615
  };
589
616
  get?: never;
590
617
  put?: never;
591
- /** @description Returns the active amulet contracts for a given migration id and record time, in creation date ascending order, paged. */
618
+ /**
619
+ * @deprecated
620
+ * @description Deprecated. Please use /v2/holdings/state instead.
621
+ * The only difference with this endpoint and that one is the type of the `after`/`next_page_token` pagination token.
622
+ *
623
+ * Returns the active amulet contracts for a given migration id and record time, in creation date ascending order, paged.
624
+ */
592
625
  post: operations['getHoldingsStateAtV1'];
593
626
  delete?: never;
594
627
  options?: never;
@@ -596,6 +629,23 @@ export interface paths {
596
629
  patch?: never;
597
630
  trace?: never;
598
631
  };
632
+ '/v2/holdings/state': {
633
+ parameters: {
634
+ query?: never;
635
+ header?: never;
636
+ path?: never;
637
+ cookie?: never;
638
+ };
639
+ get?: never;
640
+ put?: never;
641
+ /** @description Returns the active amulet contracts for a given migration id and record time, in creation date ascending order, paged. */
642
+ post: operations['getHoldingsStateAtV2'];
643
+ delete?: never;
644
+ options?: never;
645
+ head?: never;
646
+ patch?: never;
647
+ trace?: never;
648
+ };
599
649
  '/v0/holdings/summary': {
600
650
  parameters: {
601
651
  query?: never;
@@ -1440,6 +1490,26 @@ export interface paths {
1440
1490
  patch?: never;
1441
1491
  trace?: never;
1442
1492
  };
1493
+ '/v0/history/bulk/checksums': {
1494
+ parameters: {
1495
+ query?: never;
1496
+ header?: never;
1497
+ path?: never;
1498
+ cookie?: never;
1499
+ };
1500
+ get?: never;
1501
+ put?: never;
1502
+ /**
1503
+ * @description **Under Development, do not use in production yet** Get checksums for bulk history objects. Searches for object_keys in both staging and committed objects.
1504
+ * Meant for internal use only, as part of the processing pipeline of bulk history objects.
1505
+ */
1506
+ post: operations['getBulkObjectChecksums'];
1507
+ delete?: never;
1508
+ options?: never;
1509
+ head?: never;
1510
+ patch?: never;
1511
+ trace?: never;
1512
+ };
1443
1513
  }
1444
1514
  export type webhooks = Record<string, never>;
1445
1515
  export interface components {
@@ -2075,6 +2145,45 @@ export interface components {
2075
2145
  /** @description Filters the ACS by contracts with these template IDs, specified as "PACKAGE_NAME:MODULE_NAME:ENTITY_NAME". */
2076
2146
  templates?: string[];
2077
2147
  };
2148
+ AcsRequestV2: {
2149
+ /**
2150
+ * Format: int64
2151
+ * @description The migration id for which to return the ACS.
2152
+ */
2153
+ migration_id: number;
2154
+ /**
2155
+ * Format: date-time
2156
+ * @description The timestamp at which the contract set was active.
2157
+ * This needs to be an exact timestamp, i.e.,
2158
+ * needs to correspond to a timestamp reported by `/v0/state/acs/snapshot-timestamp` if `record_time_match` is set to `exact` (which is the default).
2159
+ * If `record_time_match` is set to `at_or_before`, this can be any timestamp, and the most recent snapshot at or before the given `record_time` will be returned.
2160
+ */
2161
+ record_time: string;
2162
+ /**
2163
+ * @description How to match the record_time. "exact" requires the record_time to match exactly.
2164
+ * "at_or_before" finds the most recent snapshot at or before the given record_time.
2165
+ * @default exact
2166
+ * @enum {string}
2167
+ */
2168
+ record_time_match: 'exact' | 'at_or_before';
2169
+ /**
2170
+ * @description Pagination token for the next page of results. For this to be valid,
2171
+ * this must be the `next_page_token` from a prior request with identical
2172
+ * parameters aside from `after` and `page_size`; the response may be
2173
+ * invalid otherwise.
2174
+ * This token is opaque and not meant to be edited by users.
2175
+ */
2176
+ after?: string;
2177
+ /**
2178
+ * Format: int32
2179
+ * @description The maximum number of created events returned for this request.
2180
+ */
2181
+ page_size: number;
2182
+ /** @description Filters the ACS by contracts in which these party IDs are stakeholders. */
2183
+ party_ids?: string[];
2184
+ /** @description Filters the ACS by contracts with these template IDs, specified as "PACKAGE_NAME:MODULE_NAME:ENTITY_NAME". */
2185
+ templates?: string[];
2186
+ };
2078
2187
  HoldingsStateRequest: {
2079
2188
  /**
2080
2189
  * Format: int64
@@ -2109,6 +2218,40 @@ export interface components {
2109
2218
  /** @description Filters by contracts in which these party_ids are the owners of the amulets. */
2110
2219
  owner_party_ids: string[];
2111
2220
  };
2221
+ HoldingsStateRequestV2: {
2222
+ /**
2223
+ * Format: int64
2224
+ * @description The migration id for which to return the ACS.
2225
+ */
2226
+ migration_id: number;
2227
+ /**
2228
+ * Format: date-time
2229
+ * @description The timestamp at which the contract set was active.
2230
+ * This needs to be an exact timestamp, i.e.,
2231
+ * needs to correspond to a timestamp reported by `/v0/state/acs/snapshot-timestamp` if `record_time_match` is set to `exact` (which is the default).
2232
+ * If `record_time_match` is set to `at_or_before`, this can be any timestamp, and the most recent snapshot at or before the given `record_time` will be returned.
2233
+ */
2234
+ record_time: string;
2235
+ /**
2236
+ * @description How to match the record_time. "exact" requires the record_time to match exactly.
2237
+ * "at_or_before" finds the most recent snapshot at or before the given record_time.
2238
+ * @default exact
2239
+ * @enum {string}
2240
+ */
2241
+ record_time_match: 'exact' | 'at_or_before';
2242
+ /**
2243
+ * @description Pagination token for the next page of results.
2244
+ * This token is opaque and not meant to be edited by users.
2245
+ */
2246
+ after?: string;
2247
+ /**
2248
+ * Format: int32
2249
+ * @description The maximum number of created events returned for this request.
2250
+ */
2251
+ page_size: number;
2252
+ /** @description Filters by contracts in which these party_ids are the owners of the amulets. */
2253
+ owner_party_ids: string[];
2254
+ };
2112
2255
  HoldingsSummaryRequest: {
2113
2256
  /**
2114
2257
  * Format: int64
@@ -2222,6 +2365,30 @@ export interface components {
2222
2365
  */
2223
2366
  next_page_token?: number;
2224
2367
  };
2368
+ AcsResponseV2: {
2369
+ /**
2370
+ * Format: date-time
2371
+ * @description The same `record_time` as in the request.
2372
+ */
2373
+ record_time: string;
2374
+ /**
2375
+ * Format: int64
2376
+ * @description The same `migration_id` as in the request.
2377
+ */
2378
+ migration_id: number;
2379
+ /**
2380
+ * @description Up to `page_size` contracts in the ACS.
2381
+ * `create_arguments` are always encoded as `compact_json`.
2382
+ */
2383
+ created_events: components['schemas']['ActiveContract'][];
2384
+ /**
2385
+ * @description When requesting the next page of results, pass this as `after`
2386
+ * to the `AcsRequestV2` or `HoldingsStateRequestV2`.
2387
+ * Will be absent when there are no more pages.
2388
+ * This token is opaque and not meant to be edited by users.
2389
+ */
2390
+ next_page_token?: string;
2391
+ };
2225
2392
  HoldingsSummaryResponse: {
2226
2393
  /**
2227
2394
  * Format: date-time
@@ -2715,7 +2882,12 @@ export interface components {
2715
2882
  app_activity_records?: components['schemas']['EventHistoryAppActivityRecords'];
2716
2883
  };
2717
2884
  EventHistoryVerdict: {
2718
- /** @description The ID of the transaction update associated with this verdict. */
2885
+ /**
2886
+ * @description The ID of the transaction update associated with this verdict.
2887
+ *
2888
+ * Verdicts are deduplicated by update_id. Only the first verdict ingested for a given update_id is stored and returned, while a subsequent verdict with the same update_id is rejected.
2889
+ * This can happen for example if a sequencer client retries a successful submission. In that case, the retry is rejected as a duplicate, and the events endpoint will only show the successful verdict but not the rejected duplicates.
2890
+ */
2719
2891
  update_id: string;
2720
2892
  /**
2721
2893
  * Format: int64
@@ -2849,6 +3021,16 @@ export interface components {
2849
3021
  */
2850
3022
  next_page_token?: string;
2851
3023
  };
3024
+ GetBulkObjectChecksumsRequest: {
3025
+ /** @description The list of keys of the bulk storage objects for which checksums are requested. */
3026
+ object_keys: string[];
3027
+ };
3028
+ GetBulkObjectChecksumsResponse: {
3029
+ /** @description The list of checksums for the requested bulk storage objects (in the same order as the object_keys). */
3030
+ checksums: {
3031
+ value?: string;
3032
+ }[];
3033
+ };
2852
3034
  BulkStorageObjectRef: {
2853
3035
  /** @description The URL from which the bulk storage object can be downloaded. */
2854
3036
  url: string;
@@ -3847,6 +4029,33 @@ export interface operations {
3847
4029
  500: components['responses']['500'];
3848
4030
  };
3849
4031
  };
4032
+ getAcsSnapshotAtV2: {
4033
+ parameters: {
4034
+ query?: never;
4035
+ header?: never;
4036
+ path?: never;
4037
+ cookie?: never;
4038
+ };
4039
+ requestBody: {
4040
+ content: {
4041
+ 'application/json': components['schemas']['AcsRequestV2'];
4042
+ };
4043
+ };
4044
+ responses: {
4045
+ /** @description ok */
4046
+ 200: {
4047
+ headers: {
4048
+ [name: string]: unknown;
4049
+ };
4050
+ content: {
4051
+ 'application/json': components['schemas']['AcsResponseV2'];
4052
+ };
4053
+ };
4054
+ 400: components['responses']['400'];
4055
+ 404: components['responses']['404'];
4056
+ 500: components['responses']['500'];
4057
+ };
4058
+ };
3850
4059
  forceAcsSnapshotNow: {
3851
4060
  parameters: {
3852
4061
  query?: never;
@@ -3923,6 +4132,33 @@ export interface operations {
3923
4132
  500: components['responses']['500'];
3924
4133
  };
3925
4134
  };
4135
+ getHoldingsStateAtV2: {
4136
+ parameters: {
4137
+ query?: never;
4138
+ header?: never;
4139
+ path?: never;
4140
+ cookie?: never;
4141
+ };
4142
+ requestBody: {
4143
+ content: {
4144
+ 'application/json': components['schemas']['HoldingsStateRequestV2'];
4145
+ };
4146
+ };
4147
+ responses: {
4148
+ /** @description ok */
4149
+ 200: {
4150
+ headers: {
4151
+ [name: string]: unknown;
4152
+ };
4153
+ content: {
4154
+ 'application/json': components['schemas']['AcsResponseV2'];
4155
+ };
4156
+ };
4157
+ 400: components['responses']['400'];
4158
+ 404: components['responses']['404'];
4159
+ 500: components['responses']['500'];
4160
+ };
4161
+ };
3926
4162
  getHoldingsSummaryAt: {
3927
4163
  parameters: {
3928
4164
  query?: never;
@@ -5022,5 +5258,30 @@ export interface operations {
5022
5258
  501: components['responses']['501'];
5023
5259
  };
5024
5260
  };
5261
+ getBulkObjectChecksums: {
5262
+ parameters: {
5263
+ query?: never;
5264
+ header?: never;
5265
+ path?: never;
5266
+ cookie?: never;
5267
+ };
5268
+ requestBody: {
5269
+ content: {
5270
+ 'application/json': components['schemas']['GetBulkObjectChecksumsRequest'];
5271
+ };
5272
+ };
5273
+ responses: {
5274
+ /** @description ok */
5275
+ 200: {
5276
+ headers: {
5277
+ [name: string]: unknown;
5278
+ };
5279
+ content: {
5280
+ 'application/json': components['schemas']['GetBulkObjectChecksumsResponse'];
5281
+ };
5282
+ };
5283
+ 501: components['responses']['501'];
5284
+ };
5285
+ };
5025
5286
  }
5026
5287
  //# sourceMappingURL=scan.d.ts.map