@azure/web-pubsub 1.1.4-alpha.20241119.1 → 1.1.4-alpha.20241120.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (205) hide show
  1. package/dist/commonjs/generated/generatedClient.d.ts +19 -0
  2. package/dist/commonjs/generated/generatedClient.d.ts.map +1 -0
  3. package/dist/commonjs/generated/generatedClient.js +76 -0
  4. package/dist/commonjs/generated/generatedClient.js.map +1 -0
  5. package/dist/commonjs/generated/generatedClientContext.d.ts +14 -0
  6. package/dist/commonjs/generated/generatedClientContext.d.ts.map +1 -0
  7. package/dist/commonjs/generated/generatedClientContext.js +46 -0
  8. package/dist/commonjs/generated/generatedClientContext.js.map +1 -0
  9. package/dist/commonjs/generated/index.d.ts +4 -0
  10. package/dist/commonjs/generated/index.d.ts.map +1 -0
  11. package/dist/commonjs/generated/index.js +16 -0
  12. package/dist/commonjs/generated/index.js.map +1 -0
  13. package/dist/commonjs/generated/models/index.d.ts +323 -0
  14. package/dist/commonjs/generated/models/index.d.ts.map +1 -0
  15. package/dist/commonjs/generated/models/index.js +27 -0
  16. package/dist/commonjs/generated/models/index.js.map +1 -0
  17. package/dist/commonjs/generated/models/mappers.d.ts +30 -0
  18. package/dist/commonjs/generated/models/mappers.d.ts.map +1 -0
  19. package/dist/commonjs/generated/models/mappers.js +463 -0
  20. package/dist/commonjs/generated/models/mappers.js.map +1 -0
  21. package/dist/commonjs/generated/models/parameters.d.ts +31 -0
  22. package/dist/commonjs/generated/models/parameters.d.ts.map +1 -0
  23. package/dist/commonjs/generated/models/parameters.js +335 -0
  24. package/dist/commonjs/generated/models/parameters.js.map +1 -0
  25. package/dist/commonjs/generated/operations/healthApi.d.ts +18 -0
  26. package/dist/commonjs/generated/operations/healthApi.d.ts.map +1 -0
  27. package/dist/commonjs/generated/operations/healthApi.js +43 -0
  28. package/dist/commonjs/generated/operations/healthApi.js.map +1 -0
  29. package/dist/commonjs/generated/operations/index.d.ts +3 -0
  30. package/dist/commonjs/generated/operations/index.d.ts.map +1 -0
  31. package/dist/commonjs/generated/operations/index.js +13 -0
  32. package/dist/commonjs/generated/operations/index.js.map +1 -0
  33. package/dist/commonjs/generated/operations/webPubSub.d.ts +249 -0
  34. package/dist/commonjs/generated/operations/webPubSub.d.ts.map +1 -0
  35. package/dist/commonjs/generated/operations/webPubSub.js +874 -0
  36. package/dist/commonjs/generated/operations/webPubSub.js.map +1 -0
  37. package/dist/commonjs/generated/operationsInterfaces/healthApi.d.ts +10 -0
  38. package/dist/commonjs/generated/operationsInterfaces/healthApi.d.ts.map +1 -0
  39. package/dist/commonjs/generated/operationsInterfaces/healthApi.js +10 -0
  40. package/dist/commonjs/generated/operationsInterfaces/healthApi.js.map +1 -0
  41. package/dist/commonjs/generated/operationsInterfaces/index.d.ts +3 -0
  42. package/dist/commonjs/generated/operationsInterfaces/index.d.ts.map +1 -0
  43. package/dist/commonjs/generated/operationsInterfaces/index.js +13 -0
  44. package/dist/commonjs/generated/operationsInterfaces/index.js.map +1 -0
  45. package/dist/commonjs/generated/operationsInterfaces/webPubSub.d.ts +224 -0
  46. package/dist/commonjs/generated/operationsInterfaces/webPubSub.d.ts.map +1 -0
  47. package/dist/commonjs/generated/operationsInterfaces/webPubSub.js +10 -0
  48. package/dist/commonjs/generated/operationsInterfaces/webPubSub.js.map +1 -0
  49. package/dist/commonjs/groupClient.d.ts +232 -0
  50. package/dist/commonjs/groupClient.d.ts.map +1 -0
  51. package/dist/commonjs/groupClient.js +101 -0
  52. package/dist/commonjs/groupClient.js.map +1 -0
  53. package/dist/commonjs/hubClient.d.ts +478 -0
  54. package/dist/commonjs/hubClient.d.ts.map +1 -0
  55. package/dist/commonjs/hubClient.js +372 -0
  56. package/dist/commonjs/hubClient.js.map +1 -0
  57. package/dist/commonjs/index.d.ts +5 -0
  58. package/dist/commonjs/index.d.ts.map +1 -0
  59. package/dist/commonjs/index.js +12 -0
  60. package/dist/commonjs/index.js.map +1 -0
  61. package/dist/commonjs/logger.d.ts +5 -0
  62. package/dist/commonjs/logger.d.ts.map +1 -0
  63. package/dist/commonjs/logger.js +11 -0
  64. package/dist/commonjs/logger.js.map +1 -0
  65. package/dist/commonjs/package.json +3 -0
  66. package/dist/commonjs/parseConnectionString.d.ts +8 -0
  67. package/dist/commonjs/parseConnectionString.d.ts.map +1 -0
  68. package/dist/commonjs/parseConnectionString.js +34 -0
  69. package/dist/commonjs/parseConnectionString.js.map +1 -0
  70. package/dist/commonjs/reverseProxyPolicy.d.ts +9 -0
  71. package/dist/commonjs/reverseProxyPolicy.d.ts.map +1 -0
  72. package/dist/commonjs/reverseProxyPolicy.js +25 -0
  73. package/dist/commonjs/reverseProxyPolicy.js.map +1 -0
  74. package/dist/commonjs/tracing.d.ts +3 -0
  75. package/dist/commonjs/tracing.d.ts.map +1 -0
  76. package/dist/commonjs/tracing.js +12 -0
  77. package/dist/commonjs/tracing.js.map +1 -0
  78. package/dist/commonjs/tsdoc-metadata.json +11 -0
  79. package/dist/commonjs/utils.d.ts +29 -0
  80. package/dist/commonjs/utils.d.ts.map +1 -0
  81. package/dist/commonjs/utils.js +73 -0
  82. package/dist/commonjs/utils.js.map +1 -0
  83. package/dist/commonjs/webPubSubCredentialPolicy.d.ts +13 -0
  84. package/dist/commonjs/webPubSubCredentialPolicy.d.ts.map +1 -0
  85. package/dist/commonjs/webPubSubCredentialPolicy.js +32 -0
  86. package/dist/commonjs/webPubSubCredentialPolicy.js.map +1 -0
  87. package/dist/esm/generated/generatedClient.d.ts +19 -0
  88. package/dist/esm/generated/generatedClient.d.ts.map +1 -0
  89. package/{dist-esm/src → dist/esm}/generated/generatedClient.js +1 -1
  90. package/dist/esm/generated/generatedClient.js.map +1 -0
  91. package/dist/esm/generated/generatedClientContext.d.ts +14 -0
  92. package/dist/esm/generated/generatedClientContext.d.ts.map +1 -0
  93. package/dist/esm/generated/generatedClientContext.js.map +1 -0
  94. package/dist/esm/generated/index.d.ts +4 -0
  95. package/dist/esm/generated/index.d.ts.map +1 -0
  96. package/{dist-esm/src → dist/esm}/generated/index.js +3 -3
  97. package/dist/esm/generated/index.js.map +1 -0
  98. package/dist/esm/generated/models/index.d.ts +323 -0
  99. package/dist/esm/generated/models/index.d.ts.map +1 -0
  100. package/dist/esm/generated/models/mappers.d.ts +30 -0
  101. package/dist/esm/generated/models/mappers.d.ts.map +1 -0
  102. package/dist/esm/generated/models/parameters.d.ts +31 -0
  103. package/dist/esm/generated/models/parameters.d.ts.map +1 -0
  104. package/{dist-esm/src → dist/esm}/generated/models/parameters.js +1 -1
  105. package/dist/esm/generated/models/parameters.js.map +1 -0
  106. package/dist/esm/generated/operations/healthApi.d.ts +18 -0
  107. package/dist/esm/generated/operations/healthApi.d.ts.map +1 -0
  108. package/{dist-esm/src → dist/esm}/generated/operations/healthApi.js +2 -2
  109. package/dist/esm/generated/operations/healthApi.js.map +1 -0
  110. package/dist/esm/generated/operations/index.d.ts +3 -0
  111. package/dist/esm/generated/operations/index.d.ts.map +1 -0
  112. package/{dist-esm/src/generated/operationsInterfaces → dist/esm/generated/operations}/index.js +2 -2
  113. package/dist/esm/generated/operations/index.js.map +1 -0
  114. package/dist/esm/generated/operations/webPubSub.d.ts +249 -0
  115. package/dist/esm/generated/operations/webPubSub.d.ts.map +1 -0
  116. package/{dist-esm/src → dist/esm}/generated/operations/webPubSub.js +2 -2
  117. package/dist/esm/generated/operations/webPubSub.js.map +1 -0
  118. package/dist/esm/generated/operationsInterfaces/healthApi.d.ts +10 -0
  119. package/dist/esm/generated/operationsInterfaces/healthApi.d.ts.map +1 -0
  120. package/{dist-esm/src → dist/esm}/generated/operationsInterfaces/healthApi.js.map +1 -1
  121. package/dist/esm/generated/operationsInterfaces/index.d.ts +3 -0
  122. package/dist/esm/generated/operationsInterfaces/index.d.ts.map +1 -0
  123. package/{dist-esm/src/generated/operations → dist/esm/generated/operationsInterfaces}/index.js +2 -2
  124. package/dist/esm/generated/operationsInterfaces/index.js.map +1 -0
  125. package/dist/esm/generated/operationsInterfaces/webPubSub.d.ts +224 -0
  126. package/dist/esm/generated/operationsInterfaces/webPubSub.d.ts.map +1 -0
  127. package/dist/esm/generated/operationsInterfaces/webPubSub.js.map +1 -0
  128. package/dist/esm/groupClient.d.ts +232 -0
  129. package/dist/esm/groupClient.d.ts.map +1 -0
  130. package/{dist-esm/src → dist/esm}/groupClient.js +2 -2
  131. package/dist/esm/groupClient.js.map +1 -0
  132. package/dist/esm/hubClient.d.ts +478 -0
  133. package/dist/esm/hubClient.d.ts.map +1 -0
  134. package/{dist-esm/src → dist/esm}/hubClient.js +9 -9
  135. package/dist/esm/hubClient.js.map +1 -0
  136. package/dist/esm/index.d.ts +5 -0
  137. package/dist/esm/index.d.ts.map +1 -0
  138. package/{dist-esm/src → dist/esm}/index.js +2 -2
  139. package/dist/esm/index.js.map +1 -0
  140. package/dist/esm/logger.d.ts +5 -0
  141. package/dist/esm/logger.d.ts.map +1 -0
  142. package/dist/esm/package.json +3 -0
  143. package/dist/esm/parseConnectionString.d.ts +8 -0
  144. package/dist/esm/parseConnectionString.d.ts.map +1 -0
  145. package/dist/esm/reverseProxyPolicy.d.ts +9 -0
  146. package/dist/esm/reverseProxyPolicy.d.ts.map +1 -0
  147. package/dist/esm/tracing.d.ts +3 -0
  148. package/dist/esm/tracing.d.ts.map +1 -0
  149. package/dist/esm/utils.d.ts +29 -0
  150. package/dist/esm/utils.d.ts.map +1 -0
  151. package/dist/esm/webPubSubCredentialPolicy.d.ts +13 -0
  152. package/dist/esm/webPubSubCredentialPolicy.d.ts.map +1 -0
  153. package/package.json +56 -52
  154. package/dist/index.js +0 -2441
  155. package/dist/index.js.map +0 -1
  156. package/dist-esm/samples-dev/broadcasting.js +0 -27
  157. package/dist-esm/samples-dev/broadcasting.js.map +0 -1
  158. package/dist-esm/samples-dev/directMessage.js +0 -20
  159. package/dist-esm/samples-dev/directMessage.js.map +0 -1
  160. package/dist-esm/samples-dev/managingGroups.js +0 -23
  161. package/dist-esm/samples-dev/managingGroups.js.map +0 -1
  162. package/dist-esm/src/generated/generatedClient.js.map +0 -1
  163. package/dist-esm/src/generated/generatedClientContext.js.map +0 -1
  164. package/dist-esm/src/generated/index.js.map +0 -1
  165. package/dist-esm/src/generated/models/parameters.js.map +0 -1
  166. package/dist-esm/src/generated/operations/healthApi.js.map +0 -1
  167. package/dist-esm/src/generated/operations/index.js.map +0 -1
  168. package/dist-esm/src/generated/operations/webPubSub.js.map +0 -1
  169. package/dist-esm/src/generated/operationsInterfaces/index.js.map +0 -1
  170. package/dist-esm/src/generated/operationsInterfaces/webPubSub.js.map +0 -1
  171. package/dist-esm/src/groupClient.js.map +0 -1
  172. package/dist-esm/src/hubClient.js.map +0 -1
  173. package/dist-esm/src/index.js.map +0 -1
  174. package/dist-esm/test/conn.spec.js +0 -23
  175. package/dist-esm/test/conn.spec.js.map +0 -1
  176. package/dist-esm/test/groups.spec.js +0 -138
  177. package/dist-esm/test/groups.spec.js.map +0 -1
  178. package/dist-esm/test/hubs.spec.js +0 -270
  179. package/dist-esm/test/hubs.spec.js.map +0 -1
  180. package/dist-esm/test/integration.spec.js +0 -299
  181. package/dist-esm/test/integration.spec.js.map +0 -1
  182. package/dist-esm/test/odata.spec.js +0 -15
  183. package/dist-esm/test/odata.spec.js.map +0 -1
  184. package/dist-esm/test/testEnv.js +0 -23
  185. package/dist-esm/test/testEnv.js.map +0 -1
  186. /package/{dist-esm/src → dist/esm}/generated/generatedClientContext.js +0 -0
  187. /package/{dist-esm/src → dist/esm}/generated/models/index.js +0 -0
  188. /package/{dist-esm/src → dist/esm}/generated/models/index.js.map +0 -0
  189. /package/{dist-esm/src → dist/esm}/generated/models/mappers.js +0 -0
  190. /package/{dist-esm/src → dist/esm}/generated/models/mappers.js.map +0 -0
  191. /package/{dist-esm/src → dist/esm}/generated/operationsInterfaces/healthApi.js +0 -0
  192. /package/{dist-esm/src → dist/esm}/generated/operationsInterfaces/webPubSub.js +0 -0
  193. /package/{dist-esm/src → dist/esm}/logger.js +0 -0
  194. /package/{dist-esm/src → dist/esm}/logger.js.map +0 -0
  195. /package/{dist-esm/src → dist/esm}/parseConnectionString.js +0 -0
  196. /package/{dist-esm/src → dist/esm}/parseConnectionString.js.map +0 -0
  197. /package/{dist-esm/src → dist/esm}/reverseProxyPolicy.js +0 -0
  198. /package/{dist-esm/src → dist/esm}/reverseProxyPolicy.js.map +0 -0
  199. /package/{dist-esm/src → dist/esm}/tracing.js +0 -0
  200. /package/{dist-esm/src → dist/esm}/tracing.js.map +0 -0
  201. /package/{dist-esm/src → dist/esm}/utils.js +0 -0
  202. /package/{dist-esm/src → dist/esm}/utils.js.map +0 -0
  203. /package/{dist-esm/src → dist/esm}/webPubSubCredentialPolicy.js +0 -0
  204. /package/{dist-esm/src → dist/esm}/webPubSubCredentialPolicy.js.map +0 -0
  205. /package/{types → dist}/web-pubsub.d.ts +0 -0
