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

Monitor @typespec/compiler next version #2753

Draft
wants to merge 34 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
f346a87
monitor @typespec/compiler version
v-jiaodi Aug 14, 2024
f18cb6a
smoke test
v-jiaodi Aug 14, 2024
8f7f8a5
Merge branch 'main' of https://github.com/Azure/autorest.typescript i…
v-jiaodi Aug 15, 2024
f6d78cf
Merge branch 'main' of https://github.com/Azure/autorest.typescript i…
v-jiaodi Aug 19, 2024
4f61fd0
smoke-test
v-jiaodi Aug 20, 2024
bdf0ade
Merge branch 'main' of https://github.com/Azure/autorest.typescript i…
v-jiaodi Aug 28, 2024
25dc425
smoke test
v-jiaodi Aug 28, 2024
f375e6d
update the changes
MaryGao Aug 28, 2024
17de91b
update the changes
MaryGao Aug 29, 2024
16fdbd7
Merge branch 'main' of https://github.com/Azure/autorest.typescript i…
v-jiaodi Aug 29, 2024
6b3ee8a
update next version
v-jiaodi Aug 29, 2024
ea0a4da
Merge branch 'main' of https://github.com/Azure/autorest.typescript i…
v-jiaodi Sep 2, 2024
a0c6278
update
v-jiaodi Sep 2, 2024
088767c
update tsp
v-jiaodi Sep 3, 2024
08f8f84
Merge branch 'main' of https://github.com/Azure/autorest.typescript i…
v-jiaodi Sep 10, 2024
1068f9c
update
v-jiaodi Sep 10, 2024
d6acb41
fix ci
v-jiaodi Sep 10, 2024
94e8cb4
Merge branch 'main' of https://github.com/Azure/autorest.typescript i…
v-jiaodi Sep 10, 2024
d208d9b
Merge branch 'main' of https://github.com/Azure/autorest.typescript i…
v-jiaodi Sep 19, 2024
05f4c5d
update to latest code
v-jiaodi Sep 19, 2024
610c535
fix unit test error
v-jiaodi Sep 19, 2024
c25ed7b
fix ci
v-jiaodi Sep 19, 2024
ff18714
Merge branch 'main' of https://github.com/Azure/autorest.typescript i…
v-jiaodi Sep 26, 2024
1211c53
update
v-jiaodi Sep 26, 2024
52439cd
update description to doc
v-jiaodi Sep 26, 2024
0b2a673
fix ci
v-jiaodi Sep 26, 2024
09cf928
Merge branch 'main' of https://github.com/Azure/autorest.typescript i…
v-jiaodi Sep 29, 2024
6c4b705
Merge branch 'main' of https://github.com/Azure/autorest.typescript i…
v-jiaodi Oct 8, 2024
469058d
update to latest
v-jiaodi Oct 8, 2024
fe660f8
Merge branch 'main' of https://github.com/Azure/autorest.typescript i…
v-jiaodi Oct 10, 2024
eb8201e
update tcgc to latest
v-jiaodi Oct 10, 2024
c042b8d
Merge branch 'main' of https://github.com/Azure/autorest.typescript i…
v-jiaodi Oct 12, 2024
6283c91
update
v-jiaodi Oct 12, 2024
c7e26f1
fix ci
v-jiaodi Oct 12, 2024
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
19 changes: 17 additions & 2 deletions common/config/rush/pnpm-config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/rush/v5/pnpm-config.schema.json",
"useWorkspaces": true,
"strictPeerDependencies": false
}
"strictPeerDependencies": false,
"globalOverrides": {
"@typespec/compiler": "0.62.0-dev.4",
"@typespec/http": "0.62.0-dev.3",
"@typespec/openapi": "0.62.0-dev.2",
"@typespec/rest": "0.62.0-dev.2",
"@typespec/versioning": "0.62.0-dev.2",
"@typespec/xml": "0.62.0-dev.2",
"@azure-tools/typespec-client-generator-core": "0.48.0-dev.2",
"@azure-tools/typespec-azure-core": "0.48.0-dev.1",
"@azure-tools/typespec-azure-resource-manager": "0.48.0-dev.1",
"@azure-tools/typespec-azure-rulesets": "0.48.0-dev.1",
"@azure-tools/typespec-autorest": "0.48.0-dev.1",
"@typespec/eslint-config-typespec": "0.56.0-dev.1",
"@typespec/library-linter": "0.62.0-dev.2"
}
}
445 changes: 210 additions & 235 deletions common/config/rush/pnpm-lock.yaml

