@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,6 +1,6 @@
1
1
  import type { RawHttpHeaders } from "@azure/core-rest-pipeline";
2
2
  import type { HttpResponse } from "@azure-rest/core-client";
3
- import type { ConstitutionOutput, BundleOutput, ConfidentialLedgerErrorOutput, ConsortiumOutput, ConfidentialLedgerEnclavesOutput, PagedCollectionsOutput, PagedLedgerEntriesOutput, LedgerWriteResultOutput, LedgerQueryResultOutput, TransactionReceiptOutput, TransactionStatusOutput, LedgerEntryOutput, PagedUsersOutput, LedgerUserOutput, PagedUserDefinedFunctionsOutput } from "./outputModels.js";
3
+ import type { ConstitutionOutput, ConfidentialLedgerErrorOutput, ConsortiumOutput, ConfidentialLedgerEnclavesOutput, PagedCollectionsOutput, PagedLedgerEntriesOutput, LedgerWriteResultOutput, LedgerQueryResultOutput, TransactionReceiptOutput, TransactionStatusOutput, LedgerEntryOutput, PagedUsersOutput, PagedLedgerUsersOutput, LedgerUserOutput, LedgerUserMultipleRolesOutput, BundleOutput, JSRuntimeOptionsOutput, ModuleDefOutput, PagedUserDefinedFunctionsOutput, UserDefinedFunctionOutput, UserDefinedFunctionExecutionResponseOutput, RoleOutput } from "./outputModels.js";
4
4
  /** The constitution is a script that assesses and applies proposals from consortium members. */
