@azure-rest/confidential-ledger 1.1.2-alpha.20250411.1 → 1.1.2-alpha.20250417.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/dist/commonjs/clientDefinitions.d.ts +8 -2
  2. package/dist/commonjs/clientDefinitions.d.ts.map +1 -1
  3. package/dist/commonjs/clientDefinitions.js.map +1 -1
  4. package/dist/commonjs/generated/clientDefinitions.d.ts +26 -4
  5. package/dist/commonjs/generated/clientDefinitions.d.ts.map +1 -1
  6. package/dist/commonjs/generated/clientDefinitions.js.map +1 -1
  7. package/dist/commonjs/generated/confidentialLedger.js +1 -1
  8. package/dist/commonjs/generated/confidentialLedger.js.map +1 -1
  9. package/dist/commonjs/generated/isUnexpected.d.ts +6 -1
  10. package/dist/commonjs/generated/isUnexpected.d.ts.map +1 -1
  11. package/dist/commonjs/generated/isUnexpected.js +7 -2
  12. package/dist/commonjs/generated/isUnexpected.js.map +1 -1
  13. package/dist/commonjs/generated/models.d.ts +33 -8
  14. package/dist/commonjs/generated/models.d.ts.map +1 -1
  15. package/dist/commonjs/generated/models.js.map +1 -1
  16. package/dist/commonjs/generated/outputModels.d.ts +61 -9
  17. package/dist/commonjs/generated/outputModels.d.ts.map +1 -1
  18. package/dist/commonjs/generated/outputModels.js.map +1 -1
  19. package/dist/commonjs/generated/paginateHelper.d.ts +4 -0
  20. package/dist/commonjs/generated/paginateHelper.d.ts.map +1 -1
  21. package/dist/commonjs/generated/paginateHelper.js +1 -0
  22. package/dist/commonjs/generated/paginateHelper.js.map +1 -1
  23. package/dist/commonjs/generated/parameters.d.ts +27 -2
  24. package/dist/commonjs/generated/parameters.d.ts.map +1 -1
  25. package/dist/commonjs/generated/parameters.js.map +1 -1
  26. package/dist/commonjs/generated/responses.d.ts +65 -1
  27. package/dist/commonjs/generated/responses.d.ts.map +1 -1
  28. package/dist/commonjs/generated/responses.js.map +1 -1
  29. package/dist/commonjs/getLedgerIdentity.js +1 -0
  30. package/dist/commonjs/getLedgerIdentity.js.map +1 -1
  31. package/dist/commonjs/outputModels.d.ts +13 -0
  32. package/dist/commonjs/outputModels.d.ts.map +1 -1
  33. package/dist/commonjs/outputModels.js.map +1 -1
  34. package/dist/commonjs/parameters.d.ts +1 -0
  35. package/dist/commonjs/parameters.d.ts.map +1 -1
  36. package/dist/commonjs/parameters.js.map +1 -1
  37. package/dist/commonjs/responses.d.ts +11 -1
  38. package/dist/commonjs/responses.d.ts.map +1 -1
  39. package/dist/commonjs/responses.js.map +1 -1
  40. package/dist/esm/clientDefinitions.d.ts +8 -2
  41. package/dist/esm/clientDefinitions.d.ts.map +1 -1
  42. package/dist/esm/clientDefinitions.js.map +1 -1
  43. package/dist/esm/generated/clientDefinitions.d.ts +26 -4
  44. package/dist/esm/generated/clientDefinitions.d.ts.map +1 -1
  45. package/dist/esm/generated/clientDefinitions.js.map +1 -1
  46. package/dist/esm/generated/confidentialLedger.js +1 -1
  47. package/dist/esm/generated/confidentialLedger.js.map +1 -1
  48. package/dist/esm/generated/isUnexpected.d.ts +6 -1
  49. package/dist/esm/generated/isUnexpected.d.ts.map +1 -1
  50. package/dist/esm/generated/isUnexpected.js +7 -2
  51. package/dist/esm/generated/isUnexpected.js.map +1 -1
  52. package/dist/esm/generated/models.d.ts +33 -8
  53. package/dist/esm/generated/models.d.ts.map +1 -1
  54. package/dist/esm/generated/models.js.map +1 -1
  55. package/dist/esm/generated/outputModels.d.ts +61 -9
  56. package/dist/esm/generated/outputModels.d.ts.map +1 -1
  57. package/dist/esm/generated/outputModels.js.map +1 -1
  58. package/dist/esm/generated/paginateHelper.d.ts +4 -0
  59. package/dist/esm/generated/paginateHelper.d.ts.map +1 -1
  60. package/dist/esm/generated/paginateHelper.js +1 -0
  61. package/dist/esm/generated/paginateHelper.js.map +1 -1
  62. package/dist/esm/generated/parameters.d.ts +27 -2
  63. package/dist/esm/generated/parameters.d.ts.map +1 -1
  64. package/dist/esm/generated/parameters.js.map +1 -1
  65. package/dist/esm/generated/responses.d.ts +65 -1
  66. package/dist/esm/generated/responses.d.ts.map +1 -1
  67. package/dist/esm/generated/responses.js.map +1 -1
  68. package/dist/esm/getLedgerIdentity.js +1 -0
  69. package/dist/esm/getLedgerIdentity.js.map +1 -1
  70. package/dist/esm/outputModels.d.ts +13 -0
  71. package/dist/esm/outputModels.d.ts.map +1 -1
  72. package/dist/esm/outputModels.js.map +1 -1
  73. package/dist/esm/parameters.d.ts +1 -0
  74. package/dist/esm/parameters.d.ts.map +1 -1
  75. package/dist/esm/parameters.js.map +1 -1
  76. package/dist/esm/responses.d.ts +11 -1
  77. package/dist/esm/responses.d.ts.map +1 -1
  78. package/dist/esm/responses.js.map +1 -1
  79. package/package.json +3 -6
  80. package/review/confidential-ledger.api.md +38 -0
