@azure-rest/confidential-ledger 1.0.1-alpha.20241125.1 → 1.0.1-alpha.20241127.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.
Files changed (121) hide show
  1. package/dist/commonjs/confidentialLedger.d.ts +6 -0
  2. package/dist/commonjs/confidentialLedger.d.ts.map +1 -0
  3. package/dist/commonjs/confidentialLedger.js +25 -0
  4. package/dist/commonjs/confidentialLedger.js.map +1 -0
  5. package/dist/commonjs/generated/src/clientDefinitions.d.ts +75 -0
  6. package/dist/commonjs/generated/src/clientDefinitions.d.ts.map +1 -0
  7. package/dist/commonjs/generated/src/clientDefinitions.js +5 -0
  8. package/dist/commonjs/generated/src/clientDefinitions.js.map +1 -0
  9. package/dist/commonjs/generated/src/confidentialLedger.d.ts +11 -0
  10. package/dist/commonjs/generated/src/confidentialLedger.d.ts.map +1 -0
  11. package/dist/commonjs/generated/src/confidentialLedger.js +35 -0
  12. package/dist/commonjs/generated/src/confidentialLedger.js.map +1 -0
  13. package/dist/commonjs/generated/src/index.d.ts +11 -0
  14. package/dist/commonjs/generated/src/index.d.ts.map +1 -0
  15. package/dist/commonjs/generated/src/index.js +16 -0
  16. package/dist/commonjs/generated/src/index.js.map +1 -0
  17. package/dist/commonjs/generated/src/isUnexpected.d.ts +15 -0
  18. package/dist/commonjs/generated/src/isUnexpected.d.ts.map +1 -0
  19. package/dist/commonjs/generated/src/isUnexpected.js +86 -0
  20. package/dist/commonjs/generated/src/isUnexpected.js.map +1 -0
  21. package/dist/commonjs/generated/src/logger.d.ts +2 -0
  22. package/dist/commonjs/generated/src/logger.d.ts.map +1 -0
  23. package/dist/commonjs/generated/src/logger.js +8 -0
  24. package/dist/commonjs/generated/src/logger.js.map +1 -0
  25. package/dist/commonjs/generated/src/models.d.ts +11 -0
  26. package/dist/commonjs/generated/src/models.d.ts.map +1 -0
  27. package/dist/commonjs/generated/src/models.js +5 -0
  28. package/dist/commonjs/generated/src/models.js.map +1 -0
  29. package/dist/commonjs/generated/src/outputModels.d.ts +130 -0
  30. package/dist/commonjs/generated/src/outputModels.d.ts.map +1 -0
  31. package/dist/commonjs/generated/src/outputModels.js +5 -0
  32. package/dist/commonjs/generated/src/outputModels.js.map +1 -0
  33. package/dist/commonjs/generated/src/paginateHelper.d.ts +55 -0
  34. package/dist/commonjs/generated/src/paginateHelper.d.ts.map +1 -0
  35. package/dist/commonjs/generated/src/paginateHelper.js +119 -0
  36. package/dist/commonjs/generated/src/paginateHelper.js.map +1 -0
  37. package/dist/commonjs/generated/src/parameters.d.ts +66 -0
  38. package/dist/commonjs/generated/src/parameters.d.ts.map +1 -0
  39. package/dist/commonjs/generated/src/parameters.js +5 -0
  40. package/dist/commonjs/generated/src/parameters.js.map +1 -0
  41. package/dist/commonjs/generated/src/responses.d.ts +138 -0
  42. package/dist/commonjs/generated/src/responses.d.ts.map +1 -0
  43. package/dist/commonjs/generated/src/responses.js +5 -0
  44. package/dist/commonjs/generated/src/responses.js.map +1 -0
  45. package/dist/commonjs/getLedgerIdentity.d.ts +6 -0
  46. package/dist/commonjs/getLedgerIdentity.d.ts.map +1 -0
  47. package/dist/commonjs/getLedgerIdentity.js +22 -0
  48. package/dist/commonjs/getLedgerIdentity.js.map +1 -0
  49. package/dist/commonjs/index.d.ts +12 -0
  50. package/dist/commonjs/index.d.ts.map +1 -0
  51. package/dist/commonjs/index.js +19 -0
  52. package/dist/commonjs/index.js.map +1 -0
  53. package/dist/commonjs/package.json +3 -0
  54. package/dist/commonjs/tsdoc-metadata.json +11 -0
  55. package/dist/esm/confidentialLedger.d.ts +6 -0
  56. package/dist/esm/confidentialLedger.d.ts.map +1 -0
  57. package/{dist-esm/src → dist/esm}/confidentialLedger.js +1 -1
  58. package/dist/esm/confidentialLedger.js.map +1 -0
  59. package/dist/esm/generated/src/clientDefinitions.d.ts +75 -0
  60. package/dist/esm/generated/src/clientDefinitions.d.ts.map +1 -0
  61. package/dist/esm/generated/src/clientDefinitions.js.map +1 -0
  62. package/dist/esm/generated/src/confidentialLedger.d.ts +11 -0
  63. package/dist/esm/generated/src/confidentialLedger.d.ts.map +1 -0
  64. package/{dist-esm/src → dist/esm}/generated/src/confidentialLedger.js +1 -1
  65. package/dist/esm/generated/src/confidentialLedger.js.map +1 -0
  66. package/dist/esm/generated/src/index.d.ts +11 -0
  67. package/dist/esm/generated/src/index.d.ts.map +1 -0
  68. package/dist/esm/generated/src/index.js +13 -0
  69. package/dist/esm/generated/src/index.js.map +1 -0
  70. package/dist/esm/generated/src/isUnexpected.d.ts +15 -0
  71. package/dist/esm/generated/src/isUnexpected.d.ts.map +1 -0
  72. package/dist/esm/generated/src/isUnexpected.js.map +1 -0
  73. package/dist/esm/generated/src/logger.d.ts +2 -0
  74. package/dist/esm/generated/src/logger.d.ts.map +1 -0
  75. package/dist/esm/generated/src/models.d.ts +11 -0
  76. package/dist/esm/generated/src/models.d.ts.map +1 -0
  77. package/dist/esm/generated/src/outputModels.d.ts +130 -0
  78. package/dist/esm/generated/src/outputModels.d.ts.map +1 -0
  79. package/dist/esm/generated/src/paginateHelper.d.ts +55 -0
  80. package/dist/esm/generated/src/paginateHelper.d.ts.map +1 -0
  81. package/dist/esm/generated/src/parameters.d.ts +66 -0
  82. package/dist/esm/generated/src/parameters.d.ts.map +1 -0
  83. package/dist/esm/generated/src/parameters.js.map +1 -0
  84. package/dist/esm/generated/src/responses.d.ts +138 -0
  85. package/dist/esm/generated/src/responses.d.ts.map +1 -0
  86. package/dist/esm/generated/src/responses.js.map +1 -0
  87. package/dist/esm/getLedgerIdentity.d.ts +6 -0
  88. package/dist/esm/getLedgerIdentity.d.ts.map +1 -0
  89. package/dist/esm/index.d.ts +12 -0
  90. package/dist/esm/index.d.ts.map +1 -0
  91. package/dist/esm/index.js +14 -0
  92. package/dist/esm/index.js.map +1 -0
  93. package/dist/esm/package.json +3 -0
  94. package/package.json +48 -30
  95. package/dist/index.js +0 -285
  96. package/dist/index.js.map +0 -1
  97. package/dist-esm/src/confidentialLedger.js.map +0 -1
  98. package/dist-esm/src/generated/src/clientDefinitions.js.map +0 -1
  99. package/dist-esm/src/generated/src/confidentialLedger.js.map +0 -1
  100. package/dist-esm/src/generated/src/index.js +0 -13
  101. package/dist-esm/src/generated/src/index.js.map +0 -1
  102. package/dist-esm/src/generated/src/isUnexpected.js.map +0 -1
  103. package/dist-esm/src/generated/src/parameters.js.map +0 -1
  104. package/dist-esm/src/generated/src/responses.js.map +0 -1
  105. package/dist-esm/src/index.js +0 -14
  106. package/dist-esm/src/index.js.map +0 -1
  107. package/types/confidential-ledger.d.ts +0 -599
  108. /package/{dist-esm/src → dist/esm}/generated/src/clientDefinitions.js +0 -0
  109. /package/{dist-esm/src → dist/esm}/generated/src/isUnexpected.js +0 -0
  110. /package/{dist-esm/src → dist/esm}/generated/src/logger.js +0 -0
  111. /package/{dist-esm/src → dist/esm}/generated/src/logger.js.map +0 -0
  112. /package/{dist-esm/src → dist/esm}/generated/src/models.js +0 -0
  113. /package/{dist-esm/src → dist/esm}/generated/src/models.js.map +0 -0
  114. /package/{dist-esm/src → dist/esm}/generated/src/outputModels.js +0 -0
  115. /package/{dist-esm/src → dist/esm}/generated/src/outputModels.js.map +0 -0
  116. /package/{dist-esm/src → dist/esm}/generated/src/paginateHelper.js +0 -0
  117. /package/{dist-esm/src → dist/esm}/generated/src/paginateHelper.js.map +0 -0
  118. /package/{dist-esm/src → dist/esm}/generated/src/parameters.js +0 -0
  119. /package/{dist-esm/src → dist/esm}/generated/src/responses.js +0 -0
  120. /package/{dist-esm/src → dist/esm}/getLedgerIdentity.js +0 -0
  121. /package/{dist-esm/src → dist/esm}/getLedgerIdentity.js.map +0 -0
