@nimiplatform/sdk 0.10.0 → 0.11.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.
Files changed (77) hide show
  1. package/dist/core/app/index.d.ts +1 -1
  2. package/dist/core/app/index.d.ts.map +1 -1
  3. package/dist/core/app/index.js.map +1 -1
  4. package/dist/core/app/local-app-runtime-platform-ai.d.ts +25 -5
  5. package/dist/core/app/local-app-runtime-platform-ai.d.ts.map +1 -1
  6. package/dist/core/app/local-app-runtime-platform-ai.js +68 -14
  7. package/dist/core/app/local-app-runtime-platform-ai.js.map +1 -1
  8. package/dist/core/app/local-app-runtime-platform-direct-realtime-shared.d.ts +1 -1
  9. package/dist/core/app/local-app-runtime-platform-video.d.ts +58 -0
  10. package/dist/core/app/local-app-runtime-platform-video.d.ts.map +1 -0
  11. package/dist/core/app/local-app-runtime-platform-video.js +155 -0
  12. package/dist/core/app/local-app-runtime-platform-video.js.map +1 -0
  13. package/dist/core/app/local-app-runtime-platform.d.ts +5 -1
  14. package/dist/core/app/local-app-runtime-platform.d.ts.map +1 -1
  15. package/dist/core/app/local-app-runtime-platform.js +4 -1
  16. package/dist/core/app/local-app-runtime-platform.js.map +1 -1
  17. package/dist/core-generated/runtime-client.d.ts.map +1 -1
  18. package/dist/core-generated/runtime-client.js +56 -0
  19. package/dist/core-generated/runtime-client.js.map +1 -1
  20. package/dist/core-generated/runtime-protobuf/runtime/v1/ai.d.ts +585 -3
  21. package/dist/core-generated/runtime-protobuf/runtime/v1/ai.d.ts.map +1 -1
  22. package/dist/core-generated/runtime-protobuf/runtime/v1/ai.js +1369 -138
  23. package/dist/core-generated/runtime-protobuf/runtime/v1/ai.js.map +1 -1
  24. package/dist/core-generated/runtime-protobuf/runtime/v1/app.d.ts +185 -1
  25. package/dist/core-generated/runtime-protobuf/runtime/v1/app.d.ts.map +1 -1
  26. package/dist/core-generated/runtime-protobuf/runtime/v1/app.js +394 -1
  27. package/dist/core-generated/runtime-protobuf/runtime/v1/app.js.map +1 -1
  28. package/dist/core-generated/runtime-protobuf/runtime/v1/common.d.ts +33 -1
  29. package/dist/core-generated/runtime-protobuf/runtime/v1/common.d.ts.map +1 -1
  30. package/dist/core-generated/runtime-protobuf/runtime/v1/common.js +32 -0
  31. package/dist/core-generated/runtime-protobuf/runtime/v1/common.js.map +1 -1
  32. package/dist/core-generated/runtime-public-client.d.ts.map +1 -1
  33. package/dist/core-generated/runtime-public-client.js +56 -0
  34. package/dist/core-generated/runtime-public-client.js.map +1 -1
  35. package/dist/core-generated/runtime-public-rpc-auth-posture.d.ts.map +1 -1
  36. package/dist/core-generated/runtime-public-rpc-auth-posture.js +7 -0
  37. package/dist/core-generated/runtime-public-rpc-auth-posture.js.map +1 -1
  38. package/dist/core-generated/runtime-public-wire-codecs.d.ts +9 -2
  39. package/dist/core-generated/runtime-public-wire-codecs.d.ts.map +1 -1
  40. package/dist/core-generated/runtime-public-wire-codecs.js +9 -2
  41. package/dist/core-generated/runtime-public-wire-codecs.js.map +1 -1
  42. package/dist/core-generated/runtime-rpc-auth-posture.d.ts.map +1 -1
  43. package/dist/core-generated/runtime-rpc-auth-posture.js +7 -0
  44. package/dist/core-generated/runtime-rpc-auth-posture.js.map +1 -1
  45. package/dist/core-generated/runtime-typed-client.d.ts +12 -5
  46. package/dist/core-generated/runtime-typed-client.d.ts.map +1 -1
  47. package/dist/core-generated/runtime-typed-client.js +71 -1
  48. package/dist/core-generated/runtime-typed-client.js.map +1 -1
  49. package/dist/core-generated/runtime-wire-codecs.d.ts +9 -2
  50. package/dist/core-generated/runtime-wire-codecs.d.ts.map +1 -1
  51. package/dist/core-generated/runtime-wire-codecs.js +9 -2
  52. package/dist/core-generated/runtime-wire-codecs.js.map +1 -1
  53. package/dist/runtime/desktop-first-party-runtime.d.ts +1 -1
  54. package/dist/runtime/desktop-first-party-runtime.d.ts.map +1 -1
  55. package/dist/runtime/desktop-first-party-runtime.js +3 -0
  56. package/dist/runtime/desktop-first-party-runtime.js.map +1 -1
  57. package/dist/runtime/first-party-protected-runtime-profiles.generated.d.ts +47 -3
  58. package/dist/runtime/first-party-protected-runtime-profiles.generated.d.ts.map +1 -1
  59. package/dist/runtime/first-party-protected-runtime-profiles.generated.js +14 -3
  60. package/dist/runtime/first-party-protected-runtime-profiles.generated.js.map +1 -1
  61. package/dist/runtime/wire-types/ai-scenario-enums.d.ts +12 -1
  62. package/dist/runtime/wire-types/ai-scenario-enums.d.ts.map +1 -1
  63. package/dist/runtime/wire-types/ai-scenario-enums.js +13 -0
  64. package/dist/runtime/wire-types/ai-scenario-enums.js.map +1 -1
  65. package/dist/runtime/wire-types/ai-scenario-types.d.ts +2 -2
  66. package/dist/runtime/wire-types/ai-scenario-types.d.ts.map +1 -1
  67. package/dist/runtime/wire-types/identity-app-enums.d.ts +2 -1
  68. package/dist/runtime/wire-types/identity-app-enums.d.ts.map +1 -1
  69. package/dist/runtime/wire-types/identity-app-enums.js +1 -0
  70. package/dist/runtime/wire-types/identity-app-enums.js.map +1 -1
  71. package/dist/runtime/wire-types/identity-app-types.d.ts +2 -2
  72. package/dist/runtime/wire-types/identity-app-types.d.ts.map +1 -1
  73. package/dist/runtime/wire-types/reason-code-enums.d.ts +9 -1
  74. package/dist/runtime/wire-types/reason-code-enums.d.ts.map +1 -1
  75. package/dist/runtime/wire-types/reason-code-enums.js +8 -0
  76. package/dist/runtime/wire-types/reason-code-enums.js.map +1 -1
  77. package/package.json +1 -1