@@ -1 +1 @@
1
- {"version":3,"file":"getLedgerIdentity.js","sourceRoot":"","sources":["../../src/getLedgerIdentity.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AASlC,8CAoBC;AA3BD,yDAAoD;AAO7C,KAAK,UAAU,iBAAiB,CACrC,QAAgB,EAChB,yBAAiC,qDAAqD;IAEtF,MAAM,MAAM,GAAG,IAAA,uBAAS,EAAC,sBAAsB,CAAC,CAAC;IAEjD,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,aAAa,CAAC,4BAA4B,EAAE,QAAQ,CAAC,CAAC,GAAG,EAAE,CAAC;IAEtF,MAAM,WAAW,GAAG;QAClB,yBAAyB,EAAE,IAAI,CAAC,IAAI,CAAC,sBAAsB,CAAC;QAC5D,QAAQ,EAAE,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC;KAChC,CAAC;IAEF,IAAI,CAAC,gBAAgB,CAAC,WAAW,CAAC,EAAE,CAAC;QACnC,MAAM,IAAI,KAAK,CACb,oHAAoH,CACrH,CAAC;IACJ,CAAC;IAED,OAAO,WAAW,CAAC;AACrB,CAAC;AAED,SAAS,gBAAgB,CAAC,QAAa;IACrC,OAAO,QAAQ,CAAC,yBAAyB,IAAI,QAAQ,CAAC,QAAQ,CAAC;AACjE,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { getClient } from \"@azure-rest/core-client\";\n\nexport interface LedgerIdentity {\n ledgerIdentityCertificate: string;\n ledgerId: string;\n}\n\nexport async function getLedgerIdentity(\n ledgerId: string,\n identityServiceBaseUrl: string = \"https://identity.confidential-ledger.core.azure.com\",\n): Promise<LedgerIdentity> {\n const client = getClient(identityServiceBaseUrl);\n\n const cert = await client.pathUnchecked(\"/ledgerIdentity/{ledgerId}\", ledgerId).get();\n\n const updatedCert = {\n ledgerIdentityCertificate: cert.body[\"ledgerTlsCertificate\"],\n ledgerId: cert.body[\"ledgerId\"],\n };\n\n if (!isLedgerIdentity(updatedCert)) {\n throw new Error(\n \"Body received from Confidential Ledger Identity is invalid. It must contain ledgerId and ledgerIdentityCertificate\",\n );\n }\n\n return updatedCert;\n}\n\nfunction isLedgerIdentity(identity: any): identity is LedgerIdentity {\n return identity.ledgerIdentityCertificate && identity.ledgerId;\n}\n"]}
1
+ {"version":3,"file":"getLedgerIdentity.js","sourceRoot":"","sources":["../../src/getLedgerIdentity.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AASlC,8CAoBC;AA3BD,yDAAoD;AAO7C,KAAK,UAAU,iBAAiB,CACrC,QAAgB,EAChB,yBAAiC,qDAAqD;IAEtF,MAAM,MAAM,GAAG,IAAA,uBAAS,EAAC,sBAAsB,CAAC,CAAC;IACjD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IACtB,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,aAAa,CAAC,4BAA4B,EAAE,QAAQ,CAAC,CAAC,GAAG,EAAE,CAAC;IAEtF,MAAM,WAAW,GAAG;QAClB,yBAAyB,EAAE,IAAI,CAAC,IAAI,CAAC,sBAAsB,CAAC;QAC5D,QAAQ,EAAE,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC;KAChC,CAAC;IAEF,IAAI,CAAC,gBAAgB,CAAC,WAAW,CAAC,EAAE,CAAC;QACnC,MAAM,IAAI,KAAK,CACb,oHAAoH,CACrH,CAAC;IACJ,CAAC;IAED,OAAO,WAAW,CAAC;AACrB,CAAC;AAED,SAAS,gBAAgB,CAAC,QAAa;IACrC,OAAO,QAAQ,CAAC,yBAAyB,IAAI,QAAQ,CAAC,QAAQ,CAAC;AACjE,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { getClient } from \"@azure-rest/core-client\";\n\nexport interface LedgerIdentity {\n ledgerIdentityCertificate: string;\n ledgerId: string;\n}\n\nexport async function getLedgerIdentity(\n ledgerId: string,\n identityServiceBaseUrl: string = \"https://identity.confidential-ledger.core.azure.com\",\n): Promise<LedgerIdentity> {\n const client = getClient(identityServiceBaseUrl);\n console.log(ledgerId);\n const cert = await client.pathUnchecked(\"/ledgerIdentity/{ledgerId}\", ledgerId).get();\n\n const updatedCert = {\n ledgerIdentityCertificate: cert.body[\"ledgerTlsCertificate\"],\n ledgerId: cert.body[\"ledgerId\"],\n };\n\n if (!isLedgerIdentity(updatedCert)) {\n throw new Error(\n \"Body received from Confidential Ledger Identity is invalid. It must contain ledgerId and ledgerIdentityCertificate\",\n );\n }\n\n return updatedCert;\n}\n\nfunction isLedgerIdentity(identity: any): identity is LedgerIdentity {\n return identity.ledgerIdentityCertificate && identity.ledgerId;\n}\n"]}
@@ -193,4 +193,17 @@ export interface EndpointPropertiesOutput {
193
193
  export interface InterpreterReusePolicyOutput {
194
194
  key: string;
195
195
  }
196
+ /** Paginated user defined functions returned in response to a query. */
197
+ export interface PagedUserDefinedFunctionsOutput {
198
+ functions: Array<UserDefinedFunctionOutput>;
199
+ /** Path from which to retrieve the next page of results. */
200
+ nextLink?: string;
201
+ }
202
+ /** A user defined function in the ledger. */
203
+ export interface UserDefinedFunctionOutput {
204
+ /** Code of the user defined function in JavaScript. */
205
+ code: string;
206
+ /** ID of the user defined function. */
207
+ readonly id?: string;
208
+ }
196
209
  //# sourceMappingURL=outputModels.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"outputModels.d.ts","sourceRoot":"","sources":["../../src/outputModels.ts"],"names":[],"mappings":"AAGA,iDAAiD;AACjD,MAAM,WAAW,kBAAkB;IACjC,gDAAgD;IAChD,MAAM,EAAE,MAAM,CAAC;IACf,oCAAoC;IACpC,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,kDAAkD;AAClD,MAAM,WAAW,6BAA6B;IAC5C,kDAAkD;IAClD,QAAQ,CAAC,KAAK,CAAC,EAAE,iCAAiC,CAAC;CACpD;AAED,kDAAkD;AAClD,MAAM,WAAW,iCAAiC;IAChD,sBAAsB;IACtB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,yBAAyB;IACzB,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,yCAAyC;AACzC,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,KAAK,CAAC,sBAAsB,CAAC,CAAC;IACvC,4DAA4D;IAC5D,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,4CAA4C;AAC5C,MAAM,WAAW,sBAAsB;IACrC,0DAA0D;IAC1D,WAAW,EAAE,MAAM,CAAC;IACpB,yCAAyC;IACzC,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,sEAAsE;AACtE,MAAM,WAAW,gCAAgC;IAC/C,oEAAoE;IACpE,aAAa,EAAE,MAAM,CAAC;IACtB,wDAAwD;IACxD,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC;CACnD;AAED,kCAAkC;AAClC,MAAM,WAAW,kBAAkB;IACjC,gCAAgC;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,0DAA0D;IAC1D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sCAAsC;IACtC,YAAY,EAAE,MAAM,CA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,YAAY,CAAC;IAC/C,eAAe;IACf,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,oBAAoB,CAAC,EAAE,MAAM,GAAG,YAAY,GAAG,WAAW,CAAC;CAC5D;AAED,MAAM,WAAW,4BAA4B;IAC3C,GAAG,EAAE,MAAM,CAAC;CACb;AAED,wEAAwE;AACxE,MAAM,WAAW,+BAA+B;IAC9C,SAAS,EAAE,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC5C,4DAA4D;IAC5D,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,6CAA6C;AAC7C,MAAM,WAAW,yBAAyB;IACxC,uDAAuD;IACvD,IAAI,EAAE,MAAM,CAAC;IACb,uCAAuC;IACvC,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC;CACtB"}
@@ -1 +1 @@
1
- {"version":3,"file":"outputModels.js","sourceRoot":"","sources":["../../src/outputModels.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/** The governance script for the application. */\nexport interface ConstitutionOutput {\n /** SHA256 digest of the constitution script. */\n digest: string;\n /** Contents of the constitution. */\n script: string;\n}\n\n/** An error response from Confidential Ledger. */\nexport interface ConfidentialLedgerErrorOutput {\n /** An error response from Confidential Ledger. */\n readonly error?: ConfidentialLedgerErrorBodyOutput;\n}\n\n/** An error response from Confidential Ledger. */\nexport interface ConfidentialLedgerErrorBodyOutput {\n /** The error code. */\n readonly code?: string;\n /** The error message. */\n readonly message?: string;\n}\n\n/** List of members in the consortium. */\nexport interface ConsortiumOutput {\n members: Array<ConsortiumMemberOutput>;\n /** Path from which to retrieve the next page of results. */\n nextLink?: string;\n}\n\n/** Describes a member of the consortium. */\nexport interface ConsortiumMemberOutput {\n /** PEM-encoded certificate associated with the member. */\n certificate: string;\n /** Identifier assigned to the member. */\n id: string;\n}\n\n/** Information about the enclaves running the Confidential Ledger. */\nexport interface ConfidentialLedgerEnclavesOutput {\n /** Id of the Confidential Ledger node responding to the request. */\n currentNodeId: string;\n /** Dictionary of enclave quotes, indexed by node id. */\n enclaveQuotes: Record<string, EnclaveQuoteOutput>;\n}\n\n/** Contains the enclave quote. */\nexport interface EnclaveQuoteOutput {\n /** ID assigned to this node. */\n nodeId: string;\n /** MRENCLAVE value of the code running in the enclave. */\n mrenclave?: string;\n /** Version of the quote presented. */\n quoteVersion: string;\n /** Raw SGX quote, parsable by tools like Open Enclave's oeverify. */\n raw: string;\n}\n\n/** Paginated collections returned in response to a query. */\nexport interface PagedCollectionsOutput {\n collections: Array<CollectionOutput>;\n /** Path from which to retrieve the next page of results. */\n nextLink?: string;\n}\n\n/** Identifier for collections. */\nexport interface CollectionOutput {\n collectionId: string;\n}\n\n/** Paginated ledger entries returned in response to a query. */\nexport interface PagedLedgerEntriesOutput {\n /** State of a ledger query. */\n state: \"Loading\" | \"Ready\";\n /** Path from which to retrieve the next page of results. */\n nextLink?: string;\n /** Array of ledger entries. */\n entries: Array<LedgerEntryOutput>;\n}\n\n/** An entry in the ledger. */\nexport interface LedgerEntryOutput {\n /** Contents of the ledger entry. */\n contents: string;\n readonly collectionId?: string;\n /** A unique identifier for the state of the ledger. If returned as part of a LedgerEntry, it indicates the state from which the entry was read. */\n readonly transactionId?: string;\n}\n\n/** Returned as a result of a write to the Confidential Ledger, the transaction id in the response indicates when the write will become durable. */\nexport interface LedgerWriteResultOutput {\n collectionId: string;\n}\n\n/** The result of querying for a ledger entry from an older transaction id. The ledger entry is available in the response only if the returned state is Ready. */\nexport interface LedgerQueryResultOutput {\n /** State of a ledger query. */\n state: \"Loading\" | \"Ready\";\n /** The ledger entry found as a result of the query. This is only available if the query is in Ready state. */\n entry?: LedgerEntryOutput;\n}\n\n/** A receipt certifying the transaction at the specified id. */\nexport interface TransactionReceiptOutput {\n /** List of application claims. */\n applicationClaims?: Array<ApplicationClaimOutput>;\n receipt?: ReceiptContentsOutput;\n /** State of a ledger query. */\n state: \"Loading\" | \"Ready\";\n /** A unique identifier for the state of the ledger. If returned as part of a LedgerEntry, it indicates the state from which the entry was read. */\n transactionId: string;\n}\n\n/** A claim of a ledger application. */\nexport interface ApplicationClaimOutput {\n /** An application claim in digested form. */\n digest?: ClaimDigestOutput;\n /** Represents the kind of an application claim. */\n kind: \"LedgerEntry\" | \"ClaimDigest\";\n /** An application claim derived from ledger entry data. */\n ledgerEntry?: LedgerEntryClaimOutput;\n}\n\n/** An application claim in digested form. */\nexport interface ClaimDigestOutput {\n /** The digest of the application claim, in hexadecimal form. */\n value?: string;\n /** Represents the protocol to be used to compute the digest of a claim from the given claim data. */\n protocol: \"LedgerEntryV1\";\n}\n\n/** An application claim derived from ledger entry data. */\nexport interface LedgerEntryClaimOutput {\n /** Identifier of a collection. */\n collectionId?: string;\n /** Contents of a ledger entry. */\n contents?: string;\n /** Base64-encoded secret key. */\n secretKey?: string;\n /** Represents the protocol to be used to compute the digest of a claim from the given claim data. */\n protocol: \"LedgerEntryV1\";\n}\n\nexport interface ReceiptContentsOutput {\n cert?: string;\n leaf?: string;\n leafComponents?: ReceiptLeafComponentsOutput;\n nodeId: string;\n proof: Array<ReceiptElementOutput>;\n root?: string;\n serviceEndorsements?: Array<string>;\n signature: string;\n}\n\nexport interface ReceiptLeafComponentsOutput {\n claimsDigest?: string;\n commitEvidence?: string;\n writeSetDigest?: string;\n}\n\nexport interface ReceiptElementOutput {\n left?: string;\n right?: string;\n}\n\n/** Response returned to a query for the transaction status */\nexport interface TransactionStatusOutput {\n /** Represents the state of the transaction. */\n state: \"Committed\" | \"Pending\";\n /** A unique identifier for the state of the ledger. If returned as part of a LedgerEntry, it indicates the state from which the entry was read. */\n transactionId: string;\n}\n\n/** Paginated users returned in response to a query. */\nexport interface PagedUsersOutput {\n ledgerUsers?: Array<LedgerUserOutput>;\n /** Path from which to retrieve the next page of results. */\n nextLink?: string;\n}\n\n/** Details about a Confidential Ledger user. */\nexport interface LedgerUserOutput {\n /** Represents an assignable role. */\n assignedRole: \"Administrator\" | \"Contributor\" | \"Reader\";\n /** Identifier for the user. This must either be an AAD object id or a certificate fingerprint. */\n readonly userId?: string;\n}\n\n/** bundle for the user defined endpoints */\nexport interface BundleOutput {\n metadata: MetadataOutput;\n /** Any object */\n modules: Record<string, unknown>;\n}\n\nexport interface MetadataOutput {\n /** A map of path to method endpoints for the path */\n endpoints: Record<string, MethodToEndpointPropertiesOutput>;\n}\n\nexport interface MethodToEndpointPropertiesOutput {\n get?: EndpointPropertiesOutput;\n put?: EndpointPropertiesOutput;\n patch?: EndpointPropertiesOutput;\n delete?: EndpointPropertiesOutput;\n}\n\nexport interface EndpointPropertiesOutput {\n authn_policies: Array<any>;\n forwarding_required: \"sometimes\" | \"always\" | \"never\";\n interpreter_reuse?: InterpreterReusePolicyOutput;\n js_function?: string;\n js_module?: string;\n mode?: \"readwrite\" | \"readonly\" | \"historical\";\n /** Anything */\n openapi?: any;\n openapi_hidden?: boolean;\n redirection_strategy?: \"none\" | \"to_primary\" | \"to_backup\";\n}\n\nexport interface InterpreterReusePolicyOutput {\n key: string;\n}\n"]}
1
+ {"version":3,"file":"outputModels.js","sourceRoot":"","sources":["../../src/outputModels.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/** The governance script for the application. */\nexport interface ConstitutionOutput {\n /** SHA256 digest of the constitution script. */\n digest: string;\n /** Contents of the constitution. */\n script: string;\n}\n\n/** An error response from Confidential Ledger. */\nexport interface ConfidentialLedgerErrorOutput {\n /** An error response from Confidential Ledger. */\n readonly error?: ConfidentialLedgerErrorBodyOutput;\n}\n\n/** An error response from Confidential Ledger. */\nexport interface ConfidentialLedgerErrorBodyOutput {\n /** The error code. */\n readonly code?: string;\n /** The error message. */\n readonly message?: string;\n}\n\n/** List of members in the consortium. */\nexport interface ConsortiumOutput {\n members: Array<ConsortiumMemberOutput>;\n /** Path from which to retrieve the next page of results. */\n nextLink?: string;\n}\n\n/** Describes a member of the consortium. */\nexport interface ConsortiumMemberOutput {\n /** PEM-encoded certificate associated with the member. */\n certificate: string;\n /** Identifier assigned to the member. */\n id: string;\n}\n\n/** Information about the enclaves running the Confidential Ledger. */\nexport interface ConfidentialLedgerEnclavesOutput {\n /** Id of the Confidential Ledger node responding to the request. */\n currentNodeId: string;\n /** Dictionary of enclave quotes, indexed by node id. */\n enclaveQuotes: Record<string, EnclaveQuoteOutput>;\n}\n\n/** Contains the enclave quote. */\nexport interface EnclaveQuoteOutput {\n /** ID assigned to this node. */\n nodeId: string;\n /** MRENCLAVE value of the code running in the enclave. */\n mrenclave?: string;\n /** Version of the quote presented. */\n quoteVersion: string;\n /** Raw SGX quote, parsable by tools like Open Enclave's oeverify. */\n raw: string;\n}\n\n/** Paginated collections returned in response to a query. */\nexport interface PagedCollectionsOutput {\n collections: Array<CollectionOutput>;\n /** Path from which to retrieve the next page of results. */\n nextLink?: string;\n}\n\n/** Identifier for collections. */\nexport interface CollectionOutput {\n collectionId: string;\n}\n\n/** Paginated ledger entries returned in response to a query. */\nexport interface PagedLedgerEntriesOutput {\n /** State of a ledger query. */\n state: \"Loading\" | \"Ready\";\n /** Path from which to retrieve the next page of results. */\n nextLink?: string;\n /** Array of ledger entries. */\n entries: Array<LedgerEntryOutput>;\n}\n\n/** An entry in the ledger. */\nexport interface LedgerEntryOutput {\n /** Contents of the ledger entry. */\n contents: string;\n readonly collectionId?: string;\n /** A unique identifier for the state of the ledger. If returned as part of a LedgerEntry, it indicates the state from which the entry was read. */\n readonly transactionId?: string;\n}\n\n/** Returned as a result of a write to the Confidential Ledger, the transaction id in the response indicates when the write will become durable. */\nexport interface LedgerWriteResultOutput {\n collectionId: string;\n}\n\n/** The result of querying for a ledger entry from an older transaction id. The ledger entry is available in the response only if the returned state is Ready. */\nexport interface LedgerQueryResultOutput {\n /** State of a ledger query. */\n state: \"Loading\" | \"Ready\";\n /** The ledger entry found as a result of the query. This is only available if the query is in Ready state. */\n entry?: LedgerEntryOutput;\n}\n\n/** A receipt certifying the transaction at the specified id. */\nexport interface TransactionReceiptOutput {\n /** List of application claims. */\n applicationClaims?: Array<ApplicationClaimOutput>;\n receipt?: ReceiptContentsOutput;\n /** State of a ledger query. */\n state: \"Loading\" | \"Ready\";\n /** A unique identifier for the state of the ledger. If returned as part of a LedgerEntry, it indicates the state from which the entry was read. */\n transactionId: string;\n}\n\n/** A claim of a ledger application. */\nexport interface ApplicationClaimOutput {\n /** An application claim in digested form. */\n digest?: ClaimDigestOutput;\n /** Represents the kind of an application claim. */\n kind: \"LedgerEntry\" | \"ClaimDigest\";\n /** An application claim derived from ledger entry data. */\n ledgerEntry?: LedgerEntryClaimOutput;\n}\n\n/** An application claim in digested form. */\nexport interface ClaimDigestOutput {\n /** The digest of the application claim, in hexadecimal form. */\n value?: string;\n /** Represents the protocol to be used to compute the digest of a claim from the given claim data. */\n protocol: \"LedgerEntryV1\";\n}\n\n/** An application claim derived from ledger entry data. */\nexport interface LedgerEntryClaimOutput {\n /** Identifier of a collection. */\n collectionId?: string;\n /** Contents of a ledger entry. */\n contents?: string;\n /** Base64-encoded secret key. */\n secretKey?: string;\n /** Represents the protocol to be used to compute the digest of a claim from the given claim data. */\n protocol: \"LedgerEntryV1\";\n}\n\nexport interface ReceiptContentsOutput {\n cert?: string;\n leaf?: string;\n leafComponents?: ReceiptLeafComponentsOutput;\n nodeId: string;\n proof: Array<ReceiptElementOutput>;\n root?: string;\n serviceEndorsements?: Array<string>;\n signature: string;\n}\n\nexport interface ReceiptLeafComponentsOutput {\n claimsDigest?: string;\n commitEvidence?: string;\n writeSetDigest?: string;\n}\n\nexport interface ReceiptElementOutput {\n left?: string;\n right?: string;\n}\n\n/** Response returned to a query for the transaction status */\nexport interface TransactionStatusOutput {\n /** Represents the state of the transaction. */\n state: \"Committed\" | \"Pending\";\n /** A unique identifier for the state of the ledger. If returned as part of a LedgerEntry, it indicates the state from which the entry was read. */\n transactionId: string;\n}\n\n/** Paginated users returned in response to a query. */\nexport interface PagedUsersOutput {\n ledgerUsers?: Array<LedgerUserOutput>;\n /** Path from which to retrieve the next page of results. */\n nextLink?: string;\n}\n\n/** Details about a Confidential Ledger user. */\nexport interface LedgerUserOutput {\n /** Represents an assignable role. */\n assignedRole: \"Administrator\" | \"Contributor\" | \"Reader\";\n /** Identifier for the user. This must either be an AAD object id or a certificate fingerprint. */\n readonly userId?: string;\n}\n\n/** bundle for the user defined endpoints */\nexport interface BundleOutput {\n metadata: MetadataOutput;\n /** Any object */\n modules: Record<string, unknown>;\n}\n\nexport interface MetadataOutput {\n /** A map of path to method endpoints for the path */\n endpoints: Record<string, MethodToEndpointPropertiesOutput>;\n}\n\nexport interface MethodToEndpointPropertiesOutput {\n get?: EndpointPropertiesOutput;\n put?: EndpointPropertiesOutput;\n patch?: EndpointPropertiesOutput;\n delete?: EndpointPropertiesOutput;\n}\n\nexport interface EndpointPropertiesOutput {\n authn_policies: Array<any>;\n forwarding_required: \"sometimes\" | \"always\" | \"never\";\n interpreter_reuse?: InterpreterReusePolicyOutput;\n js_function?: string;\n js_module?: string;\n mode?: \"readwrite\" | \"readonly\" | \"historical\";\n /** Anything */\n openapi?: any;\n openapi_hidden?: boolean;\n redirection_strategy?: \"none\" | \"to_primary\" | \"to_backup\";\n}\n\nexport interface InterpreterReusePolicyOutput {\n key: string;\n}\n\n/** Paginated user defined functions returned in response to a query. */\nexport interface PagedUserDefinedFunctionsOutput {\n functions: Array<UserDefinedFunctionOutput>;\n /** Path from which to retrieve the next page of results. */\n nextLink?: string;\n}\n\n/** A user defined function in the ledger. */\nexport interface UserDefinedFunctionOutput {\n /** Code of the user defined function in JavaScript. */\n code: string;\n /** ID of the user defined function. */\n readonly id?: string;\n}\n"]}
@@ -4,6 +4,7 @@ export type GetConstitutionParameters = RequestParameters;
4
4
  export type ListConsortiumMembersParameters = RequestParameters;
5
5
  export type GetEnclaveQuotesParameters = RequestParameters;
6
6
  export type ListCollectionsParameters = RequestParameters;
7
+ export type ListUserDefinedFunctionsParameters = RequestParameters;
7
8
  export interface ListLedgerEntriesQueryParamProperties {
8
9
  /** The collection id. */
9
10
  collectionId?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"parameters.d.ts","sourceRoot":"","sources":["../../src/parameters.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEnE,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;CAC1B;AAED,MAAM,WAAW,2BAA2B;IAC1C,eAAe,CAAC,EAAE,qCAAqC,CAAC;CACzD;AAED,MAAM,MAAM,2BAA2B,GAAG,2BAA2B,GAAG,iBAAiB,CAAC;AAE1F,MAAM,WAAW,0BAA0B;IACzC,oBAAoB;IACpB,IAAI,EAAE,WAAW,CAAC;CACnB;AAED,MAAM,WAAW,qCAAqC;IACpD,yBAAyB;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,2BAA2B;IAC1C,eAAe,CAAC,EAAE,qCAAqC,CAAC;CACzD;AAED,MAAM,WAAW,gCAAgC;IAC/C,2BAA2B;IAC3B,WAAW,CAAC,EAAE,kBAAkB,CAAC;CAClC;AAED,MAAM,MAAM,2BAA2B,GAAG,2BAA2B,GACnE,gCAA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M,MAAM,mCAAmC,GAAG,wCAAwC,GACxF,kCAAkC,GAClC,iBAAiB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../src/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 { Bundle, LedgerEntry, LedgerUser } 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}\n\nexport interface ListLedgerEntriesQueryParam {\n queryParameters?: ListLedgerEntriesQueryParamProperties;\n}\n\nexport type ListLedgerEntriesParameters = ListLedgerEntriesQueryParam & RequestParameters;\n\nexport interface CreateLedgerEntryBodyParam {\n /** Ledger entry. */\n body: LedgerEntry;\n}\n\nexport interface CreateLedgerEntryQueryParamProperties {\n /** The collection id. */\n collectionId?: 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 & 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 & RequestParameters;\nexport type ListUsersParameters = 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;\n\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 = CreateUserDefinedEndpointMediaTypesParam &\n CreateUserDefinedEndpointBodyParam &\n RequestParameters;\n"]}
1
+ {"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../src/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 { Bundle, LedgerEntry, LedgerUser } from \"./models.js\";\n\nexport type GetConstitutionParameters = RequestParameters;\nexport type ListConsortiumMembersParameters = RequestParameters;\nexport type GetEnclaveQuotesParameters = RequestParameters;\nexport type ListCollectionsParameters = RequestParameters;\nexport type ListUserDefinedFunctionsParameters = 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}\n\nexport interface ListLedgerEntriesQueryParam {\n queryParameters?: ListLedgerEntriesQueryParamProperties;\n}\n\nexport type ListLedgerEntriesParameters = ListLedgerEntriesQueryParam & RequestParameters;\n\nexport interface CreateLedgerEntryBodyParam {\n /** Ledger entry. */\n body: LedgerEntry;\n}\n\nexport interface CreateLedgerEntryQueryParamProperties {\n /** The collection id. */\n collectionId?: 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 & 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 & RequestParameters;\nexport type ListUsersParameters = 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;\n\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 = CreateUserDefinedEndpointMediaTypesParam &\n CreateUserDefinedEndpointBodyParam &\n RequestParameters;\n"]}
@@ -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 } from "./outputModels.js";
3
+ import type { ConstitutionOutput, BundleOutput, ConfidentialLedgerErrorOutput, ConsortiumOutput, ConfidentialLedgerEnclavesOutput, PagedCollectionsOutput, PagedLedgerEntriesOutput, LedgerWriteResultOutput, LedgerQueryResultOutput, TransactionReceiptOutput, TransactionStatusOutput, LedgerEntryOutput, PagedUsersOutput, LedgerUserOutput, PagedUserDefinedFunctionsOutput } 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";
@@ -164,4 +164,14 @@ export interface GetUserDefinedEndpointDefaultResponse extends HttpResponse {
164
164
  status: string;
165
165
  body: ConfidentialLedgerErrorOutput;
166
166
  }
