@livekit/protocol 1.27.1 → 1.28.1

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 (111) hide show
  1. package/dist/gen/livekit_agent_dispatch_pb.cjs +385 -0
  2. package/dist/gen/livekit_agent_dispatch_pb.cjs.map +1 -0
  3. package/dist/gen/livekit_agent_dispatch_pb.d.ts +174 -0
  4. package/dist/gen/livekit_agent_dispatch_pb.d.ts.map +1 -0
  5. package/dist/gen/livekit_agent_dispatch_pb.js +356 -0
  6. package/dist/gen/livekit_agent_dispatch_pb.js.map +1 -0
  7. package/dist/gen/livekit_agent_pb.cjs +881 -0
  8. package/dist/gen/livekit_agent_pb.cjs.map +1 -0
  9. package/dist/gen/livekit_agent_pb.d.ts +575 -0
  10. package/dist/gen/livekit_agent_pb.d.ts.map +1 -0
  11. package/dist/gen/livekit_agent_pb.js +840 -0
  12. package/dist/gen/livekit_agent_pb.js.map +1 -0
  13. package/dist/gen/livekit_analytics_pb.cjs +1087 -0
  14. package/dist/gen/livekit_analytics_pb.cjs.map +1 -0
  15. package/dist/gen/livekit_analytics_pb.d.ts +679 -0
  16. package/dist/gen/livekit_analytics_pb.d.ts.map +1 -0
  17. package/dist/gen/livekit_analytics_pb.js +1053 -0
  18. package/dist/gen/livekit_analytics_pb.js.map +1 -0
  19. package/dist/gen/livekit_egress_pb.cjs +2476 -0
  20. package/dist/gen/livekit_egress_pb.cjs.map +1 -0
  21. package/dist/gen/livekit_egress_pb.d.ts +1720 -0
  22. package/dist/gen/livekit_egress_pb.d.ts.map +1 -0
  23. package/dist/gen/livekit_egress_pb.js +2417 -0
  24. package/dist/gen/livekit_egress_pb.js.map +1 -0
  25. package/dist/gen/livekit_ingress_pb.cjs +1050 -0
  26. package/dist/gen/livekit_ingress_pb.cjs.map +1 -0
  27. package/dist/gen/livekit_ingress_pb.d.ts +660 -0
  28. package/dist/gen/livekit_ingress_pb.d.ts.map +1 -0
  29. package/dist/gen/livekit_ingress_pb.js +1011 -0
  30. package/dist/gen/livekit_ingress_pb.js.map +1 -0
  31. package/dist/gen/livekit_internal_pb.cjs +998 -0
  32. package/dist/gen/livekit_internal_pb.cjs.map +1 -0
  33. package/dist/gen/livekit_internal_pb.d.ts +481 -0
  34. package/dist/gen/livekit_internal_pb.d.ts.map +1 -0
  35. package/dist/gen/livekit_internal_pb.js +968 -0
  36. package/dist/gen/livekit_internal_pb.js.map +1 -0
  37. package/dist/gen/livekit_metrics_pb.cjs +371 -0
  38. package/dist/gen/livekit_metrics_pb.cjs.map +1 -0
  39. package/dist/gen/livekit_metrics_pb.d.ts +304 -0
  40. package/dist/gen/livekit_metrics_pb.d.ts.map +1 -0
  41. package/dist/gen/livekit_metrics_pb.js +344 -0
  42. package/dist/gen/livekit_metrics_pb.js.map +1 -0
  43. package/dist/gen/livekit_models_pb.cjs +3323 -0
  44. package/dist/gen/livekit_models_pb.cjs.map +1 -0
  45. package/dist/gen/livekit_models_pb.d.ts +2024 -0
  46. package/dist/gen/livekit_models_pb.d.ts.map +1 -0
  47. package/dist/gen/livekit_models_pb.js +3249 -0
  48. package/dist/gen/livekit_models_pb.js.map +1 -0
  49. package/dist/gen/livekit_room_pb.cjs +1080 -0
  50. package/dist/gen/livekit_room_pb.cjs.map +1 -0
  51. package/dist/gen/livekit_room_pb.d.ts +580 -0
  52. package/dist/gen/livekit_room_pb.d.ts.map +1 -0
  53. package/dist/gen/livekit_room_pb.js +1038 -0
  54. package/dist/gen/livekit_room_pb.js.map +1 -0
  55. package/dist/gen/livekit_rtc_pb.cjs +2261 -0
  56. package/dist/gen/livekit_rtc_pb.cjs.map +1 -0
  57. package/dist/gen/livekit_rtc_pb.d.ts +1602 -0
  58. package/dist/gen/livekit_rtc_pb.d.ts.map +1 -0
  59. package/dist/gen/livekit_rtc_pb.js +2192 -0
  60. package/dist/gen/livekit_rtc_pb.js.map +1 -0
  61. package/dist/gen/livekit_sip_pb.cjs +2118 -0
  62. package/dist/gen/livekit_sip_pb.cjs.map +1 -0
  63. package/dist/gen/livekit_sip_pb.d.ts +1226 -0
  64. package/dist/gen/livekit_sip_pb.d.ts.map +1 -0
  65. package/dist/gen/livekit_sip_pb.js +2061 -0
  66. package/dist/gen/livekit_sip_pb.js.map +1 -0
  67. package/dist/gen/livekit_webhook_pb.cjs +111 -0
  68. package/dist/gen/livekit_webhook_pb.cjs.map +1 -0
  69. package/dist/gen/livekit_webhook_pb.d.ts +71 -0
  70. package/dist/gen/livekit_webhook_pb.d.ts.map +1 -0
  71. package/dist/gen/livekit_webhook_pb.js +88 -0
  72. package/dist/gen/livekit_webhook_pb.js.map +1 -0
  73. package/dist/gen/version.cjs +28 -0
  74. package/dist/gen/version.cjs.map +1 -0
  75. package/dist/gen/version.d.ts +2 -0
  76. package/dist/gen/version.d.ts.map +1 -0
  77. package/dist/gen/version.js +5 -0
  78. package/dist/gen/version.js.map +1 -0
  79. package/dist/index.cjs +51 -0
  80. package/dist/index.cjs.map +1 -0
  81. package/{src → dist}/index.d.ts +1 -0
  82. package/dist/index.d.ts.map +1 -0
  83. package/{src → dist}/index.js +5 -2
  84. package/dist/index.js.map +1 -0
  85. package/package.json +18 -12
  86. package/src/gen/livekit_agent_dispatch_pb.d.ts +0 -253
  87. package/src/gen/livekit_agent_dispatch_pb.js +0 -103
  88. package/src/gen/livekit_agent_pb.d.ts +0 -741
  89. package/src/gen/livekit_agent_pb.js +0 -266
  90. package/src/gen/livekit_analytics_pb.d.ts +0 -889
  91. package/src/gen/livekit_analytics_pb.js +0 -264
  92. package/src/gen/livekit_egress_pb.d.ts +0 -2056
  93. package/src/gen/livekit_egress_pb.js +0 -594
  94. package/src/gen/livekit_ingress_pb.d.ts +0 -843
  95. package/src/gen/livekit_ingress_pb.js +0 -269
  96. package/src/gen/livekit_internal_pb.d.ts +0 -622
  97. package/src/gen/livekit_internal_pb.js +0 -191
  98. package/src/gen/livekit_metrics_pb.d.ts +0 -355
  99. package/src/gen/livekit_metrics_pb.js +0 -94
  100. package/src/gen/livekit_models_pb.d.ts +0 -2539
  101. package/src/gen/livekit_models_pb.js +0 -819
  102. package/src/gen/livekit_room_pb.d.ts +0 -774
  103. package/src/gen/livekit_room_pb.js +0 -259
  104. package/src/gen/livekit_rtc_pb.d.ts +0 -2001
  105. package/src/gen/livekit_rtc_pb.js +0 -634
  106. package/src/gen/livekit_sip_pb.d.ts +0 -1508
  107. package/src/gen/livekit_sip_pb.js +0 -468
  108. package/src/gen/livekit_webhook_pb.d.ts +0 -105
  109. package/src/gen/livekit_webhook_pb.js +0 -42
  110. package/src/gen/version.d.ts +0 -1
  111. package/src/gen/version.js +0 -2
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/gen/version.ts"],"sourcesContent":["// Generated by genversion.\nexport const version = '1.28.1';\n"],"mappings":"AACO,MAAM,UAAU;","names":[]}
package/dist/index.cjs ADDED
@@ -0,0 +1,51 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var src_exports = {};
20
+ __export(src_exports, {
21
+ protoInt64: () => import_protobuf.protoInt64
22
+ });
23
+ module.exports = __toCommonJS(src_exports);
24
+ var import_protobuf = require("@bufbuild/protobuf");
25
+ __reExport(src_exports, require("./gen/livekit_agent_dispatch_pb.cjs"), module.exports);
26
+ __reExport(src_exports, require("./gen/livekit_agent_pb.cjs"), module.exports);
27
+ __reExport(src_exports, require("./gen/livekit_egress_pb.cjs"), module.exports);
28
+ __reExport(src_exports, require("./gen/livekit_ingress_pb.cjs"), module.exports);
29
+ __reExport(src_exports, require("./gen/livekit_metrics_pb.cjs"), module.exports);
30
+ __reExport(src_exports, require("./gen/livekit_models_pb.cjs"), module.exports);
31
+ __reExport(src_exports, require("./gen/livekit_room_pb.cjs"), module.exports);
32
+ __reExport(src_exports, require("./gen/livekit_rtc_pb.cjs"), module.exports);
33
+ __reExport(src_exports, require("./gen/livekit_sip_pb.cjs"), module.exports);
34
+ __reExport(src_exports, require("./gen/livekit_webhook_pb.cjs"), module.exports);
35
+ __reExport(src_exports, require("./gen/version.cjs"), module.exports);
36
+ // Annotate the CommonJS export names for ESM import in node:
37
+ 0 && (module.exports = {
38
+ protoInt64,
39
+ ...require("./gen/livekit_agent_dispatch_pb.cjs"),
40
+ ...require("./gen/livekit_agent_pb.cjs"),
41
+ ...require("./gen/livekit_egress_pb.cjs"),
42
+ ...require("./gen/livekit_ingress_pb.cjs"),
43
+ ...require("./gen/livekit_metrics_pb.cjs"),
44
+ ...require("./gen/livekit_models_pb.cjs"),
45
+ ...require("./gen/livekit_room_pb.cjs"),
46
+ ...require("./gen/livekit_rtc_pb.cjs"),
47
+ ...require("./gen/livekit_sip_pb.cjs"),
48
+ ...require("./gen/livekit_webhook_pb.cjs"),
49
+ ...require("./gen/version.cjs")
50
+ });
51
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["export { protoInt64 } from \"@bufbuild/protobuf\";\nexport * from \"./gen/livekit_agent_dispatch_pb.js\";\nexport * from \"./gen/livekit_agent_pb.js\";\nexport * from \"./gen/livekit_egress_pb.js\";\nexport * from \"./gen/livekit_ingress_pb.js\";\nexport * from \"./gen/livekit_metrics_pb.js\";\nexport * from \"./gen/livekit_models_pb.js\";\nexport * from \"./gen/livekit_room_pb.js\";\nexport * from \"./gen/livekit_rtc_pb.js\";\nexport * from \"./gen/livekit_sip_pb.js\";\nexport * from \"./gen/livekit_webhook_pb.js\";\nexport * from \"./gen/version.js\";\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAA2B;AAC3B,wBAAc,+CADd;AAEA,wBAAc,sCAFd;AAGA,wBAAc,uCAHd;AAIA,wBAAc,wCAJd;AAKA,wBAAc,wCALd;AAMA,wBAAc,uCANd;AAOA,wBAAc,qCAPd;AAQA,wBAAc,oCARd;AASA,wBAAc,oCATd;AAUA,wBAAc,wCAVd;AAWA,wBAAc,6BAXd;","names":[]}
@@ -10,3 +10,4 @@ export * from "./gen/livekit_rtc_pb.js";
10
10
  export * from "./gen/livekit_sip_pb.js";
