@azure-rest/confidential-ledger 1.1.2-beta.2 → 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.
- package/dist/commonjs/clientDefinitions.d.ts +10 -10
- package/dist/commonjs/clientDefinitions.d.ts.map +1 -1
- package/dist/commonjs/clientDefinitions.js.map +1 -1
- package/dist/commonjs/confidentialLedger.d.ts +2 -2
- package/dist/commonjs/confidentialLedger.d.ts.map +1 -1
- package/dist/commonjs/confidentialLedger.js +5 -5
- package/dist/commonjs/confidentialLedger.js.map +1 -1
- package/dist/commonjs/isUnexpected.d.ts +19 -1
- package/dist/commonjs/isUnexpected.d.ts.map +1 -1
- package/dist/commonjs/isUnexpected.js +18 -0
- package/dist/commonjs/isUnexpected.js.map +1 -1
- package/dist/commonjs/models.d.ts +31 -31
- package/dist/commonjs/models.d.ts.map +1 -1
- package/dist/commonjs/models.js.map +1 -1
- package/dist/commonjs/outputModels.d.ts +25 -25
- package/dist/commonjs/outputModels.d.ts.map +1 -1
- package/dist/commonjs/outputModels.js.map +1 -1
- package/dist/commonjs/paginateHelper.d.ts +4 -0
- package/dist/commonjs/paginateHelper.d.ts.map +1 -1
- package/dist/commonjs/paginateHelper.js +8 -1
- package/dist/commonjs/paginateHelper.js.map +1 -1
- package/dist/commonjs/parameters.d.ts +44 -40
- package/dist/commonjs/parameters.d.ts.map +1 -1
- package/dist/commonjs/parameters.js.map +1 -1
- package/dist/commonjs/responses.d.ts +36 -36
- package/dist/commonjs/responses.d.ts.map +1 -1
- package/dist/commonjs/responses.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +1 -1
- package/dist/esm/clientDefinitions.d.ts +10 -10
- package/dist/esm/clientDefinitions.d.ts.map +1 -1
- package/dist/esm/clientDefinitions.js.map +1 -1
- package/dist/esm/confidentialLedger.d.ts +2 -2
- package/dist/esm/confidentialLedger.d.ts.map +1 -1
- package/dist/esm/confidentialLedger.js +5 -5
- package/dist/esm/confidentialLedger.js.map +1 -1
- package/dist/esm/isUnexpected.d.ts +19 -1
- package/dist/esm/isUnexpected.d.ts.map +1 -1
- package/dist/esm/isUnexpected.js +18 -0
- package/dist/esm/isUnexpected.js.map +1 -1
- package/dist/esm/models.d.ts +31 -31
- package/dist/esm/models.d.ts.map +1 -1
- package/dist/esm/models.js.map +1 -1
- package/dist/esm/outputModels.d.ts +25 -25
- package/dist/esm/outputModels.d.ts.map +1 -1
- package/dist/esm/outputModels.js.map +1 -1
- package/dist/esm/paginateHelper.d.ts +4 -0
- package/dist/esm/paginateHelper.d.ts.map +1 -1
- package/dist/esm/paginateHelper.js +8 -1
- package/dist/esm/paginateHelper.js.map +1 -1
- package/dist/esm/parameters.d.ts +44 -40
- package/dist/esm/parameters.d.ts.map +1 -1
- package/dist/esm/parameters.js.map +1 -1
- package/dist/esm/responses.d.ts +36 -36
- package/dist/esm/responses.d.ts.map +1 -1
- package/dist/esm/responses.js.map +1 -1
- package/package.json +9 -17
- package/CHANGELOG.md +0 -28
- package/dist/commonjs/generated/clientDefinitions.d.ts +0 -153
- package/dist/commonjs/generated/clientDefinitions.d.ts.map +0 -1
- package/dist/commonjs/generated/clientDefinitions.js +0 -5
- package/dist/commonjs/generated/clientDefinitions.js.map +0 -1
- package/dist/commonjs/generated/confidentialLedger.d.ts +0 -16
- package/dist/commonjs/generated/confidentialLedger.d.ts.map +0 -1
- package/dist/commonjs/generated/confidentialLedger.js +0 -48
- package/dist/commonjs/generated/confidentialLedger.js.map +0 -1
- package/dist/commonjs/generated/index.d.ts +0 -11
- package/dist/commonjs/generated/index.d.ts.map +0 -1
- package/dist/commonjs/generated/index.js +0 -16
- package/dist/commonjs/generated/index.js.map +0 -1
- package/dist/commonjs/generated/isUnexpected.d.ts +0 -34
- package/dist/commonjs/generated/isUnexpected.d.ts.map +0 -1
- package/dist/commonjs/generated/isUnexpected.js +0 -105
- package/dist/commonjs/generated/isUnexpected.js.map +0 -1
- package/dist/commonjs/generated/logger.d.ts +0 -2
- package/dist/commonjs/generated/logger.d.ts.map +0 -1
- package/dist/commonjs/generated/logger.js +0 -8
- package/dist/commonjs/generated/logger.js.map +0 -1
- package/dist/commonjs/generated/models.d.ts +0 -87
- package/dist/commonjs/generated/models.d.ts.map +0 -1
- package/dist/commonjs/generated/models.js +0 -5
- package/dist/commonjs/generated/models.js.map +0 -1
- package/dist/commonjs/generated/outputModels.d.ts +0 -280
- package/dist/commonjs/generated/outputModels.d.ts.map +0 -1
- package/dist/commonjs/generated/outputModels.js +0 -5
- package/dist/commonjs/generated/outputModels.js.map +0 -1
- package/dist/commonjs/generated/paginateHelper.d.ts +0 -88
- package/dist/commonjs/generated/paginateHelper.d.ts.map +0 -1
- package/dist/commonjs/generated/paginateHelper.js +0 -223
- package/dist/commonjs/generated/paginateHelper.js.map +0 -1
- package/dist/commonjs/generated/parameters.d.ts +0 -168
- package/dist/commonjs/generated/parameters.d.ts.map +0 -1
- package/dist/commonjs/generated/parameters.js +0 -5
- package/dist/commonjs/generated/parameters.js.map +0 -1
- package/dist/commonjs/generated/responses.d.ts +0 -337
- package/dist/commonjs/generated/responses.d.ts.map +0 -1
- package/dist/commonjs/generated/responses.js +0 -5
- package/dist/commonjs/generated/responses.js.map +0 -1
- package/dist/esm/generated/clientDefinitions.d.ts +0 -153
- package/dist/esm/generated/clientDefinitions.d.ts.map +0 -1
- package/dist/esm/generated/clientDefinitions.js +0 -4
- package/dist/esm/generated/clientDefinitions.js.map +0 -1
- package/dist/esm/generated/confidentialLedger.d.ts +0 -16
- package/dist/esm/generated/confidentialLedger.d.ts.map +0 -1
- package/dist/esm/generated/confidentialLedger.js +0 -45
- package/dist/esm/generated/confidentialLedger.js.map +0 -1
- package/dist/esm/generated/index.d.ts +0 -11
- package/dist/esm/generated/index.d.ts.map +0 -1
- package/dist/esm/generated/index.js +0 -13
- package/dist/esm/generated/index.js.map +0 -1
- package/dist/esm/generated/isUnexpected.d.ts +0 -34
- package/dist/esm/generated/isUnexpected.d.ts.map +0 -1
- package/dist/esm/generated/isUnexpected.js +0 -102
- package/dist/esm/generated/isUnexpected.js.map +0 -1
- package/dist/esm/generated/logger.d.ts +0 -2
- package/dist/esm/generated/logger.d.ts.map +0 -1
- package/dist/esm/generated/logger.js +0 -5
- package/dist/esm/generated/logger.js.map +0 -1
- package/dist/esm/generated/models.d.ts +0 -87
- package/dist/esm/generated/models.d.ts.map +0 -1
- package/dist/esm/generated/models.js +0 -4
- package/dist/esm/generated/models.js.map +0 -1
- package/dist/esm/generated/outputModels.d.ts +0 -280
- package/dist/esm/generated/outputModels.d.ts.map +0 -1
- package/dist/esm/generated/outputModels.js +0 -4
- package/dist/esm/generated/outputModels.js.map +0 -1
- package/dist/esm/generated/paginateHelper.d.ts +0 -88
- package/dist/esm/generated/paginateHelper.d.ts.map +0 -1
- package/dist/esm/generated/paginateHelper.js +0 -220
- package/dist/esm/generated/paginateHelper.js.map +0 -1
- package/dist/esm/generated/parameters.d.ts +0 -168
- package/dist/esm/generated/parameters.d.ts.map +0 -1
- package/dist/esm/generated/parameters.js +0 -4
- package/dist/esm/generated/parameters.js.map +0 -1
- package/dist/esm/generated/responses.d.ts +0 -337
- package/dist/esm/generated/responses.d.ts.map +0 -1
- package/dist/esm/generated/responses.js +0 -4
- package/dist/esm/generated/responses.js.map +0 -1
- package/review/confidential-ledger.api.md +0 -1494
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"paginateHelper.js","sourceRoot":"","sources":["../../../src/generated/paginateHelper.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;;AAGlC,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D;;;;;;GAMG;AACH,SAAS,qBAAqB,CAM5B,WAAqD;;IAErD,MAAM,IAAI,GAAG,oBAAoB,CAC/B,WAAW,CACZ,CAAC;IACF,OAAO;QACL,IAAI;YACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;QACrB,CAAC;QACD,CAAC,MAAM,CA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,CAAC;IAED,KAAK,MAAM,IAAI,IAAI,SAAS,EAAE,CAAC;QAC7B,MAAM,IAAI,GAAI,eAAe,CAAC,IAAgC,CAC5D,IAAI,CACK,CAAC;QACZ,IAAI,IAAI,EAAE,CAAC;YACT,QAAQ,GAAG,IAAI,CAAC;YAChB,MAAM;QACR,CAAC;IACH,CAAC;IAED,IAAI,CAAC,QAAQ,EAAE,CAAC;QACd,MAAM,IAAI,KAAK,CACb,kFAAkF;YAChF,GAAG,SAAS;SACb,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CACjB,CAAC;IACJ,CAAC;IAED,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,CAAC;AACpC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { Client, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError } from \"@azure-rest/core-client\";\n\n/**\n * returns an async iterator that iterates over results. It also has a `byPage`\n * method that returns pages of items at once.\n *\n * @param pagedResult - an object that specifies how to get pages.\n * @returns a paged async iterator that iterates over results.\n */\nfunction getPagedAsyncIterator<\n TElement,\n TPage = TElement[],\n TPageSettings = PageSettings,\n TLink = string,\n>(\n pagedResult: PagedResult<TPage, TPageSettings, TLink>,\n): PagedAsyncIterableIterator<TElement, TPage, TPageSettings> {\n const iter = getItemAsyncIterator<TElement, TPage, TLink, TPageSettings>(\n pagedResult,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage:\n pagedResult?.byPage ??\n (((settings?: PageSettings) => {\n const { continuationToken } = settings ?? {};\n return getPageAsyncIterator(pagedResult, {\n pageLink: continuationToken as unknown as TLink | undefined,\n });\n }) as unknown as (\n settings?: TPageSettings,\n ) => AsyncIterableIterator<TPage>),\n };\n}\n\nasync function* getItemAsyncIterator<TElement, TPage, TLink, TPageSettings>(\n pagedResult: PagedResult<TPage, TPageSettings, TLink>,\n): AsyncIterableIterator<TElement> {\n const pages = getPageAsyncIterator(pagedResult);\n const firstVal = await pages.next();\n // if the result does not have an array shape, i.e. TPage = TElement, then we return it as is\n if (!Array.isArray(firstVal.value)) {\n // can extract elements from this page\n const { toElements } = pagedResult;\n if (toElements) {\n yield* toElements(firstVal.value) as TElement[];\n for await (const page of pages) {\n yield* toElements(page) as TElement[];\n }\n } else {\n yield firstVal.value;\n // `pages` is of type `AsyncIterableIterator<TPage>` but TPage = TElement in this case\n yield* pages as unknown as AsyncIterableIterator<TElement>;\n }\n } else {\n yield* firstVal.value;\n for await (const page of pages) {\n // pages is of type `AsyncIterableIterator<TPage>` so `page` is of type `TPage`. In this branch,\n // it must be the case that `TPage = TElement[]`\n yield* page as unknown as TElement[];\n }\n }\n}\n\nasync function* getPageAsyncIterator<TPage, TLink, TPageSettings>(\n pagedResult: PagedResult<TPage, TPageSettings, TLink>,\n options: {\n pageLink?: TLink;\n } = {},\n): AsyncIterableIterator<TPage> {\n const { pageLink } = options;\n let response = await pagedResult.getPage(\n pageLink ?? pagedResult.firstPageLink,\n );\n if (!response) {\n return;\n }\n yield response.page;\n while (response.nextPageLink) {\n response = await pagedResult.getPage(response.nextPageLink);\n if (!response) {\n return;\n }\n yield response.page;\n }\n}\n\n/**\n * An interface that tracks the settings for paged iteration\n */\nexport interface PageSettings {\n /**\n * The token that keeps track of where to continue the iterator\n */\n continuationToken?: string;\n}\n\n/**\n * An interface that allows async iterable iteration both to completion and by page.\n */\nexport interface PagedAsyncIterableIterator<\n TElement,\n TPage = TElement[],\n TPageSettings = PageSettings,\n> {\n /**\n * The next method, part of the iteration protocol\n */\n next(): Promise<IteratorResult<TElement>>;\n /**\n * The connection to the async iterator, part of the iteration protocol\n */\n [Symbol.asyncIterator](): PagedAsyncIterableIterator<\n TElement,\n TPage,\n TPageSettings\n >;\n /**\n * Return an AsyncIterableIterator that works a page at a time\n */\n byPage: (settings?: TPageSettings) => AsyncIterableIterator<TPage>;\n}\n\n/**\n * An interface that describes how to communicate with the service.\n */\ninterface PagedResult<TPage, TPageSettings = PageSettings, TLink = string> {\n /**\n * Link to the first page of results.\n */\n firstPageLink: TLink;\n /**\n * A method that returns a page of results.\n */\n getPage: (\n pageLink: TLink,\n ) => Promise<{ page: TPage; nextPageLink?: TLink } | undefined>;\n /**\n * a function to implement the `byPage` method on the paged async iterator.\n */\n byPage?: (settings?: TPageSettings) => AsyncIterableIterator<TPage>;\n\n /**\n * A function to extract elements from a page.\n */\n toElements?: (page: TPage) => unknown[];\n}\n\n/**\n * Helper type to extract the type of an array\n */\nexport type GetArrayType<T> = T extends Array<infer TData> ? TData : never;\n\n/**\n * The type of a custom function that defines how to get a page and a link to the next one if any.\n */\nexport type GetPage<TPage> = (pageLink: string) => Promise<{\n page: TPage;\n nextPageLink?: string;\n}>;\n\n/**\n * Options for the paging helper\n */\nexport interface PagingOptions<TResponse> {\n /**\n * Custom function to extract pagination details for crating the PagedAsyncIterableIterator\n */\n customGetPage?: GetPage<PaginateReturn<TResponse>[]>;\n}\n\n/**\n * Helper type to infer the Type of the paged elements from the response type\n * This type is generated based on the swagger information for x-ms-pageable\n * specifically on the itemName property which indicates the property of the response\n * where the page items are found. The default value is `value`.\n * This type will allow us to provide strongly typed Iterator based on the response we get as second parameter\n */\nexport type PaginateReturn<TResult> = TResult extends\n | {\n body: { value?: infer TPage };\n }\n | {\n body: { members?: infer TPage };\n }\n | {\n body: { collections?: infer TPage };\n }\n | {\n body: { entries?: infer TPage };\n }\n | {\n body: { ledgerUsers?: infer TPage };\n }\n | {\n body: { functions?: infer TPage };\n }\n ? GetArrayType<TPage>\n : Array<unknown>;\n\n/**\n * Helper to paginate results from an initial response that follows the specification of Autorest `x-ms-pageable` extension\n * @param client - Client to use for sending the next page requests\n * @param initialResponse - Initial response containing the nextLink and current page of elements\n * @param customGetPage - Optional - Function to define how to extract the page and next link to be used to paginate the results\n * @returns - PagedAsyncIterableIterator to iterate the elements\n */\nexport function paginate<TResponse extends PathUncheckedResponse>(\n client: Client,\n initialResponse: TResponse,\n options: PagingOptions<TResponse> = {},\n): PagedAsyncIterableIterator<PaginateReturn<TResponse>> {\n // Extract element type from initial response\n type TElement = PaginateReturn<TResponse>;\n let firstRun = true;\n // We need to check the response for success before trying to inspect it looking for\n // the properties to use for nextLink and itemName\n checkPagingRequest(initialResponse);\n const { itemName, nextLinkName } = getPaginationProperties(initialResponse);\n const { customGetPage } = options;\n const pagedResult: PagedResult<TElement[]> = {\n firstPageLink: \"\",\n getPage:\n typeof customGetPage === \"function\"\n ? customGetPage\n : async (pageLink: string) => {\n const result = firstRun\n ? initialResponse\n : await client.pathUnchecked(pageLink).get();\n firstRun = false;\n checkPagingRequest(result);\n const nextLink = getNextLink(result.body, nextLinkName);\n const values = getElements<TElement>(result.body, itemName);\n return {\n page: values,\n nextPageLink: nextLink,\n };\n },\n };\n\n return getPagedAsyncIterator(pagedResult);\n}\n\n/**\n * Gets for the value of nextLink in the body\n */\nfunction getNextLink(body: unknown, nextLinkName?: string): string | undefined {\n if (!nextLinkName) {\n return undefined;\n }\n\n const nextLink = (body as Record<string, unknown>)[nextLinkName];\n\n if (typeof nextLink !== \"string\" && typeof nextLink !== \"undefined\") {\n throw new Error(\n `Body Property ${nextLinkName} should be a string or undefined`,\n );\n }\n\n return nextLink;\n}\n\n/**\n * Gets the elements of the current request in the body.\n */\nfunction getElements<T = unknown>(body: unknown, itemName: string): T[] {\n const value = (body as Record<string, unknown>)[itemName] as T[];\n\n // value has to be an array according to the x-ms-pageable extension.\n // The fact that this must be an array is used above to calculate the\n // type of elements in the page in PaginateReturn\n if (!Array.isArray(value)) {\n throw new Error(\n `Couldn't paginate response\\n Body doesn't contain an array property with name: ${itemName}`,\n );\n }\n\n return value ?? [];\n}\n\n/**\n * Checks if a request failed\n */\nfunction checkPagingRequest(response: PathUncheckedResponse): void {\n const Http2xxStatusCodes = [\n \"200\",\n \"201\",\n \"202\",\n \"203\",\n \"204\",\n \"205\",\n \"206\",\n \"207\",\n \"208\",\n \"226\",\n ];\n if (!Http2xxStatusCodes.includes(response.status)) {\n throw createRestError(\n `Pagination failed with unexpected statusCode ${response.status}`,\n response,\n );\n }\n}\n\n/**\n * Extracts the itemName and nextLinkName from the initial response to use them for pagination\n */\nfunction getPaginationProperties(initialResponse: PathUncheckedResponse) {\n // Build a set with the passed custom nextLinkNames\n const nextLinkNames = new Set([\"nextLink\", \"@nextLink\"]);\n\n // Build a set with the passed custom set of itemNames\n const itemNames = new Set([\n \"value\",\n \"members\",\n \"collections\",\n \"entries\",\n \"ledgerUsers\",\n \"functions\",\n ]);\n\n let nextLinkName: string | undefined;\n let itemName: string | undefined;\n\n for (const name of nextLinkNames) {\n const nextLink = (initialResponse.body as Record<string, unknown>)[\n name\n ] as string;\n if (nextLink) {\n nextLinkName = name;\n break;\n }\n }\n\n for (const name of itemNames) {\n const item = (initialResponse.body as Record<string, unknown>)[\n name\n ] as string;\n if (item) {\n itemName = name;\n break;\n }\n }\n\n if (!itemName) {\n throw new Error(\n `Couldn't paginate response\\n Body doesn't contain an array property with name: ${[\n ...itemNames,\n ].join(\" OR \")}`,\n );\n }\n\n return { itemName, nextLinkName };\n}\n"]}
|
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
import type { RequestParameters } from "@azure-rest/core-client";
|
|
2
|
-
import type { LedgerEntry, LedgerUser, LedgerUserMultipleRoles, Bundle, JSRuntimeOptions, UserDefinedFunction, UserDefinedFunctionExecutionProperties, Role } from "./models.js";
|
|
3
|
-
export type GetConstitutionParameters = RequestParameters;
|
|
4
|
-
export type ListConsortiumMembersParameters = RequestParameters;
|
|
5
|
-
export type GetEnclaveQuotesParameters = RequestParameters;
|
|
6
|
-
export type ListCollectionsParameters = RequestParameters;
|
|
7
|
-
export interface ListLedgerEntriesQueryParamProperties {
|
|
8
|
-
/** The collection id. */
|
|
9
|
-
collectionId?: string;
|
|
10
|
-
/** Specify the first transaction ID in a range. */
|
|
11
|
-
fromTransactionId?: string;
|
|
12
|
-
/** Specify the last transaction ID in a range. */
|
|
13
|
-
toTransactionId?: string;
|
|
14
|
-
/** Single tag. */
|
|
15
|
-
tag?: string;
|
|
16
|
-
}
|
|
17
|
-
export interface ListLedgerEntriesQueryParam {
|
|
18
|
-
queryParameters?: ListLedgerEntriesQueryParamProperties;
|
|
19
|
-
}
|
|
20
|
-
export type ListLedgerEntriesParameters = ListLedgerEntriesQueryParam & RequestParameters;
|
|
21
|
-
export interface CreateLedgerEntryBodyParam {
|
|
22
|
-
/** Ledger entry. */
|
|
23
|
-
body: LedgerEntry;
|
|
24
|
-
}
|
|
25
|
-
export interface CreateLedgerEntryQueryParamProperties {
|
|
26
|
-
/** The collection id. */
|
|
27
|
-
collectionId?: string;
|
|
28
|
-
/** Comma separated tags. */
|
|
29
|
-
tags?: string;
|
|
30
|
-
}
|
|
31
|
-
export interface CreateLedgerEntryQueryParam {
|
|
32
|
-
queryParameters?: CreateLedgerEntryQueryParamProperties;
|
|
33
|
-
}
|
|
34
|
-
export interface CreateLedgerEntryMediaTypesParam {
|
|
35
|
-
/** Request content type */
|
|
36
|
-
contentType?: "application/json";
|
|
37
|
-
}
|
|
38
|
-
export type CreateLedgerEntryParameters = CreateLedgerEntryQueryParam & CreateLedgerEntryMediaTypesParam & CreateLedgerEntryBodyParam & RequestParameters;
|
|
39
|
-
export interface GetLedgerEntryQueryParamProperties {
|
|
40
|
-
/** The collection id. */
|
|
41
|
-
collectionId?: string;
|
|
42
|
-
}
|
|
43
|
-
export interface GetLedgerEntryQueryParam {
|
|
44
|
-
queryParameters?: GetLedgerEntryQueryParamProperties;
|
|
45
|
-
}
|
|
46
|
-
export type GetLedgerEntryParameters = GetLedgerEntryQueryParam & RequestParameters;
|
|
47
|
-
export type GetReceiptParameters = RequestParameters;
|
|
48
|
-
export type GetTransactionStatusParameters = RequestParameters;
|
|
49
|
-
export interface GetCurrentLedgerEntryQueryParamProperties {
|
|
50
|
-
/** The collection id. */
|
|
51
|
-
collectionId?: string;
|
|
52
|
-
}
|
|
53
|
-
export interface GetCurrentLedgerEntryQueryParam {
|
|
54
|
-
queryParameters?: GetCurrentLedgerEntryQueryParamProperties;
|
|
55
|
-
}
|
|
56
|
-
export type GetCurrentLedgerEntryParameters = GetCurrentLedgerEntryQueryParam & RequestParameters;
|
|
57
|
-
export type ListUsersParameters = RequestParameters;
|
|
58
|
-
export type ListLedgerUsersParameters = RequestParameters;
|
|
59
|
-
export type DeleteUserParameters = RequestParameters;
|
|
60
|
-
export type GetUserParameters = RequestParameters;
|
|
61
|
-
/** Details about a Confidential Ledger user. */
|
|
62
|
-
export type LedgerUserResourceMergeAndPatch = Partial<LedgerUser>;
|
|
63
|
-
export interface CreateOrUpdateUserBodyParam {
|
|
64
|
-
/** Details about a Confidential Ledger user. */
|
|
65
|
-
body: LedgerUserResourceMergeAndPatch;
|
|
66
|
-
}
|
|
67
|
-
export interface CreateOrUpdateUserMediaTypesParam {
|
|
68
|
-
/** Request content type */
|
|
69
|
-
contentType?: "application/merge-patch+json";
|
|
70
|
-
}
|
|
71
|
-
export type CreateOrUpdateUserParameters = CreateOrUpdateUserMediaTypesParam & CreateOrUpdateUserBodyParam & RequestParameters;
|
|
72
|
-
export type DeleteLedgerUserParameters = RequestParameters;
|
|
73
|
-
export type GetLedgerUserParameters = RequestParameters;
|
|
74
|
-
/** Details about a Confidential Ledger user with multiple roles. */
|
|
75
|
-
export type LedgerUserMultipleRolesResourceMergeAndPatch = Partial<LedgerUserMultipleRoles>;
|
|
76
|
-
export interface CreateOrUpdateLedgerUserBodyParam {
|
|
77
|
-
/** Details about a Confidential Ledger user with multiple roles. */
|
|
78
|
-
body: LedgerUserMultipleRolesResourceMergeAndPatch;
|
|
79
|
-
}
|
|
80
|
-
export interface CreateOrUpdateLedgerUserMediaTypesParam {
|
|
81
|
-
/** Request content type */
|
|
82
|
-
contentType?: "application/merge-patch+json";
|
|
83
|
-
}
|
|
84
|
-
export type CreateOrUpdateLedgerUserParameters = CreateOrUpdateLedgerUserMediaTypesParam & CreateOrUpdateLedgerUserBodyParam & RequestParameters;
|
|
85
|
-
export type GetUserDefinedEndpointParameters = RequestParameters;
|
|
86
|
-
export interface CreateUserDefinedEndpointBodyParam {
|
|
87
|
-
/** bundle parameter description */
|
|
88
|
-
body: Bundle;
|
|
89
|
-
}
|
|
90
|
-
export interface CreateUserDefinedEndpointMediaTypesParam {
|
|
91
|
-
/** Request content type */
|
|
92
|
-
contentType?: "application/json";
|
|
93
|
-
}
|
|
94
|
-
export type CreateUserDefinedEndpointParameters = CreateUserDefinedEndpointMediaTypesParam & CreateUserDefinedEndpointBodyParam & RequestParameters;
|
|
95
|
-
export type GetRuntimeOptionsParameters = RequestParameters;
|
|
96
|
-
export interface UpdateRuntimeOptionsBodyParam {
|
|
97
|
-
/** JS runtime options */
|
|
98
|
-
body: JSRuntimeOptions;
|
|
99
|
-
}
|
|
100
|
-
export interface UpdateRuntimeOptionsMediaTypesParam {
|
|
101
|
-
/** Request content type */
|
|
102
|
-
contentType?: "application/json";
|
|
103
|
-
}
|
|
104
|
-
export type UpdateRuntimeOptionsParameters = UpdateRuntimeOptionsMediaTypesParam & UpdateRuntimeOptionsBodyParam & RequestParameters;
|
|
105
|
-
export interface GetUserDefinedEndpointsModuleQueryParamProperties {
|
|
106
|
-
/** module name of the user defined endpoint */
|
|
107
|
-
module_name: string;
|
|
108
|
-
}
|
|
109
|
-
export interface GetUserDefinedEndpointsModuleQueryParam {
|
|
110
|
-
queryParameters: GetUserDefinedEndpointsModuleQueryParamProperties;
|
|
111
|
-
}
|
|
112
|
-
export type GetUserDefinedEndpointsModuleParameters = GetUserDefinedEndpointsModuleQueryParam & RequestParameters;
|
|
113
|
-
export type ListUserDefinedFunctionsParameters = RequestParameters;
|
|
114
|
-
export type DeleteUserDefinedFunctionParameters = RequestParameters;
|
|
115
|
-
export type GetUserDefinedFunctionParameters = RequestParameters;
|
|
116
|
-
export interface CreateUserDefinedFunctionBodyParam {
|
|
117
|
-
/** Specify a user defined function of a Confidential Ledger. */
|
|
118
|
-
body: UserDefinedFunction;
|
|
119
|
-
}
|
|
120
|
-
export interface CreateUserDefinedFunctionMediaTypesParam {
|
|
121
|
-
/** Request content type */
|
|
122
|
-
contentType?: "application/json";
|
|
123
|
-
}
|
|
124
|
-
export type CreateUserDefinedFunctionParameters = CreateUserDefinedFunctionMediaTypesParam & CreateUserDefinedFunctionBodyParam & RequestParameters;
|
|
125
|
-
export interface ExecuteUserDefinedFunctionBodyParam {
|
|
126
|
-
/** Specify user defined function execution properties. */
|
|
127
|
-
body?: UserDefinedFunctionExecutionProperties;
|
|
128
|
-
}
|
|
129
|
-
export interface ExecuteUserDefinedFunctionMediaTypesParam {
|
|
130
|
-
/** Request content type */
|
|
131
|
-
contentType?: "application/json";
|
|
132
|
-
}
|
|
133
|
-
export type ExecuteUserDefinedFunctionParameters = ExecuteUserDefinedFunctionMediaTypesParam & ExecuteUserDefinedFunctionBodyParam & RequestParameters;
|
|
134
|
-
export interface GetUserDefinedRoleQueryParamProperties {
|
|
135
|
-
/** user defined role name */
|
|
136
|
-
roleName: string;
|
|
137
|
-
}
|
|
138
|
-
export interface GetUserDefinedRoleQueryParam {
|
|
139
|
-
queryParameters: GetUserDefinedRoleQueryParamProperties;
|
|
140
|
-
}
|
|
141
|
-
export type GetUserDefinedRoleParameters = GetUserDefinedRoleQueryParam & RequestParameters;
|
|
142
|
-
export interface CreateUserDefinedRoleBodyParam {
|
|
143
|
-
/** user defined role */
|
|
144
|
-
body: Array<Role>;
|
|
145
|
-
}
|
|
146
|
-
export interface CreateUserDefinedRoleMediaTypesParam {
|
|
147
|
-
/** Request content type */
|
|
148
|
-
contentType?: "application/json";
|
|
149
|
-
}
|
|
150
|
-
export type CreateUserDefinedRoleParameters = CreateUserDefinedRoleMediaTypesParam & CreateUserDefinedRoleBodyParam & RequestParameters;
|
|
151
|
-
export interface UpdateUserDefinedRoleBodyParam {
|
|
152
|
-
/** user defined role */
|
|
153
|
-
body: Array<Role>;
|
|
154
|
-
}
|
|
155
|
-
export interface UpdateUserDefinedRoleMediaTypesParam {
|
|
156
|
-
/** Request content type */
|
|
157
|
-
contentType?: "application/json";
|
|
158
|
-
}
|
|
159
|
-
export type UpdateUserDefinedRoleParameters = UpdateUserDefinedRoleMediaTypesParam & UpdateUserDefinedRoleBodyParam & RequestParameters;
|
|
160
|
-
export interface DeleteUserDefinedRoleQueryParamProperties {
|
|
161
|
-
/** user defined role name */
|
|
162
|
-
roleName: string;
|
|
163
|
-
}
|
|
164
|
-
export interface DeleteUserDefinedRoleQueryParam {
|
|
165
|
-
queryParameters: DeleteUserDefinedRoleQueryParamProperties;
|
|
166
|
-
}
|
|
167
|
-
export type DeleteUserDefinedRoleParameters = DeleteUserDefinedRoleQueryParam & RequestParameters;
|
|
168
|
-
//# sourceMappingURL=parameters.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"parameters.d.ts","sourceRoot":"","sources":["../../../src/generated/parameters.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,KAAK,EACV,WAAW,EACX,UAAU,EACV,uBAAuB,EACvB,MAAM,EACN,gBAAgB,EAChB,mBAAmB,EACnB,sCAAsC,EACtC,IAAI,EACL,MAAM,aAAa,CAAC;AAErB,MAAM,MAAM,yBAAyB,GAAG,iBAAiB,CAAC;AAC1D,MAAM,MAAM,+BAA+B,GAAG,iBAAiB,CAAC;AAChE,MAAM,MAAM,0BAA0B,GAAG,iBAAiB,CAAC;AAC3D,MAAM,MAAM,yBAAyB,GAAG,iBAAiB,CAAC;AAE1D,MAAM,WAAW,qCAAqC;IACpD,yBAAyB;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,mDAAmD;IACnD,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,kDAAkD;IAClD,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,kBAAkB;IAClB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,2BAA2B;IAC1C,eAAe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AC,IAAI,CAAC,CAAC;CACnB;AAED,MAAM,WAAW,oCAAoC;IACnD,2BAA2B;IAC3B,WAAW,CAAC,EAAE,kBAAkB,CAAC;CAClC;AAED,MAAM,MAAM,+BAA+B,GACzC,oCAAoC,GAClC,8BAA8B,GAC9B,iBAAiB,CAAC;AAEtB,MAAM,WAAW,8BAA8B;IAC7C,wBAAwB;IACxB,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;CACnB;AAED,MAAM,WAAW,oCAAoC;IACnD,2BAA2B;IAC3B,WAAW,CAAC,EAAE,kBAAkB,CAAC;CAClC;AAED,MAAM,MAAM,+BAA+B,GACzC,oCAAoC,GAClC,8BAA8B,GAC9B,iBAAiB,CAAC;AAEtB,MAAM,WAAW,yCAAyC;IACxD,6BAA6B;IAC7B,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,+BAA+B;IAC9C,eAAe,EAAE,yCAAyC,CAAC;CAC5D;AAED,MAAM,MAAM,+BAA+B,GAAG,+BAA+B,GAC3E,iBAAiB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../../src/generated/parameters.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { RequestParameters } from \"@azure-rest/core-client\";\nimport type {\n LedgerEntry,\n LedgerUser,\n LedgerUserMultipleRoles,\n Bundle,\n JSRuntimeOptions,\n UserDefinedFunction,\n UserDefinedFunctionExecutionProperties,\n Role,\n} from \"./models.js\";\n\nexport type GetConstitutionParameters = RequestParameters;\nexport type ListConsortiumMembersParameters = RequestParameters;\nexport type GetEnclaveQuotesParameters = RequestParameters;\nexport type ListCollectionsParameters = RequestParameters;\n\nexport interface ListLedgerEntriesQueryParamProperties {\n /** The collection id. */\n collectionId?: string;\n /** Specify the first transaction ID in a range. */\n fromTransactionId?: string;\n /** Specify the last transaction ID in a range. */\n toTransactionId?: string;\n /** Single tag. */\n tag?: string;\n}\n\nexport interface ListLedgerEntriesQueryParam {\n queryParameters?: ListLedgerEntriesQueryParamProperties;\n}\n\nexport type ListLedgerEntriesParameters = ListLedgerEntriesQueryParam &\n RequestParameters;\n\nexport interface CreateLedgerEntryBodyParam {\n /** Ledger entry. */\n body: LedgerEntry;\n}\n\nexport interface CreateLedgerEntryQueryParamProperties {\n /** The collection id. */\n collectionId?: string;\n /** Comma separated tags. */\n tags?: string;\n}\n\nexport interface CreateLedgerEntryQueryParam {\n queryParameters?: CreateLedgerEntryQueryParamProperties;\n}\n\nexport interface CreateLedgerEntryMediaTypesParam {\n /** Request content type */\n contentType?: \"application/json\";\n}\n\nexport type CreateLedgerEntryParameters = CreateLedgerEntryQueryParam &\n CreateLedgerEntryMediaTypesParam &\n CreateLedgerEntryBodyParam &\n RequestParameters;\n\nexport interface GetLedgerEntryQueryParamProperties {\n /** The collection id. */\n collectionId?: string;\n}\n\nexport interface GetLedgerEntryQueryParam {\n queryParameters?: GetLedgerEntryQueryParamProperties;\n}\n\nexport type GetLedgerEntryParameters = GetLedgerEntryQueryParam &\n RequestParameters;\nexport type GetReceiptParameters = RequestParameters;\nexport type GetTransactionStatusParameters = RequestParameters;\n\nexport interface GetCurrentLedgerEntryQueryParamProperties {\n /** The collection id. */\n collectionId?: string;\n}\n\nexport interface GetCurrentLedgerEntryQueryParam {\n queryParameters?: GetCurrentLedgerEntryQueryParamProperties;\n}\n\nexport type GetCurrentLedgerEntryParameters = GetCurrentLedgerEntryQueryParam &\n RequestParameters;\nexport type ListUsersParameters = RequestParameters;\nexport type ListLedgerUsersParameters = RequestParameters;\nexport type DeleteUserParameters = RequestParameters;\nexport type GetUserParameters = RequestParameters;\n/** Details about a Confidential Ledger user. */\nexport type LedgerUserResourceMergeAndPatch = Partial<LedgerUser>;\n\nexport interface CreateOrUpdateUserBodyParam {\n /** Details about a Confidential Ledger user. */\n body: LedgerUserResourceMergeAndPatch;\n}\n\nexport interface CreateOrUpdateUserMediaTypesParam {\n /** Request content type */\n contentType?: \"application/merge-patch+json\";\n}\n\nexport type CreateOrUpdateUserParameters = CreateOrUpdateUserMediaTypesParam &\n CreateOrUpdateUserBodyParam &\n RequestParameters;\nexport type DeleteLedgerUserParameters = RequestParameters;\nexport type GetLedgerUserParameters = RequestParameters;\n/** Details about a Confidential Ledger user with multiple roles. */\nexport type LedgerUserMultipleRolesResourceMergeAndPatch =\n Partial<LedgerUserMultipleRoles>;\n\nexport interface CreateOrUpdateLedgerUserBodyParam {\n /** Details about a Confidential Ledger user with multiple roles. */\n body: LedgerUserMultipleRolesResourceMergeAndPatch;\n}\n\nexport interface CreateOrUpdateLedgerUserMediaTypesParam {\n /** Request content type */\n contentType?: \"application/merge-patch+json\";\n}\n\nexport type CreateOrUpdateLedgerUserParameters =\n CreateOrUpdateLedgerUserMediaTypesParam &\n CreateOrUpdateLedgerUserBodyParam &\n RequestParameters;\nexport type GetUserDefinedEndpointParameters = RequestParameters;\n\nexport interface CreateUserDefinedEndpointBodyParam {\n /** bundle parameter description */\n body: Bundle;\n}\n\nexport interface CreateUserDefinedEndpointMediaTypesParam {\n /** Request content type */\n contentType?: \"application/json\";\n}\n\nexport type CreateUserDefinedEndpointParameters =\n CreateUserDefinedEndpointMediaTypesParam &\n CreateUserDefinedEndpointBodyParam &\n RequestParameters;\nexport type GetRuntimeOptionsParameters = RequestParameters;\n\nexport interface UpdateRuntimeOptionsBodyParam {\n /** JS runtime options */\n body: JSRuntimeOptions;\n}\n\nexport interface UpdateRuntimeOptionsMediaTypesParam {\n /** Request content type */\n contentType?: \"application/json\";\n}\n\nexport type UpdateRuntimeOptionsParameters =\n UpdateRuntimeOptionsMediaTypesParam &\n UpdateRuntimeOptionsBodyParam &\n RequestParameters;\n\nexport interface GetUserDefinedEndpointsModuleQueryParamProperties {\n /** module name of the user defined endpoint */\n module_name: string;\n}\n\nexport interface GetUserDefinedEndpointsModuleQueryParam {\n queryParameters: GetUserDefinedEndpointsModuleQueryParamProperties;\n}\n\nexport type GetUserDefinedEndpointsModuleParameters =\n GetUserDefinedEndpointsModuleQueryParam & RequestParameters;\nexport type ListUserDefinedFunctionsParameters = RequestParameters;\nexport type DeleteUserDefinedFunctionParameters = RequestParameters;\nexport type GetUserDefinedFunctionParameters = RequestParameters;\n\nexport interface CreateUserDefinedFunctionBodyParam {\n /** Specify a user defined function of a Confidential Ledger. */\n body: UserDefinedFunction;\n}\n\nexport interface CreateUserDefinedFunctionMediaTypesParam {\n /** Request content type */\n contentType?: \"application/json\";\n}\n\nexport type CreateUserDefinedFunctionParameters =\n CreateUserDefinedFunctionMediaTypesParam &\n CreateUserDefinedFunctionBodyParam &\n RequestParameters;\n\nexport interface ExecuteUserDefinedFunctionBodyParam {\n /** Specify user defined function execution properties. */\n body?: UserDefinedFunctionExecutionProperties;\n}\n\nexport interface ExecuteUserDefinedFunctionMediaTypesParam {\n /** Request content type */\n contentType?: \"application/json\";\n}\n\nexport type ExecuteUserDefinedFunctionParameters =\n ExecuteUserDefinedFunctionMediaTypesParam &\n ExecuteUserDefinedFunctionBodyParam &\n RequestParameters;\n\nexport interface GetUserDefinedRoleQueryParamProperties {\n /** user defined role name */\n roleName: string;\n}\n\nexport interface GetUserDefinedRoleQueryParam {\n queryParameters: GetUserDefinedRoleQueryParamProperties;\n}\n\nexport type GetUserDefinedRoleParameters = GetUserDefinedRoleQueryParam &\n RequestParameters;\n\nexport interface CreateUserDefinedRoleBodyParam {\n /** user defined role */\n body: Array<Role>;\n}\n\nexport interface CreateUserDefinedRoleMediaTypesParam {\n /** Request content type */\n contentType?: \"application/json\";\n}\n\nexport type CreateUserDefinedRoleParameters =\n CreateUserDefinedRoleMediaTypesParam &\n CreateUserDefinedRoleBodyParam &\n RequestParameters;\n\nexport interface UpdateUserDefinedRoleBodyParam {\n /** user defined role */\n body: Array<Role>;\n}\n\nexport interface UpdateUserDefinedRoleMediaTypesParam {\n /** Request content type */\n contentType?: \"application/json\";\n}\n\nexport type UpdateUserDefinedRoleParameters =\n UpdateUserDefinedRoleMediaTypesParam &\n UpdateUserDefinedRoleBodyParam &\n RequestParameters;\n\nexport interface DeleteUserDefinedRoleQueryParamProperties {\n /** user defined role name */\n roleName: string;\n}\n\nexport interface DeleteUserDefinedRoleQueryParam {\n queryParameters: DeleteUserDefinedRoleQueryParamProperties;\n}\n\nexport type DeleteUserDefinedRoleParameters = DeleteUserDefinedRoleQueryParam &\n RequestParameters;\n"]}
|
|
@@ -1,337 +0,0 @@
|
|
|
1
|
-
import type { RawHttpHeaders } from "@azure/core-rest-pipeline";
|
|
2
|
-
import type { HttpResponse } from "@azure-rest/core-client";
|
|
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
|
-
/** The constitution is a script that assesses and applies proposals from consortium members. */
|
|
5
|
-
export interface GetConstitution200Response extends HttpResponse {
|
|
6
|
-
status: "200";
|
|
7
|
-
body: ConstitutionOutput;
|
|
8
|
-
}
|
|
9
|
-
/** The constitution is a script that assesses and applies proposals from consortium members. */
|
|
10
|
-
export interface GetConstitutionDefaultResponse extends HttpResponse {
|
|
11
|
-
status: string;
|
|
12
|
-
body: ConfidentialLedgerErrorOutput;
|
|
13
|
-
}
|
|
14
|
-
/** Consortium members can manage the Confidential Ledger. */
|
|
15
|
-
export interface ListConsortiumMembers200Response extends HttpResponse {
|
|
16
|
-
status: "200";
|
|
17
|
-
body: ConsortiumOutput;
|
|
18
|
-
}
|
|
19
|
-
/** Consortium members can manage the Confidential Ledger. */
|
|
20
|
-
export interface ListConsortiumMembersDefaultResponse extends HttpResponse {
|
|
21
|
-
status: string;
|
|
22
|
-
body: ConfidentialLedgerErrorOutput;
|
|
23
|
-
}
|
|
24
|
-
/** A quote is an SGX enclave measurement that can be used to verify the validity of a node and its enclave. */
|
|
25
|
-
export interface GetEnclaveQuotes200Response extends HttpResponse {
|
|
26
|
-
status: "200";
|
|
27
|
-
body: ConfidentialLedgerEnclavesOutput;
|
|
28
|
-
}
|
|
29
|
-
/** A quote is an SGX enclave measurement that can be used to verify the validity of a node and its enclave. */
|
|
30
|
-
export interface GetEnclaveQuotesDefaultResponse extends HttpResponse {
|
|
31
|
-
status: string;
|
|
32
|
-
body: ConfidentialLedgerErrorOutput;
|
|
33
|
-
}
|
|
34
|
-
/** Collection ids are user-created collections of ledger entries */
|
|
35
|
-
export interface ListCollections200Response extends HttpResponse {
|
|
36
|
-
status: "200";
|
|
37
|
-
body: PagedCollectionsOutput;
|
|
38
|
-
}
|
|
39
|
-
/** Collection ids are user-created collections of ledger entries */
|
|
40
|
-
export interface ListCollectionsDefaultResponse extends HttpResponse {
|
|
41
|
-
status: string;
|
|
42
|
-
body: ConfidentialLedgerErrorOutput;
|
|
43
|
-
}
|
|
44
|
-
/** A collection id may optionally be specified. Only entries in the specified (or default) collection will be returned. */
|
|
45
|
-
export interface ListLedgerEntries200Response extends HttpResponse {
|
|
46
|
-
status: "200";
|
|
47
|
-
body: PagedLedgerEntriesOutput;
|
|
48
|
-
}
|
|
49
|
-
/** A collection id may optionally be specified. Only entries in the specified (or default) collection will be returned. */
|
|
50
|
-
export interface ListLedgerEntriesDefaultResponse extends HttpResponse {
|
|
51
|
-
status: string;
|
|
52
|
-
body: ConfidentialLedgerErrorOutput;
|
|
53
|
-
}
|
|
54
|
-
export interface CreateLedgerEntry200Headers {
|
|
55
|
-
/** The transaction id at which this write will become durable. */
|
|
56
|
-
"x-ms-ccf-transaction-id"?: string;
|
|
57
|
-
}
|
|
58
|
-
/** A collection id may optionally be specified. */
|
|
59
|
-
export interface CreateLedgerEntry200Response extends HttpResponse {
|
|
60
|
-
status: "200";
|
|
61
|
-
body: LedgerWriteResultOutput;
|
|
62
|
-
headers: RawHttpHeaders & CreateLedgerEntry200Headers;
|
|
63
|
-
}
|
|
64
|
-
/** A collection id may optionally be specified. */
|
|
65
|
-
export interface CreateLedgerEntryDefaultResponse extends HttpResponse {
|
|
66
|
-
status: string;
|
|
67
|
-
body: ConfidentialLedgerErrorOutput;
|
|
68
|
-
}
|
|
69
|
-
/** 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. */
|
|
70
|
-
export interface GetLedgerEntry200Response extends HttpResponse {
|
|
71
|
-
status: "200";
|
|
72
|
-
body: LedgerQueryResultOutput;
|
|
73
|
-
}
|
|
74
|
-
/** 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. */
|
|
75
|
-
export interface GetLedgerEntryDefaultResponse extends HttpResponse {
|
|
76
|
-
status: string;
|
|
77
|
-
body: ConfidentialLedgerErrorOutput;
|
|
78
|
-
}
|
|
79
|
-
/** Gets a receipt certifying ledger contents at a particular transaction id. */
|
|
80
|
-
export interface GetReceipt200Response extends HttpResponse {
|
|
81
|
-
status: "200";
|
|
82
|
-
body: TransactionReceiptOutput;
|
|
83
|
-
}
|
|
84
|
-
/** Gets a receipt certifying ledger contents at a particular transaction id. */
|
|
85
|
-
export interface GetReceiptDefaultResponse extends HttpResponse {
|
|
86
|
-
status: string;
|
|
87
|
-
body: ConfidentialLedgerErrorOutput;
|
|
88
|
-
}
|
|
89
|
-
/** Gets the status of an entry identified by a transaction id. */
|
|
90
|
-
export interface GetTransactionStatus200Response extends HttpResponse {
|
|
91
|
-
status: "200";
|
|
92
|
-
body: TransactionStatusOutput;
|
|
93
|
-
}
|
|
94
|
-
/** Gets the status of an entry identified by a transaction id. */
|
|
95
|
-
export interface GetTransactionStatusDefaultResponse extends HttpResponse {
|
|
96
|
-
status: string;
|
|
97
|
-
body: ConfidentialLedgerErrorOutput;
|
|
98
|
-
}
|
|
99
|
-
/** A collection id may optionally be specified. */
|
|
100
|
-
export interface GetCurrentLedgerEntry200Response extends HttpResponse {
|
|
101
|
-
status: "200";
|
|
102
|
-
body: LedgerEntryOutput;
|
|
103
|
-
}
|
|
104
|
-
/** A collection id may optionally be specified. */
|
|
105
|
-
export interface GetCurrentLedgerEntryDefaultResponse extends HttpResponse {
|
|
106
|
-
status: string;
|
|
107
|
-
body: ConfidentialLedgerErrorOutput;
|
|
108
|
-
}
|
|
109
|
-
/** All users' object IDs and single role per user will be returned. */
|
|
110
|
-
export interface ListUsers200Response extends HttpResponse {
|
|
111
|
-
status: "200";
|
|
112
|
-
body: PagedUsersOutput;
|
|
113
|
-
}
|
|
114
|
-
/** All users' object IDs and single role per user will be returned. */
|
|
115
|
-
export interface ListUsersDefaultResponse extends HttpResponse {
|
|
116
|
-
status: string;
|
|
117
|
-
body: ConfidentialLedgerErrorOutput;
|
|
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
|
-
}
|
|
129
|
-
/** Deletes a user from the Confidential Ledger. */
|
|
130
|
-
export interface DeleteUser204Response extends HttpResponse {
|
|
131
|
-
status: "204";
|
|
132
|
-
}
|
|
133
|
-
/** Deletes a user from the Confidential Ledger. */
|
|
134
|
-
export interface DeleteUserDefaultResponse extends HttpResponse {
|
|
135
|
-
status: string;
|
|
136
|
-
body: ConfidentialLedgerErrorOutput;
|
|
137
|
-
}
|
|
138
|
-
/** Gets a user. */
|
|
139
|
-
export interface GetUser200Response extends HttpResponse {
|
|
140
|
-
status: "200";
|
|
141
|
-
body: LedgerUserOutput;
|
|
142
|
-
}
|
|
143
|
-
/** Gets a user. */
|
|
144
|
-
export interface GetUserDefaultResponse extends HttpResponse {
|
|
145
|
-
status: string;
|
|
146
|
-
body: ConfidentialLedgerErrorOutput;
|
|
147
|
-
}
|
|
148
|
-
/** A JSON merge patch is applied for existing users */
|
|
149
|
-
export interface CreateOrUpdateUser200Response extends HttpResponse {
|
|
150
|
-
status: "200";
|
|
151
|
-
body: LedgerUserOutput;
|
|
152
|
-
}
|
|
153
|
-
/** A JSON merge patch is applied for existing users */
|
|
154
|
-
export interface CreateOrUpdateUserDefaultResponse extends HttpResponse {
|
|
155
|
-
status: string;
|
|
156
|
-
body: ConfidentialLedgerErrorOutput;
|
|
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
|
-
}
|
|
187
|
-
/** Returns the user defined endpoint in the ACL instance */
|
|
188
|
-
export interface GetUserDefinedEndpoint200Response extends HttpResponse {
|
|
189
|
-
status: "200";
|
|
190
|
-
body: BundleOutput;
|
|
191
|
-
}
|
|
192
|
-
/** Returns the user defined endpoint in the ACL instance */
|
|
193
|
-
export interface GetUserDefinedEndpointDefaultResponse extends HttpResponse {
|
|
194
|
-
status: string;
|
|
195
|
-
body: ConfidentialLedgerErrorOutput;
|
|
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
|
-
}
|
|
236
|
-
/** User defined functions stored in the Confidential Ledger */
|
|
237
|
-
export interface ListUserDefinedFunctions200Response extends HttpResponse {
|
|
238
|
-
status: "200";
|
|
239
|
-
body: PagedUserDefinedFunctionsOutput;
|
|
240
|
-
}
|
|
241
|
-
/** User defined functions stored in the Confidential Ledger */
|
|
242
|
-
export interface ListUserDefinedFunctionsDefaultResponse extends HttpResponse {
|
|
243
|
-
status: string;
|
|
244
|
-
body: ConfidentialLedgerErrorOutput;
|
|
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
|
-
}
|
|
337
|
-
//# sourceMappingURL=responses.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../../src/generated/responses.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,KAAK,EACV,kBAAkB,EAClB,6BAA6B,EAC7B,gBAAgB,EAChB,gCAAgC,EAChC,sBAAsB,EACtB,wBAAwB,EACxB,uBAAuB,EACvB,uBAAuB,EACvB,wBAAwB,EACxB,uBAAuB,EACvB,iBAAiB,EACjB,gBAAgB,EAChB,sBAAsB,EACtB,gBAAgB,EAChB,6BAA6B,EAC7B,YAAY,EACZ,sBAAsB,EACtB,eAAe,EACf,+BAA+B,EAC/B,yBAAyB,EACzB,0CAA0C,EAC1C,UAAU,EACX,MAAM,mBAAmB,CAAC;AAE3B,gGAAgG;AAChG,MAAM,WAAW,0BAA2B,SAAQ,YAAY;IAC9D,MAAM,EAAE,KAAK,CAAC;IACd,IAAI,EAAE,kBAAkB,CAAC;CAC1B;AAED,gGAAgG;AAChG,MAAM,WAAW,8BAA+B,SAAQ,YAAY;IAClE,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,6BAA6B,CAAC;CACrC;AAED,6DAA6D;AAC7D,MAAM,WAAW,gCAAiC,SAAQ,YAAY;IACpE,MAAM,EAAE,KAAK,CAAC;IACd,IAAI,EAAE,gBAAgB,CAAC;CACxB;AAED,6DAA6D;AAC7D,MAAM,WAAW,oCAAqC,SAAQ,YAAY;IACxE,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,6BAA6B,CAAC;CACrC;AAED,+GAA+G;AAC/G,MAAM,WAAW,2BAA4B,SAAQ,YAAY;IAC/D,MAAM,EAAE,KAAK,CAAC;IACd,IAAI,EAAE,gCAAgC,CAAC;CACxC;AAED,+G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IAAI,EAAE,6BAA6B,CAAC;CACrC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"responses.js","sourceRoot":"","sources":["../../../src/generated/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\n 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\n 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"]}
|