167
+ /** User defined functions stored in the Confidential Ledger */
168
+ export interface ListUserDefinedFunctions200Response extends HttpResponse {
169
+ status: "200";
170
+ body: PagedUserDefinedFunctionsOutput;
171
+ }
172
+ /** User defined functions stored in the Confidential Ledger */
173
+ export interface ListUserDefinedFunctionsDefaultResponse extends HttpResponse {
174
+ status: string;
175
+ body: ConfidentialLedgerErrorOutput;
176
+ }
167
177
  //# sourceMappingURL=responses.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../src/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,YAAY,EACZ,6BAA6B,EAC7B,gBAAgB,EAChB,gCAAgC,EAChC,sBAAsB,EACtB,wBAAwB,EACxB,uBAAuB,EACvB,uBAAuB,EACvB,wBAAwB,EACxB,uBAAuB,EACvB,iBAAiB,EACjB,gBAAgB,EAChB,gBAAgB,EACjB,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,4DAA4D;AAC5D,MAAM,WAAW,oCAAqC,SAAQ,YAAY;IACxE,MAAM,EAAE,KAAK,CAAC;CACf;AAED,4DAA4D;AAC5D,MAAM,WAAW,wCAAyC,SAAQ,YAAY;IAC5E,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,6BAA6B,CAAC;CACrC;AAED,6DAA6D;AAC7D,MAAM,WAAW,gCAAiC,SAAQ,YAAY;IACpE,MAAM,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Y;IACjE,MAAM,EAAE,KAAK,CAAC;IACd,IAAI,EAAE,gBAAgB,CAAC;CACxB;AAED,uDAAuD;AACvD,MAAM,WAAW,iCAAkC,SAAQ,YAAY;IACrE,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,6BAA6B,CAAC;CACrC;AAED,4DAA4D;AAC5D,MAAM,WAAW,iCAAkC,SAAQ,YAAY;IACrE,MAAM,EAAE,KAAK,CAAC;IACd,IAAI,EAAE,YAAY,CAAC;CACpB;AAED,4DAA4D;AAC5D,MAAM,WAAW,qCAAsC,SAAQ,YAAY;IACzE,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,6BAA6B,CAAC;CACrC;AAED,+DAA+D;AAC/D,MAAM,WAAW,mCAAoC,SAAQ,YAAY;IACvE,MAAM,EAAE,KAAK,CAAC;IACd,IAAI,EAAE,+BAA+B,CAAC;CACvC;AAED,+DAA+D;AAC/D,MAAM,WAAW,uCAAwC,SAAQ,YAAY;IAC3E,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} 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"]}
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,5 +1,5 @@
1
- import type { GetConstitutionParameters, GetUserDefinedEndpointParameters, CreateUserDefinedEndpointParameters, ListConsortiumMembersParameters, GetEnclaveQuotesParameters, ListCollectionsParameters, ListLedgerEntriesParameters, CreateLedgerEntryParameters, GetLedgerEntryParameters, GetReceiptParameters, GetTransactionStatusParameters, GetCurrentLedgerEntryParameters, ListUsersParameters, DeleteUserParameters, GetUserParameters, CreateOrUpdateUserParameters } 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 } from "./responses.js";
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";
3
3
  import type { Client, StreamableMethod } from "@azure-rest/core-client";
