tirtc-devtools-cli 0.0.5 → 0.0.6
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.
- package/README.md +3 -1
- package/USAGE.md +151 -366
- package/dist/devtools/cli/src/config.d.ts +4 -13
- package/dist/devtools/cli/src/config.js +7 -19
- package/dist/devtools/cli/src/facade.d.ts +39 -154
- package/dist/devtools/cli/src/facade.js +9 -23
- package/dist/devtools/cli/src/guide.js +7 -9
- package/dist/devtools/cli/src/index.js +135 -255
- package/dist/devtools/cli/src/token_command.d.ts +7 -0
- package/dist/devtools/cli/src/token_command.js +139 -0
- package/package.json +1 -1
- package/vendor/app-server/bin/native/macos-arm64/credential_napi.node +0 -0
- package/vendor/app-server/bin/native/macos-arm64/runtime_host_napi.node +0 -0
- package/vendor/app-server/bin/runtime/macos-arm64/include/tirtc/trp.h +30 -17
- package/vendor/app-server/bin/runtime/macos-arm64/lib/libmatrix_runtime_audio.a +0 -0
- package/vendor/app-server/bin/runtime/macos-arm64/lib/libmatrix_runtime_credential.a +0 -0
- package/vendor/app-server/bin/runtime/macos-arm64/lib/libmatrix_runtime_facade.a +0 -0
- package/vendor/app-server/bin/runtime/macos-arm64/lib/libmatrix_runtime_foundation_http.a +0 -0
- package/vendor/app-server/bin/runtime/macos-arm64/lib/libmatrix_runtime_foundation_logging.a +0 -0
- package/vendor/app-server/bin/runtime/macos-arm64/lib/libmatrix_runtime_media.a +0 -0
- package/vendor/app-server/bin/runtime/macos-arm64/lib/libmatrix_runtime_transport.a +0 -0
- package/vendor/app-server/bin/runtime/macos-arm64/lib/libmatrix_runtime_video.a +0 -0
- package/vendor/app-server/bin/runtime/macos-arm64/manifest.txt +10 -10
- package/vendor/app-server/dist/host/HostProtocol.d.ts +7 -5
- package/vendor/app-server/dist/host/HostProtocol.js +21 -10
- package/vendor/app-server/dist/host/HostServer.d.ts +2 -2
- package/vendor/app-server/dist/host/HostServer.js +93 -35
- package/vendor/app-server/dist/host/HostState.d.ts +0 -5
- package/vendor/app-server/dist/host/HostState.js +0 -1
- package/vendor/app-server/dist/host/RuntimeAdapter.d.ts +12 -0
- package/vendor/app-server/dist/host/RuntimeAdapter.js +42 -3
- package/vendor/app-server/dist/host/RuntimeSendWorker.d.ts +4 -0
- package/vendor/app-server/dist/host/RuntimeSendWorker.js +17 -0
- package/vendor/app-server/dist/protocol/contract.d.ts +72 -14
- package/vendor/app-server/dist/protocol/contract.js +11 -8
|
@@ -748,14 +748,76 @@ export declare const ServiceStartRequestSchema: z.ZodObject<{
|
|
|
748
748
|
serviceEntry: z.ZodOptional<z.ZodString>;
|
|
749
749
|
license: z.ZodString;
|
|
750
750
|
timeoutMs: z.ZodNumber;
|
|
751
|
+
bootstrapSendStreams: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
752
|
+
streamId: z.ZodNumber;
|
|
753
|
+
media: z.ZodEnum<["audio", "video"]>;
|
|
754
|
+
source: z.ZodObject<{
|
|
755
|
+
mode: z.ZodLiteral<"local_assets">;
|
|
756
|
+
local_assets: z.ZodObject<{
|
|
757
|
+
assets_dir: z.ZodString;
|
|
758
|
+
}, "strip", z.ZodTypeAny, {
|
|
759
|
+
assets_dir: string;
|
|
760
|
+
}, {
|
|
761
|
+
assets_dir: string;
|
|
762
|
+
}>;
|
|
763
|
+
}, "strip", z.ZodTypeAny, {
|
|
764
|
+
mode: "local_assets";
|
|
765
|
+
local_assets: {
|
|
766
|
+
assets_dir: string;
|
|
767
|
+
};
|
|
768
|
+
}, {
|
|
769
|
+
mode: "local_assets";
|
|
770
|
+
local_assets: {
|
|
771
|
+
assets_dir: string;
|
|
772
|
+
};
|
|
773
|
+
}>;
|
|
774
|
+
}, "strip", z.ZodTypeAny, {
|
|
775
|
+
streamId: number;
|
|
776
|
+
media: "audio" | "video";
|
|
777
|
+
source: {
|
|
778
|
+
mode: "local_assets";
|
|
779
|
+
local_assets: {
|
|
780
|
+
assets_dir: string;
|
|
781
|
+
};
|
|
782
|
+
};
|
|
783
|
+
}, {
|
|
784
|
+
streamId: number;
|
|
785
|
+
media: "audio" | "video";
|
|
786
|
+
source: {
|
|
787
|
+
mode: "local_assets";
|
|
788
|
+
local_assets: {
|
|
789
|
+
assets_dir: string;
|
|
790
|
+
};
|
|
791
|
+
};
|
|
792
|
+
}>, "many">>;
|
|
751
793
|
}, "strip", z.ZodTypeAny, {
|
|
752
794
|
license: string;
|
|
753
795
|
timeoutMs: number;
|
|
754
796
|
serviceEntry?: string | undefined;
|
|
797
|
+
bootstrapSendStreams?: {
|
|
798
|
+
streamId: number;
|
|
799
|
+
media: "audio" | "video";
|
|
800
|
+
source: {
|
|
801
|
+
mode: "local_assets";
|
|
802
|
+
local_assets: {
|
|
803
|
+
assets_dir: string;
|
|
804
|
+
};
|
|
805
|
+
};
|
|
806
|
+
}[] | undefined;
|
|
755
807
|
}, {
|
|
756
808
|
license: string;
|
|
757
809
|
timeoutMs: number;
|
|
758
810
|
serviceEntry?: string | undefined;
|
|
811
|
+
bootstrapSendStreams?: {
|
|
812
|
+
streamId: number;
|
|
813
|
+
media: "audio" | "video";
|
|
814
|
+
source: {
|
|
815
|
+
mode: "local_assets";
|
|
816
|
+
local_assets: {
|
|
817
|
+
assets_dir: string;
|
|
818
|
+
};
|
|
819
|
+
};
|
|
820
|
+
}[] | undefined;
|
|
759
821
|
}>;
|
|
760
822
|
export declare const ConnectionConnectRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
761
823
|
serviceEntry: z.ZodOptional<z.ZodString>;
|
|
@@ -884,6 +946,16 @@ export declare const StreamSendStartRequestSchema: z.ZodObject<{
|
|
|
884
946
|
};
|
|
885
947
|
};
|
|
886
948
|
}>;
|
|
949
|
+
export declare const StreamMessageSendRequestSchema: z.ZodObject<{
|
|
950
|
+
streamId: z.ZodNumber;
|
|
951
|
+
payload: z.ZodString;
|
|
952
|
+
}, "strip", z.ZodTypeAny, {
|
|
953
|
+
payload: string;
|
|
954
|
+
streamId: number;
|
|
955
|
+
}, {
|
|
956
|
+
payload: string;
|
|
957
|
+
streamId: number;
|
|
958
|
+
}>;
|
|
887
959
|
export declare const OutputAttachRequestSchema: z.ZodObject<{
|
|
888
960
|
streamId: z.ZodNumber;
|
|
889
961
|
consumer: z.ZodString;
|
|
@@ -941,20 +1013,6 @@ export declare const EventsSubscribeRequestSchema: z.ZodObject<{
|
|
|
941
1013
|
}, {
|
|
942
1014
|
families: string[];
|
|
943
1015
|
}>;
|
|
944
|
-
export declare const StreamRequestPolicySchema: z.ZodObject<{
|
|
945
|
-
mode: z.ZodEnum<["manual", "auto-if-bound"]>;
|
|
946
|
-
}, "strip", z.ZodTypeAny, {
|
|
947
|
-
mode: "manual" | "auto-if-bound";
|
|
948
|
-
}, {
|
|
949
|
-
mode: "manual" | "auto-if-bound";
|
|
950
|
-
}>;
|
|
951
|
-
export declare const StreamRequestPolicySetRequestSchema: z.ZodObject<{
|
|
952
|
-
mode: z.ZodEnum<["manual", "auto-if-bound"]>;
|
|
953
|
-
}, "strip", z.ZodTypeAny, {
|
|
954
|
-
mode: "manual" | "auto-if-bound";
|
|
955
|
-
}, {
|
|
956
|
-
mode: "manual" | "auto-if-bound";
|
|
957
|
-
}>;
|
|
958
1016
|
export declare const DebugTokenQrcodeRequestSchema: z.ZodObject<{
|
|
959
1017
|
payload: z.ZodString;
|
|
960
1018
|
outputStem: z.ZodOptional<z.ZodString>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DebugTokenQrcodeResultSchema = exports.DebugTokenQrcodeRequestSchema = exports.
|
|
3
|
+
exports.DebugTokenQrcodeResultSchema = exports.DebugTokenQrcodeRequestSchema = exports.EventsSubscribeRequestSchema = exports.CommandSendRequestSchema = exports.OutputAttachRequestSchema = exports.StreamMessageSendRequestSchema = exports.StreamSendStartRequestSchema = exports.ConnectionConnectRequestSchema = exports.ServiceStartRequestSchema = exports.ArtifactExportResultSchema = exports.ReportDocumentSchema = exports.ErrorSummarySchema = exports.CommandSendResultSchema = exports.CommandResponseSchema = exports.OutputAttachmentSchema = exports.HostStatusSchema = exports.ArtifactPathsSchema = exports.StreamSnapshotSchema = exports.StreamSourceSchema = exports.StreamLocalAssetsSchema = exports.ConnectionSnapshotSchema = exports.ServiceSnapshotSchema = exports.EventEnvelopeSchema = exports.ErrorResponseSchema = exports.InitializedNotificationSchema = exports.InitializeResultSchema = exports.InitializeRequestSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.InitializeRequestSchema = zod_1.z.object({
|
|
6
6
|
protocolVersion: zod_1.z.string(),
|
|
@@ -135,7 +135,12 @@ exports.ArtifactExportResultSchema = zod_1.z.object({
|
|
|
135
135
|
exports.ServiceStartRequestSchema = zod_1.z.object({
|
|
136
136
|
serviceEntry: zod_1.z.string().optional(),
|
|
137
137
|
license: zod_1.z.string(),
|
|
138
|
-
timeoutMs: zod_1.z.number().int()
|
|
138
|
+
timeoutMs: zod_1.z.number().int(),
|
|
139
|
+
bootstrapSendStreams: zod_1.z.array(zod_1.z.object({
|
|
140
|
+
streamId: zod_1.z.number().int(),
|
|
141
|
+
media: zod_1.z.enum(['audio', 'video']),
|
|
142
|
+
source: exports.StreamSourceSchema,
|
|
143
|
+
})).optional(),
|
|
139
144
|
});
|
|
140
145
|
exports.ConnectionConnectRequestSchema = zod_1.z.object({
|
|
141
146
|
serviceEntry: zod_1.z.string().optional(),
|
|
@@ -159,6 +164,10 @@ exports.StreamSendStartRequestSchema = zod_1.z.object({
|
|
|
159
164
|
media: zod_1.z.string(),
|
|
160
165
|
source: exports.StreamSourceSchema,
|
|
161
166
|
});
|
|
167
|
+
exports.StreamMessageSendRequestSchema = zod_1.z.object({
|
|
168
|
+
streamId: zod_1.z.number().int(),
|
|
169
|
+
payload: zod_1.z.string(),
|
|
170
|
+
});
|
|
162
171
|
exports.OutputAttachRequestSchema = zod_1.z.object({
|
|
163
172
|
streamId: zod_1.z.number().int(),
|
|
164
173
|
consumer: zod_1.z.string(),
|
|
@@ -180,12 +189,6 @@ exports.CommandSendRequestSchema = zod_1.z.object({
|
|
|
180
189
|
exports.EventsSubscribeRequestSchema = zod_1.z.object({
|
|
181
190
|
families: zod_1.z.array(zod_1.z.string())
|
|
182
191
|
});
|
|
183
|
-
exports.StreamRequestPolicySchema = zod_1.z.object({
|
|
184
|
-
mode: zod_1.z.enum(['manual', 'auto-if-bound'])
|
|
185
|
-
});
|
|
186
|
-
exports.StreamRequestPolicySetRequestSchema = zod_1.z.object({
|
|
187
|
-
mode: zod_1.z.enum(['manual', 'auto-if-bound'])
|
|
188
|
-
});
|
|
189
192
|
exports.DebugTokenQrcodeRequestSchema = zod_1.z.object({
|
|
190
193
|
payload: zod_1.z.string(),
|
|
191
194
|
outputStem: zod_1.z.string().optional()
|