Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ConfidentialLedger] Generating SDK for API preview version 2024-08-22 #32457

Merged
merged 24 commits into from
Jan 17, 2025
Merged
Show file tree
Hide file tree
Changes from 18 commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
18024a5
Generating javascript SDK for API preview version 2024-08-22
amruthashree18 Jan 7, 2025
267240d
Fixing tests
amruthashree18 Jan 8, 2025
f3d7de9
Merge branch 'Azure:main' into amruthashree18/generateJSsdk
amruthashree18 Jan 10, 2025
02fbd79
Fixing tests
amruthashree18 Jan 10, 2025
2ddc3a6
Running rushx format
amruthashree18 Jan 10, 2025
7755753
run `npx dev-tool admin migrate-source`
jeremymeng Jan 13, 2025
54b535b
move generated/ to under src/
jeremymeng Jan 13, 2025
010c2c5
import and re-export from generated/
jeremymeng Jan 13, 2025
384d5d1
rushx lint:fix
jeremymeng Jan 13, 2025
cc0ff12
Merge branch 'Azure:main' into amruthashree18/generateJSsdk
amruthashree18 Jan 13, 2025
df42029
Fixing tests and updating api.md
amruthashree18 Jan 13, 2025
eabd02c
Merge branch 'Azure:main' into amruthashree18/generateJSsdk
amruthashree18 Jan 14, 2025
e96a1c6
Fixing tests
amruthashree18 Jan 14, 2025
bb47a58
Fixing tests
amruthashree18 Jan 15, 2025
849b9ef
Merge branch 'Azure:main' into amruthashree18/generateJSsdk
amruthashree18 Jan 15, 2025
4a81276
Fixing warnings
amruthashree18 Jan 15, 2025
9f20f86
Merge branch 'amruthashree18/generateJSsdk' of https://github.com/amr…
amruthashree18 Jan 15, 2025
71ccb04
Merge branch 'Azure:main' into amruthashree18/generateJSsdk
amruthashree18 Jan 16, 2025
a346f72
Fixing ae-forgotten-export warnings
amruthashree18 Jan 16, 2025
3f7e299
Merge branch 'amruthashree18/generateJSsdk' of https://github.com/amr…
amruthashree18 Jan 16, 2025
b011452
Fixing warnigs
amruthashree18 Jan 16, 2025
18cebc8
fix ae-forgotten-export issue
jeremymeng Jan 17, 2025
bab82fb
fix swagger output-folder and re-generate
jeremymeng Jan 17, 2025
5b386e3
update-source
jeremymeng Jan 17, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Release History

## 1.1.2 (Unreleased)

### Features Added

- User defined endpoint
- User defined endpoint runtimeoptions
- User defined endpoint modules
- User defined roles
-
## 1.1.0-beta.1 (Unreleased)