Large diffs are not rendered by default.

22 changes: 11 additions & 11 deletions packages/typespec-test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@
"type": "module",
"dependencies": {
"@azure-tools/typespec-ts": "workspace:^0.33.0",
"@typespec/openapi": ">=0.60.0 <1.0.0",
"@azure-tools/typespec-autorest": ">=0.46.0 <1.0.0",
"@typespec/openapi3": ">=0.60.0 <1.0.0",
"@azure-tools/typespec-azure-core": ">=0.46.0 <1.0.0",
"@azure-tools/typespec-client-generator-core": ">=0.46.1 <1.0.0",
"@azure-tools/typespec-azure-resource-manager": ">=0.46.0 <1.0.0",
"@typespec/compiler": ">=0.60.0 <1.0.0",
"@typespec/http": ">=0.60.0 <1.0.0",
"@typespec/rest": ">=0.60.0 <1.0.0",
"@typespec/versioning": ">=0.60.0 <1.0.0",
"@typespec/openapi": "0.62.0-dev.2",
"@azure-tools/typespec-autorest": "0.48.0-dev.1",
"@typespec/openapi3": ">=0.59.0 <1.0.0",
"@azure-tools/typespec-azure-core": "0.48.0-dev.1",
"@azure-tools/typespec-client-generator-core": "0.48.0-dev.2",
"@azure-tools/typespec-azure-resource-manager": "0.48.0-dev.1",
"@typespec/compiler": "0.62.0-dev.4",
"@typespec/http": "0.62.0-dev.3",
"@typespec/rest": "0.62.0-dev.2",
"@typespec/versioning": "0.62.0-dev.2",
"prettier": "^3.1.0"
},
"devDependencies": {
Expand All @@ -31,4 +31,4 @@
"check:tree": "node ./eng/check-clean-tree.js"
},
"private": true
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ model ChatRequestUserMessage extends ChatRequestMessage {
@doc("The chat role associated with this message, which is always 'user' for user messages.")
role: ChatRole.user;

@added(ServiceApiVersions.v2024_02_15_Preview)
@doc("The contents of the user message, with available input types varying by selected model.")
MaryGao marked this conversation as resolved.
Show resolved Hide resolved
@added(ServiceApiVersions.v2024_02_15_Preview)
content: ChatMessageContent;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -385,8 +385,7 @@
"required": true,
"schema": {
"type": "string"
},
"explode": false
}
}
],
"responses": {
Expand Down Expand Up @@ -465,8 +464,7 @@
"required": true,
"schema": {
"type": "string"
},
"explode": false
}
}
],
"responses": {
Expand Down Expand Up @@ -503,8 +501,7 @@
"type": "integer",
"format": "int32",
"default": 50
},
"explode": false
}
},
"TodoItems.PaginationControls.offset": {
"name": "offset",
Expand All @@ -515,8 +512,7 @@
"type": "integer",
"format": "int32",
"default": 0
},
"explode": false
}
}
},
"schemas": {
Expand Down
32 changes: 16 additions & 16 deletions packages/typespec-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@
"@azure-tools/cadl-ranch-specs": "^0.37.1",
"@azure-tools/cadl-ranch": "^0.14.5",
"@azure-tools/cadl-ranch-api": "^0.4.6",
"@azure-tools/typespec-autorest": ">=0.46.0 <1.0.0",
"@azure-tools/typespec-azure-core": ">=0.46.0 <1.0.0",
"@azure-tools/typespec-azure-resource-manager": ">=0.46.0 <1.0.0",
"@azure-tools/typespec-client-generator-core": ">=0.46.1 <1.0.0",
"@azure-tools/typespec-autorest": "0.48.0-dev.1",
"@azure-tools/typespec-azure-core": "0.48.0-dev.1",
"@azure-tools/typespec-azure-resource-manager": "0.48.0-dev.1",
"@azure-tools/typespec-client-generator-core": "0.48.0-dev.2",
"@azure/abort-controller": "^2.1.2",
"@azure/core-auth": "^1.6.0",
"@azure/core-lro": "^3.1.0",
Expand All @@ -85,12 +85,12 @@
"@types/node": "^18.0.0",
"@typescript-eslint/eslint-plugin": "^6.8.0",
"@typescript-eslint/parser": "^6.8.0",
"@typespec/compiler": ">=0.60.0 <1.0.0",
"@typespec/http": ">=0.60.0 <1.0.0",
"@typespec/openapi": ">=0.60.0, <1.0.0",
"@typespec/rest": ">=0.60.0 <1.0.0",
"@typespec/compiler": "0.62.0-dev.4",
"@typespec/http": "0.62.0-dev.3",
"@typespec/openapi": "0.62.0-dev.2",
"@typespec/rest": "0.62.0-dev.2",
"@typespec/ts-http-runtime": "1.0.0-alpha.20240314.2",
"@typespec/versioning": ">=0.60.0 <1.0.0",
"@typespec/versioning": "0.62.0-dev.2",
"chai": "^4.3.6",
"chalk": "^4.0.0",
"cross-env": "^7.0.3",
Expand All @@ -110,12 +110,12 @@
"tsx": "^4.16.5"
},
"peerDependencies": {
"@azure-tools/typespec-azure-core": ">=0.46.0 <1.0.0",
"@azure-tools/typespec-client-generator-core": ">=0.46.1 <1.0.0",
"@typespec/compiler": ">=0.60.0 <1.0.0",
"@typespec/http": ">=0.60.0 <1.0.0",
"@typespec/rest": ">=0.60.0 <1.0.0",
"@typespec/versioning": ">=0.60.0 <1.0.0"
"@azure-tools/typespec-azure-core": "0.48.0-dev.1",
"@azure-tools/typespec-client-generator-core": "0.48.0-dev.2",
"@typespec/compiler": "0.62.0-dev.4",
"@typespec/http": "0.62.0-dev.3",
"@typespec/rest": "0.62.0-dev.2",
"@typespec/versioning": "0.62.0-dev.2"
},
"dependencies": {
"@azure-tools/rlc-common": "workspace:^0.33.0",
Expand Down Expand Up @@ -143,4 +143,4 @@
"url": "https://github.com/Azure/autorest.typescript/issues"
},
"homepage": "https://github.com/Azure/autorest.typescript/tree/main/packages/typespec-ts/"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,44 @@ import { RawHttpHeaders } from '@azure/core-rest-pipeline';
import { RequestParameters } from '@azure-rest/core-client';
import { StreamableMethod } from '@azure-rest/core-client';

