@open-wa/schema 5.6.6 → 5.9.7

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 (33) hide show
  1. package/dist/calling-media--BLrFrPc.cjs.map +1 -1
  2. package/dist/calling-media-BNTYvogE.mjs.map +1 -1
  3. package/dist/{calling-media-CeGgSzhw.d.cts → calling-media-TZ9L95OH.d.cts} +2 -1
  4. package/dist/{calling-media-CeGgSzhw.d.cts.map → calling-media-TZ9L95OH.d.cts.map} +1 -1
  5. package/dist/{calling-media-CeGgSzhw.d.mts → calling-media-TZ9L95OH.d.mts} +2 -1
  6. package/dist/{calling-media-CeGgSzhw.d.mts.map → calling-media-TZ9L95OH.d.mts.map} +1 -1
  7. package/dist/calling-media.d.cts +1 -1
  8. package/dist/calling-media.d.mts +1 -1
  9. package/dist/generated/index.cjs +1 -1
  10. package/dist/generated/index.d.cts +1 -1
  11. package/dist/generated/index.d.mts +1 -1
  12. package/dist/generated/index.mjs +1 -1
  13. package/dist/{index-HeicIada.d.cts → index-BR61SSKs.d.cts} +3 -2
  14. package/dist/{index-C3kjyOe-.d.mts.map → index-BR61SSKs.d.cts.map} +1 -1
  15. package/dist/{index-C3kjyOe-.d.mts → index-j2GMQzWY.d.mts} +3 -2
  16. package/dist/{index-HeicIada.d.cts.map → index-j2GMQzWY.d.mts.map} +1 -1
  17. package/dist/index.cjs +1 -1
  18. package/dist/index.d.cts +2 -2
  19. package/dist/index.d.mts +2 -2
  20. package/dist/index.mjs +1 -1
  21. package/dist/methods/index.cjs +1 -1
  22. package/dist/methods/index.d.cts +1 -1
  23. package/dist/methods/index.d.mts +1 -1
  24. package/dist/methods/index.mjs +1 -1
  25. package/dist/{methods-CGm5G9VI.mjs → methods-CpeSpB2P.mjs} +3 -2
  26. package/dist/{methods-CGm5G9VI.mjs.map → methods-CpeSpB2P.mjs.map} +1 -1
  27. package/dist/{methods-QZbG0hN2.cjs → methods-D4XLSUxh.cjs} +3 -2
  28. package/dist/{methods-QZbG0hN2.cjs.map → methods-D4XLSUxh.cjs.map} +1 -1
  29. package/package.json +3 -3
  30. package/src/calling-media.ts +2 -0
  31. package/src/calling.ts +1 -0
  32. package/src/generated/asyncapi.json +1 -1
  33. package/src/generated/openapi.json +8 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-wa/schema",
3
- "version": "5.6.6",
3
+ "version": "5.9.7",
4
4
  "type": "module",
5
5
  "description": "Zod-based schema definitions for open-wa",
6
6
  "main": "./dist/index.cjs",
@@ -84,8 +84,8 @@
84
84
  },
85
85
  "dependencies": {
86
86
  "@asteasolutions/zod-to-openapi": "^9.1.0",
87
- "@open-wa/config": "5.6.6",
88
- "@open-wa/utils": "5.6.6",
87
+ "@open-wa/config": "5.9.7",
88
+ "@open-wa/utils": "5.9.7",
89
89
  "zod": "^4.6.5",
90
90
  "zod-to-json-schema": "^3.25.2",
91
91
  "effect": "4.0.2"
@@ -31,6 +31,8 @@ export interface CallMediaOptions {
31
31
  speaker?: AudioOutput;
32
32
  camera?: VideoInput;
33
33
  onMediaFailure?: 'end' | 'keep-open';
34
+ /** Explicitly replace a server-owned source, or return a remote source to the host. */
35
+ takeover?: boolean;
34
36
  }
35
37
  export interface CallingOptions {
36
38
  defaults?: CallMediaOptions;
package/src/calling.ts CHANGED
@@ -10,6 +10,7 @@ export const MediaDescriptorSchema = Schema.Struct({
10
10
  export const CallMediaOptionsSchema = Schema.Struct({
11
11
  microphone: Schema.optional(Schema.Unknown), speaker: Schema.optional(Schema.Unknown), camera: Schema.optional(Schema.Unknown),
12
12
  onMediaFailure: Schema.optional(Schema.Literals(['end', 'keep-open'])),
13
+ takeover: Schema.optional(Schema.Boolean),
13
14
  });
14
15
  export const CallIdentitySchema = Schema.Struct({
15
16
  id: Schema.String,
@@ -2,7 +2,7 @@
2
2
  "asyncapi": "3.1.0",
3
3
  "info": {
4
4
  "title": "OpenWA events",
5
- "version": "5.6.6",
5
+ "version": "5.9.7",
6
6
  "description": "Initial public wire contracts for six runtime events. This is not an exhaustive list of internal lifecycle events. SSE and webhook policies differ; MCP provides compact summaries for three events."
7
7
  },
8
8
  "servers": {
@@ -2,8 +2,8 @@
2
2
  "openapi": "3.0.3",
3
3
  "info": {
4
4
  "title": "open-wa API",
5
- "version": "5.6.6",
6
- "description": "API definition for open-wa v5.6.6"
5
+ "version": "5.9.7",
6
+ "description": "API definition for open-wa v5.9.7"
7
7
  },
8
8
  "servers": [
9
9
  {
@@ -35636,6 +35636,9 @@
35636
35636
  ]
35637
35637
  }
35638
35638
  ]
35639
+ },
35640
+ "takeover": {
35641
+ "type": "boolean"
35639
35642
  }
35640
35643
  },
35641
35644
  "additionalProperties": false
@@ -37595,6 +37598,9 @@
37595
37598
  ]
37596
37599
  }
37597
37600
  ]
37601
+ },
37602
+ "takeover": {
37603
+ "type": "boolean"
37598
37604
  }
37599
37605
  },
37600
37606
  "additionalProperties": false