11
11
  export * from "./gen/livekit_webhook_pb.js";
12
12
  export * from "./gen/version.js";
13
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,cAAc,oCAAoC,CAAC;AACnD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kBAAkB,CAAC"}
@@ -1,5 +1,4 @@
1
- // @ts-check
2
- export { protoInt64 } from "@bufbuild/protobuf";
1
+ import { protoInt64 } from "@bufbuild/protobuf";
3
2
  export * from "./gen/livekit_agent_dispatch_pb.js";
4
3
  export * from "./gen/livekit_agent_pb.js";
5
4
  export * from "./gen/livekit_egress_pb.js";
@@ -11,3 +10,7 @@ export * from "./gen/livekit_rtc_pb.js";
11
10
  export * from "./gen/livekit_sip_pb.js";
12
11
  export * from "./gen/livekit_webhook_pb.js";
13
12
  export * from "./gen/version.js";
13
+ export {
14
+ protoInt64
15
+ };
16
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["export { protoInt64 } from \"@bufbuild/protobuf\";\nexport * from \"./gen/livekit_agent_dispatch_pb.js\";\nexport * from \"./gen/livekit_agent_pb.js\";\nexport * from \"./gen/livekit_egress_pb.js\";\nexport * from \"./gen/livekit_ingress_pb.js\";\nexport * from \"./gen/livekit_metrics_pb.js\";\nexport * from \"./gen/livekit_models_pb.js\";\nexport * from \"./gen/livekit_room_pb.js\";\nexport * from \"./gen/livekit_rtc_pb.js\";\nexport * from \"./gen/livekit_sip_pb.js\";\nexport * from \"./gen/livekit_webhook_pb.js\";\nexport * from \"./gen/version.js\";\n"],"mappings":"AAAA,SAAS,kBAAkB;AAC3B,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
package/package.json CHANGED
@@ -1,21 +1,24 @@
1
1
  {
2
2
  "name": "@livekit/protocol",
3
- "version": "1.27.1",
3
+ "version": "1.28.1",
4
4
  "description": "",
5
5
  "type": "module",
6
- "main": "src/index.js",
7
- "types": "src/index.d.ts",
6
+ "main": "dist/index.js",
7
+ "import": "dist/index.cjs",
8
+ "types": "dist/index.d.ts",
8
9
  "files": [
9
- "src"
10
+ "dist"
10
11
  ],
11
12
  "exports": {
12
13
  ".": {
13
- "types": "./src/index.d.ts",
14
- "default": "./src/index.js"
14
+ "types": "./dist/index.d.ts",
15
+ "import": "./dist/index.js",
16
+ "require": "./dist/index.cjs"
15
17
  },
16
18
  "./*": {
17
- "types": "./src/gen/livekit_*_pb.d.ts",
18
- "default": "./src/gen/livekit_*_pb.js"
19
+ "types": "./dist/gen/livekit_*_pb.d.ts",
20
+ "import": "./dist/gen/livekit_*_pb.js",
21
+ "require": "./dist/gen/livekit_*_pb.cjs"
19
22
  }
20
23
  },
21
24
  "keywords": [],
@@ -23,14 +26,17 @@
23
26
  "license": "Apache-2.0",
24
27
  "devDependencies": {
25
28
  "@bufbuild/protoc-gen-es": "^1.10.0",
26
- "genversion": "^3.2.0"
29
+ "genversion": "^3.2.0",
30
+ "tsup": "^8.3.5",
31
+ "typescript": "^5.7.2"
27
32
  },
28
33
  "dependencies": {
29
34
  "@bufbuild/protobuf": "^1.10.0"
30
35
  },
31
36
  "scripts": {
32
- "generate:version": "genversion --esm --semi src/gen/version.js",
33
- "generate:proto": "protoc --es_out src/gen --es_opt target=js+dts -I=../../protobufs ../../protobufs/livekit_*.proto",
34
- "build": "pnpm generate:version && pnpm generate:proto"
37
+ "generate:version": "genversion --esm --semi src/gen/version.ts",
38
+ "generate:proto": "mkdir -p src/gen && protoc --es_out src/gen --es_opt target=ts -I=../../protobufs ../../protobufs/livekit_*.proto",
39
+ "prebuild": "pnpm generate:version && pnpm generate:proto",
40
+ "build": "pnpm prebuild && tsup --onSuccess \"tsc --declaration --emitDeclarationOnly\""
35
41
  }
36
42
  }
