Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
04663a3
init files from conversion
kashifkhan Jul 9, 2025
99cd0c1
initial checklist fixes
kashifkhan Jul 9, 2025
b59baaf
fix service decorator info
kashifkhan Jul 9, 2025
00c8a06
enum to union in models
kashifkhan Jul 9, 2025
ea0d5e2
newly compiled files
kashifkhan Jul 9, 2025
55bba96
add linter
kashifkhan Jul 9, 2025
830f1cd
initial warnings fixes
kashifkhan Jul 9, 2025
e1d059e
updates
kashifkhan Jul 9, 2025
9e7fc82
fix
kashifkhan Jul 9, 2025
3c95c61
suppress warnings
kashifkhan Jul 9, 2025
3b43716
suppress for std ops
kashifkhan Jul 9, 2025
a3186c8
emitter updates
kashifkhan Jul 9, 2025
cc62ebf
rename interface name to match output
kashifkhan Jul 14, 2025
f4c3d40
adjust ns
kashifkhan Jul 14, 2025
2dfffcf
mod output dir location
kashifkhan Jul 14, 2025
3db27c1
add tokencredential
kashifkhan Jul 15, 2025
de84be8
ignore mqtt for spelling
kashifkhan Jul 15, 2025
e397e7b
prettier fixes
kashifkhan Jul 15, 2025
8ff7c58
match the orig doc
kashifkhan Jul 21, 2025
57bbcb5
client customizations
kashifkhan Jul 21, 2025
ac23443
update method name
kashifkhan Jul 21, 2025
0843f95
update version info
kashifkhan Jul 21, 2025
5e0246a
rename operation to match old
kashifkhan Jul 21, 2025
7309f71
fix package pprint name
kashifkhan Jul 22, 2025
5ed16b7
align error codes and success
kashifkhan Jul 22, 2025
715aeaf
fix kwarg names
kashifkhan Jul 22, 2025
13e6ac8
rename operation to match
kashifkhan Jul 22, 2025
e48adbe
update ns name
kashifkhan Jul 22, 2025
7587f30
mark model as pagedResult
kashifkhan Jul 22, 2025
9593d5d
removed unused model
kashifkhan Jul 22, 2025
dc166ec
removed openapi import
kashifkhan Jul 22, 2025
fd8e047
leave query as is
kashifkhan Jul 22, 2025
47b8554
fix listconn op to be a list, fix model item
kashifkhan Jul 22, 2025
dad62e9
clean up tsp config
kashifkhan Jul 22, 2025
44e52ba
fix typo
kashifkhan Jul 22, 2025
84c08af
info for other languages, commented out for now
kashifkhan Jul 22, 2025
be1cb27
add suppressions for backwards comp
kashifkhan Jul 22, 2025
8d6250c
removed unused imports
kashifkhan Jul 22, 2025
5bd8052
remove interfaces, remove client location
kashifkhan Jul 22, 2025
8467a12
add connection_id to groupmember
kashifkhan Jul 31, 2025
9b674da
fix missing json ref
kashifkhan Aug 14, 2025
23c15f3
add new json file
kashifkhan Aug 15, 2025
e9422e5
changes to tspconfig
kashifkhan Aug 15, 2025
651a6e0
changes for other langs
kashifkhan Aug 15, 2025
9b7c4d2
add suppressions
kashifkhan Aug 15, 2025
06a8af0
rename
kashifkhan Aug 15, 2025
77fb0ee
add csharp pckage name
kashifkhan Aug 15, 2025
e3eb8f5
tsp config changes
kashifkhan Aug 15, 2025
13f1672
add reference
kashifkhan Aug 15, 2025
1f255b2
add ts package dir
kashifkhan Aug 15, 2025
4ae8566
remove additional files
kashifkhan Aug 15, 2025
f6c88af
reset readme file
kashifkhan Aug 15, 2025
aa8419e
new namespace
kashifkhan Aug 15, 2025
1e896cb
remove old swagger
kashifkhan Aug 15, 2025
286c1fe
add new swagger and examples
kashifkhan Aug 15, 2025
235488a
point readme to new swagger
kashifkhan Aug 15, 2025
3efd0fb
fix readme
kashifkhan Aug 15, 2025
635aa4c
some minor changes
kashifkhan Aug 18, 2025
6f13575
align response codes with openapi
kashifkhan Aug 18, 2025
ba04a50
align response codes
kashifkhan Aug 18, 2025
adba284
update to compliant names
kashifkhan Aug 18, 2025
11e6f1c
try to fix model validation byte error
kashifkhan Aug 18, 2025
da75b0d
fix byte validation error
kashifkhan Aug 18, 2025
4f59e9a
fix deprecation error
kashifkhan Aug 18, 2025
6dd5515
fix validation
kashifkhan Aug 18, 2025
78ae894
keep the old swagger name
kashifkhan Aug 19, 2025
d915ee7
readme update for swagger rename
kashifkhan Aug 19, 2025
45867e0
small fixes
kashifkhan Aug 19, 2025
ca5c664
formatting
kashifkhan Aug 19, 2025
eb73a9b
fix js tspconfig
kashifkhan Aug 19, 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
19 changes: 19 additions & 0 deletions specification/webpubsub/Azure.Messaging.WebPubSub/client.tsp
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import "./main.tsp";
import "@azure-tools/typespec-client-generator-core";