@@ -9,9 +9,9 @@ import { VoiceOutputMode } from "./voice.js";
9
9
  import { VoiceCreationSource } from "./voice.js";
10
10
  import { VoiceAssetStatus } from "./voice.js";
11
11
  import { Timestamp } from "../../google/protobuf/timestamp.js";
12
- import { ReasonCode } from "./common.js";
13
12
  import { LoadoutEffectiveInputIdentity } from "./capability_configuration.js";
14
13
  import { UsageStats } from "./common.js";
14
+ import { ReasonCode } from "./common.js";
15
15
  import { VoiceT2VInput } from "./voice.js";
16
16
  import { VoiceV2VInput } from "./voice.js";
17
17
  import { VoiceReference } from "./voice.js";
@@ -969,6 +969,294 @@ export interface WorldGenerateScenarioSpec {
969
969
  oneofKind: undefined;
970
970
  };
971
971
  }
972
+ /**
973
+ * Both artifacts belong to the current protected App caller.
974
+ *
975
+ * @generated from protobuf message nimi.runtime.v1.ImageFaceSwapScenarioSpec
976
+ */
977
+ export interface ImageFaceSwapScenarioSpec {
978
+ /**
979
+ * @generated from protobuf field: string reference_image_artifact_id = 1
980
+ */
981
+ referenceImageArtifactId: string;
982
+ /**
983
+ * @generated from protobuf field: string target_image_artifact_id = 2
984
+ */
985
+ targetImageArtifactId: string;
986
+ }
987
+ /**
988
+ * @generated from protobuf message nimi.runtime.v1.AiVideoSessionFormat
989
+ */
990
+ export interface AiVideoSessionFormat {
991
+ /**
992
+ * @generated from protobuf field: uint32 width = 1
993
+ */
994
+ width: number;
995
+ /**
996
+ * @generated from protobuf field: uint32 height = 2
997
+ */
998
+ height: number;
999
+ /**
1000
+ * @generated from protobuf field: nimi.runtime.v1.AiVideoPixelFormat pixel_format = 3
1001
+ */
1002
+ pixelFormat: AiVideoPixelFormat;
1003
+ }
1004
+ /**
1005
+ * @generated from protobuf message nimi.runtime.v1.OpenVideoSessionRequest
1006
+ */
1007
+ export interface OpenVideoSessionRequest {
1008
+ /**
1009
+ * @generated from protobuf field: string reference_image_artifact_id = 1
1010
+ */
1011
+ referenceImageArtifactId: string;
1012
+ /**
1013
+ * @generated from protobuf field: nimi.runtime.v1.AiVideoSessionFormat format = 2
1014
+ */
1015
+ format?: AiVideoSessionFormat;
1016
+ }
1017
+ /**
1018
+ * @generated from protobuf message nimi.runtime.v1.OpenVideoSessionResponse
1019
+ */
1020
+ export interface OpenVideoSessionResponse {
1021
+ /**
1022
+ * @generated from protobuf field: string video_session_id = 1
1023
+ */
1024
+ videoSessionId: string;
1025
+ /**
1026
+ * @generated from protobuf field: uint64 generation = 2
1027
+ */
1028
+ generation: string;
1029
+ /**
1030
+ * @generated from protobuf field: nimi.runtime.v1.AiVideoSessionFormat format = 3
1031
+ */
1032
+ format?: AiVideoSessionFormat;
1033
+ /**
1034
+ * @generated from protobuf field: uint32 maximum_in_flight_submissions = 4
1035
+ */
1036
+ maximumInFlightSubmissions: number;
1037
+ }
1038
+ /**
1039
+ * @generated from protobuf message nimi.runtime.v1.SubmitVideoSessionFrameRequest
1040
+ */
1041
+ export interface SubmitVideoSessionFrameRequest {
1042
+ /**
1043
+ * @generated from protobuf field: string video_session_id = 1
1044
+ */
1045
+ videoSessionId: string;
1046
+ /**
1047
+ * @generated from protobuf field: uint64 generation = 2
1048
+ */
1049
+ generation: string;
1050
+ /**
1051
+ * @generated from protobuf field: uint64 sequence = 3
1052
+ */
1053
+ sequence: string;
1054
+ /**
1055
+ * @generated from protobuf field: uint64 timestamp_us = 4
1056
+ */
1057
+ timestampUs: string;
1058
+ /**
1059
+ * @generated from protobuf field: bytes frame = 5
1060
+ */
1061
+ frame: Uint8Array;
1062
+ }
1063
+ /**
1064
+ * @generated from protobuf message nimi.runtime.v1.SubmitVideoSessionFrameResponse
1065
+ */
1066
+ export interface SubmitVideoSessionFrameResponse {
1067
+ /**
1068
+ * @generated from protobuf field: bool accepted = 1
1069
+ */
1070
+ accepted: boolean;
1071
+ /**
1072
+ * @generated from protobuf field: uint64 sequence = 2
1073
+ */
1074
+ sequence: string;
1075
+ }
1076
+ /**
1077
+ * @generated from protobuf message nimi.runtime.v1.ReadVideoSessionResultRequest
1078
+ */
1079
+ export interface ReadVideoSessionResultRequest {
1080
+ /**
1081
+ * @generated from protobuf field: string video_session_id = 1
1082
+ */
1083
+ videoSessionId: string;
1084
+ /**
1085
+ * @generated from protobuf field: uint64 generation = 2
1086
+ */
1087
+ generation: string;
1088
+ }
1089
+ /**
1090
+ * @generated from protobuf message nimi.runtime.v1.AiVideoTransformedFrame
1091
+ */
1092
+ export interface AiVideoTransformedFrame {
1093
+ /**
1094
+ * @generated from protobuf field: uint64 sequence = 1
1095
+ */
1096
+ sequence: string;
1097
+ /**
1098
+ * @generated from protobuf field: uint64 timestamp_us = 2
1099
+ */
1100
+ timestampUs: string;
1101
+ /**
1102
+ * @generated from protobuf field: bytes frame = 3
1103
+ */
1104
+ frame: Uint8Array;
1105
+ }
1106
+ /**
1107
+ * @generated from protobuf message nimi.runtime.v1.AiVideoFrameDisposition
1108
+ */
1109
+ export interface AiVideoFrameDisposition {
1110
+ /**
1111
+ * @generated from protobuf field: uint64 sequence = 1
1112
+ */
1113
+ sequence: string;
1114
+ /**
1115
+ * @generated from protobuf field: uint64 timestamp_us = 2
1116
+ */
1117
+ timestampUs: string;
1118
+ /**
1119
+ * @generated from protobuf field: nimi.runtime.v1.ReasonCode reason_code = 3
1120
+ */
1121
+ reasonCode: ReasonCode;
1122
+ }
1123
+ /**
1124
+ * @generated from protobuf message nimi.runtime.v1.AiVideoSessionTerminal
1125
+ */
1126
+ export interface AiVideoSessionTerminal {
1127
+ /**
1128
+ * @generated from protobuf field: nimi.runtime.v1.ReasonCode reason_code = 1
1129
+ */
1130
+ reasonCode: ReasonCode;
1131
+ }
1132
+ /**
1133
+ * @generated from protobuf message nimi.runtime.v1.AiVideoSessionResult
1134
+ */
1135
+ export interface AiVideoSessionResult {
1136
+ /**
1137
+ * @generated from protobuf field: string video_session_id = 1
1138
+ */
1139
+ videoSessionId: string;
1140
+ /**
1141
+ * @generated from protobuf field: uint64 generation = 2
1142
+ */
1143
+ generation: string;
1144
+ /**
1145
+ * @generated from protobuf oneof: result
1146
+ */
1147
+ result: {
1148
+ oneofKind: "transformed";
1149
+ /**
1150
+ * @generated from protobuf field: nimi.runtime.v1.AiVideoTransformedFrame transformed = 3
1151
+ */
1152
+ transformed: AiVideoTransformedFrame;
1153
+ } | {
1154
+ oneofKind: "noTargetFace";
1155
+ /**
1156
+ * @generated from protobuf field: nimi.runtime.v1.AiVideoFrameDisposition no_target_face = 4
1157
+ */
1158
+ noTargetFace: AiVideoFrameDisposition;
1159
+ } | {
1160
+ oneofKind: "inputDropped";
1161
+ /**
1162
+ * @generated from protobuf field: nimi.runtime.v1.AiVideoFrameDisposition input_dropped = 5
1163
+ */
1164
+ inputDropped: AiVideoFrameDisposition;
1165
+ } | {
1166
+ oneofKind: "inputRejected";
1167
+ /**
1168
+ * @generated from protobuf field: nimi.runtime.v1.AiVideoFrameDisposition input_rejected = 6
1169
+ */
1170
+ inputRejected: AiVideoFrameDisposition;
1171
+ } | {
1172
+ oneofKind: "sessionTerminal";
1173
+ /**
1174
+ * @generated from protobuf field: nimi.runtime.v1.AiVideoSessionTerminal session_terminal = 7
1175
+ */
1176
+ sessionTerminal: AiVideoSessionTerminal;
1177
+ } | {
1178
+ oneofKind: undefined;
1179
+ };
1180
+ }
1181
+ /**
1182
+ * @generated from protobuf message nimi.runtime.v1.ReadVideoSessionResultResponse
1183
+ */
1184
+ export interface ReadVideoSessionResultResponse {
1185
+ /**
1186
+ * Absent means the bounded poll has no result yet.
1187
+ *
1188
+ * @generated from protobuf field: nimi.runtime.v1.AiVideoSessionResult result = 1
1189
+ */
1190
+ result?: AiVideoSessionResult;
1191
+ }
1192
+ /**
1193
+ * @generated from protobuf message nimi.runtime.v1.CloseVideoSessionRequest
1194
+ */
1195
+ export interface CloseVideoSessionRequest {
1196
+ /**
1197
+ * @generated from protobuf field: string video_session_id = 1
1198
+ */
1199
+ videoSessionId: string;
1200
+ /**
1201
+ * @generated from protobuf field: uint64 generation = 2
1202
+ */
1203
+ generation: string;
1204
+ }
1205
+ /**
1206
+ * @generated from protobuf message nimi.runtime.v1.CloseVideoSessionResponse
1207
+ */
1208
+ export interface CloseVideoSessionResponse {
1209
+ /**
1210
+ * @generated from protobuf field: bool closed = 1
1211
+ */
1212
+ closed: boolean;
1213
+ }
1214
+ /**
1215
+ * @generated from protobuf message nimi.runtime.v1.VideoFaceSwapScenarioSpec
1216
+ */
1217
+ export interface VideoFaceSwapScenarioSpec {
1218
+ /**
1219
+ * @generated from protobuf field: string reference_image_artifact_id = 1
1220
+ */
1221
+ referenceImageArtifactId: string;
1222
+ /**
1223
+ * @generated from protobuf field: string target_video_artifact_id = 2
1224
+ */
1225
+ targetVideoArtifactId: string;
1226
+ /**
1227
+ * @generated from protobuf field: nimi.runtime.v1.FaceSwapNoFacePolicy no_face_policy = 3
1228
+ */
1229
+ noFacePolicy: FaceSwapNoFacePolicy;
1230
+ }
1231
+ /**
1232
+ * @generated from protobuf message nimi.runtime.v1.VideoFaceSwapSummary
1233
+ */
1234
+ export interface VideoFaceSwapSummary {
1235
+ /**
1236
+ * @generated from protobuf field: uint32 total_frames = 1
1237
+ */
1238
+ totalFrames: number;
1239
+ /**
1240
+ * @generated from protobuf field: uint32 transformed_frames = 2
1241
+ */
1242
+ transformedFrames: number;
1243
+ /**
1244
+ * @generated from protobuf field: uint32 preserved_frames = 3
1245
+ */
1246
+ preservedFrames: number;
1247
+ /**
1248
+ * @generated from protobuf field: uint64 duration_us = 4
1249
+ */
1250
+ durationUs: string;
1251
+ /**
1252
+ * @generated from protobuf field: uint32 frame_rate = 5
1253
+ */
1254
+ frameRate: number;
1255
+ /**
1256
+ * @generated from protobuf field: bool audio_preserved = 6
1257
+ */
1258
+ audioPreserved: boolean;
1259
+ }
972
1260
  /**
973
1261
  * @generated from protobuf message nimi.runtime.v1.VisionLocateScenarioSpec
974
1262
  */