@@ -0,0 +1,249 @@
1
+ import { WebPubSub } from "../operationsInterfaces/index.js";
2
+ import * as coreRestPipeline from "@azure/core-rest-pipeline";
3
+ import { GeneratedClient } from "../generatedClient.js";
4
+ import { AddToGroupsRequest, WebPubSubAddConnectionsToGroupsOptionalParams, WebPubSubCloseAllConnectionsOptionalParams, WebPubSubGenerateClientTokenOptionalParams, WebPubSubGenerateClientTokenResponse, RemoveFromGroupsRequest, WebPubSubRemoveConnectionsFromGroupsOptionalParams, ContentType, WebPubSubSendToAll$binaryOptionalParams, WebPubSubSendToAll$textOptionalParams, WebPubSubCloseConnectionOptionalParams, WebPubSubConnectionExistsOptionalParams, WebPubSubSendToConnection$binaryOptionalParams, WebPubSubSendToConnection$textOptionalParams, WebPubSubRemoveConnectionFromAllGroupsOptionalParams, WebPubSubGroupExistsOptionalParams, WebPubSubCloseGroupConnectionsOptionalParams, WebPubSubSendToGroup$binaryOptionalParams, WebPubSubSendToGroup$textOptionalParams, WebPubSubRemoveConnectionFromGroupOptionalParams, WebPubSubAddConnectionToGroupOptionalParams, WebPubSubPermission, WebPubSubRevokePermissionOptionalParams, WebPubSubCheckPermissionOptionalParams, WebPubSubGrantPermissionOptionalParams, WebPubSubUserExistsOptionalParams, WebPubSubCloseUserConnectionsOptionalParams, WebPubSubSendToUser$binaryOptionalParams, WebPubSubSendToUser$textOptionalParams, WebPubSubRemoveUserFromAllGroupsOptionalParams, WebPubSubRemoveUserFromGroupOptionalParams, WebPubSubAddUserToGroupOptionalParams } from "../models/index.js";
5
+ /** Class containing WebPubSub operations. */
6
+ export declare class WebPubSubImpl implements WebPubSub {
7
+ private readonly client;
8
+ /**
9
+ * Initialize a new instance of the class WebPubSub class.
10
+ * @param client Reference to the service client
11
+ */
12
+ constructor(client: GeneratedClient);
13
+ /**
14
+ * Add filtered connections to multiple groups.
15
+ * @param hub Target hub name, which should start with alphabetic characters and only contain
16
+ * alpha-numeric characters or underscore.
17
+ * @param groupsToAdd Target groups and connection filter.
18
+ * @param options The options parameters.
19
+ */
20
+ addConnectionsToGroups(hub: string, groupsToAdd: AddToGroupsRequest, options?: WebPubSubAddConnectionsToGroupsOptionalParams): Promise<void>;
21
+ /**
22
+ * Close the connections in the hub.
23
+ * @param hub Target hub name, which should start with alphabetic characters and only contain
24
+ * alpha-numeric characters or underscore.
25
+ * @param options The options parameters.
26
+ */
27
+ closeAllConnections(hub: string, options?: WebPubSubCloseAllConnectionsOptionalParams): Promise<void>;
28
+ /**
29
+ * Generate token for the client to connect Azure Web PubSub service.
30
+ * @param hub Target hub name, which should start with alphabetic characters and only contain
31
+ * alpha-numeric characters or underscore.
32
+ * @param options The options parameters.
33
+ */
34
+ generateClientToken(hub: string, options?: WebPubSubGenerateClientTokenOptionalParams): Promise<WebPubSubGenerateClientTokenResponse>;
35
+ /**
36
+ * Remove filtered connections from multiple groups.
37
+ * @param hub Target hub name, which should start with alphabetic characters and only contain
38
+ * alpha-numeric characters or underscore.
39
+ * @param groupsToRemove Target groups and connection filter.
40
+ * @param options The options parameters.
41
+ */
42
+ removeConnectionsFromGroups(hub: string, groupsToRemove: RemoveFromGroupsRequest, options?: WebPubSubRemoveConnectionsFromGroupsOptionalParams): Promise<void>;
43
+ /**
44
+ * Broadcast content inside request body to all the connected client connections.
45
+ * @param hub Target hub name, which should start with alphabetic characters and only contain
46
+ * alpha-numeric characters or underscore.
47
+ * @param contentType Upload file type
48
+ * @param message The payload body.
49
+ * @param options The options parameters.
50
+ */
51
+ sendToAll(hub: string, contentType: ContentType, message: coreRestPipeline.RequestBodyType, options?: WebPubSubSendToAll$binaryOptionalParams): Promise<void>;
52
+ /**
53
+ * Broadcast content inside request body to all the connected client connections.
54
+ * @param hub Target hub name, which should start with alphabetic characters and only contain
55
+ * alpha-numeric characters or underscore.
56
+ * @param contentType Upload file type
57
+ * @param message The payload body.
58
+ * @param options The options parameters.
59
+ */
60
+ sendToAll(hub: string, contentType: "text/plain", message: string, options?: WebPubSubSendToAll$textOptionalParams): Promise<void>;
61
+ /**
62
+ * Close the client connection.
63
+ * @param hub Target hub name, which should start with alphabetic characters and only contain
64
+ * alpha-numeric characters or underscore.
65
+ * @param connectionId Target connection Id.
66
+ * @param options The options parameters.
67
+ */
68
+ closeConnection(hub: string, connectionId: string, options?: WebPubSubCloseConnectionOptionalParams): Promise<void>;
69
+ /**
70
+ * Check if the connection with the given connectionId exists.
71
+ * @param hub Target hub name, which should start with alphabetic characters and only contain
72
+ * alpha-numeric characters or underscore.
73
+ * @param connectionId The connection Id.
74
+ * @param options The options parameters.
75
+ */
76
+ connectionExists(hub: string, connectionId: string, options?: WebPubSubConnectionExistsOptionalParams): Promise<void>;
77
+ /**
78
+ * Send content inside request body to the specific connection.
79
+ * @param hub Target hub name, which should start with alphabetic characters and only contain
80
+ * alpha-numeric characters or underscore.
81
+ * @param connectionId The connection Id.
82
+ * @param contentType Upload file type
83
+ * @param message The payload body.
84
+ * @param options The options parameters.
85
+ */
86
+ sendToConnection(hub: string, connectionId: string, contentType: ContentType, message: coreRestPipeline.RequestBodyType, options?: WebPubSubSendToConnection$binaryOptionalParams): Promise<void>;
87
+ /**
88
+ * Send content inside request body to the specific connection.
89
+ * @param hub Target hub name, which should start with alphabetic characters and only contain
90
+ * alpha-numeric characters or underscore.
91
+ * @param connectionId The connection Id.
92
+ * @param contentType Upload file type
93
+ * @param message The payload body.
94
+ * @param options The options parameters.
95
+ */
96
+ sendToConnection(hub: string, connectionId: string, contentType: "text/plain", message: string, options?: WebPubSubSendToConnection$textOptionalParams): Promise<void>;
97
+ /**
98
+ * Remove a connection from all groups.
99
+ * @param hub Target hub name, which should start with alphabetic characters and only contain
100
+ * alpha-numeric characters or underscore.
101
+ * @param connectionId Target connection Id.
102
+ * @param options The options parameters.
103
+ */
104
+ removeConnectionFromAllGroups(hub: string, connectionId: string, options?: WebPubSubRemoveConnectionFromAllGroupsOptionalParams): Promise<void>;
105
+ /**
106
+ * Check if there are any client connections inside the given group
107
+ * @param hub Target hub name, which should start with alphabetic characters and only contain
108
+ * alpha-numeric characters or underscore.
109
+ * @param group Target group name, which length should be greater than 0 and less than 1025.
110
+ * @param options The options parameters.
111
+ */
112
+ groupExists(hub: string, group: string, options?: WebPubSubGroupExistsOptionalParams): Promise<void>;
113
+ /**
114
+ * Close connections in the specific group.
115
+ * @param hub Target hub name, which should start with alphabetic characters and only contain
116
+ * alpha-numeric characters or underscore.
117
+ * @param group Target group name, which length should be greater than 0 and less than 1025.
118
+ * @param options The options parameters.
119
+ */
120
+ closeGroupConnections(hub: string, group: string, options?: WebPubSubCloseGroupConnectionsOptionalParams): Promise<void>;
121
+ /**
122
+ * Send content inside request body to a group of connections.
123
+ * @param hub Target hub name, which should start with alphabetic characters and only contain
124
+ * alpha-numeric characters or underscore.
125
+ * @param group Target group name, which length should be greater than 0 and less than 1025.
126
+ * @param contentType Upload file type
127
+ * @param message The payload body.
128
+ * @param options The options parameters.
129
+ */
130
+ sendToGroup(hub: string, group: string, contentType: ContentType, message: coreRestPipeline.RequestBodyType, options?: WebPubSubSendToGroup$binaryOptionalParams): Promise<void>;
131
+ /**
132
+ * Send content inside request body to a group of connections.
133
+ * @param hub Target hub name, which should start with alphabetic characters and only contain
134
+ * alpha-numeric characters or underscore.
135
+ * @param group Target group name, which length should be greater than 0 and less than 1025.
136
+ * @param contentType Upload file type
137
+ * @param message The payload body.
138
+ * @param options The options parameters.
139
+ */
140
+ sendToGroup(hub: string, group: string, contentType: "text/plain", message: string, options?: WebPubSubSendToGroup$textOptionalParams): Promise<void>;
141
+ /**
142
+ * Remove a connection from the target group.
143
+ * @param hub Target hub name, which should start with alphabetic characters and only contain
144
+ * alpha-numeric characters or underscore.
145
+ * @param group Target group name, which length should be greater than 0 and less than 1025.
146
+ * @param connectionId Target connection Id.
147
+ * @param options The options parameters.
148
+ */
149
+ removeConnectionFromGroup(hub: string, group: string, connectionId: string, options?: WebPubSubRemoveConnectionFromGroupOptionalParams): Promise<void>;
150
+ /**
151
+ * Add a connection to the target group.
152
+ * @param hub Target hub name, which should start with alphabetic characters and only contain
153
+ * alpha-numeric characters or underscore.
154
+ * @param group Target group name, which length should be greater than 0 and less than 1025.
155
+ * @param connectionId Target connection Id
156
+ * @param options The options parameters.
157
+ */
158
+ addConnectionToGroup(hub: string, group: string, connectionId: string, options?: WebPubSubAddConnectionToGroupOptionalParams): Promise<void>;
159
+ /**
160
+ * Revoke permission for the connection.
161
+ * @param hub Target hub name, which should start with alphabetic characters and only contain
162
+ * alpha-numeric characters or underscore.
163
+ * @param permission The permission: current supported actions are joinLeaveGroup and sendToGroup.
164
+ * @param connectionId Target connection Id.
165
+ * @param options The options parameters.
166
+ */
167
+ revokePermission(hub: string, permission: WebPubSubPermission, connectionId: string, options?: WebPubSubRevokePermissionOptionalParams): Promise<void>;
168
+ /**
169
+ * Check if a connection has permission to the specified action.
170
+ * @param hub Target hub name, which should start with alphabetic characters and only contain
171
+ * alpha-numeric characters or underscore.
172
+ * @param permission The permission: current supported actions are joinLeaveGroup and sendToGroup.
173
+ * @param connectionId Target connection Id.
174
+ * @param options The options parameters.
175
+ */
176
+ checkPermission(hub: string, permission: WebPubSubPermission, connectionId: string, options?: WebPubSubCheckPermissionOptionalParams): Promise<void>;
177
+ /**
178
+ * Grant permission to the connection.
179
+ * @param hub Target hub name, which should start with alphabetic characters and only contain
180
+ * alpha-numeric characters or underscore.
181
+ * @param permission The permission: current supported actions are joinLeaveGroup and sendToGroup.
182
+ * @param connectionId Target connection Id.
183
+ * @param options The options parameters.
184
+ */
185
+ grantPermission(hub: string, permission: WebPubSubPermission, connectionId: string, options?: WebPubSubGrantPermissionOptionalParams): Promise<void>;
186
+ /**
187
+ * Check if there are any client connections connected for the given user.
188
+ * @param hub Target hub name, which should start with alphabetic characters and only contain
189
+ * alpha-numeric characters or underscore.
190
+ * @param userId Target user Id.
191
+ * @param options The options parameters.
192
+ */
193
+ userExists(hub: string, userId: string, options?: WebPubSubUserExistsOptionalParams): Promise<void>;
194
+ /**
195
+ * Close connections for the specific user.
196
+ * @param hub Target hub name, which should start with alphabetic characters and only contain
197
+ * alpha-numeric characters or underscore.
198
+ * @param userId The user Id.
199
+ * @param options The options parameters.
200
+ */
201
+ closeUserConnections(hub: string, userId: string, options?: WebPubSubCloseUserConnectionsOptionalParams): Promise<void>;
202
+ /**
203
+ * Send content inside request body to the specific user.
204
+ * @param hub Target hub name, which should start with alphabetic characters and only contain
205
+ * alpha-numeric characters or underscore.
206
+ * @param userId The user Id.
207
+ * @param contentType Upload file type
208
+ * @param message The payload body.
209
+ * @param options The options parameters.
210
+ */
211
+ sendToUser(hub: string, userId: string, contentType: ContentType, message: coreRestPipeline.RequestBodyType, options?: WebPubSubSendToUser$binaryOptionalParams): Promise<void>;
212
+ /**
213
+ * Send content inside request body to the specific user.
214
+ * @param hub Target hub name, which should start with alphabetic characters and only contain
215
+ * alpha-numeric characters or underscore.
216
+ * @param userId The user Id.
217
+ * @param contentType Upload file type
218
+ * @param message The payload body.
219
+ * @param options The options parameters.
220
+ */
221
+ sendToUser(hub: string, userId: string, contentType: "text/plain", message: string, options?: WebPubSubSendToUser$textOptionalParams): Promise<void>;
222
+ /**
223
+ * Remove a user from all groups.
224
+ * @param hub Target hub name, which should start with alphabetic characters and only contain
225
+ * alpha-numeric characters or underscore.
226
+ * @param userId Target user Id.
227
+ * @param options The options parameters.
228
+ */
229
+ removeUserFromAllGroups(hub: string, userId: string, options?: WebPubSubRemoveUserFromAllGroupsOptionalParams): Promise<void>;
230
+ /**
231
+ * Remove a user from the target group.
232
+ * @param hub Target hub name, which should start with alphabetic characters and only contain
233
+ * alpha-numeric characters or underscore.
234
+ * @param group Target group name, which length should be greater than 0 and less than 1025.
235
+ * @param userId Target user Id.
236
+ * @param options The options parameters.
237
+ */
238
+ removeUserFromGroup(hub: string, group: string, userId: string, options?: WebPubSubRemoveUserFromGroupOptionalParams): Promise<void>;
239
+ /**
240
+ * Add a user to the target group.
241
+ * @param hub Target hub name, which should start with alphabetic characters and only contain
242
+ * alpha-numeric characters or underscore.
243
+ * @param group Target group name, which length should be greater than 0 and less than 1025.
244
+ * @param userId Target user Id.
245
+ * @param options The options parameters.
246
+ */
247
+ addUserToGroup(hub: string, group: string, userId: string, options?: WebPubSubAddUserToGroupOptionalParams): Promise<void>;
248
+ }
249
+ //# sourceMappingURL=webPubSub.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"webPubSub.d.ts","sourceRoot":"","sources":["../../../../src/generated/operations/webPubSub.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAE7D,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAG9D,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EACL,kBAAkB,EAClB,6CAA6C,EAC7C,0CAA0C,EAC1C,0CAA0C,EAC1C,oCAAoC,EACpC,uBAAuB,EACvB,kDAAkD,EAClD,WAAW,EACX,uCAAuC,EACvC,qCAAqC,EACrC,sCAAsC,EACtC,uCAAuC,EACvC,8CAA8C,EAC9C,4CAA4C,EAC5C,oDAAoD,EACpD,kCAAkC,EAClC,4CAA4C,EAC5C,yCAAyC,EACzC,uCAAuC,EACvC,gDAAgD,EAChD,2CAA2C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