@azure/web-pubsub 1.1.4-alpha.20241119.1 → 1.1.4-alpha.20241120.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/commonjs/generated/generatedClient.d.ts +19 -0
- package/dist/commonjs/generated/generatedClient.d.ts.map +1 -0
- package/dist/commonjs/generated/generatedClient.js +76 -0
- package/dist/commonjs/generated/generatedClient.js.map +1 -0
- package/dist/commonjs/generated/generatedClientContext.d.ts +14 -0
- package/dist/commonjs/generated/generatedClientContext.d.ts.map +1 -0
- package/dist/commonjs/generated/generatedClientContext.js +46 -0
- package/dist/commonjs/generated/generatedClientContext.js.map +1 -0
- package/dist/commonjs/generated/index.d.ts +4 -0
- package/dist/commonjs/generated/index.d.ts.map +1 -0
- package/dist/commonjs/generated/index.js +16 -0
- package/dist/commonjs/generated/index.js.map +1 -0
- package/dist/commonjs/generated/models/index.d.ts +323 -0
- package/dist/commonjs/generated/models/index.d.ts.map +1 -0
- package/dist/commonjs/generated/models/index.js +27 -0
- package/dist/commonjs/generated/models/index.js.map +1 -0
- package/dist/commonjs/generated/models/mappers.d.ts +30 -0
- package/dist/commonjs/generated/models/mappers.d.ts.map +1 -0
- package/dist/commonjs/generated/models/mappers.js +463 -0
- package/dist/commonjs/generated/models/mappers.js.map +1 -0
- package/dist/commonjs/generated/models/parameters.d.ts +31 -0
- package/dist/commonjs/generated/models/parameters.d.ts.map +1 -0
- package/dist/commonjs/generated/models/parameters.js +335 -0
- package/dist/commonjs/generated/models/parameters.js.map +1 -0
- package/dist/commonjs/generated/operations/healthApi.d.ts +18 -0
- package/dist/commonjs/generated/operations/healthApi.d.ts.map +1 -0
- package/dist/commonjs/generated/operations/healthApi.js +43 -0
- package/dist/commonjs/generated/operations/healthApi.js.map +1 -0
- package/dist/commonjs/generated/operations/index.d.ts +3 -0
- package/dist/commonjs/generated/operations/index.d.ts.map +1 -0
- package/dist/commonjs/generated/operations/index.js +13 -0
- package/dist/commonjs/generated/operations/index.js.map +1 -0
- package/dist/commonjs/generated/operations/webPubSub.d.ts +249 -0
- package/dist/commonjs/generated/operations/webPubSub.d.ts.map +1 -0
- package/dist/commonjs/generated/operations/webPubSub.js +874 -0
- package/dist/commonjs/generated/operations/webPubSub.js.map +1 -0
- package/dist/commonjs/generated/operationsInterfaces/healthApi.d.ts +10 -0
- package/dist/commonjs/generated/operationsInterfaces/healthApi.d.ts.map +1 -0
- package/dist/commonjs/generated/operationsInterfaces/healthApi.js +10 -0
- package/dist/commonjs/generated/operationsInterfaces/healthApi.js.map +1 -0
- package/dist/commonjs/generated/operationsInterfaces/index.d.ts +3 -0
- package/dist/commonjs/generated/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/commonjs/generated/operationsInterfaces/index.js +13 -0
- package/dist/commonjs/generated/operationsInterfaces/index.js.map +1 -0
- package/dist/commonjs/generated/operationsInterfaces/webPubSub.d.ts +224 -0
- package/dist/commonjs/generated/operationsInterfaces/webPubSub.d.ts.map +1 -0
- package/dist/commonjs/generated/operationsInterfaces/webPubSub.js +10 -0
- package/dist/commonjs/generated/operationsInterfaces/webPubSub.js.map +1 -0
- package/dist/commonjs/groupClient.d.ts +232 -0
- package/dist/commonjs/groupClient.d.ts.map +1 -0
- package/dist/commonjs/groupClient.js +101 -0
- package/dist/commonjs/groupClient.js.map +1 -0
- package/dist/commonjs/hubClient.d.ts +478 -0
- package/dist/commonjs/hubClient.d.ts.map +1 -0
- package/dist/commonjs/hubClient.js +372 -0
- package/dist/commonjs/hubClient.js.map +1 -0
- package/dist/commonjs/index.d.ts +5 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +12 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/logger.d.ts +5 -0
- package/dist/commonjs/logger.d.ts.map +1 -0
- package/dist/commonjs/logger.js +11 -0
- package/dist/commonjs/logger.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/parseConnectionString.d.ts +8 -0
- package/dist/commonjs/parseConnectionString.d.ts.map +1 -0
- package/dist/commonjs/parseConnectionString.js +34 -0
- package/dist/commonjs/parseConnectionString.js.map +1 -0
- package/dist/commonjs/reverseProxyPolicy.d.ts +9 -0
- package/dist/commonjs/reverseProxyPolicy.d.ts.map +1 -0
- package/dist/commonjs/reverseProxyPolicy.js +25 -0
- package/dist/commonjs/reverseProxyPolicy.js.map +1 -0
- package/dist/commonjs/tracing.d.ts +3 -0
- package/dist/commonjs/tracing.d.ts.map +1 -0
- package/dist/commonjs/tracing.js +12 -0
- package/dist/commonjs/tracing.js.map +1 -0
- package/dist/commonjs/tsdoc-metadata.json +11 -0
- package/dist/commonjs/utils.d.ts +29 -0
- package/dist/commonjs/utils.d.ts.map +1 -0
- package/dist/commonjs/utils.js +73 -0
- package/dist/commonjs/utils.js.map +1 -0
- package/dist/commonjs/webPubSubCredentialPolicy.d.ts +13 -0
- package/dist/commonjs/webPubSubCredentialPolicy.d.ts.map +1 -0
- package/dist/commonjs/webPubSubCredentialPolicy.js +32 -0
- package/dist/commonjs/webPubSubCredentialPolicy.js.map +1 -0
- package/dist/esm/generated/generatedClient.d.ts +19 -0
- package/dist/esm/generated/generatedClient.d.ts.map +1 -0
- package/{dist-esm/src → dist/esm}/generated/generatedClient.js +1 -1
- package/dist/esm/generated/generatedClient.js.map +1 -0
- package/dist/esm/generated/generatedClientContext.d.ts +14 -0
- package/dist/esm/generated/generatedClientContext.d.ts.map +1 -0
- package/dist/esm/generated/generatedClientContext.js.map +1 -0
- package/dist/esm/generated/index.d.ts +4 -0
- package/dist/esm/generated/index.d.ts.map +1 -0
- package/{dist-esm/src → dist/esm}/generated/index.js +3 -3
- package/dist/esm/generated/index.js.map +1 -0
- package/dist/esm/generated/models/index.d.ts +323 -0
- package/dist/esm/generated/models/index.d.ts.map +1 -0
- package/dist/esm/generated/models/mappers.d.ts +30 -0
- package/dist/esm/generated/models/mappers.d.ts.map +1 -0
- package/dist/esm/generated/models/parameters.d.ts +31 -0
- package/dist/esm/generated/models/parameters.d.ts.map +1 -0
- package/{dist-esm/src → dist/esm}/generated/models/parameters.js +1 -1
- package/dist/esm/generated/models/parameters.js.map +1 -0
- package/dist/esm/generated/operations/healthApi.d.ts +18 -0
- package/dist/esm/generated/operations/healthApi.d.ts.map +1 -0
- package/{dist-esm/src → dist/esm}/generated/operations/healthApi.js +2 -2
- package/dist/esm/generated/operations/healthApi.js.map +1 -0
- package/dist/esm/generated/operations/index.d.ts +3 -0
- package/dist/esm/generated/operations/index.d.ts.map +1 -0
- package/{dist-esm/src/generated/operationsInterfaces → dist/esm/generated/operations}/index.js +2 -2
- package/dist/esm/generated/operations/index.js.map +1 -0
- package/dist/esm/generated/operations/webPubSub.d.ts +249 -0
- package/dist/esm/generated/operations/webPubSub.d.ts.map +1 -0
- package/{dist-esm/src → dist/esm}/generated/operations/webPubSub.js +2 -2
- package/dist/esm/generated/operations/webPubSub.js.map +1 -0
- package/dist/esm/generated/operationsInterfaces/healthApi.d.ts +10 -0
- package/dist/esm/generated/operationsInterfaces/healthApi.d.ts.map +1 -0
- package/{dist-esm/src → dist/esm}/generated/operationsInterfaces/healthApi.js.map +1 -1
- package/dist/esm/generated/operationsInterfaces/index.d.ts +3 -0
- package/dist/esm/generated/operationsInterfaces/index.d.ts.map +1 -0
- package/{dist-esm/src/generated/operations → dist/esm/generated/operationsInterfaces}/index.js +2 -2
- package/dist/esm/generated/operationsInterfaces/index.js.map +1 -0
- package/dist/esm/generated/operationsInterfaces/webPubSub.d.ts +224 -0
- package/dist/esm/generated/operationsInterfaces/webPubSub.d.ts.map +1 -0
- package/dist/esm/generated/operationsInterfaces/webPubSub.js.map +1 -0
- package/dist/esm/groupClient.d.ts +232 -0
- package/dist/esm/groupClient.d.ts.map +1 -0
- package/{dist-esm/src → dist/esm}/groupClient.js +2 -2
- package/dist/esm/groupClient.js.map +1 -0
- package/dist/esm/hubClient.d.ts +478 -0
- package/dist/esm/hubClient.d.ts.map +1 -0
- package/{dist-esm/src → dist/esm}/hubClient.js +9 -9
- package/dist/esm/hubClient.js.map +1 -0
- package/dist/esm/index.d.ts +5 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/{dist-esm/src → dist/esm}/index.js +2 -2
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/logger.d.ts +5 -0
- package/dist/esm/logger.d.ts.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/parseConnectionString.d.ts +8 -0
- package/dist/esm/parseConnectionString.d.ts.map +1 -0
- package/dist/esm/reverseProxyPolicy.d.ts +9 -0
- package/dist/esm/reverseProxyPolicy.d.ts.map +1 -0
- package/dist/esm/tracing.d.ts +3 -0
- package/dist/esm/tracing.d.ts.map +1 -0
- package/dist/esm/utils.d.ts +29 -0
- package/dist/esm/utils.d.ts.map +1 -0
- package/dist/esm/webPubSubCredentialPolicy.d.ts +13 -0
- package/dist/esm/webPubSubCredentialPolicy.d.ts.map +1 -0
- package/package.json +56 -52
- package/dist/index.js +0 -2441
- package/dist/index.js.map +0 -1
- package/dist-esm/samples-dev/broadcasting.js +0 -27
- package/dist-esm/samples-dev/broadcasting.js.map +0 -1
- package/dist-esm/samples-dev/directMessage.js +0 -20
- package/dist-esm/samples-dev/directMessage.js.map +0 -1
- package/dist-esm/samples-dev/managingGroups.js +0 -23
- package/dist-esm/samples-dev/managingGroups.js.map +0 -1
- package/dist-esm/src/generated/generatedClient.js.map +0 -1
- package/dist-esm/src/generated/generatedClientContext.js.map +0 -1
- package/dist-esm/src/generated/index.js.map +0 -1
- package/dist-esm/src/generated/models/parameters.js.map +0 -1
- package/dist-esm/src/generated/operations/healthApi.js.map +0 -1
- package/dist-esm/src/generated/operations/index.js.map +0 -1
- package/dist-esm/src/generated/operations/webPubSub.js.map +0 -1
- package/dist-esm/src/generated/operationsInterfaces/index.js.map +0 -1
- package/dist-esm/src/generated/operationsInterfaces/webPubSub.js.map +0 -1
- package/dist-esm/src/groupClient.js.map +0 -1
- package/dist-esm/src/hubClient.js.map +0 -1
- package/dist-esm/src/index.js.map +0 -1
- package/dist-esm/test/conn.spec.js +0 -23
- package/dist-esm/test/conn.spec.js.map +0 -1
- package/dist-esm/test/groups.spec.js +0 -138
- package/dist-esm/test/groups.spec.js.map +0 -1
- package/dist-esm/test/hubs.spec.js +0 -270
- package/dist-esm/test/hubs.spec.js.map +0 -1
- package/dist-esm/test/integration.spec.js +0 -299
- package/dist-esm/test/integration.spec.js.map +0 -1
- package/dist-esm/test/odata.spec.js +0 -15
- package/dist-esm/test/odata.spec.js.map +0 -1
- package/dist-esm/test/testEnv.js +0 -23
- package/dist-esm/test/testEnv.js.map +0 -1
- /package/{dist-esm/src → dist/esm}/generated/generatedClientContext.js +0 -0
- /package/{dist-esm/src → dist/esm}/generated/models/index.js +0 -0
- /package/{dist-esm/src → dist/esm}/generated/models/index.js.map +0 -0
- /package/{dist-esm/src → dist/esm}/generated/models/mappers.js +0 -0
- /package/{dist-esm/src → dist/esm}/generated/models/mappers.js.map +0 -0
- /package/{dist-esm/src → dist/esm}/generated/operationsInterfaces/healthApi.js +0 -0
- /package/{dist-esm/src → dist/esm}/generated/operationsInterfaces/webPubSub.js +0 -0
- /package/{dist-esm/src → dist/esm}/logger.js +0 -0
- /package/{dist-esm/src → dist/esm}/logger.js.map +0 -0
- /package/{dist-esm/src → dist/esm}/parseConnectionString.js +0 -0
- /package/{dist-esm/src → dist/esm}/parseConnectionString.js.map +0 -0
- /package/{dist-esm/src → dist/esm}/reverseProxyPolicy.js +0 -0
- /package/{dist-esm/src → dist/esm}/reverseProxyPolicy.js.map +0 -0
- /package/{dist-esm/src → dist/esm}/tracing.js +0 -0
- /package/{dist-esm/src → dist/esm}/tracing.js.map +0 -0
- /package/{dist-esm/src → dist/esm}/utils.js +0 -0
- /package/{dist-esm/src → dist/esm}/utils.js.map +0 -0
- /package/{dist-esm/src → dist/esm}/webPubSubCredentialPolicy.js +0 -0
- /package/{dist-esm/src → dist/esm}/webPubSubCredentialPolicy.js.map +0 -0
- /package/{types → dist}/web-pubsub.d.ts +0 -0
@@ -0,0 +1,19 @@
|
|
1
|
+
import * as coreClient from "@azure/core-client";
|
2
|
+
import { HealthApi, WebPubSub } from "./operationsInterfaces/index.js";
|
3
|
+
import { GeneratedClientOptionalParams } from "./models/index.js";
|
4
|
+
/** @internal */
|
5
|
+
export declare class GeneratedClient extends coreClient.ServiceClient {
|
6
|
+
endpoint: string;
|
7
|
+
apiVersion: string;
|
8
|
+
/**
|
9
|
+
* Initializes a new instance of the GeneratedClient class.
|
10
|
+
* @param endpoint HTTP or HTTPS endpoint for the Web PubSub service instance.
|
11
|
+
* @param options The parameter options
|
12
|
+
*/
|
13
|
+
constructor(endpoint: string, options?: GeneratedClientOptionalParams);
|
14
|
+
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
15
|
+
private addCustomApiVersionPolicy;
|
16
|
+
healthApi: HealthApi;
|
17
|
+
webPubSub: WebPubSub;
|
18
|
+
}
|
19
|
+
//# sourceMappingURL=generatedClient.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"generatedClient.d.ts","sourceRoot":"","sources":["../../../src/generated/generatedClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAOjD,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AACvE,OAAO,EAAE,6BAA6B,EAAE,MAAM,mBAAmB,CAAC;AAElE,gBAAgB;AAChB,qBAAa,eAAgB,SAAQ,UAAU,CAAC,aAAa;IAC3D,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;OAIG;gBACS,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,6BAA6B;IAsCrE,8GAA8G;IAC9G,OAAO,CAAC,yBAAyB;IA2BjC,SAAS,EAAE,SAAS,CAAC;IACrB,SAAS,EAAE,SAAS,CAAC;CACtB"}
|
@@ -0,0 +1,76 @@
|
|
1
|
+
"use strict";
|
2
|
+
/*
|
3
|
+
* Copyright (c) Microsoft Corporation.
|
4
|
+
* Licensed under the MIT License.
|
5
|
+
*
|
6
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
7
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
8
|
+
*/
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
10
|
+
exports.GeneratedClient = void 0;
|
11
|
+
const tslib_1 = require("tslib");
|
12
|
+
const coreClient = tslib_1.__importStar(require("@azure/core-client"));
|
13
|
+
const index_js_1 = require("./operations/index.js");
|
14
|
+
/** @internal */
|
15
|
+
class GeneratedClient extends coreClient.ServiceClient {
|
16
|
+
/**
|
17
|
+
* Initializes a new instance of the GeneratedClient class.
|
18
|
+
* @param endpoint HTTP or HTTPS endpoint for the Web PubSub service instance.
|
19
|
+
* @param options The parameter options
|
20
|
+
*/
|
21
|
+
constructor(endpoint, options) {
|
22
|
+
var _a, _b;
|
23
|
+
if (endpoint === undefined) {
|
24
|
+
throw new Error("'endpoint' cannot be null");
|
25
|
+
}
|
26
|
+
// Initializing default values for options
|
27
|
+
if (!options) {
|
28
|
+
options = {};
|
29
|
+
}
|
30
|
+
const defaults = {
|
31
|
+
requestContentType: "application/json; charset=utf-8",
|
32
|
+
};
|
33
|
+
const packageDetails = `azsdk-js-web-pubsub/1.1.3`;
|
34
|
+
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
35
|
+
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
36
|
+
: `${packageDetails}`;
|
37
|
+
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
38
|
+
userAgentPrefix,
|
39
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "{endpoint}" });
|
40
|
+
super(optionsWithDefaults);
|
41
|
+
// Parameter assignments
|
42
|
+
this.endpoint = endpoint;
|
43
|
+
// Assigning values to Constant parameters
|
44
|
+
this.apiVersion = options.apiVersion || "2024-01-01";
|
45
|
+
this.healthApi = new index_js_1.HealthApiImpl(this);
|
46
|
+
this.webPubSub = new index_js_1.WebPubSubImpl(this);
|
47
|
+
this.addCustomApiVersionPolicy(options.apiVersion);
|
48
|
+
}
|
49
|
+
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
50
|
+
addCustomApiVersionPolicy(apiVersion) {
|
51
|
+
if (!apiVersion) {
|
52
|
+
return;
|
53
|
+
}
|
54
|
+
const apiVersionPolicy = {
|
55
|
+
name: "CustomApiVersionPolicy",
|
56
|
+
async sendRequest(request, next) {
|
57
|
+
const param = request.url.split("?");
|
58
|
+
if (param.length > 1) {
|
59
|
+
const newParams = param[1].split("&").map((item) => {
|
60
|
+
if (item.indexOf("api-version") > -1) {
|
61
|
+
return "api-version=" + apiVersion;
|
62
|
+
}
|
63
|
+
else {
|
64
|
+
return item;
|
65
|
+
}
|
66
|
+
});
|
67
|
+
request.url = param[0] + "?" + newParams.join("&");
|
68
|
+
}
|
69
|
+
return next(request);
|
70
|
+
},
|
71
|
+
};
|
72
|
+
this.pipeline.addPolicy(apiVersionPolicy);
|
73
|
+
}
|
74
|
+
}
|
75
|
+
exports.GeneratedClient = GeneratedClient;
|
76
|
+
//# sourceMappingURL=generatedClient.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"generatedClient.js","sourceRoot":"","sources":["../../../src/generated/generatedClient.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,uEAAiD;AAMjD,oDAAqE;AAIrE,gBAAgB;AAChB,MAAa,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,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AAE,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;AA7ED,0CA6EC","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/index.js\";\nimport { HealthApi, WebPubSub } from \"./operationsInterfaces/index.js\";\nimport { GeneratedClientOptionalParams } from \"./models/index.js\";\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"]}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import * as coreClient from "@azure/core-client";
|
2
|
+
import { GeneratedClientOptionalParams } from "./models/index.js";
|
3
|
+
/** @internal */
|
4
|
+
export declare class GeneratedClientContext extends coreClient.ServiceClient {
|
5
|
+
endpoint: string;
|
6
|
+
apiVersion: string;
|
7
|
+
/**
|
8
|
+
* Initializes a new instance of the GeneratedClientContext class.
|
9
|
+
* @param endpoint HTTP or HTTPS endpoint for the Web PubSub service instance.
|
10
|
+
* @param options The parameter options
|
11
|
+
*/
|
12
|
+
constructor(endpoint: string, options?: GeneratedClientOptionalParams);
|
13
|
+
}
|
14
|
+
//# sourceMappingURL=generatedClientContext.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"generatedClientContext.d.ts","sourceRoot":"","sources":["../../../src/generated/generatedClientContext.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,6BAA6B,EAAE,MAAM,mBAAmB,CAAC;AAElE,gBAAgB;AAChB,qBAAa,sBAAuB,SAAQ,UAAU,CAAC,aAAa;IAClE,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;OAIG;gBACS,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,6BAA6B;CAkCtE"}
|
@@ -0,0 +1,46 @@
|
|
1
|
+
"use strict";
|
2
|
+
/*
|
3
|
+
* Copyright (c) Microsoft Corporation.
|
4
|
+
* Licensed under the MIT License.
|
5
|
+
*
|
6
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
7
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
8
|
+
*/
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
10
|
+
exports.GeneratedClientContext = void 0;
|
11
|
+
const tslib_1 = require("tslib");
|
12
|
+
const coreClient = tslib_1.__importStar(require("@azure/core-client"));
|
13
|
+
/** @internal */
|
14
|
+
class GeneratedClientContext extends coreClient.ServiceClient {
|
15
|
+
/**
|
16
|
+
* Initializes a new instance of the GeneratedClientContext class.
|
17
|
+
* @param endpoint HTTP or HTTPS endpoint for the Web PubSub service instance.
|
18
|
+
* @param options The parameter options
|
19
|
+
*/
|
20
|
+
constructor(endpoint, options) {
|
21
|
+
if (endpoint === undefined) {
|
22
|
+
throw new Error("'endpoint' cannot be null");
|
23
|
+
}
|
24
|
+
// Initializing default values for options
|
25
|
+
if (!options) {
|
26
|
+
options = {};
|
27
|
+
}
|
28
|
+
const defaults = {
|
29
|
+
requestContentType: "application/json; charset=utf-8"
|
30
|
+
};
|
31
|
+
const packageDetails = `azsdk-js-web-pubsub/1.1.4`;
|
32
|
+
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
33
|
+
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
34
|
+
: `${packageDetails}`;
|
35
|
+
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
36
|
+
userAgentPrefix
|
37
|
+
}, baseUri: options.endpoint || "{Endpoint}" });
|
38
|
+
super(optionsWithDefaults);
|
39
|
+
// Parameter assignments
|
40
|
+
this.endpoint = endpoint;
|
41
|
+
// Assigning values to Constant parameters
|
42
|
+
this.apiVersion = options.apiVersion || "2021-10-01";
|
43
|
+
}
|
44
|
+
}
|
45
|
+
exports.GeneratedClientContext = GeneratedClientContext;
|
46
|
+
//# sourceMappingURL=generatedClientContext.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"generatedClientContext.js","sourceRoot":"","sources":["../../../src/generated/generatedClientContext.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,uEAAiD;AAGjD,gBAAgB;AAChB,MAAa,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;AA3CD,wDA2CC","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/index.js\";\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.4`;\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"]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/generated/index.ts"],"names":[],"mappings":"AAQA,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,cAAc,iCAAiC,CAAC"}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
"use strict";
|
2
|
+
/*
|
3
|
+
* Copyright (c) Microsoft Corporation.
|
4
|
+
* Licensed under the MIT License.
|
5
|
+
*
|
6
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
7
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
8
|
+
*/
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
10
|
+
exports.GeneratedClient = void 0;
|
11
|
+
const tslib_1 = require("tslib");
|
12
|
+
tslib_1.__exportStar(require("./models/index.js"), exports);
|
13
|
+
var generatedClient_js_1 = require("./generatedClient.js");
|
14
|
+
Object.defineProperty(exports, "GeneratedClient", { enumerable: true, get: function () { return generatedClient_js_1.GeneratedClient; } });
|
15
|
+
tslib_1.__exportStar(require("./operationsInterfaces/index.js"), exports);
|
16
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/generated/index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,4DAAkC;AAClC,2DAAuD;AAA9C,qHAAA,eAAe,OAAA;AACxB,0EAAgD","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\nexport * from \"./models/index.js\";\nexport { GeneratedClient } from \"./generatedClient.js\";\nexport * from \"./operationsInterfaces/index.js\";\n"]}
|
@@ -0,0 +1,323 @@
|
|
1
|
+
import * as coreClient from "@azure/core-client";
|
2
|
+
/** The request object containing targets groups and a connection filter */
|
3
|
+
export interface AddToGroupsRequest {
|
4
|
+
/** A list of groups which target connections will be added into */
|
5
|
+
groups?: string[];
|
6
|
+
/** An OData filter which target connections satisfy */
|
7
|
+
filter?: string;
|
8
|
+
}
|
9
|
+
/** The error object. */
|
10
|
+
export interface ErrorDetail {
|
11
|
+
/** One of a server-defined set of error codes. */
|
12
|
+
code?: string;
|
13
|
+
/** A human-readable representation of the error. */
|
14
|
+
message?: string;
|
15
|
+
/** The target of the error. */
|
16
|
+
target?: string;
|
17
|
+
/** An array of details about specific errors that led to this reported error. */
|
18
|
+
details?: ErrorDetail[];
|
19
|
+
inner?: InnerError;
|
20
|
+
}
|
21
|
+
export interface InnerError {
|
22
|
+
/** A more specific error code than was provided by the containing error. */
|
23
|
+
code?: string;
|
24
|
+
inner?: InnerError;
|
25
|
+
}
|
26
|
+
/** The response object containing the token for the client */
|
27
|
+
export interface ClientTokenResponse {
|
28
|
+
/** The token value for the WebSocket client to connect to the service */
|
29
|
+
token?: string;
|
30
|
+
}
|
31
|
+
/** The request object containing targets groups and a connection filter */
|
32
|
+
export interface RemoveFromGroupsRequest {
|
33
|
+
/** A list of groups which target connections will be removed from */
|
34
|
+
groups?: string[];
|
35
|
+
/** An OData filter which target connections satisfy */
|
36
|
+
filter?: string;
|
37
|
+
}
|
38
|
+
/** Defines headers for WebPubSub_addConnectionsToGroups operation. */
|
39
|
+
export interface WebPubSubAddConnectionsToGroupsExceptionHeaders {
|
40
|
+
errorCode?: string;
|
41
|
+
}
|
42
|
+
/** Defines headers for WebPubSub_closeAllConnections operation. */
|
43
|
+
export interface WebPubSubCloseAllConnectionsExceptionHeaders {
|
44
|
+
errorCode?: string;
|
45
|
+
}
|
46
|
+
/** Defines headers for WebPubSub_generateClientToken operation. */
|
47
|
+
export interface WebPubSubGenerateClientTokenExceptionHeaders {
|
48
|
+
errorCode?: string;
|
49
|
+
}
|
50
|
+
/** Defines headers for WebPubSub_removeConnectionsFromGroups operation. */
|
51
|
+
export interface WebPubSubRemoveConnectionsFromGroupsExceptionHeaders {
|
52
|
+
errorCode?: string;
|
53
|
+
}
|
54
|
+
/** Defines headers for WebPubSub_sendToAll operation. */
|
55
|
+
export interface WebPubSubSendToAllExceptionHeaders {
|
56
|
+
errorCode?: string;
|
57
|
+
}
|
58
|
+
/** Defines headers for WebPubSub_closeConnection operation. */
|
59
|
+
export interface WebPubSubCloseConnectionExceptionHeaders {
|
60
|
+
errorCode?: string;
|
61
|
+
}
|
62
|
+
/** Defines headers for WebPubSub_connectionExists operation. */
|
63
|
+
export interface WebPubSubConnectionExistsExceptionHeaders {
|
64
|
+
errorCode?: string;
|
65
|
+
}
|
66
|
+
/** Defines headers for WebPubSub_sendToConnection operation. */
|
67
|
+
export interface WebPubSubSendToConnectionExceptionHeaders {
|
68
|
+
errorCode?: string;
|
69
|
+
}
|
70
|
+
/** Defines headers for WebPubSub_removeConnectionFromAllGroups operation. */
|
71
|
+
export interface WebPubSubRemoveConnectionFromAllGroupsExceptionHeaders {
|
72
|
+
errorCode?: string;
|
73
|
+
}
|
74
|
+
/** Defines headers for WebPubSub_groupExists operation. */
|
75
|
+
export interface WebPubSubGroupExistsExceptionHeaders {
|
76
|
+
errorCode?: string;
|
77
|
+
}
|
78
|
+
/** Defines headers for WebPubSub_closeGroupConnections operation. */
|
79
|
+
export interface WebPubSubCloseGroupConnectionsExceptionHeaders {
|
80
|
+
errorCode?: string;
|
81
|
+
}
|
82
|
+
/** Defines headers for WebPubSub_sendToGroup operation. */
|
83
|
+
export interface WebPubSubSendToGroupExceptionHeaders {
|
84
|
+
errorCode?: string;
|
85
|
+
}
|
86
|
+
/** Defines headers for WebPubSub_removeConnectionFromGroup operation. */
|
87
|
+
export interface WebPubSubRemoveConnectionFromGroupExceptionHeaders {
|
88
|
+
errorCode?: string;
|
89
|
+
}
|
90
|
+
/** Defines headers for WebPubSub_addConnectionToGroup operation. */
|
91
|
+
export interface WebPubSubAddConnectionToGroupExceptionHeaders {
|
92
|
+
errorCode?: string;
|
93
|
+
}
|
94
|
+
/** Defines headers for WebPubSub_revokePermission operation. */
|
95
|
+
export interface WebPubSubRevokePermissionExceptionHeaders {
|
96
|
+
errorCode?: string;
|
97
|
+
}
|
98
|
+
/** Defines headers for WebPubSub_checkPermission operation. */
|
99
|
+
export interface WebPubSubCheckPermissionExceptionHeaders {
|
100
|
+
errorCode?: string;
|
101
|
+
}
|
102
|
+
/** Defines headers for WebPubSub_grantPermission operation. */
|
103
|
+
export interface WebPubSubGrantPermissionExceptionHeaders {
|
104
|
+
errorCode?: string;
|
105
|
+
}
|
106
|
+
/** Defines headers for WebPubSub_userExists operation. */
|
107
|
+
export interface WebPubSubUserExistsExceptionHeaders {
|
108
|
+
errorCode?: string;
|
109
|
+
}
|
110
|
+
/** Defines headers for WebPubSub_closeUserConnections operation. */
|
111
|
+
export interface WebPubSubCloseUserConnectionsExceptionHeaders {
|
112
|
+
errorCode?: string;
|
113
|
+
}
|
114
|
+
/** Defines headers for WebPubSub_sendToUser operation. */
|
115
|
+
export interface WebPubSubSendToUserExceptionHeaders {
|
116
|
+
errorCode?: string;
|
117
|
+
}
|
118
|
+
/** Defines headers for WebPubSub_removeUserFromAllGroups operation. */
|
119
|
+
export interface WebPubSubRemoveUserFromAllGroupsExceptionHeaders {
|
120
|
+
errorCode?: string;
|
121
|
+
}
|
122
|
+
/** Defines headers for WebPubSub_removeUserFromGroup operation. */
|
123
|
+
export interface WebPubSubRemoveUserFromGroupExceptionHeaders {
|
124
|
+
errorCode?: string;
|
125
|
+
}
|
126
|
+
/** Defines headers for WebPubSub_addUserToGroup operation. */
|
127
|
+
export interface WebPubSubAddUserToGroupExceptionHeaders {
|
128
|
+
errorCode?: string;
|
129
|
+
}
|
130
|
+
/** Known values of {@link WebPubSubClientType} that the service accepts. */
|
131
|
+
export declare enum KnownWebPubSubClientType {
|
132
|
+
/** Default */
|
133
|
+
Default = "Default",
|
134
|
+
/** Mqtt */
|
135
|
+
Mqtt = "MQTT"
|
136
|
+
}
|
137
|
+
/**
|
138
|
+
* Defines values for WebPubSubClientType. \
|
139
|
+
* {@link KnownWebPubSubClientType} can be used interchangeably with WebPubSubClientType,
|
140
|
+
* this enum contains the known values that the service supports.
|
141
|
+
* ### Known values supported by the service
|
142
|
+
* **Default** \
|
143
|
+
* **MQTT**
|
144
|
+
*/
|
145
|
+
export type WebPubSubClientType = string;
|
146
|
+
/** Known values of {@link WebPubSubPermission} that the service accepts. */
|
147
|
+
export declare enum KnownWebPubSubPermission {
|
148
|
+
/** SendToGroup */
|
149
|
+
SendToGroup = "sendToGroup",
|
150
|
+
/** JoinLeaveGroup */
|
151
|
+
JoinLeaveGroup = "joinLeaveGroup"
|
152
|
+
}
|
153
|
+
/**
|
154
|
+
* Defines values for WebPubSubPermission. \
|
155
|
+
* {@link KnownWebPubSubPermission} can be used interchangeably with WebPubSubPermission,
|
156
|
+
* this enum contains the known values that the service supports.
|
157
|
+
* ### Known values supported by the service
|
158
|
+
* **sendToGroup** \
|
159
|
+
* **joinLeaveGroup**
|
160
|
+
*/
|
161
|
+
export type WebPubSubPermission = string;
|
162
|
+
/** Defines values for ContentType. */
|
163
|
+
export type ContentType = "application/json" | "application/octet-stream";
|
164
|
+
/** Optional parameters. */
|
165
|
+
export interface HealthApiGetServiceStatusOptionalParams extends coreClient.OperationOptions {
|
166
|
+
}
|
167
|
+
/** Optional parameters. */
|
168
|
+
export interface WebPubSubAddConnectionsToGroupsOptionalParams extends coreClient.OperationOptions {
|
169
|
+
}
|
170
|
+
/** Optional parameters. */
|
171
|
+
export interface WebPubSubCloseAllConnectionsOptionalParams extends coreClient.OperationOptions {
|
172
|
+
/** Exclude these connectionIds when closing the connections in the hub. */
|
173
|
+
excluded?: string[];
|
174
|
+
/** The reason closing the client connection. */
|
175
|
+
reason?: string;
|
176
|
+
}
|
177
|
+
/** Optional parameters. */
|
178
|
+
export interface WebPubSubGenerateClientTokenOptionalParams extends coreClient.OperationOptions {
|
179
|
+
/** User Id. */
|
180
|
+
userId?: string;
|
181
|
+
/** Roles that the connection with the generated token will have. */
|
182
|
+
roles?: string[];
|
183
|
+
/** The expire time of the generated token. */
|
184
|
+
expirationTimeInMinutes?: number;
|
185
|
+
/** Groups that the connection will join when it connects. */
|
186
|
+
groups?: string[];
|
187
|
+
/** 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'. */
|
188
|
+
clientType?: WebPubSubClientType;
|
189
|
+
}
|
190
|
+
/** Contains response data for the generateClientToken operation. */
|
191
|
+
export type WebPubSubGenerateClientTokenResponse = ClientTokenResponse;
|
192
|
+
/** Optional parameters. */
|
193
|
+
export interface WebPubSubRemoveConnectionsFromGroupsOptionalParams extends coreClient.OperationOptions {
|
194
|
+
}
|
195
|
+
/** Optional parameters. */
|
196
|
+
export interface WebPubSubSendToAll$binaryOptionalParams extends coreClient.OperationOptions {
|
197
|
+
/** Excluded connection Ids. */
|
198
|
+
excludedConnections?: string[];
|
199
|
+
/** Following OData filter syntax to filter out the subscribers receiving the messages. */
|
200
|
+
filter?: string;
|
201
|
+
/** 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. */
|
202
|
+
messageTtlSeconds?: number;
|
203
|
+
}
|
204
|
+
/** Optional parameters. */
|
205
|
+
export interface WebPubSubSendToAll$textOptionalParams extends coreClient.OperationOptions {
|
206
|
+
/** Excluded connection Ids. */
|
207
|
+
excludedConnections?: string[];
|
208
|
+
/** Following OData filter syntax to filter out the subscribers receiving the messages. */
|
209
|
+
filter?: string;
|
210
|
+
/** 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. */
|
211
|
+
messageTtlSeconds?: number;
|
212
|
+
}
|
213
|
+
/** Optional parameters. */
|
214
|
+
export interface WebPubSubCloseConnectionOptionalParams extends coreClient.OperationOptions {
|
215
|
+
/** The reason closing the client connection. */
|
216
|
+
reason?: string;
|
217
|
+
}
|
218
|
+
/** Optional parameters. */
|
219
|
+
export interface WebPubSubConnectionExistsOptionalParams extends coreClient.OperationOptions {
|
220
|
+
}
|
221
|
+
/** Optional parameters. */
|
222
|
+
export interface WebPubSubSendToConnection$binaryOptionalParams extends coreClient.OperationOptions {
|
223
|
+
/** 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. */
|
224
|
+
messageTtlSeconds?: number;
|
225
|
+
}
|
226
|
+
/** Optional parameters. */
|
227
|
+
export interface WebPubSubSendToConnection$textOptionalParams extends coreClient.OperationOptions {
|
228
|
+
/** 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. */
|
229
|
+
messageTtlSeconds?: number;
|
230
|
+
}
|
231
|
+
/** Optional parameters. */
|
232
|
+
export interface WebPubSubRemoveConnectionFromAllGroupsOptionalParams extends coreClient.OperationOptions {
|
233
|
+
}
|
234
|
+
/** Optional parameters. */
|
235
|
+
export interface WebPubSubGroupExistsOptionalParams extends coreClient.OperationOptions {
|
236
|
+
}
|
237
|
+
/** Optional parameters. */
|
238
|
+
export interface WebPubSubCloseGroupConnectionsOptionalParams extends coreClient.OperationOptions {
|
239
|
+
/** Exclude these connectionIds when closing the connections in the group. */
|
240
|
+
excluded?: string[];
|
241
|
+
/** The reason closing the client connection. */
|
242
|
+
reason?: string;
|
243
|
+
}
|
244
|
+
/** Optional parameters. */
|
245
|
+
export interface WebPubSubSendToGroup$binaryOptionalParams extends coreClient.OperationOptions {
|
246
|
+
/** Excluded connection Ids */
|
247
|
+
excludedConnections?: string[];
|
248
|
+
/** Following OData filter syntax to filter out the subscribers receiving the messages. */
|
249
|
+
filter?: string;
|
250
|
+
/** 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. */
|
251
|
+
messageTtlSeconds?: number;
|
252
|
+
}
|
253
|
+
/** Optional parameters. */
|
254
|
+
export interface WebPubSubSendToGroup$textOptionalParams extends coreClient.OperationOptions {
|
255
|
+
/** Excluded connection Ids */
|
256
|
+
excludedConnections?: string[];
|
257
|
+
/** Following OData filter syntax to filter out the subscribers receiving the messages. */
|
258
|
+
filter?: string;
|
259
|
+
/** 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. */
|
260
|
+
messageTtlSeconds?: number;
|
261
|
+
}
|
262
|
+
/** Optional parameters. */
|
263
|
+
export interface WebPubSubRemoveConnectionFromGroupOptionalParams extends coreClient.OperationOptions {
|
264
|
+
}
|
265
|
+
/** Optional parameters. */
|
266
|
+
export interface WebPubSubAddConnectionToGroupOptionalParams extends coreClient.OperationOptions {
|
267
|
+
}
|
268
|
+
/** Optional parameters. */
|
269
|
+
export interface WebPubSubRevokePermissionOptionalParams extends coreClient.OperationOptions {
|
270
|
+
/** The meaning of the target depends on the specific permission. For joinLeaveGroup and sendToGroup, targetName is a required parameter standing for the group name. */
|
271
|
+
targetName?: string;
|
272
|
+
}
|
273
|
+
/** Optional parameters. */
|
274
|
+
export interface WebPubSubCheckPermissionOptionalParams extends coreClient.OperationOptions {
|
275
|
+
/** The meaning of the target depends on the specific permission. For joinLeaveGroup and sendToGroup, targetName is a required parameter standing for the group name. */
|
276
|
+
targetName?: string;
|
277
|
+
}
|
278
|
+
/** Optional parameters. */
|
279
|
+
export interface WebPubSubGrantPermissionOptionalParams extends coreClient.OperationOptions {
|
280
|
+
/** The meaning of the target depends on the specific permission. For joinLeaveGroup and sendToGroup, targetName is a required parameter standing for the group name. */
|
281
|
+
targetName?: string;
|
282
|
+
}
|
283
|
+
/** Optional parameters. */
|
284
|
+
export interface WebPubSubUserExistsOptionalParams extends coreClient.OperationOptions {
|
285
|
+
}
|
286
|
+
/** Optional parameters. */
|
287
|
+
export interface WebPubSubCloseUserConnectionsOptionalParams extends coreClient.OperationOptions {
|
288
|
+
/** Exclude these connectionIds when closing the connections for the user. */
|
289
|
+
excluded?: string[];
|
290
|
+
/** The reason closing the client connection. */
|
291
|
+
reason?: string;
|
292
|
+
}
|
293
|
+
/** Optional parameters. */
|
294
|
+
export interface WebPubSubSendToUser$binaryOptionalParams extends coreClient.OperationOptions {
|
295
|
+
/** Following OData filter syntax to filter out the subscribers receiving the messages. */
|
296
|
+
filter?: string;
|
297
|
+
/** 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. */
|
298
|
+
messageTtlSeconds?: number;
|
299
|
+
}
|
300
|
+
/** Optional parameters. */
|
301
|
+
export interface WebPubSubSendToUser$textOptionalParams extends coreClient.OperationOptions {
|
302
|
+
/** Following OData filter syntax to filter out the subscribers receiving the messages. */
|
303
|
+
filter?: string;
|
304
|
+
/** 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. */
|
305
|
+
messageTtlSeconds?: number;
|
306
|
+
}
|
307
|
+
/** Optional parameters. */
|
308
|
+
export interface WebPubSubRemoveUserFromAllGroupsOptionalParams extends coreClient.OperationOptions {
|
309
|
+
}
|
310
|
+
/** Optional parameters. */
|
311
|
+
export interface WebPubSubRemoveUserFromGroupOptionalParams extends coreClient.OperationOptions {
|
312
|
+
}
|
313
|
+
/** Optional parameters. */
|
314
|
+
export interface WebPubSubAddUserToGroupOptionalParams extends coreClient.OperationOptions {
|
315
|
+
}
|
316
|
+
/** Optional parameters. */
|
317
|
+
export interface GeneratedClientOptionalParams extends coreClient.ServiceClientOptions {
|
318
|
+
/** Api Version */
|
319
|
+
apiVersion?: string;
|
320
|
+
/** Overrides client endpoint. */
|
321
|
+
endpoint?: string;
|
322
|
+
}
|
323
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/generated/models/index.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAEjD,2EAA2E;AAC3E,MAAM,WAAW,kBAAkB;IACjC,mEAAmE;IACnE,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,uDAAuD;IACvD,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,wBAAwB;AACxB,MAAM,WAAW,WAAW;IAC1B,kDAAkD;IAClD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,oDAAoD;IACpD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,+BAA+B;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,iFAAiF;IACjF,OAAO,CAAC,EAAE,WAAW,EAAE,CAAC;IACxB,KAAK,CAAC,EAAE,UAAU,CAAC;CACpB;AAED,MAAM,WAAW,UAAU;IACzB,4EAA4E;IAC5E,IAAI,C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sCACf,SAAQ,UAAU,CAAC,gBAAgB;IACnC,0FAA0F;IAC1F,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,8WAA8W;IAC9W,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,2BAA2B;AAC3B,MAAM,WAAW,8CACf,SAAQ,UAAU,CAAC,gBAAgB;CAAG;AAExC,2BAA2B;AAC3B,MAAM,WAAW,0CACf,SAAQ,UAAU,CAAC,gBAAgB;CAAG;AAExC,2BAA2B;AAC3B,MAAM,WAAW,qCACf,SAAQ,UAAU,CAAC,gBAAgB;CAAG;AAExC,2BAA2B;AAC3B,MAAM,WAAW,6BACf,SAAQ,UAAU,CAAC,oBAAoB;IACvC,kBAAkB;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iCAAiC;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
"use strict";
|
2
|
+
/*
|
3
|
+
* Copyright (c) Microsoft Corporation.
|
4
|
+
* Licensed under the MIT License.
|
5
|
+
*
|
6
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
7
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
8
|
+
*/
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
10
|
+
exports.KnownWebPubSubPermission = exports.KnownWebPubSubClientType = void 0;
|
11
|
+
/** Known values of {@link WebPubSubClientType} that the service accepts. */
|
12
|
+
var KnownWebPubSubClientType;
|
13
|
+
(function (KnownWebPubSubClientType) {
|
14
|
+
/** Default */
|
15
|
+
KnownWebPubSubClientType["Default"] = "Default";
|
16
|
+
/** Mqtt */
|
17
|
+
KnownWebPubSubClientType["Mqtt"] = "MQTT";
|
18
|
+
})(KnownWebPubSubClientType || (exports.KnownWebPubSubClientType = KnownWebPubSubClientType = {}));
|
19
|
+
/** Known values of {@link WebPubSubPermission} that the service accepts. */
|
20
|
+
var KnownWebPubSubPermission;
|
21
|
+
(function (KnownWebPubSubPermission) {
|
22
|
+
/** SendToGroup */
|
23
|
+
KnownWebPubSubPermission["SendToGroup"] = "sendToGroup";
|
24
|
+
/** JoinLeaveGroup */
|
25
|
+
KnownWebPubSubPermission["JoinLeaveGroup"] = "joinLeaveGroup";
|
26
|
+
})(KnownWebPubSubPermission || (exports.KnownWebPubSubPermission = KnownWebPubSubPermission = {}));
|
27
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/generated/models/index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAgKH,4EAA4E;AAC5E,IAAY,wBAKX;AALD,WAAY,wBAAwB;IAClC,cAAc;IACd,+CAAmB,CAAA;IACnB,WAAW;IACX,yCAAa,CAAA;AACf,CAAC,EALW,wBAAwB,wCAAxB,wBAAwB,QAKnC;AAYD,4EAA4E;AAC5E,IAAY,wBAKX;AALD,WAAY,wBAAwB;IAClC,kBAAkB;IAClB,uDAA2B,CAAA;IAC3B,qBAAqB;IACrB,6DAAiC,CAAA;AACnC,CAAC,EALW,wBAAwB,wCAAxB,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"]}
|