export declare interface AccessRule {
name?: string;
properties?: AccessRuleProperties;
}

export declare type AccessRuleDirection = string;

export declare type AccessRuleDirectionOutput = string;

export declare interface AccessRuleOutput {
name?: string;
properties?: AccessRulePropertiesOutput;
}

export declare interface AccessRuleProperties {
direction?: AccessRuleDirection;
addressPrefixes?: string[];
subscriptions?: {
id?: string;
}[];
networkSecurityPerimeters?: Array<NetworkSecurityPerimeter>;
fullyQualifiedDomainNames?: string[];
emailAddresses?: string[];
phoneNumbers?: string[];
}

export declare interface AccessRulePropertiesOutput {
direction?: AccessRuleDirectionOutput;
addressPrefixes?: string[];
subscriptions?: {
id?: string;
}[];
networkSecurityPerimeters?: Array<NetworkSecurityPerimeterOutput>;
fullyQualifiedDomainNames?: string[];
emailAddresses?: string[];
phoneNumbers?: string[];
}

export declare type AzureArmResourceClient = Client & {
path: Routes;
};
Expand Down Expand Up @@ -86,6 +124,10 @@ export declare interface IdentityOutput {
type?: ResourceIdentityTypeOutput;
}

export declare type IssueType = string;

export declare type IssueTypeOutput = string;

export declare function isUnexpected(response: TopLevelTrackedResourcesGet200Response | TopLevelTrackedResourcesGetDefaultResponse): response is TopLevelTrackedResourcesGetDefaultResponse;

export declare function isUnexpected(response: TopLevelTrackedResourcesCreateOrReplace200Response | TopLevelTrackedResourcesCreateOrReplace201Response | TopLevelTrackedResourcesCreateOrReplaceLogicalResponse | TopLevelTrackedResourcesCreateOrReplaceDefaultResponse): response is TopLevelTrackedResourcesCreateOrReplaceDefaultResponse;
Expand Down Expand Up @@ -263,6 +305,60 @@ export declare interface NestedProxyResourcesUpdateLogicalResponse extends HttpR

export declare type NestedProxyResourcesUpdateParameters = NestedProxyResourcesUpdateBodyParam & RequestParameters;

export declare interface NetworkSecurityPerimeter {
id?: string;
perimeterGuid?: string;
location?: string;
}

export declare interface NetworkSecurityPerimeterConfiguration extends ProxyResource {
properties?: NetworkSecurityPerimeterConfigurationProperties;
}

