@nativestudio/sdk 0.0.0-stage → 0.3.0-rc.2

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 (235) hide show
  1. package/COMPATIBILITY.json +14 -0
  2. package/LICENSE +21 -0
  3. package/README.md +74 -2
  4. package/dist/BUNDLED_DEPENDENCIES.json +1 -0
  5. package/dist/_chunks/chunk-34KSWLCI.js +1 -0
  6. package/dist/_chunks/chunk-4IOFVNFG.js +1 -0
  7. package/dist/_chunks/chunk-4M3AGNTZ.js +1 -0
  8. package/dist/_chunks/chunk-6NVIN2NI.js +1 -0
  9. package/dist/_chunks/chunk-7YCEMDNZ.js +1 -0
  10. package/dist/_chunks/chunk-RK3YLCZP.js +1 -0
  11. package/dist/_types/contracts/accepted-shot.d.ts +27 -0
  12. package/dist/_types/contracts/accepted-visual-source.d.ts +120 -0
  13. package/dist/_types/contracts/agent-execution-lifecycle.d.ts +749 -0
  14. package/dist/_types/contracts/agent-execution-oauth.d.ts +71 -0
  15. package/dist/_types/contracts/agent-execution-registration.d.ts +240 -0
  16. package/dist/_types/contracts/agent-execution-selection.d.ts +107 -0
  17. package/dist/_types/contracts/agent-host-execution.d.ts +706 -0
  18. package/dist/_types/contracts/agent-host-generic-transport.d.ts +12 -0
  19. package/dist/_types/contracts/agent-host.d.ts +226 -0
  20. package/dist/_types/contracts/artifact-discovery.d.ts +170 -0
  21. package/dist/_types/contracts/artifact.d.ts +188 -0
  22. package/dist/_types/contracts/audio.d.ts +331 -0
  23. package/dist/_types/contracts/brief.d.ts +178 -0
  24. package/dist/_types/contracts/caption-render.d.ts +20 -0
  25. package/dist/_types/contracts/caption-transcript.d.ts +102 -0
  26. package/dist/_types/contracts/captions.d.ts +420 -0
  27. package/dist/_types/contracts/clip-framing.d.ts +14 -0
  28. package/dist/_types/contracts/clip-transition.d.ts +6 -0
  29. package/dist/_types/contracts/composition-authoring-guide.d.ts +160 -0
  30. package/dist/_types/contracts/composition-authoring.d.ts +744 -0
  31. package/dist/_types/contracts/composition-finding-locality.d.ts +24 -0
  32. package/dist/_types/contracts/composition-frame-render.d.ts +226 -0
  33. package/dist/_types/contracts/composition-making.d.ts +390 -0
  34. package/dist/_types/contracts/composition-observation.d.ts +239 -0
  35. package/dist/_types/contracts/composition-render-base.d.ts +292 -0
  36. package/dist/_types/contracts/composition-render-observation.d.ts +278 -0
  37. package/dist/_types/contracts/composition-render.d.ts +406 -0
  38. package/dist/_types/contracts/composition-repair.d.ts +451 -0
  39. package/dist/_types/contracts/composition-source-review.d.ts +1042 -0
  40. package/dist/_types/contracts/consistency-profile.d.ts +845 -0
  41. package/dist/_types/contracts/continuity-evaluation.d.ts +48 -0
  42. package/dist/_types/contracts/delivery-completion.d.ts +210 -0
  43. package/dist/_types/contracts/delivery-manifest.d.ts +11776 -0
  44. package/dist/_types/contracts/delivery-operations.d.ts +5009 -0
  45. package/dist/_types/contracts/delivery-output-profile.d.ts +12 -0
  46. package/dist/_types/contracts/delivery-summary.d.ts +220 -0
  47. package/dist/_types/contracts/delivery-validation.d.ts +183 -0
  48. package/dist/_types/contracts/director-proposal.d.ts +1067 -0
  49. package/dist/_types/contracts/editor-intelligence.d.ts +5751 -0
  50. package/dist/_types/contracts/exploration-recommendation.d.ts +11863 -0
  51. package/dist/_types/contracts/external-agent-access.d.ts +95 -0
  52. package/dist/_types/contracts/final-ready.d.ts +301 -0
  53. package/dist/_types/contracts/final-render-profile.d.ts +59 -0
  54. package/dist/_types/contracts/final-render.d.ts +8181 -0
  55. package/dist/_types/contracts/foundation.d.ts +1 -0
  56. package/dist/_types/contracts/generation-contract.d.ts +268 -0
  57. package/dist/_types/contracts/generation-cost.d.ts +70 -0
  58. package/dist/_types/contracts/health.d.ts +6 -0
  59. package/dist/_types/contracts/human-identity.d.ts +149 -0
  60. package/dist/_types/contracts/hyperframe-profile.d.ts +5 -0
  61. package/dist/_types/contracts/ids.d.ts +41 -0
  62. package/dist/_types/contracts/index.d.ts +122 -0
  63. package/dist/_types/contracts/interface/common.d.ts +56 -0
  64. package/dist/_types/contracts/interface/execution-output.d.ts +99 -0
  65. package/dist/_types/contracts/interface/index.d.ts +7 -0
  66. package/dist/_types/contracts/interface/media-output.d.ts +62 -0
  67. package/dist/_types/contracts/interface/operation.d.ts +61 -0
  68. package/dist/_types/contracts/interface/output.d.ts +15 -0
  69. package/dist/_types/contracts/interface/production-snapshot.d.ts +832 -0
  70. package/dist/_types/contracts/interface/query.d.ts +315 -0
  71. package/dist/_types/contracts/keyframe-generation.d.ts +349 -0
  72. package/dist/_types/contracts/keyframe-reference.d.ts +31 -0
  73. package/dist/_types/contracts/keyframe-review.d.ts +753 -0
  74. package/dist/_types/contracts/lifecycle-event-projections.d.ts +191 -0
  75. package/dist/_types/contracts/lifecycle-events.d.ts +156 -0
  76. package/dist/_types/contracts/listening-evidence.d.ts +37 -0
  77. package/dist/_types/contracts/local-execution/agent-review.d.ts +560 -0
  78. package/dist/_types/contracts/local-execution/canonical.d.ts +2 -0
  79. package/dist/_types/contracts/local-execution/common.d.ts +48 -0
  80. package/dist/_types/contracts/local-execution/completion.d.ts +128 -0
  81. package/dist/_types/contracts/local-execution/device.d.ts +134 -0
  82. package/dist/_types/contracts/local-execution/index.d.ts +11 -0
  83. package/dist/_types/contracts/local-execution/ipc.d.ts +1202 -0
  84. package/dist/_types/contracts/local-execution/lifecycle.d.ts +347 -0
  85. package/dist/_types/contracts/local-execution/local-navigation.d.ts +710 -0
  86. package/dist/_types/contracts/local-execution/preview.d.ts +3663 -0
  87. package/dist/_types/contracts/local-execution/tool-selection.d.ts +15 -0
  88. package/dist/_types/contracts/local-execution/work.d.ts +3441 -0
  89. package/dist/_types/contracts/matrix-parameter-rule.d.ts +23 -0
  90. package/dist/_types/contracts/media-export.d.ts +23 -0
  91. package/dist/_types/contracts/media-observation.d.ts +1159 -0
  92. package/dist/_types/contracts/model-capability-matrix.d.ts +118 -0
  93. package/dist/_types/contracts/native-tool-authority-failure.d.ts +38 -0
  94. package/dist/_types/contracts/native-tool-authority.d.ts +110 -0
  95. package/dist/_types/contracts/native-tool-execution.d.ts +287 -0
  96. package/dist/_types/contracts/native-tool-gateway.d.ts +41 -0
  97. package/dist/_types/contracts/native-video-audio.d.ts +62 -0
  98. package/dist/_types/contracts/navigation-context.d.ts +253 -0
  99. package/dist/_types/contracts/navigation-groups.d.ts +51 -0
  100. package/dist/_types/contracts/navigation.d.ts +238 -0
  101. package/dist/_types/contracts/observation-profile.d.ts +99 -0
  102. package/dist/_types/contracts/planning-input.d.ts +177 -0
  103. package/dist/_types/contracts/principal.d.ts +26 -0
  104. package/dist/_types/contracts/production-creation.d.ts +66 -0
  105. package/dist/_types/contracts/production-termination.d.ts +51 -0
  106. package/dist/_types/contracts/production.d.ts +111 -0
  107. package/dist/_types/contracts/programmatic-composition.d.ts +762 -0
  108. package/dist/_types/contracts/programmatic-exploration.d.ts +7459 -0
  109. package/dist/_types/contracts/programmatic-video-review.d.ts +894 -0
  110. package/dist/_types/contracts/project-library.d.ts +173 -0
  111. package/dist/_types/contracts/project.d.ts +93 -0
  112. package/dist/_types/contracts/provider-catalog.d.ts +421 -0
  113. package/dist/_types/contracts/provider-models.d.ts +3380 -0
  114. package/dist/_types/contracts/provider.d.ts +142 -0
  115. package/dist/_types/contracts/reference-preview.d.ts +36 -0
  116. package/dist/_types/contracts/repair-lifecycle.d.ts +2896 -0
  117. package/dist/_types/contracts/repair-plan.d.ts +728 -0
  118. package/dist/_types/contracts/repair-strategy.d.ts +5751 -0
  119. package/dist/_types/contracts/review-intelligence-evidence.d.ts +136 -0
  120. package/dist/_types/contracts/review-intelligence-final-output.d.ts +8705 -0
  121. package/dist/_types/contracts/review-intelligence.d.ts +11543 -0
  122. package/dist/_types/contracts/review1-repair-source.d.ts +452 -0
  123. package/dist/_types/contracts/review1-repair-strategy.d.ts +491 -0
  124. package/dist/_types/contracts/review1-repair.d.ts +36 -0
  125. package/dist/_types/contracts/rough-cut-manifest.d.ts +347 -0
  126. package/dist/_types/contracts/rough-cut-profile.d.ts +37 -0
  127. package/dist/_types/contracts/rough-cut-review.d.ts +12819 -0
  128. package/dist/_types/contracts/rough-cut.d.ts +5862 -0
  129. package/dist/_types/contracts/scene-shot-plan.d.ts +882 -0
  130. package/dist/_types/contracts/sdk-discovery.d.ts +66 -0
  131. package/dist/_types/contracts/shot-direction.d.ts +113 -0
  132. package/dist/_types/contracts/shot-preparation-basis.d.ts +356 -0
  133. package/dist/_types/contracts/shot-preparation.d.ts +2285 -0
  134. package/dist/_types/contracts/shot-sound-instruction.d.ts +58 -0
  135. package/dist/_types/contracts/sound-making-plan.d.ts +1585 -0
  136. package/dist/_types/contracts/source-sound-policy.d.ts +10 -0
  137. package/dist/_types/contracts/source-workspace.d.ts +62 -0
  138. package/dist/_types/contracts/speech.d.ts +424 -0
  139. package/dist/_types/contracts/story.d.ts +98 -0
  140. package/dist/_types/contracts/temporal-evidence-operation.d.ts +379 -0
  141. package/dist/_types/contracts/temporal-evidence-reference.d.ts +18 -0
  142. package/dist/_types/contracts/temporal-evidence.d.ts +248 -0
  143. package/dist/_types/contracts/tenant.d.ts +7 -0
  144. package/dist/_types/contracts/timeline-audio.d.ts +97 -0
  145. package/dist/_types/contracts/timeline-graphics.d.ts +80 -0
  146. package/dist/_types/contracts/timeline-manifest.d.ts +702 -0
  147. package/dist/_types/contracts/timeline-source-sound.d.ts +352 -0
  148. package/dist/_types/contracts/timeline-v2.d.ts +1263 -0
  149. package/dist/_types/contracts/timeline-version-reader.d.ts +2945 -0
  150. package/dist/_types/contracts/timeline-visual-layers.d.ts +1245 -0
  151. package/dist/_types/contracts/timeline.d.ts +4942 -0
  152. package/dist/_types/contracts/transcription.d.ts +80 -0
  153. package/dist/_types/contracts/video-generation.d.ts +643 -0
  154. package/dist/_types/contracts/video-review.d.ts +1871 -0
  155. package/dist/_types/contracts/visual-exploration.d.ts +1586 -0
  156. package/dist/_types/contracts/visual-layer-render.d.ts +2777 -0
  157. package/dist/_types/contracts/visual-layer.d.ts +112 -0
  158. package/dist/_types/contracts/visual-sequence.d.ts +121 -0
  159. package/dist/_types/contracts/writer-proposal.d.ts +268 -0
  160. package/dist/_types/sdk/account.d.ts +109 -0
  161. package/dist/_types/sdk/auxiliary-media.d.ts +43 -0
  162. package/dist/_types/sdk/catalog/agent-host-execution.d.ts +1551 -0
  163. package/dist/_types/sdk/catalog/agent-host.d.ts +344 -0
  164. package/dist/_types/sdk/catalog/assembly.d.ts +37634 -0
  165. package/dist/_types/sdk/catalog/audio-caption.d.ts +1374 -0
  166. package/dist/_types/sdk/catalog/canonical-repair.d.ts +4584 -0
  167. package/dist/_types/sdk/catalog/composition-source.d.ts +1556 -0
  168. package/dist/_types/sdk/catalog/composition.d.ts +2815 -0
  169. package/dist/_types/sdk/catalog/core.d.ts +3049 -0
  170. package/dist/_types/sdk/catalog/delivery.d.ts +14169 -0
  171. package/dist/_types/sdk/catalog/discovery.d.ts +75 -0
  172. package/dist/_types/sdk/catalog/editor.d.ts +6540 -0
  173. package/dist/_types/sdk/catalog/generation.d.ts +942 -0
  174. package/dist/_types/sdk/catalog/imported-visual.d.ts +3111 -0
  175. package/dist/_types/sdk/catalog/keyframe-review.d.ts +859 -0
  176. package/dist/_types/sdk/catalog/lifecycle-events.d.ts +329 -0
  177. package/dist/_types/sdk/catalog/mcp.d.ts +245 -0
  178. package/dist/_types/sdk/catalog/media-descriptors.d.ts +139 -0
  179. package/dist/_types/sdk/catalog/media-observation.d.ts +958 -0
  180. package/dist/_types/sdk/catalog/native-tool-authority.d.ts +281 -0
  181. package/dist/_types/sdk/catalog/navigation.d.ts +559 -0
  182. package/dist/_types/sdk/catalog/planning-intelligence.d.ts +2031 -0
  183. package/dist/_types/sdk/catalog/programmatic-exploration.d.ts +9855 -0
  184. package/dist/_types/sdk/catalog/programmatic-review.d.ts +1106 -0
  185. package/dist/_types/sdk/catalog/provider.d.ts +4439 -0
  186. package/dist/_types/sdk/catalog/reference-preview.d.ts +180 -0
  187. package/dist/_types/sdk/catalog/repair-strategy.d.ts +8916 -0
  188. package/dist/_types/sdk/catalog/reviewer.d.ts +23133 -0
  189. package/dist/_types/sdk/catalog/shot-preparation.d.ts +2974 -0
  190. package/dist/_types/sdk/catalog/sound-making-plan.d.ts +1778 -0
  191. package/dist/_types/sdk/catalog/source-sync.d.ts +1313 -0
  192. package/dist/_types/sdk/catalog/spec.d.ts +37 -0
  193. package/dist/_types/sdk/catalog/speech.d.ts +397 -0
  194. package/dist/_types/sdk/catalog/temporal-evidence.d.ts +391 -0
  195. package/dist/_types/sdk/catalog/video-review.d.ts +2149 -0
  196. package/dist/_types/sdk/catalog/visual-exploration.d.ts +10838 -0
  197. package/dist/_types/sdk/client.d.ts +75 -0
  198. package/dist/_types/sdk/desktop-catalogue.d.ts +25 -0
  199. package/dist/_types/sdk/desktop-previews.d.ts +118 -0
  200. package/dist/_types/sdk/desktop-releases.d.ts +75 -0
  201. package/dist/_types/sdk/errors.d.ts +9 -0
  202. package/dist/_types/sdk/evidence-image.d.ts +22 -0
  203. package/dist/_types/sdk/image-media.d.ts +43 -0
  204. package/dist/_types/sdk/index.d.ts +16 -0
  205. package/dist/_types/sdk/local-runtime/device-client.d.ts +77 -0
  206. package/dist/_types/sdk/local-runtime-client.d.ts +932 -0
  207. package/dist/_types/sdk/mcp-client.d.ts +55 -0
  208. package/dist/_types/sdk/mcp-image.d.ts +52 -0
  209. package/dist/_types/sdk/media.d.ts +104 -0
  210. package/dist/_types/sdk/navigation-client.d.ts +141 -0
  211. package/dist/_types/sdk/navigation-facade.d.ts +458 -0
  212. package/dist/_types/sdk/observe.d.ts +51 -0
  213. package/dist/_types/sdk/runtime-authority.d.ts +103 -0
  214. package/dist/_types/sdk/transport/http.d.ts +39 -0
  215. package/dist/account.d.ts +1 -0
  216. package/dist/account.js +1 -0
  217. package/dist/desktop-previews.d.ts +1 -0
  218. package/dist/desktop-previews.js +1 -0
  219. package/dist/desktop-releases.d.ts +1 -0
  220. package/dist/desktop-releases.js +1 -0
  221. package/dist/errors.d.ts +1 -0
  222. package/dist/errors.js +1 -0
  223. package/dist/index.d.ts +2 -0
  224. package/dist/index.js +1 -0
  225. package/dist/local-runtime.d.ts +1 -0
  226. package/dist/local-runtime.js +1 -0
  227. package/dist/native/Bootstrap.ps1 +90 -0
  228. package/dist/native/JobNative.cs +127 -0
  229. package/dist/native/JobRunner.cs +360 -0
  230. package/dist/native/NativeMain.cs +146 -0
  231. package/dist/native/PipeBridge.cs +260 -0
  232. package/dist/native/PrivateAccess.cs +152 -0
  233. package/dist/runtime-authority.d.ts +1 -0
  234. package/dist/runtime-authority.js +1 -0
  235. package/package.json +50 -3