@@ -1138,6 +1426,18 @@ export interface ScenarioSpec {
1138
1426
  * @generated from protobuf field: nimi.runtime.v1.VisionLocateScenarioSpec vision_locate = 12
1139
1427
  */
1140
1428
  visionLocate: VisionLocateScenarioSpec;
1429
+ } | {
1430
+ oneofKind: "imageFaceSwap";
1431
+ /**
1432
+ * @generated from protobuf field: nimi.runtime.v1.ImageFaceSwapScenarioSpec image_face_swap = 13
1433
+ */
1434
+ imageFaceSwap: ImageFaceSwapScenarioSpec;
1435
+ } | {
1436
+ oneofKind: "videoFaceSwap";
1437
+ /**
1438
+ * @generated from protobuf field: nimi.runtime.v1.VideoFaceSwapScenarioSpec video_face_swap = 14
1439
+ */
1440
+ videoFaceSwap: VideoFaceSwapScenarioSpec;
1141
1441
  } | {
1142
1442
  oneofKind: undefined;
1143
1443
  };
@@ -1230,6 +1530,28 @@ export interface ImageGenerateResult {
1230
1530
  */
1231
1531
  artifacts: ScenarioArtifact[];
1232
1532
  }
1533
+ /**
1534
+ * @generated from protobuf message nimi.runtime.v1.ImageFaceSwapResult
1535
+ */
1536
+ export interface ImageFaceSwapResult {
1537
+ /**
1538
+ * @generated from protobuf field: repeated nimi.runtime.v1.ScenarioArtifact artifacts = 1
1539
+ */
1540
+ artifacts: ScenarioArtifact[];
1541
+ }
1542
+ /**
1543
+ * @generated from protobuf message nimi.runtime.v1.VideoFaceSwapResult
1544
+ */
1545
+ export interface VideoFaceSwapResult {
1546
+ /**
1547
+ * @generated from protobuf field: repeated nimi.runtime.v1.ScenarioArtifact artifacts = 1
1548
+ */
1549
+ artifacts: ScenarioArtifact[];
1550
+ /**
1551
+ * @generated from protobuf field: nimi.runtime.v1.VideoFaceSwapSummary summary = 2
1552
+ */
1553
+ summary?: VideoFaceSwapSummary;
1554
+ }
1233
1555
  /**
1234
1556
  * @generated from protobuf message nimi.runtime.v1.VideoGenerateResult
1235
1557
  */