@@ -1,599 +0,0 @@
1
- import { Client } from '@azure-rest/core-client';
2
- import type { ClientOptions } from '@azure-rest/core-client';
3
- import { HttpResponse } from '@azure-rest/core-client';
4
- import { PagedAsyncIterableIterator } from '@azure/core-paging';
5
- import { PathUncheckedResponse } from '@azure-rest/core-client';
6
- import { RawHttpHeaders } from '@azure/core-rest-pipeline';
7
- import { RequestParameters } from '@azure-rest/core-client';
8
- import { StreamableMethod } from '@azure-rest/core-client';
9
- import type { TokenCredential } from '@azure/core-auth';
10
-
11
- /** Identifier for collections. */
12
- export declare interface CollectionOutput {
13
- collectionId: string;
14
- }
15
-
16
- declare function ConfidentialLedger(ledgerEndpoint: string, ledgerIdentityCertificate: string, options?: ClientOptions): ConfidentialLedgerClient;
17
-
18
- declare function ConfidentialLedger(ledgerEndpoint: string, ledgerIdentityCertificate: string, credentials: TokenCredential, options?: ClientOptions): ConfidentialLedgerClient;
19
- export default ConfidentialLedger;
20
-
21
- export declare type ConfidentialLedgerClient = Client & {
22
- path: Routes;
23
- };
24
-
25
- /** Information about the enclaves running the Confidential Ledger. */
26
- export declare interface ConfidentialLedgerEnclavesOutput {
27
- /** Id of the Confidential Ledger node responding to the request. */
28
- currentNodeId: string;
29
- /** Dictionary of enclave quotes, indexed by node id. */
30
- enclaveQuotes: Record<string, EnclaveQuoteOutput>;
31
- }
32
-
33
- /** An error response from Confidential Ledger. */
34
- export declare interface ConfidentialLedgerErrorBodyOutput {
35
- /** The error code. */
36
- readonly code?: string;
37
- /** The error message. */
38
- readonly message?: string;
39
- }
40
-
41
- /** An error response from Confidential Ledger. */
42
- export declare interface ConfidentialLedgerErrorOutput {
43
- /** An error response from Confidential Ledger. */
44
- readonly error?: ConfidentialLedgerErrorBodyOutput;
45
- }
46
-
47
- /** Describes a member of the consortium. */
48
- export declare interface ConsortiumMemberOutput {
49
- /** PEM-encoded certificate associated with the member. */
50
- certificate: string;
51
- /** Identifier assigned to the member. */
52
- id: string;
53
- }
54
-
55
- /** List of members in the consortium. */
56
- export declare interface ConsortiumOutput {
57
- members: Array<ConsortiumMemberOutput>;
58
- /** Path from which to retrieve the next page of results. */
59
- nextLink?: string;
60
- }
61
-
62
- /** The governance script for the application. */
63
- export declare interface ConstitutionOutput {
64
- /** SHA256 digest of the constitution script. */
65
- digest: string;
66
- /** Contents of the constitution. */
67
- script: string;
68
- }
69
-
70
- export declare interface CreateLedgerEntry200Headers {
71
- /** The transaction id at which this write will become durable. */
72
- "x-ms-ccf-transaction-id"?: string;
73
- }
74
-
75
- /** A collection id may optionally be specified. */
76
- export declare interface CreateLedgerEntry200Response extends HttpResponse {
77
- status: "200";
78
- body: LedgerWriteResultOutput;
79
- headers: RawHttpHeaders & CreateLedgerEntry200Headers;
80
- }
81
-
82
- export declare interface CreateLedgerEntryBodyParam {
83
- /** Ledger entry. */
84
- body: LedgerEntry;
85
- }
86
-
87
- /** A collection id may optionally be specified. */
88
- export declare interface CreateLedgerEntryDefaultResponse extends HttpResponse {
89
- status: string;
90
- body: ConfidentialLedgerErrorOutput;
91
- }
92
-
93
- export declare interface CreateLedgerEntryMediaTypesParam {
94
- /** Request content type */
95
- contentType?: "application/json";
96
- }
97
-
98
- export declare type CreateLedgerEntryParameters = CreateLedgerEntryQueryParam & CreateLedgerEntryMediaTypesParam & CreateLedgerEntryBodyParam & RequestParameters;
99
-
100
- export declare interface CreateLedgerEntryQueryParam {
101
- queryParameters?: CreateLedgerEntryQueryParamProperties;
102
- }
103
-
104
- export declare interface CreateLedgerEntryQueryParamProperties {
105
- /** The collection id. */
106
- collectionId?: string;
107
- }
108
-
109
- /** A JSON merge patch is applied for existing users */
110
- export declare interface CreateOrUpdateUser200Response extends HttpResponse {
111
- status: "200";
112
- body: LedgerUserOutput;
113
- }
114
-
115
- export declare interface CreateOrUpdateUserBodyParam {
116
- /** Details about a Confidential Ledger user. */
117
- body: LedgerUserResourceMergeAndPatch;
118
- }
119
-
120
- /** A JSON merge patch is applied for existing users */
121
- export declare interface CreateOrUpdateUserDefaultResponse extends HttpResponse {
122
- status: string;
123
- body: ConfidentialLedgerErrorOutput;
124
- }
125
-
126
- export declare interface CreateOrUpdateUserMediaTypesParam {
127
- /** Request content type */
128
- contentType?: "application/merge-patch+json";
129
- }
130
-
131
- export declare type CreateOrUpdateUserParameters = CreateOrUpdateUserMediaTypesParam & CreateOrUpdateUserBodyParam & RequestParameters;
132
-
133
- export declare interface DeleteUser {
134
- /** Deletes a user from the Confidential Ledger. */
135
- delete(options?: DeleteUserParameters): StreamableMethod<DeleteUser204Response | DeleteUserDefaultResponse>;
136
- /** Gets a user. */
137
- get(options?: GetUserParameters): StreamableMethod<GetUser200Response | GetUserDefaultResponse>;
138
- /** A JSON merge patch is applied for existing users */
139
- patch(options: CreateOrUpdateUserParameters): StreamableMethod<CreateOrUpdateUser200Response | CreateOrUpdateUserDefaultResponse>;
140
- }
141
-
142
- /** Deletes a user from the Confidential Ledger. */
143
- export declare interface DeleteUser204Response extends HttpResponse {
144
- status: "204";
145
- }
146
-
147
- /** Deletes a user from the Confidential Ledger. */
148
- export declare interface DeleteUserDefaultResponse extends HttpResponse {
149
- status: string;
150
- body: ConfidentialLedgerErrorOutput;
151
- }
152
-
153
- export declare type DeleteUserParameters = RequestParameters;
154
-
155
- /** Contains the enclave quote. */
156
- export declare interface EnclaveQuoteOutput {
157
- /** ID assigned to this node. */
158
- nodeId: string;
159
- /** MRENCLAVE value of the code running in the enclave. */
160
- mrenclave?: string;
161
- /** Version of the quote presented. */
162
- quoteVersion: string;
163
- /** Raw SGX quote, parsable by tools like Open Enclave's oeverify. */
164
- raw: string;
165
- }
166
-
167
- /**
168
- * Helper type to extract the type of an array
169
- */
170
- export declare type GetArrayType<T> = T extends Array<infer TData> ? TData : never;
171
-
172
- export declare interface GetConstitution {
173
- /** The constitution is a script that assesses and applies proposals from consortium members. */
174
- get(options?: GetConstitutionParameters): StreamableMethod<GetConstitution200Response | GetConstitutionDefaultResponse>;
175
- }
176
-
177
- /** The constitution is a script that assesses and applies proposals from consortium members. */
178
- export declare interface GetConstitution200Response extends HttpResponse {
179
- status: "200";
180
- body: ConstitutionOutput;
181
- }
182
-
183
- /** The constitution is a script that assesses and applies proposals from consortium members. */
184
- export declare interface GetConstitutionDefaultResponse extends HttpResponse {
185
- status: string;
186
- body: ConfidentialLedgerErrorOutput;
187
- }
188
-
189
- export declare type GetConstitutionParameters = RequestParameters;
190
-
191
- export declare interface GetCurrentLedgerEntry {
192
- /** A collection id may optionally be specified. */
193
- get(options?: GetCurrentLedgerEntryParameters): StreamableMethod<GetCurrentLedgerEntry200Response | GetCurrentLedgerEntryDefaultResponse>;
194
- }
195
-
196
- /** A collection id may optionally be specified. */
197
- export declare interface GetCurrentLedgerEntry200Response extends HttpResponse {
198
- status: "200";
199
- body: LedgerEntryOutput;
200
- }
201
-
202
- /** A collection id may optionally be specified. */
203
- export declare interface GetCurrentLedgerEntryDefaultResponse extends HttpResponse {
204
- status: string;
205
- body: ConfidentialLedgerErrorOutput;
206
- }
207
-
208
- export declare type GetCurrentLedgerEntryParameters = GetCurrentLedgerEntryQueryParam & RequestParameters;
209
-
210
- export declare interface GetCurrentLedgerEntryQueryParam {
211
- queryParameters?: GetCurrentLedgerEntryQueryParamProperties;
212
- }
213
-
214
- export declare interface GetCurrentLedgerEntryQueryParamProperties {
215
- /** The collection id. */
216
- collectionId?: string;
217
- }
218
-
219
- export declare interface GetEnclaveQuotes {
220
- /** A quote is an SGX enclave measurement that can be used to verify the validity of a node and its enclave. */
221
- get(options?: GetEnclaveQuotesParameters): StreamableMethod<GetEnclaveQuotes200Response | GetEnclaveQuotesDefaultResponse>;
222
- }
223
-
224
- /** A quote is an SGX enclave measurement that can be used to verify the validity of a node and its enclave. */
225
- export declare interface GetEnclaveQuotes200Response extends HttpResponse {
226
- status: "200";
227
- body: ConfidentialLedgerEnclavesOutput;
228
- }
229
-
230
- /** A quote is an SGX enclave measurement that can be used to verify the validity of a node and its enclave. */
231
- export declare interface GetEnclaveQuotesDefaultResponse extends HttpResponse {
232
- status: string;
233
- body: ConfidentialLedgerErrorOutput;
234
- }
235
-
236
- export declare type GetEnclaveQuotesParameters = RequestParameters;
237
-
238
- export declare interface GetLedgerEntry {
239
- /** To return older ledger entries, the relevant sections of the ledger must be read from disk and validated. To prevent blocking within the enclave, the response will indicate whether the entry is ready and part of the response, or if the loading is still ongoing. */
240
- get(options?: GetLedgerEntryParameters): StreamableMethod<GetLedgerEntry200Response | GetLedgerEntryDefaultResponse>;
241
- }
242
-
243
- /** To return older ledger entries, the relevant sections of the ledger must be read from disk and validated. To prevent blocking within the enclave, the response will indicate whether the entry is ready and part of the response, or if the loading is still ongoing. */
244
- export declare interface GetLedgerEntry200Response extends HttpResponse {
245
- status: "200";
246
- body: LedgerQueryResultOutput;
247
- }
248
-
249
- /** To return older ledger entries, the relevant sections of the ledger must be read from disk and validated. To prevent blocking within the enclave, the response will indicate whether the entry is ready and part of the response, or if the loading is still ongoing. */
250
- export declare interface GetLedgerEntryDefaultResponse extends HttpResponse {
251
- status: string;
252
- body: ConfidentialLedgerErrorOutput;
253
- }
254
-
255
- export declare type GetLedgerEntryParameters = GetLedgerEntryQueryParam & RequestParameters;
256
-
257
- export declare interface GetLedgerEntryQueryParam {
258
- queryParameters?: GetLedgerEntryQueryParamProperties;
259
- }
260
-
261
- export declare interface GetLedgerEntryQueryParamProperties {
262
- /** The collection id. */
263
- collectionId?: string;
264
- }
265
-
266
- export declare function getLedgerIdentity(ledgerId: string, identityServiceBaseUrl?: string): Promise<LedgerIdentity>;
267
-
268
- /**
269
- * The type of a custom function that defines how to get a page and a link to the next one if any.
270
- */
271
- export declare type GetPage<TPage> = (pageLink: string, maxPageSize?: number) => Promise<{
272
- page: TPage;
273
- nextPageLink?: string;
274
- }>;
275
-
276
- export declare interface GetReceipt {
277
- /** Gets a receipt certifying ledger contents at a particular transaction id. */
278
- get(options?: GetReceiptParameters): StreamableMethod<GetReceipt200Response | GetReceiptDefaultResponse>;
279
- }
280
-
281
- /** Gets a receipt certifying ledger contents at a particular transaction id. */
282
- export declare interface GetReceipt200Response extends HttpResponse {
283
- status: "200";
284
- body: TransactionReceiptOutput;
285
- }
286
-
287
- /** Gets a receipt certifying ledger contents at a particular transaction id. */
288
- export declare interface GetReceiptDefaultResponse extends HttpResponse {
289
- status: string;
290
- body: ConfidentialLedgerErrorOutput;
291
- }
292
-
293
- export declare type GetReceiptParameters = RequestParameters;
294
-
295
- export declare interface GetTransactionStatus {
296
- /** Gets the status of an entry identified by a transaction id. */
297
- get(options?: GetTransactionStatusParameters): StreamableMethod<GetTransactionStatus200Response | GetTransactionStatusDefaultResponse>;
298
- }
299
-
300
- /** Gets the status of an entry identified by a transaction id. */
301
- export declare interface GetTransactionStatus200Response extends HttpResponse {
302
- status: "200";
303
- body: TransactionStatusOutput;
304
- }
305
-
306
- /** Gets the status of an entry identified by a transaction id. */
307
- export declare interface GetTransactionStatusDefaultResponse extends HttpResponse {
308
- status: string;
309
- body: ConfidentialLedgerErrorOutput;
310
- }
311
-
312
- export declare type GetTransactionStatusParameters = RequestParameters;
313
-
314
- /** Gets a user. */
315
- export declare interface GetUser200Response extends HttpResponse {
316
- status: "200";
317
- body: LedgerUserOutput;
318
- }
319
-
320
- /** Gets a user. */
321
- export declare interface GetUserDefaultResponse extends HttpResponse {
322
- status: string;
323
- body: ConfidentialLedgerErrorOutput;
324
- }
325
-
326
- export declare type GetUserParameters = RequestParameters;
327
-
328
- export declare function isUnexpected(response: GetConstitution200Response | GetConstitutionDefaultResponse): response is GetConstitutionDefaultResponse;
329
-
330
- export declare function isUnexpected(response: ListConsortiumMembers200Response | ListConsortiumMembersDefaultResponse): response is ListConsortiumMembersDefaultResponse;
331
-
332
- export declare function isUnexpected(response: GetEnclaveQuotes200Response | GetEnclaveQuotesDefaultResponse): response is GetEnclaveQuotesDefaultResponse;
333
-
334
- export declare function isUnexpected(response: ListCollections200Response | ListCollectionsDefaultResponse): response is ListCollectionsDefaultResponse;
335
-
336
- export declare function isUnexpected(response: ListLedgerEntries200Response | ListLedgerEntriesDefaultResponse): response is ListLedgerEntriesDefaultResponse;
337
-
338
- export declare function isUnexpected(response: CreateLedgerEntry200Response | CreateLedgerEntryDefaultResponse): response is CreateLedgerEntryDefaultResponse;
339
-
340
- export declare function isUnexpected(response: GetLedgerEntry200Response | GetLedgerEntryDefaultResponse): response is GetLedgerEntryDefaultResponse;
341
-
342
- export declare function isUnexpected(response: GetReceipt200Response | GetReceiptDefaultResponse): response is GetReceiptDefaultResponse;
343
-
344
- export declare function isUnexpected(response: GetTransactionStatus200Response | GetTransactionStatusDefaultResponse): response is GetTransactionStatusDefaultResponse;
345
-
346
- export declare function isUnexpected(response: GetCurrentLedgerEntry200Response | GetCurrentLedgerEntryDefaultResponse): response is GetCurrentLedgerEntryDefaultResponse;
347
-
348
- export declare function isUnexpected(response: DeleteUser204Response | DeleteUserDefaultResponse): response is DeleteUserDefaultResponse;
349
-
350
- export declare function isUnexpected(response: GetUser200Response | GetUserDefaultResponse): response is GetUserDefaultResponse;
351
-
352
- export declare function isUnexpected(response: CreateOrUpdateUser200Response | CreateOrUpdateUserDefaultResponse): response is CreateOrUpdateUserDefaultResponse;
353
-
354
- /** An entry in the ledger. */
355
- export declare interface LedgerEntry {
356
- /** Contents of the ledger entry. */
357
- contents: string;
358
- }
359
-
360
- /** An entry in the ledger. */
361
- export declare interface LedgerEntryOutput {
362
- /** Contents of the ledger entry. */
363
- contents: string;
364
- readonly collectionId?: string;
365
- /** A unique identifier for the state of the ledger. If returned as part of a LedgerEntry, it indicates the state from which the entry was read. */
366
- readonly transactionId?: string;
367
- }
368
-
369
- export declare interface LedgerIdentity {
370
- ledgerIdentityCertificate: string;
371
- ledgerId: string;
372
- }
373
-
374
- /** The result of querying for a ledger entry from an older transaction id. The ledger entry is available in the response only if the returned state is Ready. */
375
- export declare interface LedgerQueryResultOutput {
376
- /** State of a ledger query. */
377
- state: "Loading" | "Ready";
378
- /** The ledger entry found as a result of the query. This is only available if the query is in Ready state. */
379
- entry?: LedgerEntryOutput;
380
- }
381
-
382
- /** Details about a Confidential Ledger user. */
383
- export declare interface LedgerUser {
384
- /** Represents an assignable role. */
385
- assignedRole: "Administrator" | "Contributor" | "Reader";
386
- }
387
-
388
- /** Details about a Confidential Ledger user. */
389
- export declare interface LedgerUserOutput {
390
- /** Represents an assignable role. */
391
- assignedRole: "Administrator" | "Contributor" | "Reader";
392
- /** Identifier for the user. This must either be an AAD object id or a certificate fingerprint. */
393
- readonly userId?: string;
394
- }
395
-
396
- /** Details about a Confidential Ledger user. */
397
- export declare type LedgerUserResourceMergeAndPatch = Partial<LedgerUser>;
398
-
399
- /** Returned as a result of a write to the Confidential Ledger, the transaction id in the response indicates when the write will become durable. */
400
- export declare interface LedgerWriteResultOutput {
401
- collectionId: string;
402
- }
403
-
404
- export declare interface ListCollections {
405
- /** Collection ids are user-created collections of ledger entries */
406
- get(options?: ListCollectionsParameters): StreamableMethod<ListCollections200Response | ListCollectionsDefaultResponse>;
407
- }
408
-
409
- /** Collection ids are user-created collections of ledger entries */
410
- export declare interface ListCollections200Response extends HttpResponse {
411
- status: "200";
412
- body: PagedCollectionsOutput;
413
- }
414
-
415
- /** Collection ids are user-created collections of ledger entries */
416
- export declare interface ListCollectionsDefaultResponse extends HttpResponse {
417
- status: string;
418
- body: ConfidentialLedgerErrorOutput;
419
- }
420
-
421
- export declare type ListCollectionsParameters = RequestParameters;
422
-
423
- export declare interface ListConsortiumMembers {
424
- /** Consortium members can manage the Confidential Ledger. */
425
- get(options?: ListConsortiumMembersParameters): StreamableMethod<ListConsortiumMembers200Response | ListConsortiumMembersDefaultResponse>;
426
- }
427
-
428
- /** Consortium members can manage the Confidential Ledger. */
429
- export declare interface ListConsortiumMembers200Response extends HttpResponse {
430
- status: "200";
431
- body: ConsortiumOutput;
432
- }
433
-
434
- /** Consortium members can manage the Confidential Ledger. */
435
- export declare interface ListConsortiumMembersDefaultResponse extends HttpResponse {
436
- status: string;
437
- body: ConfidentialLedgerErrorOutput;
438
- }
439
-
440
- export declare type ListConsortiumMembersParameters = RequestParameters;
441
-
442
- export declare interface ListLedgerEntries {
443
- /** A collection id may optionally be specified. Only entries in the specified (or default) collection will be returned. */
444
- get(options?: ListLedgerEntriesParameters): StreamableMethod<ListLedgerEntries200Response | ListLedgerEntriesDefaultResponse>;
445
- /** A collection id may optionally be specified. */
446
- post(options: CreateLedgerEntryParameters): StreamableMethod<CreateLedgerEntry200Response | CreateLedgerEntryDefaultResponse>;
447
- }
448
-
449
- /** A collection id may optionally be specified. Only entries in the specified (or default) collection will be returned. */
450
- export declare interface ListLedgerEntries200Response extends HttpResponse {
451
- status: "200";
452
- body: PagedLedgerEntriesOutput;
453
- }
454
-
455
- /** A collection id may optionally be specified. Only entries in the specified (or default) collection will be returned. */
456
- export declare interface ListLedgerEntriesDefaultResponse extends HttpResponse {
457
- status: string;
458
- body: ConfidentialLedgerErrorOutput;
459
- }
460
-
461
- export declare type ListLedgerEntriesParameters = ListLedgerEntriesQueryParam & RequestParameters;
462
-
463
- export declare interface ListLedgerEntriesQueryParam {
464
- queryParameters?: ListLedgerEntriesQueryParamProperties;
465
- }
466
-
467
- export declare interface ListLedgerEntriesQueryParamProperties {
468
- /** The collection id. */
469
- collectionId?: string;
470
- /** Specify the first transaction ID in a range. */
471
- fromTransactionId?: string;
472
- /** Specify the last transaction ID in a range. */
473
- toTransactionId?: string;
474
- }
475
-
476
- /** Paginated collections returned in response to a query. */
477
- export declare interface PagedCollectionsOutput {
478
- collections: Array<CollectionOutput>;
479
- /** Path from which to retrieve the next page of results. */
480
- nextLink?: string;
481
- }
482
-
483
- /** Paginated ledger entries returned in response to a query. */
484
- export declare interface PagedLedgerEntriesOutput {
485
- /** State of a ledger query. */
486
- state: "Loading" | "Ready";
487
- /** Path from which to retrieve the next page of results. */
488
- nextLink?: string;
489
- /** Array of ledger entries. */
490
- entries: Array<LedgerEntryOutput>;
491
- }
492
-
493
- /**
494
- * Helper to paginate results from an initial response that follows the specification of Autorest `x-ms-pageable` extension
495
- * @param client - Client to use for sending the next page requests
496
- * @param initialResponse - Initial response containing the nextLink and current page of elements
497
- * @param customGetPage - Optional - Function to define how to extract the page and next link to be used to paginate the results
498
- * @returns - PagedAsyncIterableIterator to iterate the elements
499
- */
500
- export declare function paginate<TResponse extends PathUncheckedResponse>(client: Client, initialResponse: TResponse, options?: PagingOptions<TResponse>): PagedAsyncIterableIterator<PaginateReturn<TResponse>>;
501
-
502
- /**
503
- * Helper type to infer the Type of the paged elements from the response type
504
- * This type is generated based on the swagger information for x-ms-pageable
505
- * specifically on the itemName property which indicates the property of the response
506
- * where the page items are found. The default value is `value`.
507
- * This type will allow us to provide strongly typed Iterator based on the response we get as second parameter
508
- */
509
- export declare type PaginateReturn<TResult> = TResult extends {
510
- body: {
511
- value?: infer TPage;
512
- };
513
- } | {
514
- body: {
515
- members?: infer TPage;
516
- };
517
- } | {
518
- body: {
519
- collections?: infer TPage;
520
- };
521
- } | {
522
- body: {
523
- entries?: infer TPage;
524
- };
525
- } ? GetArrayType<TPage> : Array<unknown>;
526
-
527
- /**
528
- * Options for the paging helper
529
- */
530
- export declare interface PagingOptions<TResponse> {
531
- /**
532
- * Custom function to extract pagination details for crating the PagedAsyncIterableIterator
533
- */
534
- customGetPage?: GetPage<PaginateReturn<TResponse>[]>;
535
- }
536
-
537
- export declare interface ReceiptContentsOutput {
538
- cert?: string;
539
- leaf?: string;
540
- leafComponents?: ReceiptLeafComponentsOutput;
541
- nodeId: string;
542
- proof: Array<ReceiptElementOutput>;
543
- root?: string;
544
- serviceEndorsements?: Array<string>;
545
- signature: string;
546
- }
547
-
548
- export declare interface ReceiptElementOutput {
549
- left?: string;
550
- right?: string;
551
- }
552
-
553
- export declare interface ReceiptLeafComponentsOutput {
554
- claimsDigest?: string;
555
- commitEvidence?: string;
556
- writeSetDigest?: string;
557
- }
558
-
559
- export declare interface Routes {
560
- /** Resource for '/app/governance/constitution' has methods for the following verbs: get */
561
- (path: "/app/governance/constitution"): GetConstitution;
562
- /** Resource for '/app/governance/members' has methods for the following verbs: get */
563
- (path: "/app/governance/members"): ListConsortiumMembers;
564
- /** Resource for '/app/enclaveQuotes' has methods for the following verbs: get */
565
- (path: "/app/enclaveQuotes"): GetEnclaveQuotes;
566
- /** Resource for '/app/collections' has methods for the following verbs: get */
567
- (path: "/app/collections"): ListCollections;
568
- /** Resource for '/app/transactions' has methods for the following verbs: get, post */
569
- (path: "/app/transactions"): ListLedgerEntries;
570
- /** Resource for '/app/transactions/\{transactionId\}' has methods for the following verbs: get */
571
- (path: "/app/transactions/{transactionId}", transactionId: string): GetLedgerEntry;
572
- /** Resource for '/app/transactions/\{transactionId\}/receipt' has methods for the following verbs: get */
573
- (path: "/app/transactions/{transactionId}/receipt", transactionId: string): GetReceipt;
574
- /** Resource for '/app/transactions/\{transactionId\}/status' has methods for the following verbs: get */
575
- (path: "/app/transactions/{transactionId}/status", transactionId: string): GetTransactionStatus;
576
- /** Resource for '/app/transactions/current' has methods for the following verbs: get */
577
- (path: "/app/transactions/current"): GetCurrentLedgerEntry;
578
- /** Resource for '/app/users/\{userId\}' has methods for the following verbs: delete, get, patch */
579
- (path: "/app/users/{userId}", userId: string): DeleteUser;
580
- }
581
-
582
- /** A receipt certifying the transaction at the specified id. */
583
- export declare interface TransactionReceiptOutput {
584
- receipt?: ReceiptContentsOutput;
585
- /** State of a ledger query. */
586
- state: "Loading" | "Ready";
587
- /** A unique identifier for the state of the ledger. If returned as part of a LedgerEntry, it indicates the state from which the entry was read. */
588
- transactionId: string;
589
- }
590
-
591
- /** Response returned to a query for the transaction status */
592
- export declare interface TransactionStatusOutput {
593
- /** Represents the state of the transaction. */
594
- state: "Committed" | "Pending";
595
- /** A unique identifier for the state of the ledger. If returned as part of a LedgerEntry, it indicates the state from which the entry was read. */
596
- transactionId: string;
597
- }
598
-
599
- export { }
File without changes