@@ -0,0 +1,4439 @@
1
+ import { z } from "zod";
2
+ export declare const providerOperations: {
3
+ readonly "provider.model.get": import("./spec.js").HttpOperationSpec<{
4
+ tenantId: string;
5
+ id: string;
6
+ version?: number | undefined;
7
+ }, {
8
+ tenantId: string & z.core.$brand<"TenantId">;
9
+ id: string;
10
+ version?: number | undefined;
11
+ }, {
12
+ tenantId: string & z.core.$brand<"TenantId">;
13
+ id: string;
14
+ version: number;
15
+ enabled: boolean;
16
+ definition: {
17
+ family: "IMAGE";
18
+ profile: {
19
+ id: string;
20
+ version: number;
21
+ providerId: "QWEN_CN" | "VOLCENGINE_CN" | "GEMINI" | "OPENAI" | "XAI";
22
+ modelId: string;
23
+ protocol: "QWEN_EDIT" | "ARK_IMAGE" | "GEMINI_IMAGE" | "OPENAI_IMAGE" | "XAI_IMAGE";
24
+ maxReferences: number;
25
+ promptMaxUtf8Bytes: number;
26
+ requestTimeoutMs: number;
27
+ workingWidth: number;
28
+ workingHeight: number;
29
+ referenceRoles?: ("PRODUCT_IDENTITY" | "PRODUCT_PACKSHOT" | "CHARACTER_IDENTITY" | "WARDROBE" | "LOCATION" | "STYLE")[] | undefined;
30
+ };
31
+ costPolicy?: {
32
+ currency: "USD";
33
+ sourceUrl: string;
34
+ rationale: string;
35
+ validUntil: string;
36
+ rules: {
37
+ id: string;
38
+ variant: {
39
+ mode: "REFERENCE_TO_IMAGE" | "REFERENCE_TO_VIDEO" | "FIRST_FRAME_TO_VIDEO" | "FIRST_LAST_FRAME_TO_VIDEO";
40
+ aspectRatio: "16:9" | "9:16";
41
+ workingWidth: number;
42
+ workingHeight: number;
43
+ hasAudio: boolean;
44
+ references: number;
45
+ durationSeconds: number;
46
+ };
47
+ upperBoundMicros: number;
48
+ }[];
49
+ } | undefined;
50
+ matrix?: {
51
+ schemaVersion: 1;
52
+ service: string;
53
+ lifecycle: "ACTIVE" | "DEPRECATED" | "RETIRED";
54
+ sources: {
55
+ url: string;
56
+ checkedAt: string;
57
+ }[];
58
+ modes: string[];
59
+ claims: {
60
+ capability: "SYNCHRONIZED_AUDIO" | "SPEECH_GENERATION" | "SPEECH_RECOGNITION" | "TRANSCRIPT_TIMESTAMPS" | "VOICE_REFERENCE" | "AUDIO_REFERENCE" | "AUDIO_DRIVEN_VIDEO" | "LIP_SYNCHRONIZATION" | "AUDIO_EDITING" | "SEPARATE_STEMS";
61
+ modes: string[];
62
+ support: "UNKNOWN" | "SUPPORTED" | "UNSUPPORTED";
63
+ control: "NONE" | "PARAMETER" | "PROMPT" | "ALWAYS_ON" | "MEDIA_INPUT";
64
+ access: "PUBLIC" | "QUALIFIED_ACCOUNT";
65
+ parameterPath?: string | undefined;
66
+ description?: string | undefined;
67
+ }[];
68
+ parameters: Record<string, {
69
+ label: string;
70
+ type: "STRING" | "NUMBER" | "BOOLEAN" | "INTEGER" | "STRING_ARRAY" | "STRING_MAP";
71
+ required: boolean;
72
+ min?: number | undefined;
73
+ max?: number | undefined;
74
+ maxLength?: number | undefined;
75
+ options?: string[] | undefined;
76
+ default?: string | number | boolean | string[] | Record<string, string> | undefined;
77
+ unit?: string | undefined;
78
+ description?: string | undefined;
79
+ maxItems?: number | undefined;
80
+ maxKeyLength?: number | undefined;
81
+ numberOptions?: number[] | undefined;
82
+ }>;
83
+ constraints: {
84
+ modes: string[];
85
+ require: string[];
86
+ forbid: string[];
87
+ requireValues: Record<string, string | number | boolean>;
88
+ reason: string;
89
+ when?: {
90
+ parameter: string;
91
+ equals: string | number | boolean;
92
+ } | undefined;
93
+ }[];
94
+ references: {
95
+ kind: "AUDIO_REFERENCE" | "VOICE_ID" | "DRIVING_AUDIO";
96
+ modes: string[];
97
+ parameterPath: string;
98
+ maxItems: number;
99
+ formats: ("WAV" | "MP3")[];
100
+ requiresVisual: boolean;
101
+ access: "PUBLIC" | "QUALIFIED_ACCOUNT";
102
+ minDurationMs?: number | undefined;
103
+ maxDurationMs?: number | undefined;
104
+ maxTotalDurationMs?: number | undefined;
105
+ maxBytes?: number | undefined;
106
+ }[];
107
+ outputAudioChannels?: 2 | 1 | undefined;
108
+ } | undefined;
109
+ } | {
110
+ family: "VIDEO";
111
+ profile: {
112
+ id: string;
113
+ version: number;
114
+ providerId: "QWEN_CN" | "VOLCENGINE_CN" | "GEMINI" | "OPENAI" | "XAI";
115
+ modelId: string;
116
+ protocol: "QWEN_VIDEO" | "VOLCENGINE_VIDEO";
117
+ requestTimeoutMs: number;
118
+ promptMaxCharacters: number;
119
+ resolution: "720P" | "1080P";
120
+ adapterVersion: string;
121
+ capabilities: {
122
+ frameRate: 30 | 24;
123
+ hasAudio: boolean;
124
+ workingWidth: number;
125
+ workingHeight: number;
126
+ mediaType: "VIDEO";
127
+ modes: ("REFERENCE_TO_VIDEO" | "FIRST_FRAME_TO_VIDEO" | "FIRST_LAST_FRAME_TO_VIDEO")[];
128
+ referenceRoles: ("PRODUCT_IDENTITY" | "PRODUCT_PACKSHOT" | "CHARACTER_IDENTITY" | "WARDROBE" | "LOCATION" | "STYLE" | "START_FRAME_ANCHOR" | "END_FRAME_ANCHOR")[];
129
+ aspectRatios: ("16:9" | "9:16")[];
130
+ minDurationSeconds: number;
131
+ maxDurationSeconds: number;
132
+ maxReferences: number;
133
+ combineAnchorsAndReferences: boolean;
134
+ correlationStrategy: "PROVIDER_TASK_ID";
135
+ sourceFormat?: {
136
+ videoCodec: "hevc";
137
+ pixelFormat: "yuv420p10le";
138
+ } | undefined;
139
+ nativeAudioChannels?: 2 | 1 | undefined;
140
+ };
141
+ };
142
+ costPolicy?: {
143
+ currency: "USD";
144
+ sourceUrl: string;
145
+ rationale: string;
146
+ validUntil: string;
147
+ rules: {
148
+ id: string;
149
+ variant: {
150
+ mode: "REFERENCE_TO_IMAGE" | "REFERENCE_TO_VIDEO" | "FIRST_FRAME_TO_VIDEO" | "FIRST_LAST_FRAME_TO_VIDEO";
151
+ aspectRatio: "16:9" | "9:16";
152
+ workingWidth: number;
153
+ workingHeight: number;
154
+ hasAudio: boolean;
155
+ references: number;
156
+ durationSeconds: number;
157
+ };
158
+ upperBoundMicros: number;
159
+ }[];
160
+ } | undefined;
161
+ matrix?: {
162
+ schemaVersion: 1;
163
+ service: string;
164
+ lifecycle: "ACTIVE" | "DEPRECATED" | "RETIRED";
165
+ sources: {
166
+ url: string;
167
+ checkedAt: string;
168
+ }[];
169
+ modes: string[];
170
+ claims: {
171
+ capability: "SYNCHRONIZED_AUDIO" | "SPEECH_GENERATION" | "SPEECH_RECOGNITION" | "TRANSCRIPT_TIMESTAMPS" | "VOICE_REFERENCE" | "AUDIO_REFERENCE" | "AUDIO_DRIVEN_VIDEO" | "LIP_SYNCHRONIZATION" | "AUDIO_EDITING" | "SEPARATE_STEMS";
172
+ modes: string[];
173
+ support: "UNKNOWN" | "SUPPORTED" | "UNSUPPORTED";
174
+ control: "NONE" | "PARAMETER" | "PROMPT" | "ALWAYS_ON" | "MEDIA_INPUT";
175
+ access: "PUBLIC" | "QUALIFIED_ACCOUNT";
176
+ parameterPath?: string | undefined;
177
+ description?: string | undefined;
178
+ }[];
179
+ parameters: Record<string, {
180
+ label: string;
181
+ type: "STRING" | "NUMBER" | "BOOLEAN" | "INTEGER" | "STRING_ARRAY" | "STRING_MAP";
182
+ required: boolean;
183
+ min?: number | undefined;
184
+ max?: number | undefined;
185
+ maxLength?: number | undefined;
186
+ options?: string[] | undefined;
187
+ default?: string | number | boolean | string[] | Record<string, string> | undefined;
188
+ unit?: string | undefined;
189
+ description?: string | undefined;
190
+ maxItems?: number | undefined;
191
+ maxKeyLength?: number | undefined;
192
+ numberOptions?: number[] | undefined;
193
+ }>;
194
+ constraints: {
195
+ modes: string[];
196
+ require: string[];
197
+ forbid: string[];
198
+ requireValues: Record<string, string | number | boolean>;
199
+ reason: string;
200
+ when?: {
201
+ parameter: string;
202
+ equals: string | number | boolean;
203
+ } | undefined;
204
+ }[];
205
+ references: {
206
+ kind: "AUDIO_REFERENCE" | "VOICE_ID" | "DRIVING_AUDIO";
207
+ modes: string[];
208
+ parameterPath: string;
209
+ maxItems: number;
210
+ formats: ("WAV" | "MP3")[];
211
+ requiresVisual: boolean;
212
+ access: "PUBLIC" | "QUALIFIED_ACCOUNT";
213
+ minDurationMs?: number | undefined;
214
+ maxDurationMs?: number | undefined;
215
+ maxTotalDurationMs?: number | undefined;
216
+ maxBytes?: number | undefined;
217
+ }[];
218
+ outputAudioChannels?: 2 | 1 | undefined;
219
+ } | undefined;
220
+ } | {
221
+ family: "SPEECH";
222
+ profile: {
223
+ id: string;
224
+ version: number;
225
+ providerId: "QWEN_CN" | "VOLCENGINE_CN" | "GEMINI" | "OPENAI" | "XAI";
226
+ modelId: string | null;
227
+ protocol: "QWEN_TTS" | "QWEN_AUDIO_TTS" | "OPENAI_TTS" | "XAI_TTS" | "GEMINI_INTERACTIONS_TTS" | "VOLCENGINE_TTS";
228
+ label: string;
229
+ textMaxCharacters: number;
230
+ requestTimeoutMs: number;
231
+ workspaceRequired: boolean;
232
+ voices: {
233
+ id: string;
234
+ label: string;
235
+ languages?: string[] | undefined;
236
+ parameterDefaults?: Record<string, string | number | boolean | string[] | Record<string, string>> | undefined;
237
+ parameterOptions?: Record<string, string[]> | undefined;
238
+ unsupportedParameters?: string[] | undefined;
239
+ }[];
240
+ languages: string[];
241
+ parameters: Record<string, {
242
+ label: string;
243
+ type: "STRING" | "NUMBER" | "BOOLEAN" | "INTEGER" | "STRING_ARRAY" | "STRING_MAP";
244
+ required: boolean;
245
+ min?: number | undefined;
246
+ max?: number | undefined;
247
+ maxLength?: number | undefined;
248
+ options?: string[] | undefined;
249
+ default?: string | number | boolean | string[] | Record<string, string> | undefined;
250
+ unit?: string | undefined;
251
+ description?: string | undefined;
252
+ maxItems?: number | undefined;
253
+ maxKeyLength?: number | undefined;
254
+ }>;
255
+ sourceUrl: string;
256
+ verifiedAt: string;
257
+ providerTextMaxCharacters: number | null;
258
+ resourceId: string | null;
259
+ output: "PCM_S16LE_48000_V1";
260
+ normalizationVersion: "SPEECH_PCM_V1";
261
+ };
262
+ matrix?: {
263
+ schemaVersion: 1;
264
+ service: string;
265
+ lifecycle: "ACTIVE" | "DEPRECATED" | "RETIRED";
266
+ sources: {
267
+ url: string;
268
+ checkedAt: string;
269
+ }[];
270
+ modes: string[];
271
+ claims: {
272
+ capability: "SYNCHRONIZED_AUDIO" | "SPEECH_GENERATION" | "SPEECH_RECOGNITION" | "TRANSCRIPT_TIMESTAMPS" | "VOICE_REFERENCE" | "AUDIO_REFERENCE" | "AUDIO_DRIVEN_VIDEO" | "LIP_SYNCHRONIZATION" | "AUDIO_EDITING" | "SEPARATE_STEMS";
273
+ modes: string[];
274
+ support: "UNKNOWN" | "SUPPORTED" | "UNSUPPORTED";
275
+ control: "NONE" | "PARAMETER" | "PROMPT" | "ALWAYS_ON" | "MEDIA_INPUT";
276
+ access: "PUBLIC" | "QUALIFIED_ACCOUNT";
277
+ parameterPath?: string | undefined;
278
+ description?: string | undefined;
279
+ }[];
280
+ parameters: Record<string, {
281
+ label: string;
282
+ type: "STRING" | "NUMBER" | "BOOLEAN" | "INTEGER" | "STRING_ARRAY" | "STRING_MAP";
283
+ required: boolean;
284
+ min?: number | undefined;
285
+ max?: number | undefined;
286
+ maxLength?: number | undefined;
287
+ options?: string[] | undefined;
288
+ default?: string | number | boolean | string[] | Record<string, string> | undefined;
289
+ unit?: string | undefined;
290
+ description?: string | undefined;
291
+ maxItems?: number | undefined;
292
+ maxKeyLength?: number | undefined;
293
+ numberOptions?: number[] | undefined;
294
+ }>;
295
+ constraints: {
296
+ modes: string[];
297
+ require: string[];
298
+ forbid: string[];
299
+ requireValues: Record<string, string | number | boolean>;
300
+ reason: string;
301
+ when?: {
302
+ parameter: string;
303
+ equals: string | number | boolean;
304
+ } | undefined;
305
+ }[];
306
+ references: {
307
+ kind: "AUDIO_REFERENCE" | "VOICE_ID" | "DRIVING_AUDIO";
308
+ modes: string[];
309
+ parameterPath: string;
310
+ maxItems: number;
311
+ formats: ("WAV" | "MP3")[];
312
+ requiresVisual: boolean;
313
+ access: "PUBLIC" | "QUALIFIED_ACCOUNT";
314
+ minDurationMs?: number | undefined;
315
+ maxDurationMs?: number | undefined;
316
+ maxTotalDurationMs?: number | undefined;
317
+ maxBytes?: number | undefined;
318
+ }[];
319
+ outputAudioChannels?: 2 | 1 | undefined;
320
+ } | undefined;
321
+ } | {
322
+ family: "OBSERVATION";
323
+ profile: {
324
+ id: string;
325
+ version: number;
326
+ providerId: "QWEN_CN" | "VOLCENGINE_CN" | "GEMINI" | "OPENAI" | "XAI";
327
+ sourceUrl: string;
328
+ verifiedAt: string;
329
+ modelId: string;
330
+ label: string;
331
+ protocol: "OPENAI_TRANSCRIPTION_V1" | "OPENAI_WHISPER_TRANSCRIPTION_V1" | "QWEN_ASR_V1";
332
+ modes: ["TRANSCRIPTION"];
333
+ inputKinds: ("AUDIO" | "VIDEO")[];
334
+ requestTimeoutMs: number;
335
+ maxBytes: number;
336
+ maxDurationMs: number;
337
+ parameters: Record<string, {
338
+ label: string;
339
+ type: "STRING" | "NUMBER" | "BOOLEAN" | "INTEGER" | "STRING_ARRAY" | "STRING_MAP";
340
+ required: boolean;
341
+ min?: number | undefined;
342
+ max?: number | undefined;
343
+ maxLength?: number | undefined;
344
+ options?: string[] | undefined;
345
+ default?: string | number | boolean | string[] | Record<string, string> | undefined;
346
+ unit?: string | undefined;
347
+ description?: string | undefined;
348
+ maxItems?: number | undefined;
349
+ maxKeyLength?: number | undefined;
350
+ numberOptions?: number[] | undefined;
351
+ }>;
352
+ } | {
353
+ id: string;
354
+ version: number;
355
+ providerId: "QWEN_CN" | "VOLCENGINE_CN" | "GEMINI" | "OPENAI" | "XAI";
356
+ sourceUrl: string;
357
+ modelId: string;
358
+ label: string;
359
+ protocol: "GEMINI_INTERACTIONS_V1" | "QIANWEN_VIDEO_V1";
360
+ modes: ("AUDIO" | "VIDEO" | "AUDIOVISUAL" | "VIDEO_ALL_FRAMES")[];
361
+ requestTimeoutMs: number;
362
+ maxBytes: number;
363
+ maxDurationMs: number;
364
+ parameters: Record<string, {
365
+ type: "STRING" | "NUMBER" | "BOOLEAN" | "INTEGER";
366
+ default: string | number | boolean;
367
+ min?: number | undefined;
368
+ max?: number | undefined;
369
+ options?: string[] | undefined;
370
+ }>;
371
+ };
372
+ matrix?: {
373
+ schemaVersion: 1;
374
+ service: string;
375
+ lifecycle: "ACTIVE" | "DEPRECATED" | "RETIRED";
376
+ sources: {
377
+ url: string;
378
+ checkedAt: string;
379
+ }[];
380
+ modes: string[];
381
+ claims: {
382
+ capability: "SYNCHRONIZED_AUDIO" | "SPEECH_GENERATION" | "SPEECH_RECOGNITION" | "TRANSCRIPT_TIMESTAMPS" | "VOICE_REFERENCE" | "AUDIO_REFERENCE" | "AUDIO_DRIVEN_VIDEO" | "LIP_SYNCHRONIZATION" | "AUDIO_EDITING" | "SEPARATE_STEMS";
383
+ modes: string[];
384
+ support: "UNKNOWN" | "SUPPORTED" | "UNSUPPORTED";
385
+ control: "NONE" | "PARAMETER" | "PROMPT" | "ALWAYS_ON" | "MEDIA_INPUT";
386
+ access: "PUBLIC" | "QUALIFIED_ACCOUNT";
387
+ parameterPath?: string | undefined;
388
+ description?: string | undefined;
389
+ }[];
390
+ parameters: Record<string, {
391
+ label: string;
392
+ type: "STRING" | "NUMBER" | "BOOLEAN" | "INTEGER" | "STRING_ARRAY" | "STRING_MAP";
393
+ required: boolean;
394
+ min?: number | undefined;
395
+ max?: number | undefined;
396
+ maxLength?: number | undefined;
397
+ options?: string[] | undefined;
398
+ default?: string | number | boolean | string[] | Record<string, string> | undefined;
399
+ unit?: string | undefined;
400
+ description?: string | undefined;
401
+ maxItems?: number | undefined;
402
+ maxKeyLength?: number | undefined;
403
+ numberOptions?: number[] | undefined;
404
+ }>;
405
+ constraints: {
406
+ modes: string[];
407
+ require: string[];
408
+ forbid: string[];
409
+ requireValues: Record<string, string | number | boolean>;
410
+ reason: string;
411
+ when?: {
412
+ parameter: string;
413
+ equals: string | number | boolean;
414
+ } | undefined;
415
+ }[];
416
+ references: {
417
+ kind: "AUDIO_REFERENCE" | "VOICE_ID" | "DRIVING_AUDIO";
418
+ modes: string[];
419
+ parameterPath: string;
420
+ maxItems: number;
421
+ formats: ("WAV" | "MP3")[];
422
+ requiresVisual: boolean;
423
+ access: "PUBLIC" | "QUALIFIED_ACCOUNT";
424
+ minDurationMs?: number | undefined;
425
+ maxDurationMs?: number | undefined;
426
+ maxTotalDurationMs?: number | undefined;
427
+ maxBytes?: number | undefined;
428
+ }[];
429
+ outputAudioChannels?: 2 | 1 | undefined;
430
+ } | undefined;
431
+ } | {
432
+ family: "DECLARED";
433
+ profile: {
434
+ id: string;
435
+ version: number;
436
+ providerId: "QWEN_CN" | "VOLCENGINE_CN" | "GEMINI" | "OPENAI" | "XAI";
437
+ modelId: string;
438
+ protocol: "DOCUMENTED_ONLY";
439
+ };
440
+ matrix: {
441
+ schemaVersion: 1;
442
+ service: string;
443
+ lifecycle: "ACTIVE" | "DEPRECATED" | "RETIRED";
444
+ sources: {
445
+ url: string;
446
+ checkedAt: string;
447
+ }[];
448
+ modes: string[];
449
+ claims: {
450
+ capability: "SYNCHRONIZED_AUDIO" | "SPEECH_GENERATION" | "SPEECH_RECOGNITION" | "TRANSCRIPT_TIMESTAMPS" | "VOICE_REFERENCE" | "AUDIO_REFERENCE" | "AUDIO_DRIVEN_VIDEO" | "LIP_SYNCHRONIZATION" | "AUDIO_EDITING" | "SEPARATE_STEMS";
451
+ modes: string[];
452
+ support: "UNKNOWN" | "SUPPORTED" | "UNSUPPORTED";
453
+ control: "NONE" | "PARAMETER" | "PROMPT" | "ALWAYS_ON" | "MEDIA_INPUT";
454
+ access: "PUBLIC" | "QUALIFIED_ACCOUNT";
455
+ parameterPath?: string | undefined;
456
+ description?: string | undefined;
457
+ }[];
458
+ parameters: Record<string, {
459
+ label: string;
460
+ type: "STRING" | "NUMBER" | "BOOLEAN" | "INTEGER" | "STRING_ARRAY" | "STRING_MAP";
461
+ required: boolean;
462
+ min?: number | undefined;
463
+ max?: number | undefined;
464
+ maxLength?: number | undefined;
465
+ options?: string[] | undefined;
466
+ default?: string | number | boolean | string[] | Record<string, string> | undefined;
467
+ unit?: string | undefined;
468
+ description?: string | undefined;
469
+ maxItems?: number | undefined;
470
+ maxKeyLength?: number | undefined;
471
+ numberOptions?: number[] | undefined;
472
+ }>;
473
+ constraints: {
474
+ modes: string[];
475
+ require: string[];
476
+ forbid: string[];
477
+ requireValues: Record<string, string | number | boolean>;
478
+ reason: string;
479
+ when?: {
480
+ parameter: string;
481
+ equals: string | number | boolean;
482
+ } | undefined;
483
+ }[];
484
+ references: {
485
+ kind: "AUDIO_REFERENCE" | "VOICE_ID" | "DRIVING_AUDIO";
486
+ modes: string[];
487
+ parameterPath: string;
488
+ maxItems: number;
489
+ formats: ("WAV" | "MP3")[];
490
+ requiresVisual: boolean;
491
+ access: "PUBLIC" | "QUALIFIED_ACCOUNT";
492
+ minDurationMs?: number | undefined;
493
+ maxDurationMs?: number | undefined;
494
+ maxTotalDurationMs?: number | undefined;
495
+ maxBytes?: number | undefined;
496
+ }[];
497
+ outputAudioChannels?: 2 | 1 | undefined;
498
+ };
499
+ };
500
+ }, {
501
+ tenantId: string;
502
+ id: string;
503
+ version: number;
504
+ enabled: boolean;
505
+ definition: {
506
+ family: "IMAGE";
507
+ profile: {
508
+ id: string;
509
+ version: number;
510
+ providerId: "QWEN_CN" | "VOLCENGINE_CN" | "GEMINI" | "OPENAI" | "XAI";
511
+ modelId: string;
512
+ protocol: "QWEN_EDIT" | "ARK_IMAGE" | "GEMINI_IMAGE" | "OPENAI_IMAGE" | "XAI_IMAGE";
513
+ maxReferences: number;
514
+ promptMaxUtf8Bytes: number;
515
+ requestTimeoutMs: number;
516
+ workingWidth: number;
517
+ workingHeight: number;
518
+ referenceRoles?: ("PRODUCT_IDENTITY" | "PRODUCT_PACKSHOT" | "CHARACTER_IDENTITY" | "WARDROBE" | "LOCATION" | "STYLE")[] | undefined;
519
+ };
520
+ costPolicy?: {
521
+ currency: "USD";
522
+ sourceUrl: string;
523
+ rationale: string;
524
+ validUntil: string;
525
+ rules: {
526
+ id: string;
527
+ variant: {
528
+ mode: "REFERENCE_TO_IMAGE" | "REFERENCE_TO_VIDEO" | "FIRST_FRAME_TO_VIDEO" | "FIRST_LAST_FRAME_TO_VIDEO";
529
+ aspectRatio: "16:9" | "9:16";
530
+ workingWidth: number;
531
+ workingHeight: number;
532
+ hasAudio: boolean;
533
+ references: number;
534
+ durationSeconds: number;
535
+ };
536
+ upperBoundMicros: number;
537
+ }[];
538
+ } | undefined;
539
+ matrix?: {
540
+ schemaVersion: 1;
541
+ service: string;
542
+ lifecycle: "ACTIVE" | "DEPRECATED" | "RETIRED";
543
+ sources: {
544
+ url: string;
545
+ checkedAt: string;
546
+ }[];
547
+ modes: string[];
548
+ claims: {
549
+ capability: "SYNCHRONIZED_AUDIO" | "SPEECH_GENERATION" | "SPEECH_RECOGNITION" | "TRANSCRIPT_TIMESTAMPS" | "VOICE_REFERENCE" | "AUDIO_REFERENCE" | "AUDIO_DRIVEN_VIDEO" | "LIP_SYNCHRONIZATION" | "AUDIO_EDITING" | "SEPARATE_STEMS";
550
+ modes: string[];
551
+ support: "UNKNOWN" | "SUPPORTED" | "UNSUPPORTED";
552
+ control: "NONE" | "PARAMETER" | "PROMPT" | "ALWAYS_ON" | "MEDIA_INPUT";
553
+ parameterPath?: string | undefined;
554
+ access?: "PUBLIC" | "QUALIFIED_ACCOUNT" | undefined;
555
+ description?: string | undefined;
556
+ }[];
557
+ parameters: Record<string, {
558
+ label: string;
559
+ type: "STRING" | "NUMBER" | "BOOLEAN" | "INTEGER" | "STRING_ARRAY" | "STRING_MAP";
560
+ required?: boolean | undefined;
561
+ min?: number | undefined;
562
+ max?: number | undefined;
563
+ maxLength?: number | undefined;
564
+ options?: string[] | undefined;
565
+ default?: string | number | boolean | string[] | Record<string, string> | undefined;
566
+ unit?: string | undefined;
567
+ description?: string | undefined;
568
+ maxItems?: number | undefined;
569
+ maxKeyLength?: number | undefined;
570
+ numberOptions?: number[] | undefined;
571
+ }>;
572
+ constraints: {
573
+ modes: string[];
574
+ reason: string;
575
+ when?: {
576
+ parameter: string;
577
+ equals: string | number | boolean;
578
+ } | undefined;
579
+ require?: string[] | undefined;
580
+ forbid?: string[] | undefined;
581
+ requireValues?: Record<string, string | number | boolean> | undefined;
582
+ }[];
583
+ references: {
584
+ kind: "AUDIO_REFERENCE" | "VOICE_ID" | "DRIVING_AUDIO";
585
+ modes: string[];
586
+ parameterPath: string;
587
+ maxItems: number;
588
+ formats: ("WAV" | "MP3")[];
589
+ requiresVisual: boolean;
590
+ access: "PUBLIC" | "QUALIFIED_ACCOUNT";
591
+ minDurationMs?: number | undefined;
592
+ maxDurationMs?: number | undefined;
593
+ maxTotalDurationMs?: number | undefined;
594
+ maxBytes?: number | undefined;
595
+ }[];
596
+ outputAudioChannels?: 2 | 1 | undefined;
597
+ } | undefined;
598
+ } | {
599
+ family: "VIDEO";
600
+ profile: {
601
+ id: string;
602
+ version: number;
603
+ providerId: "QWEN_CN" | "VOLCENGINE_CN" | "GEMINI" | "OPENAI" | "XAI";
604
+ modelId: string;
605
+ protocol: "QWEN_VIDEO" | "VOLCENGINE_VIDEO";
606
+ requestTimeoutMs: number;
607
+ promptMaxCharacters: number;
608
+ resolution: "720P" | "1080P";
609
+ adapterVersion: string;
610
+ capabilities: {
611
+ frameRate: 30 | 24;
612
+ hasAudio: boolean;
613
+ workingWidth: number;
614
+ workingHeight: number;
615
+ mediaType: "VIDEO";
616
+ modes: ("REFERENCE_TO_VIDEO" | "FIRST_FRAME_TO_VIDEO" | "FIRST_LAST_FRAME_TO_VIDEO")[];
617
+ referenceRoles: ("PRODUCT_IDENTITY" | "PRODUCT_PACKSHOT" | "CHARACTER_IDENTITY" | "WARDROBE" | "LOCATION" | "STYLE" | "START_FRAME_ANCHOR" | "END_FRAME_ANCHOR")[];
618
+ aspectRatios: ("16:9" | "9:16")[];
619
+ minDurationSeconds: number;
620
+ maxDurationSeconds: number;
621
+ maxReferences: number;
622
+ combineAnchorsAndReferences: boolean;
623
+ correlationStrategy: "PROVIDER_TASK_ID";
624
+ sourceFormat?: {
625
+ videoCodec: "hevc";
626
+ pixelFormat: "yuv420p10le";
627
+ } | undefined;
628
+ nativeAudioChannels?: 2 | 1 | undefined;
629
+ };
630
+ };
631
+ costPolicy?: {
632
+ currency: "USD";
633
+ sourceUrl: string;
634
+ rationale: string;
635
+ validUntil: string;
636
+ rules: {
637
+ id: string;
638
+ variant: {
639
+ mode: "REFERENCE_TO_IMAGE" | "REFERENCE_TO_VIDEO" | "FIRST_FRAME_TO_VIDEO" | "FIRST_LAST_FRAME_TO_VIDEO";
640
+ aspectRatio: "16:9" | "9:16";
641
+ workingWidth: number;
642
+ workingHeight: number;
643
+ hasAudio: boolean;
644
+ references: number;
645
+ durationSeconds: number;
646
+ };
647
+ upperBoundMicros: number;
648
+ }[];
649
+ } | undefined;
650
+ matrix?: {
651
+ schemaVersion: 1;
652
+ service: string;
653
+ lifecycle: "ACTIVE" | "DEPRECATED" | "RETIRED";
654
+ sources: {
655
+ url: string;
656
+ checkedAt: string;
657
+ }[];
658
+ modes: string[];
659
+ claims: {
660
+ capability: "SYNCHRONIZED_AUDIO" | "SPEECH_GENERATION" | "SPEECH_RECOGNITION" | "TRANSCRIPT_TIMESTAMPS" | "VOICE_REFERENCE" | "AUDIO_REFERENCE" | "AUDIO_DRIVEN_VIDEO" | "LIP_SYNCHRONIZATION" | "AUDIO_EDITING" | "SEPARATE_STEMS";
661
+ modes: string[];
662
+ support: "UNKNOWN" | "SUPPORTED" | "UNSUPPORTED";
663
+ control: "NONE" | "PARAMETER" | "PROMPT" | "ALWAYS_ON" | "MEDIA_INPUT";
664
+ parameterPath?: string | undefined;
665
+ access?: "PUBLIC" | "QUALIFIED_ACCOUNT" | undefined;
666
+ description?: string | undefined;
667
+ }[];
668
+ parameters: Record<string, {
669
+ label: string;
670
+ type: "STRING" | "NUMBER" | "BOOLEAN" | "INTEGER" | "STRING_ARRAY" | "STRING_MAP";
671
+ required?: boolean | undefined;
672
+ min?: number | undefined;
673
+ max?: number | undefined;
674
+ maxLength?: number | undefined;
675
+ options?: string[] | undefined;
676
+ default?: string | number | boolean | string[] | Record<string, string> | undefined;
677
+ unit?: string | undefined;
678
+ description?: string | undefined;
679
+ maxItems?: number | undefined;
680
+ maxKeyLength?: number | undefined;
681
+ numberOptions?: number[] | undefined;
682
+ }>;
683
+ constraints: {
684
+ modes: string[];
685
+ reason: string;
686
+ when?: {
687
+ parameter: string;
688
+ equals: string | number | boolean;
689
+ } | undefined;
690
+ require?: string[] | undefined;
691
+ forbid?: string[] | undefined;
692
+ requireValues?: Record<string, string | number | boolean> | undefined;
693
+ }[];
694
+ references: {
695
+ kind: "AUDIO_REFERENCE" | "VOICE_ID" | "DRIVING_AUDIO";
696
+ modes: string[];
697
+ parameterPath: string;
698
+ maxItems: number;
699
+ formats: ("WAV" | "MP3")[];
700
+ requiresVisual: boolean;
701
+ access: "PUBLIC" | "QUALIFIED_ACCOUNT";
702
+ minDurationMs?: number | undefined;
703
+ maxDurationMs?: number | undefined;
704
+ maxTotalDurationMs?: number | undefined;
705
+ maxBytes?: number | undefined;
706
+ }[];
707
+ outputAudioChannels?: 2 | 1 | undefined;
708
+ } | undefined;
709
+ } | {
710
+ family: "SPEECH";
711
+ profile: {
712
+ id: string;
713
+ version: number;
714
+ providerId: "QWEN_CN" | "VOLCENGINE_CN" | "GEMINI" | "OPENAI" | "XAI";
715
+ modelId: string | null;
716
+ protocol: "QWEN_TTS" | "QWEN_AUDIO_TTS" | "OPENAI_TTS" | "XAI_TTS" | "GEMINI_INTERACTIONS_TTS" | "VOLCENGINE_TTS";
717
+ label: string;
718
+ textMaxCharacters: number;
719
+ requestTimeoutMs: number;
720
+ workspaceRequired: boolean;
721
+ voices: {
722
+ id: string;
723
+ label: string;
724
+ languages?: string[] | undefined;
725
+ parameterDefaults?: Record<string, string | number | boolean | string[] | Record<string, string>> | undefined;
726
+ parameterOptions?: Record<string, string[]> | undefined;
727
+ unsupportedParameters?: string[] | undefined;
728
+ }[];
729
+ languages: string[];
730
+ parameters: Record<string, {
731
+ label: string;
732
+ type: "STRING" | "NUMBER" | "BOOLEAN" | "INTEGER" | "STRING_ARRAY" | "STRING_MAP";
733
+ required?: boolean | undefined;
734
+ min?: number | undefined;
735
+ max?: number | undefined;
736
+ maxLength?: number | undefined;
737
+ options?: string[] | undefined;
738
+ default?: string | number | boolean | string[] | Record<string, string> | undefined;
739
+ unit?: string | undefined;
740
+ description?: string | undefined;
741
+ maxItems?: number | undefined;
742
+ maxKeyLength?: number | undefined;
743
+ }>;
744
+ sourceUrl: string;
745
+ verifiedAt: string;
746
+ providerTextMaxCharacters: number | null;
747
+ resourceId: string | null;
748
+ output: "PCM_S16LE_48000_V1";
749
+ normalizationVersion: "SPEECH_PCM_V1";
750
+ };
751
+ matrix?: {
752
+ schemaVersion: 1;
753
+ service: string;
754
+ lifecycle: "ACTIVE" | "DEPRECATED" | "RETIRED";
755
+ sources: {
756
+ url: string;
757
+ checkedAt: string;
758
+ }[];
759
+ modes: string[];
760
+ claims: {
761
+ capability: "SYNCHRONIZED_AUDIO" | "SPEECH_GENERATION" | "SPEECH_RECOGNITION" | "TRANSCRIPT_TIMESTAMPS" | "VOICE_REFERENCE" | "AUDIO_REFERENCE" | "AUDIO_DRIVEN_VIDEO" | "LIP_SYNCHRONIZATION" | "AUDIO_EDITING" | "SEPARATE_STEMS";
762
+ modes: string[];
763
+ support: "UNKNOWN" | "SUPPORTED" | "UNSUPPORTED";
764
+ control: "NONE" | "PARAMETER" | "PROMPT" | "ALWAYS_ON" | "MEDIA_INPUT";
765
+ parameterPath?: string | undefined;
766
+ access?: "PUBLIC" | "QUALIFIED_ACCOUNT" | undefined;
767
+ description?: string | undefined;
768
+ }[];
769
+ parameters: Record<string, {
770
+ label: string;
771
+ type: "STRING" | "NUMBER" | "BOOLEAN" | "INTEGER" | "STRING_ARRAY" | "STRING_MAP";
772
+ required?: boolean | undefined;
773
+ min?: number | undefined;
774
+ max?: number | undefined;
775
+ maxLength?: number | undefined;
776
+ options?: string[] | undefined;
777
+ default?: string | number | boolean | string[] | Record<string, string> | undefined;
778
+ unit?: string | undefined;
779
+ description?: string | undefined;
780
+ maxItems?: number | undefined;
781
+ maxKeyLength?: number | undefined;
782
+ numberOptions?: number[] | undefined;
783
+ }>;
784
+ constraints: {
785
+ modes: string[];
786
+ reason: string;
787
+ when?: {
788
+ parameter: string;
789
+ equals: string | number | boolean;
790
+ } | undefined;
791
+ require?: string[] | undefined;
792
+ forbid?: string[] | undefined;
793
+ requireValues?: Record<string, string | number | boolean> | undefined;
794
+ }[];
795
+ references: {
796
+ kind: "AUDIO_REFERENCE" | "VOICE_ID" | "DRIVING_AUDIO";
797
+ modes: string[];
798
+ parameterPath: string;
799
+ maxItems: number;
800
+ formats: ("WAV" | "MP3")[];
801
+ requiresVisual: boolean;
802
+ access: "PUBLIC" | "QUALIFIED_ACCOUNT";
803
+ minDurationMs?: number | undefined;
804
+ maxDurationMs?: number | undefined;
805
+ maxTotalDurationMs?: number | undefined;
806
+ maxBytes?: number | undefined;
807
+ }[];
808
+ outputAudioChannels?: 2 | 1 | undefined;
809
+ } | undefined;
810
+ } | {
811
+ family: "OBSERVATION";
812
+ profile: {
813
+ id: string;
814
+ version: number;
815
+ providerId: "QWEN_CN" | "VOLCENGINE_CN" | "GEMINI" | "OPENAI" | "XAI";
816
+ sourceUrl: string;
817
+ verifiedAt: string;
818
+ modelId: string;
819
+ label: string;
820
+ protocol: "OPENAI_TRANSCRIPTION_V1" | "OPENAI_WHISPER_TRANSCRIPTION_V1" | "QWEN_ASR_V1";
821
+ modes: ["TRANSCRIPTION"];
822
+ inputKinds: ("AUDIO" | "VIDEO")[];
823
+ requestTimeoutMs: number;
824
+ maxBytes: number;
825
+ maxDurationMs: number;
826
+ parameters: Record<string, {
827
+ label: string;
828
+ type: "STRING" | "NUMBER" | "BOOLEAN" | "INTEGER" | "STRING_ARRAY" | "STRING_MAP";
829
+ required?: boolean | undefined;
830
+ min?: number | undefined;
831
+ max?: number | undefined;
832
+ maxLength?: number | undefined;
833
+ options?: string[] | undefined;
834
+ default?: string | number | boolean | string[] | Record<string, string> | undefined;
835
+ unit?: string | undefined;
836
+ description?: string | undefined;
837
+ maxItems?: number | undefined;
838
+ maxKeyLength?: number | undefined;
839
+ numberOptions?: number[] | undefined;
840
+ }>;
841
+ } | {
842
+ id: string;
843
+ version: number;
844
+ providerId: "QWEN_CN" | "VOLCENGINE_CN" | "GEMINI" | "OPENAI" | "XAI";
845
+ sourceUrl: string;
846
+ modelId: string;
847
+ label: string;
848
+ protocol: "GEMINI_INTERACTIONS_V1" | "QIANWEN_VIDEO_V1";
849
+ modes: ("AUDIO" | "VIDEO" | "AUDIOVISUAL" | "VIDEO_ALL_FRAMES")[];
850
+ requestTimeoutMs: number;
851
+ maxBytes: number;
852
+ maxDurationMs: number;
853
+ parameters: Record<string, {
854
+ type: "STRING" | "NUMBER" | "BOOLEAN" | "INTEGER";
855
+ default: string | number | boolean;
856
+ min?: number | undefined;
857
+ max?: number | undefined;
858
+ options?: string[] | undefined;
859
+ }>;
860
+ };
861
+ matrix?: {
862
+ schemaVersion: 1;
863
+ service: string;
864
+ lifecycle: "ACTIVE" | "DEPRECATED" | "RETIRED";
865
+ sources: {
866
+ url: string;
867
+ checkedAt: string;
868
+ }[];
869
+ modes: string[];
870
+ claims: {
871
+ capability: "SYNCHRONIZED_AUDIO" | "SPEECH_GENERATION" | "SPEECH_RECOGNITION" | "TRANSCRIPT_TIMESTAMPS" | "VOICE_REFERENCE" | "AUDIO_REFERENCE" | "AUDIO_DRIVEN_VIDEO" | "LIP_SYNCHRONIZATION" | "AUDIO_EDITING" | "SEPARATE_STEMS";
872
+ modes: string[];
873
+ support: "UNKNOWN" | "SUPPORTED" | "UNSUPPORTED";
874
+ control: "NONE" | "PARAMETER" | "PROMPT" | "ALWAYS_ON" | "MEDIA_INPUT";
875
+ parameterPath?: string | undefined;
876
+ access?: "PUBLIC" | "QUALIFIED_ACCOUNT" | undefined;
877
+ description?: string | undefined;
878
+ }[];
879
+ parameters: Record<string, {
880
+ label: string;
881
+ type: "STRING" | "NUMBER" | "BOOLEAN" | "INTEGER" | "STRING_ARRAY" | "STRING_MAP";
882
+ required?: boolean | undefined;
883
+ min?: number | undefined;
884
+ max?: number | undefined;
885
+ maxLength?: number | undefined;
886
+ options?: string[] | undefined;
887
+ default?: string | number | boolean | string[] | Record<string, string> | undefined;
888
+ unit?: string | undefined;
889
+ description?: string | undefined;
890
+ maxItems?: number | undefined;
891
+ maxKeyLength?: number | undefined;
892
+ numberOptions?: number[] | undefined;
893
+ }>;
894
+ constraints: {
895
+ modes: string[];
896
+ reason: string;
897
+ when?: {
898
+ parameter: string;
899
+ equals: string | number | boolean;
900
+ } | undefined;
901
+ require?: string[] | undefined;
902
+ forbid?: string[] | undefined;
903
+ requireValues?: Record<string, string | number | boolean> | undefined;
904
+ }[];
905
+ references: {
906
+ kind: "AUDIO_REFERENCE" | "VOICE_ID" | "DRIVING_AUDIO";
907
+ modes: string[];
908
+ parameterPath: string;
909
+ maxItems: number;
910
+ formats: ("WAV" | "MP3")[];
911
+ requiresVisual: boolean;
912
+ access: "PUBLIC" | "QUALIFIED_ACCOUNT";
913
+ minDurationMs?: number | undefined;
914
+ maxDurationMs?: number | undefined;
915
+ maxTotalDurationMs?: number | undefined;
916
+ maxBytes?: number | undefined;
917
+ }[];
918
+ outputAudioChannels?: 2 | 1 | undefined;
919
+ } | undefined;
920
+ } | {
921
+ family: "DECLARED";
922
+ profile: {
923
+ id: string;
924
+ version: number;
925
+ providerId: "QWEN_CN" | "VOLCENGINE_CN" | "GEMINI" | "OPENAI" | "XAI";
926
+ modelId: string;
927
+ protocol: "DOCUMENTED_ONLY";
928
+ };
929
+ matrix: {
930
+ schemaVersion: 1;
931
+ service: string;
932
+ lifecycle: "ACTIVE" | "DEPRECATED" | "RETIRED";
933
+ sources: {
934
+ url: string;
935
+ checkedAt: string;
936
+ }[];
937
+ modes: string[];
938
+ claims: {
939
+ capability: "SYNCHRONIZED_AUDIO" | "SPEECH_GENERATION" | "SPEECH_RECOGNITION" | "TRANSCRIPT_TIMESTAMPS" | "VOICE_REFERENCE" | "AUDIO_REFERENCE" | "AUDIO_DRIVEN_VIDEO" | "LIP_SYNCHRONIZATION" | "AUDIO_EDITING" | "SEPARATE_STEMS";
940
+ modes: string[];
941
+ support: "UNKNOWN" | "SUPPORTED" | "UNSUPPORTED";
942
+ control: "NONE" | "PARAMETER" | "PROMPT" | "ALWAYS_ON" | "MEDIA_INPUT";
943
+ parameterPath?: string | undefined;
944
+ access?: "PUBLIC" | "QUALIFIED_ACCOUNT" | undefined;
945
+ description?: string | undefined;
946
+ }[];
947
+ parameters: Record<string, {
948
+ label: string;
949
+ type: "STRING" | "NUMBER" | "BOOLEAN" | "INTEGER" | "STRING_ARRAY" | "STRING_MAP";
950
+ required?: boolean | undefined;
951
+ min?: number | undefined;
952
+ max?: number | undefined;
953
+ maxLength?: number | undefined;
954
+ options?: string[] | undefined;
955
+ default?: string | number | boolean | string[] | Record<string, string> | undefined;
956
+ unit?: string | undefined;
957
+ description?: string | undefined;
958
+ maxItems?: number | undefined;
959
+ maxKeyLength?: number | undefined;
960
+ numberOptions?: number[] | undefined;
961
+ }>;
962
+ constraints: {
963
+ modes: string[];
964
+ reason: string;
965
+ when?: {
966
+ parameter: string;
967
+ equals: string | number | boolean;
968
+ } | undefined;
969
+ require?: string[] | undefined;
970
+ forbid?: string[] | undefined;
971
+ requireValues?: Record<string, string | number | boolean> | undefined;
972
+ }[];
973
+ references: {
974
+ kind: "AUDIO_REFERENCE" | "VOICE_ID" | "DRIVING_AUDIO";
975
+ modes: string[];
976
+ parameterPath: string;
977
+ maxItems: number;
978
+ formats: ("WAV" | "MP3")[];
979
+ requiresVisual: boolean;
980
+ access: "PUBLIC" | "QUALIFIED_ACCOUNT";
981
+ minDurationMs?: number | undefined;
982
+ maxDurationMs?: number | undefined;
983
+ maxTotalDurationMs?: number | undefined;
984
+ maxBytes?: number | undefined;
985
+ }[];
986
+ outputAudioChannels?: 2 | 1 | undefined;
987
+ };
988
+ };
989
+ }>;
990
+ readonly "provider.model.query": import("./spec.js").HttpOperationSpec<{
991
+ tenantId: string;
992
+ }, {
993
+ tenantId: string & z.core.$brand<"TenantId">;
994
+ }, {
995
+ items: {
996
+ tenantId: string & z.core.$brand<"TenantId">;
997
+ id: string;
998
+ version: number;
999
+ enabled: boolean;
1000
+ definition: {
1001
+ family: "IMAGE";
1002
+ profile: {
1003
+ id: string;
1004
+ version: number;
1005
+ providerId: "QWEN_CN" | "VOLCENGINE_CN" | "GEMINI" | "OPENAI" | "XAI";
1006
+ modelId: string;
1007
+ protocol: "QWEN_EDIT" | "ARK_IMAGE" | "GEMINI_IMAGE" | "OPENAI_IMAGE" | "XAI_IMAGE";
1008
+ maxReferences: number;
1009
+ promptMaxUtf8Bytes: number;
1010
+ requestTimeoutMs: number;
1011
+ workingWidth: number;
1012
+ workingHeight: number;
1013
+ referenceRoles?: ("PRODUCT_IDENTITY" | "PRODUCT_PACKSHOT" | "CHARACTER_IDENTITY" | "WARDROBE" | "LOCATION" | "STYLE")[] | undefined;
1014
+ };
1015
+ costPolicy?: {
1016
+ currency: "USD";
1017
+ sourceUrl: string;
1018
+ rationale: string;
1019
+ validUntil: string;
1020
+ rules: {
1021
+ id: string;
1022
+ variant: {
1023
+ mode: "REFERENCE_TO_IMAGE" | "REFERENCE_TO_VIDEO" | "FIRST_FRAME_TO_VIDEO" | "FIRST_LAST_FRAME_TO_VIDEO";
1024
+ aspectRatio: "16:9" | "9:16";
1025
+ workingWidth: number;
1026
+ workingHeight: number;
1027
+ hasAudio: boolean;
1028
+ references: number;
1029
+ durationSeconds: number;
1030
+ };
1031
+ upperBoundMicros: number;
1032
+ }[];
1033
+ } | undefined;
1034
+ matrix?: {
1035
+ schemaVersion: 1;
1036
+ service: string;
1037
+ lifecycle: "ACTIVE" | "DEPRECATED" | "RETIRED";
1038
+ sources: {
1039
+ url: string;
1040
+ checkedAt: string;
1041
+ }[];
1042
+ modes: string[];
1043
+ claims: {
1044
+ capability: "SYNCHRONIZED_AUDIO" | "SPEECH_GENERATION" | "SPEECH_RECOGNITION" | "TRANSCRIPT_TIMESTAMPS" | "VOICE_REFERENCE" | "AUDIO_REFERENCE" | "AUDIO_DRIVEN_VIDEO" | "LIP_SYNCHRONIZATION" | "AUDIO_EDITING" | "SEPARATE_STEMS";
1045
+ modes: string[];
1046
+ support: "UNKNOWN" | "SUPPORTED" | "UNSUPPORTED";
1047
+ control: "NONE" | "PARAMETER" | "PROMPT" | "ALWAYS_ON" | "MEDIA_INPUT";
1048
+ access: "PUBLIC" | "QUALIFIED_ACCOUNT";
1049
+ parameterPath?: string | undefined;
1050
+ description?: string | undefined;
1051
+ }[];
1052
+ parameters: Record<string, {
1053
+ label: string;
1054
+ type: "STRING" | "NUMBER" | "BOOLEAN" | "INTEGER" | "STRING_ARRAY" | "STRING_MAP";
1055
+ required: boolean;
1056
+ min?: number | undefined;
1057
+ max?: number | undefined;
1058
+ maxLength?: number | undefined;
1059
+ options?: string[] | undefined;
1060
+ default?: string | number | boolean | string[] | Record<string, string> | undefined;
1061
+ unit?: string | undefined;
1062
+ description?: string | undefined;
1063
+ maxItems?: number | undefined;
1064
+ maxKeyLength?: number | undefined;
1065
+ numberOptions?: number[] | undefined;
1066
+ }>;
1067
+ constraints: {
1068
+ modes: string[];
1069
+ require: string[];
1070
+ forbid: string[];
1071
+ requireValues: Record<string, string | number | boolean>;
1072
+ reason: string;
1073
+ when?: {
1074
+ parameter: string;
1075
+ equals: string | number | boolean;
1076
+ } | undefined;
1077
+ }[];
1078
+ references: {
1079
+ kind: "AUDIO_REFERENCE" | "VOICE_ID" | "DRIVING_AUDIO";
1080
+ modes: string[];
1081
+ parameterPath: string;
1082
+ maxItems: number;
1083
+ formats: ("WAV" | "MP3")[];
1084
+ requiresVisual: boolean;
1085
+ access: "PUBLIC" | "QUALIFIED_ACCOUNT";
1086
+ minDurationMs?: number | undefined;
1087
+ maxDurationMs?: number | undefined;
1088
+ maxTotalDurationMs?: number | undefined;
1089
+ maxBytes?: number | undefined;
1090
+ }[];
1091
+ outputAudioChannels?: 2 | 1 | undefined;
1092
+ } | undefined;
1093
+ } | {
1094
+ family: "VIDEO";
1095
+ profile: {
1096
+ id: string;
1097
+ version: number;
1098
+ providerId: "QWEN_CN" | "VOLCENGINE_CN" | "GEMINI" | "OPENAI" | "XAI";
1099
+ modelId: string;
1100
+ protocol: "QWEN_VIDEO" | "VOLCENGINE_VIDEO";
1101
+ requestTimeoutMs: number;
1102
+ promptMaxCharacters: number;
1103
+ resolution: "720P" | "1080P";
1104
+ adapterVersion: string;
1105
+ capabilities: {
1106
+ frameRate: 30 | 24;
1107
+ hasAudio: boolean;
1108
+ workingWidth: number;
1109
+ workingHeight: number;
1110
+ mediaType: "VIDEO";
1111
+ modes: ("REFERENCE_TO_VIDEO" | "FIRST_FRAME_TO_VIDEO" | "FIRST_LAST_FRAME_TO_VIDEO")[];
1112
+ referenceRoles: ("PRODUCT_IDENTITY" | "PRODUCT_PACKSHOT" | "CHARACTER_IDENTITY" | "WARDROBE" | "LOCATION" | "STYLE" | "START_FRAME_ANCHOR" | "END_FRAME_ANCHOR")[];
1113
+ aspectRatios: ("16:9" | "9:16")[];
1114
+ minDurationSeconds: number;
1115
+ maxDurationSeconds: number;
1116
+ maxReferences: number;
1117
+ combineAnchorsAndReferences: boolean;
1118
+ correlationStrategy: "PROVIDER_TASK_ID";
1119
+ sourceFormat?: {
1120
+ videoCodec: "hevc";
1121
+ pixelFormat: "yuv420p10le";
1122
+ } | undefined;
1123
+ nativeAudioChannels?: 2 | 1 | undefined;
1124
+ };
1125
+ };
1126
+ costPolicy?: {
1127
+ currency: "USD";
1128
+ sourceUrl: string;
1129
+ rationale: string;
1130
+ validUntil: string;
1131
+ rules: {
1132
+ id: string;
1133
+ variant: {
1134
+ mode: "REFERENCE_TO_IMAGE" | "REFERENCE_TO_VIDEO" | "FIRST_FRAME_TO_VIDEO" | "FIRST_LAST_FRAME_TO_VIDEO";
1135
+ aspectRatio: "16:9" | "9:16";
1136
+ workingWidth: number;
1137
+ workingHeight: number;
1138
+ hasAudio: boolean;
1139
+ references: number;
1140
+ durationSeconds: number;
1141
+ };
1142
+ upperBoundMicros: number;
1143
+ }[];
1144
+ } | undefined;
1145
+ matrix?: {
1146
+ schemaVersion: 1;
1147
+ service: string;
1148
+ lifecycle: "ACTIVE" | "DEPRECATED" | "RETIRED";
1149
+ sources: {
1150
+ url: string;
1151
+ checkedAt: string;
1152
+ }[];
1153
+ modes: string[];
1154
+ claims: {
1155
+ capability: "SYNCHRONIZED_AUDIO" | "SPEECH_GENERATION" | "SPEECH_RECOGNITION" | "TRANSCRIPT_TIMESTAMPS" | "VOICE_REFERENCE" | "AUDIO_REFERENCE" | "AUDIO_DRIVEN_VIDEO" | "LIP_SYNCHRONIZATION" | "AUDIO_EDITING" | "SEPARATE_STEMS";
1156
+ modes: string[];
1157
+ support: "UNKNOWN" | "SUPPORTED" | "UNSUPPORTED";
1158
+ control: "NONE" | "PARAMETER" | "PROMPT" | "ALWAYS_ON" | "MEDIA_INPUT";
1159
+ access: "PUBLIC" | "QUALIFIED_ACCOUNT";
1160
+ parameterPath?: string | undefined;
1161
+ description?: string | undefined;
1162
+ }[];
1163
+ parameters: Record<string, {
1164
+ label: string;
1165
+ type: "STRING" | "NUMBER" | "BOOLEAN" | "INTEGER" | "STRING_ARRAY" | "STRING_MAP";
1166
+ required: boolean;
1167
+ min?: number | undefined;
1168
+ max?: number | undefined;
1169
+ maxLength?: number | undefined;
1170
+ options?: string[] | undefined;
1171
+ default?: string | number | boolean | string[] | Record<string, string> | undefined;
1172
+ unit?: string | undefined;
1173
+ description?: string | undefined;
1174
+ maxItems?: number | undefined;
1175
+ maxKeyLength?: number | undefined;
1176
+ numberOptions?: number[] | undefined;
1177
+ }>;
1178
+ constraints: {
1179
+ modes: string[];
1180
+ require: string[];
1181
+ forbid: string[];
1182
+ requireValues: Record<string, string | number | boolean>;
1183
+ reason: string;
1184
+ when?: {
1185
+ parameter: string;
1186
+ equals: string | number | boolean;
1187
+ } | undefined;
1188
+ }[];
1189
+ references: {
1190
+ kind: "AUDIO_REFERENCE" | "VOICE_ID" | "DRIVING_AUDIO";
1191
+ modes: string[];
1192
+ parameterPath: string;
1193
+ maxItems: number;
1194
+ formats: ("WAV" | "MP3")[];
1195
+ requiresVisual: boolean;
1196
+ access: "PUBLIC" | "QUALIFIED_ACCOUNT";
1197
+ minDurationMs?: number | undefined;
1198
+ maxDurationMs?: number | undefined;
1199
+ maxTotalDurationMs?: number | undefined;
1200
+ maxBytes?: number | undefined;
1201
+ }[];
1202
+ outputAudioChannels?: 2 | 1 | undefined;
1203
+ } | undefined;
1204
+ } | {
1205
+ family: "SPEECH";
1206
+ profile: {
1207
+ id: string;
1208
+ version: number;
1209
+ providerId: "QWEN_CN" | "VOLCENGINE_CN" | "GEMINI" | "OPENAI" | "XAI";
1210
+ modelId: string | null;
1211
+ protocol: "QWEN_TTS" | "QWEN_AUDIO_TTS" | "OPENAI_TTS" | "XAI_TTS" | "GEMINI_INTERACTIONS_TTS" | "VOLCENGINE_TTS";
1212
+ label: string;
1213
+ textMaxCharacters: number;
1214
+ requestTimeoutMs: number;
1215
+ workspaceRequired: boolean;
1216
+ voices: {
1217
+ id: string;
1218
+ label: string;
1219
+ languages?: string[] | undefined;
1220
+ parameterDefaults?: Record<string, string | number | boolean | string[] | Record<string, string>> | undefined;
1221
+ parameterOptions?: Record<string, string[]> | undefined;
1222
+ unsupportedParameters?: string[] | undefined;
1223
+ }[];
1224
+ languages: string[];
1225
+ parameters: Record<string, {
1226
+ label: string;
1227
+ type: "STRING" | "NUMBER" | "BOOLEAN" | "INTEGER" | "STRING_ARRAY" | "STRING_MAP";
1228
+ required: boolean;
1229
+ min?: number | undefined;
1230
+ max?: number | undefined;
1231
+ maxLength?: number | undefined;
1232
+ options?: string[] | undefined;
1233
+ default?: string | number | boolean | string[] | Record<string, string> | undefined;
1234
+ unit?: string | undefined;
1235
+ description?: string | undefined;
1236
+ maxItems?: number | undefined;
1237
+ maxKeyLength?: number | undefined;
1238
+ }>;
1239
+ sourceUrl: string;
1240
+ verifiedAt: string;
1241
+ providerTextMaxCharacters: number | null;
1242
+ resourceId: string | null;
1243
+ output: "PCM_S16LE_48000_V1";
1244
+ normalizationVersion: "SPEECH_PCM_V1";
1245
+ };
1246
+ matrix?: {
1247
+ schemaVersion: 1;
1248
+ service: string;
1249
+ lifecycle: "ACTIVE" | "DEPRECATED" | "RETIRED";
1250
+ sources: {
1251
+ url: string;
1252
+ checkedAt: string;
1253
+ }[];
1254
+ modes: string[];
1255
+ claims: {
1256
+ capability: "SYNCHRONIZED_AUDIO" | "SPEECH_GENERATION" | "SPEECH_RECOGNITION" | "TRANSCRIPT_TIMESTAMPS" | "VOICE_REFERENCE" | "AUDIO_REFERENCE" | "AUDIO_DRIVEN_VIDEO" | "LIP_SYNCHRONIZATION" | "AUDIO_EDITING" | "SEPARATE_STEMS";
1257
+ modes: string[];
1258
+ support: "UNKNOWN" | "SUPPORTED" | "UNSUPPORTED";
1259
+ control: "NONE" | "PARAMETER" | "PROMPT" | "ALWAYS_ON" | "MEDIA_INPUT";
1260
+ access: "PUBLIC" | "QUALIFIED_ACCOUNT";
1261
+ parameterPath?: string | undefined;
1262
+ description?: string | undefined;
1263
+ }[];
1264
+ parameters: Record<string, {
1265
+ label: string;
1266
+ type: "STRING" | "NUMBER" | "BOOLEAN" | "INTEGER" | "STRING_ARRAY" | "STRING_MAP";
1267
+ required: boolean;
1268
+ min?: number | undefined;
1269
+ max?: number | undefined;
1270
+ maxLength?: number | undefined;
1271
+ options?: string[] | undefined;
1272
+ default?: string | number | boolean | string[] | Record<string, string> | undefined;
1273
+ unit?: string | undefined;
1274
+ description?: string | undefined;
1275
+ maxItems?: number | undefined;
1276
+ maxKeyLength?: number | undefined;
1277
+ numberOptions?: number[] | undefined;
1278
+ }>;
1279
+ constraints: {
1280
+ modes: string[];
1281
+ require: string[];
1282
+ forbid: string[];
1283
+ requireValues: Record<string, string | number | boolean>;
1284
+ reason: string;
1285
+ when?: {
1286
+ parameter: string;
1287
+ equals: string | number | boolean;
1288
+ } | undefined;
1289
+ }[];
1290
+ references: {
1291
+ kind: "AUDIO_REFERENCE" | "VOICE_ID" | "DRIVING_AUDIO";
1292
+ modes: string[];
1293
+ parameterPath: string;
1294
+ maxItems: number;
1295
+ formats: ("WAV" | "MP3")[];
1296
+ requiresVisual: boolean;
1297
+ access: "PUBLIC" | "QUALIFIED_ACCOUNT";
1298
+ minDurationMs?: number | undefined;
1299
+ maxDurationMs?: number | undefined;
1300
+ maxTotalDurationMs?: number | undefined;
1301
+ maxBytes?: number | undefined;
1302
+ }[];
1303
+ outputAudioChannels?: 2 | 1 | undefined;
1304
+ } | undefined;
1305
+ } | {
1306
+ family: "OBSERVATION";
1307
+ profile: {
1308
+ id: string;
1309
+ version: number;
1310
+ providerId: "QWEN_CN" | "VOLCENGINE_CN" | "GEMINI" | "OPENAI" | "XAI";
1311
+ sourceUrl: string;
1312
+ verifiedAt: string;
1313
+ modelId: string;
1314
+ label: string;
1315
+ protocol: "OPENAI_TRANSCRIPTION_V1" | "OPENAI_WHISPER_TRANSCRIPTION_V1" | "QWEN_ASR_V1";
1316
+ modes: ["TRANSCRIPTION"];
1317
+ inputKinds: ("AUDIO" | "VIDEO")[];
1318
+ requestTimeoutMs: number;
1319
+ maxBytes: number;
1320
+ maxDurationMs: number;
1321
+ parameters: Record<string, {
1322
+ label: string;
1323
+ type: "STRING" | "NUMBER" | "BOOLEAN" | "INTEGER" | "STRING_ARRAY" | "STRING_MAP";
1324
+ required: boolean;
1325
+ min?: number | undefined;
1326
+ max?: number | undefined;
1327
+ maxLength?: number | undefined;
1328
+ options?: string[] | undefined;
1329
+ default?: string | number | boolean | string[] | Record<string, string> | undefined;
1330
+ unit?: string | undefined;
1331
+ description?: string | undefined;
1332
+ maxItems?: number | undefined;
1333
+ maxKeyLength?: number | undefined;
1334
+ numberOptions?: number[] | undefined;
1335
+ }>;
1336
+ } | {
1337
+ id: string;
1338
+ version: number;
1339
+ providerId: "QWEN_CN" | "VOLCENGINE_CN" | "GEMINI" | "OPENAI" | "XAI";
1340
+ sourceUrl: string;
1341
+ modelId: string;
1342
+ label: string;
1343
+ protocol: "GEMINI_INTERACTIONS_V1" | "QIANWEN_VIDEO_V1";
1344
+ modes: ("AUDIO" | "VIDEO" | "AUDIOVISUAL" | "VIDEO_ALL_FRAMES")[];
1345
+ requestTimeoutMs: number;
1346
+ maxBytes: number;
1347
+ maxDurationMs: number;
1348
+ parameters: Record<string, {
1349
+ type: "STRING" | "NUMBER" | "BOOLEAN" | "INTEGER";
1350
+ default: string | number | boolean;
1351
+ min?: number | undefined;
1352
+ max?: number | undefined;
1353
+ options?: string[] | undefined;
1354
+ }>;
1355
+ };
1356
+ matrix?: {
1357
+ schemaVersion: 1;
1358
+ service: string;
1359
+ lifecycle: "ACTIVE" | "DEPRECATED" | "RETIRED";
1360
+ sources: {
1361
+ url: string;
1362
+ checkedAt: string;
1363
+ }[];
1364
+ modes: string[];
1365
+ claims: {
1366
+ capability: "SYNCHRONIZED_AUDIO" | "SPEECH_GENERATION" | "SPEECH_RECOGNITION" | "TRANSCRIPT_TIMESTAMPS" | "VOICE_REFERENCE" | "AUDIO_REFERENCE" | "AUDIO_DRIVEN_VIDEO" | "LIP_SYNCHRONIZATION" | "AUDIO_EDITING" | "SEPARATE_STEMS";
1367
+ modes: string[];
1368
+ support: "UNKNOWN" | "SUPPORTED" | "UNSUPPORTED";
1369
+ control: "NONE" | "PARAMETER" | "PROMPT" | "ALWAYS_ON" | "MEDIA_INPUT";
1370
+ access: "PUBLIC" | "QUALIFIED_ACCOUNT";
1371
+ parameterPath?: string | undefined;
1372
+ description?: string | undefined;
1373
+ }[];
1374
+ parameters: Record<string, {
1375
+ label: string;
1376
+ type: "STRING" | "NUMBER" | "BOOLEAN" | "INTEGER" | "STRING_ARRAY" | "STRING_MAP";
1377
+ required: boolean;
1378
+ min?: number | undefined;
1379
+ max?: number | undefined;
1380
+ maxLength?: number | undefined;
1381
+ options?: string[] | undefined;
1382
+ default?: string | number | boolean | string[] | Record<string, string> | undefined;
1383
+ unit?: string | undefined;
1384
+ description?: string | undefined;
1385
+ maxItems?: number | undefined;
1386
+ maxKeyLength?: number | undefined;
1387
+ numberOptions?: number[] | undefined;
1388
+ }>;
1389
+ constraints: {
1390
+ modes: string[];
1391
+ require: string[];
1392
+ forbid: string[];
1393
+ requireValues: Record<string, string | number | boolean>;
1394
+ reason: string;
1395
+ when?: {
1396
+ parameter: string;
1397
+ equals: string | number | boolean;
1398
+ } | undefined;
1399
+ }[];
1400
+ references: {
1401
+ kind: "AUDIO_REFERENCE" | "VOICE_ID" | "DRIVING_AUDIO";
1402
+ modes: string[];
1403
+ parameterPath: string;
1404
+ maxItems: number;
1405
+ formats: ("WAV" | "MP3")[];
1406
+ requiresVisual: boolean;
1407
+ access: "PUBLIC" | "QUALIFIED_ACCOUNT";
1408
+ minDurationMs?: number | undefined;
1409
+ maxDurationMs?: number | undefined;
1410
+ maxTotalDurationMs?: number | undefined;
1411
+ maxBytes?: number | undefined;
1412
+ }[];
1413
+ outputAudioChannels?: 2 | 1 | undefined;
1414
+ } | undefined;
1415
+ } | {
1416
+ family: "DECLARED";
1417
+ profile: {
1418
+ id: string;
1419
+ version: number;
1420
+ providerId: "QWEN_CN" | "VOLCENGINE_CN" | "GEMINI" | "OPENAI" | "XAI";
1421
+ modelId: string;
1422
+ protocol: "DOCUMENTED_ONLY";
1423
+ };
1424
+ matrix: {
1425
+ schemaVersion: 1;
1426
+ service: string;
1427
+ lifecycle: "ACTIVE" | "DEPRECATED" | "RETIRED";
1428
+ sources: {
1429
+ url: string;
1430
+ checkedAt: string;
1431
+ }[];
1432
+ modes: string[];
1433
+ claims: {
1434
+ capability: "SYNCHRONIZED_AUDIO" | "SPEECH_GENERATION" | "SPEECH_RECOGNITION" | "TRANSCRIPT_TIMESTAMPS" | "VOICE_REFERENCE" | "AUDIO_REFERENCE" | "AUDIO_DRIVEN_VIDEO" | "LIP_SYNCHRONIZATION" | "AUDIO_EDITING" | "SEPARATE_STEMS";
1435
+ modes: string[];
1436
+ support: "UNKNOWN" | "SUPPORTED" | "UNSUPPORTED";
1437
+ control: "NONE" | "PARAMETER" | "PROMPT" | "ALWAYS_ON" | "MEDIA_INPUT";
1438
+ access: "PUBLIC" | "QUALIFIED_ACCOUNT";
1439
+ parameterPath?: string | undefined;
1440
+ description?: string | undefined;
1441
+ }[];
1442
+ parameters: Record<string, {
1443
+ label: string;
1444
+ type: "STRING" | "NUMBER" | "BOOLEAN" | "INTEGER" | "STRING_ARRAY" | "STRING_MAP";
1445
+ required: boolean;
1446
+ min?: number | undefined;
1447
+ max?: number | undefined;
1448
+ maxLength?: number | undefined;
1449
+ options?: string[] | undefined;
1450
+ default?: string | number | boolean | string[] | Record<string, string> | undefined;
1451
+ unit?: string | undefined;
1452
+ description?: string | undefined;
1453
+ maxItems?: number | undefined;
1454
+ maxKeyLength?: number | undefined;
1455
+ numberOptions?: number[] | undefined;
1456
+ }>;
1457
+ constraints: {
1458
+ modes: string[];
1459
+ require: string[];
1460
+ forbid: string[];
1461
+ requireValues: Record<string, string | number | boolean>;
1462
+ reason: string;
1463
+ when?: {
1464
+ parameter: string;
1465
+ equals: string | number | boolean;
1466
+ } | undefined;
1467
+ }[];
1468
+ references: {
1469
+ kind: "AUDIO_REFERENCE" | "VOICE_ID" | "DRIVING_AUDIO";
1470
+ modes: string[];
1471
+ parameterPath: string;
1472
+ maxItems: number;
1473
+ formats: ("WAV" | "MP3")[];
1474
+ requiresVisual: boolean;
1475
+ access: "PUBLIC" | "QUALIFIED_ACCOUNT";
1476
+ minDurationMs?: number | undefined;
1477
+ maxDurationMs?: number | undefined;
1478
+ maxTotalDurationMs?: number | undefined;
1479
+ maxBytes?: number | undefined;
1480
+ }[];
1481
+ outputAudioChannels?: 2 | 1 | undefined;
1482
+ };
1483
+ };
1484
+ }[];
1485
+ possiblyTruncated: boolean;
1486
+ }, {
1487
+ items: {
1488
+ tenantId: string;
1489
+ id: string;
1490
+ version: number;
1491
+ enabled: boolean;
1492
+ definition: {
1493
+ family: "IMAGE";
1494
+ profile: {
1495
+ id: string;
1496
+ version: number;
1497
+ providerId: "QWEN_CN" | "VOLCENGINE_CN" | "GEMINI" | "OPENAI" | "XAI";
1498
+ modelId: string;
1499
+ protocol: "QWEN_EDIT" | "ARK_IMAGE" | "GEMINI_IMAGE" | "OPENAI_IMAGE" | "XAI_IMAGE";
1500
+ maxReferences: number;
1501
+ promptMaxUtf8Bytes: number;
1502
+ requestTimeoutMs: number;
1503
+ workingWidth: number;
1504
+ workingHeight: number;
1505
+ referenceRoles?: ("PRODUCT_IDENTITY" | "PRODUCT_PACKSHOT" | "CHARACTER_IDENTITY" | "WARDROBE" | "LOCATION" | "STYLE")[] | undefined;
1506
+ };
1507
+ costPolicy?: {
1508
+ currency: "USD";
1509
+ sourceUrl: string;
1510
+ rationale: string;
1511
+ validUntil: string;
1512
+ rules: {
1513
+ id: string;
1514
+ variant: {
1515
+ mode: "REFERENCE_TO_IMAGE" | "REFERENCE_TO_VIDEO" | "FIRST_FRAME_TO_VIDEO" | "FIRST_LAST_FRAME_TO_VIDEO";
1516
+ aspectRatio: "16:9" | "9:16";
1517
+ workingWidth: number;
1518
+ workingHeight: number;
1519
+ hasAudio: boolean;
1520
+ references: number;
1521
+ durationSeconds: number;
1522
+ };
1523
+ upperBoundMicros: number;
1524
+ }[];
1525
+ } | undefined;
1526
+ matrix?: {
1527
+ schemaVersion: 1;
1528
+ service: string;
1529
+ lifecycle: "ACTIVE" | "DEPRECATED" | "RETIRED";
1530
+ sources: {
1531
+ url: string;
1532
+ checkedAt: string;
1533
+ }[];
1534
+ modes: string[];
1535
+ claims: {
1536
+ capability: "SYNCHRONIZED_AUDIO" | "SPEECH_GENERATION" | "SPEECH_RECOGNITION" | "TRANSCRIPT_TIMESTAMPS" | "VOICE_REFERENCE" | "AUDIO_REFERENCE" | "AUDIO_DRIVEN_VIDEO" | "LIP_SYNCHRONIZATION" | "AUDIO_EDITING" | "SEPARATE_STEMS";
1537
+ modes: string[];
1538
+ support: "UNKNOWN" | "SUPPORTED" | "UNSUPPORTED";
1539
+ control: "NONE" | "PARAMETER" | "PROMPT" | "ALWAYS_ON" | "MEDIA_INPUT";
1540
+ parameterPath?: string | undefined;
1541
+ access?: "PUBLIC" | "QUALIFIED_ACCOUNT" | undefined;
1542
+ description?: string | undefined;
1543
+ }[];
1544
+ parameters: Record<string, {
1545
+ label: string;
1546
+ type: "STRING" | "NUMBER" | "BOOLEAN" | "INTEGER" | "STRING_ARRAY" | "STRING_MAP";
1547
+ required?: boolean | undefined;
1548
+ min?: number | undefined;
1549
+ max?: number | undefined;
1550
+ maxLength?: number | undefined;
1551
+ options?: string[] | undefined;
1552
+ default?: string | number | boolean | string[] | Record<string, string> | undefined;
1553
+ unit?: string | undefined;
1554
+ description?: string | undefined;
1555
+ maxItems?: number | undefined;
1556
+ maxKeyLength?: number | undefined;
1557
+ numberOptions?: number[] | undefined;
1558
+ }>;
1559
+ constraints: {
1560
+ modes: string[];
1561
+ reason: string;
1562
+ when?: {
1563
+ parameter: string;
1564
+ equals: string | number | boolean;
1565
+ } | undefined;
1566
+ require?: string[] | undefined;
1567
+ forbid?: string[] | undefined;
1568
+ requireValues?: Record<string, string | number | boolean> | undefined;
1569
+ }[];
1570
+ references: {
1571
+ kind: "AUDIO_REFERENCE" | "VOICE_ID" | "DRIVING_AUDIO";
1572
+ modes: string[];
1573
+ parameterPath: string;
1574
+ maxItems: number;
1575
+ formats: ("WAV" | "MP3")[];
1576
+ requiresVisual: boolean;
1577
+ access: "PUBLIC" | "QUALIFIED_ACCOUNT";
1578
+ minDurationMs?: number | undefined;
1579
+ maxDurationMs?: number | undefined;
1580
+ maxTotalDurationMs?: number | undefined;
1581
+ maxBytes?: number | undefined;
1582
+ }[];
1583
+ outputAudioChannels?: 2 | 1 | undefined;
1584
+ } | undefined;
1585
+ } | {
1586
+ family: "VIDEO";
1587
+ profile: {
1588
+ id: string;
1589
+ version: number;
1590
+ providerId: "QWEN_CN" | "VOLCENGINE_CN" | "GEMINI" | "OPENAI" | "XAI";
1591
+ modelId: string;
1592
+ protocol: "QWEN_VIDEO" | "VOLCENGINE_VIDEO";
1593
+ requestTimeoutMs: number;
1594
+ promptMaxCharacters: number;
1595
+ resolution: "720P" | "1080P";
1596
+ adapterVersion: string;
1597
+ capabilities: {
1598
+ frameRate: 30 | 24;
1599
+ hasAudio: boolean;
1600
+ workingWidth: number;
1601
+ workingHeight: number;
1602
+ mediaType: "VIDEO";
1603
+ modes: ("REFERENCE_TO_VIDEO" | "FIRST_FRAME_TO_VIDEO" | "FIRST_LAST_FRAME_TO_VIDEO")[];
1604
+ referenceRoles: ("PRODUCT_IDENTITY" | "PRODUCT_PACKSHOT" | "CHARACTER_IDENTITY" | "WARDROBE" | "LOCATION" | "STYLE" | "START_FRAME_ANCHOR" | "END_FRAME_ANCHOR")[];
1605
+ aspectRatios: ("16:9" | "9:16")[];
1606
+ minDurationSeconds: number;
1607
+ maxDurationSeconds: number;
1608
+ maxReferences: number;
1609
+ combineAnchorsAndReferences: boolean;
1610
+ correlationStrategy: "PROVIDER_TASK_ID";
1611
+ sourceFormat?: {
1612
+ videoCodec: "hevc";
1613
+ pixelFormat: "yuv420p10le";
1614
+ } | undefined;
1615
+ nativeAudioChannels?: 2 | 1 | undefined;
1616
+ };
1617
+ };
1618
+ costPolicy?: {
1619
+ currency: "USD";
1620
+ sourceUrl: string;
1621
+ rationale: string;
1622
+ validUntil: string;
1623
+ rules: {
1624
+ id: string;
1625
+ variant: {
1626
+ mode: "REFERENCE_TO_IMAGE" | "REFERENCE_TO_VIDEO" | "FIRST_FRAME_TO_VIDEO" | "FIRST_LAST_FRAME_TO_VIDEO";
1627
+ aspectRatio: "16:9" | "9:16";
1628
+ workingWidth: number;
1629
+ workingHeight: number;
1630
+ hasAudio: boolean;
1631
+ references: number;
1632
+ durationSeconds: number;
1633
+ };
1634
+ upperBoundMicros: number;
1635
+ }[];
1636
+ } | undefined;
1637
+ matrix?: {
1638
+ schemaVersion: 1;
1639
+ service: string;
1640
+ lifecycle: "ACTIVE" | "DEPRECATED" | "RETIRED";
1641
+ sources: {
1642
+ url: string;
1643
+ checkedAt: string;
1644
+ }[];
1645
+ modes: string[];
1646
+ claims: {
1647
+ capability: "SYNCHRONIZED_AUDIO" | "SPEECH_GENERATION" | "SPEECH_RECOGNITION" | "TRANSCRIPT_TIMESTAMPS" | "VOICE_REFERENCE" | "AUDIO_REFERENCE" | "AUDIO_DRIVEN_VIDEO" | "LIP_SYNCHRONIZATION" | "AUDIO_EDITING" | "SEPARATE_STEMS";
1648
+ modes: string[];
1649
+ support: "UNKNOWN" | "SUPPORTED" | "UNSUPPORTED";
1650
+ control: "NONE" | "PARAMETER" | "PROMPT" | "ALWAYS_ON" | "MEDIA_INPUT";
1651
+ parameterPath?: string | undefined;
1652
+ access?: "PUBLIC" | "QUALIFIED_ACCOUNT" | undefined;
1653
+ description?: string | undefined;
1654
+ }[];
1655
+ parameters: Record<string, {
1656
+ label: string;
1657
+ type: "STRING" | "NUMBER" | "BOOLEAN" | "INTEGER" | "STRING_ARRAY" | "STRING_MAP";
1658
+ required?: boolean | undefined;
1659
+ min?: number | undefined;
1660
+ max?: number | undefined;
1661
+ maxLength?: number | undefined;
1662
+ options?: string[] | undefined;
1663
+ default?: string | number | boolean | string[] | Record<string, string> | undefined;
1664
+ unit?: string | undefined;
1665
+ description?: string | undefined;
1666
+ maxItems?: number | undefined;
1667
+ maxKeyLength?: number | undefined;
1668
+ numberOptions?: number[] | undefined;
1669
+ }>;
1670
+ constraints: {
1671
+ modes: string[];
1672
+ reason: string;
1673
+ when?: {
1674
+ parameter: string;
1675
+ equals: string | number | boolean;
1676
+ } | undefined;
1677
+ require?: string[] | undefined;
1678
+ forbid?: string[] | undefined;
1679
+ requireValues?: Record<string, string | number | boolean> | undefined;
1680
+ }[];
1681
+ references: {
1682
+ kind: "AUDIO_REFERENCE" | "VOICE_ID" | "DRIVING_AUDIO";
1683
+ modes: string[];
1684
+ parameterPath: string;
1685
+ maxItems: number;
1686
+ formats: ("WAV" | "MP3")[];
1687
+ requiresVisual: boolean;
1688
+ access: "PUBLIC" | "QUALIFIED_ACCOUNT";
1689
+ minDurationMs?: number | undefined;
1690
+ maxDurationMs?: number | undefined;
1691
+ maxTotalDurationMs?: number | undefined;
1692
+ maxBytes?: number | undefined;
1693
+ }[];
1694
+ outputAudioChannels?: 2 | 1 | undefined;
1695
+ } | undefined;
1696
+ } | {
1697
+ family: "SPEECH";
1698
+ profile: {
1699
+ id: string;
1700
+ version: number;
1701
+ providerId: "QWEN_CN" | "VOLCENGINE_CN" | "GEMINI" | "OPENAI" | "XAI";
1702
+ modelId: string | null;
1703
+ protocol: "QWEN_TTS" | "QWEN_AUDIO_TTS" | "OPENAI_TTS" | "XAI_TTS" | "GEMINI_INTERACTIONS_TTS" | "VOLCENGINE_TTS";
1704
+ label: string;
1705
+ textMaxCharacters: number;
1706
+ requestTimeoutMs: number;
1707
+ workspaceRequired: boolean;
1708
+ voices: {
1709
+ id: string;
1710
+ label: string;
1711
+ languages?: string[] | undefined;
1712
+ parameterDefaults?: Record<string, string | number | boolean | string[] | Record<string, string>> | undefined;
1713
+ parameterOptions?: Record<string, string[]> | undefined;
1714
+ unsupportedParameters?: string[] | undefined;
1715
+ }[];
1716
+ languages: string[];
1717
+ parameters: Record<string, {
1718
+ label: string;
1719
+ type: "STRING" | "NUMBER" | "BOOLEAN" | "INTEGER" | "STRING_ARRAY" | "STRING_MAP";
1720
+ required?: boolean | undefined;
1721
+ min?: number | undefined;
1722
+ max?: number | undefined;
1723
+ maxLength?: number | undefined;
1724
+ options?: string[] | undefined;
1725
+ default?: string | number | boolean | string[] | Record<string, string> | undefined;
1726
+ unit?: string | undefined;
1727
+ description?: string | undefined;
1728
+ maxItems?: number | undefined;
1729
+ maxKeyLength?: number | undefined;
1730
+ }>;
1731
+ sourceUrl: string;
1732
+ verifiedAt: string;
1733
+ providerTextMaxCharacters: number | null;
1734
+ resourceId: string | null;
1735
+ output: "PCM_S16LE_48000_V1";
1736
+ normalizationVersion: "SPEECH_PCM_V1";
1737
+ };
1738
+ matrix?: {
1739
+ schemaVersion: 1;
1740
+ service: string;
1741
+ lifecycle: "ACTIVE" | "DEPRECATED" | "RETIRED";
1742
+ sources: {
1743
+ url: string;
1744
+ checkedAt: string;
1745
+ }[];
1746
+ modes: string[];
1747
+ claims: {
1748
+ capability: "SYNCHRONIZED_AUDIO" | "SPEECH_GENERATION" | "SPEECH_RECOGNITION" | "TRANSCRIPT_TIMESTAMPS" | "VOICE_REFERENCE" | "AUDIO_REFERENCE" | "AUDIO_DRIVEN_VIDEO" | "LIP_SYNCHRONIZATION" | "AUDIO_EDITING" | "SEPARATE_STEMS";
1749
+ modes: string[];
1750
+ support: "UNKNOWN" | "SUPPORTED" | "UNSUPPORTED";
1751
+ control: "NONE" | "PARAMETER" | "PROMPT" | "ALWAYS_ON" | "MEDIA_INPUT";
1752
+ parameterPath?: string | undefined;
1753
+ access?: "PUBLIC" | "QUALIFIED_ACCOUNT" | undefined;
1754
+ description?: string | undefined;
1755
+ }[];
1756
+ parameters: Record<string, {
1757
+ label: string;
1758
+ type: "STRING" | "NUMBER" | "BOOLEAN" | "INTEGER" | "STRING_ARRAY" | "STRING_MAP";
1759
+ required?: boolean | undefined;
1760
+ min?: number | undefined;
1761
+ max?: number | undefined;
1762
+ maxLength?: number | undefined;
1763
+ options?: string[] | undefined;
1764
+ default?: string | number | boolean | string[] | Record<string, string> | undefined;
1765
+ unit?: string | undefined;
1766
+ description?: string | undefined;
1767
+ maxItems?: number | undefined;
1768
+ maxKeyLength?: number | undefined;
1769
+ numberOptions?: number[] | undefined;
1770
+ }>;
1771
+ constraints: {
1772
+ modes: string[];
1773
+ reason: string;
1774
+ when?: {
1775
+ parameter: string;
1776
+ equals: string | number | boolean;
1777
+ } | undefined;
1778
+ require?: string[] | undefined;
1779
+ forbid?: string[] | undefined;
1780
+ requireValues?: Record<string, string | number | boolean> | undefined;
1781
+ }[];
1782
+ references: {
1783
+ kind: "AUDIO_REFERENCE" | "VOICE_ID" | "DRIVING_AUDIO";
1784
+ modes: string[];
1785
+ parameterPath: string;
1786
+ maxItems: number;
1787
+ formats: ("WAV" | "MP3")[];
1788
+ requiresVisual: boolean;
1789
+ access: "PUBLIC" | "QUALIFIED_ACCOUNT";
1790
+ minDurationMs?: number | undefined;
1791
+ maxDurationMs?: number | undefined;
1792
+ maxTotalDurationMs?: number | undefined;
1793
+ maxBytes?: number | undefined;
1794
+ }[];
1795
+ outputAudioChannels?: 2 | 1 | undefined;
1796
+ } | undefined;
1797
+ } | {
1798
+ family: "OBSERVATION";
1799
+ profile: {
1800
+ id: string;
1801
+ version: number;
1802
+ providerId: "QWEN_CN" | "VOLCENGINE_CN" | "GEMINI" | "OPENAI" | "XAI";
1803
+ sourceUrl: string;
1804
+ verifiedAt: string;
1805
+ modelId: string;
1806
+ label: string;
1807
+ protocol: "OPENAI_TRANSCRIPTION_V1" | "OPENAI_WHISPER_TRANSCRIPTION_V1" | "QWEN_ASR_V1";
1808
+ modes: ["TRANSCRIPTION"];
1809
+ inputKinds: ("AUDIO" | "VIDEO")[];
1810
+ requestTimeoutMs: number;
1811
+ maxBytes: number;
1812
+ maxDurationMs: number;
1813
+ parameters: Record<string, {
1814
+ label: string;
1815
+ type: "STRING" | "NUMBER" | "BOOLEAN" | "INTEGER" | "STRING_ARRAY" | "STRING_MAP";
1816
+ required?: boolean | undefined;
1817
+ min?: number | undefined;
1818
+ max?: number | undefined;
1819
+ maxLength?: number | undefined;
1820
+ options?: string[] | undefined;
1821
+ default?: string | number | boolean | string[] | Record<string, string> | undefined;
1822
+ unit?: string | undefined;
1823
+ description?: string | undefined;
1824
+ maxItems?: number | undefined;
1825
+ maxKeyLength?: number | undefined;
1826
+ numberOptions?: number[] | undefined;
1827
+ }>;
1828
+ } | {
1829
+ id: string;
1830
+ version: number;
1831
+ providerId: "QWEN_CN" | "VOLCENGINE_CN" | "GEMINI" | "OPENAI" | "XAI";
1832
+ sourceUrl: string;
1833
+ modelId: string;
1834
+ label: string;
1835
+ protocol: "GEMINI_INTERACTIONS_V1" | "QIANWEN_VIDEO_V1";
1836
+ modes: ("AUDIO" | "VIDEO" | "AUDIOVISUAL" | "VIDEO_ALL_FRAMES")[];
1837
+ requestTimeoutMs: number;
1838
+ maxBytes: number;
1839
+ maxDurationMs: number;
1840
+ parameters: Record<string, {
1841
+ type: "STRING" | "NUMBER" | "BOOLEAN" | "INTEGER";
1842
+ default: string | number | boolean;
1843
+ min?: number | undefined;
1844
+ max?: number | undefined;
1845
+ options?: string[] | undefined;
1846
+ }>;
1847
+ };
1848
+ matrix?: {
1849
+ schemaVersion: 1;
1850
+ service: string;
1851
+ lifecycle: "ACTIVE" | "DEPRECATED" | "RETIRED";
1852
+ sources: {
1853
+ url: string;
1854
+ checkedAt: string;
1855
+ }[];
1856
+ modes: string[];
1857
+ claims: {
1858
+ capability: "SYNCHRONIZED_AUDIO" | "SPEECH_GENERATION" | "SPEECH_RECOGNITION" | "TRANSCRIPT_TIMESTAMPS" | "VOICE_REFERENCE" | "AUDIO_REFERENCE" | "AUDIO_DRIVEN_VIDEO" | "LIP_SYNCHRONIZATION" | "AUDIO_EDITING" | "SEPARATE_STEMS";
1859
+ modes: string[];
1860
+ support: "UNKNOWN" | "SUPPORTED" | "UNSUPPORTED";
1861
+ control: "NONE" | "PARAMETER" | "PROMPT" | "ALWAYS_ON" | "MEDIA_INPUT";
1862
+ parameterPath?: string | undefined;
1863
+ access?: "PUBLIC" | "QUALIFIED_ACCOUNT" | undefined;
1864
+ description?: string | undefined;
1865
+ }[];
1866
+ parameters: Record<string, {
1867
+ label: string;
1868
+ type: "STRING" | "NUMBER" | "BOOLEAN" | "INTEGER" | "STRING_ARRAY" | "STRING_MAP";
1869
+ required?: boolean | undefined;
1870
+ min?: number | undefined;
1871
+ max?: number | undefined;
1872
+ maxLength?: number | undefined;
1873
+ options?: string[] | undefined;
1874
+ default?: string | number | boolean | string[] | Record<string, string> | undefined;
1875
+ unit?: string | undefined;
1876
+ description?: string | undefined;
1877
+ maxItems?: number | undefined;
1878
+ maxKeyLength?: number | undefined;
1879
+ numberOptions?: number[] | undefined;
1880
+ }>;
1881
+ constraints: {
1882
+ modes: string[];
1883
+ reason: string;
1884
+ when?: {
1885
+ parameter: string;
1886
+ equals: string | number | boolean;
1887
+ } | undefined;
1888
+ require?: string[] | undefined;
1889
+ forbid?: string[] | undefined;
1890
+ requireValues?: Record<string, string | number | boolean> | undefined;
1891
+ }[];
1892
+ references: {
1893
+ kind: "AUDIO_REFERENCE" | "VOICE_ID" | "DRIVING_AUDIO";
1894
+ modes: string[];
1895
+ parameterPath: string;
1896
+ maxItems: number;
1897
+ formats: ("WAV" | "MP3")[];
1898
+ requiresVisual: boolean;
1899
+ access: "PUBLIC" | "QUALIFIED_ACCOUNT";
1900
+ minDurationMs?: number | undefined;
1901
+ maxDurationMs?: number | undefined;
1902
+ maxTotalDurationMs?: number | undefined;
1903
+ maxBytes?: number | undefined;
1904
+ }[];
1905
+ outputAudioChannels?: 2 | 1 | undefined;
1906
+ } | undefined;
1907
+ } | {
1908
+ family: "DECLARED";
1909
+ profile: {
1910
+ id: string;
1911
+ version: number;
1912
+ providerId: "QWEN_CN" | "VOLCENGINE_CN" | "GEMINI" | "OPENAI" | "XAI";
1913
+ modelId: string;
1914
+ protocol: "DOCUMENTED_ONLY";
1915
+ };
1916
+ matrix: {
1917
+ schemaVersion: 1;
1918
+ service: string;
1919
+ lifecycle: "ACTIVE" | "DEPRECATED" | "RETIRED";
1920
+ sources: {
1921
+ url: string;
1922
+ checkedAt: string;
1923
+ }[];
1924
+ modes: string[];
1925
+ claims: {
1926
+ capability: "SYNCHRONIZED_AUDIO" | "SPEECH_GENERATION" | "SPEECH_RECOGNITION" | "TRANSCRIPT_TIMESTAMPS" | "VOICE_REFERENCE" | "AUDIO_REFERENCE" | "AUDIO_DRIVEN_VIDEO" | "LIP_SYNCHRONIZATION" | "AUDIO_EDITING" | "SEPARATE_STEMS";
1927
+ modes: string[];
1928
+ support: "UNKNOWN" | "SUPPORTED" | "UNSUPPORTED";
1929
+ control: "NONE" | "PARAMETER" | "PROMPT" | "ALWAYS_ON" | "MEDIA_INPUT";
1930
+ parameterPath?: string | undefined;
1931
+ access?: "PUBLIC" | "QUALIFIED_ACCOUNT" | undefined;
1932
+ description?: string | undefined;
1933
+ }[];
1934
+ parameters: Record<string, {
1935
+ label: string;
1936
+ type: "STRING" | "NUMBER" | "BOOLEAN" | "INTEGER" | "STRING_ARRAY" | "STRING_MAP";
1937
+ required?: boolean | undefined;
1938
+ min?: number | undefined;
1939
+ max?: number | undefined;
1940
+ maxLength?: number | undefined;
1941
+ options?: string[] | undefined;
1942
+ default?: string | number | boolean | string[] | Record<string, string> | undefined;
1943
+ unit?: string | undefined;
1944
+ description?: string | undefined;
1945
+ maxItems?: number | undefined;
1946
+ maxKeyLength?: number | undefined;
1947
+ numberOptions?: number[] | undefined;
1948
+ }>;
1949
+ constraints: {
1950
+ modes: string[];
1951
+ reason: string;
1952
+ when?: {
1953
+ parameter: string;
1954
+ equals: string | number | boolean;
1955
+ } | undefined;
1956
+ require?: string[] | undefined;
1957
+ forbid?: string[] | undefined;
1958
+ requireValues?: Record<string, string | number | boolean> | undefined;
1959
+ }[];
1960
+ references: {
1961
+ kind: "AUDIO_REFERENCE" | "VOICE_ID" | "DRIVING_AUDIO";
1962
+ modes: string[];
1963
+ parameterPath: string;
1964
+ maxItems: number;
1965
+ formats: ("WAV" | "MP3")[];
1966
+ requiresVisual: boolean;
1967
+ access: "PUBLIC" | "QUALIFIED_ACCOUNT";
1968
+ minDurationMs?: number | undefined;
1969
+ maxDurationMs?: number | undefined;
1970
+ maxTotalDurationMs?: number | undefined;
1971
+ maxBytes?: number | undefined;
1972
+ }[];
1973
+ outputAudioChannels?: 2 | 1 | undefined;
1974
+ };
1975
+ };
1976
+ }[];
1977
+ possiblyTruncated: boolean;
1978
+ }>;
1979
+ readonly "provider.model.configure": import("./spec.js").HttpOperationSpec<{
1980
+ tenantId: string;
1981
+ expectedVersion: number;
1982
+ definition: {
1983
+ family: "IMAGE";
1984
+ profile: {
1985
+ id: string;
1986
+ version: number;
1987
+ providerId: "QWEN_CN" | "VOLCENGINE_CN" | "GEMINI" | "OPENAI" | "XAI";
1988
+ modelId: string;
1989
+ protocol: "QWEN_EDIT" | "ARK_IMAGE" | "GEMINI_IMAGE" | "OPENAI_IMAGE" | "XAI_IMAGE";
1990
+ maxReferences: number;
1991
+ promptMaxUtf8Bytes: number;
1992
+ requestTimeoutMs: number;
1993
+ workingWidth: number;
1994
+ workingHeight: number;
1995
+ referenceRoles?: ("PRODUCT_IDENTITY" | "PRODUCT_PACKSHOT" | "CHARACTER_IDENTITY" | "WARDROBE" | "LOCATION" | "STYLE")[] | undefined;
1996
+ };
1997
+ costPolicy?: {
1998
+ currency: "USD";
1999
+ sourceUrl: string;
2000
+ rationale: string;
2001
+ validUntil: string;
2002
+ rules: {
2003
+ id: string;
2004
+ variant: {
2005
+ mode: "REFERENCE_TO_IMAGE" | "REFERENCE_TO_VIDEO" | "FIRST_FRAME_TO_VIDEO" | "FIRST_LAST_FRAME_TO_VIDEO";
2006
+ aspectRatio: "16:9" | "9:16";
2007
+ workingWidth: number;
2008
+ workingHeight: number;
2009
+ hasAudio: boolean;
2010
+ references: number;
2011
+ durationSeconds: number;
2012
+ };
2013
+ upperBoundMicros: number;
2014
+ }[];
2015
+ } | undefined;
2016
+ matrix?: {
2017
+ schemaVersion: 1;
2018
+ service: string;
2019
+ lifecycle: "ACTIVE" | "DEPRECATED" | "RETIRED";
2020
+ sources: {
2021
+ url: string;
2022
+ checkedAt: string;
2023
+ }[];
2024
+ modes: string[];
2025
+ claims: {
2026
+ capability: "SYNCHRONIZED_AUDIO" | "SPEECH_GENERATION" | "SPEECH_RECOGNITION" | "TRANSCRIPT_TIMESTAMPS" | "VOICE_REFERENCE" | "AUDIO_REFERENCE" | "AUDIO_DRIVEN_VIDEO" | "LIP_SYNCHRONIZATION" | "AUDIO_EDITING" | "SEPARATE_STEMS";
2027
+ modes: string[];
2028
+ support: "UNKNOWN" | "SUPPORTED" | "UNSUPPORTED";
2029
+ control: "NONE" | "PARAMETER" | "PROMPT" | "ALWAYS_ON" | "MEDIA_INPUT";
2030
+ parameterPath?: string | undefined;
2031
+ access?: "PUBLIC" | "QUALIFIED_ACCOUNT" | undefined;
2032
+ description?: string | undefined;
2033
+ }[];
2034
+ parameters: Record<string, {
2035
+ label: string;
2036
+ type: "STRING" | "NUMBER" | "BOOLEAN" | "INTEGER" | "STRING_ARRAY" | "STRING_MAP";
2037
+ required?: boolean | undefined;
2038
+ min?: number | undefined;
2039
+ max?: number | undefined;
2040
+ maxLength?: number | undefined;
2041
+ options?: string[] | undefined;
2042
+ default?: string | number | boolean | string[] | Record<string, string> | undefined;
2043
+ unit?: string | undefined;
2044
+ description?: string | undefined;
2045
+ maxItems?: number | undefined;
2046
+ maxKeyLength?: number | undefined;
2047
+ numberOptions?: number[] | undefined;
2048
+ }>;
2049
+ constraints: {
2050
+ modes: string[];
2051
+ reason: string;
2052
+ when?: {
2053
+ parameter: string;
2054
+ equals: string | number | boolean;
2055
+ } | undefined;
2056
+ require?: string[] | undefined;
2057
+ forbid?: string[] | undefined;
2058
+ requireValues?: Record<string, string | number | boolean> | undefined;
2059
+ }[];
2060
+ references: {
2061
+ kind: "AUDIO_REFERENCE" | "VOICE_ID" | "DRIVING_AUDIO";
2062
+ modes: string[];
2063
+ parameterPath: string;
2064
+ maxItems: number;
2065
+ formats: ("WAV" | "MP3")[];
2066
+ requiresVisual: boolean;
2067
+ access: "PUBLIC" | "QUALIFIED_ACCOUNT";
2068
+ minDurationMs?: number | undefined;
2069
+ maxDurationMs?: number | undefined;
2070
+ maxTotalDurationMs?: number | undefined;
2071
+ maxBytes?: number | undefined;
2072
+ }[];
2073
+ outputAudioChannels?: 2 | 1 | undefined;
2074
+ } | undefined;
2075
+ } | {
2076
+ family: "VIDEO";
2077
+ profile: {
2078
+ id: string;
2079
+ version: number;
2080
+ providerId: "QWEN_CN" | "VOLCENGINE_CN" | "GEMINI" | "OPENAI" | "XAI";
2081
+ modelId: string;
2082
+ protocol: "QWEN_VIDEO" | "VOLCENGINE_VIDEO";
2083
+ requestTimeoutMs: number;
2084
+ promptMaxCharacters: number;
2085
+ resolution: "720P" | "1080P";
2086
+ adapterVersion: string;
2087
+ capabilities: {
2088
+ frameRate: 30 | 24;
2089
+ hasAudio: boolean;
2090
+ workingWidth: number;
2091
+ workingHeight: number;
2092
+ mediaType: "VIDEO";
2093
+ modes: ("REFERENCE_TO_VIDEO" | "FIRST_FRAME_TO_VIDEO" | "FIRST_LAST_FRAME_TO_VIDEO")[];
2094
+ referenceRoles: ("PRODUCT_IDENTITY" | "PRODUCT_PACKSHOT" | "CHARACTER_IDENTITY" | "WARDROBE" | "LOCATION" | "STYLE" | "START_FRAME_ANCHOR" | "END_FRAME_ANCHOR")[];
2095
+ aspectRatios: ("16:9" | "9:16")[];
2096
+ minDurationSeconds: number;
2097
+ maxDurationSeconds: number;
2098
+ maxReferences: number;
2099
+ combineAnchorsAndReferences: boolean;
2100
+ correlationStrategy: "PROVIDER_TASK_ID";
2101
+ sourceFormat?: {
2102
+ videoCodec: "hevc";
2103
+ pixelFormat: "yuv420p10le";
2104
+ } | undefined;
2105
+ nativeAudioChannels?: 2 | 1 | undefined;
2106
+ };
2107
+ };
2108
+ costPolicy?: {
2109
+ currency: "USD";
2110
+ sourceUrl: string;
2111
+ rationale: string;
2112
+ validUntil: string;
2113
+ rules: {
2114
+ id: string;
2115
+ variant: {
2116
+ mode: "REFERENCE_TO_IMAGE" | "REFERENCE_TO_VIDEO" | "FIRST_FRAME_TO_VIDEO" | "FIRST_LAST_FRAME_TO_VIDEO";
2117
+ aspectRatio: "16:9" | "9:16";
2118
+ workingWidth: number;
2119
+ workingHeight: number;
2120
+ hasAudio: boolean;
2121
+ references: number;
2122
+ durationSeconds: number;
2123
+ };
2124
+ upperBoundMicros: number;
2125
+ }[];
2126
+ } | undefined;
2127
+ matrix?: {
2128
+ schemaVersion: 1;
2129
+ service: string;
2130
+ lifecycle: "ACTIVE" | "DEPRECATED" | "RETIRED";
2131
+ sources: {
2132
+ url: string;
2133
+ checkedAt: string;
2134
+ }[];
2135
+ modes: string[];
2136
+ claims: {
2137
+ capability: "SYNCHRONIZED_AUDIO" | "SPEECH_GENERATION" | "SPEECH_RECOGNITION" | "TRANSCRIPT_TIMESTAMPS" | "VOICE_REFERENCE" | "AUDIO_REFERENCE" | "AUDIO_DRIVEN_VIDEO" | "LIP_SYNCHRONIZATION" | "AUDIO_EDITING" | "SEPARATE_STEMS";
2138
+ modes: string[];
2139
+ support: "UNKNOWN" | "SUPPORTED" | "UNSUPPORTED";
2140
+ control: "NONE" | "PARAMETER" | "PROMPT" | "ALWAYS_ON" | "MEDIA_INPUT";
2141
+ parameterPath?: string | undefined;
2142
+ access?: "PUBLIC" | "QUALIFIED_ACCOUNT" | undefined;
2143
+ description?: string | undefined;
2144
+ }[];
2145
+ parameters: Record<string, {
2146
+ label: string;
2147
+ type: "STRING" | "NUMBER" | "BOOLEAN" | "INTEGER" | "STRING_ARRAY" | "STRING_MAP";
2148
+ required?: boolean | undefined;
2149
+ min?: number | undefined;
2150
+ max?: number | undefined;
2151
+ maxLength?: number | undefined;
2152
+ options?: string[] | undefined;
2153
+ default?: string | number | boolean | string[] | Record<string, string> | undefined;
2154
+ unit?: string | undefined;
2155
+ description?: string | undefined;
2156
+ maxItems?: number | undefined;
2157
+ maxKeyLength?: number | undefined;
2158
+ numberOptions?: number[] | undefined;
2159
+ }>;
2160
+ constraints: {
2161
+ modes: string[];
2162
+ reason: string;
2163
+ when?: {
2164
+ parameter: string;
2165
+ equals: string | number | boolean;
2166
+ } | undefined;
2167
+ require?: string[] | undefined;
2168
+ forbid?: string[] | undefined;
2169
+ requireValues?: Record<string, string | number | boolean> | undefined;
2170
+ }[];
2171
+ references: {
2172
+ kind: "AUDIO_REFERENCE" | "VOICE_ID" | "DRIVING_AUDIO";
2173
+ modes: string[];
2174
+ parameterPath: string;
2175
+ maxItems: number;
2176
+ formats: ("WAV" | "MP3")[];
2177
+ requiresVisual: boolean;
2178
+ access: "PUBLIC" | "QUALIFIED_ACCOUNT";
2179
+ minDurationMs?: number | undefined;
2180
+ maxDurationMs?: number | undefined;
2181
+ maxTotalDurationMs?: number | undefined;
2182
+ maxBytes?: number | undefined;
2183
+ }[];
2184
+ outputAudioChannels?: 2 | 1 | undefined;
2185
+ } | undefined;
2186
+ } | {
2187
+ family: "SPEECH";
2188
+ profile: {
2189
+ id: string;
2190
+ version: number;
2191
+ providerId: "QWEN_CN" | "VOLCENGINE_CN" | "GEMINI" | "OPENAI" | "XAI";
2192
+ modelId: string | null;
2193
+ protocol: "QWEN_TTS" | "QWEN_AUDIO_TTS" | "OPENAI_TTS" | "XAI_TTS" | "GEMINI_INTERACTIONS_TTS" | "VOLCENGINE_TTS";
2194
+ label: string;
2195
+ textMaxCharacters: number;
2196
+ requestTimeoutMs: number;
2197
+ workspaceRequired: boolean;
2198
+ voices: {
2199
+ id: string;
2200
+ label: string;
2201
+ languages?: string[] | undefined;
2202
+ parameterDefaults?: Record<string, string | number | boolean | string[] | Record<string, string>> | undefined;
2203
+ parameterOptions?: Record<string, string[]> | undefined;
2204
+ unsupportedParameters?: string[] | undefined;
2205
+ }[];
2206
+ languages: string[];
2207
+ parameters: Record<string, {
2208
+ label: string;
2209
+ type: "STRING" | "NUMBER" | "BOOLEAN" | "INTEGER" | "STRING_ARRAY" | "STRING_MAP";
2210
+ required?: boolean | undefined;
2211
+ min?: number | undefined;
2212
+ max?: number | undefined;
2213
+ maxLength?: number | undefined;
2214
+ options?: string[] | undefined;
2215
+ default?: string | number | boolean | string[] | Record<string, string> | undefined;
2216
+ unit?: string | undefined;
2217
+ description?: string | undefined;
2218
+ maxItems?: number | undefined;
2219
+ maxKeyLength?: number | undefined;
2220
+ }>;
2221
+ sourceUrl: string;
2222
+ verifiedAt: string;
2223
+ providerTextMaxCharacters: number | null;
2224
+ resourceId: string | null;
2225
+ output: "PCM_S16LE_48000_V1";
2226
+ normalizationVersion: "SPEECH_PCM_V1";
2227
+ };
2228
+ matrix?: {
2229
+ schemaVersion: 1;
2230
+ service: string;
2231
+ lifecycle: "ACTIVE" | "DEPRECATED" | "RETIRED";
2232
+ sources: {
2233
+ url: string;
2234
+ checkedAt: string;
2235
+ }[];
2236
+ modes: string[];
2237
+ claims: {
2238
+ capability: "SYNCHRONIZED_AUDIO" | "SPEECH_GENERATION" | "SPEECH_RECOGNITION" | "TRANSCRIPT_TIMESTAMPS" | "VOICE_REFERENCE" | "AUDIO_REFERENCE" | "AUDIO_DRIVEN_VIDEO" | "LIP_SYNCHRONIZATION" | "AUDIO_EDITING" | "SEPARATE_STEMS";
2239
+ modes: string[];
2240
+ support: "UNKNOWN" | "SUPPORTED" | "UNSUPPORTED";
2241
+ control: "NONE" | "PARAMETER" | "PROMPT" | "ALWAYS_ON" | "MEDIA_INPUT";
2242
+ parameterPath?: string | undefined;
2243
+ access?: "PUBLIC" | "QUALIFIED_ACCOUNT" | undefined;
2244
+ description?: string | undefined;
2245
+ }[];
2246
+ parameters: Record<string, {
2247
+ label: string;
2248
+ type: "STRING" | "NUMBER" | "BOOLEAN" | "INTEGER" | "STRING_ARRAY" | "STRING_MAP";
2249
+ required?: boolean | undefined;
2250
+ min?: number | undefined;
2251
+ max?: number | undefined;
2252
+ maxLength?: number | undefined;
2253
+ options?: string[] | undefined;
2254
+ default?: string | number | boolean | string[] | Record<string, string> | undefined;
2255
+ unit?: string | undefined;
2256
+ description?: string | undefined;
2257
+ maxItems?: number | undefined;
2258
+ maxKeyLength?: number | undefined;
2259
+ numberOptions?: number[] | undefined;
2260
+ }>;
2261
+ constraints: {
2262
+ modes: string[];
2263
+ reason: string;
2264
+ when?: {
2265
+ parameter: string;
2266
+ equals: string | number | boolean;
2267
+ } | undefined;
2268
+ require?: string[] | undefined;
2269
+ forbid?: string[] | undefined;
2270
+ requireValues?: Record<string, string | number | boolean> | undefined;
2271
+ }[];
2272
+ references: {
2273
+ kind: "AUDIO_REFERENCE" | "VOICE_ID" | "DRIVING_AUDIO";
2274
+ modes: string[];
2275
+ parameterPath: string;
2276
+ maxItems: number;
2277
+ formats: ("WAV" | "MP3")[];
2278
+ requiresVisual: boolean;
2279
+ access: "PUBLIC" | "QUALIFIED_ACCOUNT";
2280
+ minDurationMs?: number | undefined;
2281
+ maxDurationMs?: number | undefined;
2282
+ maxTotalDurationMs?: number | undefined;
2283
+ maxBytes?: number | undefined;
2284
+ }[];
2285
+ outputAudioChannels?: 2 | 1 | undefined;
2286
+ } | undefined;
2287
+ } | {
2288
+ family: "OBSERVATION";
2289
+ profile: {
2290
+ id: string;
2291
+ version: number;
2292
+ providerId: "QWEN_CN" | "VOLCENGINE_CN" | "GEMINI" | "OPENAI" | "XAI";
2293
+ sourceUrl: string;
2294
+ verifiedAt: string;
2295
+ modelId: string;
2296
+ label: string;
2297
+ protocol: "OPENAI_TRANSCRIPTION_V1" | "OPENAI_WHISPER_TRANSCRIPTION_V1" | "QWEN_ASR_V1";
2298
+ modes: ["TRANSCRIPTION"];
2299
+ inputKinds: ("AUDIO" | "VIDEO")[];
2300
+ requestTimeoutMs: number;
2301
+ maxBytes: number;
2302
+ maxDurationMs: number;
2303
+ parameters: Record<string, {
2304
+ label: string;
2305
+ type: "STRING" | "NUMBER" | "BOOLEAN" | "INTEGER" | "STRING_ARRAY" | "STRING_MAP";
2306
+ required?: boolean | undefined;
2307
+ min?: number | undefined;
2308
+ max?: number | undefined;
2309
+ maxLength?: number | undefined;
2310
+ options?: string[] | undefined;
2311
+ default?: string | number | boolean | string[] | Record<string, string> | undefined;
2312
+ unit?: string | undefined;
2313
+ description?: string | undefined;
2314
+ maxItems?: number | undefined;
2315
+ maxKeyLength?: number | undefined;
2316
+ numberOptions?: number[] | undefined;
2317
+ }>;
2318
+ } | {
2319
+ id: string;
2320
+ version: number;
2321
+ providerId: "QWEN_CN" | "VOLCENGINE_CN" | "GEMINI" | "OPENAI" | "XAI";
2322
+ sourceUrl: string;
2323
+ modelId: string;
2324
+ label: string;
2325
+ protocol: "GEMINI_INTERACTIONS_V1" | "QIANWEN_VIDEO_V1";
2326
+ modes: ("AUDIO" | "VIDEO" | "AUDIOVISUAL" | "VIDEO_ALL_FRAMES")[];
2327
+ requestTimeoutMs: number;
2328
+ maxBytes: number;
2329
+ maxDurationMs: number;
2330
+ parameters: Record<string, {
2331
+ type: "STRING" | "NUMBER" | "BOOLEAN" | "INTEGER";
2332
+ default: string | number | boolean;
2333
+ min?: number | undefined;
2334
+ max?: number | undefined;
2335
+ options?: string[] | undefined;
2336
+ }>;
2337
+ };
2338
+ matrix?: {
2339
+ schemaVersion: 1;
2340
+ service: string;
2341
+ lifecycle: "ACTIVE" | "DEPRECATED" | "RETIRED";
2342
+ sources: {
2343
+ url: string;
2344
+ checkedAt: string;
2345
+ }[];
2346
+ modes: string[];
2347
+ claims: {
2348
+ capability: "SYNCHRONIZED_AUDIO" | "SPEECH_GENERATION" | "SPEECH_RECOGNITION" | "TRANSCRIPT_TIMESTAMPS" | "VOICE_REFERENCE" | "AUDIO_REFERENCE" | "AUDIO_DRIVEN_VIDEO" | "LIP_SYNCHRONIZATION" | "AUDIO_EDITING" | "SEPARATE_STEMS";
2349
+ modes: string[];
2350
+ support: "UNKNOWN" | "SUPPORTED" | "UNSUPPORTED";
2351
+ control: "NONE" | "PARAMETER" | "PROMPT" | "ALWAYS_ON" | "MEDIA_INPUT";
2352
+ parameterPath?: string | undefined;
2353
+ access?: "PUBLIC" | "QUALIFIED_ACCOUNT" | undefined;
2354
+ description?: string | undefined;
2355
+ }[];
2356
+ parameters: Record<string, {
2357
+ label: string;
2358
+ type: "STRING" | "NUMBER" | "BOOLEAN" | "INTEGER" | "STRING_ARRAY" | "STRING_MAP";
2359
+ required?: boolean | undefined;
2360
+ min?: number | undefined;
2361
+ max?: number | undefined;
2362
+ maxLength?: number | undefined;
2363
+ options?: string[] | undefined;
2364
+ default?: string | number | boolean | string[] | Record<string, string> | undefined;
2365
+ unit?: string | undefined;
2366
+ description?: string | undefined;
2367
+ maxItems?: number | undefined;
2368
+ maxKeyLength?: number | undefined;
2369
+ numberOptions?: number[] | undefined;
2370
+ }>;
2371
+ constraints: {
2372
+ modes: string[];
2373
+ reason: string;
2374
+ when?: {
2375
+ parameter: string;
2376
+ equals: string | number | boolean;
2377
+ } | undefined;
2378
+ require?: string[] | undefined;
2379
+ forbid?: string[] | undefined;
2380
+ requireValues?: Record<string, string | number | boolean> | undefined;
2381
+ }[];
2382
+ references: {
2383
+ kind: "AUDIO_REFERENCE" | "VOICE_ID" | "DRIVING_AUDIO";
2384
+ modes: string[];
2385
+ parameterPath: string;
2386
+ maxItems: number;
2387
+ formats: ("WAV" | "MP3")[];
2388
+ requiresVisual: boolean;
2389
+ access: "PUBLIC" | "QUALIFIED_ACCOUNT";
2390
+ minDurationMs?: number | undefined;
2391
+ maxDurationMs?: number | undefined;
2392
+ maxTotalDurationMs?: number | undefined;
2393
+ maxBytes?: number | undefined;
2394
+ }[];
2395
+ outputAudioChannels?: 2 | 1 | undefined;
2396
+ } | undefined;
2397
+ } | {
2398
+ family: "DECLARED";
2399
+ profile: {
2400
+ id: string;
2401
+ version: number;
2402
+ providerId: "QWEN_CN" | "VOLCENGINE_CN" | "GEMINI" | "OPENAI" | "XAI";
2403
+ modelId: string;
2404
+ protocol: "DOCUMENTED_ONLY";
2405
+ };
2406
+ matrix: {
2407
+ schemaVersion: 1;
2408
+ service: string;
2409
+ lifecycle: "ACTIVE" | "DEPRECATED" | "RETIRED";
2410
+ sources: {
2411
+ url: string;
2412
+ checkedAt: string;
2413
+ }[];
2414
+ modes: string[];
2415
+ claims: {
2416
+ capability: "SYNCHRONIZED_AUDIO" | "SPEECH_GENERATION" | "SPEECH_RECOGNITION" | "TRANSCRIPT_TIMESTAMPS" | "VOICE_REFERENCE" | "AUDIO_REFERENCE" | "AUDIO_DRIVEN_VIDEO" | "LIP_SYNCHRONIZATION" | "AUDIO_EDITING" | "SEPARATE_STEMS";
2417
+ modes: string[];
2418
+ support: "UNKNOWN" | "SUPPORTED" | "UNSUPPORTED";
2419
+ control: "NONE" | "PARAMETER" | "PROMPT" | "ALWAYS_ON" | "MEDIA_INPUT";
2420
+ parameterPath?: string | undefined;
2421
+ access?: "PUBLIC" | "QUALIFIED_ACCOUNT" | undefined;
2422
+ description?: string | undefined;
2423
+ }[];
2424
+ parameters: Record<string, {
2425
+ label: string;
2426
+ type: "STRING" | "NUMBER" | "BOOLEAN" | "INTEGER" | "STRING_ARRAY" | "STRING_MAP";
2427
+ required?: boolean | undefined;
2428
+ min?: number | undefined;
2429
+ max?: number | undefined;
2430
+ maxLength?: number | undefined;
2431
+ options?: string[] | undefined;
2432
+ default?: string | number | boolean | string[] | Record<string, string> | undefined;
2433
+ unit?: string | undefined;
2434
+ description?: string | undefined;
2435
+ maxItems?: number | undefined;
2436
+ maxKeyLength?: number | undefined;
2437
+ numberOptions?: number[] | undefined;
2438
+ }>;
2439
+ constraints: {
2440
+ modes: string[];
2441
+ reason: string;
2442
+ when?: {
2443
+ parameter: string;
2444
+ equals: string | number | boolean;
2445
+ } | undefined;
2446
+ require?: string[] | undefined;
2447
+ forbid?: string[] | undefined;
2448
+ requireValues?: Record<string, string | number | boolean> | undefined;
2449
+ }[];
2450
+ references: {
2451
+ kind: "AUDIO_REFERENCE" | "VOICE_ID" | "DRIVING_AUDIO";
2452
+ modes: string[];
2453
+ parameterPath: string;
2454
+ maxItems: number;
2455
+ formats: ("WAV" | "MP3")[];
2456
+ requiresVisual: boolean;
2457
+ access: "PUBLIC" | "QUALIFIED_ACCOUNT";
2458
+ minDurationMs?: number | undefined;
2459
+ maxDurationMs?: number | undefined;
2460
+ maxTotalDurationMs?: number | undefined;
2461
+ maxBytes?: number | undefined;
2462
+ }[];
2463
+ outputAudioChannels?: 2 | 1 | undefined;
2464
+ };
2465
+ };
2466
+ }, {
2467
+ tenantId: string & z.core.$brand<"TenantId">;
2468
+ expectedVersion: number;
2469
+ definition: {
2470
+ family: "IMAGE";
2471
+ profile: {
2472
+ id: string;
2473
+ version: number;
2474
+ providerId: "QWEN_CN" | "VOLCENGINE_CN" | "GEMINI" | "OPENAI" | "XAI";
2475
+ modelId: string;
2476
+ protocol: "QWEN_EDIT" | "ARK_IMAGE" | "GEMINI_IMAGE" | "OPENAI_IMAGE" | "XAI_IMAGE";
2477
+ maxReferences: number;
2478
+ promptMaxUtf8Bytes: number;
2479
+ requestTimeoutMs: number;
2480
+ workingWidth: number;
2481
+ workingHeight: number;
2482
+ referenceRoles?: ("PRODUCT_IDENTITY" | "PRODUCT_PACKSHOT" | "CHARACTER_IDENTITY" | "WARDROBE" | "LOCATION" | "STYLE")[] | undefined;
2483
+ };
2484
+ costPolicy?: {
2485
+ currency: "USD";
2486
+ sourceUrl: string;
2487
+ rationale: string;
2488
+ validUntil: string;
2489
+ rules: {
2490
+ id: string;
2491
+ variant: {
2492
+ mode: "REFERENCE_TO_IMAGE" | "REFERENCE_TO_VIDEO" | "FIRST_FRAME_TO_VIDEO" | "FIRST_LAST_FRAME_TO_VIDEO";
2493
+ aspectRatio: "16:9" | "9:16";
2494
+ workingWidth: number;
2495
+ workingHeight: number;
2496
+ hasAudio: boolean;
2497
+ references: number;
2498
+ durationSeconds: number;
2499
+ };
2500
+ upperBoundMicros: number;
2501
+ }[];
2502
+ } | undefined;
2503
+ matrix?: {
2504
+ schemaVersion: 1;
2505
+ service: string;
2506
+ lifecycle: "ACTIVE" | "DEPRECATED" | "RETIRED";
2507
+ sources: {
2508
+ url: string;
2509
+ checkedAt: string;
2510
+ }[];
2511
+ modes: string[];
2512
+ claims: {
2513
+ capability: "SYNCHRONIZED_AUDIO" | "SPEECH_GENERATION" | "SPEECH_RECOGNITION" | "TRANSCRIPT_TIMESTAMPS" | "VOICE_REFERENCE" | "AUDIO_REFERENCE" | "AUDIO_DRIVEN_VIDEO" | "LIP_SYNCHRONIZATION" | "AUDIO_EDITING" | "SEPARATE_STEMS";
2514
+ modes: string[];
2515
+ support: "UNKNOWN" | "SUPPORTED" | "UNSUPPORTED";
2516
+ control: "NONE" | "PARAMETER" | "PROMPT" | "ALWAYS_ON" | "MEDIA_INPUT";
2517
+ access: "PUBLIC" | "QUALIFIED_ACCOUNT";
2518
+ parameterPath?: string | undefined;
2519
+ description?: string | undefined;
2520
+ }[];
2521
+ parameters: Record<string, {
2522
+ label: string;
2523
+ type: "STRING" | "NUMBER" | "BOOLEAN" | "INTEGER" | "STRING_ARRAY" | "STRING_MAP";
2524
+ required: boolean;
2525
+ min?: number | undefined;
2526
+ max?: number | undefined;
2527
+ maxLength?: number | undefined;
2528
+ options?: string[] | undefined;
2529
+ default?: string | number | boolean | string[] | Record<string, string> | undefined;
2530
+ unit?: string | undefined;
2531
+ description?: string | undefined;
2532
+ maxItems?: number | undefined;
2533
+ maxKeyLength?: number | undefined;
2534
+ numberOptions?: number[] | undefined;
2535
+ }>;
2536
+ constraints: {
2537
+ modes: string[];
2538
+ require: string[];
2539
+ forbid: string[];
2540
+ requireValues: Record<string, string | number | boolean>;
2541
+ reason: string;
2542
+ when?: {
2543
+ parameter: string;
2544
+ equals: string | number | boolean;
2545
+ } | undefined;
2546
+ }[];
2547
+ references: {
2548
+ kind: "AUDIO_REFERENCE" | "VOICE_ID" | "DRIVING_AUDIO";
2549
+ modes: string[];
2550
+ parameterPath: string;
2551
+ maxItems: number;
2552
+ formats: ("WAV" | "MP3")[];
2553
+ requiresVisual: boolean;
2554
+ access: "PUBLIC" | "QUALIFIED_ACCOUNT";
2555
+ minDurationMs?: number | undefined;
2556
+ maxDurationMs?: number | undefined;
2557
+ maxTotalDurationMs?: number | undefined;
2558
+ maxBytes?: number | undefined;
2559
+ }[];
2560
+ outputAudioChannels?: 2 | 1 | undefined;
2561
+ } | undefined;
2562
+ } | {
2563
+ family: "VIDEO";
2564
+ profile: {
2565
+ id: string;
2566
+ version: number;
2567
+ providerId: "QWEN_CN" | "VOLCENGINE_CN" | "GEMINI" | "OPENAI" | "XAI";
2568
+ modelId: string;
2569
+ protocol: "QWEN_VIDEO" | "VOLCENGINE_VIDEO";
2570
+ requestTimeoutMs: number;
2571
+ promptMaxCharacters: number;
2572
+ resolution: "720P" | "1080P";
2573
+ adapterVersion: string;
2574
+ capabilities: {
2575
+ frameRate: 30 | 24;
2576
+ hasAudio: boolean;
2577
+ workingWidth: number;
2578
+ workingHeight: number;
2579
+ mediaType: "VIDEO";
2580
+ modes: ("REFERENCE_TO_VIDEO" | "FIRST_FRAME_TO_VIDEO" | "FIRST_LAST_FRAME_TO_VIDEO")[];
2581
+ referenceRoles: ("PRODUCT_IDENTITY" | "PRODUCT_PACKSHOT" | "CHARACTER_IDENTITY" | "WARDROBE" | "LOCATION" | "STYLE" | "START_FRAME_ANCHOR" | "END_FRAME_ANCHOR")[];
2582
+ aspectRatios: ("16:9" | "9:16")[];
2583
+ minDurationSeconds: number;
2584
+ maxDurationSeconds: number;
2585
+ maxReferences: number;
2586
+ combineAnchorsAndReferences: boolean;
2587
+ correlationStrategy: "PROVIDER_TASK_ID";
2588
+ sourceFormat?: {
2589
+ videoCodec: "hevc";
2590
+ pixelFormat: "yuv420p10le";
2591
+ } | undefined;
2592
+ nativeAudioChannels?: 2 | 1 | undefined;
2593
+ };
2594
+ };
2595
+ costPolicy?: {
2596
+ currency: "USD";
2597
+ sourceUrl: string;
2598
+ rationale: string;
2599
+ validUntil: string;
2600
+ rules: {
2601
+ id: string;
2602
+ variant: {
2603
+ mode: "REFERENCE_TO_IMAGE" | "REFERENCE_TO_VIDEO" | "FIRST_FRAME_TO_VIDEO" | "FIRST_LAST_FRAME_TO_VIDEO";
2604
+ aspectRatio: "16:9" | "9:16";
2605
+ workingWidth: number;
2606
+ workingHeight: number;
2607
+ hasAudio: boolean;
2608
+ references: number;
2609
+ durationSeconds: number;
2610
+ };
2611
+ upperBoundMicros: number;
2612
+ }[];
2613
+ } | undefined;
2614
+ matrix?: {
2615
+ schemaVersion: 1;
2616
+ service: string;
2617
+ lifecycle: "ACTIVE" | "DEPRECATED" | "RETIRED";
2618
+ sources: {
2619
+ url: string;
2620
+ checkedAt: string;
2621
+ }[];
2622
+ modes: string[];
2623
+ claims: {
2624
+ capability: "SYNCHRONIZED_AUDIO" | "SPEECH_GENERATION" | "SPEECH_RECOGNITION" | "TRANSCRIPT_TIMESTAMPS" | "VOICE_REFERENCE" | "AUDIO_REFERENCE" | "AUDIO_DRIVEN_VIDEO" | "LIP_SYNCHRONIZATION" | "AUDIO_EDITING" | "SEPARATE_STEMS";
2625
+ modes: string[];
2626
+ support: "UNKNOWN" | "SUPPORTED" | "UNSUPPORTED";
2627
+ control: "NONE" | "PARAMETER" | "PROMPT" | "ALWAYS_ON" | "MEDIA_INPUT";
2628
+ access: "PUBLIC" | "QUALIFIED_ACCOUNT";
2629
+ parameterPath?: string | undefined;
2630
+ description?: string | undefined;
2631
+ }[];
2632
+ parameters: Record<string, {
2633
+ label: string;
2634
+ type: "STRING" | "NUMBER" | "BOOLEAN" | "INTEGER" | "STRING_ARRAY" | "STRING_MAP";
2635
+ required: boolean;
2636
+ min?: number | undefined;
2637
+ max?: number | undefined;
2638
+ maxLength?: number | undefined;
2639
+ options?: string[] | undefined;
2640
+ default?: string | number | boolean | string[] | Record<string, string> | undefined;
2641
+ unit?: string | undefined;
2642
+ description?: string | undefined;
2643
+ maxItems?: number | undefined;
2644
+ maxKeyLength?: number | undefined;
2645
+ numberOptions?: number[] | undefined;
2646
+ }>;
2647
+ constraints: {
2648
+ modes: string[];
2649
+ require: string[];
2650
+ forbid: string[];
2651
+ requireValues: Record<string, string | number | boolean>;
2652
+ reason: string;
2653
+ when?: {
2654
+ parameter: string;
2655
+ equals: string | number | boolean;
2656
+ } | undefined;
2657
+ }[];
2658
+ references: {
2659
+ kind: "AUDIO_REFERENCE" | "VOICE_ID" | "DRIVING_AUDIO";
2660
+ modes: string[];
2661
+ parameterPath: string;
2662
+ maxItems: number;
2663
+ formats: ("WAV" | "MP3")[];
2664
+ requiresVisual: boolean;
2665
+ access: "PUBLIC" | "QUALIFIED_ACCOUNT";
2666
+ minDurationMs?: number | undefined;
2667
+ maxDurationMs?: number | undefined;
2668
+ maxTotalDurationMs?: number | undefined;
2669
+ maxBytes?: number | undefined;
2670
+ }[];
2671
+ outputAudioChannels?: 2 | 1 | undefined;
2672
+ } | undefined;
2673
+ } | {
2674
+ family: "SPEECH";
2675
+ profile: {
2676
+ id: string;
2677
+ version: number;
2678
+ providerId: "QWEN_CN" | "VOLCENGINE_CN" | "GEMINI" | "OPENAI" | "XAI";
2679
+ modelId: string | null;
2680
+ protocol: "QWEN_TTS" | "QWEN_AUDIO_TTS" | "OPENAI_TTS" | "XAI_TTS" | "GEMINI_INTERACTIONS_TTS" | "VOLCENGINE_TTS";
2681
+ label: string;
2682
+ textMaxCharacters: number;
2683
+ requestTimeoutMs: number;
2684
+ workspaceRequired: boolean;
2685
+ voices: {
2686
+ id: string;
2687
+ label: string;
2688
+ languages?: string[] | undefined;
2689
+ parameterDefaults?: Record<string, string | number | boolean | string[] | Record<string, string>> | undefined;
2690
+ parameterOptions?: Record<string, string[]> | undefined;
2691
+ unsupportedParameters?: string[] | undefined;
2692
+ }[];
2693
+ languages: string[];
2694
+ parameters: Record<string, {
2695
+ label: string;
2696
+ type: "STRING" | "NUMBER" | "BOOLEAN" | "INTEGER" | "STRING_ARRAY" | "STRING_MAP";
2697
+ required: boolean;
2698
+ min?: number | undefined;
2699
+ max?: number | undefined;
2700
+ maxLength?: number | undefined;
2701
+ options?: string[] | undefined;
2702
+ default?: string | number | boolean | string[] | Record<string, string> | undefined;
2703
+ unit?: string | undefined;
2704
+ description?: string | undefined;
2705
+ maxItems?: number | undefined;
2706
+ maxKeyLength?: number | undefined;
2707
+ }>;
2708
+ sourceUrl: string;
2709
+ verifiedAt: string;
2710
+ providerTextMaxCharacters: number | null;
2711
+ resourceId: string | null;
2712
+ output: "PCM_S16LE_48000_V1";
2713
+ normalizationVersion: "SPEECH_PCM_V1";
2714
+ };
2715
+ matrix?: {
2716
+ schemaVersion: 1;
2717
+ service: string;
2718
+ lifecycle: "ACTIVE" | "DEPRECATED" | "RETIRED";
2719
+ sources: {
2720
+ url: string;
2721
+ checkedAt: string;
2722
+ }[];
2723
+ modes: string[];
2724
+ claims: {
2725
+ capability: "SYNCHRONIZED_AUDIO" | "SPEECH_GENERATION" | "SPEECH_RECOGNITION" | "TRANSCRIPT_TIMESTAMPS" | "VOICE_REFERENCE" | "AUDIO_REFERENCE" | "AUDIO_DRIVEN_VIDEO" | "LIP_SYNCHRONIZATION" | "AUDIO_EDITING" | "SEPARATE_STEMS";
2726
+ modes: string[];
2727
+ support: "UNKNOWN" | "SUPPORTED" | "UNSUPPORTED";
2728
+ control: "NONE" | "PARAMETER" | "PROMPT" | "ALWAYS_ON" | "MEDIA_INPUT";
2729
+ access: "PUBLIC" | "QUALIFIED_ACCOUNT";
2730
+ parameterPath?: string | undefined;
2731
+ description?: string | undefined;
2732
+ }[];
2733
+ parameters: Record<string, {
2734
+ label: string;
2735
+ type: "STRING" | "NUMBER" | "BOOLEAN" | "INTEGER" | "STRING_ARRAY" | "STRING_MAP";
2736
+ required: boolean;
2737
+ min?: number | undefined;
2738
+ max?: number | undefined;
2739
+ maxLength?: number | undefined;
2740
+ options?: string[] | undefined;
2741
+ default?: string | number | boolean | string[] | Record<string, string> | undefined;
2742
+ unit?: string | undefined;
2743
+ description?: string | undefined;
2744
+ maxItems?: number | undefined;
2745
+ maxKeyLength?: number | undefined;
2746
+ numberOptions?: number[] | undefined;
2747
+ }>;
2748
+ constraints: {
2749
+ modes: string[];
2750
+ require: string[];
2751
+ forbid: string[];
2752
+ requireValues: Record<string, string | number | boolean>;
2753
+ reason: string;
2754
+ when?: {
2755
+ parameter: string;
2756
+ equals: string | number | boolean;
2757
+ } | undefined;
2758
+ }[];
2759
+ references: {
2760
+ kind: "AUDIO_REFERENCE" | "VOICE_ID" | "DRIVING_AUDIO";
2761
+ modes: string[];
2762
+ parameterPath: string;
2763
+ maxItems: number;
2764
+ formats: ("WAV" | "MP3")[];
2765
+ requiresVisual: boolean;
2766
+ access: "PUBLIC" | "QUALIFIED_ACCOUNT";
2767
+ minDurationMs?: number | undefined;
2768
+ maxDurationMs?: number | undefined;
2769
+ maxTotalDurationMs?: number | undefined;
2770
+ maxBytes?: number | undefined;
2771
+ }[];
2772
+ outputAudioChannels?: 2 | 1 | undefined;
2773
+ } | undefined;
2774
+ } | {
2775
+ family: "OBSERVATION";
2776
+ profile: {
2777
+ id: string;
2778
+ version: number;
2779
+ providerId: "QWEN_CN" | "VOLCENGINE_CN" | "GEMINI" | "OPENAI" | "XAI";
2780
+ sourceUrl: string;
2781
+ verifiedAt: string;
2782
+ modelId: string;
2783
+ label: string;
2784
+ protocol: "OPENAI_TRANSCRIPTION_V1" | "OPENAI_WHISPER_TRANSCRIPTION_V1" | "QWEN_ASR_V1";
2785
+ modes: ["TRANSCRIPTION"];
2786
+ inputKinds: ("AUDIO" | "VIDEO")[];
2787
+ requestTimeoutMs: number;
2788
+ maxBytes: number;
2789
+ maxDurationMs: number;
2790
+ parameters: Record<string, {
2791
+ label: string;
2792
+ type: "STRING" | "NUMBER" | "BOOLEAN" | "INTEGER" | "STRING_ARRAY" | "STRING_MAP";
2793
+ required: boolean;
2794
+ min?: number | undefined;
2795
+ max?: number | undefined;
2796
+ maxLength?: number | undefined;
2797
+ options?: string[] | undefined;
2798
+ default?: string | number | boolean | string[] | Record<string, string> | undefined;
2799
+ unit?: string | undefined;
2800
+ description?: string | undefined;
2801
+ maxItems?: number | undefined;
2802
+ maxKeyLength?: number | undefined;
2803
+ numberOptions?: number[] | undefined;
2804
+ }>;
2805
+ } | {
2806
+ id: string;
2807
+ version: number;
2808
+ providerId: "QWEN_CN" | "VOLCENGINE_CN" | "GEMINI" | "OPENAI" | "XAI";
2809
+ sourceUrl: string;
2810
+ modelId: string;
2811
+ label: string;
2812
+ protocol: "GEMINI_INTERACTIONS_V1" | "QIANWEN_VIDEO_V1";
2813
+ modes: ("AUDIO" | "VIDEO" | "AUDIOVISUAL" | "VIDEO_ALL_FRAMES")[];
2814
+ requestTimeoutMs: number;
2815
+ maxBytes: number;
2816
+ maxDurationMs: number;
2817
+ parameters: Record<string, {
2818
+ type: "STRING" | "NUMBER" | "BOOLEAN" | "INTEGER";
2819
+ default: string | number | boolean;
2820
+ min?: number | undefined;
2821
+ max?: number | undefined;
2822
+ options?: string[] | undefined;
2823
+ }>;
2824
+ };
2825
+ matrix?: {
2826
+ schemaVersion: 1;
2827
+ service: string;
2828
+ lifecycle: "ACTIVE" | "DEPRECATED" | "RETIRED";
2829
+ sources: {
2830
+ url: string;
2831
+ checkedAt: string;
2832
+ }[];
2833
+ modes: string[];
2834
+ claims: {
2835
+ capability: "SYNCHRONIZED_AUDIO" | "SPEECH_GENERATION" | "SPEECH_RECOGNITION" | "TRANSCRIPT_TIMESTAMPS" | "VOICE_REFERENCE" | "AUDIO_REFERENCE" | "AUDIO_DRIVEN_VIDEO" | "LIP_SYNCHRONIZATION" | "AUDIO_EDITING" | "SEPARATE_STEMS";
2836
+ modes: string[];
2837
+ support: "UNKNOWN" | "SUPPORTED" | "UNSUPPORTED";
2838
+ control: "NONE" | "PARAMETER" | "PROMPT" | "ALWAYS_ON" | "MEDIA_INPUT";
2839
+ access: "PUBLIC" | "QUALIFIED_ACCOUNT";
2840
+ parameterPath?: string | undefined;
2841
+ description?: string | undefined;
2842
+ }[];
2843
+ parameters: Record<string, {
2844
+ label: string;
2845
+ type: "STRING" | "NUMBER" | "BOOLEAN" | "INTEGER" | "STRING_ARRAY" | "STRING_MAP";
2846
+ required: boolean;
2847
+ min?: number | undefined;
2848
+ max?: number | undefined;
2849
+ maxLength?: number | undefined;
2850
+ options?: string[] | undefined;
2851
+ default?: string | number | boolean | string[] | Record<string, string> | undefined;
2852
+ unit?: string | undefined;
2853
+ description?: string | undefined;
2854
+ maxItems?: number | undefined;
2855
+ maxKeyLength?: number | undefined;
2856
+ numberOptions?: number[] | undefined;
2857
+ }>;
2858
+ constraints: {
2859
+ modes: string[];
2860
+ require: string[];
2861
+ forbid: string[];
2862
+ requireValues: Record<string, string | number | boolean>;
2863
+ reason: string;
2864
+ when?: {
2865
+ parameter: string;
2866
+ equals: string | number | boolean;
2867
+ } | undefined;
2868
+ }[];
2869
+ references: {
2870
+ kind: "AUDIO_REFERENCE" | "VOICE_ID" | "DRIVING_AUDIO";
2871
+ modes: string[];
2872
+ parameterPath: string;
2873
+ maxItems: number;
2874
+ formats: ("WAV" | "MP3")[];
2875
+ requiresVisual: boolean;
2876
+ access: "PUBLIC" | "QUALIFIED_ACCOUNT";
2877
+ minDurationMs?: number | undefined;
2878
+ maxDurationMs?: number | undefined;
2879
+ maxTotalDurationMs?: number | undefined;
2880
+ maxBytes?: number | undefined;
2881
+ }[];
2882
+ outputAudioChannels?: 2 | 1 | undefined;
2883
+ } | undefined;
2884
+ } | {
2885
+ family: "DECLARED";
2886
+ profile: {
2887
+ id: string;
2888
+ version: number;
2889
+ providerId: "QWEN_CN" | "VOLCENGINE_CN" | "GEMINI" | "OPENAI" | "XAI";
2890
+ modelId: string;
2891
+ protocol: "DOCUMENTED_ONLY";
2892
+ };
2893
+ matrix: {
2894
+ schemaVersion: 1;
2895
+ service: string;
2896
+ lifecycle: "ACTIVE" | "DEPRECATED" | "RETIRED";
2897
+ sources: {
2898
+ url: string;
2899
+ checkedAt: string;
2900
+ }[];
2901
+ modes: string[];
2902
+ claims: {
2903
+ capability: "SYNCHRONIZED_AUDIO" | "SPEECH_GENERATION" | "SPEECH_RECOGNITION" | "TRANSCRIPT_TIMESTAMPS" | "VOICE_REFERENCE" | "AUDIO_REFERENCE" | "AUDIO_DRIVEN_VIDEO" | "LIP_SYNCHRONIZATION" | "AUDIO_EDITING" | "SEPARATE_STEMS";
2904
+ modes: string[];
2905
+ support: "UNKNOWN" | "SUPPORTED" | "UNSUPPORTED";
2906
+ control: "NONE" | "PARAMETER" | "PROMPT" | "ALWAYS_ON" | "MEDIA_INPUT";
2907
+ access: "PUBLIC" | "QUALIFIED_ACCOUNT";
2908
+ parameterPath?: string | undefined;
2909
+ description?: string | undefined;
2910
+ }[];
2911
+ parameters: Record<string, {
2912
+ label: string;
2913
+ type: "STRING" | "NUMBER" | "BOOLEAN" | "INTEGER" | "STRING_ARRAY" | "STRING_MAP";
2914
+ required: boolean;
2915
+ min?: number | undefined;
2916
+ max?: number | undefined;
2917
+ maxLength?: number | undefined;
2918
+ options?: string[] | undefined;
2919
+ default?: string | number | boolean | string[] | Record<string, string> | undefined;
2920
+ unit?: string | undefined;
2921
+ description?: string | undefined;
2922
+ maxItems?: number | undefined;
2923
+ maxKeyLength?: number | undefined;
2924
+ numberOptions?: number[] | undefined;
2925
+ }>;
2926
+ constraints: {
2927
+ modes: string[];
2928
+ require: string[];
2929
+ forbid: string[];
2930
+ requireValues: Record<string, string | number | boolean>;
2931
+ reason: string;
2932
+ when?: {
2933
+ parameter: string;
2934
+ equals: string | number | boolean;
2935
+ } | undefined;
2936
+ }[];
2937
+ references: {
2938
+ kind: "AUDIO_REFERENCE" | "VOICE_ID" | "DRIVING_AUDIO";
2939
+ modes: string[];
2940
+ parameterPath: string;
2941
+ maxItems: number;
2942
+ formats: ("WAV" | "MP3")[];
2943
+ requiresVisual: boolean;
2944
+ access: "PUBLIC" | "QUALIFIED_ACCOUNT";
2945
+ minDurationMs?: number | undefined;
2946
+ maxDurationMs?: number | undefined;
2947
+ maxTotalDurationMs?: number | undefined;
2948
+ maxBytes?: number | undefined;
2949
+ }[];
2950
+ outputAudioChannels?: 2 | 1 | undefined;
2951
+ };
2952
+ };
2953
+ }, {
2954
+ tenantId: string & z.core.$brand<"TenantId">;
2955
+ id: string;
2956
+ version: number;
2957
+ enabled: boolean;
2958
+ definition: {
2959
+ family: "IMAGE";
2960
+ profile: {
2961
+ id: string;
2962
+ version: number;
2963
+ providerId: "QWEN_CN" | "VOLCENGINE_CN" | "GEMINI" | "OPENAI" | "XAI";
2964
+ modelId: string;
2965
+ protocol: "QWEN_EDIT" | "ARK_IMAGE" | "GEMINI_IMAGE" | "OPENAI_IMAGE" | "XAI_IMAGE";
2966
+ maxReferences: number;
2967
+ promptMaxUtf8Bytes: number;
2968
+ requestTimeoutMs: number;
2969
+ workingWidth: number;
2970
+ workingHeight: number;
2971
+ referenceRoles?: ("PRODUCT_IDENTITY" | "PRODUCT_PACKSHOT" | "CHARACTER_IDENTITY" | "WARDROBE" | "LOCATION" | "STYLE")[] | undefined;
2972
+ };
2973
+ costPolicy?: {
2974
+ currency: "USD";
2975
+ sourceUrl: string;
2976
+ rationale: string;
2977
+ validUntil: string;
2978
+ rules: {
2979
+ id: string;
2980
+ variant: {
2981
+ mode: "REFERENCE_TO_IMAGE" | "REFERENCE_TO_VIDEO" | "FIRST_FRAME_TO_VIDEO" | "FIRST_LAST_FRAME_TO_VIDEO";
2982
+ aspectRatio: "16:9" | "9:16";
2983
+ workingWidth: number;
2984
+ workingHeight: number;
2985
+ hasAudio: boolean;
2986
+ references: number;
2987
+ durationSeconds: number;
2988
+ };
2989
+ upperBoundMicros: number;
2990
+ }[];
2991
+ } | undefined;
2992
+ matrix?: {
2993
+ schemaVersion: 1;
2994
+ service: string;
2995
+ lifecycle: "ACTIVE" | "DEPRECATED" | "RETIRED";
2996
+ sources: {
2997
+ url: string;
2998
+ checkedAt: string;
2999
+ }[];
3000
+ modes: string[];
3001
+ claims: {
3002
+ capability: "SYNCHRONIZED_AUDIO" | "SPEECH_GENERATION" | "SPEECH_RECOGNITION" | "TRANSCRIPT_TIMESTAMPS" | "VOICE_REFERENCE" | "AUDIO_REFERENCE" | "AUDIO_DRIVEN_VIDEO" | "LIP_SYNCHRONIZATION" | "AUDIO_EDITING" | "SEPARATE_STEMS";
3003
+ modes: string[];
3004
+ support: "UNKNOWN" | "SUPPORTED" | "UNSUPPORTED";
3005
+ control: "NONE" | "PARAMETER" | "PROMPT" | "ALWAYS_ON" | "MEDIA_INPUT";
3006
+ access: "PUBLIC" | "QUALIFIED_ACCOUNT";
3007
+ parameterPath?: string | undefined;
3008
+ description?: string | undefined;
3009
+ }[];
3010
+ parameters: Record<string, {
3011
+ label: string;
3012
+ type: "STRING" | "NUMBER" | "BOOLEAN" | "INTEGER" | "STRING_ARRAY" | "STRING_MAP";
3013
+ required: boolean;
3014
+ min?: number | undefined;
3015
+ max?: number | undefined;
3016
+ maxLength?: number | undefined;
3017
+ options?: string[] | undefined;
3018
+ default?: string | number | boolean | string[] | Record<string, string> | undefined;
3019
+ unit?: string | undefined;
3020
+ description?: string | undefined;
3021
+ maxItems?: number | undefined;
3022
+ maxKeyLength?: number | undefined;
3023
+ numberOptions?: number[] | undefined;
3024
+ }>;
3025
+ constraints: {
3026
+ modes: string[];
3027
+ require: string[];
3028
+ forbid: string[];
3029
+ requireValues: Record<string, string | number | boolean>;
3030
+ reason: string;
3031
+ when?: {
3032
+ parameter: string;
3033
+ equals: string | number | boolean;
3034
+ } | undefined;
3035
+ }[];
3036
+ references: {
3037
+ kind: "AUDIO_REFERENCE" | "VOICE_ID" | "DRIVING_AUDIO";
3038
+ modes: string[];
3039
+ parameterPath: string;
3040
+ maxItems: number;
3041
+ formats: ("WAV" | "MP3")[];
3042
+ requiresVisual: boolean;
3043
+ access: "PUBLIC" | "QUALIFIED_ACCOUNT";
3044
+ minDurationMs?: number | undefined;
3045
+ maxDurationMs?: number | undefined;
3046
+ maxTotalDurationMs?: number | undefined;
3047
+ maxBytes?: number | undefined;
3048
+ }[];
3049
+ outputAudioChannels?: 2 | 1 | undefined;
3050
+ } | undefined;
3051
+ } | {
3052
+ family: "VIDEO";
3053
+ profile: {
3054
+ id: string;
3055
+ version: number;
3056
+ providerId: "QWEN_CN" | "VOLCENGINE_CN" | "GEMINI" | "OPENAI" | "XAI";
3057
+ modelId: string;
3058
+ protocol: "QWEN_VIDEO" | "VOLCENGINE_VIDEO";
3059
+ requestTimeoutMs: number;
3060
+ promptMaxCharacters: number;
3061
+ resolution: "720P" | "1080P";
3062
+ adapterVersion: string;
3063
+ capabilities: {
3064
+ frameRate: 30 | 24;
3065
+ hasAudio: boolean;
3066
+ workingWidth: number;
3067
+ workingHeight: number;
3068
+ mediaType: "VIDEO";
3069
+ modes: ("REFERENCE_TO_VIDEO" | "FIRST_FRAME_TO_VIDEO" | "FIRST_LAST_FRAME_TO_VIDEO")[];
3070
+ referenceRoles: ("PRODUCT_IDENTITY" | "PRODUCT_PACKSHOT" | "CHARACTER_IDENTITY" | "WARDROBE" | "LOCATION" | "STYLE" | "START_FRAME_ANCHOR" | "END_FRAME_ANCHOR")[];
3071
+ aspectRatios: ("16:9" | "9:16")[];
3072
+ minDurationSeconds: number;
3073
+ maxDurationSeconds: number;
3074
+ maxReferences: number;
3075
+ combineAnchorsAndReferences: boolean;
3076
+ correlationStrategy: "PROVIDER_TASK_ID";
3077
+ sourceFormat?: {
3078
+ videoCodec: "hevc";
3079
+ pixelFormat: "yuv420p10le";
3080
+ } | undefined;
3081
+ nativeAudioChannels?: 2 | 1 | undefined;
3082
+ };
3083
+ };
3084
+ costPolicy?: {
3085
+ currency: "USD";
3086
+ sourceUrl: string;
3087
+ rationale: string;
3088
+ validUntil: string;
3089
+ rules: {
3090
+ id: string;
3091
+ variant: {
3092
+ mode: "REFERENCE_TO_IMAGE" | "REFERENCE_TO_VIDEO" | "FIRST_FRAME_TO_VIDEO" | "FIRST_LAST_FRAME_TO_VIDEO";
3093
+ aspectRatio: "16:9" | "9:16";
3094
+ workingWidth: number;
3095
+ workingHeight: number;
3096
+ hasAudio: boolean;
3097
+ references: number;
3098
+ durationSeconds: number;
3099
+ };
3100
+ upperBoundMicros: number;
3101
+ }[];
3102
+ } | undefined;
3103
+ matrix?: {
3104
+ schemaVersion: 1;
3105
+ service: string;
3106
+ lifecycle: "ACTIVE" | "DEPRECATED" | "RETIRED";
3107
+ sources: {
3108
+ url: string;
3109
+ checkedAt: string;
3110
+ }[];
3111
+ modes: string[];
3112
+ claims: {
3113
+ capability: "SYNCHRONIZED_AUDIO" | "SPEECH_GENERATION" | "SPEECH_RECOGNITION" | "TRANSCRIPT_TIMESTAMPS" | "VOICE_REFERENCE" | "AUDIO_REFERENCE" | "AUDIO_DRIVEN_VIDEO" | "LIP_SYNCHRONIZATION" | "AUDIO_EDITING" | "SEPARATE_STEMS";
3114
+ modes: string[];
3115
+ support: "UNKNOWN" | "SUPPORTED" | "UNSUPPORTED";
3116
+ control: "NONE" | "PARAMETER" | "PROMPT" | "ALWAYS_ON" | "MEDIA_INPUT";
3117
+ access: "PUBLIC" | "QUALIFIED_ACCOUNT";
3118
+ parameterPath?: string | undefined;
3119
+ description?: string | undefined;
3120
+ }[];
3121
+ parameters: Record<string, {
3122
+ label: string;
3123
+ type: "STRING" | "NUMBER" | "BOOLEAN" | "INTEGER" | "STRING_ARRAY" | "STRING_MAP";
3124
+ required: boolean;
3125
+ min?: number | undefined;
3126
+ max?: number | undefined;
3127
+ maxLength?: number | undefined;
3128
+ options?: string[] | undefined;
3129
+ default?: string | number | boolean | string[] | Record<string, string> | undefined;
3130
+ unit?: string | undefined;
3131
+ description?: string | undefined;
3132
+ maxItems?: number | undefined;
3133
+ maxKeyLength?: number | undefined;
3134
+ numberOptions?: number[] | undefined;
3135
+ }>;
3136
+ constraints: {
3137
+ modes: string[];
3138
+ require: string[];
3139
+ forbid: string[];
3140
+ requireValues: Record<string, string | number | boolean>;
3141
+ reason: string;
3142
+ when?: {
3143
+ parameter: string;
3144
+ equals: string | number | boolean;
3145
+ } | undefined;
3146
+ }[];
3147
+ references: {
3148
+ kind: "AUDIO_REFERENCE" | "VOICE_ID" | "DRIVING_AUDIO";
3149
+ modes: string[];
3150
+ parameterPath: string;
3151
+ maxItems: number;
3152
+ formats: ("WAV" | "MP3")[];
3153
+ requiresVisual: boolean;
3154
+ access: "PUBLIC" | "QUALIFIED_ACCOUNT";
3155
+ minDurationMs?: number | undefined;
3156
+ maxDurationMs?: number | undefined;
3157
+ maxTotalDurationMs?: number | undefined;
3158
+ maxBytes?: number | undefined;
3159
+ }[];
3160
+ outputAudioChannels?: 2 | 1 | undefined;
3161
+ } | undefined;
3162
+ } | {
3163
+ family: "SPEECH";
3164
+ profile: {
3165
+ id: string;
3166
+ version: number;
3167
+ providerId: "QWEN_CN" | "VOLCENGINE_CN" | "GEMINI" | "OPENAI" | "XAI";
3168
+ modelId: string | null;
3169
+ protocol: "QWEN_TTS" | "QWEN_AUDIO_TTS" | "OPENAI_TTS" | "XAI_TTS" | "GEMINI_INTERACTIONS_TTS" | "VOLCENGINE_TTS";
3170
+ label: string;
3171
+ textMaxCharacters: number;
3172
+ requestTimeoutMs: number;
3173
+ workspaceRequired: boolean;
3174
+ voices: {
3175
+ id: string;
3176
+ label: string;
3177
+ languages?: string[] | undefined;
3178
+ parameterDefaults?: Record<string, string | number | boolean | string[] | Record<string, string>> | undefined;
3179
+ parameterOptions?: Record<string, string[]> | undefined;
3180
+ unsupportedParameters?: string[] | undefined;
3181
+ }[];
3182
+ languages: string[];
3183
+ parameters: Record<string, {
3184
+ label: string;
3185
+ type: "STRING" | "NUMBER" | "BOOLEAN" | "INTEGER" | "STRING_ARRAY" | "STRING_MAP";
3186
+ required: boolean;
3187
+ min?: number | undefined;
3188
+ max?: number | undefined;
3189
+ maxLength?: number | undefined;
3190
+ options?: string[] | undefined;
3191
+ default?: string | number | boolean | string[] | Record<string, string> | undefined;
3192
+ unit?: string | undefined;
3193
+ description?: string | undefined;
3194
+ maxItems?: number | undefined;
3195
+ maxKeyLength?: number | undefined;
3196
+ }>;
3197
+ sourceUrl: string;
3198
+ verifiedAt: string;
3199
+ providerTextMaxCharacters: number | null;
3200
+ resourceId: string | null;
3201
+ output: "PCM_S16LE_48000_V1";
3202
+ normalizationVersion: "SPEECH_PCM_V1";
3203
+ };
3204
+ matrix?: {
3205
+ schemaVersion: 1;
3206
+ service: string;
3207
+ lifecycle: "ACTIVE" | "DEPRECATED" | "RETIRED";
3208
+ sources: {
3209
+ url: string;
3210
+ checkedAt: string;
3211
+ }[];
3212
+ modes: string[];
3213
+ claims: {
3214
+ capability: "SYNCHRONIZED_AUDIO" | "SPEECH_GENERATION" | "SPEECH_RECOGNITION" | "TRANSCRIPT_TIMESTAMPS" | "VOICE_REFERENCE" | "AUDIO_REFERENCE" | "AUDIO_DRIVEN_VIDEO" | "LIP_SYNCHRONIZATION" | "AUDIO_EDITING" | "SEPARATE_STEMS";
3215
+ modes: string[];
3216
+ support: "UNKNOWN" | "SUPPORTED" | "UNSUPPORTED";
3217
+ control: "NONE" | "PARAMETER" | "PROMPT" | "ALWAYS_ON" | "MEDIA_INPUT";
3218
+ access: "PUBLIC" | "QUALIFIED_ACCOUNT";
3219
+ parameterPath?: string | undefined;
3220
+ description?: string | undefined;
3221
+ }[];
3222
+ parameters: Record<string, {
3223
+ label: string;
3224
+ type: "STRING" | "NUMBER" | "BOOLEAN" | "INTEGER" | "STRING_ARRAY" | "STRING_MAP";
3225
+ required: boolean;
3226
+ min?: number | undefined;
3227
+ max?: number | undefined;
3228
+ maxLength?: number | undefined;
3229
+ options?: string[] | undefined;
3230
+ default?: string | number | boolean | string[] | Record<string, string> | undefined;
3231
+ unit?: string | undefined;
3232
+ description?: string | undefined;
3233
+ maxItems?: number | undefined;
3234
+ maxKeyLength?: number | undefined;
3235
+ numberOptions?: number[] | undefined;
3236
+ }>;
3237
+ constraints: {
3238
+ modes: string[];
3239
+ require: string[];
3240
+ forbid: string[];
3241
+ requireValues: Record<string, string | number | boolean>;
3242
+ reason: string;
3243
+ when?: {
3244
+ parameter: string;
3245
+ equals: string | number | boolean;
3246
+ } | undefined;
3247
+ }[];
3248
+ references: {
3249
+ kind: "AUDIO_REFERENCE" | "VOICE_ID" | "DRIVING_AUDIO";
3250
+ modes: string[];
3251
+ parameterPath: string;
3252
+ maxItems: number;
3253
+ formats: ("WAV" | "MP3")[];
3254
+ requiresVisual: boolean;
3255
+ access: "PUBLIC" | "QUALIFIED_ACCOUNT";
3256
+ minDurationMs?: number | undefined;
3257
+ maxDurationMs?: number | undefined;
3258
+ maxTotalDurationMs?: number | undefined;
3259
+ maxBytes?: number | undefined;
3260
+ }[];
3261
+ outputAudioChannels?: 2 | 1 | undefined;
3262
+ } | undefined;
3263
+ } | {
3264
+ family: "OBSERVATION";
3265
+ profile: {
3266
+ id: string;
3267
+ version: number;
3268
+ providerId: "QWEN_CN" | "VOLCENGINE_CN" | "GEMINI" | "OPENAI" | "XAI";
3269
+ sourceUrl: string;
3270
+ verifiedAt: string;
3271
+ modelId: string;
3272
+ label: string;
3273
+ protocol: "OPENAI_TRANSCRIPTION_V1" | "OPENAI_WHISPER_TRANSCRIPTION_V1" | "QWEN_ASR_V1";
3274
+ modes: ["TRANSCRIPTION"];
3275
+ inputKinds: ("AUDIO" | "VIDEO")[];
3276
+ requestTimeoutMs: number;
3277
+ maxBytes: number;
3278
+ maxDurationMs: number;
3279
+ parameters: Record<string, {
3280
+ label: string;
3281
+ type: "STRING" | "NUMBER" | "BOOLEAN" | "INTEGER" | "STRING_ARRAY" | "STRING_MAP";
3282
+ required: boolean;
3283
+ min?: number | undefined;
3284
+ max?: number | undefined;
3285
+ maxLength?: number | undefined;
3286
+ options?: string[] | undefined;
3287
+ default?: string | number | boolean | string[] | Record<string, string> | undefined;
3288
+ unit?: string | undefined;
3289
+ description?: string | undefined;
3290
+ maxItems?: number | undefined;
3291
+ maxKeyLength?: number | undefined;
3292
+ numberOptions?: number[] | undefined;
3293
+ }>;
3294
+ } | {
3295
+ id: string;
3296
+ version: number;
3297
+ providerId: "QWEN_CN" | "VOLCENGINE_CN" | "GEMINI" | "OPENAI" | "XAI";
3298
+ sourceUrl: string;
3299
+ modelId: string;
3300
+ label: string;
3301
+ protocol: "GEMINI_INTERACTIONS_V1" | "QIANWEN_VIDEO_V1";
3302
+ modes: ("AUDIO" | "VIDEO" | "AUDIOVISUAL" | "VIDEO_ALL_FRAMES")[];
3303
+ requestTimeoutMs: number;
3304
+ maxBytes: number;
3305
+ maxDurationMs: number;
3306
+ parameters: Record<string, {
3307
+ type: "STRING" | "NUMBER" | "BOOLEAN" | "INTEGER";
3308
+ default: string | number | boolean;
3309
+ min?: number | undefined;
3310
+ max?: number | undefined;
3311
+ options?: string[] | undefined;
3312
+ }>;
3313
+ };
3314
+ matrix?: {
3315
+ schemaVersion: 1;
3316
+ service: string;
3317
+ lifecycle: "ACTIVE" | "DEPRECATED" | "RETIRED";
3318
+ sources: {
3319
+ url: string;
3320
+ checkedAt: string;
3321
+ }[];
3322
+ modes: string[];
3323
+ claims: {
3324
+ capability: "SYNCHRONIZED_AUDIO" | "SPEECH_GENERATION" | "SPEECH_RECOGNITION" | "TRANSCRIPT_TIMESTAMPS" | "VOICE_REFERENCE" | "AUDIO_REFERENCE" | "AUDIO_DRIVEN_VIDEO" | "LIP_SYNCHRONIZATION" | "AUDIO_EDITING" | "SEPARATE_STEMS";
3325
+ modes: string[];
3326
+ support: "UNKNOWN" | "SUPPORTED" | "UNSUPPORTED";
3327
+ control: "NONE" | "PARAMETER" | "PROMPT" | "ALWAYS_ON" | "MEDIA_INPUT";
3328
+ access: "PUBLIC" | "QUALIFIED_ACCOUNT";
3329
+ parameterPath?: string | undefined;
3330
+ description?: string | undefined;
3331
+ }[];
3332
+ parameters: Record<string, {
3333
+ label: string;
3334
+ type: "STRING" | "NUMBER" | "BOOLEAN" | "INTEGER" | "STRING_ARRAY" | "STRING_MAP";
3335
+ required: boolean;
3336
+ min?: number | undefined;
3337
+ max?: number | undefined;
3338
+ maxLength?: number | undefined;
3339
+ options?: string[] | undefined;
3340
+ default?: string | number | boolean | string[] | Record<string, string> | undefined;
3341
+ unit?: string | undefined;
3342
+ description?: string | undefined;
3343
+ maxItems?: number | undefined;
3344
+ maxKeyLength?: number | undefined;
3345
+ numberOptions?: number[] | undefined;
3346
+ }>;
3347
+ constraints: {
3348
+ modes: string[];
3349
+ require: string[];
3350
+ forbid: string[];
3351
+ requireValues: Record<string, string | number | boolean>;
3352
+ reason: string;
3353
+ when?: {
3354
+ parameter: string;
3355
+ equals: string | number | boolean;
3356
+ } | undefined;
3357
+ }[];
3358
+ references: {
3359
+ kind: "AUDIO_REFERENCE" | "VOICE_ID" | "DRIVING_AUDIO";
3360
+ modes: string[];
3361
+ parameterPath: string;
3362
+ maxItems: number;
3363
+ formats: ("WAV" | "MP3")[];
3364
+ requiresVisual: boolean;
3365
+ access: "PUBLIC" | "QUALIFIED_ACCOUNT";
3366
+ minDurationMs?: number | undefined;
3367
+ maxDurationMs?: number | undefined;
3368
+ maxTotalDurationMs?: number | undefined;
3369
+ maxBytes?: number | undefined;
3370
+ }[];
3371
+ outputAudioChannels?: 2 | 1 | undefined;
3372
+ } | undefined;
3373
+ } | {
3374
+ family: "DECLARED";
3375
+ profile: {
3376
+ id: string;
3377
+ version: number;
3378
+ providerId: "QWEN_CN" | "VOLCENGINE_CN" | "GEMINI" | "OPENAI" | "XAI";
3379
+ modelId: string;
3380
+ protocol: "DOCUMENTED_ONLY";
3381
+ };
3382
+ matrix: {
3383
+ schemaVersion: 1;
3384
+ service: string;
3385
+ lifecycle: "ACTIVE" | "DEPRECATED" | "RETIRED";
3386
+ sources: {
3387
+ url: string;
3388
+ checkedAt: string;
3389
+ }[];
3390
+ modes: string[];
3391
+ claims: {
3392
+ capability: "SYNCHRONIZED_AUDIO" | "SPEECH_GENERATION" | "SPEECH_RECOGNITION" | "TRANSCRIPT_TIMESTAMPS" | "VOICE_REFERENCE" | "AUDIO_REFERENCE" | "AUDIO_DRIVEN_VIDEO" | "LIP_SYNCHRONIZATION" | "AUDIO_EDITING" | "SEPARATE_STEMS";
3393
+ modes: string[];
3394
+ support: "UNKNOWN" | "SUPPORTED" | "UNSUPPORTED";
3395
+ control: "NONE" | "PARAMETER" | "PROMPT" | "ALWAYS_ON" | "MEDIA_INPUT";
3396
+ access: "PUBLIC" | "QUALIFIED_ACCOUNT";
3397
+ parameterPath?: string | undefined;
3398
+ description?: string | undefined;
3399
+ }[];
3400
+ parameters: Record<string, {
3401
+ label: string;
3402
+ type: "STRING" | "NUMBER" | "BOOLEAN" | "INTEGER" | "STRING_ARRAY" | "STRING_MAP";
3403
+ required: boolean;
3404
+ min?: number | undefined;
3405
+ max?: number | undefined;
3406
+ maxLength?: number | undefined;
3407
+ options?: string[] | undefined;
3408
+ default?: string | number | boolean | string[] | Record<string, string> | undefined;
3409
+ unit?: string | undefined;
3410
+ description?: string | undefined;
3411
+ maxItems?: number | undefined;
3412
+ maxKeyLength?: number | undefined;
3413
+ numberOptions?: number[] | undefined;
3414
+ }>;
3415
+ constraints: {
3416
+ modes: string[];
3417
+ require: string[];
3418
+ forbid: string[];
3419
+ requireValues: Record<string, string | number | boolean>;
3420
+ reason: string;
3421
+ when?: {
3422
+ parameter: string;
3423
+ equals: string | number | boolean;
3424
+ } | undefined;
3425
+ }[];
3426
+ references: {
3427
+ kind: "AUDIO_REFERENCE" | "VOICE_ID" | "DRIVING_AUDIO";
3428
+ modes: string[];
3429
+ parameterPath: string;
3430
+ maxItems: number;
3431
+ formats: ("WAV" | "MP3")[];
3432
+ requiresVisual: boolean;
3433
+ access: "PUBLIC" | "QUALIFIED_ACCOUNT";
3434
+ minDurationMs?: number | undefined;
3435
+ maxDurationMs?: number | undefined;
3436
+ maxTotalDurationMs?: number | undefined;
3437
+ maxBytes?: number | undefined;
3438
+ }[];
3439
+ outputAudioChannels?: 2 | 1 | undefined;
3440
+ };
3441
+ };
3442
+ }, {
3443
+ tenantId: string;
3444
+ id: string;
3445
+ version: number;
3446
+ enabled: boolean;
3447
+ definition: {
3448
+ family: "IMAGE";
3449
+ profile: {
3450
+ id: string;
3451
+ version: number;
3452
+ providerId: "QWEN_CN" | "VOLCENGINE_CN" | "GEMINI" | "OPENAI" | "XAI";
3453
+ modelId: string;
3454
+ protocol: "QWEN_EDIT" | "ARK_IMAGE" | "GEMINI_IMAGE" | "OPENAI_IMAGE" | "XAI_IMAGE";
3455
+ maxReferences: number;
3456
+ promptMaxUtf8Bytes: number;
3457
+ requestTimeoutMs: number;
3458
+ workingWidth: number;
3459
+ workingHeight: number;
3460
+ referenceRoles?: ("PRODUCT_IDENTITY" | "PRODUCT_PACKSHOT" | "CHARACTER_IDENTITY" | "WARDROBE" | "LOCATION" | "STYLE")[] | undefined;
3461
+ };
3462
+ costPolicy?: {
3463
+ currency: "USD";
3464
+ sourceUrl: string;
3465
+ rationale: string;
3466
+ validUntil: string;
3467
+ rules: {
3468
+ id: string;
3469
+ variant: {
3470
+ mode: "REFERENCE_TO_IMAGE" | "REFERENCE_TO_VIDEO" | "FIRST_FRAME_TO_VIDEO" | "FIRST_LAST_FRAME_TO_VIDEO";
3471
+ aspectRatio: "16:9" | "9:16";
3472
+ workingWidth: number;
3473
+ workingHeight: number;
3474
+ hasAudio: boolean;
3475
+ references: number;
3476
+ durationSeconds: number;
3477
+ };
3478
+ upperBoundMicros: number;
3479
+ }[];
3480
+ } | undefined;
3481
+ matrix?: {
3482
+ schemaVersion: 1;
3483
+ service: string;
3484
+ lifecycle: "ACTIVE" | "DEPRECATED" | "RETIRED";
3485
+ sources: {
3486
+ url: string;
3487
+ checkedAt: string;
3488
+ }[];
3489
+ modes: string[];
3490
+ claims: {
3491
+ capability: "SYNCHRONIZED_AUDIO" | "SPEECH_GENERATION" | "SPEECH_RECOGNITION" | "TRANSCRIPT_TIMESTAMPS" | "VOICE_REFERENCE" | "AUDIO_REFERENCE" | "AUDIO_DRIVEN_VIDEO" | "LIP_SYNCHRONIZATION" | "AUDIO_EDITING" | "SEPARATE_STEMS";
3492
+ modes: string[];
3493
+ support: "UNKNOWN" | "SUPPORTED" | "UNSUPPORTED";
3494
+ control: "NONE" | "PARAMETER" | "PROMPT" | "ALWAYS_ON" | "MEDIA_INPUT";
3495
+ parameterPath?: string | undefined;
3496
+ access?: "PUBLIC" | "QUALIFIED_ACCOUNT" | undefined;
3497
+ description?: string | undefined;
3498
+ }[];
3499
+ parameters: Record<string, {
3500
+ label: string;
3501
+ type: "STRING" | "NUMBER" | "BOOLEAN" | "INTEGER" | "STRING_ARRAY" | "STRING_MAP";
3502
+ required?: boolean | undefined;
3503
+ min?: number | undefined;
3504
+ max?: number | undefined;
3505
+ maxLength?: number | undefined;
3506
+ options?: string[] | undefined;
3507
+ default?: string | number | boolean | string[] | Record<string, string> | undefined;
3508
+ unit?: string | undefined;
3509
+ description?: string | undefined;
3510
+ maxItems?: number | undefined;
3511
+ maxKeyLength?: number | undefined;
3512
+ numberOptions?: number[] | undefined;
3513
+ }>;
3514
+ constraints: {
3515
+ modes: string[];
3516
+ reason: string;
3517
+ when?: {
3518
+ parameter: string;
3519
+ equals: string | number | boolean;
3520
+ } | undefined;
3521
+ require?: string[] | undefined;
3522
+ forbid?: string[] | undefined;
3523
+ requireValues?: Record<string, string | number | boolean> | undefined;
3524
+ }[];
3525
+ references: {
3526
+ kind: "AUDIO_REFERENCE" | "VOICE_ID" | "DRIVING_AUDIO";
3527
+ modes: string[];
3528
+ parameterPath: string;
3529
+ maxItems: number;
3530
+ formats: ("WAV" | "MP3")[];
3531
+ requiresVisual: boolean;
3532
+ access: "PUBLIC" | "QUALIFIED_ACCOUNT";
3533
+ minDurationMs?: number | undefined;
3534
+ maxDurationMs?: number | undefined;
3535
+ maxTotalDurationMs?: number | undefined;
3536
+ maxBytes?: number | undefined;
3537
+ }[];
3538
+ outputAudioChannels?: 2 | 1 | undefined;
3539
+ } | undefined;
3540
+ } | {
3541
+ family: "VIDEO";
3542
+ profile: {
3543
+ id: string;
3544
+ version: number;
3545
+ providerId: "QWEN_CN" | "VOLCENGINE_CN" | "GEMINI" | "OPENAI" | "XAI";
3546
+ modelId: string;
3547
+ protocol: "QWEN_VIDEO" | "VOLCENGINE_VIDEO";
3548
+ requestTimeoutMs: number;
3549
+ promptMaxCharacters: number;
3550
+ resolution: "720P" | "1080P";
3551
+ adapterVersion: string;
3552
+ capabilities: {
3553
+ frameRate: 30 | 24;
3554
+ hasAudio: boolean;
3555
+ workingWidth: number;
3556
+ workingHeight: number;
3557
+ mediaType: "VIDEO";
3558
+ modes: ("REFERENCE_TO_VIDEO" | "FIRST_FRAME_TO_VIDEO" | "FIRST_LAST_FRAME_TO_VIDEO")[];
3559
+ referenceRoles: ("PRODUCT_IDENTITY" | "PRODUCT_PACKSHOT" | "CHARACTER_IDENTITY" | "WARDROBE" | "LOCATION" | "STYLE" | "START_FRAME_ANCHOR" | "END_FRAME_ANCHOR")[];
3560
+ aspectRatios: ("16:9" | "9:16")[];
3561
+ minDurationSeconds: number;
3562
+ maxDurationSeconds: number;
3563
+ maxReferences: number;
3564
+ combineAnchorsAndReferences: boolean;
3565
+ correlationStrategy: "PROVIDER_TASK_ID";
3566
+ sourceFormat?: {
3567
+ videoCodec: "hevc";
3568
+ pixelFormat: "yuv420p10le";
3569
+ } | undefined;
3570
+ nativeAudioChannels?: 2 | 1 | undefined;
3571
+ };
3572
+ };
3573
+ costPolicy?: {
3574
+ currency: "USD";
3575
+ sourceUrl: string;
3576
+ rationale: string;
3577
+ validUntil: string;
3578
+ rules: {
3579
+ id: string;
3580
+ variant: {
3581
+ mode: "REFERENCE_TO_IMAGE" | "REFERENCE_TO_VIDEO" | "FIRST_FRAME_TO_VIDEO" | "FIRST_LAST_FRAME_TO_VIDEO";
3582
+ aspectRatio: "16:9" | "9:16";
3583
+ workingWidth: number;
3584
+ workingHeight: number;
3585
+ hasAudio: boolean;
3586
+ references: number;
3587
+ durationSeconds: number;
3588
+ };
3589
+ upperBoundMicros: number;
3590
+ }[];
3591
+ } | undefined;
3592
+ matrix?: {
3593
+ schemaVersion: 1;
3594
+ service: string;
3595
+ lifecycle: "ACTIVE" | "DEPRECATED" | "RETIRED";
3596
+ sources: {
3597
+ url: string;
3598
+ checkedAt: string;
3599
+ }[];
3600
+ modes: string[];
3601
+ claims: {
3602
+ capability: "SYNCHRONIZED_AUDIO" | "SPEECH_GENERATION" | "SPEECH_RECOGNITION" | "TRANSCRIPT_TIMESTAMPS" | "VOICE_REFERENCE" | "AUDIO_REFERENCE" | "AUDIO_DRIVEN_VIDEO" | "LIP_SYNCHRONIZATION" | "AUDIO_EDITING" | "SEPARATE_STEMS";
3603
+ modes: string[];
3604
+ support: "UNKNOWN" | "SUPPORTED" | "UNSUPPORTED";
3605
+ control: "NONE" | "PARAMETER" | "PROMPT" | "ALWAYS_ON" | "MEDIA_INPUT";
3606
+ parameterPath?: string | undefined;
3607
+ access?: "PUBLIC" | "QUALIFIED_ACCOUNT" | undefined;
3608
+ description?: string | undefined;
3609
+ }[];
3610
+ parameters: Record<string, {
3611
+ label: string;
3612
+ type: "STRING" | "NUMBER" | "BOOLEAN" | "INTEGER" | "STRING_ARRAY" | "STRING_MAP";
3613
+ required?: boolean | undefined;
3614
+ min?: number | undefined;
3615
+ max?: number | undefined;
3616
+ maxLength?: number | undefined;
3617
+ options?: string[] | undefined;
3618
+ default?: string | number | boolean | string[] | Record<string, string> | undefined;
3619
+ unit?: string | undefined;
3620
+ description?: string | undefined;
3621
+ maxItems?: number | undefined;
3622
+ maxKeyLength?: number | undefined;
3623
+ numberOptions?: number[] | undefined;
3624
+ }>;
3625
+ constraints: {
3626
+ modes: string[];
3627
+ reason: string;
3628
+ when?: {
3629
+ parameter: string;
3630
+ equals: string | number | boolean;
3631
+ } | undefined;
3632
+ require?: string[] | undefined;
3633
+ forbid?: string[] | undefined;
3634
+ requireValues?: Record<string, string | number | boolean> | undefined;
3635
+ }[];
3636
+ references: {
3637
+ kind: "AUDIO_REFERENCE" | "VOICE_ID" | "DRIVING_AUDIO";
3638
+ modes: string[];
3639
+ parameterPath: string;
3640
+ maxItems: number;
3641
+ formats: ("WAV" | "MP3")[];
3642
+ requiresVisual: boolean;
3643
+ access: "PUBLIC" | "QUALIFIED_ACCOUNT";
3644
+ minDurationMs?: number | undefined;
3645
+ maxDurationMs?: number | undefined;
3646
+ maxTotalDurationMs?: number | undefined;
3647
+ maxBytes?: number | undefined;
3648
+ }[];
3649
+ outputAudioChannels?: 2 | 1 | undefined;
3650
+ } | undefined;
3651
+ } | {
3652
+ family: "SPEECH";
3653
+ profile: {
3654
+ id: string;
3655
+ version: number;
3656
+ providerId: "QWEN_CN" | "VOLCENGINE_CN" | "GEMINI" | "OPENAI" | "XAI";
3657
+ modelId: string | null;
3658
+ protocol: "QWEN_TTS" | "QWEN_AUDIO_TTS" | "OPENAI_TTS" | "XAI_TTS" | "GEMINI_INTERACTIONS_TTS" | "VOLCENGINE_TTS";
3659
+ label: string;
3660
+ textMaxCharacters: number;
3661
+ requestTimeoutMs: number;
3662
+ workspaceRequired: boolean;
3663
+ voices: {
3664
+ id: string;
3665
+ label: string;
3666
+ languages?: string[] | undefined;
3667
+ parameterDefaults?: Record<string, string | number | boolean | string[] | Record<string, string>> | undefined;
3668
+ parameterOptions?: Record<string, string[]> | undefined;
3669
+ unsupportedParameters?: string[] | undefined;
3670
+ }[];
3671
+ languages: string[];
3672
+ parameters: Record<string, {
3673
+ label: string;
3674
+ type: "STRING" | "NUMBER" | "BOOLEAN" | "INTEGER" | "STRING_ARRAY" | "STRING_MAP";
3675
+ required?: boolean | undefined;
3676
+ min?: number | undefined;
3677
+ max?: number | undefined;
3678
+ maxLength?: number | undefined;
3679
+ options?: string[] | undefined;
3680
+ default?: string | number | boolean | string[] | Record<string, string> | undefined;
3681
+ unit?: string | undefined;
3682
+ description?: string | undefined;
3683
+ maxItems?: number | undefined;
3684
+ maxKeyLength?: number | undefined;
3685
+ }>;
3686
+ sourceUrl: string;
3687
+ verifiedAt: string;
3688
+ providerTextMaxCharacters: number | null;
3689
+ resourceId: string | null;
3690
+ output: "PCM_S16LE_48000_V1";
3691
+ normalizationVersion: "SPEECH_PCM_V1";
3692
+ };
3693
+ matrix?: {
3694
+ schemaVersion: 1;
3695
+ service: string;
3696
+ lifecycle: "ACTIVE" | "DEPRECATED" | "RETIRED";
3697
+ sources: {
3698
+ url: string;
3699
+ checkedAt: string;
3700
+ }[];
3701
+ modes: string[];
3702
+ claims: {
3703
+ capability: "SYNCHRONIZED_AUDIO" | "SPEECH_GENERATION" | "SPEECH_RECOGNITION" | "TRANSCRIPT_TIMESTAMPS" | "VOICE_REFERENCE" | "AUDIO_REFERENCE" | "AUDIO_DRIVEN_VIDEO" | "LIP_SYNCHRONIZATION" | "AUDIO_EDITING" | "SEPARATE_STEMS";
3704
+ modes: string[];
3705
+ support: "UNKNOWN" | "SUPPORTED" | "UNSUPPORTED";
3706
+ control: "NONE" | "PARAMETER" | "PROMPT" | "ALWAYS_ON" | "MEDIA_INPUT";
3707
+ parameterPath?: string | undefined;
3708
+ access?: "PUBLIC" | "QUALIFIED_ACCOUNT" | undefined;
3709
+ description?: string | undefined;
3710
+ }[];
3711
+ parameters: Record<string, {
3712
+ label: string;
3713
+ type: "STRING" | "NUMBER" | "BOOLEAN" | "INTEGER" | "STRING_ARRAY" | "STRING_MAP";
3714
+ required?: boolean | undefined;
3715
+ min?: number | undefined;
3716
+ max?: number | undefined;
3717
+ maxLength?: number | undefined;
3718
+ options?: string[] | undefined;
3719
+ default?: string | number | boolean | string[] | Record<string, string> | undefined;
3720
+ unit?: string | undefined;
3721
+ description?: string | undefined;
3722
+ maxItems?: number | undefined;
3723
+ maxKeyLength?: number | undefined;
3724
+ numberOptions?: number[] | undefined;
3725
+ }>;
3726
+ constraints: {
3727
+ modes: string[];
3728
+ reason: string;
3729
+ when?: {
3730
+ parameter: string;
3731
+ equals: string | number | boolean;
3732
+ } | undefined;
3733
+ require?: string[] | undefined;
3734
+ forbid?: string[] | undefined;
3735
+ requireValues?: Record<string, string | number | boolean> | undefined;
3736
+ }[];
3737
+ references: {
3738
+ kind: "AUDIO_REFERENCE" | "VOICE_ID" | "DRIVING_AUDIO";
3739
+ modes: string[];
3740
+ parameterPath: string;
3741
+ maxItems: number;
3742
+ formats: ("WAV" | "MP3")[];
3743
+ requiresVisual: boolean;
3744
+ access: "PUBLIC" | "QUALIFIED_ACCOUNT";
3745
+ minDurationMs?: number | undefined;
3746
+ maxDurationMs?: number | undefined;
3747
+ maxTotalDurationMs?: number | undefined;
3748
+ maxBytes?: number | undefined;
3749
+ }[];
3750
+ outputAudioChannels?: 2 | 1 | undefined;
3751
+ } | undefined;
3752
+ } | {
3753
+ family: "OBSERVATION";
3754
+ profile: {
3755
+ id: string;
3756
+ version: number;
3757
+ providerId: "QWEN_CN" | "VOLCENGINE_CN" | "GEMINI" | "OPENAI" | "XAI";
3758
+ sourceUrl: string;
3759
+ verifiedAt: string;
3760
+ modelId: string;
3761
+ label: string;
3762
+ protocol: "OPENAI_TRANSCRIPTION_V1" | "OPENAI_WHISPER_TRANSCRIPTION_V1" | "QWEN_ASR_V1";
3763
+ modes: ["TRANSCRIPTION"];
3764
+ inputKinds: ("AUDIO" | "VIDEO")[];
3765
+ requestTimeoutMs: number;
3766
+ maxBytes: number;
3767
+ maxDurationMs: number;
3768
+ parameters: Record<string, {
3769
+ label: string;
3770
+ type: "STRING" | "NUMBER" | "BOOLEAN" | "INTEGER" | "STRING_ARRAY" | "STRING_MAP";
3771
+ required?: boolean | undefined;
3772
+ min?: number | undefined;
3773
+ max?: number | undefined;
3774
+ maxLength?: number | undefined;
3775
+ options?: string[] | undefined;
3776
+ default?: string | number | boolean | string[] | Record<string, string> | undefined;
3777
+ unit?: string | undefined;
3778
+ description?: string | undefined;
3779
+ maxItems?: number | undefined;
3780
+ maxKeyLength?: number | undefined;
3781
+ numberOptions?: number[] | undefined;
3782
+ }>;
3783
+ } | {
3784
+ id: string;
3785
+ version: number;
3786
+ providerId: "QWEN_CN" | "VOLCENGINE_CN" | "GEMINI" | "OPENAI" | "XAI";
3787
+ sourceUrl: string;
3788
+ modelId: string;
3789
+ label: string;
3790
+ protocol: "GEMINI_INTERACTIONS_V1" | "QIANWEN_VIDEO_V1";
3791
+ modes: ("AUDIO" | "VIDEO" | "AUDIOVISUAL" | "VIDEO_ALL_FRAMES")[];
3792
+ requestTimeoutMs: number;
3793
+ maxBytes: number;
3794
+ maxDurationMs: number;
3795
+ parameters: Record<string, {
3796
+ type: "STRING" | "NUMBER" | "BOOLEAN" | "INTEGER";
3797
+ default: string | number | boolean;
3798
+ min?: number | undefined;
3799
+ max?: number | undefined;
3800
+ options?: string[] | undefined;
3801
+ }>;
3802
+ };
3803
+ matrix?: {
3804
+ schemaVersion: 1;
3805
+ service: string;
3806
+ lifecycle: "ACTIVE" | "DEPRECATED" | "RETIRED";
3807
+ sources: {
3808
+ url: string;
3809
+ checkedAt: string;
3810
+ }[];
3811
+ modes: string[];
3812
+ claims: {
3813
+ capability: "SYNCHRONIZED_AUDIO" | "SPEECH_GENERATION" | "SPEECH_RECOGNITION" | "TRANSCRIPT_TIMESTAMPS" | "VOICE_REFERENCE" | "AUDIO_REFERENCE" | "AUDIO_DRIVEN_VIDEO" | "LIP_SYNCHRONIZATION" | "AUDIO_EDITING" | "SEPARATE_STEMS";
3814
+ modes: string[];
3815
+ support: "UNKNOWN" | "SUPPORTED" | "UNSUPPORTED";
3816
+ control: "NONE" | "PARAMETER" | "PROMPT" | "ALWAYS_ON" | "MEDIA_INPUT";
3817
+ parameterPath?: string | undefined;
3818
+ access?: "PUBLIC" | "QUALIFIED_ACCOUNT" | undefined;
3819
+ description?: string | undefined;
3820
+ }[];
3821
+ parameters: Record<string, {
3822
+ label: string;
3823
+ type: "STRING" | "NUMBER" | "BOOLEAN" | "INTEGER" | "STRING_ARRAY" | "STRING_MAP";
3824
+ required?: boolean | undefined;
3825
+ min?: number | undefined;
3826
+ max?: number | undefined;
3827
+ maxLength?: number | undefined;
3828
+ options?: string[] | undefined;
3829
+ default?: string | number | boolean | string[] | Record<string, string> | undefined;
3830
+ unit?: string | undefined;
3831
+ description?: string | undefined;
3832
+ maxItems?: number | undefined;
3833
+ maxKeyLength?: number | undefined;
3834
+ numberOptions?: number[] | undefined;
3835
+ }>;
3836
+ constraints: {
3837
+ modes: string[];
3838
+ reason: string;
3839
+ when?: {
3840
+ parameter: string;
3841
+ equals: string | number | boolean;
3842
+ } | undefined;
3843
+ require?: string[] | undefined;
3844
+ forbid?: string[] | undefined;
3845
+ requireValues?: Record<string, string | number | boolean> | undefined;
3846
+ }[];
3847
+ references: {
3848
+ kind: "AUDIO_REFERENCE" | "VOICE_ID" | "DRIVING_AUDIO";
3849
+ modes: string[];
3850
+ parameterPath: string;
3851
+ maxItems: number;
3852
+ formats: ("WAV" | "MP3")[];
3853
+ requiresVisual: boolean;
3854
+ access: "PUBLIC" | "QUALIFIED_ACCOUNT";
3855
+ minDurationMs?: number | undefined;
3856
+ maxDurationMs?: number | undefined;
3857
+ maxTotalDurationMs?: number | undefined;
3858
+ maxBytes?: number | undefined;
3859
+ }[];
3860
+ outputAudioChannels?: 2 | 1 | undefined;
3861
+ } | undefined;
3862
+ } | {
3863
+ family: "DECLARED";
3864
+ profile: {
3865
+ id: string;
3866
+ version: number;
3867
+ providerId: "QWEN_CN" | "VOLCENGINE_CN" | "GEMINI" | "OPENAI" | "XAI";
3868
+ modelId: string;
3869
+ protocol: "DOCUMENTED_ONLY";
3870
+ };
3871
+ matrix: {
3872
+ schemaVersion: 1;
3873
+ service: string;
3874
+ lifecycle: "ACTIVE" | "DEPRECATED" | "RETIRED";
3875
+ sources: {
3876
+ url: string;
3877
+ checkedAt: string;
3878
+ }[];
3879
+ modes: string[];
3880
+ claims: {
3881
+ capability: "SYNCHRONIZED_AUDIO" | "SPEECH_GENERATION" | "SPEECH_RECOGNITION" | "TRANSCRIPT_TIMESTAMPS" | "VOICE_REFERENCE" | "AUDIO_REFERENCE" | "AUDIO_DRIVEN_VIDEO" | "LIP_SYNCHRONIZATION" | "AUDIO_EDITING" | "SEPARATE_STEMS";
3882
+ modes: string[];
3883
+ support: "UNKNOWN" | "SUPPORTED" | "UNSUPPORTED";
3884
+ control: "NONE" | "PARAMETER" | "PROMPT" | "ALWAYS_ON" | "MEDIA_INPUT";
3885
+ parameterPath?: string | undefined;
3886
+ access?: "PUBLIC" | "QUALIFIED_ACCOUNT" | undefined;
3887
+ description?: string | undefined;
3888
+ }[];
3889
+ parameters: Record<string, {
3890
+ label: string;
3891
+ type: "STRING" | "NUMBER" | "BOOLEAN" | "INTEGER" | "STRING_ARRAY" | "STRING_MAP";
3892
+ required?: boolean | undefined;
3893
+ min?: number | undefined;
3894
+ max?: number | undefined;
3895
+ maxLength?: number | undefined;
3896
+ options?: string[] | undefined;
3897
+ default?: string | number | boolean | string[] | Record<string, string> | undefined;
3898
+ unit?: string | undefined;
3899
+ description?: string | undefined;
3900
+ maxItems?: number | undefined;
3901
+ maxKeyLength?: number | undefined;
3902
+ numberOptions?: number[] | undefined;
3903
+ }>;
3904
+ constraints: {
3905
+ modes: string[];
3906
+ reason: string;
3907
+ when?: {
3908
+ parameter: string;
3909
+ equals: string | number | boolean;
3910
+ } | undefined;
3911
+ require?: string[] | undefined;
3912
+ forbid?: string[] | undefined;
3913
+ requireValues?: Record<string, string | number | boolean> | undefined;
3914
+ }[];
3915
+ references: {
3916
+ kind: "AUDIO_REFERENCE" | "VOICE_ID" | "DRIVING_AUDIO";
3917
+ modes: string[];
3918
+ parameterPath: string;
3919
+ maxItems: number;
3920
+ formats: ("WAV" | "MP3")[];
3921
+ requiresVisual: boolean;
3922
+ access: "PUBLIC" | "QUALIFIED_ACCOUNT";
3923
+ minDurationMs?: number | undefined;
3924
+ maxDurationMs?: number | undefined;
3925
+ maxTotalDurationMs?: number | undefined;
3926
+ maxBytes?: number | undefined;
3927
+ }[];
3928
+ outputAudioChannels?: 2 | 1 | undefined;
3929
+ };
3930
+ };
3931
+ }>;
3932
+ readonly "provider.model.disable": import("./spec.js").HttpOperationSpec<{
3933
+ tenantId: string;
3934
+ id: string;
3935
+ expectedVersion: number;
3936
+ }, {
3937
+ tenantId: string & z.core.$brand<"TenantId">;
3938
+ id: string;
3939
+ expectedVersion: number;
3940
+ }, {
3941
+ disabled: true;
3942
+ }, {
3943
+ disabled: true;
3944
+ }>;
3945
+ readonly "provider.configure": import("./spec.js").HttpOperationSpec<{
3946
+ tenantId: string;
3947
+ connectionId: string;
3948
+ expectedVersion: number;
3949
+ configuration: {
3950
+ providerId: "QWEN_CN" | "VOLCENGINE_CN" | "GEMINI" | "OPENAI" | "XAI";
3951
+ label: string;
3952
+ allowedModelProfileIds: string[];
3953
+ qwenEndpoint?: "QIANWEN_PLATFORM" | undefined;
3954
+ credentialService?: "ARK" | "DOUBAO_SPEECH" | undefined;
3955
+ qwenWorkspaceId?: string | undefined;
3956
+ geometryPolicy?: "STRICT" | "PAD_TO_ASPECT" | undefined;
3957
+ };
3958
+ apiKey: string;
3959
+ }, {
3960
+ tenantId: string & z.core.$brand<"TenantId">;
3961
+ connectionId: string & z.core.$brand<"ProviderConnectionId">;
3962
+ expectedVersion: number;
3963
+ configuration: {
3964
+ providerId: "QWEN_CN" | "VOLCENGINE_CN" | "GEMINI" | "OPENAI" | "XAI";
3965
+ label: string;
3966
+ allowedModelProfileIds: string[];
3967
+ geometryPolicy: "STRICT" | "PAD_TO_ASPECT";
3968
+ qwenEndpoint?: "QIANWEN_PLATFORM" | undefined;
3969
+ credentialService?: "ARK" | "DOUBAO_SPEECH" | undefined;
3970
+ qwenWorkspaceId?: string | undefined;
3971
+ };
3972
+ apiKey: string;
3973
+ }, {
3974
+ tenantId: string & z.core.$brand<"TenantId">;
3975
+ connectionId: string & z.core.$brand<"ProviderConnectionId">;
3976
+ version: number;
3977
+ enabled: boolean;
3978
+ credentialConfigured: boolean;
3979
+ configuration: {
3980
+ providerId: "QWEN_CN" | "VOLCENGINE_CN" | "GEMINI" | "OPENAI" | "XAI";
3981
+ label: string;
3982
+ allowedModelProfileIds: string[];
3983
+ geometryPolicy: "STRICT" | "PAD_TO_ASPECT";
3984
+ qwenEndpoint?: "QIANWEN_PLATFORM" | undefined;
3985
+ credentialService?: "ARK" | "DOUBAO_SPEECH" | undefined;
3986
+ qwenWorkspaceId?: string | undefined;
3987
+ };
3988
+ createdByPrincipalId: string & z.core.$brand<"PrincipalId">;
3989
+ updatedAt: string;
3990
+ }, {
3991
+ tenantId: string;
3992
+ connectionId: string;
3993
+ version: number;
3994
+ enabled: boolean;
3995
+ credentialConfigured: boolean;
3996
+ configuration: {
3997
+ providerId: "QWEN_CN" | "VOLCENGINE_CN" | "GEMINI" | "OPENAI" | "XAI";
3998
+ label: string;
3999
+ allowedModelProfileIds: string[];
4000
+ qwenEndpoint?: "QIANWEN_PLATFORM" | undefined;
4001
+ credentialService?: "ARK" | "DOUBAO_SPEECH" | undefined;
4002
+ qwenWorkspaceId?: string | undefined;
4003
+ geometryPolicy?: "STRICT" | "PAD_TO_ASPECT" | undefined;
4004
+ };
4005
+ createdByPrincipalId: string;
4006
+ updatedAt: string;
4007
+ }>;
4008
+ readonly "provider.query": import("./spec.js").HttpOperationSpec<{
4009
+ tenantId: string;
4010
+ }, {
4011
+ tenantId: string & z.core.$brand<"TenantId">;
4012
+ }, {
4013
+ limit: 100;
4014
+ possiblyTruncated: boolean;
4015
+ items: {
4016
+ tenantId: string & z.core.$brand<"TenantId">;
4017
+ connectionId: string & z.core.$brand<"ProviderConnectionId">;
4018
+ version: number;
4019
+ enabled: boolean;
4020
+ credentialConfigured: boolean;
4021
+ configuration: {
4022
+ providerId: "QWEN_CN" | "VOLCENGINE_CN" | "GEMINI" | "OPENAI" | "XAI";
4023
+ label: string;
4024
+ allowedModelProfileIds: string[];
4025
+ geometryPolicy: "STRICT" | "PAD_TO_ASPECT";
4026
+ qwenEndpoint?: "QIANWEN_PLATFORM" | undefined;
4027
+ credentialService?: "ARK" | "DOUBAO_SPEECH" | undefined;
4028
+ qwenWorkspaceId?: string | undefined;
4029
+ };
4030
+ createdByPrincipalId: string & z.core.$brand<"PrincipalId">;
4031
+ updatedAt: string;
4032
+ }[];
4033
+ }, {
4034
+ limit: 100;
4035
+ possiblyTruncated: boolean;
4036
+ items: {
4037
+ tenantId: string;
4038
+ connectionId: string;
4039
+ version: number;
4040
+ enabled: boolean;
4041
+ credentialConfigured: boolean;
4042
+ configuration: {
4043
+ providerId: "QWEN_CN" | "VOLCENGINE_CN" | "GEMINI" | "OPENAI" | "XAI";
4044
+ label: string;
4045
+ allowedModelProfileIds: string[];
4046
+ qwenEndpoint?: "QIANWEN_PLATFORM" | undefined;
4047
+ credentialService?: "ARK" | "DOUBAO_SPEECH" | undefined;
4048
+ qwenWorkspaceId?: string | undefined;
4049
+ geometryPolicy?: "STRICT" | "PAD_TO_ASPECT" | undefined;
4050
+ };
4051
+ createdByPrincipalId: string;
4052
+ updatedAt: string;
4053
+ }[];
4054
+ }>;
4055
+ readonly "provider.models": import("./spec.js").HttpOperationSpec<{
4056
+ tenantId: string;
4057
+ }, {
4058
+ tenantId: string & z.core.$brand<"TenantId">;
4059
+ }, {
4060
+ catalog: {
4061
+ id: string;
4062
+ version: number;
4063
+ providerId: "QWEN_CN" | "VOLCENGINE_CN" | "GEMINI" | "OPENAI" | "XAI";
4064
+ modelId: string;
4065
+ protocol: "QWEN_EDIT" | "ARK_IMAGE" | "GEMINI_IMAGE" | "OPENAI_IMAGE" | "XAI_IMAGE";
4066
+ maxReferences: number;
4067
+ promptMaxUtf8Bytes: number;
4068
+ requestTimeoutMs: number;
4069
+ workingWidth: number;
4070
+ workingHeight: number;
4071
+ referenceRoles?: ("PRODUCT_IDENTITY" | "PRODUCT_PACKSHOT" | "CHARACTER_IDENTITY" | "WARDROBE" | "LOCATION" | "STYLE")[] | undefined;
4072
+ }[];
4073
+ videoCatalog: {
4074
+ id: string;
4075
+ version: number;
4076
+ providerId: "QWEN_CN" | "VOLCENGINE_CN" | "GEMINI" | "OPENAI" | "XAI";
4077
+ modelId: string;
4078
+ protocol: "QWEN_VIDEO" | "VOLCENGINE_VIDEO";
4079
+ requestTimeoutMs: number;
4080
+ promptMaxCharacters: number;
4081
+ resolution: "720P" | "1080P";
4082
+ adapterVersion: string;
4083
+ capabilities: {
4084
+ frameRate: 30 | 24;
4085
+ hasAudio: boolean;
4086
+ workingWidth: number;
4087
+ workingHeight: number;
4088
+ mediaType: "VIDEO";
4089
+ modes: ("REFERENCE_TO_VIDEO" | "FIRST_FRAME_TO_VIDEO" | "FIRST_LAST_FRAME_TO_VIDEO")[];
4090
+ referenceRoles: ("PRODUCT_IDENTITY" | "PRODUCT_PACKSHOT" | "CHARACTER_IDENTITY" | "WARDROBE" | "LOCATION" | "STYLE" | "START_FRAME_ANCHOR" | "END_FRAME_ANCHOR")[];
4091
+ aspectRatios: ("16:9" | "9:16")[];
4092
+ minDurationSeconds: number;
4093
+ maxDurationSeconds: number;
4094
+ maxReferences: number;
4095
+ combineAnchorsAndReferences: boolean;
4096
+ correlationStrategy: "PROVIDER_TASK_ID";
4097
+ sourceFormat?: {
4098
+ videoCodec: "hevc";
4099
+ pixelFormat: "yuv420p10le";
4100
+ } | undefined;
4101
+ nativeAudioChannels?: 2 | 1 | undefined;
4102
+ };
4103
+ }[];
4104
+ speechCatalog: {
4105
+ id: string;
4106
+ version: number;
4107
+ providerId: "QWEN_CN" | "VOLCENGINE_CN" | "GEMINI" | "OPENAI" | "XAI";
4108
+ modelId: string | null;
4109
+ protocol: "QWEN_TTS" | "QWEN_AUDIO_TTS" | "OPENAI_TTS" | "XAI_TTS" | "GEMINI_INTERACTIONS_TTS" | "VOLCENGINE_TTS";
4110
+ label: string;
4111
+ textMaxCharacters: number;
4112
+ requestTimeoutMs: number;
4113
+ workspaceRequired: boolean;
4114
+ voices: {
4115
+ id: string;
4116
+ label: string;
4117
+ languages?: string[] | undefined;
4118
+ parameterDefaults?: Record<string, string | number | boolean | string[] | Record<string, string>> | undefined;
4119
+ parameterOptions?: Record<string, string[]> | undefined;
4120
+ unsupportedParameters?: string[] | undefined;
4121
+ }[];
4122
+ languages: string[];
4123
+ parameters: Record<string, {
4124
+ label: string;
4125
+ type: "STRING" | "NUMBER" | "BOOLEAN" | "INTEGER" | "STRING_ARRAY" | "STRING_MAP";
4126
+ required: boolean;
4127
+ min?: number | undefined;
4128
+ max?: number | undefined;
4129
+ maxLength?: number | undefined;
4130
+ options?: string[] | undefined;
4131
+ default?: string | number | boolean | string[] | Record<string, string> | undefined;
4132
+ unit?: string | undefined;
4133
+ description?: string | undefined;
4134
+ maxItems?: number | undefined;
4135
+ maxKeyLength?: number | undefined;
4136
+ }>;
4137
+ sourceUrl: string;
4138
+ verifiedAt: string;
4139
+ providerTextMaxCharacters: number | null;
4140
+ resourceId: string | null;
4141
+ output: "PCM_S16LE_48000_V1";
4142
+ normalizationVersion: "SPEECH_PCM_V1";
4143
+ }[];
4144
+ observationCatalog: ({
4145
+ id: string;
4146
+ version: number;
4147
+ providerId: "QWEN_CN" | "VOLCENGINE_CN" | "GEMINI" | "OPENAI" | "XAI";
4148
+ sourceUrl: string;
4149
+ verifiedAt: string;
4150
+ modelId: string;
4151
+ label: string;
4152
+ protocol: "OPENAI_TRANSCRIPTION_V1" | "OPENAI_WHISPER_TRANSCRIPTION_V1" | "QWEN_ASR_V1";
4153
+ modes: ["TRANSCRIPTION"];
4154
+ inputKinds: ("AUDIO" | "VIDEO")[];
4155
+ requestTimeoutMs: number;
4156
+ maxBytes: number;
4157
+ maxDurationMs: number;
4158
+ parameters: Record<string, {
4159
+ label: string;
4160
+ type: "STRING" | "NUMBER" | "BOOLEAN" | "INTEGER" | "STRING_ARRAY" | "STRING_MAP";
4161
+ required: boolean;
4162
+ min?: number | undefined;
4163
+ max?: number | undefined;
4164
+ maxLength?: number | undefined;
4165
+ options?: string[] | undefined;
4166
+ default?: string | number | boolean | string[] | Record<string, string> | undefined;
4167
+ unit?: string | undefined;
4168
+ description?: string | undefined;
4169
+ maxItems?: number | undefined;
4170
+ maxKeyLength?: number | undefined;
4171
+ numberOptions?: number[] | undefined;
4172
+ }>;
4173
+ } | {
4174
+ id: string;
4175
+ version: number;
4176
+ providerId: "QWEN_CN" | "VOLCENGINE_CN" | "GEMINI" | "OPENAI" | "XAI";
4177
+ sourceUrl: string;
4178
+ modelId: string;
4179
+ label: string;
4180
+ protocol: "GEMINI_INTERACTIONS_V1" | "QIANWEN_VIDEO_V1";
4181
+ modes: ("AUDIO" | "VIDEO" | "AUDIOVISUAL" | "VIDEO_ALL_FRAMES")[];
4182
+ requestTimeoutMs: number;
4183
+ maxBytes: number;
4184
+ maxDurationMs: number;
4185
+ parameters: Record<string, {
4186
+ type: "STRING" | "NUMBER" | "BOOLEAN" | "INTEGER";
4187
+ default: string | number | boolean;
4188
+ min?: number | undefined;
4189
+ max?: number | undefined;
4190
+ options?: string[] | undefined;
4191
+ }>;
4192
+ })[];
4193
+ available: {
4194
+ selection: {
4195
+ connectionId: string & z.core.$brand<"ProviderConnectionId">;
4196
+ modelProfileId: string;
4197
+ };
4198
+ profile: {
4199
+ id: string;
4200
+ adapterVersion: string;
4201
+ model: string;
4202
+ executionClass: "LIVE" | "TEST_ONLY";
4203
+ mediaType: "IMAGE";
4204
+ mode: "REFERENCE_TO_IMAGE";
4205
+ referenceRoles: ("PRODUCT_IDENTITY" | "PRODUCT_PACKSHOT" | "CHARACTER_IDENTITY" | "WARDROBE" | "LOCATION" | "STYLE" | "START_FRAME_ANCHOR" | "END_FRAME_ANCHOR")[];
4206
+ aspectRatios: ("16:9" | "9:16")[];
4207
+ maxReferences: number;
4208
+ correlationLookup: boolean;
4209
+ };
4210
+ }[];
4211
+ defaultSelection: {
4212
+ selection: {
4213
+ connectionId: string & z.core.$brand<"ProviderConnectionId">;
4214
+ modelProfileId: string;
4215
+ };
4216
+ revision: number;
4217
+ } | null;
4218
+ connectionScan: {
4219
+ limit: 100;
4220
+ possiblyTruncated: boolean;
4221
+ };
4222
+ }, {
4223
+ catalog: {
4224
+ id: string;
4225
+ version: number;
4226
+ providerId: "QWEN_CN" | "VOLCENGINE_CN" | "GEMINI" | "OPENAI" | "XAI";
4227
+ modelId: string;
4228
+ protocol: "QWEN_EDIT" | "ARK_IMAGE" | "GEMINI_IMAGE" | "OPENAI_IMAGE" | "XAI_IMAGE";
4229
+ maxReferences: number;
4230
+ promptMaxUtf8Bytes: number;
4231
+ requestTimeoutMs: number;
4232
+ workingWidth: number;
4233
+ workingHeight: number;
4234
+ referenceRoles?: ("PRODUCT_IDENTITY" | "PRODUCT_PACKSHOT" | "CHARACTER_IDENTITY" | "WARDROBE" | "LOCATION" | "STYLE")[] | undefined;
4235
+ }[];
4236
+ videoCatalog: {
4237
+ id: string;
4238
+ version: number;
4239
+ providerId: "QWEN_CN" | "VOLCENGINE_CN" | "GEMINI" | "OPENAI" | "XAI";
4240
+ modelId: string;
4241
+ protocol: "QWEN_VIDEO" | "VOLCENGINE_VIDEO";
4242
+ requestTimeoutMs: number;
4243
+ promptMaxCharacters: number;
4244
+ resolution: "720P" | "1080P";
4245
+ adapterVersion: string;
4246
+ capabilities: {
4247
+ frameRate: 30 | 24;
4248
+ hasAudio: boolean;
4249
+ workingWidth: number;
4250
+ workingHeight: number;
4251
+ mediaType: "VIDEO";
4252
+ modes: ("REFERENCE_TO_VIDEO" | "FIRST_FRAME_TO_VIDEO" | "FIRST_LAST_FRAME_TO_VIDEO")[];
4253
+ referenceRoles: ("PRODUCT_IDENTITY" | "PRODUCT_PACKSHOT" | "CHARACTER_IDENTITY" | "WARDROBE" | "LOCATION" | "STYLE" | "START_FRAME_ANCHOR" | "END_FRAME_ANCHOR")[];
4254
+ aspectRatios: ("16:9" | "9:16")[];
4255
+ minDurationSeconds: number;
4256
+ maxDurationSeconds: number;
4257
+ maxReferences: number;
4258
+ combineAnchorsAndReferences: boolean;
4259
+ correlationStrategy: "PROVIDER_TASK_ID";
4260
+ sourceFormat?: {
4261
+ videoCodec: "hevc";
4262
+ pixelFormat: "yuv420p10le";
4263
+ } | undefined;
4264
+ nativeAudioChannels?: 2 | 1 | undefined;
4265
+ };
4266
+ }[];
4267
+ available: {
4268
+ selection: {
4269
+ connectionId: string;
4270
+ modelProfileId: string;
4271
+ };
4272
+ profile: {
4273
+ id: string;
4274
+ adapterVersion: string;
4275
+ model: string;
4276
+ executionClass: "LIVE" | "TEST_ONLY";
4277
+ mediaType: "IMAGE";
4278
+ mode: "REFERENCE_TO_IMAGE";
4279
+ referenceRoles: ("PRODUCT_IDENTITY" | "PRODUCT_PACKSHOT" | "CHARACTER_IDENTITY" | "WARDROBE" | "LOCATION" | "STYLE" | "START_FRAME_ANCHOR" | "END_FRAME_ANCHOR")[];
4280
+ aspectRatios: ("16:9" | "9:16")[];
4281
+ maxReferences: number;
4282
+ correlationLookup: boolean;
4283
+ };
4284
+ }[];
4285
+ defaultSelection: {
4286
+ selection: {
4287
+ connectionId: string;
4288
+ modelProfileId: string;
4289
+ };
4290
+ revision: number;
4291
+ } | null;
4292
+ connectionScan: {
4293
+ limit: 100;
4294
+ possiblyTruncated: boolean;
4295
+ };
4296
+ speechCatalog?: {
4297
+ id: string;
4298
+ version: number;
4299
+ providerId: "QWEN_CN" | "VOLCENGINE_CN" | "GEMINI" | "OPENAI" | "XAI";
4300
+ modelId: string | null;
4301
+ protocol: "QWEN_TTS" | "QWEN_AUDIO_TTS" | "OPENAI_TTS" | "XAI_TTS" | "GEMINI_INTERACTIONS_TTS" | "VOLCENGINE_TTS";
4302
+ label: string;
4303
+ textMaxCharacters: number;
4304
+ requestTimeoutMs: number;
4305
+ workspaceRequired: boolean;
4306
+ voices: {
4307
+ id: string;
4308
+ label: string;
4309
+ languages?: string[] | undefined;
4310
+ parameterDefaults?: Record<string, string | number | boolean | string[] | Record<string, string>> | undefined;
4311
+ parameterOptions?: Record<string, string[]> | undefined;
4312
+ unsupportedParameters?: string[] | undefined;
4313
+ }[];
4314
+ languages: string[];
4315
+ parameters: Record<string, {
4316
+ label: string;
4317
+ type: "STRING" | "NUMBER" | "BOOLEAN" | "INTEGER" | "STRING_ARRAY" | "STRING_MAP";
4318
+ required?: boolean | undefined;
4319
+ min?: number | undefined;
4320
+ max?: number | undefined;
4321
+ maxLength?: number | undefined;
4322
+ options?: string[] | undefined;
4323
+ default?: string | number | boolean | string[] | Record<string, string> | undefined;
4324
+ unit?: string | undefined;
4325
+ description?: string | undefined;
4326
+ maxItems?: number | undefined;
4327
+ maxKeyLength?: number | undefined;
4328
+ }>;
4329
+ sourceUrl: string;
4330
+ verifiedAt: string;
4331
+ providerTextMaxCharacters: number | null;
4332
+ resourceId: string | null;
4333
+ output: "PCM_S16LE_48000_V1";
4334
+ normalizationVersion: "SPEECH_PCM_V1";
4335
+ }[] | undefined;
4336
+ observationCatalog?: ({
4337
+ id: string;
4338
+ version: number;
4339
+ providerId: "QWEN_CN" | "VOLCENGINE_CN" | "GEMINI" | "OPENAI" | "XAI";
4340
+ sourceUrl: string;
4341
+ verifiedAt: string;
4342
+ modelId: string;
4343
+ label: string;
4344
+ protocol: "OPENAI_TRANSCRIPTION_V1" | "OPENAI_WHISPER_TRANSCRIPTION_V1" | "QWEN_ASR_V1";
4345
+ modes: ["TRANSCRIPTION"];
4346
+ inputKinds: ("AUDIO" | "VIDEO")[];
4347
+ requestTimeoutMs: number;
4348
+ maxBytes: number;
4349
+ maxDurationMs: number;
4350
+ parameters: Record<string, {
4351
+ label: string;
4352
+ type: "STRING" | "NUMBER" | "BOOLEAN" | "INTEGER" | "STRING_ARRAY" | "STRING_MAP";
4353
+ required?: boolean | undefined;
4354
+ min?: number | undefined;
4355
+ max?: number | undefined;
4356
+ maxLength?: number | undefined;
4357
+ options?: string[] | undefined;
4358
+ default?: string | number | boolean | string[] | Record<string, string> | undefined;
4359
+ unit?: string | undefined;
4360
+ description?: string | undefined;
4361
+ maxItems?: number | undefined;
4362
+ maxKeyLength?: number | undefined;
4363
+ numberOptions?: number[] | undefined;
4364
+ }>;
4365
+ } | {
4366
+ id: string;
4367
+ version: number;
4368
+ providerId: "QWEN_CN" | "VOLCENGINE_CN" | "GEMINI" | "OPENAI" | "XAI";
4369
+ sourceUrl: string;
4370
+ modelId: string;
4371
+ label: string;
4372
+ protocol: "GEMINI_INTERACTIONS_V1" | "QIANWEN_VIDEO_V1";
4373
+ modes: ("AUDIO" | "VIDEO" | "AUDIOVISUAL" | "VIDEO_ALL_FRAMES")[];
4374
+ requestTimeoutMs: number;
4375
+ maxBytes: number;
4376
+ maxDurationMs: number;
4377
+ parameters: Record<string, {
4378
+ type: "STRING" | "NUMBER" | "BOOLEAN" | "INTEGER";
4379
+ default: string | number | boolean;
4380
+ min?: number | undefined;
4381
+ max?: number | undefined;
4382
+ options?: string[] | undefined;
4383
+ }>;
4384
+ })[] | undefined;
4385
+ }>;
4386
+ readonly "provider.keyframe-default.set": import("./spec.js").HttpOperationSpec<{
4387
+ tenantId: string;
4388
+ selection: {
4389
+ connectionId: string;
4390
+ modelProfileId: string;
4391
+ };
4392
+ expectedRevision: number;
4393
+ }, {
4394
+ tenantId: string & z.core.$brand<"TenantId">;
4395
+ selection: {
4396
+ connectionId: string & z.core.$brand<"ProviderConnectionId">;
4397
+ modelProfileId: string;
4398
+ };
4399
+ expectedRevision: number;
4400
+ }, {
4401
+ selection: {
4402
+ connectionId: string & z.core.$brand<"ProviderConnectionId">;
4403
+ modelProfileId: string;
4404
+ };
4405
+ revision: number;
4406
+ }, {
4407
+ selection: {
4408
+ connectionId: string;
4409
+ modelProfileId: string;
4410
+ };
4411
+ revision: number;
4412
+ }>;
4413
+ readonly "provider.disable": import("./spec.js").HttpOperationSpec<{
4414
+ tenantId: string;
4415
+ connectionId: string;
4416
+ expectedVersion: number;
4417
+ }, {
4418
+ tenantId: string & z.core.$brand<"TenantId">;
4419
+ connectionId: string & z.core.$brand<"ProviderConnectionId">;
4420
+ expectedVersion: number;
4421
+ }, {
4422
+ disabled: true;
4423
+ }, {
4424
+ disabled: true;
4425
+ }>;
4426
+ readonly "provider.revoke": import("./spec.js").HttpOperationSpec<{
4427
+ tenantId: string;
4428
+ connectionId: string;
4429
+ version: number;
4430
+ }, {
4431
+ tenantId: string & z.core.$brand<"TenantId">;
4432
+ connectionId: string & z.core.$brand<"ProviderConnectionId">;
4433
+ version: number;
4434
+ }, {
4435
+ revoked: true;
4436
+ }, {
4437
+ revoked: true;
4438
+ }>;
4439
+ };