@@ -1385,6 +1707,18 @@ export interface ScenarioOutput {
1385
1707
  * @generated from protobuf field: nimi.runtime.v1.WorldGenerateResult world_generate = 8
1386
1708
  */
1387
1709
  worldGenerate: WorldGenerateResult;
1710
+ } | {
1711
+ oneofKind: "imageFaceSwap";
1712
+ /**
1713
+ * @generated from protobuf field: nimi.runtime.v1.ImageFaceSwapResult image_face_swap = 9
1714
+ */
1715
+ imageFaceSwap: ImageFaceSwapResult;
1716
+ } | {
1717
+ oneofKind: "videoFaceSwap";
1718
+ /**
1719
+ * @generated from protobuf field: nimi.runtime.v1.VideoFaceSwapResult video_face_swap = 10
1720
+ */
1721
+ videoFaceSwap: VideoFaceSwapResult;
1388
1722
  } | {
1389
1723
  oneofKind: undefined;
1390
1724
  };
@@ -1486,7 +1820,7 @@ export interface GenerateLocalAppTextCandidateResponse {
1486
1820
  /**
1487
1821
  * Trimmed artifact projection for Local App scenario outputs. Runtime-private
1488
1822
  * uri, producer, and owner fields are never projected; oversized payloads are
1489
- * reachable only through ReadLocalAppArtifact.
1823
+ * retrieved through owned artifact adoption and App asset streaming.
1490
1824
  *
1491
1825
  * @generated from protobuf message nimi.runtime.v1.LocalAppScenarioArtifact
1492
1826
  */
@@ -1882,6 +2216,12 @@ export interface LocalAppMusicGenerateJobSpec {
1882
2216
  * @generated from protobuf field: string lyrics = 2
1883
2217
  */
1884
2218
  lyrics: string;
2219
+ /**
2220
+ * Generation budget, not a guaranteed output length. Zero uses Runtime defaults.
2221
+ *
2222
+ * @generated from protobuf field: uint32 duration_seconds = 3
2223
+ */
2224
+ durationSeconds: number;
1885
2225
  }
1886
2226
  /**
1887
2227
  * Text-conditioned world generation. Provider selection and asset retrieval
@@ -1954,6 +2294,18 @@ export interface SubmitLocalAppScenarioJobRequest {
1954
2294
  * @generated from protobuf field: nimi.runtime.v1.VisionLocateScenarioSpec vision_locate = 11
1955
2295
  */
1956
2296
  visionLocate: VisionLocateScenarioSpec;
2297
+ } | {
2298
+ oneofKind: "imageFaceSwap";
2299
+ /**
2300
+ * @generated from protobuf field: nimi.runtime.v1.ImageFaceSwapScenarioSpec image_face_swap = 12
2301
+ */
2302
+ imageFaceSwap: ImageFaceSwapScenarioSpec;
2303
+ } | {
2304
+ oneofKind: "videoFaceSwap";
2305
+ /**
2306
+ * @generated from protobuf field: nimi.runtime.v1.VideoFaceSwapScenarioSpec video_face_swap = 13
2307
+ */
2308
+ videoFaceSwap: VideoFaceSwapScenarioSpec;
1957
2309
  } | {
1958
2310
  oneofKind: undefined;
1959
2311
  };
