@azure-rest/confidential-ledger 1.1.2-alpha.20250331.1 → 1.1.2-alpha.20250402.1

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/CHANGELOG.md ADDED
@@ -0,0 +1,32 @@
1
+ # Release History
2
+
3
+ ## 1.1.2 (Unreleased)
4
+
5
+ ### Features Added
6
+
7
+ - User defined endpoint
8
+ - User defined endpoint runtimeoptions
9
+ - User defined endpoint modules
10
+ - User defined roles
11
+ -
12
+ ## 1.1.0-beta.1 (Unreleased)
13
+
14
+ ### Features Added
15
+
16
+ - User List endpoint
17
+
18
+ ### Breaking Changes
19
+
20
+ ### Bugs Fixed
21
+
22
+ ### Other Changes
23
+
24
+ ## 1.0.0 (2022-07-18)
25
+
26
+ - Pageable collections and consortium endpoints
27
+ - Renaming ledgerUri to ledgerEndpoint
28
+ - postLedgerEntry changed to createLedgerEntry
29
+
30
+ ## 1.0.0-beta.2 (2021-05-12)
31
+
32
+ - First release of package, see README.md for details.
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "sdk-type": "client",
4
4
  "author": "Microsoft Corporation",
5
5
  "description": "An isomorphic rest level client library for the Azure Confidential Ledger service.",
