@azure/communication-phone-numbers 1.5.0-beta.1 → 1.5.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (186) hide show
  1. package/README.md +20 -1
  2. package/dist/browser/generated/src/phoneNumbersClient.js +1 -1
  3. package/dist/browser/generated/src/phoneNumbersClient.js.map +1 -1
  4. package/dist/browser/generated/src/siprouting/index.d.ts +0 -1
  5. package/dist/browser/generated/src/siprouting/index.d.ts.map +1 -1
  6. package/dist/browser/generated/src/siprouting/index.js +0 -1
  7. package/dist/browser/generated/src/siprouting/index.js.map +1 -1
  8. package/dist/browser/generated/src/siprouting/models/index.d.ts +141 -2
  9. package/dist/browser/generated/src/siprouting/models/index.d.ts.map +1 -1
  10. package/dist/browser/generated/src/siprouting/models/index.js +6 -1
  11. package/dist/browser/generated/src/siprouting/models/index.js.map +1 -1
  12. package/dist/browser/generated/src/siprouting/models/mappers.d.ts +7 -0
  13. package/dist/browser/generated/src/siprouting/models/mappers.d.ts.map +1 -1
  14. package/dist/browser/generated/src/siprouting/models/mappers.js +284 -77
  15. package/dist/browser/generated/src/siprouting/models/mappers.js.map +1 -1
  16. package/dist/browser/generated/src/siprouting/models/parameters.d.ts +7 -0
  17. package/dist/browser/generated/src/siprouting/models/parameters.d.ts.map +1 -1
  18. package/dist/browser/generated/src/siprouting/models/parameters.js +62 -16
  19. package/dist/browser/generated/src/siprouting/models/parameters.js.map +1 -1
  20. package/dist/browser/generated/src/siprouting/operations/sipRouting.d.ts +9 -3
  21. package/dist/browser/generated/src/siprouting/operations/sipRouting.d.ts.map +1 -1
  22. package/dist/browser/generated/src/siprouting/operations/sipRouting.js +45 -11
  23. package/dist/browser/generated/src/siprouting/operations/sipRouting.js.map +1 -1
  24. package/dist/browser/generated/src/siprouting/operationsInterfaces/sipRouting.d.ts +7 -1
  25. package/dist/browser/generated/src/siprouting/operationsInterfaces/sipRouting.d.ts.map +1 -1
  26. package/dist/browser/generated/src/siprouting/operationsInterfaces/sipRouting.js.map +1 -1
  27. package/dist/browser/generated/src/siprouting/sipRoutingClient.d.ts +6 -2
  28. package/dist/browser/generated/src/siprouting/sipRoutingClient.d.ts.map +1 -1
  29. package/dist/browser/generated/src/siprouting/sipRoutingClient.js +51 -3
  30. package/dist/browser/generated/src/siprouting/sipRoutingClient.js.map +1 -1
  31. package/dist/browser/generated/src/siprouting/sipRoutingClientContext.js +1 -1
  32. package/dist/browser/generated/src/siprouting/sipRoutingClientContext.js.map +1 -1
  33. package/dist/browser/generated/src/tracing.js +1 -1
  34. package/dist/browser/generated/src/tracing.js.map +1 -1
  35. package/dist/browser/mappers.d.ts +17 -3
  36. package/dist/browser/mappers.d.ts.map +1 -1
  37. package/dist/browser/mappers.js +51 -2
  38. package/dist/browser/mappers.js.map +1 -1
  39. package/dist/browser/models.d.ts +60 -1
  40. package/dist/browser/models.d.ts.map +1 -1
  41. package/dist/browser/models.js.map +1 -1
  42. package/dist/browser/sipRoutingClient.d.ts +41 -1
  43. package/dist/browser/sipRoutingClient.d.ts.map +1 -1
  44. package/dist/browser/sipRoutingClient.js +158 -2
  45. package/dist/browser/sipRoutingClient.js.map +1 -1
  46. package/dist/browser/utils/constants.js +1 -1
  47. package/dist/browser/utils/constants.js.map +1 -1
  48. package/dist/commonjs/generated/src/phoneNumbersClient.js +1 -1
  49. package/dist/commonjs/generated/src/phoneNumbersClient.js.map +1 -1
  50. package/dist/commonjs/generated/src/siprouting/index.d.ts +0 -1
  51. package/dist/commonjs/generated/src/siprouting/index.d.ts.map +1 -1
  52. package/dist/commonjs/generated/src/siprouting/index.js +1 -3
  53. package/dist/commonjs/generated/src/siprouting/index.js.map +1 -1
  54. package/dist/commonjs/generated/src/siprouting/models/index.d.ts +141 -2
  55. package/dist/commonjs/generated/src/siprouting/models/index.d.ts.map +1 -1
  56. package/dist/commonjs/generated/src/siprouting/models/index.js +7 -0
  57. package/dist/commonjs/generated/src/siprouting/models/index.js.map +1 -1
  58. package/dist/commonjs/generated/src/siprouting/models/mappers.d.ts +7 -0
  59. package/dist/commonjs/generated/src/siprouting/models/mappers.d.ts.map +1 -1
  60. package/dist/commonjs/generated/src/siprouting/models/mappers.js +285 -78
  61. package/dist/commonjs/generated/src/siprouting/models/mappers.js.map +1 -1
  62. package/dist/commonjs/generated/src/siprouting/models/parameters.d.ts +7 -0
  63. package/dist/commonjs/generated/src/siprouting/models/parameters.d.ts.map +1 -1
  64. package/dist/commonjs/generated/src/siprouting/models/parameters.js +62 -16
  65. package/dist/commonjs/generated/src/siprouting/models/parameters.js.map +1 -1
  66. package/dist/commonjs/generated/src/siprouting/operations/sipRouting.d.ts +9 -3
  67. package/dist/commonjs/generated/src/siprouting/operations/sipRouting.d.ts.map +1 -1
  68. package/dist/commonjs/generated/src/siprouting/operations/sipRouting.js +45 -11
  69. package/dist/commonjs/generated/src/siprouting/operations/sipRouting.js.map +1 -1
  70. package/dist/commonjs/generated/src/siprouting/operationsInterfaces/sipRouting.d.ts +7 -1
  71. package/dist/commonjs/generated/src/siprouting/operationsInterfaces/sipRouting.d.ts.map +1 -1
  72. package/dist/commonjs/generated/src/siprouting/operationsInterfaces/sipRouting.js.map +1 -1
  73. package/dist/commonjs/generated/src/siprouting/sipRoutingClient.d.ts +6 -2
  74. package/dist/commonjs/generated/src/siprouting/sipRoutingClient.d.ts.map +1 -1
  75. package/dist/commonjs/generated/src/siprouting/sipRoutingClient.js +52 -3
  76. package/dist/commonjs/generated/src/siprouting/sipRoutingClient.js.map +1 -1
  77. package/dist/commonjs/generated/src/siprouting/sipRoutingClientContext.js +1 -1
  78. package/dist/commonjs/generated/src/siprouting/sipRoutingClientContext.js.map +1 -1
  79. package/dist/commonjs/generated/src/tracing.js +1 -1
  80. package/dist/commonjs/generated/src/tracing.js.map +1 -1
  81. package/dist/commonjs/mappers.d.ts +17 -3
  82. package/dist/commonjs/mappers.d.ts.map +1 -1
  83. package/dist/commonjs/mappers.js +53 -2
  84. package/dist/commonjs/mappers.js.map +1 -1
  85. package/dist/commonjs/models.d.ts +60 -1
  86. package/dist/commonjs/models.d.ts.map +1 -1
  87. package/dist/commonjs/models.js.map +1 -1
  88. package/dist/commonjs/sipRoutingClient.d.ts +41 -1
  89. package/dist/commonjs/sipRoutingClient.d.ts.map +1 -1
  90. package/dist/commonjs/sipRoutingClient.js +157 -1
  91. package/dist/commonjs/sipRoutingClient.js.map +1 -1
  92. package/dist/commonjs/utils/constants.js +1 -1
  93. package/dist/commonjs/utils/constants.js.map +1 -1
  94. package/dist/esm/generated/src/phoneNumbersClient.js +1 -1
  95. package/dist/esm/generated/src/phoneNumbersClient.js.map +1 -1
  96. package/dist/esm/generated/src/siprouting/index.d.ts +0 -1
  97. package/dist/esm/generated/src/siprouting/index.d.ts.map +1 -1
  98. package/dist/esm/generated/src/siprouting/index.js +0 -1
  99. package/dist/esm/generated/src/siprouting/index.js.map +1 -1
  100. package/dist/esm/generated/src/siprouting/models/index.d.ts +141 -2
  101. package/dist/esm/generated/src/siprouting/models/index.d.ts.map +1 -1
  102. package/dist/esm/generated/src/siprouting/models/index.js +6 -1
  103. package/dist/esm/generated/src/siprouting/models/index.js.map +1 -1
  104. package/dist/esm/generated/src/siprouting/models/mappers.d.ts +7 -0
  105. package/dist/esm/generated/src/siprouting/models/mappers.d.ts.map +1 -1
  106. package/dist/esm/generated/src/siprouting/models/mappers.js +284 -77
  107. package/dist/esm/generated/src/siprouting/models/mappers.js.map +1 -1
  108. package/dist/esm/generated/src/siprouting/models/parameters.d.ts +7 -0
  109. package/dist/esm/generated/src/siprouting/models/parameters.d.ts.map +1 -1
  110. package/dist/esm/generated/src/siprouting/models/parameters.js +62 -16
  111. package/dist/esm/generated/src/siprouting/models/parameters.js.map +1 -1
  112. package/dist/esm/generated/src/siprouting/operations/sipRouting.d.ts +9 -3
  113. package/dist/esm/generated/src/siprouting/operations/sipRouting.d.ts.map +1 -1
  114. package/dist/esm/generated/src/siprouting/operations/sipRouting.js +45 -11
  115. package/dist/esm/generated/src/siprouting/operations/sipRouting.js.map +1 -1
  116. package/dist/esm/generated/src/siprouting/operationsInterfaces/sipRouting.d.ts +7 -1
  117. package/dist/esm/generated/src/siprouting/operationsInterfaces/sipRouting.d.ts.map +1 -1
  118. package/dist/esm/generated/src/siprouting/operationsInterfaces/sipRouting.js.map +1 -1
  119. package/dist/esm/generated/src/siprouting/sipRoutingClient.d.ts +6 -2
  120. package/dist/esm/generated/src/siprouting/sipRoutingClient.d.ts.map +1 -1
  121. package/dist/esm/generated/src/siprouting/sipRoutingClient.js +51 -3
  122. package/dist/esm/generated/src/siprouting/sipRoutingClient.js.map +1 -1
  123. package/dist/esm/generated/src/siprouting/sipRoutingClientContext.js +1 -1
  124. package/dist/esm/generated/src/siprouting/sipRoutingClientContext.js.map +1 -1
  125. package/dist/esm/generated/src/tracing.js +1 -1
  126. package/dist/esm/generated/src/tracing.js.map +1 -1
  127. package/dist/esm/mappers.d.ts +17 -3
  128. package/dist/esm/mappers.d.ts.map +1 -1
  129. package/dist/esm/mappers.js +51 -2
  130. package/dist/esm/mappers.js.map +1 -1
  131. package/dist/esm/models.d.ts +60 -1
  132. package/dist/esm/models.d.ts.map +1 -1
  133. package/dist/esm/models.js.map +1 -1
  134. package/dist/esm/sipRoutingClient.d.ts +41 -1
  135. package/dist/esm/sipRoutingClient.d.ts.map +1 -1
  136. package/dist/esm/sipRoutingClient.js +158 -2
  137. package/dist/esm/sipRoutingClient.js.map +1 -1
  138. package/dist/esm/utils/constants.js +1 -1
  139. package/dist/esm/utils/constants.js.map +1 -1
  140. package/dist/react-native/generated/src/phoneNumbersClient.js +1 -1
  141. package/dist/react-native/generated/src/phoneNumbersClient.js.map +1 -1
  142. package/dist/react-native/generated/src/siprouting/index.d.ts +0 -1
  143. package/dist/react-native/generated/src/siprouting/index.d.ts.map +1 -1
  144. package/dist/react-native/generated/src/siprouting/index.js +0 -1
  145. package/dist/react-native/generated/src/siprouting/index.js.map +1 -1
  146. package/dist/react-native/generated/src/siprouting/models/index.d.ts +141 -2
  147. package/dist/react-native/generated/src/siprouting/models/index.d.ts.map +1 -1
  148. package/dist/react-native/generated/src/siprouting/models/index.js +6 -1
  149. package/dist/react-native/generated/src/siprouting/models/index.js.map +1 -1
  150. package/dist/react-native/generated/src/siprouting/models/mappers.d.ts +7 -0
  151. package/dist/react-native/generated/src/siprouting/models/mappers.d.ts.map +1 -1
  152. package/dist/react-native/generated/src/siprouting/models/mappers.js +284 -77
  153. package/dist/react-native/generated/src/siprouting/models/mappers.js.map +1 -1
  154. package/dist/react-native/generated/src/siprouting/models/parameters.d.ts +7 -0
  155. package/dist/react-native/generated/src/siprouting/models/parameters.d.ts.map +1 -1
  156. package/dist/react-native/generated/src/siprouting/models/parameters.js +62 -16
  157. package/dist/react-native/generated/src/siprouting/models/parameters.js.map +1 -1
  158. package/dist/react-native/generated/src/siprouting/operations/sipRouting.d.ts +9 -3
  159. package/dist/react-native/generated/src/siprouting/operations/sipRouting.d.ts.map +1 -1
  160. package/dist/react-native/generated/src/siprouting/operations/sipRouting.js +45 -11
  161. package/dist/react-native/generated/src/siprouting/operations/sipRouting.js.map +1 -1
  162. package/dist/react-native/generated/src/siprouting/operationsInterfaces/sipRouting.d.ts +7 -1
  163. package/dist/react-native/generated/src/siprouting/operationsInterfaces/sipRouting.d.ts.map +1 -1
  164. package/dist/react-native/generated/src/siprouting/operationsInterfaces/sipRouting.js.map +1 -1
  165. package/dist/react-native/generated/src/siprouting/sipRoutingClient.d.ts +6 -2
  166. package/dist/react-native/generated/src/siprouting/sipRoutingClient.d.ts.map +1 -1
  167. package/dist/react-native/generated/src/siprouting/sipRoutingClient.js +51 -3
  168. package/dist/react-native/generated/src/siprouting/sipRoutingClient.js.map +1 -1
  169. package/dist/react-native/generated/src/siprouting/sipRoutingClientContext.js +1 -1
  170. package/dist/react-native/generated/src/siprouting/sipRoutingClientContext.js.map +1 -1
  171. package/dist/react-native/generated/src/tracing.js +1 -1
  172. package/dist/react-native/generated/src/tracing.js.map +1 -1
  173. package/dist/react-native/mappers.d.ts +17 -3
  174. package/dist/react-native/mappers.d.ts.map +1 -1
  175. package/dist/react-native/mappers.js +51 -2
  176. package/dist/react-native/mappers.js.map +1 -1
  177. package/dist/react-native/models.d.ts +60 -1
  178. package/dist/react-native/models.d.ts.map +1 -1
  179. package/dist/react-native/models.js.map +1 -1
  180. package/dist/react-native/sipRoutingClient.d.ts +41 -1
  181. package/dist/react-native/sipRoutingClient.d.ts.map +1 -1
  182. package/dist/react-native/sipRoutingClient.js +158 -2
  183. package/dist/react-native/sipRoutingClient.js.map +1 -1
  184. package/dist/react-native/utils/constants.js +1 -1
  185. package/dist/react-native/utils/constants.js.map +1 -1
  186. package/package.json +2 -1
