@azure-rest/confidential-ledger 1.1.2-beta.1 → 1.1.2-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (138) hide show
  1. package/dist/commonjs/clientDefinitions.d.ts +68 -10
  2. package/dist/commonjs/clientDefinitions.d.ts.map +1 -1
  3. package/dist/commonjs/clientDefinitions.js.map +1 -1
  4. package/dist/commonjs/confidentialLedger.d.ts +2 -2
  5. package/dist/commonjs/confidentialLedger.d.ts.map +1 -1
  6. package/dist/commonjs/confidentialLedger.js +5 -5
  7. package/dist/commonjs/confidentialLedger.js.map +1 -1
  8. package/dist/commonjs/isUnexpected.d.ts +19 -1
  9. package/dist/commonjs/isUnexpected.d.ts.map +1 -1
  10. package/dist/commonjs/isUnexpected.js +18 -0
  11. package/dist/commonjs/isUnexpected.js.map +1 -1
  12. package/dist/commonjs/models.d.ts +57 -12
  13. package/dist/commonjs/models.d.ts.map +1 -1
  14. package/dist/commonjs/models.js.map +1 -1
  15. package/dist/commonjs/outputModels.d.ts +71 -0
  16. package/dist/commonjs/outputModels.d.ts.map +1 -1
  17. package/dist/commonjs/outputModels.js.map +1 -1
  18. package/dist/commonjs/paginateHelper.d.ts +4 -0
  19. package/dist/commonjs/paginateHelper.d.ts.map +1 -1
  20. package/dist/commonjs/paginateHelper.js +8 -1
  21. package/dist/commonjs/paginateHelper.js.map +1 -1
  22. package/dist/commonjs/parameters.d.ts +92 -2
  23. package/dist/commonjs/parameters.d.ts.map +1 -1
  24. package/dist/commonjs/parameters.js.map +1 -1
  25. package/dist/commonjs/responses.d.ts +172 -12
  26. package/dist/commonjs/responses.d.ts.map +1 -1
  27. package/dist/commonjs/responses.js.map +1 -1
  28. package/dist/commonjs/tsdoc-metadata.json +1 -1
  29. package/dist/esm/clientDefinitions.d.ts +68 -10
  30. package/dist/esm/clientDefinitions.d.ts.map +1 -1
  31. package/dist/esm/clientDefinitions.js.map +1 -1
  32. package/dist/esm/confidentialLedger.d.ts +2 -2
  33. package/dist/esm/confidentialLedger.d.ts.map +1 -1
  34. package/dist/esm/confidentialLedger.js +5 -5
  35. package/dist/esm/confidentialLedger.js.map +1 -1
  36. package/dist/esm/isUnexpected.d.ts +19 -1
  37. package/dist/esm/isUnexpected.d.ts.map +1 -1
  38. package/dist/esm/isUnexpected.js +18 -0
  39. package/dist/esm/isUnexpected.js.map +1 -1
  40. package/dist/esm/models.d.ts +57 -12
  41. package/dist/esm/models.d.ts.map +1 -1
  42. package/dist/esm/models.js.map +1 -1
  43. package/dist/esm/outputModels.d.ts +71 -0
  44. package/dist/esm/outputModels.d.ts.map +1 -1
  45. package/dist/esm/outputModels.js.map +1 -1
  46. package/dist/esm/paginateHelper.d.ts +4 -0
  47. package/dist/esm/paginateHelper.d.ts.map +1 -1
  48. package/dist/esm/paginateHelper.js +8 -1
  49. package/dist/esm/paginateHelper.js.map +1 -1
  50. package/dist/esm/parameters.d.ts +92 -2
  51. package/dist/esm/parameters.d.ts.map +1 -1
  52. package/dist/esm/parameters.js.map +1 -1
  53. package/dist/esm/responses.d.ts +172 -12
  54. package/dist/esm/responses.d.ts.map +1 -1
  55. package/dist/esm/responses.js.map +1 -1
  56. package/package.json +9 -17
  57. package/CHANGELOG.md +0 -22
  58. package/dist/commonjs/generated/clientDefinitions.d.ts +0 -153
  59. package/dist/commonjs/generated/clientDefinitions.d.ts.map +0 -1
  60. package/dist/commonjs/generated/clientDefinitions.js +0 -5
  61. package/dist/commonjs/generated/clientDefinitions.js.map +0 -1
  62. package/dist/commonjs/generated/confidentialLedger.d.ts +0 -16
  63. package/dist/commonjs/generated/confidentialLedger.d.ts.map +0 -1
  64. package/dist/commonjs/generated/confidentialLedger.js +0 -48
  65. package/dist/commonjs/generated/confidentialLedger.js.map +0 -1
  66. package/dist/commonjs/generated/index.d.ts +0 -11
  67. package/dist/commonjs/generated/index.d.ts.map +0 -1
  68. package/dist/commonjs/generated/index.js +0 -16
  69. package/dist/commonjs/generated/index.js.map +0 -1
  70. package/dist/commonjs/generated/isUnexpected.d.ts +0 -34
  71. package/dist/commonjs/generated/isUnexpected.d.ts.map +0 -1
  72. package/dist/commonjs/generated/isUnexpected.js +0 -105
  73. package/dist/commonjs/generated/isUnexpected.js.map +0 -1
  74. package/dist/commonjs/generated/logger.d.ts +0 -2
  75. package/dist/commonjs/generated/logger.d.ts.map +0 -1
  76. package/dist/commonjs/generated/logger.js +0 -8
  77. package/dist/commonjs/generated/logger.js.map +0 -1
  78. package/dist/commonjs/generated/models.d.ts +0 -87
  79. package/dist/commonjs/generated/models.d.ts.map +0 -1
  80. package/dist/commonjs/generated/models.js +0 -5
  81. package/dist/commonjs/generated/models.js.map +0 -1
  82. package/dist/commonjs/generated/outputModels.d.ts +0 -280
  83. package/dist/commonjs/generated/outputModels.d.ts.map +0 -1
  84. package/dist/commonjs/generated/outputModels.js +0 -5
  85. package/dist/commonjs/generated/outputModels.js.map +0 -1
  86. package/dist/commonjs/generated/paginateHelper.d.ts +0 -88
  87. package/dist/commonjs/generated/paginateHelper.d.ts.map +0 -1
  88. package/dist/commonjs/generated/paginateHelper.js +0 -223
  89. package/dist/commonjs/generated/paginateHelper.js.map +0 -1
  90. package/dist/commonjs/generated/parameters.d.ts +0 -168
  91. package/dist/commonjs/generated/parameters.d.ts.map +0 -1
  92. package/dist/commonjs/generated/parameters.js +0 -5
  93. package/dist/commonjs/generated/parameters.js.map +0 -1
  94. package/dist/commonjs/generated/responses.d.ts +0 -337
  95. package/dist/commonjs/generated/responses.d.ts.map +0 -1
  96. package/dist/commonjs/generated/responses.js +0 -5
  97. package/dist/commonjs/generated/responses.js.map +0 -1
  98. package/dist/esm/generated/clientDefinitions.d.ts +0 -153
  99. package/dist/esm/generated/clientDefinitions.d.ts.map +0 -1
  100. package/dist/esm/generated/clientDefinitions.js +0 -4
  101. package/dist/esm/generated/clientDefinitions.js.map +0 -1
  102. package/dist/esm/generated/confidentialLedger.d.ts +0 -16
  103. package/dist/esm/generated/confidentialLedger.d.ts.map +0 -1
  104. package/dist/esm/generated/confidentialLedger.js +0 -45
  105. package/dist/esm/generated/confidentialLedger.js.map +0 -1
  106. package/dist/esm/generated/index.d.ts +0 -11
  107. package/dist/esm/generated/index.d.ts.map +0 -1
  108. package/dist/esm/generated/index.js +0 -13
  109. package/dist/esm/generated/index.js.map +0 -1
  110. package/dist/esm/generated/isUnexpected.d.ts +0 -34
  111. package/dist/esm/generated/isUnexpected.d.ts.map +0 -1
  112. package/dist/esm/generated/isUnexpected.js +0 -102
  113. package/dist/esm/generated/isUnexpected.js.map +0 -1
  114. package/dist/esm/generated/logger.d.ts +0 -2
  115. package/dist/esm/generated/logger.d.ts.map +0 -1
  116. package/dist/esm/generated/logger.js +0 -5
  117. package/dist/esm/generated/logger.js.map +0 -1
  118. package/dist/esm/generated/models.d.ts +0 -87
  119. package/dist/esm/generated/models.d.ts.map +0 -1
  120. package/dist/esm/generated/models.js +0 -4
  121. package/dist/esm/generated/models.js.map +0 -1
  122. package/dist/esm/generated/outputModels.d.ts +0 -280
  123. package/dist/esm/generated/outputModels.d.ts.map +0 -1
  124. package/dist/esm/generated/outputModels.js +0 -4
  125. package/dist/esm/generated/outputModels.js.map +0 -1
  126. package/dist/esm/generated/paginateHelper.d.ts +0 -88
  127. package/dist/esm/generated/paginateHelper.d.ts.map +0 -1
  128. package/dist/esm/generated/paginateHelper.js +0 -220
  129. package/dist/esm/generated/paginateHelper.js.map +0 -1
  130. package/dist/esm/generated/parameters.d.ts +0 -168
  131. package/dist/esm/generated/parameters.d.ts.map +0 -1
  132. package/dist/esm/generated/parameters.js +0 -4
  133. package/dist/esm/generated/parameters.js.map +0 -1
  134. package/dist/esm/generated/responses.d.ts +0 -337
  135. package/dist/esm/generated/responses.d.ts.map +0 -1
  136. package/dist/esm/generated/responses.js +0 -4
  137. package/dist/esm/generated/responses.js.map +0 -1
  138. package/review/confidential-ledger.api.md +0 -927