export declare interface NetworkSecurityPerimeterConfigurationOutput extends ProxyResourceOutput {
properties?: NetworkSecurityPerimeterConfigurationPropertiesOutput;
}

export declare interface NetworkSecurityPerimeterConfigurationProperties {
networkSecurityPerimeter?: NetworkSecurityPerimeter;
resourceAssociation?: ResourceAssociation;
profile?: NetworkSecurityProfile;
}

export declare interface NetworkSecurityPerimeterConfigurationPropertiesOutput {
readonly provisioningState?: NetworkSecurityPerimeterConfigurationProvisioningStateOutput;
readonly provisioningIssues?: Array<ProvisioningIssueOutput>;
networkSecurityPerimeter?: NetworkSecurityPerimeterOutput;
resourceAssociation?: ResourceAssociationOutput;
profile?: NetworkSecurityProfileOutput;
}

export declare type NetworkSecurityPerimeterConfigurationProvisioningState = string;

export declare type NetworkSecurityPerimeterConfigurationProvisioningStateOutput = string;

export declare interface NetworkSecurityPerimeterOutput {
id?: string;
perimeterGuid?: string;
location?: string;
}

export declare interface NetworkSecurityProfile {
name?: string;
accessRulesVersion?: number;
accessRules?: Array<AccessRule>;
diagnosticSettingsVersion?: number;
enabledLogCategories?: string[];
}

export declare interface NetworkSecurityProfileOutput {
name?: string;
accessRulesVersion?: number;
accessRules?: Array<AccessRuleOutput>;
diagnosticSettingsVersion?: number;
enabledLogCategories?: string[];
}

export declare interface NotificationDetails {
message: string;
urgent: boolean;
Expand Down Expand Up @@ -371,6 +467,25 @@ export declare interface PrivateLinkServiceConnectionStateOutput {
actionsRequired?: string;
}

export declare interface ProvisioningIssue {
}

export declare interface ProvisioningIssueOutput {
readonly name?: string;
readonly properties?: ProvisioningIssuePropertiesOutput;
}

export declare interface ProvisioningIssueProperties {
}

export declare interface ProvisioningIssuePropertiesOutput {
readonly issueType?: IssueTypeOutput;
readonly severity?: SeverityOutput;
readonly description?: string;
readonly suggestedResourceIds?: string[];
readonly suggestedAccessRules?: Array<AccessRuleOutput>;
}

export declare type ProvisioningState = string;

export declare type ProvisioningStateOutput = string;
Expand All @@ -384,6 +499,20 @@ export declare interface ProxyResourceOutput extends ResourceOutput {
export declare interface Resource {
}

export declare interface ResourceAssociation {
name?: string;
accessMode?: ResourceAssociationAccessMode;
}

export declare type ResourceAssociationAccessMode = string;

export declare type ResourceAssociationAccessModeOutput = string;

export declare interface ResourceAssociationOutput {
name?: string;
accessMode?: ResourceAssociationAccessModeOutput;
}

export declare type ResourceIdentityType = "SystemAssigned";

export declare type ResourceIdentityTypeOutput = "SystemAssigned";
Expand Down Expand Up @@ -428,6 +557,10 @@ export declare interface Routes {
(path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Azure.ResourceManager.Models.Resources/singletonTrackedResources", subscriptionId: string, resourceGroupName: string): SingletonTrackedResourcesListByResourceGroup;
}

export declare type Severity = string;

export declare type SeverityOutput = string;

export declare interface SimplePollerLike<TState extends OperationState<TResult>, TResult> {
isDone(): boolean;
getOperationState(): TState;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export declare enum KnownManagedServiceIdentityType {
None = "None",
SystemAssigned = "SystemAssigned",
UserAssigned = "UserAssigned",
SystemAndUserAssignedV3 = "SystemAssigned,UserAssigned"
"SystemAssigned,UserAssigned" = "SystemAssigned,UserAssigned"
}

export declare class ManagedIdentityClient {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ async function widgetsCreateOrUpdateWidget() {
const credential = new DefaultAzureCredential();
const client = new WidgetManagerClient(credential);
const result = await client.widgets.createOrUpdateWidget("name1", {
manufacturerId: "manufacturer id1",
manufacturerId: "manufacturer id1"
});
console.log(result);
}
Expand Down Expand Up @@ -191,7 +191,7 @@ async function widgetsListWidgets() {
for await (let item of client.widgets.listWidgets({
top: 8,
skip: 15,
maxpagesize: 27,
maxpagesize: 27
})) {
resArray.push(item);
}
Expand Down
Loading