4
4
  export interface GetUserDefinedEndpoint {
5
5
  /** Returns the user defined endpoint in the ACL instance */
@@ -57,6 +57,10 @@ export interface DeleteUser {
57
57
  /** A JSON merge patch is applied for existing users */
58
58
  patch(options: CreateOrUpdateUserParameters): StreamableMethod<CreateOrUpdateUser200Response | CreateOrUpdateUserDefaultResponse>;
59
59
  }
60
+ export interface ListUserDefinedFunctions {
61
+ /** User defined functions stored in the Confidential Ledger */
62
+ get(options?: ListUserDefinedFunctionsParameters): StreamableMethod<ListUserDefinedFunctions200Response | ListUserDefinedFunctionsDefaultResponse>;
63
+ }
60
64
  export interface Routes {
61
65
  /** Resource for '/app/governance/constitution' has methods for the following verbs: get */
62
66
  (path: "/app/governance/constitution"): GetConstitution;
@@ -82,6 +86,8 @@ export interface Routes {
82
86
  (path: "/app/users/{userId}", userId: string): DeleteUser;
83
87
  /** Resource for '/app/userDefinedEndpoints' has methods for the following verbs: delete, get, patch */
84
88
  (path: "/app/userDefinedEndpoints"): GetUserDefinedEndpoint;
89
+ /** Resource for '/app/userDefinedFunctions' has methods for the following verbs: get */
90
+ (path: "/app/userDefinedFunctions"): ListUserDefinedFunctions;
85
91
  }
86
92
  export type ConfidentialLedgerClient = Client & {
87
93
  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,EAC7B,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EACV,0BAA0B,EAC1B,8BAA8B,EAC9B,iCAAiC,EACjC,qCAAqC,EACrC,oCAAoC,EACpC,wCAAwC,EACxC,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,qBAAqB,EACrB,yBAAyB,EACzB,kBAAkB,EAClB,sBAAsB,EACtB,6BAA6B,EAC7B,iCAAiC,EAClC,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;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AC,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 +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} 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} 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 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}\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 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,5 +1,5 @@
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, 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, GetUserDefinedRole200Response, GetUserDefinedRoleDefaultResponse, CreateUserDefinedRole200Response, CreateUserDefinedRoleDefaultResponse, UpdateUserDefinedRole200Response, UpdateUserDefinedRoleDefaultResponse, DeleteUserDefinedRole200Response, DeleteUserDefinedRoleDefaultResponse } 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
4
  export interface GetConstitution {
5
5
  /** The constitution is a script that assesses and applies proposals from consortium members. */
@@ -79,6 +79,22 @@ export interface GetUserDefinedEndpointsModule {
79
79
  /** It gets the module for the user defined endpoint. */
80
80
  get(options: GetUserDefinedEndpointsModuleParameters): StreamableMethod<GetUserDefinedEndpointsModule200Response | GetUserDefinedEndpointsModuleDefaultResponse>;
81
81
  }
82
+ export interface ListUserDefinedFunctions {
83
+ /** User defined functions stored in the Confidential Ledger */
84
+ get(options?: ListUserDefinedFunctionsParameters): StreamableMethod<ListUserDefinedFunctions200Response | ListUserDefinedFunctionsDefaultResponse>;
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
+ }
82
98
  export interface GetUserDefinedRole {
83
99
  /** user defined roles allow users to define and manage app specific AuthZ policy. */
84
100
  get(options: GetUserDefinedRoleParameters): StreamableMethod<GetUserDefinedRole200Response | GetUserDefinedRoleDefaultResponse>;
@@ -118,10 +134,16 @@ export interface Routes {
118
134
  (path: "/app/ledgerUsers/{userId}", userId: string): DeleteLedgerUser;
119
135
  /** Resource for '/app/userDefinedEndpoints' has methods for the following verbs: get, put */
120
136
  (path: "/app/userDefinedEndpoints"): GetUserDefinedEndpoint;
121
- /** Resource for '/app/userDefinedEndpoints/runTimeOptions' has methods for the following verbs: get, patch */
122
- (path: "/app/userDefinedEndpoints/runTimeOptions"): GetRuntimeOptions;
137
+ /** Resource for '/app/userDefinedEndpoints/runtimeOptions' has methods for the following verbs: get, patch */
138
+ (path: "/app/userDefinedEndpoints/runtimeOptions"): GetRuntimeOptions;
123
139
  /** Resource for '/app/userDefinedEndpoints/modules' has methods for the following verbs: get */
124
140
  (path: "/app/userDefinedEndpoints/modules"): GetUserDefinedEndpointsModule;
141
+ /** Resource for '/app/userDefinedFunctions' has methods for the following verbs: get */
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;
125
147
  /** Resource for '/app/roles' has methods for the following verbs: get, put, patch, delete */
126
148
  (path: "/app/roles"): GetUserDefinedRole;
127
149
  }
@@ -1 +1 @@
1
- {"version":3,"file":"clientDefinitions.d.ts","sourceRoot":"","sources":["../../../src/generated/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,+B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AAM,GAAG;IAC9C,IAAI,EAAE,MAAM,CAAC;CACd,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"clientDefinitions.js","sourceRoot":"","sources":["../../../src/generated/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 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 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<\n GetConstitution200Response | GetConstitutionDefaultResponse\n >;\n}\n\nexport interface ListConsortiumMembers {\n /** Consortium members can manage the Confidential Ledger. */\n get(\n options?: ListConsortiumMembersParameters,\n ): StreamableMethod<\n ListConsortiumMembers200Response | ListConsortiumMembersDefaultResponse\n >;\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<\n GetEnclaveQuotes200Response | GetEnclaveQuotesDefaultResponse\n >;\n}\n\nexport interface ListCollections {\n /** Collection ids are user-created collections of ledger entries */\n get(\n options?: ListCollectionsParameters,\n ): StreamableMethod<\n ListCollections200Response | ListCollectionsDefaultResponse\n >;\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<\n ListLedgerEntries200Response | ListLedgerEntriesDefaultResponse\n >;\n /** A collection id may optionally be specified. */\n post(\n options: CreateLedgerEntryParameters,\n ): StreamableMethod<\n CreateLedgerEntry200Response | CreateLedgerEntryDefaultResponse\n >;\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<\n GetLedgerEntry200Response | GetLedgerEntryDefaultResponse\n >;\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<\n GetTransactionStatus200Response | GetTransactionStatusDefaultResponse\n >;\n}\n\nexport interface GetCurrentLedgerEntry {\n /** A collection id may optionally be specified. */\n get(\n options?: GetCurrentLedgerEntryParameters,\n ): StreamableMethod<\n GetCurrentLedgerEntry200Response | GetCurrentLedgerEntryDefaultResponse\n >;\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<\n ListLedgerUsers200Response | ListLedgerUsersDefaultResponse\n >;\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(\n options?: GetUserParameters,\n ): StreamableMethod<GetUser200Response | GetUserDefaultResponse>;\n /** A JSON merge patch is applied for existing users */\n patch(\n options: CreateOrUpdateUserParameters,\n ): StreamableMethod<\n CreateOrUpdateUser200Response | CreateOrUpdateUserDefaultResponse\n >;\n}\n\nexport interface DeleteLedgerUser {\n /** Deletes a user with multiple roles from the Confidential Ledger. */\n delete(\n options?: DeleteLedgerUserParameters,\n ): StreamableMethod<\n DeleteLedgerUser204Response | DeleteLedgerUserDefaultResponse\n >;\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\n | CreateOrUpdateLedgerUserDefaultResponse\n >;\n}\n\nexport interface GetUserDefinedEndpoint {\n /** Returns the user defined endpoint in the ACL instance */\n get(\n options?: GetUserDefinedEndpointParameters,\n ): StreamableMethod<\n GetUserDefinedEndpoint200Response | GetUserDefinedEndpointDefaultResponse\n >;\n /** Creates the user defined endpoint in the ACL instance */\n put(\n options: CreateUserDefinedEndpointParameters,\n ): StreamableMethod<\n | CreateUserDefinedEndpoint201Response\n | CreateUserDefinedEndpointDefaultResponse\n >;\n}\n\nexport interface GetRuntimeOptions {\n /** It returns the runtime options */\n get(\n options?: GetRuntimeOptionsParameters,\n ): StreamableMethod<\n GetRuntimeOptions200Response | GetRuntimeOptionsDefaultResponse\n >;\n /** Updates the runtime options. */\n patch(\n options: UpdateRuntimeOptionsParameters,\n ): StreamableMethod<\n UpdateRuntimeOptions200Response | UpdateRuntimeOptionsDefaultResponse\n >;\n}\n\nexport interface GetUserDefinedEndpointsModule {\n /** It gets the module for the user defined endpoint. */\n get(\n options: GetUserDefinedEndpointsModuleParameters,\n ): StreamableMethod<\n | GetUserDefinedEndpointsModule200Response\n | GetUserDefinedEndpointsModuleDefaultResponse\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<\n GetUserDefinedRole200Response | GetUserDefinedRoleDefaultResponse\n >;\n /** User defined roles allow users to define and manage app specific AuthZ policy. */\n put(\n options: CreateUserDefinedRoleParameters,\n ): StreamableMethod<\n CreateUserDefinedRole200Response | CreateUserDefinedRoleDefaultResponse\n >;\n /** User defined roles allow users to define and manage app specific AuthZ policy. */\n patch(\n options: UpdateUserDefinedRoleParameters,\n ): StreamableMethod<\n UpdateUserDefinedRole200Response | UpdateUserDefinedRoleDefaultResponse\n >;\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<\n DeleteUserDefinedRole200Response | DeleteUserDefinedRoleDefaultResponse\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 (\n path: \"/app/transactions/{transactionId}\",\n transactionId: string,\n ): GetLedgerEntry;\n /** Resource for '/app/transactions/\\{transactionId\\}/receipt' has methods for the following verbs: get */\n (\n path: \"/app/transactions/{transactionId}/receipt\",\n transactionId: string,\n ): GetReceipt;\n /** Resource for '/app/transactions/\\{transactionId\\}/status' has methods for the following verbs: get */\n (\n path: \"/app/transactions/{transactionId}/status\",\n transactionId: string,\n ): 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/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"]}
1
+ {"version":3,"file":"clientDefinitions.js","sourceRoot":"","sources":["../../../src/generated/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<\n GetConstitution200Response | GetConstitutionDefaultResponse\n >;\n}\n\nexport interface ListConsortiumMembers {\n /** Consortium members can manage the Confidential Ledger. */\n get(\n options?: ListConsortiumMembersParameters,\n ): StreamableMethod<\n ListConsortiumMembers200Response | ListConsortiumMembersDefaultResponse\n >;\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<\n GetEnclaveQuotes200Response | GetEnclaveQuotesDefaultResponse\n >;\n}\n\nexport interface ListCollections {\n /** Collection ids are user-created collections of ledger entries */\n get(\n options?: ListCollectionsParameters,\n ): StreamableMethod<\n ListCollections200Response | ListCollectionsDefaultResponse\n >;\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<\n ListLedgerEntries200Response | ListLedgerEntriesDefaultResponse\n >;\n /** A collection id may optionally be specified. */\n post(\n options: CreateLedgerEntryParameters,\n ): StreamableMethod<\n CreateLedgerEntry200Response | CreateLedgerEntryDefaultResponse\n >;\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<\n GetLedgerEntry200Response | GetLedgerEntryDefaultResponse\n >;\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<\n GetTransactionStatus200Response | GetTransactionStatusDefaultResponse\n >;\n}\n\nexport interface GetCurrentLedgerEntry {\n /** A collection id may optionally be specified. */\n get(\n options?: GetCurrentLedgerEntryParameters,\n ): StreamableMethod<\n GetCurrentLedgerEntry200Response | GetCurrentLedgerEntryDefaultResponse\n >;\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<\n ListLedgerUsers200Response | ListLedgerUsersDefaultResponse\n >;\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(\n options?: GetUserParameters,\n ): StreamableMethod<GetUser200Response | GetUserDefaultResponse>;\n /** A JSON merge patch is applied for existing users */\n patch(\n options: CreateOrUpdateUserParameters,\n ): StreamableMethod<\n CreateOrUpdateUser200Response | CreateOrUpdateUserDefaultResponse\n >;\n}\n\nexport interface DeleteLedgerUser {\n /** Deletes a user with multiple roles from the Confidential Ledger. */\n delete(\n options?: DeleteLedgerUserParameters,\n ): StreamableMethod<\n DeleteLedgerUser204Response | DeleteLedgerUserDefaultResponse\n >;\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\n | CreateOrUpdateLedgerUserDefaultResponse\n >;\n}\n\nexport interface GetUserDefinedEndpoint {\n /** Returns the user defined endpoint in the ACL instance */\n get(\n options?: GetUserDefinedEndpointParameters,\n ): StreamableMethod<\n GetUserDefinedEndpoint200Response | GetUserDefinedEndpointDefaultResponse\n >;\n /** Creates the user defined endpoint in the ACL instance */\n put(\n options: CreateUserDefinedEndpointParameters,\n ): StreamableMethod<\n | CreateUserDefinedEndpoint201Response\n | CreateUserDefinedEndpointDefaultResponse\n >;\n}\n\nexport interface GetRuntimeOptions {\n /** It returns the runtime options */\n get(\n options?: GetRuntimeOptionsParameters,\n ): StreamableMethod<\n GetRuntimeOptions200Response | GetRuntimeOptionsDefaultResponse\n >;\n /** Updates the runtime options. */\n patch(\n options: UpdateRuntimeOptionsParameters,\n ): StreamableMethod<\n UpdateRuntimeOptions200Response | UpdateRuntimeOptionsDefaultResponse\n >;\n}\n\nexport interface GetUserDefinedEndpointsModule {\n /** It gets the module for the user defined endpoint. */\n get(\n options: GetUserDefinedEndpointsModuleParameters,\n ): StreamableMethod<\n | GetUserDefinedEndpointsModule200Response\n | 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\n | 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\n | DeleteUserDefinedFunctionDefaultResponse\n >;\n /** Returns the user defined function in the Confidential Ledger */\n get(\n options?: GetUserDefinedFunctionParameters,\n ): StreamableMethod<\n GetUserDefinedFunction200Response | GetUserDefinedFunctionDefaultResponse\n >;\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\n | 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<\n GetUserDefinedRole200Response | GetUserDefinedRoleDefaultResponse\n >;\n /** User defined roles allow users to define and manage app specific AuthZ policy. */\n put(\n options: CreateUserDefinedRoleParameters,\n ): StreamableMethod<\n CreateUserDefinedRole200Response | CreateUserDefinedRoleDefaultResponse\n >;\n /** User defined roles allow users to define and manage app specific AuthZ policy. */\n patch(\n options: UpdateUserDefinedRoleParameters,\n ): StreamableMethod<\n UpdateUserDefinedRole200Response | UpdateUserDefinedRoleDefaultResponse\n >;\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<\n DeleteUserDefinedRole200Response | DeleteUserDefinedRoleDefaultResponse\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 (\n path: \"/app/transactions/{transactionId}\",\n transactionId: string,\n ): GetLedgerEntry;\n /** Resource for '/app/transactions/\\{transactionId\\}/receipt' has methods for the following verbs: get */\n (\n path: \"/app/transactions/{transactionId}/receipt\",\n transactionId: string,\n ): GetReceipt;\n /** Resource for '/app/transactions/\\{transactionId\\}/status' has methods for the following verbs: get */\n (\n path: \"/app/transactions/{transactionId}/status\",\n transactionId: string,\n ): 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 (\n path: \"/app/userDefinedFunctions/{functionId}\",\n functionId: string,\n ): 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"]}
@@ -11,7 +11,7 @@ import { logger } from "../logger.js";
11
11
  */
12
12
  export default function createClient(endpoint, credentials, _a = {}) {
13
13
  var _b, _c, _d, _e, _f, _g;
14
- var { apiVersion = "2024-08-22-preview" } = _a, options = __rest(_a, ["apiVersion"]);
14
+ var { apiVersion = "2024-12-09-preview" } = _a, options = __rest(_a, ["apiVersion"]);
15
15
  const endpointUrl = (_c = (_b = options.endpoint) !== null && _b !== void 0 ? _b : options.baseUrl) !== null && _c !== void 0 ? _c : `${endpoint}`;
16
16
  const userAgentInfo = `azsdk-js-confidential-ledger-rest/1.1.0-beta.1`;
17
17
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
@@ -1 +1 @@
1
- {"version":3,"file":"confidentialLedger.js","sourceRoot":"","sources":["../../../src/generated/confidentialLedger.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;;AAGlC,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAUtC;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAClC,QAAgB,EAChB,WAA4B,EAC5B,KAGqC,EAAE;;QAHvC,EACE,UAAU,GAAG,oBAAoB,OAEI,EADlC,OAAO,cAFZ,cAGC,CADW;IAGZ,MAAM,WAAW,GAAG,MAAA,MAAA,OAAO,CAAC,QAAQ,mCAAI,OAAO,CAAC,OAAO,mCAAI,GAAG,QAAQ,EAAE,CAAC;IACzE,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;gBACrC,gDAAgD;aACjD;SACF,GACF,CAAC;IACF,MAAM,MAAM,GAAG,SAAS,CACtB,WAAW,EACX,WAAW,EACX,OAAO,CACoB,CAAC;IAE9B,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 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 {\n apiVersion = \"2024-08-22-preview\",\n ...options\n }: ConfidentialLedgerClientOptions = {},\n): ConfidentialLedgerClient {\n const endpointUrl = options.endpoint ?? options.baseUrl ?? `${endpoint}`;\n const userAgentInfo = `azsdk-js-confidential-ledger-rest/1.1.0-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 ?? [\n \"https://confidential-ledger.azure.com/.default\",\n ],\n },\n };\n const client = getClient(\n endpointUrl,\n credentials,\n options,\n ) 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/generated/confidentialLedger.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;;AAGlC,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAUtC;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAClC,QAAgB,EAChB,WAA4B,EAC5B,KAGqC,EAAE;;QAHvC,EACE,UAAU,GAAG,oBAAoB,OAEI,EADlC,OAAO,cAFZ,cAGC,CADW;IAGZ,MAAM,WAAW,GAAG,MAAA,MAAA,OAAO,CAAC,QAAQ,mCAAI,OAAO,CAAC,OAAO,mCAAI,GAAG,QAAQ,EAAE,CAAC;IACzE,MAAM,aAAa,GAAG,gDAAgD,CAAC;IACvE,MAAM,eAAe,GACnB,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,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 {\n apiVersion = \"2024-12-09-preview\",\n ...options\n }: ConfidentialLedgerClientOptions = {},\n): ConfidentialLedgerClient {\n const endpointUrl = options.endpoint ?? options.baseUrl ?? `${endpoint}`;\n const userAgentInfo = `azsdk-js-confidential-ledger-rest/1.1.0-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 ?? [\n \"https://confidential-ledger.azure.com/.default\",\n ],\n },\n };\n const client = getClient(\n endpointUrl,\n credentials,\n options,\n ) 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,4 +1,4 @@
1
- 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, GetUserDefinedRole200Response, GetUserDefinedRoleDefaultResponse, CreateUserDefinedRole200Response, CreateUserDefinedRoleDefaultResponse, UpdateUserDefinedRole200Response, UpdateUserDefinedRoleDefaultResponse, DeleteUserDefinedRole200Response, DeleteUserDefinedRoleDefaultResponse } from "./responses.js";
1
+ 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";
2
2
  export declare function isUnexpected(response: GetConstitution200Response | GetConstitutionDefaultResponse): response is GetConstitutionDefaultResponse;
3
3
  export declare function isUnexpected(response: ListConsortiumMembers200Response | ListConsortiumMembersDefaultResponse): response is ListConsortiumMembersDefaultResponse;
4
4
  export declare function isUnexpected(response: GetEnclaveQuotes200Response | GetEnclaveQuotesDefaultResponse): response is GetEnclaveQuotesDefaultResponse;
@@ -22,6 +22,11 @@ export declare function isUnexpected(response: CreateUserDefinedEndpoint201Respo
22
22
  export declare function isUnexpected(response: GetRuntimeOptions200Response | GetRuntimeOptionsDefaultResponse): response is GetRuntimeOptionsDefaultResponse;
23
23
  export declare function isUnexpected(response: UpdateRuntimeOptions200Response | UpdateRuntimeOptionsDefaultResponse): response is UpdateRuntimeOptionsDefaultResponse;
24
24
  export declare function isUnexpected(response: GetUserDefinedEndpointsModule200Response | GetUserDefinedEndpointsModuleDefaultResponse): response is GetUserDefinedEndpointsModuleDefaultResponse;
25
+ export declare function isUnexpected(response: ListUserDefinedFunctions200Response | ListUserDefinedFunctionsDefaultResponse): response is ListUserDefinedFunctionsDefaultResponse;
26
+ export declare function isUnexpected(response: DeleteUserDefinedFunction204Response | DeleteUserDefinedFunctionDefaultResponse): response is DeleteUserDefinedFunctionDefaultResponse;
27
+ export declare function isUnexpected(response: GetUserDefinedFunction200Response | GetUserDefinedFunctionDefaultResponse): response is GetUserDefinedFunctionDefaultResponse;
28
+ export declare function isUnexpected(response: CreateUserDefinedFunction200Response | CreateUserDefinedFunction201Response | CreateUserDefinedFunctionDefaultResponse): response is CreateUserDefinedFunctionDefaultResponse;
29
+ export declare function isUnexpected(response: ExecuteUserDefinedFunction200Response | ExecuteUserDefinedFunctionDefaultResponse): response is ExecuteUserDefinedFunctionDefaultResponse;
25
30
  export declare function isUnexpected(response: GetUserDefinedRole200Response | GetUserDefinedRoleDefaultResponse): response is GetUserDefinedRoleDefaultResponse;
26
31
  export declare function isUnexpected(response: CreateUserDefinedRole200Response | CreateUserDefinedRoleDefaultResponse): response is CreateUserDefinedRoleDefaultResponse;
27
32
  export declare function isUnexpected(response: UpdateUserDefinedRole200Response | UpdateUserDefinedRoleDefaultResponse): response is UpdateUserDefinedRoleDefaultResponse;