@@ -1,253 +0,0 @@
1
- // Copyright 2023 LiveKit, Inc.
2
- //
3
- // Licensed under the Apache License, Version 2.0 (the "License");
4
- // you may not use this file except in compliance with the License.
5
- // You may obtain a copy of the License at
6
- //
7
- // http://www.apache.org/licenses/LICENSE-2.0
8
- //
9
- // Unless required by applicable law or agreed to in writing, software
10
- // distributed under the License is distributed on an "AS IS" BASIS,
11
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- // See the License for the specific language governing permissions and
13
- // limitations under the License.
14
-
15
- // @generated by protoc-gen-es v1.10.0 with parameter "target=js+dts"
16
- // @generated from file livekit_agent_dispatch.proto (package livekit, syntax proto3)
17
- /* eslint-disable */
18
- // @ts-nocheck
19
-
20
- import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
21
- import { Message, proto3 } from "@bufbuild/protobuf";
22
- import type { Job } from "./livekit_agent_pb.js";
23
-
24
- /**
25
- * @generated from message livekit.CreateAgentDispatchRequest
26
- */
27
- export declare class CreateAgentDispatchRequest extends Message<CreateAgentDispatchRequest> {
28
- /**
29
- * @generated from field: string agent_name = 1;
30
- */
31
- agentName: string;
32
-
33
- /**
34
- * @generated from field: string room = 2;
35
- */
36
- room: string;
37
-
38
- /**
39
- * @generated from field: string metadata = 3;
40
- */
41
- metadata: string;
42
-
43
- constructor(data?: PartialMessage<CreateAgentDispatchRequest>);
44
-
45
- static readonly runtime: typeof proto3;
46
- static readonly typeName = "livekit.CreateAgentDispatchRequest";
47
- static readonly fields: FieldList;
48
-
49
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateAgentDispatchRequest;
50
-
51
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateAgentDispatchRequest;
52
-
53
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateAgentDispatchRequest;
54
-
55
- static equals(a: CreateAgentDispatchRequest | PlainMessage<CreateAgentDispatchRequest> | undefined, b: CreateAgentDispatchRequest | PlainMessage<CreateAgentDispatchRequest> | undefined): boolean;
56
- }
57
-
58
- /**
59
- * @generated from message livekit.RoomAgentDispatch
60
- */
61
- export declare class RoomAgentDispatch extends Message<RoomAgentDispatch> {
62
- /**
63
- * @generated from field: string agent_name = 1;
64
- */
65
- agentName: string;
66
-
67
- /**
68
- * @generated from field: string metadata = 2;
69
- */
70
- metadata: string;
71
-
72
- constructor(data?: PartialMessage<RoomAgentDispatch>);
73
-
74
- static readonly runtime: typeof proto3;
75
- static readonly typeName = "livekit.RoomAgentDispatch";
76
- static readonly fields: FieldList;
77
-
78
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RoomAgentDispatch;
79
-
80
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RoomAgentDispatch;
81
-
82
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RoomAgentDispatch;
83
-
84
- static equals(a: RoomAgentDispatch | PlainMessage<RoomAgentDispatch> | undefined, b: RoomAgentDispatch | PlainMessage<RoomAgentDispatch> | undefined): boolean;
85
- }
86
-
87
- /**
88
- * @generated from message livekit.DeleteAgentDispatchRequest
89
- */
90
- export declare class DeleteAgentDispatchRequest extends Message<DeleteAgentDispatchRequest> {
91
- /**
92
- * @generated from field: string dispatch_id = 1;
93
- */
94
- dispatchId: string;
95
-
96
- /**
97
- * @generated from field: string room = 2;
98
- */
99
- room: string;
100
-
101
- constructor(data?: PartialMessage<DeleteAgentDispatchRequest>);
102
-
103
- static readonly runtime: typeof proto3;
104
- static readonly typeName = "livekit.DeleteAgentDispatchRequest";
105
- static readonly fields: FieldList;
106
-
107
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteAgentDispatchRequest;
108
-
109
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteAgentDispatchRequest;
110
-
111
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteAgentDispatchRequest;
112
-
113
- static equals(a: DeleteAgentDispatchRequest | PlainMessage<DeleteAgentDispatchRequest> | undefined, b: DeleteAgentDispatchRequest | PlainMessage<DeleteAgentDispatchRequest> | undefined): boolean;
114
- }
115
-
116
- /**
117
- * @generated from message livekit.ListAgentDispatchRequest
118
- */
119
- export declare class ListAgentDispatchRequest extends Message<ListAgentDispatchRequest> {
120
- /**
121
- * if set, only the dispatch whose id is given will be returned
122
- *
123
- * @generated from field: string dispatch_id = 1;
124
- */
125
- dispatchId: string;
126
-
127
- /**
128
- * name of the room to list agents for. Must be set.
129
- *
130
- * @generated from field: string room = 2;
131
- */
132
- room: string;
133
-
134
- constructor(data?: PartialMessage<ListAgentDispatchRequest>);
135
-
136
- static readonly runtime: typeof proto3;
137
- static readonly typeName = "livekit.ListAgentDispatchRequest";
138
- static readonly fields: FieldList;
139
-
140
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListAgentDispatchRequest;
141
-
142
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListAgentDispatchRequest;
143
-
144
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListAgentDispatchRequest;
145
-
146
- static equals(a: ListAgentDispatchRequest | PlainMessage<ListAgentDispatchRequest> | undefined, b: ListAgentDispatchRequest | PlainMessage<ListAgentDispatchRequest> | undefined): boolean;
147
- }
148
-
149
- /**
150
- * @generated from message livekit.ListAgentDispatchResponse
151
- */
152
- export declare class ListAgentDispatchResponse extends Message<ListAgentDispatchResponse> {
153
- /**
154
- * @generated from field: repeated livekit.AgentDispatch agent_dispatches = 1;
155
- */
156
- agentDispatches: AgentDispatch[];
157
-
158
- constructor(data?: PartialMessage<ListAgentDispatchResponse>);
159
-
160
- static readonly runtime: typeof proto3;
161
- static readonly typeName = "livekit.ListAgentDispatchResponse";
162
- static readonly fields: FieldList;
163
-
164
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListAgentDispatchResponse;
165
-
166
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListAgentDispatchResponse;
167
-
168
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListAgentDispatchResponse;
169
-
170
- static equals(a: ListAgentDispatchResponse | PlainMessage<ListAgentDispatchResponse> | undefined, b: ListAgentDispatchResponse | PlainMessage<ListAgentDispatchResponse> | undefined): boolean;
171
- }
172
-
173
- /**
174
- * @generated from message livekit.AgentDispatch
175
- */
176
- export declare class AgentDispatch extends Message<AgentDispatch> {
177
- /**
178
- * @generated from field: string id = 1;
179
- */
180
- id: string;
181
-
182
- /**
183
- * @generated from field: string agent_name = 2;
184
- */
185
- agentName: string;
186
-
187
- /**
188
- * @generated from field: string room = 3;
189
- */
190
- room: string;
191
-
192
- /**
193
- * @generated from field: string metadata = 4;
194
- */
195
- metadata: string;
196
-
197
- /**
198
- * @generated from field: livekit.AgentDispatchState state = 5;
199
- */
200
- state?: AgentDispatchState;
201
-
202
- constructor(data?: PartialMessage<AgentDispatch>);
203
-
204
- static readonly runtime: typeof proto3;
205
- static readonly typeName = "livekit.AgentDispatch";
206
- static readonly fields: FieldList;
207
-
208
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AgentDispatch;
209
-
210
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AgentDispatch;
211
-
212
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AgentDispatch;
213
-
214
- static equals(a: AgentDispatch | PlainMessage<AgentDispatch> | undefined, b: AgentDispatch | PlainMessage<AgentDispatch> | undefined): boolean;
215
- }
216
-
217
- /**
218
- * @generated from message livekit.AgentDispatchState
219
- */
220
- export declare class AgentDispatchState extends Message<AgentDispatchState> {
221
- /**
222
- * For dispatches of tyoe JT_ROOM, there will be at most 1 job.
223
- * For dispatches of type JT_PUBLISHER, there will be 1 per publisher.
224
- *
225
- * @generated from field: repeated livekit.Job jobs = 1;
226
- */
227
- jobs: Job[];
228
-
229
- /**
230
- * @generated from field: int64 created_at = 2;
231
- */
232
- createdAt: bigint;
233
-
234
- /**
235
- * @generated from field: int64 deleted_at = 3;
236
- */
237
- deletedAt: bigint;
238
-
239
- constructor(data?: PartialMessage<AgentDispatchState>);
240
-
241
- static readonly runtime: typeof proto3;
242
- static readonly typeName = "livekit.AgentDispatchState";
243
- static readonly fields: FieldList;
244
-
245
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AgentDispatchState;
246
-
247
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AgentDispatchState;
248
-
249
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AgentDispatchState;
250
-
251
- static equals(a: AgentDispatchState | PlainMessage<AgentDispatchState> | undefined, b: AgentDispatchState | PlainMessage<AgentDispatchState> | undefined): boolean;
252
- }
253
-
@@ -1,103 +0,0 @@
1
- // Copyright 2023 LiveKit, Inc.
2
- //
3
- // Licensed under the Apache License, Version 2.0 (the "License");
4
- // you may not use this file except in compliance with the License.
5
- // You may obtain a copy of the License at
6
- //
7
- // http://www.apache.org/licenses/LICENSE-2.0
8
- //
9
- // Unless required by applicable law or agreed to in writing, software
10
- // distributed under the License is distributed on an "AS IS" BASIS,
11
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- // See the License for the specific language governing permissions and
13
- // limitations under the License.
14
-
15
- // @generated by protoc-gen-es v1.10.0 with parameter "target=js+dts"
16
- // @generated from file livekit_agent_dispatch.proto (package livekit, syntax proto3)
17
- /* eslint-disable */
18
- // @ts-nocheck
19
-
20
- import { proto3 } from "@bufbuild/protobuf";
21
- import { Job } from "./livekit_agent_pb.js";
22
-
23
- /**
24
- * @generated from message livekit.CreateAgentDispatchRequest
25
- */
26
- export const CreateAgentDispatchRequest = /*@__PURE__*/ proto3.makeMessageType(
27
- "livekit.CreateAgentDispatchRequest",
28
- () => [
29
- { no: 1, name: "agent_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
30
- { no: 2, name: "room", kind: "scalar", T: 9 /* ScalarType.STRING */ },
31
- { no: 3, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
32
- ],
33
- );
34
-
35
- /**
36
- * @generated from message livekit.RoomAgentDispatch
37
- */
38
- export const RoomAgentDispatch = /*@__PURE__*/ proto3.makeMessageType(
39
- "livekit.RoomAgentDispatch",
40
- () => [
41
- { no: 1, name: "agent_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
42
- { no: 2, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
43
- ],
44
- );
45
-
46
- /**
47
- * @generated from message livekit.DeleteAgentDispatchRequest
48
- */
49
- export const DeleteAgentDispatchRequest = /*@__PURE__*/ proto3.makeMessageType(
50
- "livekit.DeleteAgentDispatchRequest",
51
- () => [
52
- { no: 1, name: "dispatch_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
53
- { no: 2, name: "room", kind: "scalar", T: 9 /* ScalarType.STRING */ },
54
- ],
55
- );
56
-
57
- /**
58
- * @generated from message livekit.ListAgentDispatchRequest
59
- */
60
- export const ListAgentDispatchRequest = /*@__PURE__*/ proto3.makeMessageType(
61
- "livekit.ListAgentDispatchRequest",
62
- () => [
63
- { no: 1, name: "dispatch_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
64
- { no: 2, name: "room", kind: "scalar", T: 9 /* ScalarType.STRING */ },
65
- ],
66
- );
67
-
68
- /**
69
- * @generated from message livekit.ListAgentDispatchResponse
70
- */
71
- export const ListAgentDispatchResponse = /*@__PURE__*/ proto3.makeMessageType(
72
- "livekit.ListAgentDispatchResponse",
73
- () => [
74
- { no: 1, name: "agent_dispatches", kind: "message", T: AgentDispatch, repeated: true },
75
- ],
76
- );
77
-
78
- /**
79
- * @generated from message livekit.AgentDispatch
80
- */
81
- export const AgentDispatch = /*@__PURE__*/ proto3.makeMessageType(
82
- "livekit.AgentDispatch",
83
- () => [
84
- { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
85
- { no: 2, name: "agent_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
86
- { no: 3, name: "room", kind: "scalar", T: 9 /* ScalarType.STRING */ },
87
- { no: 4, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
88
- { no: 5, name: "state", kind: "message", T: AgentDispatchState },
89
- ],
90
- );
91
-
92
- /**
93
- * @generated from message livekit.AgentDispatchState
94
- */
95
- export const AgentDispatchState = /*@__PURE__*/ proto3.makeMessageType(
96
- "livekit.AgentDispatchState",
97
- () => [
98
- { no: 1, name: "jobs", kind: "message", T: Job, repeated: true },
99
- { no: 2, name: "created_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
100
- { no: 3, name: "deleted_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
101
- ],
102
- );
103
-