6
- "version": "1.1.2-alpha.20250331.1",
6
+ "version": "1.1.2-alpha.20250402.1",
7
7
  "keywords": [
8
8
  "node",
9
9
  "azure",
@@ -24,7 +24,9 @@
24
24
  "files": [
25
25
  "dist/",
26
26
  "README.md",
27
- "LICENSE"
27
+ "LICENSE",
28
+ "review/",
29
+ "CHANGELOG.md"
28
30
  ],
29
31
  "//metadata": {
30
32
  "constantPaths": [
@@ -0,0 +1,889 @@
1
+ ## API Report File for "@azure-rest/confidential-ledger"
2
+
3
+ > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
+
5
+ ```ts
6
+
7
+ import type { Client } from '@azure-rest/core-client';
8
+ import type { ClientOptions } from '@azure-rest/core-client';
9
+ import type { HttpResponse } from '@azure-rest/core-client';
10
+ import type { PathUncheckedResponse } from '@azure-rest/core-client';
11
+ import type { RawHttpHeaders } from '@azure/core-rest-pipeline';
12
+ import type { RequestParameters } from '@azure-rest/core-client';
13
+ import type { StreamableMethod } from '@azure-rest/core-client';
14
+ import type { TokenCredential } from '@azure/core-auth';
15
+
16
+ // @public
17
+ export interface ApplicationClaimOutput {
18
+ digest?: ClaimDigestOutput;
19
+ kind: "LedgerEntry" | "ClaimDigest";
20
+ ledgerEntry?: LedgerEntryClaimOutput;
21
+ }
22
+
23
+ // @public
24
+ export interface Bundle {
25
+ // (undocumented)
26
+ metadata: Metadata;
27
+ modules: Record<string, unknown>;
28
+ }
29
+
30
+ // @public
31
+ export interface BundleOutput {
32
+ // (undocumented)
33
+ metadata: MetadataOutput;
34
+ modules: Record<string, unknown>;
35
+ }
36
+
37
+ // @public
38
+ export interface ClaimDigestOutput {
39
+ protocol: "LedgerEntryV1";
40
+ value?: string;
41
+ }
42
+
43
+ // @public
44
+ export interface CollectionOutput {
45
+ // (undocumented)
46
+ collectionId: string;
47
+ }
48
+
49
+ // @public (undocumented)
50
+ function ConfidentialLedger(ledgerEndpoint: string, ledgerIdentityCertificate: string, options?: ClientOptions): ConfidentialLedgerClient;
51
+
52
+ // @public (undocumented)
53
+ function ConfidentialLedger(ledgerEndpoint: string, ledgerIdentityCertificate: string, credentials: TokenCredential, options?: ClientOptions): ConfidentialLedgerClient;
54
+ export default ConfidentialLedger;
55
+
56
+ // @public (undocumented)
57
+ export type ConfidentialLedgerClient = Client & {
58
+ path: Routes;
59
+ };
60
+
61
+ // @public
62
+ export interface ConfidentialLedgerClientOptions extends ClientOptions {
63
+ apiVersion?: string;
64
+ }
65
+
66
+ // @public
67
+ export interface ConfidentialLedgerEnclavesOutput {
68
+ currentNodeId: string;
69
+ enclaveQuotes: Record<string, EnclaveQuoteOutput>;
70
+ }
71
+
72
+ // @public
73
+ export interface ConfidentialLedgerErrorBodyOutput {
74
+ readonly code?: string;
75
+ readonly message?: string;
76
+ }
77
+
78
+ // @public
79
+ export interface ConfidentialLedgerErrorOutput {
80
+ readonly error?: ConfidentialLedgerErrorBodyOutput;
81
+ }
82
+
83
+ // @public
84
+ export interface ConsortiumMemberOutput {
85
+ certificate: string;
86
+ id: string;
87
+ }
88
+
89
+ // @public
90
+ export interface ConsortiumOutput {
91
+ // (undocumented)
92
+ members: Array<ConsortiumMemberOutput>;
93
+ nextLink?: string;
94
+ }
95
+
96
+ // @public
97
+ export interface ConstitutionOutput {
98
+ digest: string;
99
+ script: string;
100
+ }
101
+
102
+ // @public (undocumented)
103
+ export interface CreateLedgerEntry200Headers {
104
+ "x-ms-ccf-transaction-id"?: string;
105
+ }
106
+
107
+ // @public
108
+ export interface CreateLedgerEntry200Response extends HttpResponse {
109
+ // (undocumented)
110
+ body: LedgerWriteResultOutput;
111
+ // (undocumented)
112
+ headers: RawHttpHeaders & CreateLedgerEntry200Headers;
113
+ // (undocumented)
114
+ status: "200";
115
+ }
116
+
117
+ // @public (undocumented)
118
+ export interface CreateLedgerEntryBodyParam {
119
+ body: LedgerEntry;
120
+ }
121
+
122
+ // @public
123
+ export interface CreateLedgerEntryDefaultResponse extends HttpResponse {
124
+ // (undocumented)
125
+ body: ConfidentialLedgerErrorOutput;
126
+ // (undocumented)
127
+ status: string;
128
+ }
129
+
130
+ // @public (undocumented)
131
+ export interface CreateLedgerEntryMediaTypesParam {
132
+ contentType?: "application/json";
133
+ }
134
+
135
+ // @public (undocumented)
136
+ export type CreateLedgerEntryParameters = CreateLedgerEntryQueryParam & CreateLedgerEntryMediaTypesParam & CreateLedgerEntryBodyParam & RequestParameters;
137
+
138
+ // @public (undocumented)
139
+ export interface CreateLedgerEntryQueryParam {
140
+ // (undocumented)
141
+ queryParameters?: CreateLedgerEntryQueryParamProperties;
142
+ }
143
+
144
+ // @public (undocumented)
145
+ export interface CreateLedgerEntryQueryParamProperties {
146
+ collectionId?: string;
147
+ }
148
+
149
+ // @public
150
+ export interface CreateOrUpdateUser200Response extends HttpResponse {
151
+ // (undocumented)
152
+ body: LedgerUserOutput;
153
+ // (undocumented)
154
+ status: "200";
155
+ }
156
+
157
+ // @public (undocumented)
158
+ export interface CreateOrUpdateUserBodyParam {
159
+ body: LedgerUserResourceMergeAndPatch;
160
+ }
161
+
162
+ // @public
163
+ export interface CreateOrUpdateUserDefaultResponse extends HttpResponse {
164
+ // (undocumented)
165
+ body: ConfidentialLedgerErrorOutput;
166
+ // (undocumented)
167
+ status: string;
168
+ }
169
+
170
+ // @public (undocumented)
171
+ export interface CreateOrUpdateUserMediaTypesParam {
172
+ contentType?: "application/merge-patch+json";
173
+ }
174
+
175
+ // @public (undocumented)
176
+ export type CreateOrUpdateUserParameters = CreateOrUpdateUserMediaTypesParam & CreateOrUpdateUserBodyParam & RequestParameters;
177
+
178
+ // @public
179
+ export interface CreateUserDefinedEndpoint201Response extends HttpResponse {
180
+ // (undocumented)
181
+ status: "201";
182
+ }
183
+
184
+ // @public (undocumented)
185
+ export interface CreateUserDefinedEndpointBodyParam {
186
+ body: Bundle;
187
+ }
188
+
189
+ // @public
190
+ export interface CreateUserDefinedEndpointDefaultResponse extends HttpResponse {
191
+ // (undocumented)
192
+ body: ConfidentialLedgerErrorOutput;
193
+ // (undocumented)
194
+ status: string;
195
+ }
196
+
197
+ // @public (undocumented)
198
+ export interface CreateUserDefinedEndpointMediaTypesParam {
199
+ contentType?: "application/json";
200
+ }
201
+
202
+ // @public (undocumented)
203
+ export type CreateUserDefinedEndpointParameters = CreateUserDefinedEndpointMediaTypesParam & CreateUserDefinedEndpointBodyParam & RequestParameters;
204
+
205
+ // @public (undocumented)
206
+ export interface DeleteUser {
207
+ delete(options?: DeleteUserParameters): StreamableMethod<DeleteUser204Response | DeleteUserDefaultResponse>;
208
+ get(options?: GetUserParameters): StreamableMethod<GetUser200Response | GetUserDefaultResponse>;
209
+ patch(options: CreateOrUpdateUserParameters): StreamableMethod<CreateOrUpdateUser200Response | CreateOrUpdateUserDefaultResponse>;
210
+ }
211
+
212
+ // @public
213
+ export interface DeleteUser204Response extends HttpResponse {
214
+ // (undocumented)
215
+ status: "204";
216
+ }
217
+
218
+ // @public
219
+ export interface DeleteUserDefaultResponse extends HttpResponse {
220
+ // (undocumented)
221
+ body: ConfidentialLedgerErrorOutput;
222
+ // (undocumented)
223
+ status: string;
224
+ }
225
+
226
+ // @public (undocumented)
227
+ export type DeleteUserParameters = RequestParameters;
228
+
229
+ // @public
230
+ export interface EnclaveQuoteOutput {
231
+ mrenclave?: string;
232
+ nodeId: string;
233
+ quoteVersion: string;
234
+ raw: string;
235
+ }
236
+
237
+ // @public (undocumented)
238
+ export interface EndpointProperties {
239
+ // (undocumented)
240
+ authn_policies: Array<any>;
241
+ // (undocumented)
242
+ forwarding_required: "sometimes" | "always" | "never";
243
+ // (undocumented)
244
+ interpreter_reuse?: InterpreterReusePolicy;
245
+ // (undocumented)
246
+ js_function?: string;
247
+ // (undocumented)
248
+ js_module?: string;
249
+ // (undocumented)
250
+ mode?: "readwrite" | "readonly" | "historical";
251
+ openapi?: any;
252
+ // (undocumented)
253
+ openapi_hidden?: boolean;
254
+ // (undocumented)
255
+ redirection_strategy?: "none" | "to_primary" | "to_backup";
256
+ }
257
+
258
+ // @public (undocumented)
259
+ export interface EndpointPropertiesOutput {
260
+ // (undocumented)
261
+ authn_policies: Array<any>;
262
+ // (undocumented)
263
+ forwarding_required: "sometimes" | "always" | "never";
264
+ // (undocumented)
265
+ interpreter_reuse?: InterpreterReusePolicyOutput;
266
+ // (undocumented)
267
+ js_function?: string;
268
+ // (undocumented)
269
+ js_module?: string;
270
+ // (undocumented)
271
+ mode?: "readwrite" | "readonly" | "historical";
272
+ openapi?: any;
273
+ // (undocumented)
274
+ openapi_hidden?: boolean;
275
+ // (undocumented)
276
+ redirection_strategy?: "none" | "to_primary" | "to_backup";
277
+ }
278
+
279
+ // @public
280
+ export type GetArrayType<T> = T extends Array<infer TData> ? TData : never;
281
+
282
+ // @public (undocumented)
283
+ export interface GetConstitution {
284
+ get(options?: GetConstitutionParameters): StreamableMethod<GetConstitution200Response | GetConstitutionDefaultResponse>;
285
+ }
286
+
287
+ // @public
288
+ export interface GetConstitution200Response extends HttpResponse {
289
+ // (undocumented)
290
+ body: ConstitutionOutput;
291
+ // (undocumented)
292
+ status: "200";
293
+ }
294
+
295
+ // @public
296
+ export interface GetConstitutionDefaultResponse extends HttpResponse {
297
+ // (undocumented)
298
+ body: ConfidentialLedgerErrorOutput;
299
+ // (undocumented)
300
+ status: string;
301
+ }
302
+
303
+ // @public (undocumented)
304
+ export type GetConstitutionParameters = RequestParameters;
305
+
306
+ // @public (undocumented)
307
+ export interface GetCurrentLedgerEntry {
308
+ get(options?: GetCurrentLedgerEntryParameters): StreamableMethod<GetCurrentLedgerEntry200Response | GetCurrentLedgerEntryDefaultResponse>;
309
+ }
310
+
311
+ // @public
312
+ export interface GetCurrentLedgerEntry200Response extends HttpResponse {
313
+ // (undocumented)
314
+ body: LedgerEntryOutput;
315
+ // (undocumented)
316
+ status: "200";
317
+ }
318
+
319
+ // @public
320
+ export interface GetCurrentLedgerEntryDefaultResponse extends HttpResponse {
321
+ // (undocumented)
322
+ body: ConfidentialLedgerErrorOutput;
323
+ // (undocumented)
324
+ status: string;
325
+ }
326
+
327
+ // @public (undocumented)
328
+ export type GetCurrentLedgerEntryParameters = GetCurrentLedgerEntryQueryParam & RequestParameters;
329
+
330
+ // @public (undocumented)
331
+ export interface GetCurrentLedgerEntryQueryParam {
332
+ // (undocumented)
333
+ queryParameters?: GetCurrentLedgerEntryQueryParamProperties;
334
+ }
335
+
336
+ // @public (undocumented)
337
+ export interface GetCurrentLedgerEntryQueryParamProperties {
338
+ collectionId?: string;
339
+ }
340
+
341
+ // @public (undocumented)
342
+ export interface GetEnclaveQuotes {
343
+ get(options?: GetEnclaveQuotesParameters): StreamableMethod<GetEnclaveQuotes200Response | GetEnclaveQuotesDefaultResponse>;
344
+ }
345
+
346
+ // @public
347
+ export interface GetEnclaveQuotes200Response extends HttpResponse {
348
+ // (undocumented)
349
+ body: ConfidentialLedgerEnclavesOutput;
350
+ // (undocumented)
351
+ status: "200";
352
+ }
353
+
354
+ // @public
355
+ export interface GetEnclaveQuotesDefaultResponse extends HttpResponse {
356
+ // (undocumented)
357
+ body: ConfidentialLedgerErrorOutput;
358
+ // (undocumented)
359
+ status: string;
360
+ }
361
+
362
+ // @public (undocumented)
363
+ export type GetEnclaveQuotesParameters = RequestParameters;
364
+
365
+ // @public (undocumented)
366
+ export interface GetLedgerEntry {
367
+ get(options?: GetLedgerEntryParameters): StreamableMethod<GetLedgerEntry200Response | GetLedgerEntryDefaultResponse>;
368
+ }
369
+
370
+ // @public
371
+ export interface GetLedgerEntry200Response extends HttpResponse {
372
+ // (undocumented)
373
+ body: LedgerQueryResultOutput;
374
+ // (undocumented)
375
+ status: "200";
376
+ }
377
+
378
+ // @public
379
+ export interface GetLedgerEntryDefaultResponse extends HttpResponse {
380
+ // (undocumented)
381
+ body: ConfidentialLedgerErrorOutput;
382
+ // (undocumented)
383
+ status: string;
384
+ }
385
+
386
+ // @public (undocumented)
387
+ export type GetLedgerEntryParameters = GetLedgerEntryQueryParam & RequestParameters;
388
+
389
+ // @public (undocumented)
390
+ export interface GetLedgerEntryQueryParam {
391
+ // (undocumented)
392
+ queryParameters?: GetLedgerEntryQueryParamProperties;
393
+ }
394
+
395
+ // @public (undocumented)
396
+ export interface GetLedgerEntryQueryParamProperties {
397
+ collectionId?: string;
398
+ }
399
+
400
+ // @public (undocumented)
401
+ export function getLedgerIdentity(ledgerId: string, identityServiceBaseUrl?: string): Promise<LedgerIdentity>;
402
+
403
+ // @public
404
+ export type GetPage<TPage> = (pageLink: string) => Promise<{
405
+ page: TPage;
406
+ nextPageLink?: string;
407
+ }>;
408
+
409
+ // @public (undocumented)
410
+ export interface GetReceipt {
411
+ get(options?: GetReceiptParameters): StreamableMethod<GetReceipt200Response | GetReceiptDefaultResponse>;
412
+ }
413
+
414
+ // @public
415
+ export interface GetReceipt200Response extends HttpResponse {
416
+ // (undocumented)
417
+ body: TransactionReceiptOutput;
418
+ // (undocumented)
419
+ status: "200";
420
+ }
421
+
422
+ // @public
423
+ export interface GetReceiptDefaultResponse extends HttpResponse {
424
+ // (undocumented)
425
+ body: ConfidentialLedgerErrorOutput;
426
+ // (undocumented)
427
+ status: string;
428
+ }
429
+
430
+ // @public (undocumented)
431
+ export type GetReceiptParameters = RequestParameters;
432
+
433
+ // @public (undocumented)
434
+ export interface GetTransactionStatus {
435
+ get(options?: GetTransactionStatusParameters): StreamableMethod<GetTransactionStatus200Response | GetTransactionStatusDefaultResponse>;
436
+ }
437
+
438
+ // @public
439
+ export interface GetTransactionStatus200Response extends HttpResponse {
440
+ // (undocumented)
441
+ body: TransactionStatusOutput;
442
+ // (undocumented)
443
+ status: "200";
444
+ }
445
+
446
+ // @public
447
+ export interface GetTransactionStatusDefaultResponse extends HttpResponse {
448
+ // (undocumented)
449
+ body: ConfidentialLedgerErrorOutput;
450
+ // (undocumented)
451
+ status: string;
452
+ }
453
+
454
+ // @public (undocumented)
455
+ export type GetTransactionStatusParameters = RequestParameters;
456
+
457
+ // @public
458
+ export interface GetUser200Response extends HttpResponse {
459
+ // (undocumented)
460
+ body: LedgerUserOutput;
461
+ // (undocumented)
462
+ status: "200";
463
+ }
464
+
465
+ // @public
466
+ export interface GetUserDefaultResponse extends HttpResponse {
467
+ // (undocumented)
468
+ body: ConfidentialLedgerErrorOutput;
469
+ // (undocumented)
470
+ status: string;
471
+ }
472
+
473
+ // @public (undocumented)
474
+ export interface GetUserDefinedEndpoint {
475
+ get(options?: GetUserDefinedEndpointParameters): StreamableMethod<GetUserDefinedEndpoint200Response | GetUserDefinedEndpointDefaultResponse>;
476
+ put(options: CreateUserDefinedEndpointParameters): StreamableMethod<CreateUserDefinedEndpoint201Response | CreateUserDefinedEndpointDefaultResponse>;
477
+ }
478
+
479
+ // @public
480
+ export interface GetUserDefinedEndpoint200Response extends HttpResponse {
481
+ // (undocumented)
482
+ body: BundleOutput;
483
+ // (undocumented)
484
+ status: "200";
485
+ }
486
+
487
+ // @public
488
+ export interface GetUserDefinedEndpointDefaultResponse extends HttpResponse {
489
+ // (undocumented)
490
+ body: ConfidentialLedgerErrorOutput;
491
+ // (undocumented)
492
+ status: string;
493
+ }
494
+
495
+ // @public (undocumented)
496
+ export type GetUserDefinedEndpointParameters = RequestParameters;
497
+
498
+ // @public (undocumented)
499
+ export type GetUserParameters = RequestParameters;
500
+
501
+ // @public (undocumented)
502
+ export interface InterpreterReusePolicy {
503
+ // (undocumented)
504
+ key: string;
505
+ }
506
+
507
+ // @public (undocumented)
508
+ export interface InterpreterReusePolicyOutput {
509
+ // (undocumented)
510
+ key: string;
511
+ }
512
+
513
+ // @public (undocumented)
514
+ export function isUnexpected(response: GetConstitution200Response | GetConstitutionDefaultResponse): response is GetConstitutionDefaultResponse;
515
+
516
+ // @public (undocumented)
517
+ export function isUnexpected(response: ListConsortiumMembers200Response | ListConsortiumMembersDefaultResponse): response is ListConsortiumMembersDefaultResponse;
518
+
519
+ // @public (undocumented)
520
+ export function isUnexpected(response: GetEnclaveQuotes200Response | GetEnclaveQuotesDefaultResponse): response is GetEnclaveQuotesDefaultResponse;
521
+
522
+ // @public (undocumented)
523
+ export function isUnexpected(response: ListCollections200Response | ListCollectionsDefaultResponse): response is ListCollectionsDefaultResponse;
524
+
525
+ // @public (undocumented)
526
+ export function isUnexpected(response: ListLedgerEntries200Response | ListLedgerEntriesDefaultResponse): response is ListLedgerEntriesDefaultResponse;
527
+
528
+ // @public (undocumented)
529
+ export function isUnexpected(response: CreateLedgerEntry200Response | CreateLedgerEntryDefaultResponse): response is CreateLedgerEntryDefaultResponse;
530
+
531
+ // @public (undocumented)
532
+ export function isUnexpected(response: GetLedgerEntry200Response | GetLedgerEntryDefaultResponse): response is GetLedgerEntryDefaultResponse;
533
+
534
+ // @public (undocumented)
535
+ export function isUnexpected(response: GetReceipt200Response | GetReceiptDefaultResponse): response is GetReceiptDefaultResponse;
536
+
537
+ // @public (undocumented)
538
+ export function isUnexpected(response: GetTransactionStatus200Response | GetTransactionStatusDefaultResponse): response is GetTransactionStatusDefaultResponse;
539
+
540
+ // @public (undocumented)
541
+ export function isUnexpected(response: GetCurrentLedgerEntry200Response | GetCurrentLedgerEntryDefaultResponse): response is GetCurrentLedgerEntryDefaultResponse;
542
+
543
+ // @public (undocumented)
544
+ export function isUnexpected(response: ListUsers200Response | ListUsersDefaultResponse): response is ListUsersDefaultResponse;
545
+
546
+ // @public (undocumented)
547
+ export function isUnexpected(response: DeleteUser204Response | DeleteUserDefaultResponse): response is DeleteUserDefaultResponse;
548
+
549
+ // @public (undocumented)
550
+ export function isUnexpected(response: GetUser200Response | GetUserDefaultResponse): response is GetUserDefaultResponse;
551
+
552
+ // @public (undocumented)
553
+ export function isUnexpected(response: CreateOrUpdateUser200Response | CreateOrUpdateUserDefaultResponse): response is CreateOrUpdateUserDefaultResponse;
554
+
555
+ // @public
556
+ export interface LedgerEntry {
557
+ contents: string;
558
+ }
559
+
560
+ // @public
561
+ export interface LedgerEntryClaimOutput {
562
+ collectionId?: string;
563
+ contents?: string;
564
+ protocol: "LedgerEntryV1";
565
+ secretKey?: string;
566
+ }
567
+
568
+ // @public
569
+ export interface LedgerEntryOutput {
570
+ // (undocumented)
571
+ readonly collectionId?: string;
572
+ contents: string;
573
+ readonly transactionId?: string;
574
+ }
575
+
576
+ // @public (undocumented)
577
+ export interface LedgerIdentity {
578
+ // (undocumented)
579
+ ledgerId: string;
580
+ // (undocumented)
581
+ ledgerIdentityCertificate: string;
582
+ }
583
+
584
+ // @public
585
+ export interface LedgerQueryResultOutput {
586
+ entry?: LedgerEntryOutput;
587
+ state: "Loading" | "Ready";
588
+ }
589
+
590
+ // @public
591
+ export interface LedgerUser {
592
+ assignedRole: "Administrator" | "Contributor" | "Reader";
593
+ }
594
+
595
+ // @public
596
+ export interface LedgerUserOutput {
597
+ assignedRole: "Administrator" | "Contributor" | "Reader";
598
+ readonly userId?: string;
599
+ }
600
+
601
+ // @public
602
+ export type LedgerUserResourceMergeAndPatch = Partial<LedgerUser>;
603
+
604
+ // @public
605
+ export interface LedgerWriteResultOutput {
606
+ // (undocumented)
607
+ collectionId: string;
608
+ }
609
+
610
+ // @public (undocumented)
611
+ export interface ListCollections {
612
+ get(options?: ListCollectionsParameters): StreamableMethod<ListCollections200Response | ListCollectionsDefaultResponse>;
613
+ }
614
+
615
+ // @public
616
+ export interface ListCollections200Response extends HttpResponse {
617
+ // (undocumented)
618
+ body: PagedCollectionsOutput;
619
+ // (undocumented)
620
+ status: "200";
621
+ }
622
+
623
+ // @public
624
+ export interface ListCollectionsDefaultResponse extends HttpResponse {
625
+ // (undocumented)
626
+ body: ConfidentialLedgerErrorOutput;
627
+ // (undocumented)
628
+ status: string;
629
+ }
630
+
631
+ // @public (undocumented)
632
+ export type ListCollectionsParameters = RequestParameters;
633
+
634
+ // @public (undocumented)
635
+ export interface ListConsortiumMembers {
636
+ get(options?: ListConsortiumMembersParameters): StreamableMethod<ListConsortiumMembers200Response | ListConsortiumMembersDefaultResponse>;
637
+ }
638
+
639
+ // @public
640
+ export interface ListConsortiumMembers200Response extends HttpResponse {
641
+ // (undocumented)
642
+ body: ConsortiumOutput;
643
+ // (undocumented)
644
+ status: "200";
645
+ }
646
+
647
+ // @public
648
+ export interface ListConsortiumMembersDefaultResponse extends HttpResponse {
649
+ // (undocumented)
650
+ body: ConfidentialLedgerErrorOutput;
651
+ // (undocumented)
652
+ status: string;
653
+ }
654
+
655
+ // @public (undocumented)
656
+ export type ListConsortiumMembersParameters = RequestParameters;
657
+
658
+ // @public (undocumented)
659
+ export interface ListLedgerEntries {
660
+ get(options?: ListLedgerEntriesParameters): StreamableMethod<ListLedgerEntries200Response | ListLedgerEntriesDefaultResponse>;
661
+ post(options: CreateLedgerEntryParameters): StreamableMethod<CreateLedgerEntry200Response | CreateLedgerEntryDefaultResponse>;
662
+ }
663
+
664
+ // @public
665
+ export interface ListLedgerEntries200Response extends HttpResponse {
666
+ // (undocumented)
667
+ body: PagedLedgerEntriesOutput;
668
+ // (undocumented)
669
+ status: "200";
670
+ }
671
+
672
+ // @public
673
+ export interface ListLedgerEntriesDefaultResponse extends HttpResponse {
674
+ // (undocumented)
675
+ body: ConfidentialLedgerErrorOutput;
676
+ // (undocumented)
677
+ status: string;
678
+ }
679
+
680
+ // @public (undocumented)
681
+ export type ListLedgerEntriesParameters = ListLedgerEntriesQueryParam & RequestParameters;
682
+
683
+ // @public (undocumented)
684
+ export interface ListLedgerEntriesQueryParam {
685
+ // (undocumented)
686
+ queryParameters?: ListLedgerEntriesQueryParamProperties;
687
+ }
688
+
689
+ // @public (undocumented)
690
+ export interface ListLedgerEntriesQueryParamProperties {
691
+ collectionId?: string;
692
+ fromTransactionId?: string;
693
+ toTransactionId?: string;
694
+ }
695
+
696
+ // @public (undocumented)
697
+ export interface ListUsers {
698
+ get(options?: ListUsersParameters): StreamableMethod<ListUsers200Response | ListUsersDefaultResponse>;
699
+ }
700
+
701
+ // @public
702
+ export interface ListUsers200Response extends HttpResponse {
703
+ // (undocumented)
704
+ body: PagedUsersOutput;
705
+ // (undocumented)
706
+ status: "200";
707
+ }
708
+
709
+ // @public
710
+ export interface ListUsersDefaultResponse extends HttpResponse {
711
+ // (undocumented)
712
+ body: ConfidentialLedgerErrorOutput;
713
+ // (undocumented)
714
+ status: string;
715
+ }
716
+
717
+ // @public (undocumented)
718
+ export type ListUsersParameters = RequestParameters;
719
+
720
+ // @public (undocumented)
721
+ export interface Metadata {
722
+ endpoints: Record<string, MethodToEndpointProperties>;
723
+ }
724
+
725
+ // @public (undocumented)
726
+ export interface MetadataOutput {
727
+ endpoints: Record<string, MethodToEndpointPropertiesOutput>;
728
+ }
729
+
730
+ // @public (undocumented)
731
+ export interface MethodToEndpointProperties {
732
+ // (undocumented)
733
+ delete?: EndpointProperties;
734
+ // (undocumented)
735
+ get?: EndpointProperties;
736
+ // (undocumented)
737
+ patch?: EndpointProperties;
738
+ // (undocumented)
739
+ put?: EndpointProperties;
740
+ }
741
+
742
+ // @public (undocumented)
743
+ export interface MethodToEndpointPropertiesOutput {
744
+ // (undocumented)
745
+ delete?: EndpointPropertiesOutput;
746
+ // (undocumented)
747
+ get?: EndpointPropertiesOutput;
748
+ // (undocumented)
749
+ patch?: EndpointPropertiesOutput;
750
+ // (undocumented)
751
+ put?: EndpointPropertiesOutput;
752
+ }
753
+
754
+ // @public
755
+ export interface PagedAsyncIterableIterator<TElement, TPage = TElement[], TPageSettings = PageSettings> {
756
+ [Symbol.asyncIterator](): PagedAsyncIterableIterator<TElement, TPage, TPageSettings>;
757
+ byPage: (settings?: TPageSettings) => AsyncIterableIterator<TPage>;
758
+ next(): Promise<IteratorResult<TElement>>;
759
+ }
760
+
761
+ // @public
762
+ export interface PagedCollectionsOutput {
763
+ // (undocumented)
764
+ collections: Array<CollectionOutput>;
765
+ nextLink?: string;
766
+ }
767
+
768
+ // @public
769
+ export interface PagedLedgerEntriesOutput {
770
+ entries: Array<LedgerEntryOutput>;
771
+ nextLink?: string;
772
+ state: "Loading" | "Ready";
773
+ }
774
+
775
+ // @public
776
+ export interface PagedUsersOutput {
777
+ // (undocumented)
778
+ ledgerUsers?: Array<LedgerUserOutput>;
779
+ nextLink?: string;
780
+ }
781
+
782
+ // @public
783
+ export interface PageSettings {
784
+ continuationToken?: string;
785
+ }
786
+
787
+ // @public
788
+ export function paginate<TResponse extends PathUncheckedResponse>(client: Client, initialResponse: TResponse, options?: PagingOptions<TResponse>): PagedAsyncIterableIterator<PaginateReturn<TResponse>>;
789
+
790
+ // @public
791
+ export type PaginateReturn<TResult> = TResult extends {
792
+ body: {
793
+ value?: infer TPage;
794
+ };
795
+ } | {
796
+ body: {
797
+ members?: infer TPage;
798
+ };
799
+ } | {
800
+ body: {
801
+ collections?: infer TPage;
802
+ };
803
+ } | {
804
+ body: {
805
+ entries?: infer TPage;
806
+ };
807
+ } | {
808
+ body: {
809
+ ledgerUsers?: infer TPage;
810
+ };
811
+ } ? GetArrayType<TPage> : Array<unknown>;
812
+
813
+ // @public
814
+ export interface PagingOptions<TResponse> {
815
+ customGetPage?: GetPage<PaginateReturn<TResponse>[]>;
816
+ }
817
+
818
+ // @public (undocumented)
819
+ export interface ReceiptContentsOutput {
820
+ // (undocumented)
821
+ cert?: string;
822
+ // (undocumented)
823
+ leaf?: string;
824
+ // (undocumented)
825
+ leafComponents?: ReceiptLeafComponentsOutput;
826
+ // (undocumented)
827
+ nodeId: string;
828
+ // (undocumented)
829
+ proof: Array<ReceiptElementOutput>;
830
+ // (undocumented)
831
+ root?: string;
832
+ // (undocumented)
833
+ serviceEndorsements?: Array<string>;
834
+ // (undocumented)
835
+ signature: string;
836
+ }
837
+
838
+ // @public (undocumented)
839
+ export interface ReceiptElementOutput {
840
+ // (undocumented)
841
+ left?: string;
842
+ // (undocumented)
843
+ right?: string;
844
+ }
845
+
846
+ // @public (undocumented)
847
+ export interface ReceiptLeafComponentsOutput {
848
+ // (undocumented)
849
+ claimsDigest?: string;
850
+ // (undocumented)
851
+ commitEvidence?: string;
852
+ // (undocumented)
853
+ writeSetDigest?: string;
854
+ }
855
+
856
+ // @public (undocumented)
857
+ export interface Routes {
858
+ (path: "/app/governance/constitution"): GetConstitution;
859
+ (path: "/app/governance/members"): ListConsortiumMembers;
860
+ (path: "/app/enclaveQuotes"): GetEnclaveQuotes;
861
+ (path: "/app/collections"): ListCollections;
862
+ (path: "/app/transactions"): ListLedgerEntries;
863
+ (path: "/app/transactions/{transactionId}", transactionId: string): GetLedgerEntry;
864
+ (path: "/app/transactions/{transactionId}/receipt", transactionId: string): GetReceipt;
865
+ (path: "/app/transactions/{transactionId}/status", transactionId: string): GetTransactionStatus;
866
+ (path: "/app/transactions/current"): GetCurrentLedgerEntry;
867
+ (path: "/app/users"): ListUsers;
868
+ (path: "/app/users/{userId}", userId: string): DeleteUser;
869
+ (path: "/app/userDefinedEndpoints"): GetUserDefinedEndpoint;
870
+ }
871
+
872
+ // @public
873
+ export interface TransactionReceiptOutput {
874
+ applicationClaims?: Array<ApplicationClaimOutput>;
875
+ // (undocumented)
876
+ receipt?: ReceiptContentsOutput;
877
+ state: "Loading" | "Ready";
878
+ transactionId: string;
879
+ }
880
+
881
+ // @public
882
+ export interface TransactionStatusOutput {
883
+ state: "Committed" | "Pending";
884
+ transactionId: string;
885
+ }
886
+
887
+ // (No @packageDocumentation comment for this package)
888
+
889
+ ```