@vonage/media-processor 1.2.5 → 2.0.0

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.
@@ -1,5 +1,29 @@
1
1
  import { Optional } from 'typescript-optional';
2
- export declare type VonageSourceType = 'automation' | 'test' | 'vbc' | 'video' | 'voice';
2
+ /**
3
+ * Enumeration listing all possible users or consumers of this library.
4
+ */
5
+ export declare enum VonageSourceType {
6
+ /**
7
+ * @private
8
+ */
9
+ automation = "automation",
10
+ /**
11
+ * @private
12
+ */
13
+ test = "test",
14
+ /**
15
+ * @private
16
+ */
17
+ vbc = "vbc",
18
+ /**
19
+ * For Vonage Video SDK users.
20
+ */
21
+ video = "video",
22
+ /**
23
+ * For Vonage Voice SDK users.
24
+ */
25
+ voice = "voice"
26
+ }
3
27
  /**
4
28
  * Specifies the addional information being sent with the telemetry collected by the library.
5
29
  */
@@ -13,7 +37,7 @@ export declare type VonageMetadata = {
13
37
  */
14
38
  appId: string;
15
39
  /**
16
- * The proxy URL to route all internet traffic generated by this library.
40
+ * The proxy URL to route all internet traffic generated by this library. This field is optional.
17
41
  */
18
42
  proxyUrl?: string;
19
43
  };
@@ -22,22 +46,15 @@ declare global {
22
46
  }
23
47
  /**
24
48
  * Sets some metadata for telemetry.
49
+ * An example can be found [here](/docs/intro.md#statistics).
25
50
  *
26
51
  * @param metadata Specifies the addional information being sent with the telemetry collected by the library.
27
52
  * If metadata is either undefined or not set the library will not collect/send any telemetry.
28
- *
29
- * @example
30
- *
31
- * ```ts
32
- * const metadata: VonageMetadata = {
33
- * appId: 'vonage-media-processor-example',
34
- * sourceType: 'test'
35
- * };
36
- * setVonageMetadata(metadata);
37
- * let metadataGet: VonageMetadata = getVonageMetadata();
38
- * ```
39
53
  */
40
54
  export declare function setVonageMetadata(metadata: VonageMetadata): void;
55
+ /**
56
+ * @private
57
+ */
41
58
  export declare function getVonageMetadata(): VonageMetadata;
42
59
  interface Report {
43
60
  action: Optional<string>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vonage/media-processor",
3
- "version": "1.2.5",
3
+ "version": "2.0.0",
4
4
  "author": "Guy Mininberg <guy.mininberg@vonage.com>",
5
5
  "contributors": [
6
6
  "Guy Mininberg <guy.mininberg@vonage.com>",
@@ -58,7 +58,7 @@
58
58
  "typescript": "^4.6.2",
59
59
  "vite": "^2.7.2"
60
60
  },
61
- "repository": "https://github.com/vonage/media-processor",
61
+ "repository": "https://github.com/Vonage/vonage-media-transformers-samples",
62
62
  "publishConfig": {
63
63
  "registry": "https://registry.npmjs.org"
64
64
  }