### Features Added
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"sdk-type": "client",
"author": "Microsoft Corporation",
"description": "An isomorphic rest level client library for the Azure Confidential Ledger service.",
"version": "1.1.0-beta.1",
"version": "1.1.2",
"keywords": [
"node",
"azure",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@

```ts

import { Client } from '@azure-rest/core-client';
import { ClientOptions } from '@azure-rest/core-client';
import type { Client } from '@azure-rest/core-client';
import type { ClientOptions } from '@azure-rest/core-client';
import { HttpResponse } from '@azure-rest/core-client';
import { PathUncheckedResponse } from '@azure-rest/core-client';
import { RawHttpHeaders } from '@azure/core-rest-pipeline';
import type { PathUncheckedResponse } from '@azure-rest/core-client';
import type { RawHttpHeaders } from '@azure/core-rest-pipeline';
import { RequestParameters } from '@azure-rest/core-client';
import { StreamableMethod } from '@azure-rest/core-client';
import type { TokenCredential } from '@azure/core-auth';
Expand Down Expand Up @@ -387,6 +387,38 @@ export interface GetUserDefaultResponse extends HttpResponse {
status: string;
}

// @public (undocumented)
export interface GetUserDefinedEndpoint {
get(options?: GetUserDefinedEndpointParameters): StreamableMethod<GetUserDefinedEndpoint200Response | GetUserDefinedEndpointDefaultResponse>;
// Warning: (ae-forgotten-export) The symbol "CreateUserDefinedEndpointParameters" needs to be exported by the entry point index.d.ts
jeremymeng marked this conversation as resolved.
Show resolved Hide resolved
// Warning: (ae-forgotten-export) The symbol "CreateUserDefinedEndpoint201Response" needs to be exported by the entry point index.d.ts
// Warning: (ae-forgotten-export) The symbol "CreateUserDefinedEndpointDefaultResponse" needs to be exported by the entry point index.d.ts
put(options: CreateUserDefinedEndpointParameters): StreamableMethod<CreateUserDefinedEndpoint201Response | CreateUserDefinedEndpointDefaultResponse>;
}

// @public
export interface GetUserDefinedEndpoint200Response extends HttpResponse {
// Warning: (ae-forgotten-export) The symbol "BundleOutput" needs to be exported by the entry point index.d.ts
//
// (undocumented)
body: BundleOutput;
// (undocumented)
status: "200";
}

// @public
export interface GetUserDefinedEndpointDefaultResponse extends HttpResponse {
// Warning: (ae-forgotten-export) The symbol "ConfidentialLedgerErrorOutput_2" needs to be exported by the entry point index.d.ts
//
// (undocumented)
body: ConfidentialLedgerErrorOutput_2;
// (undocumented)
status: string;
}

// @public (undocumented)
export type GetUserDefinedEndpointParameters = RequestParameters;

// @public (undocumented)
export type GetUserParameters = RequestParameters;

Expand Down Expand Up @@ -712,6 +744,7 @@ export interface Routes {
(path: "/app/transactions/current"): GetCurrentLedgerEntry;
(path: "/app/users"): ListUsers;
(path: "/app/users/{userId}", userId: string): DeleteUser;
(path: "/app/userDefinedEndpoints"): GetUserDefinedEndpoint;
}

// @public
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

import {
import { GetUserDefinedEndpoint } from "./generated/clientDefinitions.js";
import type {
GetConstitutionParameters,
ListConsortiumMembersParameters,
GetEnclaveQuotesParameters,
Expand All @@ -17,7 +18,7 @@ import {
GetUserParameters,
CreateOrUpdateUserParameters,
} from "./parameters.js";
import {
import type {
GetConstitution200Response,
GetConstitutionDefaultResponse,
ListConsortiumMembers200Response,
Expand Down Expand Up @@ -47,7 +48,9 @@ import {
CreateOrUpdateUser200Response,
CreateOrUpdateUserDefaultResponse,
} from "./responses.js";
import { Client, StreamableMethod } from "@azure-rest/core-client";
import type { Client, StreamableMethod } from "@azure-rest/core-client";

export { GetUserDefinedEndpoint };

export interface GetConstitution {
/** The constitution is a script that assesses and applies proposals from consortium members. */
Expand Down Expand Up @@ -159,6 +162,8 @@ export interface Routes {
(path: "/app/users"): ListUsers;
/** Resource for '/app/users/\{userId\}' has methods for the following verbs: delete, get, patch */
(path: "/app/users/{userId}", userId: string): DeleteUser;
/** Resource for '/app/userDefinedEndpoints' has methods for the following verbs: delete, get, patch */
(path: "/app/userDefinedEndpoints"): GetUserDefinedEndpoint;
}

export type ConfidentialLedgerClient = Client & {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

import { getClient, ClientOptions } from "@azure-rest/core-client";
import type { ClientOptions } from "@azure-rest/core-client";
import { getClient } from "@azure-rest/core-client";
import { logger } from "./logger.js";
import { TokenCredential } from "@azure/core-auth";
import { ConfidentialLedgerClient } from "./clientDefinitions.js";
import type { TokenCredential } from "@azure/core-auth";
import type { ConfidentialLedgerClient } from "./clientDefinitions.js";

/** The optional parameters for the client */
export interface ConfidentialLedgerClientOptions extends ClientOptions {
Expand Down
Loading
Loading