@azure/web-pubsub 1.1.3-alpha.20240528.1 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.js +393 -375
- package/dist/index.js.map +1 -1
- package/dist-esm/src/generated/generatedClient.js +4 -4
- package/dist-esm/src/generated/generatedClient.js.map +1 -1
- package/dist-esm/src/generated/generatedClientContext.js +1 -1
- package/dist-esm/src/generated/generatedClientContext.js.map +1 -1
- package/dist-esm/src/generated/models/index.js +8 -0
- package/dist-esm/src/generated/models/index.js.map +1 -1
- package/dist-esm/src/generated/models/mappers.js +160 -160
- package/dist-esm/src/generated/models/mappers.js.map +1 -1
- package/dist-esm/src/generated/models/parameters.js +106 -96
- package/dist-esm/src/generated/models/parameters.js.map +1 -1
- package/dist-esm/src/generated/operations/healthApi.js +1 -1
- package/dist-esm/src/generated/operations/healthApi.js.map +1 -1
- package/dist-esm/src/generated/operations/webPubSub.js +108 -107
- package/dist-esm/src/generated/operations/webPubSub.js.map +1 -1
- package/dist-esm/src/generated/operationsInterfaces/healthApi.js.map +1 -1
- package/dist-esm/src/generated/operationsInterfaces/webPubSub.js.map +1 -1
- package/dist-esm/src/hubClient.js +15 -8
- package/dist-esm/src/hubClient.js.map +1 -1
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/test/hubs.spec.js +11 -0
- package/dist-esm/test/hubs.spec.js.map +1 -1
- package/dist-esm/test/integration.spec.js +3 -3
- package/dist-esm/test/integration.spec.js.map +1 -1
- package/dist-esm/test/testEnv.js +0 -3
- package/dist-esm/test/testEnv.js.map +1 -1
- package/package.json +4 -4
- package/types/web-pubsub.d.ts +11 -0
@@ -24,20 +24,20 @@ export class GeneratedClient extends coreClient.ServiceClient {
|
|
24
24
|
options = {};
|
25
25
|
}
|
26
26
|
const defaults = {
|
27
|
-
requestContentType: "application/json; charset=utf-8"
|
27
|
+
requestContentType: "application/json; charset=utf-8",
|
28
28
|
};
|
29
29
|
const packageDetails = `azsdk-js-web-pubsub/1.1.3`;
|
30
30
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
31
31
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
32
32
|
: `${packageDetails}`;
|
33
33
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
34
|
-
userAgentPrefix
|
34
|
+
userAgentPrefix,
|
35
35
|
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "{endpoint}" });
|
36
36
|
super(optionsWithDefaults);
|
37
37
|
// Parameter assignments
|
38
38
|
this.endpoint = endpoint;
|
39
39
|
// Assigning values to Constant parameters
|
40
|
-
this.apiVersion = options.apiVersion || "
|
40
|
+
this.apiVersion = options.apiVersion || "2024-01-01";
|
41
41
|
this.healthApi = new HealthApiImpl(this);
|
42
42
|
this.webPubSub = new WebPubSubImpl(this);
|
43
43
|
this.addCustomApiVersionPolicy(options.apiVersion);
|
@@ -63,7 +63,7 @@ export class GeneratedClient extends coreClient.ServiceClient {
|
|
63
63
|
request.url = param[0] + "?" + newParams.join("&");
|
64
64
|
}
|
65
65
|
return next(request);
|
66
|
-
}
|
66
|
+
},
|
67
67
|
};
|
68
68
|
this.pipeline.addPolicy(apiVersionPolicy);
|
69
69
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"generatedClient.js","sourceRoot":"","sources":["../../../src/generated/generatedClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAMjD,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAI5D,gBAAgB;AAChB,MAAM,OAAO,eAAgB,SAAQ,UAAU,CAAC,aAAa;IAI3D;;;;OAIG;IACH,YAAY,QAAgB,EAAE,OAAuC;;QACnE,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;YAC3B,MAAM,IAAI,KAAK,CAAC,2BAA2B,CAAC,CAAC;QAC/C,CAAC;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,OAAO,GAAG,EAAE,CAAC;QACf,CAAC;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,QAAQ,EAAE,MAAA,MAAA,OAAO,CAAC,QAAQ,mCAAI,OAAO,CAAC,OAAO,mCAAI,YAAY,GAC9D,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;QACrD,IAAI,CAAC,SAAS,GAAG,IAAI,aAAa,CAAC,IAAI,CAAC,CAAC;QACzC,IAAI,CAAC,SAAS,GAAG,IAAI,aAAa,CAAC,IAAI,CAAC,CAAC;QACzC,IAAI,CAAC,yBAAyB,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;IACrD,CAAC;IAED,8GAA8G;IACtG,yBAAyB,CAAC,UAAmB;QACnD,IAAI,CAAC,UAAU,EAAE,CAAC;YAChB,OAAO;QACT,CAAC;QACD,MAAM,gBAAgB,GAAG;YACvB,IAAI,EAAE,wBAAwB;YAC9B,KAAK,CAAC,WAAW,CACf,OAAwB,EACxB,IAAiB;gBAEjB,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;gBACrC,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;oBACrB,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;wBACjD,IAAI,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;4BACrC,OAAO,cAAc,GAAG,UAAU,CAAC;wBACrC,CAAC;6BAAM,CAAC;4BACN,OAAO,IAAI,CAAC;wBACd,CAAC;oBACH,CAAC,CAAC,CAAC;oBACH,OAAO,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACrD,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,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 * as coreClient from \"@azure/core-client\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest
|
1
|
+
{"version":3,"file":"generatedClient.js","sourceRoot":"","sources":["../../../src/generated/generatedClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAMjD,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAI5D,gBAAgB;AAChB,MAAM,OAAO,eAAgB,SAAQ,UAAU,CAAC,aAAa;IAI3D;;;;OAIG;IACH,YAAY,QAAgB,EAAE,OAAuC;;QACnE,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;YAC3B,MAAM,IAAI,KAAK,CAAC,2BAA2B,CAAC,CAAC;QAC/C,CAAC;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,OAAO,GAAG,EAAE,CAAC;QACf,CAAC;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,QAAQ,EAAE,MAAA,MAAA,OAAO,CAAC,QAAQ,mCAAI,OAAO,CAAC,OAAO,mCAAI,YAAY,GAC9D,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;QACrD,IAAI,CAAC,SAAS,GAAG,IAAI,aAAa,CAAC,IAAI,CAAC,CAAC;QACzC,IAAI,CAAC,SAAS,GAAG,IAAI,aAAa,CAAC,IAAI,CAAC,CAAC;QACzC,IAAI,CAAC,yBAAyB,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;IACrD,CAAC;IAED,8GAA8G;IACtG,yBAAyB,CAAC,UAAmB;QACnD,IAAI,CAAC,UAAU,EAAE,CAAC;YAChB,OAAO;QACT,CAAC;QACD,MAAM,gBAAgB,GAAG;YACvB,IAAI,EAAE,wBAAwB;YAC9B,KAAK,CAAC,WAAW,CACf,OAAwB,EACxB,IAAiB;gBAEjB,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;gBACrC,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;oBACrB,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;wBACjD,IAAI,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;4BACrC,OAAO,cAAc,GAAG,UAAU,CAAC;wBACrC,CAAC;6BAAM,CAAC;4BACN,OAAO,IAAI,CAAC;wBACd,CAAC;oBACH,CAAC,CAAC,CAAC;oBACH,OAAO,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACrD,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,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 * as coreClient from \"@azure/core-client\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest,\n} from \"@azure/core-rest-pipeline\";\nimport { HealthApiImpl, WebPubSubImpl } from \"./operations\";\nimport { HealthApi, WebPubSub } from \"./operationsInterfaces\";\nimport { GeneratedClientOptionalParams } from \"./models\";\n\n/** @internal */\nexport class GeneratedClient extends coreClient.ServiceClient {\n endpoint: string;\n apiVersion: string;\n\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 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.1.3`;\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 endpoint: options.endpoint ?? options.baseUri ?? \"{endpoint}\",\n };\n super(optionsWithDefaults);\n // Parameter assignments\n this.endpoint = endpoint;\n\n // Assigning values to Constant parameters\n this.apiVersion = options.apiVersion || \"2024-01-01\";\n this.healthApi = new HealthApiImpl(this);\n this.webPubSub = new WebPubSubImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest,\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n },\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n healthApi: HealthApi;\n webPubSub: WebPubSub;\n}\n"]}
|
@@ -24,7 +24,7 @@ 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.1.
|
27
|
+
const packageDetails = `azsdk-js-web-pubsub/1.1.3`;
|
28
28
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
29
29
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
30
30
|
: `${packageDetails}`;
|
@@ -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,QAAgB,EAAE,OAAuC;QACnE,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;YAC3B,MAAM,IAAI,KAAK,CAAC,2BAA2B,CAAC,CAAC;QAC/C,CAAC;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,OAAO,GAAG,EAAE,CAAC;QACf,CAAC;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.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,QAAgB,EAAE,OAAuC;QACnE,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;YAC3B,MAAM,IAAI,KAAK,CAAC,2BAA2B,CAAC,CAAC;QAC/C,CAAC;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,OAAO,GAAG,EAAE,CAAC;QACf,CAAC;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.1.3`;\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,6 +5,14 @@
|
|
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
|
+
/** Known values of {@link WebPubSubClientType} that the service accepts. */
|
9
|
+
export var KnownWebPubSubClientType;
|
10
|
+
(function (KnownWebPubSubClientType) {
|
11
|
+
/** Default */
|
12
|
+
KnownWebPubSubClientType["Default"] = "Default";
|
13
|
+
/** Mqtt */
|
14
|
+
KnownWebPubSubClientType["Mqtt"] = "MQTT";
|
15
|
+
})(KnownWebPubSubClientType || (KnownWebPubSubClientType = {}));
|
8
16
|
/** Known values of {@link WebPubSubPermission} that the service accepts. */
|
9
17
|
export var KnownWebPubSubPermission;
|
10
18
|
(function (KnownWebPubSubPermission) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/generated/models/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAgKH,4EAA4E;AAC5E,MAAM,CAAN,IAAY,wBAKX;AALD,WAAY,wBAAwB;IAClC,kBAAkB;IAClB,uDAA2B,CAAA;IAC3B,qBAAqB;IACrB,6DAAiC,CAAA;AACnC,CAAC,EALW,wBAAwB,KAAxB,wBAAwB,QAKnC","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 request object containing targets groups and a connection filter */\nexport interface AddToGroupsRequest {\n /** A list of groups which target connections will be added into */\n groups?: string[];\n /** An OData filter which target connections satisfy */\n filter?: 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/** 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 request object containing targets groups and a connection filter */\nexport interface RemoveFromGroupsRequest {\n /** A list of groups which target connections will be removed from */\n groups?: string[];\n /** An OData filter which target connections satisfy */\n filter?: string;\n}\n\n/** Defines headers for WebPubSub_addConnectionsToGroups operation. */\nexport interface WebPubSubAddConnectionsToGroupsExceptionHeaders {\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_generateClientToken operation. */\nexport interface WebPubSubGenerateClientTokenExceptionHeaders {\n errorCode?: string;\n}\n\n/** Defines headers for WebPubSub_removeConnectionsFromGroups operation. */\nexport interface WebPubSubRemoveConnectionsFromGroupsExceptionHeaders {\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_closeConnection operation. */\nexport interface WebPubSubCloseConnectionExceptionHeaders {\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_sendToConnection operation. */\nexport interface WebPubSubSendToConnectionExceptionHeaders {\n errorCode?: string;\n}\n\n/** Defines headers for WebPubSub_removeConnectionFromAllGroups operation. */\nexport interface WebPubSubRemoveConnectionFromAllGroupsExceptionHeaders {\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_removeConnectionFromGroup operation. */\nexport interface WebPubSubRemoveConnectionFromGroupExceptionHeaders {\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_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/** Defines headers for WebPubSub_grantPermission operation. */\nexport interface WebPubSubGrantPermissionExceptionHeaders {\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_removeUserFromAllGroups operation. */\nexport interface WebPubSubRemoveUserFromAllGroupsExceptionHeaders {\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_addUserToGroup operation. */\nexport interface WebPubSubAddUserToGroupExceptionHeaders {\n errorCode?: string;\n}\n\n/** Known values of {@link WebPubSubPermission} that the service accepts. */\nexport enum KnownWebPubSubPermission {\n /** SendToGroup */\n SendToGroup = \"sendToGroup\",\n /** JoinLeaveGroup */\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 WebPubSubAddConnectionsToGroupsOptionalParams\n extends coreClient.OperationOptions {}\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 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 /** Groups that the connection will join when it connects. */\n groups?: string[];\n}\n\n/** Contains response data for the generateClientToken operation. */\nexport type WebPubSubGenerateClientTokenResponse = ClientTokenResponse;\n\n/** Optional parameters. */\nexport interface WebPubSubRemoveConnectionsFromGroupsOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Optional parameters. */\nexport interface WebPubSubSendToAll$binaryOptionalParams\n extends coreClient.OperationOptions {\n /** Excluded connection Ids. */\n excludedConnections?: string[];\n /** Following OData filter syntax to filter out the subscribers receiving the messages. */\n filter?: string;\n /** The time-to-live (TTL) value in seconds for messages sent to the service. 0 is the default value, which means the message never expires. 300 is the maximum value. If this parameter is non-zero, messages that are not consumed by the client within the specified TTL will be dropped by the service. This parameter can help when the client's bandwidth is limited. */\n messageTtlSeconds?: number;\n}\n\n/** Optional parameters. */\nexport interface WebPubSubSendToAll$textOptionalParams\n extends coreClient.OperationOptions {\n /** Excluded connection Ids. */\n excludedConnections?: string[];\n /** Following OData filter syntax to filter out the subscribers receiving the messages. */\n filter?: string;\n /** The time-to-live (TTL) value in seconds for messages sent to the service. 0 is the default value, which means the message never expires. 300 is the maximum value. If this parameter is non-zero, messages that are not consumed by the client within the specified TTL will be dropped by the service. This parameter can help when the client's bandwidth is limited. */\n messageTtlSeconds?: number;\n}\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 WebPubSubConnectionExistsOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Optional parameters. */\nexport interface WebPubSubSendToConnection$binaryOptionalParams\n extends coreClient.OperationOptions {\n /** The time-to-live (TTL) value in seconds for messages sent to the service. 0 is the default value, which means the message never expires. 300 is the maximum value. If this parameter is non-zero, messages that are not consumed by the client within the specified TTL will be dropped by the service. This parameter can help when the client's bandwidth is limited. */\n messageTtlSeconds?: number;\n}\n\n/** Optional parameters. */\nexport interface WebPubSubSendToConnection$textOptionalParams\n extends coreClient.OperationOptions {\n /** The time-to-live (TTL) value in seconds for messages sent to the service. 0 is the default value, which means the message never expires. 300 is the maximum value. If this parameter is non-zero, messages that are not consumed by the client within the specified TTL will be dropped by the service. This parameter can help when the client's bandwidth is limited. */\n messageTtlSeconds?: number;\n}\n\n/** Optional parameters. */\nexport interface WebPubSubRemoveConnectionFromAllGroupsOptionalParams\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 /** Following OData filter syntax to filter out the subscribers receiving the messages. */\n filter?: string;\n /** The time-to-live (TTL) value in seconds for messages sent to the service. 0 is the default value, which means the message never expires. 300 is the maximum value. If this parameter is non-zero, messages that are not consumed by the client within the specified TTL will be dropped by the service. This parameter can help when the client's bandwidth is limited. */\n messageTtlSeconds?: number;\n}\n\n/** Optional parameters. */\nexport interface WebPubSubSendToGroup$textOptionalParams\n extends coreClient.OperationOptions {\n /** Excluded connection Ids */\n excludedConnections?: string[];\n /** Following OData filter syntax to filter out the subscribers receiving the messages. */\n filter?: string;\n /** The time-to-live (TTL) value in seconds for messages sent to the service. 0 is the default value, which means the message never expires. 300 is the maximum value. If this parameter is non-zero, messages that are not consumed by the client within the specified TTL will be dropped by the service. This parameter can help when the client's bandwidth is limited. */\n messageTtlSeconds?: number;\n}\n\n/** Optional parameters. */\nexport interface WebPubSubRemoveConnectionFromGroupOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Optional parameters. */\nexport interface WebPubSubAddConnectionToGroupOptionalParams\n extends coreClient.OperationOptions {}\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 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 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 /** Following OData filter syntax to filter out the subscribers receiving the messages. */\n filter?: string;\n /** The time-to-live (TTL) value in seconds for messages sent to the service. 0 is the default value, which means the message never expires. 300 is the maximum value. If this parameter is non-zero, messages that are not consumed by the client within the specified TTL will be dropped by the service. This parameter can help when the client's bandwidth is limited. */\n messageTtlSeconds?: number;\n}\n\n/** Optional parameters. */\nexport interface WebPubSubSendToUser$textOptionalParams\n extends coreClient.OperationOptions {\n /** Following OData filter syntax to filter out the subscribers receiving the messages. */\n filter?: string;\n /** The time-to-live (TTL) value in seconds for messages sent to the service. 0 is the default value, which means the message never expires. 300 is the maximum value. If this parameter is non-zero, messages that are not consumed by the client within the specified TTL will be dropped by the service. This parameter can help when the client's bandwidth is limited. */\n messageTtlSeconds?: number;\n}\n\n/** Optional parameters. */\nexport interface WebPubSubRemoveUserFromAllGroupsOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Optional parameters. */\nexport interface WebPubSubRemoveUserFromGroupOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Optional parameters. */\nexport interface WebPubSubAddUserToGroupOptionalParams\n extends coreClient.OperationOptions {}\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;AAgKH,4EAA4E;AAC5E,MAAM,CAAN,IAAY,wBAKX;AALD,WAAY,wBAAwB;IAClC,cAAc;IACd,+CAAmB,CAAA;IACnB,WAAW;IACX,yCAAa,CAAA;AACf,CAAC,EALW,wBAAwB,KAAxB,wBAAwB,QAKnC;AAYD,4EAA4E;AAC5E,MAAM,CAAN,IAAY,wBAKX;AALD,WAAY,wBAAwB;IAClC,kBAAkB;IAClB,uDAA2B,CAAA;IAC3B,qBAAqB;IACrB,6DAAiC,CAAA;AACnC,CAAC,EALW,wBAAwB,KAAxB,wBAAwB,QAKnC","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 request object containing targets groups and a connection filter */\nexport interface AddToGroupsRequest {\n /** A list of groups which target connections will be added into */\n groups?: string[];\n /** An OData filter which target connections satisfy */\n filter?: 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/** 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 request object containing targets groups and a connection filter */\nexport interface RemoveFromGroupsRequest {\n /** A list of groups which target connections will be removed from */\n groups?: string[];\n /** An OData filter which target connections satisfy */\n filter?: string;\n}\n\n/** Defines headers for WebPubSub_addConnectionsToGroups operation. */\nexport interface WebPubSubAddConnectionsToGroupsExceptionHeaders {\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_generateClientToken operation. */\nexport interface WebPubSubGenerateClientTokenExceptionHeaders {\n errorCode?: string;\n}\n\n/** Defines headers for WebPubSub_removeConnectionsFromGroups operation. */\nexport interface WebPubSubRemoveConnectionsFromGroupsExceptionHeaders {\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_closeConnection operation. */\nexport interface WebPubSubCloseConnectionExceptionHeaders {\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_sendToConnection operation. */\nexport interface WebPubSubSendToConnectionExceptionHeaders {\n errorCode?: string;\n}\n\n/** Defines headers for WebPubSub_removeConnectionFromAllGroups operation. */\nexport interface WebPubSubRemoveConnectionFromAllGroupsExceptionHeaders {\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_removeConnectionFromGroup operation. */\nexport interface WebPubSubRemoveConnectionFromGroupExceptionHeaders {\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_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/** Defines headers for WebPubSub_grantPermission operation. */\nexport interface WebPubSubGrantPermissionExceptionHeaders {\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_removeUserFromAllGroups operation. */\nexport interface WebPubSubRemoveUserFromAllGroupsExceptionHeaders {\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_addUserToGroup operation. */\nexport interface WebPubSubAddUserToGroupExceptionHeaders {\n errorCode?: string;\n}\n\n/** Known values of {@link WebPubSubClientType} that the service accepts. */\nexport enum KnownWebPubSubClientType {\n /** Default */\n Default = \"Default\",\n /** Mqtt */\n Mqtt = \"MQTT\",\n}\n\n/**\n * Defines values for WebPubSubClientType. \\\n * {@link KnownWebPubSubClientType} can be used interchangeably with WebPubSubClientType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Default** \\\n * **MQTT**\n */\nexport type WebPubSubClientType = string;\n\n/** Known values of {@link WebPubSubPermission} that the service accepts. */\nexport enum KnownWebPubSubPermission {\n /** SendToGroup */\n SendToGroup = \"sendToGroup\",\n /** JoinLeaveGroup */\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 WebPubSubAddConnectionsToGroupsOptionalParams\n extends coreClient.OperationOptions {}\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 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 /** Groups that the connection will join when it connects. */\n groups?: string[];\n /** The type of client. Case-insensitive. If not set, it's \"Default\". For Web PubSub for Socket.IO, only the default value is supported. For Web PubSub, the valid values are 'Default' and 'MQTT'. */\n clientType?: WebPubSubClientType;\n}\n\n/** Contains response data for the generateClientToken operation. */\nexport type WebPubSubGenerateClientTokenResponse = ClientTokenResponse;\n\n/** Optional parameters. */\nexport interface WebPubSubRemoveConnectionsFromGroupsOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Optional parameters. */\nexport interface WebPubSubSendToAll$binaryOptionalParams\n extends coreClient.OperationOptions {\n /** Excluded connection Ids. */\n excludedConnections?: string[];\n /** Following OData filter syntax to filter out the subscribers receiving the messages. */\n filter?: string;\n /** The time-to-live (TTL) value in seconds for messages sent to the service. 0 is the default value, which means the message never expires. 300 is the maximum value. If this parameter is non-zero, messages that are not consumed by the client within the specified TTL will be dropped by the service. This parameter can help when the client's bandwidth is limited. */\n messageTtlSeconds?: number;\n}\n\n/** Optional parameters. */\nexport interface WebPubSubSendToAll$textOptionalParams\n extends coreClient.OperationOptions {\n /** Excluded connection Ids. */\n excludedConnections?: string[];\n /** Following OData filter syntax to filter out the subscribers receiving the messages. */\n filter?: string;\n /** The time-to-live (TTL) value in seconds for messages sent to the service. 0 is the default value, which means the message never expires. 300 is the maximum value. If this parameter is non-zero, messages that are not consumed by the client within the specified TTL will be dropped by the service. This parameter can help when the client's bandwidth is limited. */\n messageTtlSeconds?: number;\n}\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 WebPubSubConnectionExistsOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Optional parameters. */\nexport interface WebPubSubSendToConnection$binaryOptionalParams\n extends coreClient.OperationOptions {\n /** The time-to-live (TTL) value in seconds for messages sent to the service. 0 is the default value, which means the message never expires. 300 is the maximum value. If this parameter is non-zero, messages that are not consumed by the client within the specified TTL will be dropped by the service. This parameter can help when the client's bandwidth is limited. */\n messageTtlSeconds?: number;\n}\n\n/** Optional parameters. */\nexport interface WebPubSubSendToConnection$textOptionalParams\n extends coreClient.OperationOptions {\n /** The time-to-live (TTL) value in seconds for messages sent to the service. 0 is the default value, which means the message never expires. 300 is the maximum value. If this parameter is non-zero, messages that are not consumed by the client within the specified TTL will be dropped by the service. This parameter can help when the client's bandwidth is limited. */\n messageTtlSeconds?: number;\n}\n\n/** Optional parameters. */\nexport interface WebPubSubRemoveConnectionFromAllGroupsOptionalParams\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 /** Following OData filter syntax to filter out the subscribers receiving the messages. */\n filter?: string;\n /** The time-to-live (TTL) value in seconds for messages sent to the service. 0 is the default value, which means the message never expires. 300 is the maximum value. If this parameter is non-zero, messages that are not consumed by the client within the specified TTL will be dropped by the service. This parameter can help when the client's bandwidth is limited. */\n messageTtlSeconds?: number;\n}\n\n/** Optional parameters. */\nexport interface WebPubSubSendToGroup$textOptionalParams\n extends coreClient.OperationOptions {\n /** Excluded connection Ids */\n excludedConnections?: string[];\n /** Following OData filter syntax to filter out the subscribers receiving the messages. */\n filter?: string;\n /** The time-to-live (TTL) value in seconds for messages sent to the service. 0 is the default value, which means the message never expires. 300 is the maximum value. If this parameter is non-zero, messages that are not consumed by the client within the specified TTL will be dropped by the service. This parameter can help when the client's bandwidth is limited. */\n messageTtlSeconds?: number;\n}\n\n/** Optional parameters. */\nexport interface WebPubSubRemoveConnectionFromGroupOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Optional parameters. */\nexport interface WebPubSubAddConnectionToGroupOptionalParams\n extends coreClient.OperationOptions {}\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 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 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 /** Following OData filter syntax to filter out the subscribers receiving the messages. */\n filter?: string;\n /** The time-to-live (TTL) value in seconds for messages sent to the service. 0 is the default value, which means the message never expires. 300 is the maximum value. If this parameter is non-zero, messages that are not consumed by the client within the specified TTL will be dropped by the service. This parameter can help when the client's bandwidth is limited. */\n messageTtlSeconds?: number;\n}\n\n/** Optional parameters. */\nexport interface WebPubSubSendToUser$textOptionalParams\n extends coreClient.OperationOptions {\n /** Following OData filter syntax to filter out the subscribers receiving the messages. */\n filter?: string;\n /** The time-to-live (TTL) value in seconds for messages sent to the service. 0 is the default value, which means the message never expires. 300 is the maximum value. If this parameter is non-zero, messages that are not consumed by the client within the specified TTL will be dropped by the service. This parameter can help when the client's bandwidth is limited. */\n messageTtlSeconds?: number;\n}\n\n/** Optional parameters. */\nexport interface WebPubSubRemoveUserFromAllGroupsOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Optional parameters. */\nexport interface WebPubSubRemoveUserFromGroupOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Optional parameters. */\nexport interface WebPubSubAddUserToGroupOptionalParams\n extends coreClient.OperationOptions {}\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"]}
|