using Azure.ClientGenerator.Core;

namespace Customizations;

/** Client options for Azure Web PubSub. */
model WebPubSubClientOptions {
/** Target hub name, which should start with alphabetic characters and only contain
alpha-numeric characters or underscore. */
hub: string;
}

@@clientInitialization(WebPubSub,
{
parameters: WebPubSubClientOptions,
}
);
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"parameters": {
"api-version": "2024-12-01"
},
"responses": {
"204": {}
},
"operationId": "GetServiceStatus",
"title": "GetServiceStatus"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"parameters": {
"api-version": "2024-12-01",
"connectionId": "connection1",
"group": "group1",
"hub": "hub1"
},
"responses": {
"200": {}
},
"operationId": "AddConnectionToGroup",
"title": "AddConnectionToGroup"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"parameters": {
"api-version": "2024-12-01",
"groupsToAdd": {
"filter": "startswith(userId, 'listener-')",
"groups": [
"group1",
"group2"
]
},
"hub": "hub1"
},
"responses": {
"204": {}
},
"operationId": "AddConnectionsToGroups",
"title": "AddConnectionsToGroups"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"parameters": {
"api-version": "2024-12-01",
"group": "group1",
"hub": "hub1",
"userId": "user1"
},
"responses": {
"200": {}
},
"operationId": "AddUserToGroup",
"title": "AddUserToGroup"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"parameters": {
"api-version": "2024-12-01",
"connectionId": "connection1",
"hub": "hub1",
"permission": "joinLeaveGroup",
"targetName": "group1"
},
"responses": {
"200": {},
"404": {}
},
"operationId": "CheckPermission",
"title": "CheckPermission"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"parameters": {
"api-version": "2024-12-01",
"hub": "hub1",
"reason": "Close reason"
},
"responses": {
"204": {}
},
"operationId": "CloseAllConnections",
"title": "CloseAllConnections"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"parameters": {
"api-version": "2024-12-01",
"connectionId": "connection1",
"hub": "hub1",
"reason": "Close reason"
},
"responses": {
"204": {}
},
"operationId": "CloseConnection",
"title": "CloseConnection"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"parameters": {
"api-version": "2024-12-01",
"group": "group1",
"hub": "hub1",
"reason": "Close reason"
},
"responses": {
"204": {}
},
"operationId": "CloseGroupConnections",
"title": "CloseGroupConnections"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"parameters": {
"api-version": "2024-12-01",
"hub": "hub1",
"reason": "Close reason",
"userId": "user1"
},
"responses": {
"204": {}
},
"operationId": "CloseUserConnections",
"title": "CloseUserConnections"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"parameters": {
"api-version": "2024-12-01",
"connectionId": "connection1",
"hub": "hub1"
},
"responses": {
"200": {},
"404": {}
},
"operationId": "ConnectionExists",
"title": "ConnectionExists"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"parameters": {
"api-version": "2024-12-01",
"clientType": "MQTT",
"hub": "hub1",
"minutesToExpire": 5,
"userId": "user1"
},
"responses": {
"200": {
"body": {
"token": "ABCDEFG.ABC.ABC"
}
}
},
"operationId": "GenerateClientToken",
"title": "GenerateClientToken"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"parameters": {
"api-version": "2024-12-01",
"connectionId": "connection1",
"hub": "hub1",
"permission": "joinLeaveGroup",
"targetName": "group1"
},
"responses": {
"200": {}
},
"operationId": "GrantPermission",
"title": "GrantPermission"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"parameters": {
"api-version": "2024-12-01",
"group": "group1",
"hub": "hub1"
},
"responses": {
"200": {},
"404": {}
},
"operationId": "GroupExists",
"title": "GroupExists"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"parameters": {
"api-version": "2024-12-01",
"group": "group1",
"hub": "hub1",
"maxpagesize": 200,
"top": 1000
},
"responses": {
"200": {
"body": {
"nextLink": "https://serviceendpoint/api/hubs/hub1/groups/g1/connections?top=1000&maxpagesize=200&continuationToken=token",
"value": [
{
"connectionId": "c1",
"userId": "u1"
},
{
"connectionId": "c2",
"userId": "u2"
}
]
}
}
},
"operationId": "ListConnectionsInGroup",
"title": "ListConnectionsInGroup"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"parameters": {
"api-version": "2024-12-01",
"connectionId": "connection1",
"hub": "hub1"
},
"responses": {
"204": {}
},
"operationId": "RemoveConnectionFromAllGroups",
"title": "RemoveConnectionFromAllGroups"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"parameters": {
"api-version": "2024-12-01",
"connectionId": "connection1",
"group": "group1",
"hub": "hub1"
},
"responses": {
"204": {}
},
"operationId": "RemoveConnectionFromGroup",
"title": "RemoveConnectionFromGroup"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"parameters": {
"api-version": "2024-12-01",
"groupsToRemove": {
"filter": "startswith(userId, 'listener-')",
"groups": [
"group1",
"group2"
]
},
"hub": "hub1"
},
"responses": {
"204": {}
},
"operationId": "RemoveConnectionsFromGroups",
"title": "RemoveConnectionsFromGroups"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"parameters": {
"api-version": "2024-12-01",
"hub": "hub1",
"userId": "user1"
},
"responses": {
"204": {}
},
"operationId": "RemoveUserFromAllGroups",
"title": "RemoveUserFromAllGroups"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"parameters": {
"api-version": "2024-12-01",
"group": "group1",
"hub": "hub1",
"userId": "user1"
},
"responses": {
"204": {}
},
"operationId": "RemoveUserFromGroup",
"title": "RemoveUserFromGroup"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"parameters": {
"api-version": "2024-12-01",
"connectionId": "connection1",
"hub": "hub1",
"permission": "joinLeaveGroup",
"targetName": "group1"
},
"responses": {
"204": {}
},
"operationId": "RevokePermission",
"title": "RevokePermission"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"parameters": {
"api-version": "2024-12-01",
"filter": "startswith(userId, 'listener-')",
"hub": "hub1",
"message": "TWVzc2FnZSB0byBzZW5k",
"messageTtlSeconds": 15
},
"responses": {
"204": {}
},
"operationId": "SendToAll",
"title": "SendToAll"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"parameters": {
"api-version": "2024-12-01",
"connectionId": "connection1",
"hub": "hub1",
"message": "TWVzc2FnZSB0byBzZW5k",
"messageTtlSeconds": 15
},
"responses": {
"204": {}
},
"operationId": "SendToConnection",
"title": "SendToConnection"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"parameters": {
"api-version": "2024-12-01",
"filter": "startswith(userId, 'listener-')",
"group": "group1",
"hub": "hub1",
"message": "TWVzc2FnZSB0byBzZW5k",
"messageTtlSeconds": 15
},
"responses": {
"204": {}
},
"operationId": "SendToGroup",
"title": "SendToGroup"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"parameters": {
"api-version": "2024-12-01",
"filter": "startswith(userId, 'listener-')",
"hub": "hub1",
"message": "TWVzc2FnZSB0byBzZW5k",
"messageTtlSeconds": 15,
"userId": "user1"
},
"responses": {
"204": {}
},
"operationId": "SendToUser",
"title": "SendToUser"
}
Loading
Loading