@@ -2035,6 +2387,12 @@ export interface LocalAppScenarioJob {
2035
2387
  * @generated from protobuf field: nimi.runtime.v1.ExecutionInterruption interruption = 14
2036
2388
  */
2037
2389
  interruption?: ExecutionInterruption;
2390
+ /**
2391
+ * Present only for a completed VIDEO_FACE_SWAP Job.
2392
+ *
2393
+ * @generated from protobuf field: nimi.runtime.v1.VideoFaceSwapSummary video_face_swap_summary = 15
2394
+ */
2395
+ videoFaceSwapSummary?: VideoFaceSwapSummary;
2038
2396
  }
2039
2397
  /**
2040
2398
  * Trimmed voice asset catalog projection. Provider, model, provider voice
@@ -2756,6 +3114,12 @@ export interface ScenarioJob {
2756
3114
  * @generated from protobuf field: nimi.runtime.v1.ExecutionInterruption interruption = 25
2757
3115
  */
2758
3116
  interruption?: ExecutionInterruption;
3117
+ /**
3118
+ * Immutable per-frame outcome counts captured with the completed artifact.
3119
+ *
3120
+ * @generated from protobuf field: nimi.runtime.v1.VideoFaceSwapSummary video_face_swap_summary = 26
3121
+ */
3122
+ videoFaceSwapSummary?: VideoFaceSwapSummary;
2759
3123
  }
2760
3124
  /**
2761
3125
  * @generated from protobuf message nimi.runtime.v1.SubmitScenarioJobRequest
@@ -3383,7 +3747,15 @@ export declare enum ScenarioType {
3383
3747
  /**
3384
3748
  * @generated from protobuf enum value: SCENARIO_TYPE_VISION_LOCATE = 12;
3385
3749
  */
