@azure/web-pubsub 1.0.0-beta.3 → 1.0.1-alpha.20220103.2
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +31 -0
- package/README.md +107 -33
- package/dist/index.js +1048 -233
- package/dist/index.js.map +1 -1
- package/dist-esm/samples-dev/directMessage.js +1 -1
- package/dist-esm/samples-dev/directMessage.js.map +1 -1
- package/dist-esm/src/generated/generatedClient.js +3 -3
- package/dist-esm/src/generated/generatedClient.js.map +1 -1
- package/dist-esm/src/generated/generatedClientContext.js +8 -8
- package/dist-esm/src/generated/generatedClientContext.js.map +1 -1
- package/dist-esm/src/generated/models/index.js +6 -1
- package/dist-esm/src/generated/models/index.js.map +1 -1
- package/dist-esm/src/generated/models/mappers.js +368 -0
- package/dist-esm/src/generated/models/mappers.js.map +1 -0
- package/dist-esm/src/generated/models/parameters.js +105 -23
- package/dist-esm/src/generated/models/parameters.js.map +1 -1
- package/dist-esm/src/generated/operations/healthApi.js +4 -3
- package/dist-esm/src/generated/operations/healthApi.js.map +1 -1
- package/dist-esm/src/generated/operations/webPubSub.js +315 -59
- package/dist-esm/src/generated/operations/webPubSub.js.map +1 -1
- package/dist-esm/src/generated/operationsInterfaces/webPubSub.js.map +1 -1
- package/dist-esm/src/groupClient.js +32 -21
- package/dist-esm/src/groupClient.js.map +1 -1
- package/dist-esm/src/hubClient.js +162 -107
- package/dist-esm/src/hubClient.js.map +1 -1
- package/dist-esm/src/index.js +1 -1
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/logger.js +1 -1
- package/dist-esm/src/logger.js.map +1 -1
- package/dist-esm/src/parseConnectionString.js +3 -1
- package/dist-esm/src/parseConnectionString.js.map +1 -1
- package/dist-esm/src/reverseProxyPolicy.js +21 -0
- package/dist-esm/src/reverseProxyPolicy.js.map +1 -0
- package/dist-esm/src/tracing.js +1 -1
- package/dist-esm/src/tracing.js.map +1 -1
- package/dist-esm/src/utils.js +2 -0
- package/dist-esm/src/utils.js.map +1 -1
- package/dist-esm/src/webPubSubCredentialPolicy.js +2 -2
- package/dist-esm/src/webPubSubCredentialPolicy.js.map +1 -1
- package/dist-esm/test/conn.spec.js +2 -2
- package/dist-esm/test/conn.spec.js.map +1 -1
- package/dist-esm/test/groups.spec.js +14 -6
- package/dist-esm/test/groups.spec.js.map +1 -1
- package/dist-esm/test/hubs.spec.js +53 -10
- package/dist-esm/test/hubs.spec.js.map +1 -1
- package/dist-esm/test/integration.spec.js +128 -0
- package/dist-esm/test/integration.spec.js.map +1 -0
- package/dist-esm/test/testEnv.js +6 -2
- package/dist-esm/test/testEnv.js.map +1 -1
- package/package.json +32 -32
- package/types/web-pubsub.d.ts +165 -109
- package/dist-esm/src/normalizeOptions.js +0 -8
- package/dist-esm/src/normalizeOptions.js.map +0 -1
@@ -11,7 +11,7 @@ async function main() {
|
|
11
11
|
// send a text message directly to a user
|
12
12
|
await chatHub.sendToUser("bterlson", "Hi there!");
|
13
13
|
// send a text message to a specific connection
|
14
|
-
await chatHub.
|
14
|
+
await chatHub.sendToConnection("Tn3XcrAbHI0OE36XvbWwige4ac096c1", "Hi there!");
|
15
15
|
}
|
16
16
|
main().catch((e) => {
|
17
17
|
console.error("Sample encountered an error", e);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"directMessage.js","sourceRoot":"","sources":["../../samples-dev/directMessage.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC;;GAEG;AAEH,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAE3D,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,OAAO,GAAG,IAAI,sBAAsB,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAsB,EAAE,MAAM,CAAC,CAAC;AAEvF,KAAK,UAAU,IAAI;IACjB,yCAAyC;IACzC,MAAM,OAAO,CAAC,UAAU,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC;IAElD,+CAA+C;IAC/C,MAAM,OAAO,CAAC,
|
1
|
+
{"version":3,"file":"directMessage.js","sourceRoot":"","sources":["../../samples-dev/directMessage.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC;;GAEG;AAEH,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAE3D,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,OAAO,GAAG,IAAI,sBAAsB,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAsB,EAAE,MAAM,CAAC,CAAC;AAEvF,KAAK,UAAU,IAAI;IACjB,yCAAyC;IACzC,MAAM,OAAO,CAAC,UAAU,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC;IAElD,+CAA+C;IAC/C,MAAM,OAAO,CAAC,gBAAgB,CAAC,iCAAiC,EAAE,WAAW,CAAC,CAAC;AACjF,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,CAAC,KAAK,CAAC,6BAA6B,EAAE,CAAC,CAAC,CAAC;IAChD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * @summary Demonstrates sending messages directly to a user or connection.\n */\n\nimport { WebPubSubServiceClient } from \"@azure/web-pubsub\";\n\nimport * as dotenv from \"dotenv\";\ndotenv.config();\n\nconst chatHub = new WebPubSubServiceClient(process.env.WPS_CONNECTION_STRING!, \"chat\");\n\nasync function main() {\n // send a text message directly to a user\n await chatHub.sendToUser(\"bterlson\", \"Hi there!\");\n\n // send a text message to a specific connection\n await chatHub.sendToConnection(\"Tn3XcrAbHI0OE36XvbWwige4ac096c1\", \"Hi there!\");\n}\n\nmain().catch((e) => {\n console.error(\"Sample encountered an error\", e);\n process.exit(1);\n});\n"]}
|
@@ -11,11 +11,11 @@ import { GeneratedClientContext } from "./generatedClientContext";
|
|
11
11
|
export class GeneratedClient extends GeneratedClientContext {
|
12
12
|
/**
|
13
13
|
* Initializes a new instance of the GeneratedClient class.
|
14
|
-
* @param
|
14
|
+
* @param endpoint HTTP or HTTPS endpoint for the Web PubSub service instance.
|
15
15
|
* @param options The parameter options
|
16
16
|
*/
|
17
|
-
constructor(
|
18
|
-
super(
|
17
|
+
constructor(endpoint, options) {
|
18
|
+
super(endpoint, options);
|
19
19
|
this.healthApi = new HealthApiImpl(this);
|
20
20
|
this.webPubSub = new WebPubSubImpl(this);
|
21
21
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"generatedClient.js","sourceRoot":"","sources":["../../../src/generated/generatedClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAE5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAGlE,gBAAgB;AAChB,MAAM,OAAO,eAAgB,SAAQ,sBAAsB;IACzD;;;;OAIG;IACH,YAAY,
|
1
|
+
{"version":3,"file":"generatedClient.js","sourceRoot":"","sources":["../../../src/generated/generatedClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAE5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAGlE,gBAAgB;AAChB,MAAM,OAAO,eAAgB,SAAQ,sBAAsB;IACzD;;;;OAIG;IACH,YAAY,QAAgB,EAAE,OAAuC;QACnE,KAAK,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;QACzB,IAAI,CAAC,SAAS,GAAG,IAAI,aAAa,CAAC,IAAI,CAAC,CAAC;QACzC,IAAI,CAAC,SAAS,GAAG,IAAI,aAAa,CAAC,IAAI,CAAC,CAAC;IAC3C,CAAC;CAIF","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { HealthApiImpl, WebPubSubImpl } from \"./operations\";\nimport { HealthApi, WebPubSub } from \"./operationsInterfaces\";\nimport { GeneratedClientContext } from \"./generatedClientContext\";\nimport { GeneratedClientOptionalParams } from \"./models\";\n\n/** @internal */\nexport class GeneratedClient extends GeneratedClientContext {\n /**\n * Initializes a new instance of the GeneratedClient class.\n * @param endpoint HTTP or HTTPS endpoint for the Web PubSub service instance.\n * @param options The parameter options\n */\n constructor(endpoint: string, options?: GeneratedClientOptionalParams) {\n super(endpoint, options);\n this.healthApi = new HealthApiImpl(this);\n this.webPubSub = new WebPubSubImpl(this);\n }\n\n healthApi: HealthApi;\n webPubSub: WebPubSub;\n}\n"]}
|
@@ -10,12 +10,12 @@ import * as coreClient from "@azure/core-client";
|
|
10
10
|
export class GeneratedClientContext extends coreClient.ServiceClient {
|
11
11
|
/**
|
12
12
|
* Initializes a new instance of the GeneratedClientContext class.
|
13
|
-
* @param
|
13
|
+
* @param endpoint HTTP or HTTPS endpoint for the Web PubSub service instance.
|
14
14
|
* @param options The parameter options
|
15
15
|
*/
|
16
|
-
constructor(
|
17
|
-
if (
|
18
|
-
throw new Error("'
|
16
|
+
constructor(endpoint, options) {
|
17
|
+
if (endpoint === undefined) {
|
18
|
+
throw new Error("'endpoint' cannot be null");
|
19
19
|
}
|
20
20
|
// Initializing default values for options
|
21
21
|
if (!options) {
|
@@ -24,18 +24,18 @@ export class GeneratedClientContext extends coreClient.ServiceClient {
|
|
24
24
|
const defaults = {
|
25
25
|
requestContentType: "application/json; charset=utf-8"
|
26
26
|
};
|
27
|
-
const packageDetails = `azsdk-js-web-pubsub/1.0.
|
27
|
+
const packageDetails = `azsdk-js-web-pubsub/1.0.1`;
|
28
28
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
29
29
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
30
30
|
: `${packageDetails}`;
|
31
31
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
32
32
|
userAgentPrefix
|
33
|
-
}, baseUri: options.endpoint || "{
|
33
|
+
}, baseUri: options.endpoint || "{Endpoint}" });
|
34
34
|
super(optionsWithDefaults);
|
35
35
|
// Parameter assignments
|
36
|
-
this
|
36
|
+
this.endpoint = endpoint;
|
37
37
|
// Assigning values to Constant parameters
|
38
|
-
this.apiVersion = options.apiVersion || "2021-
|
38
|
+
this.apiVersion = options.apiVersion || "2021-10-01";
|
39
39
|
}
|
40
40
|
}
|
41
41
|
//# sourceMappingURL=generatedClientContext.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"generatedClientContext.js","sourceRoot":"","sources":["../../../src/generated/generatedClientContext.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAGjD,gBAAgB;AAChB,MAAM,OAAO,sBAAuB,SAAQ,UAAU,CAAC,aAAa;IAIlE;;;;OAIG;IACH,YAAY,
|
1
|
+
{"version":3,"file":"generatedClientContext.js","sourceRoot":"","sources":["../../../src/generated/generatedClientContext.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAGjD,gBAAgB;AAChB,MAAM,OAAO,sBAAuB,SAAQ,UAAU,CAAC,aAAa;IAIlE;;;;OAIG;IACH,YAAY,QAAgB,EAAE,OAAuC;QACnE,IAAI,QAAQ,KAAK,SAAS,EAAE;YAC1B,MAAM,IAAI,KAAK,CAAC,2BAA2B,CAAC,CAAC;SAC9C;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO,GAAG,EAAE,CAAC;SACd;QACD,MAAM,QAAQ,GAAkC;YAC9C,kBAAkB,EAAE,iCAAiC;SACtD,CAAC;QAEF,MAAM,cAAc,GAAG,2BAA2B,CAAC;QACnD,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;YAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,cAAc,EAAE;YACjE,CAAC,CAAC,GAAG,cAAc,EAAE,CAAC;QAE1B,MAAM,mBAAmB,iDACpB,QAAQ,GACR,OAAO,KACV,gBAAgB,EAAE;gBAChB,eAAe;aAChB,EACD,OAAO,EAAE,OAAO,CAAC,QAAQ,IAAI,YAAY,GAC1C,CAAC;QACF,KAAK,CAAC,mBAAmB,CAAC,CAAC;QAC3B,wBAAwB;QACxB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QAEzB,0CAA0C;QAC1C,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,IAAI,YAAY,CAAC;IACvD,CAAC;CACF","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport { GeneratedClientOptionalParams } from \"./models\";\n\n/** @internal */\nexport class GeneratedClientContext extends coreClient.ServiceClient {\n endpoint: string;\n apiVersion: string;\n\n /**\n * Initializes a new instance of the GeneratedClientContext class.\n * @param endpoint HTTP or HTTPS endpoint for the Web PubSub service instance.\n * @param options The parameter options\n */\n constructor(endpoint: string, options?: GeneratedClientOptionalParams) {\n if (endpoint === undefined) {\n throw new Error(\"'endpoint' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: GeneratedClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\"\n };\n\n const packageDetails = `azsdk-js-web-pubsub/1.0.1`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n baseUri: options.endpoint || \"{Endpoint}\"\n };\n super(optionsWithDefaults);\n // Parameter assignments\n this.endpoint = endpoint;\n\n // Assigning values to Constant parameters\n this.apiVersion = options.apiVersion || \"2021-10-01\";\n }\n}\n"]}
|
@@ -5,5 +5,10 @@
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
7
|
*/
|
8
|
-
|
8
|
+
/** Known values of {@link WebPubSubPermission} that the service accepts. */
|
9
|
+
export var KnownWebPubSubPermission;
|
10
|
+
(function (KnownWebPubSubPermission) {
|
11
|
+
KnownWebPubSubPermission["SendToGroup"] = "sendToGroup";
|
12
|
+
KnownWebPubSubPermission["JoinLeaveGroup"] = "joinLeaveGroup";
|
13
|
+
})(KnownWebPubSubPermission || (KnownWebPubSubPermission = {}));
|
9
14
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/generated/models/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\n\n/** Known values of {@link WebPubSubPermission} that the service accepts. */\nexport const enum KnownWebPubSubPermission {\n SendToGroup = \"sendToGroup\",\n JoinLeaveGroup = \"joinLeaveGroup\"\n}\n\n/**\n * Defines values for WebPubSubPermission. \\\n * {@link KnownWebPubSubPermission} can be used interchangeably with WebPubSubPermission,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **sendToGroup** \\\n * **joinLeaveGroup**\n */\nexport type WebPubSubPermission = string;\n/** Defines values for ContentType. */\nexport type ContentType = \"application/json\" | \"application/octet-stream\";\n\n/** Optional parameters. */\nexport interface HealthApiGetServiceStatusOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Optional parameters. */\nexport interface WebPubSubSendToAll$binaryOptionalParams\n extends coreClient.OperationOptions {\n /** Excluded connection Ids. */\n excluded?: string[];\n}\n\n/** Optional parameters. */\nexport interface WebPubSubSendToAll$textOptionalParams\n extends coreClient.OperationOptions {\n /** Excluded connection Ids. */\n excluded?: string[];\n}\n\n/** Optional parameters. */\nexport interface WebPubSubConnectionExistsOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Optional parameters. */\nexport interface WebPubSubCloseClientConnectionOptionalParams\n extends coreClient.OperationOptions {\n /** The reason closing the client connection. */\n reason?: string;\n}\n\n/** Optional parameters. */\nexport interface WebPubSubSendToConnection$binaryOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Optional parameters. */\nexport interface WebPubSubSendToConnection$textOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Optional parameters. */\nexport interface WebPubSubGroupExistsOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Optional parameters. */\nexport interface WebPubSubSendToGroup$binaryOptionalParams\n extends coreClient.OperationOptions {\n /** Excluded connection Ids */\n excluded?: string[];\n}\n\n/** Optional parameters. */\nexport interface WebPubSubSendToGroup$textOptionalParams\n extends coreClient.OperationOptions {\n /** Excluded connection Ids */\n excluded?: string[];\n}\n\n/** Optional parameters. */\nexport interface WebPubSubAddConnectionToGroupOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Optional parameters. */\nexport interface WebPubSubRemoveConnectionFromGroupOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Optional parameters. */\nexport interface WebPubSubUserExistsOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Optional parameters. */\nexport interface WebPubSubSendToUser$binaryOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Optional parameters. */\nexport interface WebPubSubSendToUser$textOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Optional parameters. */\nexport interface WebPubSubAddUserToGroupOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Optional parameters. */\nexport interface WebPubSubRemoveUserFromGroupOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Optional parameters. */\nexport interface WebPubSubRemoveUserFromAllGroupsOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Optional parameters. */\nexport interface WebPubSubGrantPermissionOptionalParams\n extends coreClient.OperationOptions {\n /** The meaning of the target depends on the specific permission. For joinLeaveGroup and sendToGroup, targetName is a required parameter standing for the group name. */\n targetName?: string;\n}\n\n/** Optional parameters. */\nexport interface WebPubSubRevokePermissionOptionalParams\n extends coreClient.OperationOptions {\n /** The meaning of the target depends on the specific permission. For joinLeaveGroup and sendToGroup, targetName is a required parameter standing for the group name. */\n targetName?: string;\n}\n\n/** Optional parameters. */\nexport interface WebPubSubCheckPermissionOptionalParams\n extends coreClient.OperationOptions {\n /** The meaning of the target depends on the specific permission. For joinLeaveGroup and sendToGroup, targetName is a required parameter standing for the group name. */\n targetName?: string;\n}\n\n/** Optional parameters. */\nexport interface GeneratedClientOptionalParams\n extends coreClient.ServiceClientOptions {\n /** Api Version */\n apiVersion?: string;\n /** Overrides client endpoint. */\n endpoint?: string;\n}\n"]}
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/generated/models/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAiIH,4EAA4E;AAC5E,MAAM,CAAN,IAAY,wBAGX;AAHD,WAAY,wBAAwB;IAClC,uDAA2B,CAAA;IAC3B,6DAAiC,CAAA;AACnC,CAAC,EAHW,wBAAwB,KAAxB,wBAAwB,QAGnC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\n\n/** The response object containing the token for the client */\nexport interface ClientTokenResponse {\n /** The token value for the WebSocket client to connect to the service */\n token?: string;\n}\n\n/** The error object. */\nexport interface ErrorDetail {\n /** One of a server-defined set of error codes. */\n code?: string;\n /** A human-readable representation of the error. */\n message?: string;\n /** The target of the error. */\n target?: string;\n /** An array of details about specific errors that led to this reported error. */\n details?: ErrorDetail[];\n inner?: InnerError;\n}\n\nexport interface InnerError {\n /** A more specific error code than was provided by the containing error. */\n code?: string;\n inner?: InnerError;\n}\n\n/** Defines headers for WebPubSub_generateClientToken operation. */\nexport interface WebPubSubGenerateClientTokenExceptionHeaders {\n errorCode?: string;\n}\n\n/** Defines headers for WebPubSub_closeAllConnections operation. */\nexport interface WebPubSubCloseAllConnectionsExceptionHeaders {\n errorCode?: string;\n}\n\n/** Defines headers for WebPubSub_sendToAll operation. */\nexport interface WebPubSubSendToAllExceptionHeaders {\n errorCode?: string;\n}\n\n/** Defines headers for WebPubSub_connectionExists operation. */\nexport interface WebPubSubConnectionExistsExceptionHeaders {\n errorCode?: string;\n}\n\n/** Defines headers for WebPubSub_closeConnection operation. */\nexport interface WebPubSubCloseConnectionExceptionHeaders {\n errorCode?: string;\n}\n\n/** Defines headers for WebPubSub_sendToConnection operation. */\nexport interface WebPubSubSendToConnectionExceptionHeaders {\n errorCode?: string;\n}\n\n/** Defines headers for WebPubSub_groupExists operation. */\nexport interface WebPubSubGroupExistsExceptionHeaders {\n errorCode?: string;\n}\n\n/** Defines headers for WebPubSub_closeGroupConnections operation. */\nexport interface WebPubSubCloseGroupConnectionsExceptionHeaders {\n errorCode?: string;\n}\n\n/** Defines headers for WebPubSub_sendToGroup operation. */\nexport interface WebPubSubSendToGroupExceptionHeaders {\n errorCode?: string;\n}\n\n/** Defines headers for WebPubSub_addConnectionToGroup operation. */\nexport interface WebPubSubAddConnectionToGroupExceptionHeaders {\n errorCode?: string;\n}\n\n/** Defines headers for WebPubSub_removeConnectionFromGroup operation. */\nexport interface WebPubSubRemoveConnectionFromGroupExceptionHeaders {\n errorCode?: string;\n}\n\n/** Defines headers for WebPubSub_userExists operation. */\nexport interface WebPubSubUserExistsExceptionHeaders {\n errorCode?: string;\n}\n\n/** Defines headers for WebPubSub_closeUserConnections operation. */\nexport interface WebPubSubCloseUserConnectionsExceptionHeaders {\n errorCode?: string;\n}\n\n/** Defines headers for WebPubSub_sendToUser operation. */\nexport interface WebPubSubSendToUserExceptionHeaders {\n errorCode?: string;\n}\n\n/** Defines headers for WebPubSub_addUserToGroup operation. */\nexport interface WebPubSubAddUserToGroupExceptionHeaders {\n errorCode?: string;\n}\n\n/** Defines headers for WebPubSub_removeUserFromGroup operation. */\nexport interface WebPubSubRemoveUserFromGroupExceptionHeaders {\n errorCode?: string;\n}\n\n/** Defines headers for WebPubSub_removeUserFromAllGroups operation. */\nexport interface WebPubSubRemoveUserFromAllGroupsExceptionHeaders {\n errorCode?: string;\n}\n\n/** Defines headers for WebPubSub_grantPermission operation. */\nexport interface WebPubSubGrantPermissionExceptionHeaders {\n errorCode?: string;\n}\n\n/** Defines headers for WebPubSub_revokePermission operation. */\nexport interface WebPubSubRevokePermissionExceptionHeaders {\n errorCode?: string;\n}\n\n/** Defines headers for WebPubSub_checkPermission operation. */\nexport interface WebPubSubCheckPermissionExceptionHeaders {\n errorCode?: string;\n}\n\n/** Known values of {@link WebPubSubPermission} that the service accepts. */\nexport enum KnownWebPubSubPermission {\n SendToGroup = \"sendToGroup\",\n JoinLeaveGroup = \"joinLeaveGroup\"\n}\n\n/**\n * Defines values for WebPubSubPermission. \\\n * {@link KnownWebPubSubPermission} can be used interchangeably with WebPubSubPermission,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **sendToGroup** \\\n * **joinLeaveGroup**\n */\nexport type WebPubSubPermission = string;\n/** Defines values for ContentType. */\nexport type ContentType = \"application/json\" | \"application/octet-stream\";\n\n/** Optional parameters. */\nexport interface HealthApiGetServiceStatusOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Optional parameters. */\nexport interface WebPubSubGenerateClientTokenOptionalParams\n extends coreClient.OperationOptions {\n /** User Id. */\n userId?: string;\n /** Roles that the connection with the generated token will have. */\n roles?: string[];\n /** The expire time of the generated token. */\n expirationTimeInMinutes?: number;\n}\n\n/** Contains response data for the generateClientToken operation. */\nexport type WebPubSubGenerateClientTokenResponse = ClientTokenResponse;\n\n/** Optional parameters. */\nexport interface WebPubSubCloseAllConnectionsOptionalParams\n extends coreClient.OperationOptions {\n /** Exclude these connectionIds when closing the connections in the hub. */\n excluded?: string[];\n /** The reason closing the client connection. */\n reason?: string;\n}\n\n/** Optional parameters. */\nexport interface WebPubSubSendToAll$binaryOptionalParams\n extends coreClient.OperationOptions {\n /** Excluded connection Ids. */\n excludedConnections?: string[];\n}\n\n/** Optional parameters. */\nexport interface WebPubSubSendToAll$textOptionalParams\n extends coreClient.OperationOptions {\n /** Excluded connection Ids. */\n excludedConnections?: string[];\n}\n\n/** Optional parameters. */\nexport interface WebPubSubConnectionExistsOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Optional parameters. */\nexport interface WebPubSubCloseConnectionOptionalParams\n extends coreClient.OperationOptions {\n /** The reason closing the client connection. */\n reason?: string;\n}\n\n/** Optional parameters. */\nexport interface WebPubSubSendToConnection$binaryOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Optional parameters. */\nexport interface WebPubSubSendToConnection$textOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Optional parameters. */\nexport interface WebPubSubGroupExistsOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Optional parameters. */\nexport interface WebPubSubCloseGroupConnectionsOptionalParams\n extends coreClient.OperationOptions {\n /** Exclude these connectionIds when closing the connections in the group. */\n excluded?: string[];\n /** The reason closing the client connection. */\n reason?: string;\n}\n\n/** Optional parameters. */\nexport interface WebPubSubSendToGroup$binaryOptionalParams\n extends coreClient.OperationOptions {\n /** Excluded connection Ids */\n excludedConnections?: string[];\n}\n\n/** Optional parameters. */\nexport interface WebPubSubSendToGroup$textOptionalParams\n extends coreClient.OperationOptions {\n /** Excluded connection Ids */\n excludedConnections?: string[];\n}\n\n/** Optional parameters. */\nexport interface WebPubSubAddConnectionToGroupOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Optional parameters. */\nexport interface WebPubSubRemoveConnectionFromGroupOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Optional parameters. */\nexport interface WebPubSubUserExistsOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Optional parameters. */\nexport interface WebPubSubCloseUserConnectionsOptionalParams\n extends coreClient.OperationOptions {\n /** Exclude these connectionIds when closing the connections for the user. */\n excluded?: string[];\n /** The reason closing the client connection. */\n reason?: string;\n}\n\n/** Optional parameters. */\nexport interface WebPubSubSendToUser$binaryOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Optional parameters. */\nexport interface WebPubSubSendToUser$textOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Optional parameters. */\nexport interface WebPubSubAddUserToGroupOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Optional parameters. */\nexport interface WebPubSubRemoveUserFromGroupOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Optional parameters. */\nexport interface WebPubSubRemoveUserFromAllGroupsOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Optional parameters. */\nexport interface WebPubSubGrantPermissionOptionalParams\n extends coreClient.OperationOptions {\n /** The meaning of the target depends on the specific permission. For joinLeaveGroup and sendToGroup, targetName is a required parameter standing for the group name. */\n targetName?: string;\n}\n\n/** Optional parameters. */\nexport interface WebPubSubRevokePermissionOptionalParams\n extends coreClient.OperationOptions {\n /** The meaning of the target depends on the specific permission. For joinLeaveGroup and sendToGroup, targetName is a required parameter standing for the group name. */\n targetName?: string;\n}\n\n/** Optional parameters. */\nexport interface WebPubSubCheckPermissionOptionalParams\n extends coreClient.OperationOptions {\n /** The meaning of the target depends on the specific permission. For joinLeaveGroup and sendToGroup, targetName is a required parameter standing for the group name. */\n targetName?: string;\n}\n\n/** Optional parameters. */\nexport interface GeneratedClientOptionalParams\n extends coreClient.ServiceClientOptions {\n /** Api Version */\n apiVersion?: string;\n /** Overrides client endpoint. */\n endpoint?: string;\n}\n"]}
|
@@ -0,0 +1,368 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
3
|
+
* Licensed under the MIT License.
|
4
|
+
*
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
|
+
*/
|
8
|
+
export const ClientTokenResponse = {
|
9
|
+
type: {
|
10
|
+
name: "Composite",
|
11
|
+
className: "ClientTokenResponse",
|
12
|
+
modelProperties: {
|
13
|
+
token: {
|
14
|
+
serializedName: "token",
|
15
|
+
type: {
|
16
|
+
name: "String"
|
17
|
+
}
|
18
|
+
}
|
19
|
+
}
|
20
|
+
}
|
21
|
+
};
|
22
|
+
export const ErrorDetail = {
|
23
|
+
type: {
|
24
|
+
name: "Composite",
|
25
|
+
className: "ErrorDetail",
|
26
|
+
modelProperties: {
|
27
|
+
code: {
|
28
|
+
serializedName: "code",
|
29
|
+
type: {
|
30
|
+
name: "String"
|
31
|
+
}
|
32
|
+
},
|
33
|
+
message: {
|
34
|
+
serializedName: "message",
|
35
|
+
type: {
|
36
|
+
name: "String"
|
37
|
+
}
|
38
|
+
},
|
39
|
+
target: {
|
40
|
+
serializedName: "target",
|
41
|
+
type: {
|
42
|
+
name: "String"
|
43
|
+
}
|
44
|
+
},
|
45
|
+
details: {
|
46
|
+
serializedName: "details",
|
47
|
+
type: {
|
48
|
+
name: "Sequence",
|
49
|
+
element: {
|
50
|
+
type: {
|
51
|
+
name: "Composite",
|
52
|
+
className: "ErrorDetail"
|
53
|
+
}
|
54
|
+
}
|
55
|
+
}
|
56
|
+
},
|
57
|
+
inner: {
|
58
|
+
serializedName: "inner",
|
59
|
+
type: {
|
60
|
+
name: "Composite",
|
61
|
+
className: "InnerError"
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
66
|
+
};
|
67
|
+
export const InnerError = {
|
68
|
+
type: {
|
69
|
+
name: "Composite",
|
70
|
+
className: "InnerError",
|
71
|
+
modelProperties: {
|
72
|
+
code: {
|
73
|
+
serializedName: "code",
|
74
|
+
type: {
|
75
|
+
name: "String"
|
76
|
+
}
|
77
|
+
},
|
78
|
+
inner: {
|
79
|
+
serializedName: "inner",
|
80
|
+
type: {
|
81
|
+
name: "Composite",
|
82
|
+
className: "InnerError"
|
83
|
+
}
|
84
|
+
}
|
85
|
+
}
|
86
|
+
}
|
87
|
+
};
|
88
|
+
export const WebPubSubGenerateClientTokenExceptionHeaders = {
|
89
|
+
type: {
|
90
|
+
name: "Composite",
|
91
|
+
className: "WebPubSubGenerateClientTokenExceptionHeaders",
|
92
|
+
modelProperties: {
|
93
|
+
errorCode: {
|
94
|
+
serializedName: "x-ms-error-code",
|
95
|
+
type: {
|
96
|
+
name: "String"
|
97
|
+
}
|
98
|
+
}
|
99
|
+
}
|
100
|
+
}
|
101
|
+
};
|
102
|
+
export const WebPubSubCloseAllConnectionsExceptionHeaders = {
|
103
|
+
type: {
|
104
|
+
name: "Composite",
|
105
|
+
className: "WebPubSubCloseAllConnectionsExceptionHeaders",
|
106
|
+
modelProperties: {
|
107
|
+
errorCode: {
|
108
|
+
serializedName: "x-ms-error-code",
|
109
|
+
type: {
|
110
|
+
name: "String"
|
111
|
+
}
|
112
|
+
}
|
113
|
+
}
|
114
|
+
}
|
115
|
+
};
|
116
|
+
export const WebPubSubSendToAllExceptionHeaders = {
|
117
|
+
type: {
|
118
|
+
name: "Composite",
|
119
|
+
className: "WebPubSubSendToAllExceptionHeaders",
|
120
|
+
modelProperties: {
|
121
|
+
errorCode: {
|
122
|
+
serializedName: "x-ms-error-code",
|
123
|
+
type: {
|
124
|
+
name: "String"
|
125
|
+
}
|
126
|
+
}
|
127
|
+
}
|
128
|
+
}
|
129
|
+
};
|
130
|
+
export const WebPubSubConnectionExistsExceptionHeaders = {
|
131
|
+
type: {
|
132
|
+
name: "Composite",
|
133
|
+
className: "WebPubSubConnectionExistsExceptionHeaders",
|
134
|
+
modelProperties: {
|
135
|
+
errorCode: {
|
136
|
+
serializedName: "x-ms-error-code",
|
137
|
+
type: {
|
138
|
+
name: "String"
|
139
|
+
}
|
140
|
+
}
|
141
|
+
}
|
142
|
+
}
|
143
|
+
};
|
144
|
+
export const WebPubSubCloseConnectionExceptionHeaders = {
|
145
|
+
type: {
|
146
|
+
name: "Composite",
|
147
|
+
className: "WebPubSubCloseConnectionExceptionHeaders",
|
148
|
+
modelProperties: {
|
149
|
+
errorCode: {
|
150
|
+
serializedName: "x-ms-error-code",
|
151
|
+
type: {
|
152
|
+
name: "String"
|
153
|
+
}
|
154
|
+
}
|
155
|
+
}
|
156
|
+
}
|
157
|
+
};
|
158
|
+
export const WebPubSubSendToConnectionExceptionHeaders = {
|
159
|
+
type: {
|
160
|
+
name: "Composite",
|
161
|
+
className: "WebPubSubSendToConnectionExceptionHeaders",
|
162
|
+
modelProperties: {
|
163
|
+
errorCode: {
|
164
|
+
serializedName: "x-ms-error-code",
|
165
|
+
type: {
|
166
|
+
name: "String"
|
167
|
+
}
|
168
|
+
}
|
169
|
+
}
|
170
|
+
}
|
171
|
+
};
|
172
|
+
export const WebPubSubGroupExistsExceptionHeaders = {
|
173
|
+
type: {
|
174
|
+
name: "Composite",
|
175
|
+
className: "WebPubSubGroupExistsExceptionHeaders",
|
176
|
+
modelProperties: {
|
177
|
+
errorCode: {
|
178
|
+
serializedName: "x-ms-error-code",
|
179
|
+
type: {
|
180
|
+
name: "String"
|
181
|
+
}
|
182
|
+
}
|
183
|
+
}
|
184
|
+
}
|
185
|
+
};
|
186
|
+
export const WebPubSubCloseGroupConnectionsExceptionHeaders = {
|
187
|
+
type: {
|
188
|
+
name: "Composite",
|
189
|
+
className: "WebPubSubCloseGroupConnectionsExceptionHeaders",
|
190
|
+
modelProperties: {
|
191
|
+
errorCode: {
|
192
|
+
serializedName: "x-ms-error-code",
|
193
|
+
type: {
|
194
|
+
name: "String"
|
195
|
+
}
|
196
|
+
}
|
197
|
+
}
|
198
|
+
}
|
199
|
+
};
|
200
|
+
export const WebPubSubSendToGroupExceptionHeaders = {
|
201
|
+
type: {
|
202
|
+
name: "Composite",
|
203
|
+
className: "WebPubSubSendToGroupExceptionHeaders",
|
204
|
+
modelProperties: {
|
205
|
+
errorCode: {
|
206
|
+
serializedName: "x-ms-error-code",
|
207
|
+
type: {
|
208
|
+
name: "String"
|
209
|
+
}
|
210
|
+
}
|
211
|
+
}
|
212
|
+
}
|
213
|
+
};
|
214
|
+
export const WebPubSubAddConnectionToGroupExceptionHeaders = {
|
215
|
+
type: {
|
216
|
+
name: "Composite",
|
217
|
+
className: "WebPubSubAddConnectionToGroupExceptionHeaders",
|
218
|
+
modelProperties: {
|
219
|
+
errorCode: {
|
220
|
+
serializedName: "x-ms-error-code",
|
221
|
+
type: {
|
222
|
+
name: "String"
|
223
|
+
}
|
224
|
+
}
|
225
|
+
}
|
226
|
+
}
|
227
|
+
};
|
228
|
+
export const WebPubSubRemoveConnectionFromGroupExceptionHeaders = {
|
229
|
+
type: {
|
230
|
+
name: "Composite",
|
231
|
+
className: "WebPubSubRemoveConnectionFromGroupExceptionHeaders",
|
232
|
+
modelProperties: {
|
233
|
+
errorCode: {
|
234
|
+
serializedName: "x-ms-error-code",
|
235
|
+
type: {
|
236
|
+
name: "String"
|
237
|
+
}
|
238
|
+
}
|
239
|
+
}
|
240
|
+
}
|
241
|
+
};
|
242
|
+
export const WebPubSubUserExistsExceptionHeaders = {
|
243
|
+
type: {
|
244
|
+
name: "Composite",
|
245
|
+
className: "WebPubSubUserExistsExceptionHeaders",
|
246
|
+
modelProperties: {
|
247
|
+
errorCode: {
|
248
|
+
serializedName: "x-ms-error-code",
|
249
|
+
type: {
|
250
|
+
name: "String"
|
251
|
+
}
|
252
|
+
}
|
253
|
+
}
|
254
|
+
}
|
255
|
+
};
|
256
|
+
export const WebPubSubCloseUserConnectionsExceptionHeaders = {
|
257
|
+
type: {
|
258
|
+
name: "Composite",
|
259
|
+
className: "WebPubSubCloseUserConnectionsExceptionHeaders",
|
260
|
+
modelProperties: {
|
261
|
+
errorCode: {
|
262
|
+
serializedName: "x-ms-error-code",
|
263
|
+
type: {
|
264
|
+
name: "String"
|
265
|
+
}
|
266
|
+
}
|
267
|
+
}
|
268
|
+
}
|
269
|
+
};
|
270
|
+
export const WebPubSubSendToUserExceptionHeaders = {
|
271
|
+
type: {
|
272
|
+
name: "Composite",
|
273
|
+
className: "WebPubSubSendToUserExceptionHeaders",
|
274
|
+
modelProperties: {
|
275
|
+
errorCode: {
|
276
|
+
serializedName: "x-ms-error-code",
|
277
|
+
type: {
|
278
|
+
name: "String"
|
279
|
+
}
|
280
|
+
}
|
281
|
+
}
|
282
|
+
}
|
283
|
+
};
|
284
|
+
export const WebPubSubAddUserToGroupExceptionHeaders = {
|
285
|
+
type: {
|
286
|
+
name: "Composite",
|
287
|
+
className: "WebPubSubAddUserToGroupExceptionHeaders",
|
288
|
+
modelProperties: {
|
289
|
+
errorCode: {
|
290
|
+
serializedName: "x-ms-error-code",
|
291
|
+
type: {
|
292
|
+
name: "String"
|
293
|
+
}
|
294
|
+
}
|
295
|
+
}
|
296
|
+
}
|
297
|
+
};
|
298
|
+
export const WebPubSubRemoveUserFromGroupExceptionHeaders = {
|
299
|
+
type: {
|
300
|
+
name: "Composite",
|
301
|
+
className: "WebPubSubRemoveUserFromGroupExceptionHeaders",
|
302
|
+
modelProperties: {
|
303
|
+
errorCode: {
|
304
|
+
serializedName: "x-ms-error-code",
|
305
|
+
type: {
|
306
|
+
name: "String"
|
307
|
+
}
|
308
|
+
}
|
309
|
+
}
|
310
|
+
}
|
311
|
+
};
|
312
|
+
export const WebPubSubRemoveUserFromAllGroupsExceptionHeaders = {
|
313
|
+
type: {
|
314
|
+
name: "Composite",
|
315
|
+
className: "WebPubSubRemoveUserFromAllGroupsExceptionHeaders",
|
316
|
+
modelProperties: {
|
317
|
+
errorCode: {
|
318
|
+
serializedName: "x-ms-error-code",
|
319
|
+
type: {
|
320
|
+
name: "String"
|
321
|
+
}
|
322
|
+
}
|
323
|
+
}
|
324
|
+
}
|
325
|
+
};
|
326
|
+
export const WebPubSubGrantPermissionExceptionHeaders = {
|
327
|
+
type: {
|
328
|
+
name: "Composite",
|
329
|
+
className: "WebPubSubGrantPermissionExceptionHeaders",
|
330
|
+
modelProperties: {
|
331
|
+
errorCode: {
|
332
|
+
serializedName: "x-ms-error-code",
|
333
|
+
type: {
|
334
|
+
name: "String"
|
335
|
+
}
|
336
|
+
}
|
337
|
+
}
|
338
|
+
}
|
339
|
+
};
|
340
|
+
export const WebPubSubRevokePermissionExceptionHeaders = {
|
341
|
+
type: {
|
342
|
+
name: "Composite",
|
343
|
+
className: "WebPubSubRevokePermissionExceptionHeaders",
|
344
|
+
modelProperties: {
|
345
|
+
errorCode: {
|
346
|
+
serializedName: "x-ms-error-code",
|
347
|
+
type: {
|
348
|
+
name: "String"
|
349
|
+
}
|
350
|
+
}
|
351
|
+
}
|
352
|
+
}
|
353
|
+
};
|
354
|
+
export const WebPubSubCheckPermissionExceptionHeaders = {
|
355
|
+
type: {
|
356
|
+
name: "Composite",
|
357
|
+
className: "WebPubSubCheckPermissionExceptionHeaders",
|
358
|
+
modelProperties: {
|
359
|
+
errorCode: {
|
360
|
+
serializedName: "x-ms-error-code",
|
361
|
+
type: {
|
362
|
+
name: "String"
|
363
|
+
}
|
364
|
+
}
|
365
|
+
}
|
366
|
+
}
|
367
|
+
};
|
368
|
+
//# sourceMappingURL=mappers.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"mappers.js","sourceRoot":"","sources":["../../../../src/generated/models/mappers.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,MAAM,CAAC,MAAM,mBAAmB,GAA+B;IAC7D,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,qBAAqB;QAChC,eAAe,EAAE;YACf,KAAK,EAAE;gBAC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CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\n\nexport const ClientTokenResponse: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ClientTokenResponse\",\n modelProperties: {\n token: {\n serializedName: \"token\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const ErrorDetail: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ErrorDetail\",\n modelProperties: {\n code: {\n serializedName: \"code\",\n type: {\n name: \"String\"\n }\n },\n message: {\n serializedName: \"message\",\n type: {\n name: \"String\"\n }\n },\n target: {\n serializedName: \"target\",\n type: {\n name: \"String\"\n }\n },\n details: {\n serializedName: \"details\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ErrorDetail\"\n }\n }\n }\n },\n inner: {\n serializedName: \"inner\",\n type: {\n name: \"Composite\",\n className: \"InnerError\"\n }\n }\n }\n }\n};\n\nexport const InnerError: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"InnerError\",\n modelProperties: {\n code: {\n serializedName: \"code\",\n type: {\n name: \"String\"\n }\n },\n inner: {\n serializedName: \"inner\",\n type: {\n name: \"Composite\",\n className: \"InnerError\"\n }\n }\n }\n }\n};\n\nexport const WebPubSubGenerateClientTokenExceptionHeaders: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"WebPubSubGenerateClientTokenExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const WebPubSubCloseAllConnectionsExceptionHeaders: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"WebPubSubCloseAllConnectionsExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const WebPubSubSendToAllExceptionHeaders: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"WebPubSubSendToAllExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const WebPubSubConnectionExistsExceptionHeaders: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"WebPubSubConnectionExistsExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const WebPubSubCloseConnectionExceptionHeaders: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"WebPubSubCloseConnectionExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const WebPubSubSendToConnectionExceptionHeaders: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"WebPubSubSendToConnectionExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const WebPubSubGroupExistsExceptionHeaders: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"WebPubSubGroupExistsExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const WebPubSubCloseGroupConnectionsExceptionHeaders: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"WebPubSubCloseGroupConnectionsExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const WebPubSubSendToGroupExceptionHeaders: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"WebPubSubSendToGroupExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const WebPubSubAddConnectionToGroupExceptionHeaders: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"WebPubSubAddConnectionToGroupExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const WebPubSubRemoveConnectionFromGroupExceptionHeaders: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"WebPubSubRemoveConnectionFromGroupExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const WebPubSubUserExistsExceptionHeaders: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"WebPubSubUserExistsExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const WebPubSubCloseUserConnectionsExceptionHeaders: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"WebPubSubCloseUserConnectionsExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const WebPubSubSendToUserExceptionHeaders: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"WebPubSubSendToUserExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const WebPubSubAddUserToGroupExceptionHeaders: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"WebPubSubAddUserToGroupExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const WebPubSubRemoveUserFromGroupExceptionHeaders: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"WebPubSubRemoveUserFromGroupExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const WebPubSubRemoveUserFromAllGroupsExceptionHeaders: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"WebPubSubRemoveUserFromAllGroupsExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const WebPubSubGrantPermissionExceptionHeaders: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"WebPubSubGrantPermissionExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const WebPubSubRevokePermissionExceptionHeaders: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"WebPubSubRevokePermissionExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const WebPubSubCheckPermissionExceptionHeaders: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"WebPubSubCheckPermissionExceptionHeaders\",\n modelProperties: {\n errorCode: {\n serializedName: \"x-ms-error-code\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n"]}
|