5
5
  export interface GetConstitution200Response extends HttpResponse {
6
6
  status: "200";
@@ -11,15 +11,6 @@ export interface GetConstitutionDefaultResponse extends HttpResponse {
11
11
  status: string;
12
12
  body: ConfidentialLedgerErrorOutput;
13
13
  }
14
- /** Creates the user defined endpoint in the ACL instance */
15
- export interface CreateUserDefinedEndpoint201Response extends HttpResponse {
16
- status: "201";
17
- }
18
- /** Creates the user defined endpoint in the ACL instance */
19
- export interface CreateUserDefinedEndpointDefaultResponse extends HttpResponse {
20
- status: string;
21
- body: ConfidentialLedgerErrorOutput;
22
- }
23
14
  /** Consortium members can manage the Confidential Ledger. */
24
15
  export interface ListConsortiumMembers200Response extends HttpResponse {
25
16
  status: "200";
@@ -115,16 +106,26 @@ export interface GetCurrentLedgerEntryDefaultResponse extends HttpResponse {
115
106
  status: string;
116
107
  body: ConfidentialLedgerErrorOutput;
117
108
  }
118
- /** All users' object IDs and roles will be returned. */
109
+ /** All users' object IDs and single role per user will be returned. */
119
110
  export interface ListUsers200Response extends HttpResponse {
120
111
  status: "200";
121
112
  body: PagedUsersOutput;
122
113
  }
123
- /** All users' object IDs and roles will be returned. */
114
+ /** All users' object IDs and single role per user will be returned. */
124
115
  export interface ListUsersDefaultResponse extends HttpResponse {
125
116
  status: string;
126
117
  body: ConfidentialLedgerErrorOutput;
127
118
  }
119
+ /** All users' object IDs and multiple roles will be returned. */
120
+ export interface ListLedgerUsers200Response extends HttpResponse {
121
+ status: "200";
122
+ body: PagedLedgerUsersOutput;
123
+ }
124
+ /** All users' object IDs and multiple roles will be returned. */
125
+ export interface ListLedgerUsersDefaultResponse extends HttpResponse {
126
+ status: string;
127
+ body: ConfidentialLedgerErrorOutput;
128
+ }
128
129
  /** Deletes a user from the Confidential Ledger. */
129
130
  export interface DeleteUser204Response extends HttpResponse {
130
131
  status: "204";
@@ -154,6 +155,35 @@ export interface CreateOrUpdateUserDefaultResponse extends HttpResponse {
154
155
  status: string;
155
156
  body: ConfidentialLedgerErrorOutput;
156
157
  }
158
+ /** Deletes a user with multiple roles from the Confidential Ledger. */
159
+ export interface DeleteLedgerUser204Response extends HttpResponse {
160
+ status: "204";
161
+ }
162
+ /** Deletes a user with multiple roles from the Confidential Ledger. */
163
+ export interface DeleteLedgerUserDefaultResponse extends HttpResponse {
164
+ status: string;
165
+ body: ConfidentialLedgerErrorOutput;
166
+ }
167
+ /** Gets a user with multiple roles. */
168
+ export interface GetLedgerUser200Response extends HttpResponse {
169
+ status: "200";
170
+ body: LedgerUserMultipleRolesOutput;
171
+ }
172
+ /** Gets a user with multiple roles. */
173
+ export interface GetLedgerUserDefaultResponse extends HttpResponse {
174
+ status: string;
175
+ body: ConfidentialLedgerErrorOutput;
176
+ }
177
+ /** A JSON merge patch is applied for existing users */
178
+ export interface CreateOrUpdateLedgerUser200Response extends HttpResponse {
179
+ status: "200";
180
+ body: LedgerUserMultipleRolesOutput;
181
+ }
182
+ /** A JSON merge patch is applied for existing users */
183
+ export interface CreateOrUpdateLedgerUserDefaultResponse extends HttpResponse {
184
+ status: string;
185
+ body: ConfidentialLedgerErrorOutput;
186
+ }
157
187
  /** Returns the user defined endpoint in the ACL instance */
158
188
  export interface GetUserDefinedEndpoint200Response extends HttpResponse {
159
189
  status: "200";
@@ -164,6 +194,45 @@ export interface GetUserDefinedEndpointDefaultResponse extends HttpResponse {
164
194
  status: string;
165
195
  body: ConfidentialLedgerErrorOutput;
166
196
  }
197
+ /** Creates the user defined endpoint in the ACL instance */
198
+ export interface CreateUserDefinedEndpoint201Response extends HttpResponse {
199
+ status: "201";
200
+ }
201
+ /** Creates the user defined endpoint in the ACL instance */
202
+ export interface CreateUserDefinedEndpointDefaultResponse extends HttpResponse {
203
+ status: string;
204
+ body: ConfidentialLedgerErrorOutput;
205
+ }
206
+ /** It returns the runtime options */
207
+ export interface GetRuntimeOptions200Response extends HttpResponse {
208
+ status: "200";
209
+ body: JSRuntimeOptionsOutput;
210
+ }
211
+ /** It returns the runtime options */
212
+ export interface GetRuntimeOptionsDefaultResponse extends HttpResponse {
213
+ status: string;
214
+ body: ConfidentialLedgerErrorOutput;
215
+ }
216
+ /** Updates the runtime options. */
217
+ export interface UpdateRuntimeOptions200Response extends HttpResponse {
218
+ status: "200";
219
+ body: JSRuntimeOptionsOutput;
220
+ }
221
+ /** Updates the runtime options. */
222
+ export interface UpdateRuntimeOptionsDefaultResponse extends HttpResponse {
223
+ status: string;
224
+ body: ConfidentialLedgerErrorOutput;
225
+ }
226
+ /** It gets the module for the user defined endpoint. */
227
+ export interface GetUserDefinedEndpointsModule200Response extends HttpResponse {
228
+ status: "200";
229
+ body: ModuleDefOutput;
230
+ }
231
+ /** It gets the module for the user defined endpoint. */
232
+ export interface GetUserDefinedEndpointsModuleDefaultResponse extends HttpResponse {
233
+ status: string;
234
+ body: ConfidentialLedgerErrorOutput;
235
+ }
167
236
  /** User defined functions stored in the Confidential Ledger */
168
237
  export interface ListUserDefinedFunctions200Response extends HttpResponse {
169
238
  status: "200";
@@ -174,4 +243,95 @@ export interface ListUserDefinedFunctionsDefaultResponse extends HttpResponse {
174
243
  status: string;
175
244
  body: ConfidentialLedgerErrorOutput;
176
245
  }
246
+ /** Deletes a user defined function from the Confidential Ledger. */
247
+ export interface DeleteUserDefinedFunction204Response extends HttpResponse {
248
+ status: "204";
249
+ }
250
+ /** Deletes a user defined function from the Confidential Ledger. */
251
+ export interface DeleteUserDefinedFunctionDefaultResponse extends HttpResponse {
252
+ status: string;
253
+ body: ConfidentialLedgerErrorOutput;
254
+ }
255
+ /** Returns the user defined function in the Confidential Ledger */
256
+ export interface GetUserDefinedFunction200Response extends HttpResponse {
257
+ status: "200";
258
+ body: UserDefinedFunctionOutput;
259
+ }
260
+ /** Returns the user defined function in the Confidential Ledger */
261
+ export interface GetUserDefinedFunctionDefaultResponse extends HttpResponse {
262
+ status: string;
263
+ body: ConfidentialLedgerErrorOutput;
264
+ }
265
+ export interface CreateUserDefinedFunction200Headers {
266
+ /** The transaction id at which this write will become durable. */
267
+ "x-ms-ccf-transaction-id"?: string;
268
+ }
269
+ /** Creates the user defined function in the Confidential Ledger */
270
+ export interface CreateUserDefinedFunction200Response extends HttpResponse {
271
+ status: "200";
272
+ body: UserDefinedFunctionOutput;
273
+ headers: RawHttpHeaders & CreateUserDefinedFunction200Headers;
274
+ }
275
+ export interface CreateUserDefinedFunction201Headers {
276
+ /** The transaction id at which this write will become durable. */
277
+ "x-ms-ccf-transaction-id"?: string;
278
+ }
279
+ /** Creates the user defined function in the Confidential Ledger */
280
+ export interface CreateUserDefinedFunction201Response extends HttpResponse {
281
+ status: "201";
282
+ body: UserDefinedFunctionOutput;
283
+ headers: RawHttpHeaders & CreateUserDefinedFunction201Headers;
284
+ }
285
+ /** Creates the user defined function in the Confidential Ledger */
286
+ export interface CreateUserDefinedFunctionDefaultResponse extends HttpResponse {
287
+ status: string;
288
+ body: ConfidentialLedgerErrorOutput;
289
+ }
290
+ /** Executes the user defined function in the Confidential Ledger */
291
+ export interface ExecuteUserDefinedFunction200Response extends HttpResponse {
292
+ status: "200";
293
+ body: UserDefinedFunctionExecutionResponseOutput;
294
+ }
295
+ /** Executes the user defined function in the Confidential Ledger */
296
+ export interface ExecuteUserDefinedFunctionDefaultResponse extends HttpResponse {
297
+ status: string;
298
+ body: ConfidentialLedgerErrorOutput;
299
+ }
300
+ /** user defined roles allow users to define and manage app specific AuthZ policy. */
301
+ export interface GetUserDefinedRole200Response extends HttpResponse {
302
+ status: "200";
303
+ body: Array<RoleOutput>;
304
+ }
305
+ /** user defined roles allow users to define and manage app specific AuthZ policy. */
306
+ export interface GetUserDefinedRoleDefaultResponse extends HttpResponse {
307
+ status: string;
308
+ body: ConfidentialLedgerErrorOutput;
309
+ }
310
+ /** User defined roles allow users to define and manage app specific AuthZ policy. */
311
+ export interface CreateUserDefinedRole200Response extends HttpResponse {
312
+ status: "200";
313
+ }
314
+ /** User defined roles allow users to define and manage app specific AuthZ policy. */
315
+ export interface CreateUserDefinedRoleDefaultResponse extends HttpResponse {
316
+ status: string;
317
+ body: ConfidentialLedgerErrorOutput;
318
+ }
319
+ /** User defined roles allow users to define and manage app specific AuthZ policy. */
320
+ export interface UpdateUserDefinedRole200Response extends HttpResponse {
321
+ status: "200";
322
+ }
323
+ /** User defined roles allow users to define and manage app specific AuthZ policy. */
324
+ export interface UpdateUserDefinedRoleDefaultResponse extends HttpResponse {
325
+ status: string;
326
+ body: ConfidentialLedgerErrorOutput;
327
+ }
328
+ /** A user defined role allows the users to create and manage their own role actions using the API. */
329
+ export interface DeleteUserDefinedRole200Response extends HttpResponse {
330
+ status: "200";
331
+ }
332
+ /** A user defined role allows the users to create and manage their own role actions using the API. */
333
+ export interface DeleteUserDefinedRoleDefaultResponse extends HttpResponse {
334
+ status: string;
335
+ body: ConfidentialLedgerErrorOutput;
336
+ }
177
337
  //# sourceMappingURL=responses.d.ts.map
@@ -1 +1 @@
1
- {"version":3,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B,CAAC;CACrC;AAED,qFAAqF;AACrF,MAAM,WAAW,6BAA8B,SAAQ,YAAY;IACjE,MAAM,EAAE,KAAK,CAAC;IACd,IAAI,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;CACzB;AAED,qFAAqF;AACrF,MAAM,WAAW,iCAAkC,SAAQ,YAAY;IACrE,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,6BAA6B,CAAC;CACrC;AAED,qFAAqF;AACrF,MAAM,WAAW,gCAAiC,SAAQ,YAAY;IACpE,MAAM,EAAE,KAAK,CAAC;CACf;AAED,qFAAqF;AACrF,MAAM,WAAW,oCAAqC,SAAQ,YAAY;IACxE,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,6BAA6B,CAAC;CACrC;AAED,qFAAqF;AACrF,MAAM,WAAW,gCAAiC,SAAQ,YAAY;IACpE,MAAM,EAAE,KAAK,CAAC;CACf;AAED,qFAAqF;AACrF,MAAM,WAAW,oCAAqC,SAAQ,YAAY;IACxE,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,6BAA6B,CAAC;CACrC;AAED,sGAAsG;AACtG,MAAM,WAAW,gCAAiC,SAAQ,YAAY;IACpE,MAAM,EAAE,KAAK,CAAC;CACf;AAED,sGAAsG;AACtG,MAAM,WAAW,oCAAqC,SAAQ,YAAY;IACxE,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,6BAA6B,CAAC;CACrC"}
@@ -1 +1 @@
1
- {"version":3,"file":"responses.js","sourceRoot":"","sources":["../../src/responses.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { RawHttpHeaders } from \"@azure/core-rest-pipeline\";\nimport type { HttpResponse } from \"@azure-rest/core-client\";\nimport type {\n ConstitutionOutput,\n BundleOutput,\n ConfidentialLedgerErrorOutput,\n ConsortiumOutput,\n ConfidentialLedgerEnclavesOutput,\n PagedCollectionsOutput,\n PagedLedgerEntriesOutput,\n LedgerWriteResultOutput,\n LedgerQueryResultOutput,\n TransactionReceiptOutput,\n TransactionStatusOutput,\n LedgerEntryOutput,\n PagedUsersOutput,\n LedgerUserOutput,\n PagedUserDefinedFunctionsOutput,\n} from \"./outputModels.js\";\n\n/** The constitution is a script that assesses and applies proposals from consortium members. */\nexport interface GetConstitution200Response extends HttpResponse {\n status: \"200\";\n body: ConstitutionOutput;\n}\n\n/** The constitution is a script that assesses and applies proposals from consortium members. */\nexport interface GetConstitutionDefaultResponse extends HttpResponse {\n status: string;\n body: ConfidentialLedgerErrorOutput;\n}\n\n/** Creates the user defined endpoint in the ACL instance */\nexport interface CreateUserDefinedEndpoint201Response extends HttpResponse {\n status: \"201\";\n}\n\n/** Creates the user defined endpoint in the ACL instance */\nexport interface CreateUserDefinedEndpointDefaultResponse extends HttpResponse {\n status: string;\n body: ConfidentialLedgerErrorOutput;\n}\n\n/** Consortium members can manage the Confidential Ledger. */\nexport interface ListConsortiumMembers200Response extends HttpResponse {\n status: \"200\";\n body: ConsortiumOutput;\n}\n\n/** Consortium members can manage the Confidential Ledger. */\nexport interface ListConsortiumMembersDefaultResponse extends HttpResponse {\n status: string;\n body: ConfidentialLedgerErrorOutput;\n}\n\n/** A quote is an SGX enclave measurement that can be used to verify the validity of a node and its enclave. */\nexport interface GetEnclaveQuotes200Response extends HttpResponse {\n status: \"200\";\n body: ConfidentialLedgerEnclavesOutput;\n}\n\n/** A quote is an SGX enclave measurement that can be used to verify the validity of a node and its enclave. */\nexport interface GetEnclaveQuotesDefaultResponse extends HttpResponse {\n status: string;\n body: ConfidentialLedgerErrorOutput;\n}\n\n/** Collection ids are user-created collections of ledger entries */\nexport interface ListCollections200Response extends HttpResponse {\n status: \"200\";\n body: PagedCollectionsOutput;\n}\n\n/** Collection ids are user-created collections of ledger entries */\nexport interface ListCollectionsDefaultResponse extends HttpResponse {\n status: string;\n body: ConfidentialLedgerErrorOutput;\n}\n\n/** A collection id may optionally be specified. Only entries in the specified (or default) collection will be returned. */\nexport interface ListLedgerEntries200Response extends HttpResponse {\n status: \"200\";\n body: PagedLedgerEntriesOutput;\n}\n\n/** A collection id may optionally be specified. Only entries in the specified (or default) collection will be returned. */\nexport interface ListLedgerEntriesDefaultResponse extends HttpResponse {\n status: string;\n body: ConfidentialLedgerErrorOutput;\n}\n\nexport interface CreateLedgerEntry200Headers {\n /** The transaction id at which this write will become durable. */\n \"x-ms-ccf-transaction-id\"?: string;\n}\n\n/** A collection id may optionally be specified. */\nexport interface CreateLedgerEntry200Response extends HttpResponse {\n status: \"200\";\n body: LedgerWriteResultOutput;\n headers: RawHttpHeaders & CreateLedgerEntry200Headers;\n}\n\n/** A collection id may optionally be specified. */\nexport interface CreateLedgerEntryDefaultResponse extends HttpResponse {\n status: string;\n body: ConfidentialLedgerErrorOutput;\n}\n\n/** 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. */\nexport interface GetLedgerEntry200Response extends HttpResponse {\n status: \"200\";\n body: LedgerQueryResultOutput;\n}\n\n/** 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. */\nexport interface GetLedgerEntryDefaultResponse extends HttpResponse {\n status: string;\n body: ConfidentialLedgerErrorOutput;\n}\n\n/** Gets a receipt certifying ledger contents at a particular transaction id. */\nexport interface GetReceipt200Response extends HttpResponse {\n status: \"200\";\n body: TransactionReceiptOutput;\n}\n\n/** Gets a receipt certifying ledger contents at a particular transaction id. */\nexport interface GetReceiptDefaultResponse extends HttpResponse {\n status: string;\n body: ConfidentialLedgerErrorOutput;\n}\n\n/** Gets the status of an entry identified by a transaction id. */\nexport interface GetTransactionStatus200Response extends HttpResponse {\n status: \"200\";\n body: TransactionStatusOutput;\n}\n\n/** Gets the status of an entry identified by a transaction id. */\nexport interface GetTransactionStatusDefaultResponse extends HttpResponse {\n status: string;\n body: ConfidentialLedgerErrorOutput;\n}\n\n/** A collection id may optionally be specified. */\nexport interface GetCurrentLedgerEntry200Response extends HttpResponse {\n status: \"200\";\n body: LedgerEntryOutput;\n}\n\n/** A collection id may optionally be specified. */\nexport interface GetCurrentLedgerEntryDefaultResponse extends HttpResponse {\n status: string;\n body: ConfidentialLedgerErrorOutput;\n}\n\n/** All users' object IDs and roles will be returned. */\nexport interface ListUsers200Response extends HttpResponse {\n status: \"200\";\n body: PagedUsersOutput;\n}\n\n/** All users' object IDs and roles will be returned. */\nexport interface ListUsersDefaultResponse extends HttpResponse {\n status: string;\n body: ConfidentialLedgerErrorOutput;\n}\n\n/** Deletes a user from the Confidential Ledger. */\nexport interface DeleteUser204Response extends HttpResponse {\n status: \"204\";\n}\n\n/** Deletes a user from the Confidential Ledger. */\nexport interface DeleteUserDefaultResponse extends HttpResponse {\n status: string;\n body: ConfidentialLedgerErrorOutput;\n}\n\n/** Gets a user. */\nexport interface GetUser200Response extends HttpResponse {\n status: \"200\";\n body: LedgerUserOutput;\n}\n\n/** Gets a user. */\nexport interface GetUserDefaultResponse extends HttpResponse {\n status: string;\n body: ConfidentialLedgerErrorOutput;\n}\n\n/** A JSON merge patch is applied for existing users */\nexport interface CreateOrUpdateUser200Response extends HttpResponse {\n status: \"200\";\n body: LedgerUserOutput;\n}\n\n/** A JSON merge patch is applied for existing users */\nexport interface CreateOrUpdateUserDefaultResponse extends HttpResponse {\n status: string;\n body: ConfidentialLedgerErrorOutput;\n}\n\n/** Returns the user defined endpoint in the ACL instance */\nexport interface GetUserDefinedEndpoint200Response extends HttpResponse {\n status: \"200\";\n body: BundleOutput;\n}\n\n/** Returns the user defined endpoint in the ACL instance */\nexport interface GetUserDefinedEndpointDefaultResponse extends HttpResponse {\n status: string;\n body: ConfidentialLedgerErrorOutput;\n}\n\n/** User defined functions stored in the Confidential Ledger */\nexport interface ListUserDefinedFunctions200Response extends HttpResponse {\n status: \"200\";\n body: PagedUserDefinedFunctionsOutput;\n}\n\n/** User defined functions stored in the Confidential Ledger */\nexport interface ListUserDefinedFunctionsDefaultResponse extends HttpResponse {\n status: string;\n body: ConfidentialLedgerErrorOutput;\n}\n"]}
1
+ {"version":3,"file":"responses.js","sourceRoot":"","sources":["../../src/responses.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { RawHttpHeaders } from \"@azure/core-rest-pipeline\";\nimport type { HttpResponse } from \"@azure-rest/core-client\";\nimport type {\n ConstitutionOutput,\n ConfidentialLedgerErrorOutput,\n ConsortiumOutput,\n ConfidentialLedgerEnclavesOutput,\n PagedCollectionsOutput,\n PagedLedgerEntriesOutput,\n LedgerWriteResultOutput,\n LedgerQueryResultOutput,\n TransactionReceiptOutput,\n TransactionStatusOutput,\n LedgerEntryOutput,\n PagedUsersOutput,\n PagedLedgerUsersOutput,\n LedgerUserOutput,\n LedgerUserMultipleRolesOutput,\n BundleOutput,\n JSRuntimeOptionsOutput,\n ModuleDefOutput,\n PagedUserDefinedFunctionsOutput,\n UserDefinedFunctionOutput,\n UserDefinedFunctionExecutionResponseOutput,\n RoleOutput,\n} from \"./outputModels.js\";\n\n/** The constitution is a script that assesses and applies proposals from consortium members. */\nexport interface GetConstitution200Response extends HttpResponse {\n status: \"200\";\n body: ConstitutionOutput;\n}\n\n/** The constitution is a script that assesses and applies proposals from consortium members. */\nexport interface GetConstitutionDefaultResponse extends HttpResponse {\n status: string;\n body: ConfidentialLedgerErrorOutput;\n}\n\n/** Consortium members can manage the Confidential Ledger. */\nexport interface ListConsortiumMembers200Response extends HttpResponse {\n status: \"200\";\n body: ConsortiumOutput;\n}\n\n/** Consortium members can manage the Confidential Ledger. */\nexport interface ListConsortiumMembersDefaultResponse extends HttpResponse {\n status: string;\n body: ConfidentialLedgerErrorOutput;\n}\n\n/** A quote is an SGX enclave measurement that can be used to verify the validity of a node and its enclave. */\nexport interface GetEnclaveQuotes200Response extends HttpResponse {\n status: \"200\";\n body: ConfidentialLedgerEnclavesOutput;\n}\n\n/** A quote is an SGX enclave measurement that can be used to verify the validity of a node and its enclave. */\nexport interface GetEnclaveQuotesDefaultResponse extends HttpResponse {\n status: string;\n body: ConfidentialLedgerErrorOutput;\n}\n\n/** Collection ids are user-created collections of ledger entries */\nexport interface ListCollections200Response extends HttpResponse {\n status: \"200\";\n body: PagedCollectionsOutput;\n}\n\n/** Collection ids are user-created collections of ledger entries */\nexport interface ListCollectionsDefaultResponse extends HttpResponse {\n status: string;\n body: ConfidentialLedgerErrorOutput;\n}\n\n/** A collection id may optionally be specified. Only entries in the specified (or default) collection will be returned. */\nexport interface ListLedgerEntries200Response extends HttpResponse {\n status: \"200\";\n body: PagedLedgerEntriesOutput;\n}\n\n/** A collection id may optionally be specified. Only entries in the specified (or default) collection will be returned. */\nexport interface ListLedgerEntriesDefaultResponse extends HttpResponse {\n status: string;\n body: ConfidentialLedgerErrorOutput;\n}\n\nexport interface CreateLedgerEntry200Headers {\n /** The transaction id at which this write will become durable. */\n \"x-ms-ccf-transaction-id\"?: string;\n}\n\n/** A collection id may optionally be specified. */\nexport interface CreateLedgerEntry200Response extends HttpResponse {\n status: \"200\";\n body: LedgerWriteResultOutput;\n headers: RawHttpHeaders & CreateLedgerEntry200Headers;\n}\n\n/** A collection id may optionally be specified. */\nexport interface CreateLedgerEntryDefaultResponse extends HttpResponse {\n status: string;\n body: ConfidentialLedgerErrorOutput;\n}\n\n/** 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. */\nexport interface GetLedgerEntry200Response extends HttpResponse {\n status: \"200\";\n body: LedgerQueryResultOutput;\n}\n\n/** 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. */\nexport interface GetLedgerEntryDefaultResponse extends HttpResponse {\n status: string;\n body: ConfidentialLedgerErrorOutput;\n}\n\n/** Gets a receipt certifying ledger contents at a particular transaction id. */\nexport interface GetReceipt200Response extends HttpResponse {\n status: \"200\";\n body: TransactionReceiptOutput;\n}\n\n/** Gets a receipt certifying ledger contents at a particular transaction id. */\nexport interface GetReceiptDefaultResponse extends HttpResponse {\n status: string;\n body: ConfidentialLedgerErrorOutput;\n}\n\n/** Gets the status of an entry identified by a transaction id. */\nexport interface GetTransactionStatus200Response extends HttpResponse {\n status: \"200\";\n body: TransactionStatusOutput;\n}\n\n/** Gets the status of an entry identified by a transaction id. */\nexport interface GetTransactionStatusDefaultResponse extends HttpResponse {\n status: string;\n body: ConfidentialLedgerErrorOutput;\n}\n\n/** A collection id may optionally be specified. */\nexport interface GetCurrentLedgerEntry200Response extends HttpResponse {\n status: \"200\";\n body: LedgerEntryOutput;\n}\n\n/** A collection id may optionally be specified. */\nexport interface GetCurrentLedgerEntryDefaultResponse extends HttpResponse {\n status: string;\n body: ConfidentialLedgerErrorOutput;\n}\n\n/** All users' object IDs and single role per user will be returned. */\nexport interface ListUsers200Response extends HttpResponse {\n status: \"200\";\n body: PagedUsersOutput;\n}\n\n/** All users' object IDs and single role per user will be returned. */\nexport interface ListUsersDefaultResponse extends HttpResponse {\n status: string;\n body: ConfidentialLedgerErrorOutput;\n}\n\n/** All users' object IDs and multiple roles will be returned. */\nexport interface ListLedgerUsers200Response extends HttpResponse {\n status: \"200\";\n body: PagedLedgerUsersOutput;\n}\n\n/** All users' object IDs and multiple roles will be returned. */\nexport interface ListLedgerUsersDefaultResponse extends HttpResponse {\n status: string;\n body: ConfidentialLedgerErrorOutput;\n}\n\n/** Deletes a user from the Confidential Ledger. */\nexport interface DeleteUser204Response extends HttpResponse {\n status: \"204\";\n}\n\n/** Deletes a user from the Confidential Ledger. */\nexport interface DeleteUserDefaultResponse extends HttpResponse {\n status: string;\n body: ConfidentialLedgerErrorOutput;\n}\n\n/** Gets a user. */\nexport interface GetUser200Response extends HttpResponse {\n status: \"200\";\n body: LedgerUserOutput;\n}\n\n/** Gets a user. */\nexport interface GetUserDefaultResponse extends HttpResponse {\n status: string;\n body: ConfidentialLedgerErrorOutput;\n}\n\n/** A JSON merge patch is applied for existing users */\nexport interface CreateOrUpdateUser200Response extends HttpResponse {\n status: \"200\";\n body: LedgerUserOutput;\n}\n\n/** A JSON merge patch is applied for existing users */\nexport interface CreateOrUpdateUserDefaultResponse extends HttpResponse {\n status: string;\n body: ConfidentialLedgerErrorOutput;\n}\n\n/** Deletes a user with multiple roles from the Confidential Ledger. */\nexport interface DeleteLedgerUser204Response extends HttpResponse {\n status: \"204\";\n}\n\n/** Deletes a user with multiple roles from the Confidential Ledger. */\nexport interface DeleteLedgerUserDefaultResponse extends HttpResponse {\n status: string;\n body: ConfidentialLedgerErrorOutput;\n}\n\n/** Gets a user with multiple roles. */\nexport interface GetLedgerUser200Response extends HttpResponse {\n status: \"200\";\n body: LedgerUserMultipleRolesOutput;\n}\n\n/** Gets a user with multiple roles. */\nexport interface GetLedgerUserDefaultResponse extends HttpResponse {\n status: string;\n body: ConfidentialLedgerErrorOutput;\n}\n\n/** A JSON merge patch is applied for existing users */\nexport interface CreateOrUpdateLedgerUser200Response extends HttpResponse {\n status: \"200\";\n body: LedgerUserMultipleRolesOutput;\n}\n\n/** A JSON merge patch is applied for existing users */\nexport interface CreateOrUpdateLedgerUserDefaultResponse extends HttpResponse {\n status: string;\n body: ConfidentialLedgerErrorOutput;\n}\n\n/** Returns the user defined endpoint in the ACL instance */\nexport interface GetUserDefinedEndpoint200Response extends HttpResponse {\n status: \"200\";\n body: BundleOutput;\n}\n\n/** Returns the user defined endpoint in the ACL instance */\nexport interface GetUserDefinedEndpointDefaultResponse extends HttpResponse {\n status: string;\n body: ConfidentialLedgerErrorOutput;\n}\n\n/** Creates the user defined endpoint in the ACL instance */\nexport interface CreateUserDefinedEndpoint201Response extends HttpResponse {\n status: \"201\";\n}\n\n/** Creates the user defined endpoint in the ACL instance */\nexport interface CreateUserDefinedEndpointDefaultResponse extends HttpResponse {\n status: string;\n body: ConfidentialLedgerErrorOutput;\n}\n\n/** It returns the runtime options */\nexport interface GetRuntimeOptions200Response extends HttpResponse {\n status: \"200\";\n body: JSRuntimeOptionsOutput;\n}\n\n/** It returns the runtime options */\nexport interface GetRuntimeOptionsDefaultResponse extends HttpResponse {\n status: string;\n body: ConfidentialLedgerErrorOutput;\n}\n\n/** Updates the runtime options. */\nexport interface UpdateRuntimeOptions200Response extends HttpResponse {\n status: \"200\";\n body: JSRuntimeOptionsOutput;\n}\n\n/** Updates the runtime options. */\nexport interface UpdateRuntimeOptionsDefaultResponse extends HttpResponse {\n status: string;\n body: ConfidentialLedgerErrorOutput;\n}\n\n/** It gets the module for the user defined endpoint. */\nexport interface GetUserDefinedEndpointsModule200Response extends HttpResponse {\n status: \"200\";\n body: ModuleDefOutput;\n}\n\n/** It gets the module for the user defined endpoint. */\nexport interface GetUserDefinedEndpointsModuleDefaultResponse extends HttpResponse {\n status: string;\n body: ConfidentialLedgerErrorOutput;\n}\n\n/** User defined functions stored in the Confidential Ledger */\nexport interface ListUserDefinedFunctions200Response extends HttpResponse {\n status: \"200\";\n body: PagedUserDefinedFunctionsOutput;\n}\n\n/** User defined functions stored in the Confidential Ledger */\nexport interface ListUserDefinedFunctionsDefaultResponse extends HttpResponse {\n status: string;\n body: ConfidentialLedgerErrorOutput;\n}\n\n/** Deletes a user defined function from the Confidential Ledger. */\nexport interface DeleteUserDefinedFunction204Response extends HttpResponse {\n status: \"204\";\n}\n\n/** Deletes a user defined function from the Confidential Ledger. */\nexport interface DeleteUserDefinedFunctionDefaultResponse extends HttpResponse {\n status: string;\n body: ConfidentialLedgerErrorOutput;\n}\n\n/** Returns the user defined function in the Confidential Ledger */\nexport interface GetUserDefinedFunction200Response extends HttpResponse {\n status: \"200\";\n body: UserDefinedFunctionOutput;\n}\n\n/** Returns the user defined function in the Confidential Ledger */\nexport interface GetUserDefinedFunctionDefaultResponse extends HttpResponse {\n status: string;\n body: ConfidentialLedgerErrorOutput;\n}\n\nexport interface CreateUserDefinedFunction200Headers {\n /** The transaction id at which this write will become durable. */\n \"x-ms-ccf-transaction-id\"?: string;\n}\n\n/** Creates the user defined function in the Confidential Ledger */\nexport interface CreateUserDefinedFunction200Response extends HttpResponse {\n status: \"200\";\n body: UserDefinedFunctionOutput;\n headers: RawHttpHeaders & CreateUserDefinedFunction200Headers;\n}\n\nexport interface CreateUserDefinedFunction201Headers {\n /** The transaction id at which this write will become durable. */\n \"x-ms-ccf-transaction-id\"?: string;\n}\n\n/** Creates the user defined function in the Confidential Ledger */\nexport interface CreateUserDefinedFunction201Response extends HttpResponse {\n status: \"201\";\n body: UserDefinedFunctionOutput;\n headers: RawHttpHeaders & CreateUserDefinedFunction201Headers;\n}\n\n/** Creates the user defined function in the Confidential Ledger */\nexport interface CreateUserDefinedFunctionDefaultResponse extends HttpResponse {\n status: string;\n body: ConfidentialLedgerErrorOutput;\n}\n\n/** Executes the user defined function in the Confidential Ledger */\nexport interface ExecuteUserDefinedFunction200Response extends HttpResponse {\n status: \"200\";\n body: UserDefinedFunctionExecutionResponseOutput;\n}\n\n/** Executes the user defined function in the Confidential Ledger */\nexport interface ExecuteUserDefinedFunctionDefaultResponse extends HttpResponse {\n status: string;\n body: ConfidentialLedgerErrorOutput;\n}\n\n/** user defined roles allow users to define and manage app specific AuthZ policy. */\nexport interface GetUserDefinedRole200Response extends HttpResponse {\n status: \"200\";\n body: Array<RoleOutput>;\n}\n\n/** user defined roles allow users to define and manage app specific AuthZ policy. */\nexport interface GetUserDefinedRoleDefaultResponse extends HttpResponse {\n status: string;\n body: ConfidentialLedgerErrorOutput;\n}\n\n/** User defined roles allow users to define and manage app specific AuthZ policy. */\nexport interface CreateUserDefinedRole200Response extends HttpResponse {\n status: \"200\";\n}\n\n/** User defined roles allow users to define and manage app specific AuthZ policy. */\nexport interface CreateUserDefinedRoleDefaultResponse extends HttpResponse {\n status: string;\n body: ConfidentialLedgerErrorOutput;\n}\n\n/** User defined roles allow users to define and manage app specific AuthZ policy. */\nexport interface UpdateUserDefinedRole200Response extends HttpResponse {\n status: \"200\";\n}\n\n/** User defined roles allow users to define and manage app specific AuthZ policy. */\nexport interface UpdateUserDefinedRoleDefaultResponse extends HttpResponse {\n status: string;\n body: ConfidentialLedgerErrorOutput;\n}\n\n/** A user defined role allows the users to create and manage their own role actions using the API. */\nexport interface DeleteUserDefinedRole200Response extends HttpResponse {\n status: \"200\";\n}\n\n/** A user defined role allows the users to create and manage their own role actions using the API. */\nexport interface DeleteUserDefinedRoleDefaultResponse extends HttpResponse {\n status: string;\n body: ConfidentialLedgerErrorOutput;\n}\n"]}
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.52.4"
8
+ "packageVersion": "7.52.8"
9
9
  }
10
10
  ]
11
11
  }
@@ -1,12 +1,6 @@
1
- import type { GetConstitutionParameters, GetUserDefinedEndpointParameters, CreateUserDefinedEndpointParameters, ListConsortiumMembersParameters, GetEnclaveQuotesParameters, ListCollectionsParameters, ListLedgerEntriesParameters, CreateLedgerEntryParameters, GetLedgerEntryParameters, GetReceiptParameters, GetTransactionStatusParameters, GetCurrentLedgerEntryParameters, ListUsersParameters, DeleteUserParameters, GetUserParameters, CreateOrUpdateUserParameters, ListUserDefinedFunctionsParameters } from "./parameters.js";
2
- import type { GetConstitution200Response, GetConstitutionDefaultResponse, GetUserDefinedEndpoint200Response, GetUserDefinedEndpointDefaultResponse, CreateUserDefinedEndpoint201Response, CreateUserDefinedEndpointDefaultResponse, ListConsortiumMembers200Response, ListConsortiumMembersDefaultResponse, GetEnclaveQuotes200Response, GetEnclaveQuotesDefaultResponse, ListCollections200Response, ListCollectionsDefaultResponse, ListLedgerEntries200Response, ListLedgerEntriesDefaultResponse, CreateLedgerEntry200Response, CreateLedgerEntryDefaultResponse, GetLedgerEntry200Response, GetLedgerEntryDefaultResponse, GetReceipt200Response, GetReceiptDefaultResponse, GetTransactionStatus200Response, GetTransactionStatusDefaultResponse, GetCurrentLedgerEntry200Response, GetCurrentLedgerEntryDefaultResponse, ListUsers200Response, ListUsersDefaultResponse, DeleteUser204Response, DeleteUserDefaultResponse, GetUser200Response, GetUserDefaultResponse, CreateOrUpdateUser200Response, CreateOrUpdateUserDefaultResponse, ListUserDefinedFunctions200Response, ListUserDefinedFunctionsDefaultResponse } from "./responses.js";
1
+ import type { GetConstitutionParameters, ListConsortiumMembersParameters, GetEnclaveQuotesParameters, ListCollectionsParameters, ListLedgerEntriesParameters, CreateLedgerEntryParameters, GetLedgerEntryParameters, GetReceiptParameters, GetTransactionStatusParameters, GetCurrentLedgerEntryParameters, ListUsersParameters, ListLedgerUsersParameters, DeleteUserParameters, GetUserParameters, CreateOrUpdateUserParameters, DeleteLedgerUserParameters, GetLedgerUserParameters, CreateOrUpdateLedgerUserParameters, GetUserDefinedEndpointParameters, CreateUserDefinedEndpointParameters, GetRuntimeOptionsParameters, UpdateRuntimeOptionsParameters, GetUserDefinedEndpointsModuleParameters, ListUserDefinedFunctionsParameters, DeleteUserDefinedFunctionParameters, GetUserDefinedFunctionParameters, CreateUserDefinedFunctionParameters, ExecuteUserDefinedFunctionParameters, GetUserDefinedRoleParameters, CreateUserDefinedRoleParameters, UpdateUserDefinedRoleParameters, DeleteUserDefinedRoleParameters } from "./parameters.js";
2
+ import type { GetConstitution200Response, GetConstitutionDefaultResponse, ListConsortiumMembers200Response, ListConsortiumMembersDefaultResponse, GetEnclaveQuotes200Response, GetEnclaveQuotesDefaultResponse, ListCollections200Response, ListCollectionsDefaultResponse, ListLedgerEntries200Response, ListLedgerEntriesDefaultResponse, CreateLedgerEntry200Response, CreateLedgerEntryDefaultResponse, GetLedgerEntry200Response, GetLedgerEntryDefaultResponse, GetReceipt200Response, GetReceiptDefaultResponse, GetTransactionStatus200Response, GetTransactionStatusDefaultResponse, GetCurrentLedgerEntry200Response, GetCurrentLedgerEntryDefaultResponse, ListUsers200Response, ListUsersDefaultResponse, ListLedgerUsers200Response, ListLedgerUsersDefaultResponse, DeleteUser204Response, DeleteUserDefaultResponse, GetUser200Response, GetUserDefaultResponse, CreateOrUpdateUser200Response, CreateOrUpdateUserDefaultResponse, DeleteLedgerUser204Response, DeleteLedgerUserDefaultResponse, GetLedgerUser200Response, GetLedgerUserDefaultResponse, CreateOrUpdateLedgerUser200Response, CreateOrUpdateLedgerUserDefaultResponse, GetUserDefinedEndpoint200Response, GetUserDefinedEndpointDefaultResponse, CreateUserDefinedEndpoint201Response, CreateUserDefinedEndpointDefaultResponse, GetRuntimeOptions200Response, GetRuntimeOptionsDefaultResponse, UpdateRuntimeOptions200Response, UpdateRuntimeOptionsDefaultResponse, GetUserDefinedEndpointsModule200Response, GetUserDefinedEndpointsModuleDefaultResponse, ListUserDefinedFunctions200Response, ListUserDefinedFunctionsDefaultResponse, DeleteUserDefinedFunction204Response, DeleteUserDefinedFunctionDefaultResponse, GetUserDefinedFunction200Response, GetUserDefinedFunctionDefaultResponse, CreateUserDefinedFunction200Response, CreateUserDefinedFunction201Response, CreateUserDefinedFunctionDefaultResponse, ExecuteUserDefinedFunction200Response, ExecuteUserDefinedFunctionDefaultResponse, GetUserDefinedRole200Response, GetUserDefinedRoleDefaultResponse, CreateUserDefinedRole200Response, CreateUserDefinedRoleDefaultResponse, UpdateUserDefinedRole200Response, UpdateUserDefinedRoleDefaultResponse, DeleteUserDefinedRole200Response, DeleteUserDefinedRoleDefaultResponse } from "./responses.js";
3
3
  import type { Client, StreamableMethod } from "@azure-rest/core-client";
4
- export interface GetUserDefinedEndpoint {
5
- /** Returns the user defined endpoint in the ACL instance */
6
- get(options?: GetUserDefinedEndpointParameters): StreamableMethod<GetUserDefinedEndpoint200Response | GetUserDefinedEndpointDefaultResponse>;
7
- /** Creates the user defined endpoint in the ACL instance */
8
- put(options: CreateUserDefinedEndpointParameters): StreamableMethod<CreateUserDefinedEndpoint201Response | CreateUserDefinedEndpointDefaultResponse>;
9
- }
10
4
  export interface GetConstitution {
11
5
  /** The constitution is a script that assesses and applies proposals from consortium members. */
12
6
  get(options?: GetConstitutionParameters): StreamableMethod<GetConstitution200Response | GetConstitutionDefaultResponse>;
@@ -46,9 +40,13 @@ export interface GetCurrentLedgerEntry {
46
40
  get(options?: GetCurrentLedgerEntryParameters): StreamableMethod<GetCurrentLedgerEntry200Response | GetCurrentLedgerEntryDefaultResponse>;
47
41
  }
48
42
  export interface ListUsers {
49
- /** All users' object IDs and roles will be returned. */
43
+ /** All users' object IDs and single role per user will be returned. */
50
44
  get(options?: ListUsersParameters): StreamableMethod<ListUsers200Response | ListUsersDefaultResponse>;
51
45
  }
46
+ export interface ListLedgerUsers {
47
+ /** All users' object IDs and multiple roles will be returned. */
48
+ get(options?: ListLedgerUsersParameters): StreamableMethod<ListLedgerUsers200Response | ListLedgerUsersDefaultResponse>;
49
+ }
52
50
  export interface DeleteUser {
53
51
  /** Deletes a user from the Confidential Ledger. */
54
52
  delete(options?: DeleteUserParameters): StreamableMethod<DeleteUser204Response | DeleteUserDefaultResponse>;
@@ -57,10 +55,56 @@ export interface DeleteUser {
57
55
  /** A JSON merge patch is applied for existing users */
58
56
  patch(options: CreateOrUpdateUserParameters): StreamableMethod<CreateOrUpdateUser200Response | CreateOrUpdateUserDefaultResponse>;
59
57
  }
58
+ export interface DeleteLedgerUser {
59
+ /** Deletes a user with multiple roles from the Confidential Ledger. */
60
+ delete(options?: DeleteLedgerUserParameters): StreamableMethod<DeleteLedgerUser204Response | DeleteLedgerUserDefaultResponse>;
61
+ /** Gets a user with multiple roles. */
62
+ get(options?: GetLedgerUserParameters): StreamableMethod<GetLedgerUser200Response | GetLedgerUserDefaultResponse>;
63
+ /** A JSON merge patch is applied for existing users */
64
+ patch(options: CreateOrUpdateLedgerUserParameters): StreamableMethod<CreateOrUpdateLedgerUser200Response | CreateOrUpdateLedgerUserDefaultResponse>;
65
+ }
66
+ export interface GetUserDefinedEndpoint {
67
+ /** Returns the user defined endpoint in the ACL instance */
68
+ get(options?: GetUserDefinedEndpointParameters): StreamableMethod<GetUserDefinedEndpoint200Response | GetUserDefinedEndpointDefaultResponse>;
69
+ /** Creates the user defined endpoint in the ACL instance */
70
+ put(options: CreateUserDefinedEndpointParameters): StreamableMethod<CreateUserDefinedEndpoint201Response | CreateUserDefinedEndpointDefaultResponse>;
71
+ }
72
+ export interface GetRuntimeOptions {
73
+ /** It returns the runtime options */
74
+ get(options?: GetRuntimeOptionsParameters): StreamableMethod<GetRuntimeOptions200Response | GetRuntimeOptionsDefaultResponse>;
75
+ /** Updates the runtime options. */
76
+ patch(options: UpdateRuntimeOptionsParameters): StreamableMethod<UpdateRuntimeOptions200Response | UpdateRuntimeOptionsDefaultResponse>;
77
+ }
78
+ export interface GetUserDefinedEndpointsModule {
79
+ /** It gets the module for the user defined endpoint. */
80
+ get(options: GetUserDefinedEndpointsModuleParameters): StreamableMethod<GetUserDefinedEndpointsModule200Response | GetUserDefinedEndpointsModuleDefaultResponse>;
81
+ }
60
82
  export interface ListUserDefinedFunctions {
61
83
  /** User defined functions stored in the Confidential Ledger */
62
84
  get(options?: ListUserDefinedFunctionsParameters): StreamableMethod<ListUserDefinedFunctions200Response | ListUserDefinedFunctionsDefaultResponse>;
63
85
  }
86
+ export interface DeleteUserDefinedFunction {
87
+ /** Deletes a user defined function from the Confidential Ledger. */
88
+ delete(options?: DeleteUserDefinedFunctionParameters): StreamableMethod<DeleteUserDefinedFunction204Response | DeleteUserDefinedFunctionDefaultResponse>;
89
+ /** Returns the user defined function in the Confidential Ledger */
90
+ get(options?: GetUserDefinedFunctionParameters): StreamableMethod<GetUserDefinedFunction200Response | GetUserDefinedFunctionDefaultResponse>;
91
+ /** Creates the user defined function in the Confidential Ledger */
92
+ put(options: CreateUserDefinedFunctionParameters): StreamableMethod<CreateUserDefinedFunction200Response | CreateUserDefinedFunction201Response | CreateUserDefinedFunctionDefaultResponse>;
93
+ }
94
+ export interface ExecuteUserDefinedFunction {
95
+ /** Executes the user defined function in the Confidential Ledger */
96
+ post(options?: ExecuteUserDefinedFunctionParameters): StreamableMethod<ExecuteUserDefinedFunction200Response | ExecuteUserDefinedFunctionDefaultResponse>;
97
+ }
98
+ export interface GetUserDefinedRole {
99
+ /** user defined roles allow users to define and manage app specific AuthZ policy. */
100
+ get(options: GetUserDefinedRoleParameters): StreamableMethod<GetUserDefinedRole200Response | GetUserDefinedRoleDefaultResponse>;
101
+ /** User defined roles allow users to define and manage app specific AuthZ policy. */
102
+ put(options: CreateUserDefinedRoleParameters): StreamableMethod<CreateUserDefinedRole200Response | CreateUserDefinedRoleDefaultResponse>;
103
+ /** User defined roles allow users to define and manage app specific AuthZ policy. */
104
+ patch(options: UpdateUserDefinedRoleParameters): StreamableMethod<UpdateUserDefinedRole200Response | UpdateUserDefinedRoleDefaultResponse>;
105
+ /** A user defined role allows the users to create and manage their own role actions using the API. */
106
+ delete(options: DeleteUserDefinedRoleParameters): StreamableMethod<DeleteUserDefinedRole200Response | DeleteUserDefinedRoleDefaultResponse>;
107
+ }
64
108
  export interface Routes {
65
109
  /** Resource for '/app/governance/constitution' has methods for the following verbs: get */
66
110
  (path: "/app/governance/constitution"): GetConstitution;
@@ -82,12 +126,26 @@ export interface Routes {
82
126
  (path: "/app/transactions/current"): GetCurrentLedgerEntry;
83
127
  /** Resource for '/app/users' has methods for the following verbs: get */
84
128
  (path: "/app/users"): ListUsers;
129
+ /** Resource for '/app/ledgerUsers' has methods for the following verbs: get */
130
+ (path: "/app/ledgerUsers"): ListLedgerUsers;
85
131
  /** Resource for '/app/users/\{userId\}' has methods for the following verbs: delete, get, patch */
86
132
  (path: "/app/users/{userId}", userId: string): DeleteUser;
87
- /** Resource for '/app/userDefinedEndpoints' has methods for the following verbs: delete, get, patch */
133
+ /** Resource for '/app/ledgerUsers/\{userId\}' has methods for the following verbs: delete, get, patch */
134
+ (path: "/app/ledgerUsers/{userId}", userId: string): DeleteLedgerUser;
135
+ /** Resource for '/app/userDefinedEndpoints' has methods for the following verbs: get, put */
88
136
  (path: "/app/userDefinedEndpoints"): GetUserDefinedEndpoint;
137
+ /** Resource for '/app/userDefinedEndpoints/runtimeOptions' has methods for the following verbs: get, patch */
138
+ (path: "/app/userDefinedEndpoints/runtimeOptions"): GetRuntimeOptions;
139
+ /** Resource for '/app/userDefinedEndpoints/modules' has methods for the following verbs: get */
140
+ (path: "/app/userDefinedEndpoints/modules"): GetUserDefinedEndpointsModule;
89
141
  /** Resource for '/app/userDefinedFunctions' has methods for the following verbs: get */
90
142
  (path: "/app/userDefinedFunctions"): ListUserDefinedFunctions;
143
+ /** Resource for '/app/userDefinedFunctions/\{functionId\}' has methods for the following verbs: delete, get, put */
144
+ (path: "/app/userDefinedFunctions/{functionId}", functionId: string): DeleteUserDefinedFunction;
145
+ /** Resource for '/app/userDefinedFunctions/\{functionId\}:execute' has methods for the following verbs: post */
146
+ (path: "/app/userDefinedFunctions/{functionId}:execute", functionId: string): ExecuteUserDefinedFunction;
147
+ /** Resource for '/app/roles' has methods for the following verbs: get, put, patch, delete */
148
+ (path: "/app/roles"): GetUserDefinedRole;
91
149
  }
92
150
  export type ConfidentialLedgerClient = Client & {
93
151
  path: Routes;
@@ -1 +1 @@
1
- {"version":3,"file":"clientDefinitions.d.ts","sourceRoot":"","sources":["../../src/clientDefinitions.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,yBAAyB,EACzB,gCAAgC,EAChC,mCAAmC,EACnC,+BAA+B,EAC/B,0BAA0B,EAC1B,yBAAyB,EACzB,2BAA2B,EAC3B,2BAA2B,EAC3B,wBAAwB,EACxB,oBAAoB,EACpB,8BAA8B,EAC9B,+BAA+B,EAC/B,mBAAmB,EACnB,oBAAoB,EACpB,iBAAiB,EACjB,4BAA4B,EAC5B,kCAAkC,EACnC,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EACV,0BAA0B,EAC1B,8BAA8B,EAC9B,iCAAiC,EACjC,qCAAqC,EACrC,oCAAoC,EACpC,wCAAwC,EACxC,gCAAgC,EA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AAC,IAAI,EAAE,2BAA2B,GAAG,sBAAsB,CAAC;IAC5D,wFAAwF;IACxF,CAAC,IAAI,EAAE,2BAA2B,GAAG,wBAAwB,CAAC;CAC/D;AAED,MAAM,MAAM,wBAAwB,GAAG,MAAM,GAAG;IAC9C,IAAI,EAAE,MAAM,CAAC;CACd,CAAC"}
1
+ {"version":3,"file":"clientDefinitions.d.ts","sourceRoot":"","sources":["../../src/clientDefinitions.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,yBAAyB,EACzB,+BAA+B,EAC/B,0BAA0B,EAC1B,yBAAyB,EACzB,2BAA2B,EAC3B,2BAA2B,EAC3B,wBAAwB,EACxB,oBAAoB,EACpB,8BAA8B,EAC9B,+BAA+B,EAC/B,mBAAmB,EACnB,yBAAyB,EACzB,oBAAoB,EACpB,iBAAiB,EACjB,4BAA4B,EAC5B,0BAA0B,EAC1B,uBAAuB,EACvB,kCAAkC,EAClC,gCAAgC,EAChC,mCAAmC,EACnC,2BAA2B,EAC3B,8BAA8B,EAC9B,uCAAuC,EACvC,kCAAkC,EAClC,mCAAmC,EACnC,gCAAgC,EAChC,mCAAmC,EACnC,oCAAoC,EACpC,4BAA4B,EAC5B,+BAA+B,EAC/B,+BAA+B,EAC/B,+BAA+B,EAChC,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EACV,0BAA0B,EAC1B,8BAA8B,EAC9B,gCAAgC,EAChC,oCAAoC,EACpC,2BAA2B,EAC3B,+BAA+B,EAC/B,0BAA0B,EAC1B,8BAA8B,EAC9B,4BAA4B,EAC5B,gCAAgC,EAChC,4BAA4B,EAC5B,gCAAgC,EAChC,yBAAyB,EACzB,6BAA6B,EAC7B,qBAAqB,EACrB,yBAAyB,EACzB,+BAA+B,EAC/B,mCAAmC,EACnC,gCAAgC,EAChC,oCAAoC,EACpC,oBAAoB,EACpB,wBAAwB,EACxB,0BAA0B,EAC1B,8BAA8B,EAC9B,qBAAqB,EACrB,yBAAyB,EACzB,kBAAkB,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C;IAC9D,oHAAoH;IACpH,CAAC,IAAI,EAAE,wCAAwC,EAAE,UAAU,EAAE,MAAM,GAAG,yBAAyB,CAAC;IAChG,gHAAgH;IAChH,CACE,IAAI,EAAE,gDAAgD,EACtD,UAAU,EAAE,MAAM,GACjB,0BAA0B,CAAC;IAC9B,6FAA6F;IAC7F,CAAC,IAAI,EAAE,YAAY,GAAG,kBAAkB,CAAC;CAC1C;AAED,MAAM,MAAM,wBAAwB,GAAG,MAAM,GAAG;IAC9C,IAAI,EAAE,MAAM,CAAC;CACd,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"clientDefinitions.js","sourceRoot":"","sources":["../../src/clientDefinitions.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n GetConstitutionParameters,\n GetUserDefinedEndpointParameters,\n CreateUserDefinedEndpointParameters,\n ListConsortiumMembersParameters,\n GetEnclaveQuotesParameters,\n ListCollectionsParameters,\n ListLedgerEntriesParameters,\n CreateLedgerEntryParameters,\n GetLedgerEntryParameters,\n GetReceiptParameters,\n GetTransactionStatusParameters,\n GetCurrentLedgerEntryParameters,\n ListUsersParameters,\n DeleteUserParameters,\n GetUserParameters,\n CreateOrUpdateUserParameters,\n ListUserDefinedFunctionsParameters,\n} from \"./parameters.js\";\nimport type {\n GetConstitution200Response,\n GetConstitutionDefaultResponse,\n GetUserDefinedEndpoint200Response,\n GetUserDefinedEndpointDefaultResponse,\n CreateUserDefinedEndpoint201Response,\n CreateUserDefinedEndpointDefaultResponse,\n ListConsortiumMembers200Response,\n ListConsortiumMembersDefaultResponse,\n GetEnclaveQuotes200Response,\n GetEnclaveQuotesDefaultResponse,\n ListCollections200Response,\n ListCollectionsDefaultResponse,\n ListLedgerEntries200Response,\n ListLedgerEntriesDefaultResponse,\n CreateLedgerEntry200Response,\n CreateLedgerEntryDefaultResponse,\n GetLedgerEntry200Response,\n GetLedgerEntryDefaultResponse,\n GetReceipt200Response,\n GetReceiptDefaultResponse,\n GetTransactionStatus200Response,\n GetTransactionStatusDefaultResponse,\n GetCurrentLedgerEntry200Response,\n GetCurrentLedgerEntryDefaultResponse,\n ListUsers200Response,\n ListUsersDefaultResponse,\n DeleteUser204Response,\n DeleteUserDefaultResponse,\n GetUser200Response,\n GetUserDefaultResponse,\n CreateOrUpdateUser200Response,\n CreateOrUpdateUserDefaultResponse,\n ListUserDefinedFunctions200Response,\n ListUserDefinedFunctionsDefaultResponse,\n} from \"./responses.js\";\nimport type { Client, StreamableMethod } from \"@azure-rest/core-client\";\n\nexport interface GetUserDefinedEndpoint {\n /** Returns the user defined endpoint in the ACL instance */\n get(\n options?: GetUserDefinedEndpointParameters,\n ): StreamableMethod<GetUserDefinedEndpoint200Response | GetUserDefinedEndpointDefaultResponse>;\n /** Creates the user defined endpoint in the ACL instance */\n put(\n options: CreateUserDefinedEndpointParameters,\n ): StreamableMethod<\n CreateUserDefinedEndpoint201Response | CreateUserDefinedEndpointDefaultResponse\n >;\n}\n\nexport interface GetConstitution {\n /** The constitution is a script that assesses and applies proposals from consortium members. */\n get(\n options?: GetConstitutionParameters,\n ): StreamableMethod<GetConstitution200Response | GetConstitutionDefaultResponse>;\n}\n\nexport interface ListConsortiumMembers {\n /** Consortium members can manage the Confidential Ledger. */\n get(\n options?: ListConsortiumMembersParameters,\n ): StreamableMethod<ListConsortiumMembers200Response | ListConsortiumMembersDefaultResponse>;\n}\n\nexport interface GetEnclaveQuotes {\n /** A quote is an SGX enclave measurement that can be used to verify the validity of a node and its enclave. */\n get(\n options?: GetEnclaveQuotesParameters,\n ): StreamableMethod<GetEnclaveQuotes200Response | GetEnclaveQuotesDefaultResponse>;\n}\n\nexport interface ListCollections {\n /** Collection ids are user-created collections of ledger entries */\n get(\n options?: ListCollectionsParameters,\n ): StreamableMethod<ListCollections200Response | ListCollectionsDefaultResponse>;\n}\n\nexport interface ListLedgerEntries {\n /** A collection id may optionally be specified. Only entries in the specified (or default) collection will be returned. */\n get(\n options?: ListLedgerEntriesParameters,\n ): StreamableMethod<ListLedgerEntries200Response | ListLedgerEntriesDefaultResponse>;\n /** A collection id may optionally be specified. */\n post(\n options: CreateLedgerEntryParameters,\n ): StreamableMethod<CreateLedgerEntry200Response | CreateLedgerEntryDefaultResponse>;\n}\n\nexport interface GetLedgerEntry {\n /** 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. */\n get(\n options?: GetLedgerEntryParameters,\n ): StreamableMethod<GetLedgerEntry200Response | GetLedgerEntryDefaultResponse>;\n}\n\nexport interface GetReceipt {\n /** Gets a receipt certifying ledger contents at a particular transaction id. */\n get(\n options?: GetReceiptParameters,\n ): StreamableMethod<GetReceipt200Response | GetReceiptDefaultResponse>;\n}\n\nexport interface GetTransactionStatus {\n /** Gets the status of an entry identified by a transaction id. */\n get(\n options?: GetTransactionStatusParameters,\n ): StreamableMethod<GetTransactionStatus200Response | GetTransactionStatusDefaultResponse>;\n}\n\nexport interface GetCurrentLedgerEntry {\n /** A collection id may optionally be specified. */\n get(\n options?: GetCurrentLedgerEntryParameters,\n ): StreamableMethod<GetCurrentLedgerEntry200Response | GetCurrentLedgerEntryDefaultResponse>;\n}\n\nexport interface ListUsers {\n /** All users' object IDs and roles will be returned. */\n get(\n options?: ListUsersParameters,\n ): StreamableMethod<ListUsers200Response | ListUsersDefaultResponse>;\n}\n\nexport interface DeleteUser {\n /** Deletes a user from the Confidential Ledger. */\n delete(\n options?: DeleteUserParameters,\n ): StreamableMethod<DeleteUser204Response | DeleteUserDefaultResponse>;\n /** Gets a user. */\n get(options?: GetUserParameters): StreamableMethod<GetUser200Response | GetUserDefaultResponse>;\n /** A JSON merge patch is applied for existing users */\n patch(\n options: CreateOrUpdateUserParameters,\n ): StreamableMethod<CreateOrUpdateUser200Response | CreateOrUpdateUserDefaultResponse>;\n}\n\nexport interface ListUserDefinedFunctions {\n /** User defined functions stored in the Confidential Ledger */\n get(\n options?: ListUserDefinedFunctionsParameters,\n ): StreamableMethod<\n ListUserDefinedFunctions200Response | ListUserDefinedFunctionsDefaultResponse\n >;\n}\n\nexport interface Routes {\n /** Resource for '/app/governance/constitution' has methods for the following verbs: get */\n (path: \"/app/governance/constitution\"): GetConstitution;\n /** Resource for '/app/governance/members' has methods for the following verbs: get */\n (path: \"/app/governance/members\"): ListConsortiumMembers;\n /** Resource for '/app/enclaveQuotes' has methods for the following verbs: get */\n (path: \"/app/enclaveQuotes\"): GetEnclaveQuotes;\n /** Resource for '/app/collections' has methods for the following verbs: get */\n (path: \"/app/collections\"): ListCollections;\n /** Resource for '/app/transactions' has methods for the following verbs: get, post */\n (path: \"/app/transactions\"): ListLedgerEntries;\n /** Resource for '/app/transactions/\\{transactionId\\}' has methods for the following verbs: get */\n (path: \"/app/transactions/{transactionId}\", transactionId: string): GetLedgerEntry;\n /** Resource for '/app/transactions/\\{transactionId\\}/receipt' has methods for the following verbs: get */\n (path: \"/app/transactions/{transactionId}/receipt\", transactionId: string): GetReceipt;\n /** Resource for '/app/transactions/\\{transactionId\\}/status' has methods for the following verbs: get */\n (path: \"/app/transactions/{transactionId}/status\", transactionId: string): GetTransactionStatus;\n /** Resource for '/app/transactions/current' has methods for the following verbs: get */\n (path: \"/app/transactions/current\"): GetCurrentLedgerEntry;\n /** Resource for '/app/users' has methods for the following verbs: get */\n (path: \"/app/users\"): ListUsers;\n /** Resource for '/app/users/\\{userId\\}' has methods for the following verbs: delete, get, patch */\n (path: \"/app/users/{userId}\", userId: string): DeleteUser;\n /** Resource for '/app/userDefinedEndpoints' has methods for the following verbs: delete, get, patch */\n (path: \"/app/userDefinedEndpoints\"): GetUserDefinedEndpoint;\n /** Resource for '/app/userDefinedFunctions' has methods for the following verbs: get */\n (path: \"/app/userDefinedFunctions\"): ListUserDefinedFunctions;\n}\n\nexport type ConfidentialLedgerClient = Client & {\n path: Routes;\n};\n"]}
1
+ {"version":3,"file":"clientDefinitions.js","sourceRoot":"","sources":["../../src/clientDefinitions.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n GetConstitutionParameters,\n ListConsortiumMembersParameters,\n GetEnclaveQuotesParameters,\n ListCollectionsParameters,\n ListLedgerEntriesParameters,\n CreateLedgerEntryParameters,\n GetLedgerEntryParameters,\n GetReceiptParameters,\n GetTransactionStatusParameters,\n GetCurrentLedgerEntryParameters,\n ListUsersParameters,\n ListLedgerUsersParameters,\n DeleteUserParameters,\n GetUserParameters,\n CreateOrUpdateUserParameters,\n DeleteLedgerUserParameters,\n GetLedgerUserParameters,\n CreateOrUpdateLedgerUserParameters,\n GetUserDefinedEndpointParameters,\n CreateUserDefinedEndpointParameters,\n GetRuntimeOptionsParameters,\n UpdateRuntimeOptionsParameters,\n GetUserDefinedEndpointsModuleParameters,\n ListUserDefinedFunctionsParameters,\n DeleteUserDefinedFunctionParameters,\n GetUserDefinedFunctionParameters,\n CreateUserDefinedFunctionParameters,\n ExecuteUserDefinedFunctionParameters,\n GetUserDefinedRoleParameters,\n CreateUserDefinedRoleParameters,\n UpdateUserDefinedRoleParameters,\n DeleteUserDefinedRoleParameters,\n} from \"./parameters.js\";\nimport type {\n GetConstitution200Response,\n GetConstitutionDefaultResponse,\n ListConsortiumMembers200Response,\n ListConsortiumMembersDefaultResponse,\n GetEnclaveQuotes200Response,\n GetEnclaveQuotesDefaultResponse,\n ListCollections200Response,\n ListCollectionsDefaultResponse,\n ListLedgerEntries200Response,\n ListLedgerEntriesDefaultResponse,\n CreateLedgerEntry200Response,\n CreateLedgerEntryDefaultResponse,\n GetLedgerEntry200Response,\n GetLedgerEntryDefaultResponse,\n GetReceipt200Response,\n GetReceiptDefaultResponse,\n GetTransactionStatus200Response,\n GetTransactionStatusDefaultResponse,\n GetCurrentLedgerEntry200Response,\n GetCurrentLedgerEntryDefaultResponse,\n ListUsers200Response,\n ListUsersDefaultResponse,\n ListLedgerUsers200Response,\n ListLedgerUsersDefaultResponse,\n DeleteUser204Response,\n DeleteUserDefaultResponse,\n GetUser200Response,\n GetUserDefaultResponse,\n CreateOrUpdateUser200Response,\n CreateOrUpdateUserDefaultResponse,\n DeleteLedgerUser204Response,\n DeleteLedgerUserDefaultResponse,\n GetLedgerUser200Response,\n GetLedgerUserDefaultResponse,\n CreateOrUpdateLedgerUser200Response,\n CreateOrUpdateLedgerUserDefaultResponse,\n GetUserDefinedEndpoint200Response,\n GetUserDefinedEndpointDefaultResponse,\n CreateUserDefinedEndpoint201Response,\n CreateUserDefinedEndpointDefaultResponse,\n GetRuntimeOptions200Response,\n GetRuntimeOptionsDefaultResponse,\n UpdateRuntimeOptions200Response,\n UpdateRuntimeOptionsDefaultResponse,\n GetUserDefinedEndpointsModule200Response,\n GetUserDefinedEndpointsModuleDefaultResponse,\n ListUserDefinedFunctions200Response,\n ListUserDefinedFunctionsDefaultResponse,\n DeleteUserDefinedFunction204Response,\n DeleteUserDefinedFunctionDefaultResponse,\n GetUserDefinedFunction200Response,\n GetUserDefinedFunctionDefaultResponse,\n CreateUserDefinedFunction200Response,\n CreateUserDefinedFunction201Response,\n CreateUserDefinedFunctionDefaultResponse,\n ExecuteUserDefinedFunction200Response,\n ExecuteUserDefinedFunctionDefaultResponse,\n GetUserDefinedRole200Response,\n GetUserDefinedRoleDefaultResponse,\n CreateUserDefinedRole200Response,\n CreateUserDefinedRoleDefaultResponse,\n UpdateUserDefinedRole200Response,\n UpdateUserDefinedRoleDefaultResponse,\n DeleteUserDefinedRole200Response,\n DeleteUserDefinedRoleDefaultResponse,\n} from \"./responses.js\";\nimport type { Client, StreamableMethod } from \"@azure-rest/core-client\";\n\nexport interface GetConstitution {\n /** The constitution is a script that assesses and applies proposals from consortium members. */\n get(\n options?: GetConstitutionParameters,\n ): StreamableMethod<GetConstitution200Response | GetConstitutionDefaultResponse>;\n}\n\nexport interface ListConsortiumMembers {\n /** Consortium members can manage the Confidential Ledger. */\n get(\n options?: ListConsortiumMembersParameters,\n ): StreamableMethod<ListConsortiumMembers200Response | ListConsortiumMembersDefaultResponse>;\n}\n\nexport interface GetEnclaveQuotes {\n /** A quote is an SGX enclave measurement that can be used to verify the validity of a node and its enclave. */\n get(\n options?: GetEnclaveQuotesParameters,\n ): StreamableMethod<GetEnclaveQuotes200Response | GetEnclaveQuotesDefaultResponse>;\n}\n\nexport interface ListCollections {\n /** Collection ids are user-created collections of ledger entries */\n get(\n options?: ListCollectionsParameters,\n ): StreamableMethod<ListCollections200Response | ListCollectionsDefaultResponse>;\n}\n\nexport interface ListLedgerEntries {\n /** A collection id may optionally be specified. Only entries in the specified (or default) collection will be returned. */\n get(\n options?: ListLedgerEntriesParameters,\n ): StreamableMethod<ListLedgerEntries200Response | ListLedgerEntriesDefaultResponse>;\n /** A collection id may optionally be specified. */\n post(\n options: CreateLedgerEntryParameters,\n ): StreamableMethod<CreateLedgerEntry200Response | CreateLedgerEntryDefaultResponse>;\n}\n\nexport interface GetLedgerEntry {\n /** 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. */\n get(\n options?: GetLedgerEntryParameters,\n ): StreamableMethod<GetLedgerEntry200Response | GetLedgerEntryDefaultResponse>;\n}\n\nexport interface GetReceipt {\n /** Gets a receipt certifying ledger contents at a particular transaction id. */\n get(\n options?: GetReceiptParameters,\n ): StreamableMethod<GetReceipt200Response | GetReceiptDefaultResponse>;\n}\n\nexport interface GetTransactionStatus {\n /** Gets the status of an entry identified by a transaction id. */\n get(\n options?: GetTransactionStatusParameters,\n ): StreamableMethod<GetTransactionStatus200Response | GetTransactionStatusDefaultResponse>;\n}\n\nexport interface GetCurrentLedgerEntry {\n /** A collection id may optionally be specified. */\n get(\n options?: GetCurrentLedgerEntryParameters,\n ): StreamableMethod<GetCurrentLedgerEntry200Response | GetCurrentLedgerEntryDefaultResponse>;\n}\n\nexport interface ListUsers {\n /** All users' object IDs and single role per user will be returned. */\n get(\n options?: ListUsersParameters,\n ): StreamableMethod<ListUsers200Response | ListUsersDefaultResponse>;\n}\n\nexport interface ListLedgerUsers {\n /** All users' object IDs and multiple roles will be returned. */\n get(\n options?: ListLedgerUsersParameters,\n ): StreamableMethod<ListLedgerUsers200Response | ListLedgerUsersDefaultResponse>;\n}\n\nexport interface DeleteUser {\n /** Deletes a user from the Confidential Ledger. */\n delete(\n options?: DeleteUserParameters,\n ): StreamableMethod<DeleteUser204Response | DeleteUserDefaultResponse>;\n /** Gets a user. */\n get(options?: GetUserParameters): StreamableMethod<GetUser200Response | GetUserDefaultResponse>;\n /** A JSON merge patch is applied for existing users */\n patch(\n options: CreateOrUpdateUserParameters,\n ): StreamableMethod<CreateOrUpdateUser200Response | CreateOrUpdateUserDefaultResponse>;\n}\n\nexport interface DeleteLedgerUser {\n /** Deletes a user with multiple roles from the Confidential Ledger. */\n delete(\n options?: DeleteLedgerUserParameters,\n ): StreamableMethod<DeleteLedgerUser204Response | DeleteLedgerUserDefaultResponse>;\n /** Gets a user with multiple roles. */\n get(\n options?: GetLedgerUserParameters,\n ): StreamableMethod<GetLedgerUser200Response | GetLedgerUserDefaultResponse>;\n /** A JSON merge patch is applied for existing users */\n patch(\n options: CreateOrUpdateLedgerUserParameters,\n ): StreamableMethod<\n CreateOrUpdateLedgerUser200Response | CreateOrUpdateLedgerUserDefaultResponse\n >;\n}\n\nexport interface GetUserDefinedEndpoint {\n /** Returns the user defined endpoint in the ACL instance */\n get(\n options?: GetUserDefinedEndpointParameters,\n ): StreamableMethod<GetUserDefinedEndpoint200Response | GetUserDefinedEndpointDefaultResponse>;\n /** Creates the user defined endpoint in the ACL instance */\n put(\n options: CreateUserDefinedEndpointParameters,\n ): StreamableMethod<\n CreateUserDefinedEndpoint201Response | CreateUserDefinedEndpointDefaultResponse\n >;\n}\n\nexport interface GetRuntimeOptions {\n /** It returns the runtime options */\n get(\n options?: GetRuntimeOptionsParameters,\n ): StreamableMethod<GetRuntimeOptions200Response | GetRuntimeOptionsDefaultResponse>;\n /** Updates the runtime options. */\n patch(\n options: UpdateRuntimeOptionsParameters,\n ): StreamableMethod<UpdateRuntimeOptions200Response | UpdateRuntimeOptionsDefaultResponse>;\n}\n\nexport interface GetUserDefinedEndpointsModule {\n /** It gets the module for the user defined endpoint. */\n get(\n options: GetUserDefinedEndpointsModuleParameters,\n ): StreamableMethod<\n GetUserDefinedEndpointsModule200Response | GetUserDefinedEndpointsModuleDefaultResponse\n >;\n}\n\nexport interface ListUserDefinedFunctions {\n /** User defined functions stored in the Confidential Ledger */\n get(\n options?: ListUserDefinedFunctionsParameters,\n ): StreamableMethod<\n ListUserDefinedFunctions200Response | ListUserDefinedFunctionsDefaultResponse\n >;\n}\n\nexport interface DeleteUserDefinedFunction {\n /** Deletes a user defined function from the Confidential Ledger. */\n delete(\n options?: DeleteUserDefinedFunctionParameters,\n ): StreamableMethod<\n DeleteUserDefinedFunction204Response | DeleteUserDefinedFunctionDefaultResponse\n >;\n /** Returns the user defined function in the Confidential Ledger */\n get(\n options?: GetUserDefinedFunctionParameters,\n ): StreamableMethod<GetUserDefinedFunction200Response | GetUserDefinedFunctionDefaultResponse>;\n /** Creates the user defined function in the Confidential Ledger */\n put(\n options: CreateUserDefinedFunctionParameters,\n ): StreamableMethod<\n | CreateUserDefinedFunction200Response\n | CreateUserDefinedFunction201Response\n | CreateUserDefinedFunctionDefaultResponse\n >;\n}\n\nexport interface ExecuteUserDefinedFunction {\n /** Executes the user defined function in the Confidential Ledger */\n post(\n options?: ExecuteUserDefinedFunctionParameters,\n ): StreamableMethod<\n ExecuteUserDefinedFunction200Response | ExecuteUserDefinedFunctionDefaultResponse\n >;\n}\n\nexport interface GetUserDefinedRole {\n /** user defined roles allow users to define and manage app specific AuthZ policy. */\n get(\n options: GetUserDefinedRoleParameters,\n ): StreamableMethod<GetUserDefinedRole200Response | GetUserDefinedRoleDefaultResponse>;\n /** User defined roles allow users to define and manage app specific AuthZ policy. */\n put(\n options: CreateUserDefinedRoleParameters,\n ): StreamableMethod<CreateUserDefinedRole200Response | CreateUserDefinedRoleDefaultResponse>;\n /** User defined roles allow users to define and manage app specific AuthZ policy. */\n patch(\n options: UpdateUserDefinedRoleParameters,\n ): StreamableMethod<UpdateUserDefinedRole200Response | UpdateUserDefinedRoleDefaultResponse>;\n /** A user defined role allows the users to create and manage their own role actions using the API. */\n delete(\n options: DeleteUserDefinedRoleParameters,\n ): StreamableMethod<DeleteUserDefinedRole200Response | DeleteUserDefinedRoleDefaultResponse>;\n}\n\nexport interface Routes {\n /** Resource for '/app/governance/constitution' has methods for the following verbs: get */\n (path: \"/app/governance/constitution\"): GetConstitution;\n /** Resource for '/app/governance/members' has methods for the following verbs: get */\n (path: \"/app/governance/members\"): ListConsortiumMembers;\n /** Resource for '/app/enclaveQuotes' has methods for the following verbs: get */\n (path: \"/app/enclaveQuotes\"): GetEnclaveQuotes;\n /** Resource for '/app/collections' has methods for the following verbs: get */\n (path: \"/app/collections\"): ListCollections;\n /** Resource for '/app/transactions' has methods for the following verbs: get, post */\n (path: \"/app/transactions\"): ListLedgerEntries;\n /** Resource for '/app/transactions/\\{transactionId\\}' has methods for the following verbs: get */\n (path: \"/app/transactions/{transactionId}\", transactionId: string): GetLedgerEntry;\n /** Resource for '/app/transactions/\\{transactionId\\}/receipt' has methods for the following verbs: get */\n (path: \"/app/transactions/{transactionId}/receipt\", transactionId: string): GetReceipt;\n /** Resource for '/app/transactions/\\{transactionId\\}/status' has methods for the following verbs: get */\n (path: \"/app/transactions/{transactionId}/status\", transactionId: string): GetTransactionStatus;\n /** Resource for '/app/transactions/current' has methods for the following verbs: get */\n (path: \"/app/transactions/current\"): GetCurrentLedgerEntry;\n /** Resource for '/app/users' has methods for the following verbs: get */\n (path: \"/app/users\"): ListUsers;\n /** Resource for '/app/ledgerUsers' has methods for the following verbs: get */\n (path: \"/app/ledgerUsers\"): ListLedgerUsers;\n /** Resource for '/app/users/\\{userId\\}' has methods for the following verbs: delete, get, patch */\n (path: \"/app/users/{userId}\", userId: string): DeleteUser;\n /** Resource for '/app/ledgerUsers/\\{userId\\}' has methods for the following verbs: delete, get, patch */\n (path: \"/app/ledgerUsers/{userId}\", userId: string): DeleteLedgerUser;\n /** Resource for '/app/userDefinedEndpoints' has methods for the following verbs: get, put */\n (path: \"/app/userDefinedEndpoints\"): GetUserDefinedEndpoint;\n /** Resource for '/app/userDefinedEndpoints/runtimeOptions' has methods for the following verbs: get, patch */\n (path: \"/app/userDefinedEndpoints/runtimeOptions\"): GetRuntimeOptions;\n /** Resource for '/app/userDefinedEndpoints/modules' has methods for the following verbs: get */\n (path: \"/app/userDefinedEndpoints/modules\"): GetUserDefinedEndpointsModule;\n /** Resource for '/app/userDefinedFunctions' has methods for the following verbs: get */\n (path: \"/app/userDefinedFunctions\"): ListUserDefinedFunctions;\n /** Resource for '/app/userDefinedFunctions/\\{functionId\\}' has methods for the following verbs: delete, get, put */\n (path: \"/app/userDefinedFunctions/{functionId}\", functionId: string): DeleteUserDefinedFunction;\n /** Resource for '/app/userDefinedFunctions/\\{functionId\\}:execute' has methods for the following verbs: post */\n (\n path: \"/app/userDefinedFunctions/{functionId}:execute\",\n functionId: string,\n ): ExecuteUserDefinedFunction;\n /** Resource for '/app/roles' has methods for the following verbs: get, put, patch, delete */\n (path: \"/app/roles\"): GetUserDefinedRole;\n}\n\nexport type ConfidentialLedgerClient = Client & {\n path: Routes;\n};\n"]}
@@ -8,9 +8,9 @@ export interface ConfidentialLedgerClientOptions extends ClientOptions {
8
8
  }
9
9
  /**
10
10
  * Initialize a new instance of `ConfidentialLedgerClient`
11
- * @param endpoint - The Confidential Ledger URL, for example https://contoso.confidentialledger.azure.com
11
+ * @param ledgerEndpoint - The Confidential Ledger URL, for example https://contoso.confidentialledger.azure.com
12
12
  * @param credentials - uniquely identify client credential
13
13
  * @param options - the parameter for all optional parameters
14
14
  */
15
- export default function createClient(endpoint: string, credentials: TokenCredential, { apiVersion, ...options }?: ConfidentialLedgerClientOptions): ConfidentialLedgerClient;
15
+ export default function createClient(ledgerEndpoint: string, credentials: TokenCredential, { apiVersion, ...options }?: ConfidentialLedgerClientOptions): ConfidentialLedgerClient;
16
16
  //# sourceMappingURL=confidentialLedger.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"confidentialLedger.d.ts","sourceRoot":"","sources":["../../src/confidentialLedger.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAG7D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAEvE,6CAA6C;AAC7C,MAAM,WAAW,+BAAgC,SAAQ,aAAa;IACpE,2CAA2C;IAC3C,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAClC,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,eAAe,EAC5B,EAAE,UAAiC,EAAE,GAAG,OAAO,EAAE,GAAE,+BAAoC,GACtF,wBAAwB,CAuC1B"}
1
+ {"version":3,"file":"confidentialLedger.d.ts","sourceRoot":"","sources":["../../src/confidentialLedger.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAG7D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAEvE,6CAA6C;AAC7C,MAAM,WAAW,+BAAgC,SAAQ,aAAa;IACpE,2CAA2C;IAC3C,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAClC,cAAc,EAAE,MAAM,EACtB,WAAW,EAAE,eAAe,EAC5B,EAAE,UAAiC,EAAE,GAAG,OAAO,EAAE,GAAE,+BAAoC,GACtF,wBAAwB,CAuC1B"}
@@ -5,15 +5,15 @@ import { getClient } from "@azure-rest/core-client";
5
5
  import { logger } from "./logger.js";
6
6
  /**
7
7
  * Initialize a new instance of `ConfidentialLedgerClient`
8
- * @param endpoint - The Confidential Ledger URL, for example https://contoso.confidentialledger.azure.com
8
+ * @param ledgerEndpoint - The Confidential Ledger URL, for example https://contoso.confidentialledger.azure.com
9
9
  * @param credentials - uniquely identify client credential
10
10
  * @param options - the parameter for all optional parameters
11
11
  */
12
- export default function createClient(endpoint, credentials, _a = {}) {
12
+ export default function createClient(ledgerEndpoint, credentials, _a = {}) {
13
13
  var _b, _c, _d, _e, _f, _g;
14
- var { apiVersion = "2024-01-26-preview" } = _a, options = __rest(_a, ["apiVersion"]);
15
- const endpointUrl = (_c = (_b = options.endpoint) !== null && _b !== void 0 ? _b : options.baseUrl) !== null && _c !== void 0 ? _c : `${endpoint}`;
16
- const userAgentInfo = `azsdk-js-confidential-ledger-rest/1.1.2-beta.1`;
14
+ var { apiVersion = "2024-12-09-preview" } = _a, options = __rest(_a, ["apiVersion"]);
15
+ const endpointUrl = (_c = (_b = options.endpoint) !== null && _b !== void 0 ? _b : options.baseUrl) !== null && _c !== void 0 ? _c : `${ledgerEndpoint}`;
16
+ const userAgentInfo = `azsdk-js-confidential-ledger-rest/1.1.2-beta.3`;
17
17
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
18
18
  ? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}`
19
19
  : `${userAgentInfo}`;
@@ -1 +1 @@
1
- {"version":3,"file":"confidentialLedger.js","sourceRoot":"","sources":["../../src/confidentialLedger.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;;AAGlC,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAUrC;;;;;GAKG;AACH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AC,GAAG,CAAC,aAAa,CAAC,IAAI,UAAU,EAAE,CAAC;gBACvD,GAAG,CAAC,GAAG,GAAG,GAAG,GAAG,CAAC,GAAG,GAClB,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GACzD,eAAe,UAAU,EAAE,CAAC;YAC9B,CAAC;YAED,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC;QACnB,CAAC;KACF,CAAC,CAAC;IAEH,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { ClientOptions } from \"@azure-rest/core-client\";\nimport { getClient } from \"@azure-rest/core-client\";\nimport { logger } from \"./logger.js\";\nimport type { TokenCredential } from \"@azure/core-auth\";\nimport type { ConfidentialLedgerClient } from \"./clientDefinitions.js\";\n\n/** The optional parameters for the client */\nexport interface ConfidentialLedgerClientOptions extends ClientOptions {\n /** The api version option of the client */\n apiVersion?: string;\n}\n\n/**\n * Initialize a new instance of `ConfidentialLedgerClient`\n * @param endpoint - The Confidential Ledger URL, for example https://contoso.confidentialledger.azure.com\n * @param credentials - uniquely identify client credential\n * @param options - the parameter for all optional parameters\n */\nexport default function createClient(\n endpoint: string,\n credentials: TokenCredential,\n { apiVersion = \"2024-01-26-preview\", ...options }: ConfidentialLedgerClientOptions = {},\n): ConfidentialLedgerClient {\n const endpointUrl = options.endpoint ?? options.baseUrl ?? `${endpoint}`;\n const userAgentInfo = `azsdk-js-confidential-ledger-rest/1.1.2-beta.1`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}`\n : `${userAgentInfo}`;\n options = {\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n loggingOptions: {\n logger: options.loggingOptions?.logger ?? logger.info,\n },\n credentials: {\n scopes: options.credentials?.scopes ?? [\"https://confidential-ledger.azure.com/.default\"],\n },\n };\n const client = getClient(endpointUrl, credentials, options) as ConfidentialLedgerClient;\n\n client.pipeline.removePolicy({ name: \"ApiVersionPolicy\" });\n client.pipeline.addPolicy({\n name: \"ClientApiVersionPolicy\",\n sendRequest: (req, next) => {\n // Use the apiVersion defined in request url directly\n // Append one if there is no apiVersion and we have one at client options\n const url = new URL(req.url);\n if (!url.searchParams.get(\"api-version\") && apiVersion) {\n req.url = `${req.url}${\n Array.from(url.searchParams.keys()).length > 0 ? \"&\" : \"?\"\n }api-version=${apiVersion}`;\n }\n\n return next(req);\n },\n });\n\n return client;\n}\n"]}
1
+ {"version":3,"file":"confidentialLedger.js","sourceRoot":"","sources":["../../src/confidentialLedger.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;;AAGlC,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAUrC;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAClC,cAAsB,EACtB,WAA4B,EAC5B,KAAqF,EAAE;;QAAvF,EAAE,UAAU,GAAG,oBAAoB,OAAoD,EAA/C,OAAO,cAA/C,cAAiD,CAAF;IAE/C,MAAM,WAAW,GAAG,MAAA,MAAA,OAAO,CAAC,QAAQ,mCAAI,OAAO,CAAC,OAAO,mCAAI,GAAG,cAAc,EAAE,CAAC;IAC/E,MAAM,aAAa,GAAG,gDAAgD,CAAC;IACvE,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;QAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,aAAa,EAAE;QAChE,CAAC,CAAC,GAAG,aAAa,EAAE,CAAC;IACzB,OAAO,mCACF,OAAO,KACV,gBAAgB,EAAE;YAChB,eAAe;SAChB,EACD,cAAc,EAAE;YACd,MAAM,EAAE,MAAA,MAAA,OAAO,CAAC,cAAc,0CAAE,MAAM,mCAAI,MAAM,CAAC,IAAI;SACtD,EACD,WAAW,EAAE;YACX,MAAM,EAAE,MAAA,MAAA,OAAO,CAAC,WAAW,0CAAE,MAAM,mCAAI,CAAC,gDAAgD,CAAC;SAC1F,GACF,CAAC;IACF,MAAM,MAAM,GAAG,SAAS,CAAC,WAAW,EAAE,WAAW,EAAE,OAAO,CAA6B,CAAC;IAExF,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC,CAAC;IAC3D,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC;QACxB,IAAI,EAAE,wBAAwB;QAC9B,WAAW,EAAE,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE;YACzB,qDAAqD;YACrD,yEAAyE;YACzE,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;YAC7B,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,aAAa,CAAC,IAAI,UAAU,EAAE,CAAC;gBACvD,GAAG,CAAC,GAAG,GAAG,GAAG,GAAG,CAAC,GAAG,GAClB,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GACzD,eAAe,UAAU,EAAE,CAAC;YAC9B,CAAC;YAED,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC;QACnB,CAAC;KACF,CAAC,CAAC;IAEH,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { ClientOptions } from \"@azure-rest/core-client\";\nimport { getClient } from \"@azure-rest/core-client\";\nimport { logger } from \"./logger.js\";\nimport type { TokenCredential } from \"@azure/core-auth\";\nimport type { ConfidentialLedgerClient } from \"./clientDefinitions.js\";\n\n/** The optional parameters for the client */\nexport interface ConfidentialLedgerClientOptions extends ClientOptions {\n /** The api version option of the client */\n apiVersion?: string;\n}\n\n/**\n * Initialize a new instance of `ConfidentialLedgerClient`\n * @param ledgerEndpoint - The Confidential Ledger URL, for example https://contoso.confidentialledger.azure.com\n * @param credentials - uniquely identify client credential\n * @param options - the parameter for all optional parameters\n */\nexport default function createClient(\n ledgerEndpoint: string,\n credentials: TokenCredential,\n { apiVersion = \"2024-12-09-preview\", ...options }: ConfidentialLedgerClientOptions = {},\n): ConfidentialLedgerClient {\n const endpointUrl = options.endpoint ?? options.baseUrl ?? `${ledgerEndpoint}`;\n const userAgentInfo = `azsdk-js-confidential-ledger-rest/1.1.2-beta.3`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}`\n : `${userAgentInfo}`;\n options = {\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n loggingOptions: {\n logger: options.loggingOptions?.logger ?? logger.info,\n },\n credentials: {\n scopes: options.credentials?.scopes ?? [\"https://confidential-ledger.azure.com/.default\"],\n },\n };\n const client = getClient(endpointUrl, credentials, options) as ConfidentialLedgerClient;\n\n client.pipeline.removePolicy({ name: \"ApiVersionPolicy\" });\n client.pipeline.addPolicy({\n name: \"ClientApiVersionPolicy\",\n sendRequest: (req, next) => {\n // Use the apiVersion defined in request url directly\n // Append one if there is no apiVersion and we have one at client options\n const url = new URL(req.url);\n if (!url.searchParams.get(\"api-version\") && apiVersion) {\n req.url = `${req.url}${\n Array.from(url.searchParams.keys()).length > 0 ? \"&\" : \"?\"\n }api-version=${apiVersion}`;\n }\n\n return next(req);\n },\n });\n\n return client;\n}\n"]}