3386
- VISION_LOCATE = 12
3750
+ VISION_LOCATE = 12,
3751
+ /**
3752
+ * @generated from protobuf enum value: SCENARIO_TYPE_IMAGE_FACE_SWAP = 13;
3753
+ */
3754
+ IMAGE_FACE_SWAP = 13,
3755
+ /**
3756
+ * @generated from protobuf enum value: SCENARIO_TYPE_VIDEO_FACE_SWAP = 14;
3757
+ */
3758
+ VIDEO_FACE_SWAP = 14
3387
3759
  }
3388
3760
  /**
3389
3761
  * @generated from protobuf enum nimi.runtime.v1.ExecutionMode
@@ -3785,6 +4157,36 @@ export declare enum VisionLocateGeometry {
3785
4157
  */
3786
4158
  POINT = 2
3787
4159
  }
4160
+ /**
4161
+ * @generated from protobuf enum nimi.runtime.v1.FaceSwapNoFacePolicy
4162
+ */
4163
+ export declare enum FaceSwapNoFacePolicy {
4164
+ /**
4165
+ * @generated from protobuf enum value: FACE_SWAP_NO_FACE_POLICY_UNSPECIFIED = 0;
4166
+ */
4167
+ UNSPECIFIED = 0,
4168
+ /**
4169
+ * @generated from protobuf enum value: FACE_SWAP_NO_FACE_POLICY_FAIL = 1;
4170
+ */
4171
+ FAIL = 1,
4172
+ /**
4173
+ * @generated from protobuf enum value: FACE_SWAP_NO_FACE_POLICY_PRESERVE_FRAME = 2;
4174
+ */
4175
+ PRESERVE_FRAME = 2
4176
+ }
4177
+ /**
4178
+ * @generated from protobuf enum nimi.runtime.v1.AiVideoPixelFormat
4179
+ */
4180
+ export declare enum AiVideoPixelFormat {
4181
+ /**
4182
+ * @generated from protobuf enum value: AI_VIDEO_PIXEL_FORMAT_UNSPECIFIED = 0;
4183
+ */
4184
+ UNSPECIFIED = 0,
4185
+ /**
4186
+ * @generated from protobuf enum value: AI_VIDEO_PIXEL_FORMAT_RGB8 = 1;
4187
+ */
4188
+ RGB8 = 1
4189
+ }
3788
4190
  /**
3789
4191
  * @generated from protobuf enum nimi.runtime.v1.ScenarioJobStatus
3790
4192
  */
@@ -4229,6 +4631,166 @@ declare class WorldGenerateScenarioSpec$Type extends MessageType<WorldGenerateSc
4229
4631
  * @generated MessageType for protobuf message nimi.runtime.v1.WorldGenerateScenarioSpec
4230
4632
  */
4231
4633
  export declare const WorldGenerateScenarioSpec: WorldGenerateScenarioSpec$Type;