package/README.md CHANGED
@@ -477,7 +477,9 @@ const client = new SipRoutingClient("<endpoint-from-resource>", credential);
477
477
 
478
478
  const trunk = await client.getTrunk("sbc.one.domain.com");
479
479
  if (trunk) {
480
- console.log(`Trunk ${trunk.fqdn}:${trunk.sipSignalingPort}`);
480
+ console.log(
481
+ `Trunk ${trunk.fqdn}:${trunk.sipSignalingPort}, ${trunk.enabled}, ${trunk.directTransfer}, ${trunk.ipAddressVersion}, ${trunk.privacyHeader}`,
482
+ );
481
483
  } else {
482
484
  console.log("Trunk not found");
483
485
  }
@@ -510,6 +512,23 @@ const client = new SipRoutingClient("<endpoint-from-resource>", credential);
510
512
  await client.deleteTrunk("sbc.one.domain.com");
511
513
  ```
512
514
 
515
+ #### Get SIP routes for target phone number
516
+
517
+ ```ts snippet:SipRoutingClientGetRoutesForNumber
518
+ import { DefaultAzureCredential } from "@azure/identity";
519
+ import { SipRoutingClient } from "@azure/communication-phone-numbers";
520
+
521
+ const credential = new DefaultAzureCredential();
522
+ const client = new SipRoutingClient("<endpoint-from-resource>", credential);
523
+
524
+ const routes = [
525
+ { name: "route1", numberPattern: "^.123.*" },
526
+ { name: "route2", numberPattern: "^.987.*" },
527
+ { name: "route3", numberPattern: "^.*" },
528
+ ];
529
+ const matchedRoutes = await client.getRoutesForNumber("+123456789", routes);
530
+ ```
531
+
513
532
  ## Troubleshooting
514
533
 
515
534
  ### Logging
@@ -25,7 +25,7 @@ export class PhoneNumbersClient extends coreClient.ServiceClient {
25
25
  const defaults = {
26
26
  requestContentType: "application/json; charset=utf-8",
27
27
  };
28
- const packageDetails = `azsdk-js-communication-phone-numbers/1.5.0-beta.1`;
28
+ const packageDetails = `azsdk-js-communication-phone-numbers/1.5.0-beta.2`;
29
29
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
30
30
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
31
31
  : `${packageDetails}`;
@@ -1 +1 @@
1
- {"version":3,"file":"phoneNumbersClient.js","sourceRoot":"","sources":["../../../../src/generated/src/phoneNumbersClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAMjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAIzD,MAAM,OAAO,kBAAmB,SAAQ,UAAU,CAAC,aAAa;IAI9D;;;;OAIG;IACH,YAAY,QAAgB,EAAE,OAA0C;;QACtE,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,GAAqC;YACjD,kBAAkB,EAAE,iCAAiC;SACtD,CAAC;QAEF,MAAM,cAAc,GAAG,mDAAmD,CAAC;QAC3E,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,m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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;CAGF","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 { PhoneNumbersImpl } from \"./operations/index.js\";\nimport { PhoneNumbers } from \"./operationsInterfaces/index.js\";\nimport { PhoneNumbersClientOptionalParams } from \"./models/index.js\";\n\nexport class PhoneNumbersClient extends coreClient.ServiceClient {\n endpoint: string;\n apiVersion: string;\n\n /**\n * Initializes a new instance of the PhoneNumbersClient class.\n * @param endpoint The communication resource, for example https://resourcename.communication.azure.com\n * @param options The parameter options\n */\n constructor(endpoint: string, options?: PhoneNumbersClientOptionalParams) {\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: PhoneNumbersClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n };\n\n const packageDetails = `azsdk-js-communication-phone-numbers/1.5.0-beta.1`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n 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 || \"2025-06-01\";\n this.phoneNumbers = new PhoneNumbersImpl(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 phoneNumbers: PhoneNumbers;\n}\n"]}
1
+ {"version":3,"file":"phoneNumbersClient.js","sourceRoot":"","sources":["../../../../src/generated/src/phoneNumbersClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAMjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAIzD,MAAM,OAAO,kBAAmB,SAAQ,UAAU,CAAC,aAAa;IAI9D;;;;OAIG;IACH,YAAY,QAAgB,EAAE,OAA0C;;QACtE,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,GAAqC;YACjD,kBAAkB,EAAE,iCAAiC;SACtD,CAAC;QAEF,MAAM,cAAc,GAAG,mDAAmD,CAAC;QAC3E,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;YACl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,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;CAGF","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 { PhoneNumbersImpl } from \"./operations/index.js\";\nimport { PhoneNumbers } from \"./operationsInterfaces/index.js\";\nimport { PhoneNumbersClientOptionalParams } from \"./models/index.js\";\n\nexport class PhoneNumbersClient extends coreClient.ServiceClient {\n endpoint: string;\n apiVersion: string;\n\n /**\n * Initializes a new instance of the PhoneNumbersClient class.\n * @param endpoint The communication resource, for example https://resourcename.communication.azure.com\n * @param options The parameter options\n */\n constructor(endpoint: string, options?: PhoneNumbersClientOptionalParams) {\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: PhoneNumbersClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n };\n\n const packageDetails = `azsdk-js-communication-phone-numbers/1.5.0-beta.2`;\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 || \"2025-06-01\";\n this.phoneNumbers = new PhoneNumbersImpl(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 phoneNumbers: PhoneNumbers;\n}\n"]}
@@ -1,5 +1,4 @@
1
1
  export * from "./models/index.js";
2
2
  export { SipRoutingClient } from "./sipRoutingClient.js";
3
- export { SipRoutingClientContext } from "./sipRoutingClientContext.js";
4
3
  export * from "./operationsInterfaces/index.js";
5
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/generated/src/siprouting/index.ts"],"names":[],"mappings":"AAQA,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,cAAc,iCAAiC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/generated/src/siprouting/index.ts"],"names":[],"mappings":"AAQA,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,cAAc,iCAAiC,CAAC"}
@@ -7,6 +7,5 @@
7
7
  */
8
8
  export * from "./models/index.js";
9
9
  export { SipRoutingClient } from "./sipRoutingClient.js";
10
- export { SipRoutingClientContext } from "./sipRoutingClientContext.js";
11
10
  export * from "./operationsInterfaces/index.js";
12
11
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/generated/src/siprouting/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,cAAc,iCAAiC,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport * from \"./models/index.js\";\nexport { SipRoutingClient } from \"./sipRoutingClient.js\";\nexport { SipRoutingClientContext } from \"./sipRoutingClientContext.js\";\nexport * from \"./operationsInterfaces/index.js\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/generated/src/siprouting/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,cAAc,iCAAiC,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport * from \"./models/index.js\";\nexport { SipRoutingClient } from \"./sipRoutingClient.js\";\nexport * from \"./operationsInterfaces/index.js\";\n"]}
@@ -3,9 +3,16 @@ import * as coreClient from "@azure/core-client";
3
3
  * Represents a SIP configuration.
4
4
  * When a call is being routed the routes are applied in the same order as in the routes list.
5
5
  * A route is matched by its number pattern.
6
- * Call is then directed into route's first available trunk, based on the order in the route's trunks list.
6
+ * Call is then directed into route's first available trunk, based on the order in the route's trunks list. The configuration can be expanded with additional data.
7
7
  */
8
8
  export interface SipConfiguration {
9
+ /**
10
+ * Validated Domains.
11
+ * Map key is domain.
12
+ */
13
+ domains?: {
14
+ [propertyName: string]: SipDomain;
15
+ };
9
16
  /**
10
17
  * SIP trunks for routing calls.
11
18
  * Map key is trunk's FQDN (1-249 characters).
@@ -16,10 +23,57 @@ export interface SipConfiguration {
16
23
  /** Trunk routes for routing calls. */
17
24
  routes?: SipTrunkRoute[];
18
25
  }
19
- /** Represents a SIP trunk for routing calls. See RFC 4904. */
26
+ /**
27
+ * Represents Domain object as response of validation api.
28
+ * Map key is domain.
29
+ */
30
+ export interface SipDomain {
31
+ /** Enabled flag */
32
+ enabled: boolean;
33
+ }
34
+ /** Represents a SIP trunk for routing calls. See RFC 4904. Can be expanded with additional data. */
20
35
  export interface SipTrunk {
21
36
  /** Gets or sets SIP signaling port of the trunk. */
22
37
  sipSignalingPort: number;
38
+ /** Enabled flag */
39
+ enabled?: boolean;
40
+ /**
41
+ * Represents health state of a SIP trunk for routing calls.
42
+ * NOTE: This property will not be serialized. It can only be populated by the server.
43
+ */
44
+ readonly health?: TrunkHealth;
45
+ /** When enabled, removes Azure Communication Services from the signaling path on call transfer and sets the SIP Refer-To header to the trunk's FQDN. By default false. */
46
+ directTransfer?: boolean;
47
+ /** SIP Privacy header. Default value is id. */
48
+ privacyHeader?: PrivacyHeader;
49
+ /** IP address version used by the trunk. Default value is ipv4. */
50
+ ipAddressVersion?: IpAddressVersion;
51
+ }
52
+ /** Represents health state of a SIP trunk for routing calls. */
53
+ export interface TrunkHealth {
54
+ /** The status of the TLS connections of the Trunk. */
55
+ tls: TlsHealth;
56
+ /** The status of SIP OPTIONS message sent by Trunk. */
57
+ ping: PingHealth;
58
+ /** The overall health status of Trunk. */
59
+ overall: OverallHealth;
60
+ }
61
+ /** The status of the TLS connections of the Trunk. */
62
+ export interface TlsHealth {
63
+ /** The status of the TLS connections of the Trunk. */
64
+ status: TlsStatus;
65
+ }
66
+ /** The status of SIP OPTIONS message sent by Trunk. */
67
+ export interface PingHealth {
68
+ /** The status of SIP OPTIONS message sent by Trunk. */
69
+ status: PingStatus;
70
+ }
71
+ /** The overall health status of Trunk. */
72
+ export interface OverallHealth {
73
+ /** The overall health status of Trunk. */
74
+ status: OverallHealthStatus;
75
+ /** The reason overall status of Trunk is inactive. */
76
+ reason?: HealthStatusReason;
23
77
  }
24
78
  /** Represents a trunk route for routing calls. */
25
79
  export interface SipTrunkRoute {
@@ -35,6 +89,8 @@ export interface SipTrunkRoute {
35
89
  numberPattern: string;
36
90
  /** Gets or sets list of SIP trunks for routing calls. Trunks are represented as FQDN. */
37
91
  trunks?: string[];
92
+ /** Gets or sets caller ID override. This value will override caller ID of outgoing call specified at runtime. */
93
+ callerIdOverride?: string;
38
94
  }
39
95
  /** The Communication Services error. */
40
96
  export interface CommunicationErrorResponse {
@@ -65,6 +121,13 @@ export interface SipRoutingError {
65
121
  }
66
122
  /** Represents a SIP configuration update. */
67
123
  export interface SipConfigurationUpdate {
124
+ /**
125
+ * Domains that will be used.
126
+ * Map key is domain.
127
+ */
128
+ domains?: {
129
+ [propertyName: string]: DomainPatch | null;
130
+ };
68
131
  /**
69
132
  * SIP trunks for routing calls.
70
133
  * Map key is trunk's FQDN (1-249 characters).
@@ -75,10 +138,31 @@ export interface SipConfigurationUpdate {
75
138
  /** Trunk routes for routing calls. */
76
139
  routes?: SipTrunkRoute[];
77
140
  }
141
+ /**
142
+ * Represents Domain that will be used.
143
+ * Map key is domain.
144
+ */
145
+ export interface DomainPatch {
146
+ /** Enabled flag */
147
+ enabled?: boolean;
148
+ }
78
149
  /** Represents a SIP trunk update. */
79
150
  export interface TrunkUpdate {
80
151
  /** Gets or sets SIP signaling port of the trunk. */
81
152
  sipSignalingPort?: number;
153
+ /** Enabled flag */
154
+ enabled?: boolean;
155
+ /** When enabled, removes Azure Communication Services from the signaling path on call transfer and sets the SIP Refer-To header to the trunk's FQDN. By default false. */
156
+ directTransfer?: boolean;
157
+ /** SIP Privacy header. Default value is id. */
158
+ privacyHeader?: PrivacyHeader;
159
+ /** IP address version used by the trunk. The default value is ipv4. */
160
+ ipAddressVersion?: IpAddressVersion;
161
+ }
162
+ /** Represents number routing validation details. */
163
+ export interface RoutesForNumber {
164
+ /** The list of routes whose number patterns are matched by the target number. The routes are displayed and apply in the same order as in SipConfiguration. */
165
+ matchingRoutes?: SipTrunkRoute[];
82
166
  }
83
167
  /** Defines headers for SipRouting_get operation. */
84
168
  export interface SipRoutingGetExceptionHeaders {
@@ -90,13 +174,47 @@ export interface SipRoutingUpdateExceptionHeaders {
90
174
  /** Error code */
91
175
  xMsErrorCode?: string;
92
176
  }
177
+ /** Known values of {@link ExpandEnum} that the service accepts. */
178
+ export declare enum KnownExpandEnum {
179
+ /** Health state of a SIP trunk for routing calls. */
180
+ TrunksHealth = "trunks/health"
181
+ }
182
+ /**
183
+ * Defines values for ExpandEnum. \
184
+ * {@link KnownExpandEnum} can be used interchangeably with ExpandEnum,
185
+ * this enum contains the known values that the service supports.
186
+ * ### Known values supported by the service
187
+ * **trunks\/health**: Health state of a SIP trunk for routing calls.
188
+ */
189
+ export type ExpandEnum = string;
190
+ /** Defines values for TlsStatus. */
191
+ export type TlsStatus = "unknown" | "ok" | "certExpiring" | "certExpired";
192
+ /** Defines values for PingStatus. */
193
+ export type PingStatus = "unknown" | "ok" | "expired" | "error";
194
+ /** Defines values for OverallHealthStatus. */
195
+ export type OverallHealthStatus = "unknown" | "active" | "inactive";
196
+ /** Defines values for HealthStatusReason. */
197
+ export type HealthStatusReason = "noRecentCalls" | "noRecentPings" | "noRecentCallsAndPings";
198
+ /** Defines values for PrivacyHeader. */
199
+ export type PrivacyHeader = "id" | "none";
200
+ /** Defines values for IpAddressVersion. */
201
+ export type IpAddressVersion = "ipv4" | "ipv6";
93
202
  /** Optional parameters. */
94
203
  export interface SipRoutingGetOptionalParams extends coreClient.OperationOptions {
204
+ /** Sip configuration expand. Optional. */
205
+ expand?: ExpandEnum;
95
206
  }
96
207
  /** Contains response data for the get operation. */
97
208
  export type SipRoutingGetResponse = SipConfiguration;
98
209
  /** Optional parameters. */
99
210
  export interface SipRoutingUpdateOptionalParams extends coreClient.OperationOptions {
211
+ /**
212
+ * Domains that will be used.
213
+ * Map key is domain.
214
+ */
215
+ domains?: {
216
+ [propertyName: string]: DomainPatch | null;
217
+ };
100
218
  /**
101
219
  * SIP trunks for routing calls.
102
220
  * Map key is trunk's FQDN (1-249 characters).
@@ -110,6 +228,27 @@ export interface SipRoutingUpdateOptionalParams extends coreClient.OperationOpti
110
228
  /** Contains response data for the update operation. */
111
229
  export type SipRoutingUpdateResponse = SipConfiguration;
112
230
  /** Optional parameters. */
231
+ export interface SipRoutingTestRoutesWithNumberOptionalParams extends coreClient.OperationOptions {
232
+ /**
233
+ * Validated Domains.
234
+ * Map key is domain.
235
+ */
236
+ domains?: {
237
+ [propertyName: string]: SipDomain;
238
+ };
239
+ /**
240
+ * SIP trunks for routing calls.
241
+ * Map key is trunk's FQDN (1-249 characters).
242
+ */
243
+ trunks?: {
244
+ [propertyName: string]: SipTrunk;
245
+ };
246
+ /** Trunk routes for routing calls. */
247
+ routes?: SipTrunkRoute[];
248
+ }
249
+ /** Contains response data for the testRoutesWithNumber operation. */
250
+ export type SipRoutingTestRoutesWithNumberResponse = RoutesForNumber;
251
+ /** Optional parameters. */
113
252
  export interface SipRoutingClientOptionalParams extends coreClient.ServiceClientOptions {
114
253
  /** Api Version */
115
254
  apiVersion?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/generated/src/siprouting/models/index.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAEjD;;;;;GA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EAAE,MAAM,CAAC;CAC3B;AAED,oDAAoD;AACpD,MAAM,WAAW,6BAA6B;IAC5C,iBAAiB;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,uDAAuD;AACvD,MAAM,WAAW,gCAAgC;IAC/C,iBAAiB;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,2BAA2B;AAC3B,MAAM,WAAW,2BACf,SAAQ,UAAU,CAAC,gBAAgB;CAAG;AAExC,oDAAoD;AACpD,MAAM,MAAM,qBAAqB,GAAG,gBAAgB,CAAC;AAErD,2BAA2B;AAC3B,MAAM,WAAW,8BACf,SAAQ,UAAU,CAAC,gBAAgB;IACnC;;;OAGG;IACH,MAAM,CAAC,EAAE;QAAE,CAAC,YAAY,EAAE,MAAM,GAAG,WAAW,GAAG,IAAI,CAAA;KAAE,CAAC;IACxD,sCAAsC;IACtC,MAAM,CAAC,EAAE,aAAa,EAAE,CAAC;CAC1B;AAED,uDAAuD;AACvD,MAAM,MAAM,wBAAwB,GAAG,gBAAgB,CAAC;AAExD,2BAA2B;AAC3B,MAAM,WAAW,8BACf,SAAQ,UAAU,CAAC,oBAAoB;IACvC,kBAAkB;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iCAAiC;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/generated/src/siprouting/models/index.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAEjD;;;;;GAKG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;;OAGG;IACH,OAAO,CAAC,EAAE;QAAE,CAAC,YAAY,EAAE,MAAM,GAAG,SAAS,CAAA;KAAE,CAAC;IAChD;;;OAGG;IACH,MAAM,CAAC,EAAE;QAAE,CAAC,YAAY,EAAE,MAAM,GAAG,QAAQ,CAAA;KAAE,CAAC;IAC9C,sCAAsC;IACtC,MAAM,C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G,IAAI,CAAA;KAAE,CAAC;IACzD;;;OAGG;IACH,MAAM,CAAC,EAAE;QAAE,CAAC,YAAY,EAAE,MAAM,GAAG,WAAW,GAAG,IAAI,CAAA;KAAE,CAAC;IACxD,sCAAsC;IACtC,MAAM,CAAC,EAAE,aAAa,EAAE,CAAC;CAC1B;AAED,uDAAuD;AACvD,MAAM,MAAM,wBAAwB,GAAG,gBAAgB,CAAC;AAExD,2BAA2B;AAC3B,MAAM,WAAW,4CACf,SAAQ,UAAU,CAAC,gBAAgB;IACnC;;;OAGG;IACH,OAAO,CAAC,EAAE;QAAE,CAAC,YAAY,EAAE,MAAM,GAAG,SAAS,CAAA;KAAE,CAAC;IAChD;;;OAGG;IACH,MAAM,CAAC,EAAE;QAAE,CAAC,YAAY,EAAE,MAAM,GAAG,QAAQ,CAAA;KAAE,CAAC;IAC9C,sCAAsC;IACtC,MAAM,CAAC,EAAE,aAAa,EAAE,CAAC;CAC1B;AAED,qEAAqE;AACrE,MAAM,MAAM,sCAAsC,GAAG,eAAe,CAAC;AAErE,2BAA2B;AAC3B,MAAM,WAAW,8BACf,SAAQ,UAAU,CAAC,oBAAoB;IACvC,kBAAkB;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iCAAiC;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"}
@@ -5,5 +5,10 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- export {};
8
+ /** Known values of {@link ExpandEnum} that the service accepts. */
9
+ export var KnownExpandEnum;
10
+ (function (KnownExpandEnum) {
11
+ /** Health state of a SIP trunk for routing calls. */
12
+ KnownExpandEnum["TrunksHealth"] = "trunks/health";
13
+ })(KnownExpandEnum || (KnownExpandEnum = {}));
9
14
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/generated/src/siprouting/models/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\n\n/**\n * Represents a SIP configuration.\n * When a call is being routed the routes are applied in the same order as in the routes list.\n * A route is matched by its number pattern.\n * Call is then directed into route's first available trunk, based on the order in the route's trunks list.\n */\nexport interface SipConfiguration {\n /**\n * SIP trunks for routing calls.\n * Map key is trunk's FQDN (1-249 characters).\n */\n trunks?: { [propertyName: string]: SipTrunk };\n /** Trunk routes for routing calls. */\n routes?: SipTrunkRoute[];\n}\n\n/** Represents a SIP trunk for routing calls. See RFC 4904. */\nexport interface SipTrunk {\n /** Gets or sets SIP signaling port of the trunk. */\n sipSignalingPort: number;\n}\n\n/** Represents a trunk route for routing calls. */\nexport interface SipTrunkRoute {\n /** Gets or sets description of the route. */\n description?: string;\n /** Gets or sets name of the route. */\n name: string;\n /**\n * Gets or sets regex number pattern for routing calls. .NET regex format is supported.\n * The regex should match only digits with an optional '+' prefix without spaces.\n * I.e. \"^\\+[1-9][0-9]{3,23}$\".\n */\n numberPattern: string;\n /** Gets or sets list of SIP trunks for routing calls. Trunks are represented as FQDN. */\n trunks?: string[];\n}\n\n/** The Communication Services error. */\nexport interface CommunicationErrorResponse {\n /** The Communication Services error. */\n error: SipRoutingError;\n}\n\n/** The Communication Services error. */\nexport interface SipRoutingError {\n /** The error code. */\n code: string;\n /** The error message. */\n message: string;\n /**\n * The error target.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly target?: string;\n /**\n * Further details about specific errors that led to this error.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly details?: SipRoutingError[];\n /**\n * The inner error if any.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly innerError?: SipRoutingError;\n}\n\n/** Represents a SIP configuration update. */\nexport interface SipConfigurationUpdate {\n /**\n * SIP trunks for routing calls.\n * Map key is trunk's FQDN (1-249 characters).\n */\n trunks?: { [propertyName: string]: TrunkUpdate | null };\n /** Trunk routes for routing calls. */\n routes?: SipTrunkRoute[];\n}\n\n/** Represents a SIP trunk update. */\nexport interface TrunkUpdate {\n /** Gets or sets SIP signaling port of the trunk. */\n sipSignalingPort?: number;\n}\n\n/** Defines headers for SipRouting_get operation. */\nexport interface SipRoutingGetExceptionHeaders {\n /** Error code */\n xMsErrorCode?: string;\n}\n\n/** Defines headers for SipRouting_update operation. */\nexport interface SipRoutingUpdateExceptionHeaders {\n /** Error code */\n xMsErrorCode?: string;\n}\n\n/** Optional parameters. */\nexport interface SipRoutingGetOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the get operation. */\nexport type SipRoutingGetResponse = SipConfiguration;\n\n/** Optional parameters. */\nexport interface SipRoutingUpdateOptionalParams\n extends coreClient.OperationOptions {\n /**\n * SIP trunks for routing calls.\n * Map key is trunk's FQDN (1-249 characters).\n */\n trunks?: { [propertyName: string]: TrunkUpdate | null };\n /** Trunk routes for routing calls. */\n routes?: SipTrunkRoute[];\n}\n\n/** Contains response data for the update operation. */\nexport type SipRoutingUpdateResponse = SipConfiguration;\n\n/** Optional parameters. */\nexport interface SipRoutingClientOptionalParams\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/src/siprouting/models/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AA2LH,mEAAmE;AACnE,MAAM,CAAN,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,qDAAqD;IACrD,iDAA8B,CAAA;AAChC,CAAC,EAHW,eAAe,KAAf,eAAe,QAG1B","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/**\n * Represents a SIP configuration.\n * When a call is being routed the routes are applied in the same order as in the routes list.\n * A route is matched by its number pattern.\n * Call is then directed into route's first available trunk, based on the order in the route's trunks list. The configuration can be expanded with additional data.\n */\nexport interface SipConfiguration {\n /**\n * Validated Domains.\n * Map key is domain.\n */\n domains?: { [propertyName: string]: SipDomain };\n /**\n * SIP trunks for routing calls.\n * Map key is trunk's FQDN (1-249 characters).\n */\n trunks?: { [propertyName: string]: SipTrunk };\n /** Trunk routes for routing calls. */\n routes?: SipTrunkRoute[];\n}\n\n/**\n * Represents Domain object as response of validation api.\n * Map key is domain.\n */\nexport interface SipDomain {\n /** Enabled flag */\n enabled: boolean;\n}\n\n/** Represents a SIP trunk for routing calls. See RFC 4904. Can be expanded with additional data. */\nexport interface SipTrunk {\n /** Gets or sets SIP signaling port of the trunk. */\n sipSignalingPort: number;\n /** Enabled flag */\n enabled?: boolean;\n /**\n * Represents health state of a SIP trunk for routing calls.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly health?: TrunkHealth;\n /** When enabled, removes Azure Communication Services from the signaling path on call transfer and sets the SIP Refer-To header to the trunk's FQDN. By default false. */\n directTransfer?: boolean;\n /** SIP Privacy header. Default value is id. */\n privacyHeader?: PrivacyHeader;\n /** IP address version used by the trunk. Default value is ipv4. */\n ipAddressVersion?: IpAddressVersion;\n}\n\n/** Represents health state of a SIP trunk for routing calls. */\nexport interface TrunkHealth {\n /** The status of the TLS connections of the Trunk. */\n tls: TlsHealth;\n /** The status of SIP OPTIONS message sent by Trunk. */\n ping: PingHealth;\n /** The overall health status of Trunk. */\n overall: OverallHealth;\n}\n\n/** The status of the TLS connections of the Trunk. */\nexport interface TlsHealth {\n /** The status of the TLS connections of the Trunk. */\n status: TlsStatus;\n}\n\n/** The status of SIP OPTIONS message sent by Trunk. */\nexport interface PingHealth {\n /** The status of SIP OPTIONS message sent by Trunk. */\n status: PingStatus;\n}\n\n/** The overall health status of Trunk. */\nexport interface OverallHealth {\n /** The overall health status of Trunk. */\n status: OverallHealthStatus;\n /** The reason overall status of Trunk is inactive. */\n reason?: HealthStatusReason;\n}\n\n/** Represents a trunk route for routing calls. */\nexport interface SipTrunkRoute {\n /** Gets or sets description of the route. */\n description?: string;\n /** Gets or sets name of the route. */\n name: string;\n /**\n * Gets or sets regex number pattern for routing calls. .NET regex format is supported.\n * The regex should match only digits with an optional '+' prefix without spaces.\n * I.e. \"^\\+[1-9][0-9]{3,23}$\".\n */\n numberPattern: string;\n /** Gets or sets list of SIP trunks for routing calls. Trunks are represented as FQDN. */\n trunks?: string[];\n /** Gets or sets caller ID override. This value will override caller ID of outgoing call specified at runtime. */\n callerIdOverride?: string;\n}\n\n/** The Communication Services error. */\nexport interface CommunicationErrorResponse {\n /** The Communication Services error. */\n error: SipRoutingError;\n}\n\n/** The Communication Services error. */\nexport interface SipRoutingError {\n /** The error code. */\n code: string;\n /** The error message. */\n message: string;\n /**\n * The error target.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly target?: string;\n /**\n * Further details about specific errors that led to this error.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly details?: SipRoutingError[];\n /**\n * The inner error if any.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly innerError?: SipRoutingError;\n}\n\n/** Represents a SIP configuration update. */\nexport interface SipConfigurationUpdate {\n /**\n * Domains that will be used.\n * Map key is domain.\n */\n domains?: { [propertyName: string]: DomainPatch | null };\n /**\n * SIP trunks for routing calls.\n * Map key is trunk's FQDN (1-249 characters).\n */\n trunks?: { [propertyName: string]: TrunkUpdate | null };\n /** Trunk routes for routing calls. */\n routes?: SipTrunkRoute[];\n}\n\n/**\n * Represents Domain that will be used.\n * Map key is domain.\n */\nexport interface DomainPatch {\n /** Enabled flag */\n enabled?: boolean;\n}\n\n/** Represents a SIP trunk update. */\nexport interface TrunkUpdate {\n /** Gets or sets SIP signaling port of the trunk. */\n sipSignalingPort?: number;\n /** Enabled flag */\n enabled?: boolean;\n /** When enabled, removes Azure Communication Services from the signaling path on call transfer and sets the SIP Refer-To header to the trunk's FQDN. By default false. */\n directTransfer?: boolean;\n /** SIP Privacy header. Default value is id. */\n privacyHeader?: PrivacyHeader;\n /** IP address version used by the trunk. The default value is ipv4. */\n ipAddressVersion?: IpAddressVersion;\n}\n\n/** Represents number routing validation details. */\nexport interface RoutesForNumber {\n /** The list of routes whose number patterns are matched by the target number. The routes are displayed and apply in the same order as in SipConfiguration. */\n matchingRoutes?: SipTrunkRoute[];\n}\n\n/** Defines headers for SipRouting_get operation. */\nexport interface SipRoutingGetExceptionHeaders {\n /** Error code */\n xMsErrorCode?: string;\n}\n\n/** Defines headers for SipRouting_update operation. */\nexport interface SipRoutingUpdateExceptionHeaders {\n /** Error code */\n xMsErrorCode?: string;\n}\n\n/** Known values of {@link ExpandEnum} that the service accepts. */\nexport enum KnownExpandEnum {\n /** Health state of a SIP trunk for routing calls. */\n TrunksHealth = \"trunks/health\",\n}\n\n/**\n * Defines values for ExpandEnum. \\\n * {@link KnownExpandEnum} can be used interchangeably with ExpandEnum,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **trunks\\/health**: Health state of a SIP trunk for routing calls.\n */\nexport type ExpandEnum = string;\n/** Defines values for TlsStatus. */\nexport type TlsStatus = \"unknown\" | \"ok\" | \"certExpiring\" | \"certExpired\";\n/** Defines values for PingStatus. */\nexport type PingStatus = \"unknown\" | \"ok\" | \"expired\" | \"error\";\n/** Defines values for OverallHealthStatus. */\nexport type OverallHealthStatus = \"unknown\" | \"active\" | \"inactive\";\n/** Defines values for HealthStatusReason. */\nexport type HealthStatusReason =\n | \"noRecentCalls\"\n | \"noRecentPings\"\n | \"noRecentCallsAndPings\";\n/** Defines values for PrivacyHeader. */\nexport type PrivacyHeader = \"id\" | \"none\";\n/** Defines values for IpAddressVersion. */\nexport type IpAddressVersion = \"ipv4\" | \"ipv6\";\n\n/** Optional parameters. */\nexport interface SipRoutingGetOptionalParams\n extends coreClient.OperationOptions {\n /** Sip configuration expand. Optional. */\n expand?: ExpandEnum;\n}\n\n/** Contains response data for the get operation. */\nexport type SipRoutingGetResponse = SipConfiguration;\n\n/** Optional parameters. */\nexport interface SipRoutingUpdateOptionalParams\n extends coreClient.OperationOptions {\n /**\n * Domains that will be used.\n * Map key is domain.\n */\n domains?: { [propertyName: string]: DomainPatch | null };\n /**\n * SIP trunks for routing calls.\n * Map key is trunk's FQDN (1-249 characters).\n */\n trunks?: { [propertyName: string]: TrunkUpdate | null };\n /** Trunk routes for routing calls. */\n routes?: SipTrunkRoute[];\n}\n\n/** Contains response data for the update operation. */\nexport type SipRoutingUpdateResponse = SipConfiguration;\n\n/** Optional parameters. */\nexport interface SipRoutingTestRoutesWithNumberOptionalParams\n extends coreClient.OperationOptions {\n /**\n * Validated Domains.\n * Map key is domain.\n */\n domains?: { [propertyName: string]: SipDomain };\n /**\n * SIP trunks for routing calls.\n * Map key is trunk's FQDN (1-249 characters).\n */\n trunks?: { [propertyName: string]: SipTrunk };\n /** Trunk routes for routing calls. */\n routes?: SipTrunkRoute[];\n}\n\n/** Contains response data for the testRoutesWithNumber operation. */\nexport type SipRoutingTestRoutesWithNumberResponse = RoutesForNumber;\n\n/** Optional parameters. */\nexport interface SipRoutingClientOptionalParams\n extends coreClient.ServiceClientOptions {\n /** Api Version */\n apiVersion?: string;\n /** Overrides client endpoint. */\n endpoint?: string;\n}\n"]}
@@ -1,11 +1,18 @@
1
1
  import * as coreClient from "@azure/core-client";
2
2
  export declare const SipConfiguration: coreClient.CompositeMapper;
3
+ export declare const SipDomain: coreClient.CompositeMapper;
3
4
  export declare const SipTrunk: coreClient.CompositeMapper;
5
+ export declare const TrunkHealth: coreClient.CompositeMapper;
6
+ export declare const TlsHealth: coreClient.CompositeMapper;
7
+ export declare const PingHealth: coreClient.CompositeMapper;
8
+ export declare const OverallHealth: coreClient.CompositeMapper;
4
9
  export declare const SipTrunkRoute: coreClient.CompositeMapper;
5
10
  export declare const CommunicationErrorResponse: coreClient.CompositeMapper;
6
11
  export declare const SipRoutingError: coreClient.CompositeMapper;
7
12
  export declare const SipConfigurationUpdate: coreClient.CompositeMapper;
13
+ export declare const DomainPatch: coreClient.CompositeMapper;
8
14
  export declare const TrunkUpdate: coreClient.CompositeMapper;
15
+ export declare const RoutesForNumber: coreClient.CompositeMapper;
9
16
  export declare const SipRoutingGetExceptionHeaders: coreClient.CompositeMapper;
10
17
  export declare const SipRoutingUpdateExceptionHeaders: coreClient.CompositeMapper;
11
18
  //# sourceMappingURL=mappers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"mappers.d.ts","sourceRoot":"","sources":["../../../../../../src/generated/src/siprouting/models/mappers.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAEjD,eAAO,MAAM,gBAAgB,EAAE,UAAU,CAAC,eA6BzC,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,UAAU,CAAC,eAcjC,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,UAAU,CAAC,eAkDtC,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,UAAU,CAAC,eAcnD,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,UAAU,CAAC,eAgDxC,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,UAAU,CAAC,eA6B/C,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,UAAU,CAAC,eAapC,CAAC;AAEF,eAAO,MAAM,6BAA6B,EAAE,UAAU,CAAC,eAatD,CAAC;AAEF,eAAO,MAAM,gCAAgC,EAAE,UAAU,CAAC,eAazD,CAAC"}
1
+ {"version":3,"file":"mappers.d.ts","sourceRoot":"","sources":["../../../../../../src/generated/src/siprouting/models/mappers.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAEjD,eAAO,MAAM,gBAAgB,EAAE,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