@azure-rest/confidential-ledger 1.1.2-beta.2 → 1.1.2-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commonjs/clientDefinitions.d.ts +10 -10
- package/dist/commonjs/clientDefinitions.d.ts.map +1 -1
- package/dist/commonjs/clientDefinitions.js.map +1 -1
- package/dist/commonjs/confidentialLedger.d.ts +2 -2
- package/dist/commonjs/confidentialLedger.d.ts.map +1 -1
- package/dist/commonjs/confidentialLedger.js +5 -5
- package/dist/commonjs/confidentialLedger.js.map +1 -1
- package/dist/commonjs/isUnexpected.d.ts +19 -1
- package/dist/commonjs/isUnexpected.d.ts.map +1 -1
- package/dist/commonjs/isUnexpected.js +18 -0
- package/dist/commonjs/isUnexpected.js.map +1 -1
- package/dist/commonjs/models.d.ts +31 -31
- package/dist/commonjs/models.d.ts.map +1 -1
- package/dist/commonjs/models.js.map +1 -1
- package/dist/commonjs/outputModels.d.ts +25 -25
- package/dist/commonjs/outputModels.d.ts.map +1 -1
- package/dist/commonjs/outputModels.js.map +1 -1
- package/dist/commonjs/paginateHelper.d.ts +4 -0
- package/dist/commonjs/paginateHelper.d.ts.map +1 -1
- package/dist/commonjs/paginateHelper.js +8 -1
- package/dist/commonjs/paginateHelper.js.map +1 -1
- package/dist/commonjs/parameters.d.ts +44 -40
- package/dist/commonjs/parameters.d.ts.map +1 -1
- package/dist/commonjs/parameters.js.map +1 -1
- package/dist/commonjs/responses.d.ts +36 -36
- package/dist/commonjs/responses.d.ts.map +1 -1
- package/dist/commonjs/responses.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +1 -1
- package/dist/esm/clientDefinitions.d.ts +10 -10
- package/dist/esm/clientDefinitions.d.ts.map +1 -1
- package/dist/esm/clientDefinitions.js.map +1 -1
- package/dist/esm/confidentialLedger.d.ts +2 -2
- package/dist/esm/confidentialLedger.d.ts.map +1 -1
- package/dist/esm/confidentialLedger.js +5 -5
- package/dist/esm/confidentialLedger.js.map +1 -1
- package/dist/esm/isUnexpected.d.ts +19 -1
- package/dist/esm/isUnexpected.d.ts.map +1 -1
- package/dist/esm/isUnexpected.js +18 -0
- package/dist/esm/isUnexpected.js.map +1 -1
- package/dist/esm/models.d.ts +31 -31
- package/dist/esm/models.d.ts.map +1 -1
- package/dist/esm/models.js.map +1 -1
- package/dist/esm/outputModels.d.ts +25 -25
- package/dist/esm/outputModels.d.ts.map +1 -1
- package/dist/esm/outputModels.js.map +1 -1
- package/dist/esm/paginateHelper.d.ts +4 -0
- package/dist/esm/paginateHelper.d.ts.map +1 -1
- package/dist/esm/paginateHelper.js +8 -1
- package/dist/esm/paginateHelper.js.map +1 -1
- package/dist/esm/parameters.d.ts +44 -40
- package/dist/esm/parameters.d.ts.map +1 -1
- package/dist/esm/parameters.js.map +1 -1
- package/dist/esm/responses.d.ts +36 -36
- package/dist/esm/responses.d.ts.map +1 -1
- package/dist/esm/responses.js.map +1 -1
- package/package.json +9 -17
- package/CHANGELOG.md +0 -28
- package/dist/commonjs/generated/clientDefinitions.d.ts +0 -153
- package/dist/commonjs/generated/clientDefinitions.d.ts.map +0 -1
- package/dist/commonjs/generated/clientDefinitions.js +0 -5
- package/dist/commonjs/generated/clientDefinitions.js.map +0 -1
- package/dist/commonjs/generated/confidentialLedger.d.ts +0 -16
- package/dist/commonjs/generated/confidentialLedger.d.ts.map +0 -1
- package/dist/commonjs/generated/confidentialLedger.js +0 -48
- package/dist/commonjs/generated/confidentialLedger.js.map +0 -1
- package/dist/commonjs/generated/index.d.ts +0 -11
- package/dist/commonjs/generated/index.d.ts.map +0 -1
- package/dist/commonjs/generated/index.js +0 -16
- package/dist/commonjs/generated/index.js.map +0 -1
- package/dist/commonjs/generated/isUnexpected.d.ts +0 -34
- package/dist/commonjs/generated/isUnexpected.d.ts.map +0 -1
- package/dist/commonjs/generated/isUnexpected.js +0 -105
- package/dist/commonjs/generated/isUnexpected.js.map +0 -1
- package/dist/commonjs/generated/logger.d.ts +0 -2
- package/dist/commonjs/generated/logger.d.ts.map +0 -1
- package/dist/commonjs/generated/logger.js +0 -8
- package/dist/commonjs/generated/logger.js.map +0 -1
- package/dist/commonjs/generated/models.d.ts +0 -87
- package/dist/commonjs/generated/models.d.ts.map +0 -1
- package/dist/commonjs/generated/models.js +0 -5
- package/dist/commonjs/generated/models.js.map +0 -1
- package/dist/commonjs/generated/outputModels.d.ts +0 -280
- package/dist/commonjs/generated/outputModels.d.ts.map +0 -1
- package/dist/commonjs/generated/outputModels.js +0 -5
- package/dist/commonjs/generated/outputModels.js.map +0 -1
- package/dist/commonjs/generated/paginateHelper.d.ts +0 -88
- package/dist/commonjs/generated/paginateHelper.d.ts.map +0 -1
- package/dist/commonjs/generated/paginateHelper.js +0 -223
- package/dist/commonjs/generated/paginateHelper.js.map +0 -1
- package/dist/commonjs/generated/parameters.d.ts +0 -168
- package/dist/commonjs/generated/parameters.d.ts.map +0 -1
- package/dist/commonjs/generated/parameters.js +0 -5
- package/dist/commonjs/generated/parameters.js.map +0 -1
- package/dist/commonjs/generated/responses.d.ts +0 -337
- package/dist/commonjs/generated/responses.d.ts.map +0 -1
- package/dist/commonjs/generated/responses.js +0 -5
- package/dist/commonjs/generated/responses.js.map +0 -1
- package/dist/esm/generated/clientDefinitions.d.ts +0 -153
- package/dist/esm/generated/clientDefinitions.d.ts.map +0 -1
- package/dist/esm/generated/clientDefinitions.js +0 -4
- package/dist/esm/generated/clientDefinitions.js.map +0 -1
- package/dist/esm/generated/confidentialLedger.d.ts +0 -16
- package/dist/esm/generated/confidentialLedger.d.ts.map +0 -1
- package/dist/esm/generated/confidentialLedger.js +0 -45
- package/dist/esm/generated/confidentialLedger.js.map +0 -1
- package/dist/esm/generated/index.d.ts +0 -11
- package/dist/esm/generated/index.d.ts.map +0 -1
- package/dist/esm/generated/index.js +0 -13
- package/dist/esm/generated/index.js.map +0 -1
- package/dist/esm/generated/isUnexpected.d.ts +0 -34
- package/dist/esm/generated/isUnexpected.d.ts.map +0 -1
- package/dist/esm/generated/isUnexpected.js +0 -102
- package/dist/esm/generated/isUnexpected.js.map +0 -1
- package/dist/esm/generated/logger.d.ts +0 -2
- package/dist/esm/generated/logger.d.ts.map +0 -1
- package/dist/esm/generated/logger.js +0 -5
- package/dist/esm/generated/logger.js.map +0 -1
- package/dist/esm/generated/models.d.ts +0 -87
- package/dist/esm/generated/models.d.ts.map +0 -1
- package/dist/esm/generated/models.js +0 -4
- package/dist/esm/generated/models.js.map +0 -1
- package/dist/esm/generated/outputModels.d.ts +0 -280
- package/dist/esm/generated/outputModels.d.ts.map +0 -1
- package/dist/esm/generated/outputModels.js +0 -4
- package/dist/esm/generated/outputModels.js.map +0 -1
- package/dist/esm/generated/paginateHelper.d.ts +0 -88
- package/dist/esm/generated/paginateHelper.d.ts.map +0 -1
- package/dist/esm/generated/paginateHelper.js +0 -220
- package/dist/esm/generated/paginateHelper.js.map +0 -1
- package/dist/esm/generated/parameters.d.ts +0 -168
- package/dist/esm/generated/parameters.d.ts.map +0 -1
- package/dist/esm/generated/parameters.js +0 -4
- package/dist/esm/generated/parameters.js.map +0 -1
- package/dist/esm/generated/responses.d.ts +0 -337
- package/dist/esm/generated/responses.d.ts.map +0 -1
- package/dist/esm/generated/responses.js +0 -4
- package/dist/esm/generated/responses.js.map +0 -1
- package/review/confidential-ledger.api.md +0 -1494
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
/** An entry in the ledger. */
|
|
2
|
-
export interface LedgerEntry {
|
|
3
|
-
/** Contents of the ledger entry. */
|
|
4
|
-
contents: string;
|
|
5
|
-
/** List of user defined function hooks to be executed before the ledger entry is written. */
|
|
6
|
-
preHooks?: Array<UserDefinedFunctionHook>;
|
|
7
|
-
/** List of user defined function hooks to be executed after the ledger entry is written. */
|
|
8
|
-
postHooks?: Array<UserDefinedFunctionHook>;
|
|
9
|
-
}
|
|
10
|
-
/** Hook for a user defined function execution. */
|
|
11
|
-
export interface UserDefinedFunctionHook {
|
|
12
|
-
/** ID of the user defined function to execute. */
|
|
13
|
-
functionId: string;
|
|
14
|
-
/** The properties for executing a user defined function. */
|
|
15
|
-
properties?: UserDefinedFunctionExecutionProperties;
|
|
16
|
-
}
|
|
17
|
-
/** The properties for executing a user defined function. */
|
|
18
|
-
export interface UserDefinedFunctionExecutionProperties {
|
|
19
|
-
/** Runtime arguments of the user defined function. Defaults to an empty list. */
|
|
20
|
-
arguments?: Array<string>;
|
|
21
|
-
/** Name of the exported function to execute in the code of the user defined function. Defaults to main. */
|
|
22
|
-
exportedFunctionName?: string;
|
|
23
|
-
/** JS runtime options for user defined endpoints and functions */
|
|
24
|
-
runtimeOptions?: JSRuntimeOptions;
|
|
25
|
-
}
|
|
26
|
-
/** JS runtime options for user defined endpoints and functions */
|
|
27
|
-
export interface JSRuntimeOptions {
|
|
28
|
-
log_exception_details?: boolean;
|
|
29
|
-
max_cached_interpreters?: number;
|
|
30
|
-
max_execution_time_ms?: number;
|
|
31
|
-
max_heap_bytes?: number;
|
|
32
|
-
max_stack_bytes?: number;
|
|
33
|
-
return_exception_details?: boolean;
|
|
34
|
-
}
|
|
35
|
-
/** Details about a Confidential Ledger user. */
|
|
36
|
-
export interface LedgerUser {
|
|
37
|
-
/** Represents an assignable role. */
|
|
38
|
-
assignedRole: "Administrator" | "Contributor" | "Reader";
|
|
39
|
-
}
|
|
40
|
-
/** Details about a Confidential Ledger user. */
|
|
41
|
-
export interface LedgerUserMultipleRoles {
|
|
42
|
-
/** Represents an assignable role. */
|
|
43
|
-
assignedRoles: Array<"Administrator" | "Contributor" | "Reader">;
|
|
44
|
-
}
|
|
45
|
-
/** bundle for the user defined endpoints */
|
|
46
|
-
export interface Bundle {
|
|
47
|
-
metadata: Metadata;
|
|
48
|
-
/** Any object */
|
|
49
|
-
modules: Record<string, unknown>;
|
|
50
|
-
}
|
|
51
|
-
export interface Metadata {
|
|
52
|
-
/** A map of path to method endpoints for the path */
|
|
53
|
-
endpoints: Record<string, MethodToEndpointProperties>;
|
|
54
|
-
}
|
|
55
|
-
export interface MethodToEndpointProperties {
|
|
56
|
-
get?: EndpointProperties;
|
|
57
|
-
put?: EndpointProperties;
|
|
58
|
-
patch?: EndpointProperties;
|
|
59
|
-
delete?: EndpointProperties;
|
|
60
|
-
}
|
|
61
|
-
export interface EndpointProperties {
|
|
62
|
-
authn_policies: Array<any>;
|
|
63
|
-
forwarding_required: "sometimes" | "always" | "never";
|
|
64
|
-
interpreter_reuse?: InterpreterReusePolicy;
|
|
65
|
-
js_function?: string;
|
|
66
|
-
js_module?: string;
|
|
67
|
-
mode?: "readwrite" | "readonly" | "historical";
|
|
68
|
-
/** Anything */
|
|
69
|
-
openapi?: any;
|
|
70
|
-
openapi_hidden?: boolean;
|
|
71
|
-
redirection_strategy?: "none" | "to_primary" | "to_backup";
|
|
72
|
-
}
|
|
73
|
-
export interface InterpreterReusePolicy {
|
|
74
|
-
key: string;
|
|
75
|
-
}
|
|
76
|
-
/** A user defined function in the ledger. */
|
|
77
|
-
export interface UserDefinedFunction {
|
|
78
|
-
/** Code of the user defined function in JavaScript. */
|
|
79
|
-
code: string;
|
|
80
|
-
}
|
|
81
|
-
/** Definition for roles */
|
|
82
|
-
export interface Role {
|
|
83
|
-
/** name of the user defined role */
|
|
84
|
-
roleName?: string;
|
|
85
|
-
roleActions?: Array<string>;
|
|
86
|
-
}
|
|
87
|
-
//# sourceMappingURL=models.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../../src/generated/models.ts"],"names":[],"mappings":"AAGA,8BAA8B;AAC9B,MAAM,WAAW,WAAW;IAC1B,oCAAoC;IACpC,QAAQ,EAAE,MAAM,CAAC;IACjB,6FAA6F;IAC7F,QAAQ,CAAC,EAAE,KAAK,CAAC,uBAAuB,CAAC,CAAC;IAC1C,4FAA4F;IAC5F,SAAS,CAAC,EAAE,KAAK,CAAC,uBAAuB,CAAC,CAAC;CAC5C;AAED,kDAAkD;AAClD,MAAM,WAAW,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,CAAC,EAAE,kBAAkB,CAAC;IAC3B,MAAM,CAAC,EAAE,kBAAkB,CAAC;CAC7B;AAED,MAAM,WAAW,kBAAkB;IACjC,cAAc,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IAC3B,mBAAmB,EAAE,WAAW,GAAG,QAAQ,GAAG,OAAO,CAAC;IACtD,iBAAiB,CAAC,EAAE,sBAAsB,CAAC;IAC3C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,WAAW,GAAG,UAAU,GAAG,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,sBAAsB;IACrC,GAAG,EAAE,MAAM,CAAC;CACb;AAED,6CAA6C;AAC7C,MAAM,WAAW,mBAAmB;IAClC,uDAAuD;IACvD,IAAI,EAAE,MAAM,CAAC;CACd;AAED,2BAA2B;AAC3B,MAAM,WAAW,IAAI;IACnB,oCAAoC;IACpC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC7B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/generated/models.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/** An entry in the ledger. */\nexport interface LedgerEntry {\n /** Contents of the ledger entry. */\n contents: string;\n /** List of user defined function hooks to be executed before the ledger entry is written. */\n preHooks?: Array<UserDefinedFunctionHook>;\n /** List of user defined function hooks to be executed after the ledger entry is written. */\n postHooks?: Array<UserDefinedFunctionHook>;\n}\n\n/** Hook for a user defined function execution. */\nexport interface UserDefinedFunctionHook {\n /** ID of the user defined function to execute. */\n functionId: string;\n /** The properties for executing a user defined function. */\n properties?: UserDefinedFunctionExecutionProperties;\n}\n\n/** The properties for executing a user defined function. */\nexport interface UserDefinedFunctionExecutionProperties {\n /** Runtime arguments of the user defined function. Defaults to an empty list. */\n arguments?: Array<string>;\n /** Name of the exported function to execute in the code of the user defined function. Defaults to main. */\n exportedFunctionName?: string;\n /** JS runtime options for user defined endpoints and functions */\n runtimeOptions?: JSRuntimeOptions;\n}\n\n/** JS runtime options for user defined endpoints and functions */\nexport interface JSRuntimeOptions {\n log_exception_details?: boolean;\n max_cached_interpreters?: number;\n max_execution_time_ms?: number;\n max_heap_bytes?: number;\n max_stack_bytes?: number;\n return_exception_details?: boolean;\n}\n\n/** Details about a Confidential Ledger user. */\nexport interface LedgerUser {\n /** Represents an assignable role. */\n assignedRole: \"Administrator\" | \"Contributor\" | \"Reader\";\n}\n\n/** Details about a Confidential Ledger user. */\nexport interface LedgerUserMultipleRoles {\n /** Represents an assignable role. */\n assignedRoles: Array<\"Administrator\" | \"Contributor\" | \"Reader\">;\n}\n\n/** bundle for the user defined endpoints */\nexport interface Bundle {\n metadata: Metadata;\n /** Any object */\n modules: Record<string, unknown>;\n}\n\nexport interface Metadata {\n /** A map of path to method endpoints for the path */\n endpoints: Record<string, MethodToEndpointProperties>;\n}\n\nexport interface MethodToEndpointProperties {\n get?: EndpointProperties;\n put?: EndpointProperties;\n patch?: EndpointProperties;\n delete?: EndpointProperties;\n}\n\nexport interface EndpointProperties {\n authn_policies: Array<any>;\n forwarding_required: \"sometimes\" | \"always\" | \"never\";\n interpreter_reuse?: InterpreterReusePolicy;\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 InterpreterReusePolicy {\n key: string;\n}\n\n/** A user defined function in the ledger. */\nexport interface UserDefinedFunction {\n /** Code of the user defined function in JavaScript. */\n code: string;\n}\n\n/** Definition for roles */\nexport interface Role {\n /** name of the user defined role */\n roleName?: string;\n roleActions?: Array<string>;\n}\n"]}
|
|
@@ -1,280 +0,0 @@
|
|
|
1
|
-
/** The governance script for the application. */
|
|
2
|
-
export interface ConstitutionOutput {
|
|
3
|
-
/** SHA256 digest of the constitution script. */
|
|
4
|
-
digest: string;
|
|
5
|
-
/** Contents of the constitution. */
|
|
6
|
-
script: string;
|
|
7
|
-
}
|
|
8
|
-
/** An error response from Confidential Ledger. */
|
|
9
|
-
export interface ConfidentialLedgerErrorOutput {
|
|
10
|
-
/** An error response from Confidential Ledger. */
|
|
11
|
-
readonly error?: ConfidentialLedgerErrorBodyOutput;
|
|
12
|
-
}
|
|
13
|
-
/** An error response from Confidential Ledger. */
|
|
14
|
-
export interface ConfidentialLedgerErrorBodyOutput {
|
|
15
|
-
/** The error code. */
|
|
16
|
-
readonly code?: string;
|
|
17
|
-
/** The error message. */
|
|
18
|
-
readonly message?: string;
|
|
19
|
-
}
|
|
20
|
-
/** List of members in the consortium. */
|
|
21
|
-
export interface ConsortiumOutput {
|
|
22
|
-
members: Array<ConsortiumMemberOutput>;
|
|
23
|
-
/** Path from which to retrieve the next page of results. */
|
|
24
|
-
nextLink?: string;
|
|
25
|
-
}
|
|
26
|
-
/** Describes a member of the consortium. */
|
|
27
|
-
export interface ConsortiumMemberOutput {
|
|
28
|
-
/** PEM-encoded certificate associated with the member. */
|
|
29
|
-
certificate: string;
|
|
30
|
-
/** Identifier assigned to the member. */
|
|
31
|
-
id: string;
|
|
32
|
-
}
|
|
33
|
-
/** Information about the enclaves running the Confidential Ledger. */
|
|
34
|
-
export interface ConfidentialLedgerEnclavesOutput {
|
|
35
|
-
/** Id of the Confidential Ledger node responding to the request. */
|
|
36
|
-
currentNodeId: string;
|
|
37
|
-
/** Dictionary of enclave quotes, indexed by node id. */
|
|
38
|
-
enclaveQuotes: Record<string, EnclaveQuoteOutput>;
|
|
39
|
-
}
|
|
40
|
-
/** Contains the enclave quote. */
|
|
41
|
-
export interface EnclaveQuoteOutput {
|
|
42
|
-
/** ID assigned to this node. */
|
|
43
|
-
nodeId: string;
|
|
44
|
-
/** MRENCLAVE value of the code running in the enclave. */
|
|
45
|
-
mrenclave?: string;
|
|
46
|
-
/** Version of the quote presented. */
|
|
47
|
-
quoteVersion: string;
|
|
48
|
-
/** Raw SGX quote, parsable by tools like Open Enclave's oeverify. */
|
|
49
|
-
raw: string;
|
|
50
|
-
}
|
|
51
|
-
/** Paginated collections returned in response to a query. */
|
|
52
|
-
export interface PagedCollectionsOutput {
|
|
53
|
-
collections: Array<CollectionOutput>;
|
|
54
|
-
/** Path from which to retrieve the next page of results. */
|
|
55
|
-
nextLink?: string;
|
|
56
|
-
}
|
|
57
|
-
/** Identifier for collections. */
|
|
58
|
-
export interface CollectionOutput {
|
|
59
|
-
collectionId: string;
|
|
60
|
-
}
|
|
61
|
-
/** Paginated ledger entries returned in response to a query. */
|
|
62
|
-
export interface PagedLedgerEntriesOutput {
|
|
63
|
-
/** State of a ledger query. */
|
|
64
|
-
state: "Loading" | "Ready";
|
|
65
|
-
/** Path from which to retrieve the next page of results. */
|
|
66
|
-
nextLink?: string;
|
|
67
|
-
/** Array of ledger entries. */
|
|
68
|
-
entries: Array<LedgerEntryOutput>;
|
|
69
|
-
}
|
|
70
|
-
/** An entry in the ledger. */
|
|
71
|
-
export interface LedgerEntryOutput {
|
|
72
|
-
/** Contents of the ledger entry. */
|
|
73
|
-
contents: string;
|
|
74
|
-
readonly collectionId?: string;
|
|
75
|
-
/** 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. */
|
|
76
|
-
readonly transactionId?: string;
|
|
77
|
-
/** List of user defined function hooks to be executed before the ledger entry is written. */
|
|
78
|
-
preHooks?: Array<UserDefinedFunctionHookOutput>;
|
|
79
|
-
/** List of user defined function hooks to be executed after the ledger entry is written. */
|
|
80
|
-
postHooks?: Array<UserDefinedFunctionHookOutput>;
|
|
81
|
-
}
|
|
82
|
-
/** Hook for a user defined function execution. */
|
|
83
|
-
export interface UserDefinedFunctionHookOutput {
|
|
84
|
-
/** ID of the user defined function to execute. */
|
|
85
|
-
functionId: string;
|
|
86
|
-
/** The properties for executing a user defined function. */
|
|
87
|
-
properties?: UserDefinedFunctionExecutionPropertiesOutput;
|
|
88
|
-
}
|
|
89
|
-
/** The properties for executing a user defined function. */
|
|
90
|
-
export interface UserDefinedFunctionExecutionPropertiesOutput {
|
|
91
|
-
/** Runtime arguments of the user defined function. Defaults to an empty list. */
|
|
92
|
-
arguments?: Array<string>;
|
|
93
|
-
/** Name of the exported function to execute in the code of the user defined function. Defaults to main. */
|
|
94
|
-
exportedFunctionName?: string;
|
|
95
|
-
/** JS runtime options for user defined endpoints and functions */
|
|
96
|
-
runtimeOptions?: JSRuntimeOptionsOutput;
|
|
97
|
-
}
|
|
98
|
-
/** JS runtime options for user defined endpoints and functions */
|
|
99
|
-
export interface JSRuntimeOptionsOutput {
|
|
100
|
-
log_exception_details?: boolean;
|
|
101
|
-
max_cached_interpreters?: number;
|
|
102
|
-
max_execution_time_ms?: number;
|
|
103
|
-
max_heap_bytes?: number;
|
|
104
|
-
max_stack_bytes?: number;
|
|
105
|
-
return_exception_details?: boolean;
|
|
106
|
-
}
|
|
107
|
-
/** Returned as a result of a write to the Confidential Ledger, the transaction id in the response indicates when the write will become durable. */
|
|
108
|
-
export interface LedgerWriteResultOutput {
|
|
109
|
-
collectionId: string;
|
|
110
|
-
}
|
|
111
|
-
/** 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. */
|
|
112
|
-
export interface LedgerQueryResultOutput {
|
|
113
|
-
/** State of a ledger query. */
|
|
114
|
-
state: "Loading" | "Ready";
|
|
115
|
-
/** The ledger entry found as a result of the query. This is only available if the query is in Ready state. */
|
|
116
|
-
entry?: LedgerEntryOutput;
|
|
117
|
-
}
|
|
118
|
-
/** A receipt certifying the transaction at the specified id. */
|
|
119
|
-
export interface TransactionReceiptOutput {
|
|
120
|
-
/** List of application claims. */
|
|
121
|
-
applicationClaims?: Array<ApplicationClaimOutput>;
|
|
122
|
-
receipt?: ReceiptContentsOutput;
|
|
123
|
-
/** State of a ledger query. */
|
|
124
|
-
state: "Loading" | "Ready";
|
|
125
|
-
/** 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. */
|
|
126
|
-
transactionId: string;
|
|
127
|
-
}
|
|
128
|
-
/** A claim of a ledger application. */
|
|
129
|
-
export interface ApplicationClaimOutput {
|
|
130
|
-
/** An application claim in digested form. */
|
|
131
|
-
digest?: ClaimDigestOutput;
|
|
132
|
-
/** Represents the kind of an application claim. */
|
|
133
|
-
kind: "LedgerEntry" | "ClaimDigest";
|
|
134
|
-
/** An application claim derived from ledger entry data. */
|
|
135
|
-
ledgerEntry?: LedgerEntryClaimOutput;
|
|
136
|
-
}
|
|
137
|
-
/** An application claim in digested form. */
|
|
138
|
-
export interface ClaimDigestOutput {
|
|
139
|
-
/** The digest of the application claim, in hexadecimal form. */
|
|
140
|
-
value?: string;
|
|
141
|
-
/** Represents the protocol to be used to compute the digest of a claim from the given claim data. */
|
|
142
|
-
protocol: "LedgerEntryV1";
|
|
143
|
-
}
|
|
144
|
-
/** An application claim derived from ledger entry data. */
|
|
145
|
-
export interface LedgerEntryClaimOutput {
|
|
146
|
-
/** Identifier of a collection. */
|
|
147
|
-
collectionId?: string;
|
|
148
|
-
/** Contents of a ledger entry. */
|
|
149
|
-
contents?: string;
|
|
150
|
-
/** Base64-encoded secret key. */
|
|
151
|
-
secretKey?: string;
|
|
152
|
-
/** Represents the protocol to be used to compute the digest of a claim from the given claim data. */
|
|
153
|
-
protocol: "LedgerEntryV1";
|
|
154
|
-
}
|
|
155
|
-
export interface ReceiptContentsOutput {
|
|
156
|
-
cert?: string;
|
|
157
|
-
leaf?: string;
|
|
158
|
-
leafComponents?: ReceiptLeafComponentsOutput;
|
|
159
|
-
nodeId: string;
|
|
160
|
-
proof: Array<ReceiptElementOutput>;
|
|
161
|
-
root?: string;
|
|
162
|
-
serviceEndorsements?: Array<string>;
|
|
163
|
-
signature: string;
|
|
164
|
-
}
|
|
165
|
-
export interface ReceiptLeafComponentsOutput {
|
|
166
|
-
claimsDigest?: string;
|
|
167
|
-
commitEvidence?: string;
|
|
168
|
-
writeSetDigest?: string;
|
|
169
|
-
}
|
|
170
|
-
export interface ReceiptElementOutput {
|
|
171
|
-
left?: string;
|
|
172
|
-
right?: string;
|
|
173
|
-
}
|
|
174
|
-
/** Response returned to a query for the transaction status */
|
|
175
|
-
export interface TransactionStatusOutput {
|
|
176
|
-
/** Represents the state of the transaction. */
|
|
177
|
-
state: "Committed" | "Pending";
|
|
178
|
-
/** 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. */
|
|
179
|
-
transactionId: string;
|
|
180
|
-
}
|
|
181
|
-
/** Paginated users returned in response to a query. */
|
|
182
|
-
export interface PagedUsersOutput {
|
|
183
|
-
ledgerUsers?: Array<LedgerUserOutput>;
|
|
184
|
-
/** Path from which to retrieve the next page of results. */
|
|
185
|
-
nextLink?: string;
|
|
186
|
-
}
|
|
187
|
-
/** Details about a Confidential Ledger user. */
|
|
188
|
-
export interface LedgerUserOutput {
|
|
189
|
-
/** Represents an assignable role. */
|
|
190
|
-
assignedRole: "Administrator" | "Contributor" | "Reader";
|
|
191
|
-
/** Identifier for the user. This must either be an AAD object id or a certificate fingerprint. */
|
|
192
|
-
readonly userId?: string;
|
|
193
|
-
}
|
|
194
|
-
/** Paginated users returned in response to a query. */
|
|
195
|
-
export interface PagedLedgerUsersOutput {
|
|
196
|
-
ledgerUsers?: Array<LedgerUserMultipleRolesOutput>;
|
|
197
|
-
/** Path from which to retrieve the next page of results. */
|
|
198
|
-
nextLink?: string;
|
|
199
|
-
}
|
|
200
|
-
/** Details about a Confidential Ledger user. */
|
|
201
|
-
export interface LedgerUserMultipleRolesOutput {
|
|
202
|
-
/** Represents an assignable role. */
|
|
203
|
-
assignedRoles: Array<"Administrator" | "Contributor" | "Reader">;
|
|
204
|
-
/** Identifier for the user. This must either be an AAD object id or a certificate fingerprint. */
|
|
205
|
-
readonly userId?: string;
|
|
206
|
-
}
|
|
207
|
-
/** bundle for the user defined endpoints */
|
|
208
|
-
export interface BundleOutput {
|
|
209
|
-
metadata: MetadataOutput;
|
|
210
|
-
/** Any object */
|
|
211
|
-
modules: Record<string, unknown>;
|
|
212
|
-
}
|
|
213
|
-
export interface MetadataOutput {
|
|
214
|
-
/** A map of path to method endpoints for the path */
|
|
215
|
-
endpoints: Record<string, MethodToEndpointPropertiesOutput>;
|
|
216
|
-
}
|
|
217
|
-
export interface MethodToEndpointPropertiesOutput {
|
|
218
|
-
get?: EndpointPropertiesOutput;
|
|
219
|
-
put?: EndpointPropertiesOutput;
|
|
220
|
-
patch?: EndpointPropertiesOutput;
|
|
221
|
-
delete?: EndpointPropertiesOutput;
|
|
222
|
-
}
|
|
223
|
-
export interface EndpointPropertiesOutput {
|
|
224
|
-
authn_policies: Array<any>;
|
|
225
|
-
forwarding_required: "sometimes" | "always" | "never";
|
|
226
|
-
interpreter_reuse?: InterpreterReusePolicyOutput;
|
|
227
|
-
js_function?: string;
|
|
228
|
-
js_module?: string;
|
|
229
|
-
mode?: "readwrite" | "readonly" | "historical";
|
|
230
|
-
/** Anything */
|
|
231
|
-
openapi?: any;
|
|
232
|
-
openapi_hidden?: boolean;
|
|
233
|
-
redirection_strategy?: "none" | "to_primary" | "to_backup";
|
|
234
|
-
}
|
|
235
|
-
export interface InterpreterReusePolicyOutput {
|
|
236
|
-
key: string;
|
|
237
|
-
}
|
|
238
|
-
export interface ModuleDefOutput {
|
|
239
|
-
module: string;
|
|
240
|
-
name: string;
|
|
241
|
-
}
|
|
242
|
-
/** Paginated user defined functions returned in response to a query. */
|
|
243
|
-
export interface PagedUserDefinedFunctionsOutput {
|
|
244
|
-
functions: Array<UserDefinedFunctionOutput>;
|
|
245
|
-
/** Path from which to retrieve the next page of results. */
|
|
246
|
-
nextLink?: string;
|
|
247
|
-
}
|
|
248
|
-
/** A user defined function in the ledger. */
|
|
249
|
-
export interface UserDefinedFunctionOutput {
|
|
250
|
-
/** Code of the user defined function in JavaScript. */
|
|
251
|
-
code: string;
|
|
252
|
-
/** ID of the user defined function. */
|
|
253
|
-
readonly id?: string;
|
|
254
|
-
}
|
|
255
|
-
/** The result of a user defined function execution. */
|
|
256
|
-
export interface UserDefinedFunctionExecutionResponseOutput {
|
|
257
|
-
/** The error object of a user defined function execution. This is returned only when the user defined function execution throws an exception. */
|
|
258
|
-
error?: UserDefinedFunctionExecutionErrorOutput;
|
|
259
|
-
/** The result object of a user defined function execution. This is returned only when the user defined function executes successfully. */
|
|
260
|
-
result?: UserDefinedFunctionExecutionResultOutput;
|
|
261
|
-
/** Represents the status of a user defined function execution. */
|
|
262
|
-
status: "Succeeded" | "Failed";
|
|
263
|
-
}
|
|
264
|
-
/** The error object of a user defined function execution. This is returned only when the user defined function execution throws an exception. */
|
|
265
|
-
export interface UserDefinedFunctionExecutionErrorOutput {
|
|
266
|
-
/** Message indicating the error thrown when executing the function. */
|
|
267
|
-
message?: string;
|
|
268
|
-
}
|
|
269
|
-
/** The result object of a user defined function execution. This is returned only when the user defined function executes successfully. */
|
|
270
|
-
export interface UserDefinedFunctionExecutionResultOutput {
|
|
271
|
-
/** String-encoded value returned by the user defined function execution. If the function does not return any value, this is set to an empty string. */
|
|
272
|
-
returnValue?: string;
|
|
273
|
-
}
|
|
274
|
-
/** Definition for roles */
|
|
275
|
-
export interface RoleOutput {
|
|
276
|
-
/** name of the user defined role */
|
|
277
|
-
roleName?: string;
|
|
278
|
-
roleActions?: Array<string>;
|
|
279
|
-
}
|
|
280
|
-
//# sourceMappingURL=outputModels.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"outputModels.d.ts","sourceRoot":"","sources":["../../../src/generated/outputModels.ts"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ACd;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;AAED,uDAAuD;AACvD,MAAM,WAAW,0CAA0C;IACzD,iJAAiJ;IACjJ,KAAK,CAAC,EAAE,uCAAuC,CAAC;IAChD,0IAA0I;IAC1I,MAAM,CAAC,EAAE,wCAAwC,CAAC;IAClD,kEAAkE;IAClE,MAAM,EAAE,WAAW,GAAG,QAAQ,CAAC;CAChC;AAED,iJAAiJ;AACjJ,MAAM,WAAW,uCAAuC;IACtD,uEAAuE;IACvE,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,0IAA0I;AAC1I,MAAM,WAAW,wCAAwC;IACvD,uJAAuJ;IACvJ,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,2BAA2B;AAC3B,MAAM,WAAW,UAAU;IACzB,oCAAoC;IACpC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC7B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"outputModels.js","sourceRoot":"","sources":["../../../src/generated/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 /** List of user defined function hooks to be executed before the ledger entry is written. */\n preHooks?: Array<UserDefinedFunctionHookOutput>;\n /** List of user defined function hooks to be executed after the ledger entry is written. */\n postHooks?: Array<UserDefinedFunctionHookOutput>;\n}\n\n/** Hook for a user defined function execution. */\nexport interface UserDefinedFunctionHookOutput {\n /** ID of the user defined function to execute. */\n functionId: string;\n /** The properties for executing a user defined function. */\n properties?: UserDefinedFunctionExecutionPropertiesOutput;\n}\n\n/** The properties for executing a user defined function. */\nexport interface UserDefinedFunctionExecutionPropertiesOutput {\n /** Runtime arguments of the user defined function. Defaults to an empty list. */\n arguments?: Array<string>;\n /** Name of the exported function to execute in the code of the user defined function. Defaults to main. */\n exportedFunctionName?: string;\n /** JS runtime options for user defined endpoints and functions */\n runtimeOptions?: JSRuntimeOptionsOutput;\n}\n\n/** JS runtime options for user defined endpoints and functions */\nexport interface JSRuntimeOptionsOutput {\n log_exception_details?: boolean;\n max_cached_interpreters?: number;\n max_execution_time_ms?: number;\n max_heap_bytes?: number;\n max_stack_bytes?: number;\n return_exception_details?: boolean;\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/** Paginated users returned in response to a query. */\nexport interface PagedLedgerUsersOutput {\n ledgerUsers?: Array<LedgerUserMultipleRolesOutput>;\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 LedgerUserMultipleRolesOutput {\n /** Represents an assignable role. */\n assignedRoles: Array<\"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\nexport interface ModuleDefOutput {\n module: string;\n name: 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\n/** The result of a user defined function execution. */\nexport interface UserDefinedFunctionExecutionResponseOutput {\n /** The error object of a user defined function execution. This is returned only when the user defined function execution throws an exception. */\n error?: UserDefinedFunctionExecutionErrorOutput;\n /** The result object of a user defined function execution. This is returned only when the user defined function executes successfully. */\n result?: UserDefinedFunctionExecutionResultOutput;\n /** Represents the status of a user defined function execution. */\n status: \"Succeeded\" | \"Failed\";\n}\n\n/** The error object of a user defined function execution. This is returned only when the user defined function execution throws an exception. */\nexport interface UserDefinedFunctionExecutionErrorOutput {\n /** Message indicating the error thrown when executing the function. */\n message?: string;\n}\n\n/** The result object of a user defined function execution. This is returned only when the user defined function executes successfully. */\nexport interface UserDefinedFunctionExecutionResultOutput {\n /** String-encoded value returned by the user defined function execution. If the function does not return any value, this is set to an empty string. */\n returnValue?: string;\n}\n\n/** Definition for roles */\nexport interface RoleOutput {\n /** name of the user defined role */\n roleName?: string;\n roleActions?: Array<string>;\n}\n"]}
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import type { Client, PathUncheckedResponse } from "@azure-rest/core-client";
|
|
2
|
-
/**
|
|
3
|
-
* An interface that tracks the settings for paged iteration
|
|
4
|
-
*/
|
|
5
|
-
export interface PageSettings {
|
|
6
|
-
/**
|
|
7
|
-
* The token that keeps track of where to continue the iterator
|
|
8
|
-
*/
|
|
9
|
-
continuationToken?: string;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* An interface that allows async iterable iteration both to completion and by page.
|
|
13
|
-
*/
|
|
14
|
-
export interface PagedAsyncIterableIterator<TElement, TPage = TElement[], TPageSettings = PageSettings> {
|
|
15
|
-
/**
|
|
16
|
-
* The next method, part of the iteration protocol
|
|
17
|
-
*/
|
|
18
|
-
next(): Promise<IteratorResult<TElement>>;
|
|
19
|
-
/**
|
|
20
|
-
* The connection to the async iterator, part of the iteration protocol
|
|
21
|
-
*/
|
|
22
|
-
[Symbol.asyncIterator](): PagedAsyncIterableIterator<TElement, TPage, TPageSettings>;
|
|
23
|
-
/**
|
|
24
|
-
* Return an AsyncIterableIterator that works a page at a time
|
|
25
|
-
*/
|
|
26
|
-
byPage: (settings?: TPageSettings) => AsyncIterableIterator<TPage>;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Helper type to extract the type of an array
|
|
30
|
-
*/
|
|
31
|
-
export type GetArrayType<T> = T extends Array<infer TData> ? TData : never;
|
|
32
|
-
/**
|
|
33
|
-
* The type of a custom function that defines how to get a page and a link to the next one if any.
|
|
34
|
-
*/
|
|
35
|
-
export type GetPage<TPage> = (pageLink: string) => Promise<{
|
|
36
|
-
page: TPage;
|
|
37
|
-
nextPageLink?: string;
|
|
38
|
-
}>;
|
|
39
|
-
/**
|
|
40
|
-
* Options for the paging helper
|
|
41
|
-
*/
|
|
42
|
-
export interface PagingOptions<TResponse> {
|
|
43
|
-
/**
|
|
44
|
-
* Custom function to extract pagination details for crating the PagedAsyncIterableIterator
|
|
45
|
-
*/
|
|
46
|
-
customGetPage?: GetPage<PaginateReturn<TResponse>[]>;
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Helper type to infer the Type of the paged elements from the response type
|
|
50
|
-
* This type is generated based on the swagger information for x-ms-pageable
|
|
51
|
-
* specifically on the itemName property which indicates the property of the response
|
|
52
|
-
* where the page items are found. The default value is `value`.
|
|
53
|
-
* This type will allow us to provide strongly typed Iterator based on the response we get as second parameter
|
|
54
|
-
*/
|
|
55
|
-
export type PaginateReturn<TResult> = TResult extends {
|
|
56
|
-
body: {
|
|
57
|
-
value?: infer TPage;
|
|
58
|
-
};
|
|
59
|
-
} | {
|
|
60
|
-
body: {
|
|
61
|
-
members?: infer TPage;
|
|
62
|
-
};
|
|
63
|
-
} | {
|
|
64
|
-
body: {
|
|
65
|
-
collections?: infer TPage;
|
|
66
|
-
};
|
|
67
|
-
} | {
|
|
68
|
-
body: {
|
|
69
|
-
entries?: infer TPage;
|
|
70
|
-
};
|
|
71
|
-
} | {
|
|
72
|
-
body: {
|
|
73
|
-
ledgerUsers?: infer TPage;
|
|
74
|
-
};
|
|
75
|
-
} | {
|
|
76
|
-
body: {
|
|
77
|
-
functions?: infer TPage;
|
|
78
|
-
};
|
|
79
|
-
} ? GetArrayType<TPage> : Array<unknown>;
|
|
80
|
-
/**
|
|
81
|
-
* Helper to paginate results from an initial response that follows the specification of Autorest `x-ms-pageable` extension
|
|
82
|
-
* @param client - Client to use for sending the next page requests
|
|
83
|
-
* @param initialResponse - Initial response containing the nextLink and current page of elements
|
|
84
|
-
* @param customGetPage - Optional - Function to define how to extract the page and next link to be used to paginate the results
|
|
85
|
-
* @returns - PagedAsyncIterableIterator to iterate the elements
|
|
86
|
-
*/
|
|
87
|
-
export declare function paginate<TResponse extends PathUncheckedResponse>(client: Client, initialResponse: TResponse, options?: PagingOptions<TResponse>): PagedAsyncIterableIterator<PaginateReturn<TResponse>>;
|
|
88
|
-
//# sourceMappingURL=paginateHelper.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"paginateHelper.d.ts","sourceRoot":"","sources":["../../../src/generated/paginateHelper.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AA6F7E;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED;;GAEG;AACH,MAAM,WAAW,0BAA0B,CACzC,QAAQ,EACR,KAAK,GAAG,QAAQ,EAAE,EAClB,aAAa,GAAG,YAAY;IAE5B;;OAEG;IACH,IAAI,IAAI,OAAO,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC1C;;OAEG;IACH,CAAC,MAAM,CAAC,aAAa,CAAC,IAAI,0BAA0B,CAClD,QAAQ,EACR,KAAK,EACL,aAAa,CACd,CAAC;IACF;;OAEG;IACH,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,aAAa,KAAK,qBAAqB,CAAC,KAAK,CAAC,CAAC;CACpE;AA2BD;;GAEG;AACH,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,CAAC,SAAS,KAAK,CAAC,MAAM,KAAK,CAAC,GAAG,KAAK,GAAG,KAAK,CAAC;AA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