4634
+ declare class ImageFaceSwapScenarioSpec$Type extends MessageType<ImageFaceSwapScenarioSpec> {
4635
+ constructor();
4636
+ create(value?: PartialMessage<ImageFaceSwapScenarioSpec>): ImageFaceSwapScenarioSpec;
4637
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ImageFaceSwapScenarioSpec): ImageFaceSwapScenarioSpec;
4638
+ internalBinaryWrite(message: ImageFaceSwapScenarioSpec, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
4639
+ }
4640
+ /**
4641
+ * @generated MessageType for protobuf message nimi.runtime.v1.ImageFaceSwapScenarioSpec
4642
+ */
4643
+ export declare const ImageFaceSwapScenarioSpec: ImageFaceSwapScenarioSpec$Type;
4644
+ declare class AiVideoSessionFormat$Type extends MessageType<AiVideoSessionFormat> {
4645
+ constructor();
4646
+ create(value?: PartialMessage<AiVideoSessionFormat>): AiVideoSessionFormat;
4647
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AiVideoSessionFormat): AiVideoSessionFormat;
4648
+ internalBinaryWrite(message: AiVideoSessionFormat, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
4649
+ }
4650
+ /**
4651
+ * @generated MessageType for protobuf message nimi.runtime.v1.AiVideoSessionFormat
4652
+ */
4653
+ export declare const AiVideoSessionFormat: AiVideoSessionFormat$Type;
4654
+ declare class OpenVideoSessionRequest$Type extends MessageType<OpenVideoSessionRequest> {
4655
+ constructor();
4656
+ create(value?: PartialMessage<OpenVideoSessionRequest>): OpenVideoSessionRequest;
4657
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: OpenVideoSessionRequest): OpenVideoSessionRequest;
4658
+ internalBinaryWrite(message: OpenVideoSessionRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
4659
+ }
4660
+ /**
4661
+ * @generated MessageType for protobuf message nimi.runtime.v1.OpenVideoSessionRequest
4662
+ */
4663
+ export declare const OpenVideoSessionRequest: OpenVideoSessionRequest$Type;
4664
+ declare class OpenVideoSessionResponse$Type extends MessageType<OpenVideoSessionResponse> {
4665
+ constructor();
4666
+ create(value?: PartialMessage<OpenVideoSessionResponse>): OpenVideoSessionResponse;
4667
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: OpenVideoSessionResponse): OpenVideoSessionResponse;
4668
+ internalBinaryWrite(message: OpenVideoSessionResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
4669
+ }
4670
+ /**
4671
+ * @generated MessageType for protobuf message nimi.runtime.v1.OpenVideoSessionResponse
4672
+ */
4673
+ export declare const OpenVideoSessionResponse: OpenVideoSessionResponse$Type;
4674
+ declare class SubmitVideoSessionFrameRequest$Type extends MessageType<SubmitVideoSessionFrameRequest> {
4675
+ constructor();
4676
+ create(value?: PartialMessage<SubmitVideoSessionFrameRequest>): SubmitVideoSessionFrameRequest;
4677
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SubmitVideoSessionFrameRequest): SubmitVideoSessionFrameRequest;
4678
+ internalBinaryWrite(message: SubmitVideoSessionFrameRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
4679
+ }
4680
+ /**
4681
+ * @generated MessageType for protobuf message nimi.runtime.v1.SubmitVideoSessionFrameRequest
4682
+ */
4683
+ export declare const SubmitVideoSessionFrameRequest: SubmitVideoSessionFrameRequest$Type;
4684
+ declare class SubmitVideoSessionFrameResponse$Type extends MessageType<SubmitVideoSessionFrameResponse> {
4685
+ constructor();
4686
+ create(value?: PartialMessage<SubmitVideoSessionFrameResponse>): SubmitVideoSessionFrameResponse;
4687
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SubmitVideoSessionFrameResponse): SubmitVideoSessionFrameResponse;
4688
+ internalBinaryWrite(message: SubmitVideoSessionFrameResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
4689
+ }
4690
+ /**
4691
+ * @generated MessageType for protobuf message nimi.runtime.v1.SubmitVideoSessionFrameResponse
4692
+ */
4693
+ export declare const SubmitVideoSessionFrameResponse: SubmitVideoSessionFrameResponse$Type;
4694
+ declare class ReadVideoSessionResultRequest$Type extends MessageType<ReadVideoSessionResultRequest> {
4695
+ constructor();
4696
+ create(value?: PartialMessage<ReadVideoSessionResultRequest>): ReadVideoSessionResultRequest;
4697
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ReadVideoSessionResultRequest): ReadVideoSessionResultRequest;
4698
+ internalBinaryWrite(message: ReadVideoSessionResultRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
4699
+ }
4700
+ /**
4701
+ * @generated MessageType for protobuf message nimi.runtime.v1.ReadVideoSessionResultRequest
4702
+ */
4703
+ export declare const ReadVideoSessionResultRequest: ReadVideoSessionResultRequest$Type;
4704
+ declare class AiVideoTransformedFrame$Type extends MessageType<AiVideoTransformedFrame> {
4705
+ constructor();
4706
+ create(value?: PartialMessage<AiVideoTransformedFrame>): AiVideoTransformedFrame;
4707
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AiVideoTransformedFrame): AiVideoTransformedFrame;
4708
+ internalBinaryWrite(message: AiVideoTransformedFrame, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
4709
+ }
4710
+ /**
4711
+ * @generated MessageType for protobuf message nimi.runtime.v1.AiVideoTransformedFrame
4712
+ */
4713
+ export declare const AiVideoTransformedFrame: AiVideoTransformedFrame$Type;
4714
+ declare class AiVideoFrameDisposition$Type extends MessageType<AiVideoFrameDisposition> {
4715
+ constructor();
4716
+ create(value?: PartialMessage<AiVideoFrameDisposition>): AiVideoFrameDisposition;
4717
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AiVideoFrameDisposition): AiVideoFrameDisposition;
4718
+ internalBinaryWrite(message: AiVideoFrameDisposition, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
4719
+ }
4720
+ /**
4721
+ * @generated MessageType for protobuf message nimi.runtime.v1.AiVideoFrameDisposition
4722
+ */
4723
+ export declare const AiVideoFrameDisposition: AiVideoFrameDisposition$Type;
4724
+ declare class AiVideoSessionTerminal$Type extends MessageType<AiVideoSessionTerminal> {
4725
+ constructor();
4726
+ create(value?: PartialMessage<AiVideoSessionTerminal>): AiVideoSessionTerminal;
4727
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AiVideoSessionTerminal): AiVideoSessionTerminal;
4728
+ internalBinaryWrite(message: AiVideoSessionTerminal, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
4729
+ }
4730
+ /**
4731
+ * @generated MessageType for protobuf message nimi.runtime.v1.AiVideoSessionTerminal
4732
+ */
4733
+ export declare const AiVideoSessionTerminal: AiVideoSessionTerminal$Type;
4734
+ declare class AiVideoSessionResult$Type extends MessageType<AiVideoSessionResult> {
4735
+ constructor();
4736
+ create(value?: PartialMessage<AiVideoSessionResult>): AiVideoSessionResult;
4737
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AiVideoSessionResult): AiVideoSessionResult;
4738
+ internalBinaryWrite(message: AiVideoSessionResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
4739
+ }
4740
+ /**
4741
+ * @generated MessageType for protobuf message nimi.runtime.v1.AiVideoSessionResult
4742
+ */
4743
+ export declare const AiVideoSessionResult: AiVideoSessionResult$Type;
4744
+ declare class ReadVideoSessionResultResponse$Type extends MessageType<ReadVideoSessionResultResponse> {
4745
+ constructor();
4746
+ create(value?: PartialMessage<ReadVideoSessionResultResponse>): ReadVideoSessionResultResponse;
4747
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ReadVideoSessionResultResponse): ReadVideoSessionResultResponse;
4748
+ internalBinaryWrite(message: ReadVideoSessionResultResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
4749
+ }
4750
+ /**
4751
+ * @generated MessageType for protobuf message nimi.runtime.v1.ReadVideoSessionResultResponse
4752
+ */
4753
+ export declare const ReadVideoSessionResultResponse: ReadVideoSessionResultResponse$Type;
4754
+ declare class CloseVideoSessionRequest$Type extends MessageType<CloseVideoSessionRequest> {
4755
+ constructor();
4756
+ create(value?: PartialMessage<CloseVideoSessionRequest>): CloseVideoSessionRequest;
4757
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CloseVideoSessionRequest): CloseVideoSessionRequest;
4758
+ internalBinaryWrite(message: CloseVideoSessionRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
4759
+ }
4760
+ /**
4761
+ * @generated MessageType for protobuf message nimi.runtime.v1.CloseVideoSessionRequest
4762
+ */
4763
+ export declare const CloseVideoSessionRequest: CloseVideoSessionRequest$Type;
4764
+ declare class CloseVideoSessionResponse$Type extends MessageType<CloseVideoSessionResponse> {
4765
+ constructor();
4766
+ create(value?: PartialMessage<CloseVideoSessionResponse>): CloseVideoSessionResponse;
4767
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CloseVideoSessionResponse): CloseVideoSessionResponse;
4768
+ internalBinaryWrite(message: CloseVideoSessionResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
4769
+ }
4770
+ /**
4771
+ * @generated MessageType for protobuf message nimi.runtime.v1.CloseVideoSessionResponse
4772
+ */
4773
+ export declare const CloseVideoSessionResponse: CloseVideoSessionResponse$Type;
4774
+ declare class VideoFaceSwapScenarioSpec$Type extends MessageType<VideoFaceSwapScenarioSpec> {
4775
+ constructor();
4776
+ create(value?: PartialMessage<VideoFaceSwapScenarioSpec>): VideoFaceSwapScenarioSpec;
4777
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: VideoFaceSwapScenarioSpec): VideoFaceSwapScenarioSpec;
4778
+ internalBinaryWrite(message: VideoFaceSwapScenarioSpec, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
4779
+ }
4780
+ /**
4781
+ * @generated MessageType for protobuf message nimi.runtime.v1.VideoFaceSwapScenarioSpec
4782
+ */
4783
+ export declare const VideoFaceSwapScenarioSpec: VideoFaceSwapScenarioSpec$Type;
4784
+ declare class VideoFaceSwapSummary$Type extends MessageType<VideoFaceSwapSummary> {
4785
+ constructor();
4786
+ create(value?: PartialMessage<VideoFaceSwapSummary>): VideoFaceSwapSummary;
4787
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: VideoFaceSwapSummary): VideoFaceSwapSummary;
4788
+ internalBinaryWrite(message: VideoFaceSwapSummary, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
4789
+ }
4790
+ /**
4791
+ * @generated MessageType for protobuf message nimi.runtime.v1.VideoFaceSwapSummary
4792
+ */
4793
+ export declare const VideoFaceSwapSummary: VideoFaceSwapSummary$Type;
4232
4794
  declare class VisionLocateScenarioSpec$Type extends MessageType<VisionLocateScenarioSpec> {
4233
4795
  constructor();
4234
4796
  create(value?: PartialMessage<VisionLocateScenarioSpec>): VisionLocateScenarioSpec;
@@ -4339,6 +4901,26 @@ declare class ImageGenerateResult$Type extends MessageType<ImageGenerateResult>
4339
4901
  * @generated MessageType for protobuf message nimi.runtime.v1.ImageGenerateResult
4340
4902
  */
4341
4903
  export declare const ImageGenerateResult: ImageGenerateResult$Type;
4904
+ declare class ImageFaceSwapResult$Type extends MessageType<ImageFaceSwapResult> {
4905
+ constructor();
4906
+ create(value?: PartialMessage<ImageFaceSwapResult>): ImageFaceSwapResult;
4907
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ImageFaceSwapResult): ImageFaceSwapResult;
4908
+ internalBinaryWrite(message: ImageFaceSwapResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
4909
+ }
4910
+ /**
4911
+ * @generated MessageType for protobuf message nimi.runtime.v1.ImageFaceSwapResult
4912
+ */
4913
+ export declare const ImageFaceSwapResult: ImageFaceSwapResult$Type;
4914
+ declare class VideoFaceSwapResult$Type extends MessageType<VideoFaceSwapResult> {
4915
+ constructor();
4916
+ create(value?: PartialMessage<VideoFaceSwapResult>): VideoFaceSwapResult;
4917
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: VideoFaceSwapResult): VideoFaceSwapResult;
4918
+ internalBinaryWrite(message: VideoFaceSwapResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
4919
+ }
4920
+ /**
4921
+ * @generated MessageType for protobuf message nimi.runtime.v1.VideoFaceSwapResult
4922
+ */
4923
+ export declare const VideoFaceSwapResult: VideoFaceSwapResult$Type;
4342
4924
  declare class VideoGenerateResult$Type extends MessageType<VideoGenerateResult> {
4343
4925
  constructor();
4344
4926
  create(value?: PartialMessage<VideoGenerateResult>): VideoGenerateResult;