@@ -1,927 +0,0 @@
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 ListUserDefinedFunctions {
698
- get(options?: ListUserDefinedFunctionsParameters): StreamableMethod<ListUserDefinedFunctions200Response | ListUserDefinedFunctionsDefaultResponse>;
699
- }
700
-
701
- // @public
702
- export interface ListUserDefinedFunctions200Response extends HttpResponse {
703
- // (undocumented)
704
- body: PagedUserDefinedFunctionsOutput;
705
- // (undocumented)
706
- status: "200";
707
- }
708
-
709
- // @public
710
- export interface ListUserDefinedFunctionsDefaultResponse extends HttpResponse {
711
- // (undocumented)
712
- body: ConfidentialLedgerErrorOutput;
713
- // (undocumented)
714
- status: string;
715
- }
716
-
717
- // @public (undocumented)
718
- export type ListUserDefinedFunctionsParameters = RequestParameters;
719
-
720
- // @public (undocumented)
721
- export interface ListUsers {
722
- get(options?: ListUsersParameters): StreamableMethod<ListUsers200Response | ListUsersDefaultResponse>;
723
- }
724
-
725
- // @public
726
- export interface ListUsers200Response extends HttpResponse {
727
- // (undocumented)
728
- body: PagedUsersOutput;
729
- // (undocumented)
730
- status: "200";
731
- }
732
-
733
- // @public
734
- export interface ListUsersDefaultResponse extends HttpResponse {
735
- // (undocumented)
736
- body: ConfidentialLedgerErrorOutput;
737
- // (undocumented)
738
- status: string;
739
- }
740
-
741
- // @public (undocumented)
742
- export type ListUsersParameters = RequestParameters;
743
-
744
- // @public (undocumented)
745
- export interface Metadata {
746
- endpoints: Record<string, MethodToEndpointProperties>;
747
- }
748
-
749
- // @public (undocumented)
750
- export interface MetadataOutput {
751
- endpoints: Record<string, MethodToEndpointPropertiesOutput>;
752
- }
753
-
754
- // @public (undocumented)
755
- export interface MethodToEndpointProperties {
756
- // (undocumented)
757
- delete?: EndpointProperties;
758
- // (undocumented)
759
- get?: EndpointProperties;
760
- // (undocumented)
761
- patch?: EndpointProperties;
762
- // (undocumented)
763
- put?: EndpointProperties;
764
- }
765
-
766
- // @public (undocumented)
767
- export interface MethodToEndpointPropertiesOutput {
768
- // (undocumented)
769
- delete?: EndpointPropertiesOutput;
770
- // (undocumented)
771
- get?: EndpointPropertiesOutput;
772
- // (undocumented)
773
- patch?: EndpointPropertiesOutput;
774
- // (undocumented)
775
- put?: EndpointPropertiesOutput;
776
- }
777
-
778
- // @public
779
- export interface PagedAsyncIterableIterator<TElement, TPage = TElement[], TPageSettings = PageSettings> {
780
- [Symbol.asyncIterator](): PagedAsyncIterableIterator<TElement, TPage, TPageSettings>;
781
- byPage: (settings?: TPageSettings) => AsyncIterableIterator<TPage>;
782
- next(): Promise<IteratorResult<TElement>>;
783
- }
784
-
785
- // @public
786
- export interface PagedCollectionsOutput {
787
- // (undocumented)
788
- collections: Array<CollectionOutput>;
789
- nextLink?: string;
790
- }
791
-
792
- // @public
793
- export interface PagedLedgerEntriesOutput {
794
- entries: Array<LedgerEntryOutput>;
795
- nextLink?: string;
796
- state: "Loading" | "Ready";
797
- }
798
-
799
- // @public
800
- export interface PagedUserDefinedFunctionsOutput {
801
- // (undocumented)
802
- functions: Array<UserDefinedFunctionOutput>;
803
- nextLink?: string;
804
- }
805
-
806
- // @public
807
- export interface PagedUsersOutput {
808
- // (undocumented)
809
- ledgerUsers?: Array<LedgerUserOutput>;
810
- nextLink?: string;
811
- }
812
-
813
- // @public
814
- export interface PageSettings {
815
- continuationToken?: string;
816
- }
817
-
818
- // @public
819
- export function paginate<TResponse extends PathUncheckedResponse>(client: Client, initialResponse: TResponse, options?: PagingOptions<TResponse>): PagedAsyncIterableIterator<PaginateReturn<TResponse>>;
820
-
821
- // @public
822
- export type PaginateReturn<TResult> = TResult extends {
823
- body: {
824
- value?: infer TPage;
825
- };
826
- } | {
827
- body: {
828
- members?: infer TPage;
829
- };
830
- } | {
831
- body: {
832
- collections?: infer TPage;
833
- };
834
- } | {
835
- body: {
836
- entries?: infer TPage;
837
- };
838
- } | {
839
- body: {
840
- ledgerUsers?: infer TPage;
841
- };
842
- } ? GetArrayType<TPage> : Array<unknown>;
843
-
844
- // @public
845
- export interface PagingOptions<TResponse> {
846
- customGetPage?: GetPage<PaginateReturn<TResponse>[]>;
847
- }
848
-
849
- // @public (undocumented)
850
- export interface ReceiptContentsOutput {
851
- // (undocumented)
852
- cert?: string;
853
- // (undocumented)
854
- leaf?: string;
855
- // (undocumented)
856
- leafComponents?: ReceiptLeafComponentsOutput;
857
- // (undocumented)
858
- nodeId: string;
859
- // (undocumented)
860
- proof: Array<ReceiptElementOutput>;
861
- // (undocumented)
862
- root?: string;
863
- // (undocumented)
864
- serviceEndorsements?: Array<string>;
865
- // (undocumented)
866
- signature: string;
867
- }
868
-
869
- // @public (undocumented)
870
- export interface ReceiptElementOutput {
871
- // (undocumented)
872
- left?: string;
873
- // (undocumented)
874
- right?: string;
875
- }
876
-
877
- // @public (undocumented)
878
- export interface ReceiptLeafComponentsOutput {
879
- // (undocumented)
880
- claimsDigest?: string;
881
- // (undocumented)
882
- commitEvidence?: string;
883
- // (undocumented)
884
- writeSetDigest?: string;
885
- }
886
-
887
- // @public (undocumented)
888
- export interface Routes {
889
- (path: "/app/governance/constitution"): GetConstitution;
890
- (path: "/app/governance/members"): ListConsortiumMembers;
891
- (path: "/app/enclaveQuotes"): GetEnclaveQuotes;
892
- (path: "/app/collections"): ListCollections;
893
- (path: "/app/transactions"): ListLedgerEntries;
894
- (path: "/app/transactions/{transactionId}", transactionId: string): GetLedgerEntry;
895
- (path: "/app/transactions/{transactionId}/receipt", transactionId: string): GetReceipt;
896
- (path: "/app/transactions/{transactionId}/status", transactionId: string): GetTransactionStatus;
897
- (path: "/app/transactions/current"): GetCurrentLedgerEntry;
898
- (path: "/app/users"): ListUsers;
899
- (path: "/app/users/{userId}", userId: string): DeleteUser;
900
- (path: "/app/userDefinedEndpoints"): GetUserDefinedEndpoint;
901
- (path: "/app/userDefinedFunctions"): ListUserDefinedFunctions;
902
- }
903
-
904
- // @public
905
- export interface TransactionReceiptOutput {
906
- applicationClaims?: Array<ApplicationClaimOutput>;
907
- // (undocumented)
908
- receipt?: ReceiptContentsOutput;
909
- state: "Loading" | "Ready";
910
- transactionId: string;
911
- }
912
-
913
- // @public
914
- export interface TransactionStatusOutput {
915
- state: "Committed" | "Pending";
916
- transactionId: string;
917
- }
918
-
919
- // @public
920
- export interface UserDefinedFunctionOutput {
921
- code: string;
922
- readonly id?: string;
923
- }
924
-
925
- // (No @packageDocumentation comment for this package)
926
-
927
- ```