@adaptive-ai/sdk 0.1.20 → 0.1.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/index.d.ts +151 -0
- package/dist/client/index.js +15 -8
- package/dist/server/index.d.ts +20 -631
- package/dist/server/index.js +1 -1
- package/package.json +1 -1
package/dist/server/index.d.ts
CHANGED
|
@@ -1612,7 +1612,9 @@ declare const NEVER: never;
|
|
|
1612
1612
|
export declare const appConfigSchema: z.ZodObject<{
|
|
1613
1613
|
crons: z.ZodArray<z.ZodObject<{
|
|
1614
1614
|
slug: z.ZodString;
|
|
1615
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1615
1616
|
schedule: z.ZodString;
|
|
1617
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1616
1618
|
rpcEndpoint: z.ZodString;
|
|
1617
1619
|
isEnabled: z.ZodDefault<z.ZodBoolean>;
|
|
1618
1620
|
stopAt: z.ZodOptional<z.ZodString>;
|
|
@@ -1623,6 +1625,8 @@ export declare const appConfigSchema: z.ZodObject<{
|
|
|
1623
1625
|
schedule: string;
|
|
1624
1626
|
rpcEndpoint: string;
|
|
1625
1627
|
isEnabled: boolean;
|
|
1628
|
+
description?: string | undefined;
|
|
1629
|
+
name?: string | undefined;
|
|
1626
1630
|
stopAt?: string | undefined;
|
|
1627
1631
|
maxExecutions?: number | undefined;
|
|
1628
1632
|
timezone?: string | undefined;
|
|
@@ -1630,6 +1634,8 @@ export declare const appConfigSchema: z.ZodObject<{
|
|
|
1630
1634
|
slug: string;
|
|
1631
1635
|
schedule: string;
|
|
1632
1636
|
rpcEndpoint: string;
|
|
1637
|
+
description?: string | undefined;
|
|
1638
|
+
name?: string | undefined;
|
|
1633
1639
|
isEnabled?: boolean | undefined;
|
|
1634
1640
|
stopAt?: string | undefined;
|
|
1635
1641
|
maxExecutions?: number | undefined;
|
|
@@ -1641,6 +1647,8 @@ export declare const appConfigSchema: z.ZodObject<{
|
|
|
1641
1647
|
schedule: string;
|
|
1642
1648
|
rpcEndpoint: string;
|
|
1643
1649
|
isEnabled: boolean;
|
|
1650
|
+
description?: string | undefined;
|
|
1651
|
+
name?: string | undefined;
|
|
1644
1652
|
stopAt?: string | undefined;
|
|
1645
1653
|
maxExecutions?: number | undefined;
|
|
1646
1654
|
timezone?: string | undefined;
|
|
@@ -1650,6 +1658,8 @@ export declare const appConfigSchema: z.ZodObject<{
|
|
|
1650
1658
|
slug: string;
|
|
1651
1659
|
schedule: string;
|
|
1652
1660
|
rpcEndpoint: string;
|
|
1661
|
+
description?: string | undefined;
|
|
1662
|
+
name?: string | undefined;
|
|
1653
1663
|
isEnabled?: boolean | undefined;
|
|
1654
1664
|
stopAt?: string | undefined;
|
|
1655
1665
|
maxExecutions?: number | undefined;
|
|
@@ -1672,6 +1682,7 @@ declare const AuthProvider: {
|
|
|
1672
1682
|
readonly YAHOO: "YAHOO";
|
|
1673
1683
|
readonly FIGMA: "FIGMA";
|
|
1674
1684
|
readonly PLAID: "PLAID";
|
|
1685
|
+
readonly WHOOP: "WHOOP";
|
|
1675
1686
|
};
|
|
1676
1687
|
export type AuthProvider = (typeof AuthProvider)[keyof typeof AuthProvider];
|
|
1677
1688
|
export type SignInInput = {
|
|
@@ -2139,540 +2150,6 @@ declare let client: {
|
|
|
2139
2150
|
id: string;
|
|
2140
2151
|
}>>;
|
|
2141
2152
|
};
|
|
2142
|
-
generateSoundEffect: {
|
|
2143
|
-
mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
|
|
2144
|
-
_config: _trpc_server.RootConfig<{
|
|
2145
|
-
ctx: {
|
|
2146
|
-
appId: string;
|
|
2147
|
-
versionId: string;
|
|
2148
|
-
appName: string;
|
|
2149
|
-
appSubdomain: string;
|
|
2150
|
-
userId: string;
|
|
2151
|
-
isTesting: boolean;
|
|
2152
|
-
rpcMethod: string;
|
|
2153
|
-
requestId: string;
|
|
2154
|
-
type?: undefined;
|
|
2155
|
-
dbUrl?: string | null | undefined;
|
|
2156
|
-
userIdActual?: string | null | undefined;
|
|
2157
|
-
channelId?: string | null | undefined;
|
|
2158
|
-
} | {
|
|
2159
|
-
type: "BOXMAN_REQUEST";
|
|
2160
|
-
boxId: string;
|
|
2161
|
-
isDevelopment: boolean | null;
|
|
2162
|
-
appId?: string | null | undefined;
|
|
2163
|
-
rpcMethod?: string | null | undefined;
|
|
2164
|
-
requestId?: string | null | undefined;
|
|
2165
|
-
channelId?: string | null | undefined;
|
|
2166
|
-
platformUserId?: string | null | undefined;
|
|
2167
|
-
agent?: string | null | undefined;
|
|
2168
|
-
sessionId?: string | null | undefined;
|
|
2169
|
-
pushToken?: string | null | undefined;
|
|
2170
|
-
};
|
|
2171
|
-
meta: object;
|
|
2172
|
-
errorShape: {
|
|
2173
|
-
data: {
|
|
2174
|
-
zodError: typeToFlattenedError<any, string> | null;
|
|
2175
|
-
code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
|
|
2176
|
-
httpStatus: number;
|
|
2177
|
-
path?: string;
|
|
2178
|
-
stack?: string;
|
|
2179
|
-
};
|
|
2180
|
-
message: string;
|
|
2181
|
-
code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
2182
|
-
};
|
|
2183
|
-
transformer: typeof superjson;
|
|
2184
|
-
}>;
|
|
2185
|
-
_meta: object;
|
|
2186
|
-
_ctx_out: {
|
|
2187
|
-
type: undefined;
|
|
2188
|
-
appId: string;
|
|
2189
|
-
versionId: string;
|
|
2190
|
-
dbUrl: string | null | undefined;
|
|
2191
|
-
appName: string;
|
|
2192
|
-
appSubdomain: string;
|
|
2193
|
-
userId: string;
|
|
2194
|
-
userIdActual: string | null | undefined;
|
|
2195
|
-
isTesting: boolean;
|
|
2196
|
-
rpcMethod: string;
|
|
2197
|
-
requestId: string;
|
|
2198
|
-
channelId: string | null | undefined;
|
|
2199
|
-
} | {
|
|
2200
|
-
type: "BOXMAN_REQUEST";
|
|
2201
|
-
appId: string | null | undefined;
|
|
2202
|
-
boxId: string;
|
|
2203
|
-
rpcMethod: string | null | undefined;
|
|
2204
|
-
requestId: string | null | undefined;
|
|
2205
|
-
channelId: string | null | undefined;
|
|
2206
|
-
platformUserId: string | null | undefined;
|
|
2207
|
-
isDevelopment: boolean | null;
|
|
2208
|
-
agent: string | null | undefined;
|
|
2209
|
-
sessionId: string | null | undefined;
|
|
2210
|
-
pushToken: string | null | undefined;
|
|
2211
|
-
};
|
|
2212
|
-
_input_in: {
|
|
2213
|
-
text: string;
|
|
2214
|
-
durationInSeconds?: number | undefined;
|
|
2215
|
-
promptInfluence?: number | undefined;
|
|
2216
|
-
loop?: boolean | undefined;
|
|
2217
|
-
};
|
|
2218
|
-
_input_out: {
|
|
2219
|
-
text: string;
|
|
2220
|
-
durationInSeconds?: number | undefined;
|
|
2221
|
-
promptInfluence?: number | undefined;
|
|
2222
|
-
loop?: boolean | undefined;
|
|
2223
|
-
};
|
|
2224
|
-
_output_in: {
|
|
2225
|
-
audioUrl: string;
|
|
2226
|
-
model: string;
|
|
2227
|
-
duration?: number | undefined;
|
|
2228
|
-
};
|
|
2229
|
-
_output_out: {
|
|
2230
|
-
audioUrl: string;
|
|
2231
|
-
model: string;
|
|
2232
|
-
duration?: number | undefined;
|
|
2233
|
-
};
|
|
2234
|
-
}, unknown>>;
|
|
2235
|
-
};
|
|
2236
|
-
generateDialogue: {
|
|
2237
|
-
mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
|
|
2238
|
-
_config: _trpc_server.RootConfig<{
|
|
2239
|
-
ctx: {
|
|
2240
|
-
appId: string;
|
|
2241
|
-
versionId: string;
|
|
2242
|
-
appName: string;
|
|
2243
|
-
appSubdomain: string;
|
|
2244
|
-
userId: string;
|
|
2245
|
-
isTesting: boolean;
|
|
2246
|
-
rpcMethod: string;
|
|
2247
|
-
requestId: string;
|
|
2248
|
-
type?: undefined;
|
|
2249
|
-
dbUrl?: string | null | undefined;
|
|
2250
|
-
userIdActual?: string | null | undefined;
|
|
2251
|
-
channelId?: string | null | undefined;
|
|
2252
|
-
} | {
|
|
2253
|
-
type: "BOXMAN_REQUEST";
|
|
2254
|
-
boxId: string;
|
|
2255
|
-
isDevelopment: boolean | null;
|
|
2256
|
-
appId?: string | null | undefined;
|
|
2257
|
-
rpcMethod?: string | null | undefined;
|
|
2258
|
-
requestId?: string | null | undefined;
|
|
2259
|
-
channelId?: string | null | undefined;
|
|
2260
|
-
platformUserId?: string | null | undefined;
|
|
2261
|
-
agent?: string | null | undefined;
|
|
2262
|
-
sessionId?: string | null | undefined;
|
|
2263
|
-
pushToken?: string | null | undefined;
|
|
2264
|
-
};
|
|
2265
|
-
meta: object;
|
|
2266
|
-
errorShape: {
|
|
2267
|
-
data: {
|
|
2268
|
-
zodError: typeToFlattenedError<any, string> | null;
|
|
2269
|
-
code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
|
|
2270
|
-
httpStatus: number;
|
|
2271
|
-
path?: string;
|
|
2272
|
-
stack?: string;
|
|
2273
|
-
};
|
|
2274
|
-
message: string;
|
|
2275
|
-
code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
2276
|
-
};
|
|
2277
|
-
transformer: typeof superjson;
|
|
2278
|
-
}>;
|
|
2279
|
-
_meta: object;
|
|
2280
|
-
_ctx_out: {
|
|
2281
|
-
type: undefined;
|
|
2282
|
-
appId: string;
|
|
2283
|
-
versionId: string;
|
|
2284
|
-
dbUrl: string | null | undefined;
|
|
2285
|
-
appName: string;
|
|
2286
|
-
appSubdomain: string;
|
|
2287
|
-
userId: string;
|
|
2288
|
-
userIdActual: string | null | undefined;
|
|
2289
|
-
isTesting: boolean;
|
|
2290
|
-
rpcMethod: string;
|
|
2291
|
-
requestId: string;
|
|
2292
|
-
channelId: string | null | undefined;
|
|
2293
|
-
} | {
|
|
2294
|
-
type: "BOXMAN_REQUEST";
|
|
2295
|
-
appId: string | null | undefined;
|
|
2296
|
-
boxId: string;
|
|
2297
|
-
rpcMethod: string | null | undefined;
|
|
2298
|
-
requestId: string | null | undefined;
|
|
2299
|
-
channelId: string | null | undefined;
|
|
2300
|
-
platformUserId: string | null | undefined;
|
|
2301
|
-
isDevelopment: boolean | null;
|
|
2302
|
-
agent: string | null | undefined;
|
|
2303
|
-
sessionId: string | null | undefined;
|
|
2304
|
-
pushToken: string | null | undefined;
|
|
2305
|
-
};
|
|
2306
|
-
_input_in: {
|
|
2307
|
-
inputs: {
|
|
2308
|
-
text: string;
|
|
2309
|
-
character: string;
|
|
2310
|
-
}[];
|
|
2311
|
-
};
|
|
2312
|
-
_input_out: {
|
|
2313
|
-
inputs: {
|
|
2314
|
-
text: string;
|
|
2315
|
-
character: string;
|
|
2316
|
-
}[];
|
|
2317
|
-
};
|
|
2318
|
-
_output_in: {
|
|
2319
|
-
audioUrl: string;
|
|
2320
|
-
model: string;
|
|
2321
|
-
duration?: number | undefined;
|
|
2322
|
-
};
|
|
2323
|
-
_output_out: {
|
|
2324
|
-
audioUrl: string;
|
|
2325
|
-
model: string;
|
|
2326
|
-
duration?: number | undefined;
|
|
2327
|
-
};
|
|
2328
|
-
}, unknown>>;
|
|
2329
|
-
};
|
|
2330
|
-
generateMusic: {
|
|
2331
|
-
mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
|
|
2332
|
-
_config: _trpc_server.RootConfig<{
|
|
2333
|
-
ctx: {
|
|
2334
|
-
appId: string;
|
|
2335
|
-
versionId: string;
|
|
2336
|
-
appName: string;
|
|
2337
|
-
appSubdomain: string;
|
|
2338
|
-
userId: string;
|
|
2339
|
-
isTesting: boolean;
|
|
2340
|
-
rpcMethod: string;
|
|
2341
|
-
requestId: string;
|
|
2342
|
-
type?: undefined;
|
|
2343
|
-
dbUrl?: string | null | undefined;
|
|
2344
|
-
userIdActual?: string | null | undefined;
|
|
2345
|
-
channelId?: string | null | undefined;
|
|
2346
|
-
} | {
|
|
2347
|
-
type: "BOXMAN_REQUEST";
|
|
2348
|
-
boxId: string;
|
|
2349
|
-
isDevelopment: boolean | null;
|
|
2350
|
-
appId?: string | null | undefined;
|
|
2351
|
-
rpcMethod?: string | null | undefined;
|
|
2352
|
-
requestId?: string | null | undefined;
|
|
2353
|
-
channelId?: string | null | undefined;
|
|
2354
|
-
platformUserId?: string | null | undefined;
|
|
2355
|
-
agent?: string | null | undefined;
|
|
2356
|
-
sessionId?: string | null | undefined;
|
|
2357
|
-
pushToken?: string | null | undefined;
|
|
2358
|
-
};
|
|
2359
|
-
meta: object;
|
|
2360
|
-
errorShape: {
|
|
2361
|
-
data: {
|
|
2362
|
-
zodError: typeToFlattenedError<any, string> | null;
|
|
2363
|
-
code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
|
|
2364
|
-
httpStatus: number;
|
|
2365
|
-
path?: string;
|
|
2366
|
-
stack?: string;
|
|
2367
|
-
};
|
|
2368
|
-
message: string;
|
|
2369
|
-
code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
2370
|
-
};
|
|
2371
|
-
transformer: typeof superjson;
|
|
2372
|
-
}>;
|
|
2373
|
-
_meta: object;
|
|
2374
|
-
_ctx_out: {
|
|
2375
|
-
type: undefined;
|
|
2376
|
-
appId: string;
|
|
2377
|
-
versionId: string;
|
|
2378
|
-
dbUrl: string | null | undefined;
|
|
2379
|
-
appName: string;
|
|
2380
|
-
appSubdomain: string;
|
|
2381
|
-
userId: string;
|
|
2382
|
-
userIdActual: string | null | undefined;
|
|
2383
|
-
isTesting: boolean;
|
|
2384
|
-
rpcMethod: string;
|
|
2385
|
-
requestId: string;
|
|
2386
|
-
channelId: string | null | undefined;
|
|
2387
|
-
} | {
|
|
2388
|
-
type: "BOXMAN_REQUEST";
|
|
2389
|
-
appId: string | null | undefined;
|
|
2390
|
-
boxId: string;
|
|
2391
|
-
rpcMethod: string | null | undefined;
|
|
2392
|
-
requestId: string | null | undefined;
|
|
2393
|
-
channelId: string | null | undefined;
|
|
2394
|
-
platformUserId: string | null | undefined;
|
|
2395
|
-
isDevelopment: boolean | null;
|
|
2396
|
-
agent: string | null | undefined;
|
|
2397
|
-
sessionId: string | null | undefined;
|
|
2398
|
-
pushToken: string | null | undefined;
|
|
2399
|
-
};
|
|
2400
|
-
_input_in: {
|
|
2401
|
-
text: string;
|
|
2402
|
-
};
|
|
2403
|
-
_input_out: {
|
|
2404
|
-
text: string;
|
|
2405
|
-
};
|
|
2406
|
-
_output_in: {
|
|
2407
|
-
audioUrl: string;
|
|
2408
|
-
model: string;
|
|
2409
|
-
duration?: number | undefined;
|
|
2410
|
-
};
|
|
2411
|
-
_output_out: {
|
|
2412
|
-
audioUrl: string;
|
|
2413
|
-
model: string;
|
|
2414
|
-
duration?: number | undefined;
|
|
2415
|
-
};
|
|
2416
|
-
}, unknown>>;
|
|
2417
|
-
};
|
|
2418
|
-
generateVideo: {
|
|
2419
|
-
mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
|
|
2420
|
-
_config: _trpc_server.RootConfig<{
|
|
2421
|
-
ctx: {
|
|
2422
|
-
appId: string;
|
|
2423
|
-
versionId: string;
|
|
2424
|
-
appName: string;
|
|
2425
|
-
appSubdomain: string;
|
|
2426
|
-
userId: string;
|
|
2427
|
-
isTesting: boolean;
|
|
2428
|
-
rpcMethod: string;
|
|
2429
|
-
requestId: string;
|
|
2430
|
-
type?: undefined;
|
|
2431
|
-
dbUrl?: string | null | undefined;
|
|
2432
|
-
userIdActual?: string | null | undefined;
|
|
2433
|
-
channelId?: string | null | undefined;
|
|
2434
|
-
} | {
|
|
2435
|
-
type: "BOXMAN_REQUEST";
|
|
2436
|
-
boxId: string;
|
|
2437
|
-
isDevelopment: boolean | null;
|
|
2438
|
-
appId?: string | null | undefined;
|
|
2439
|
-
rpcMethod?: string | null | undefined;
|
|
2440
|
-
requestId?: string | null | undefined;
|
|
2441
|
-
channelId?: string | null | undefined;
|
|
2442
|
-
platformUserId?: string | null | undefined;
|
|
2443
|
-
agent?: string | null | undefined;
|
|
2444
|
-
sessionId?: string | null | undefined;
|
|
2445
|
-
pushToken?: string | null | undefined;
|
|
2446
|
-
};
|
|
2447
|
-
meta: object;
|
|
2448
|
-
errorShape: {
|
|
2449
|
-
data: {
|
|
2450
|
-
zodError: typeToFlattenedError<any, string> | null;
|
|
2451
|
-
code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
|
|
2452
|
-
httpStatus: number;
|
|
2453
|
-
path?: string;
|
|
2454
|
-
stack?: string;
|
|
2455
|
-
};
|
|
2456
|
-
message: string;
|
|
2457
|
-
code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
2458
|
-
};
|
|
2459
|
-
transformer: typeof superjson;
|
|
2460
|
-
}>;
|
|
2461
|
-
_meta: object;
|
|
2462
|
-
_ctx_out: {
|
|
2463
|
-
type: undefined;
|
|
2464
|
-
appId: string;
|
|
2465
|
-
versionId: string;
|
|
2466
|
-
dbUrl: string | null | undefined;
|
|
2467
|
-
appName: string;
|
|
2468
|
-
appSubdomain: string;
|
|
2469
|
-
userId: string;
|
|
2470
|
-
userIdActual: string | null | undefined;
|
|
2471
|
-
isTesting: boolean;
|
|
2472
|
-
rpcMethod: string;
|
|
2473
|
-
requestId: string;
|
|
2474
|
-
channelId: string | null | undefined;
|
|
2475
|
-
} | {
|
|
2476
|
-
type: "BOXMAN_REQUEST";
|
|
2477
|
-
appId: string | null | undefined;
|
|
2478
|
-
boxId: string;
|
|
2479
|
-
rpcMethod: string | null | undefined;
|
|
2480
|
-
requestId: string | null | undefined;
|
|
2481
|
-
channelId: string | null | undefined;
|
|
2482
|
-
platformUserId: string | null | undefined;
|
|
2483
|
-
isDevelopment: boolean | null;
|
|
2484
|
-
agent: string | null | undefined;
|
|
2485
|
-
sessionId: string | null | undefined;
|
|
2486
|
-
pushToken: string | null | undefined;
|
|
2487
|
-
};
|
|
2488
|
-
_input_in: {
|
|
2489
|
-
prompt: string;
|
|
2490
|
-
image?: string | undefined;
|
|
2491
|
-
};
|
|
2492
|
-
_input_out: {
|
|
2493
|
-
prompt: string;
|
|
2494
|
-
image?: string | undefined;
|
|
2495
|
-
};
|
|
2496
|
-
_output_in: {
|
|
2497
|
-
model: string;
|
|
2498
|
-
videoUrl: string;
|
|
2499
|
-
duration?: number | undefined;
|
|
2500
|
-
};
|
|
2501
|
-
_output_out: {
|
|
2502
|
-
model: string;
|
|
2503
|
-
videoUrl: string;
|
|
2504
|
-
duration?: number | undefined;
|
|
2505
|
-
};
|
|
2506
|
-
}, unknown>>;
|
|
2507
|
-
};
|
|
2508
|
-
extractStructuredDataFromContent: {
|
|
2509
|
-
mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
|
|
2510
|
-
_config: _trpc_server.RootConfig<{
|
|
2511
|
-
ctx: {
|
|
2512
|
-
appId: string;
|
|
2513
|
-
versionId: string;
|
|
2514
|
-
appName: string;
|
|
2515
|
-
appSubdomain: string;
|
|
2516
|
-
userId: string;
|
|
2517
|
-
isTesting: boolean;
|
|
2518
|
-
rpcMethod: string;
|
|
2519
|
-
requestId: string;
|
|
2520
|
-
type?: undefined;
|
|
2521
|
-
dbUrl?: string | null | undefined;
|
|
2522
|
-
userIdActual?: string | null | undefined;
|
|
2523
|
-
channelId?: string | null | undefined;
|
|
2524
|
-
} | {
|
|
2525
|
-
type: "BOXMAN_REQUEST";
|
|
2526
|
-
boxId: string;
|
|
2527
|
-
isDevelopment: boolean | null;
|
|
2528
|
-
appId?: string | null | undefined;
|
|
2529
|
-
rpcMethod?: string | null | undefined;
|
|
2530
|
-
requestId?: string | null | undefined;
|
|
2531
|
-
channelId?: string | null | undefined;
|
|
2532
|
-
platformUserId?: string | null | undefined;
|
|
2533
|
-
agent?: string | null | undefined;
|
|
2534
|
-
sessionId?: string | null | undefined;
|
|
2535
|
-
pushToken?: string | null | undefined;
|
|
2536
|
-
};
|
|
2537
|
-
meta: object;
|
|
2538
|
-
errorShape: {
|
|
2539
|
-
data: {
|
|
2540
|
-
zodError: typeToFlattenedError<any, string> | null;
|
|
2541
|
-
code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
|
|
2542
|
-
httpStatus: number;
|
|
2543
|
-
path?: string;
|
|
2544
|
-
stack?: string;
|
|
2545
|
-
};
|
|
2546
|
-
message: string;
|
|
2547
|
-
code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
2548
|
-
};
|
|
2549
|
-
transformer: typeof superjson;
|
|
2550
|
-
}>;
|
|
2551
|
-
_meta: object;
|
|
2552
|
-
_ctx_out: {
|
|
2553
|
-
type: undefined;
|
|
2554
|
-
appId: string;
|
|
2555
|
-
versionId: string;
|
|
2556
|
-
dbUrl: string | null | undefined;
|
|
2557
|
-
appName: string;
|
|
2558
|
-
appSubdomain: string;
|
|
2559
|
-
userId: string;
|
|
2560
|
-
userIdActual: string | null | undefined;
|
|
2561
|
-
isTesting: boolean;
|
|
2562
|
-
rpcMethod: string;
|
|
2563
|
-
requestId: string;
|
|
2564
|
-
channelId: string | null | undefined;
|
|
2565
|
-
} | {
|
|
2566
|
-
type: "BOXMAN_REQUEST";
|
|
2567
|
-
appId: string | null | undefined;
|
|
2568
|
-
boxId: string;
|
|
2569
|
-
rpcMethod: string | null | undefined;
|
|
2570
|
-
requestId: string | null | undefined;
|
|
2571
|
-
channelId: string | null | undefined;
|
|
2572
|
-
platformUserId: string | null | undefined;
|
|
2573
|
-
isDevelopment: boolean | null;
|
|
2574
|
-
agent: string | null | undefined;
|
|
2575
|
-
sessionId: string | null | undefined;
|
|
2576
|
-
pushToken: string | null | undefined;
|
|
2577
|
-
};
|
|
2578
|
-
_input_in: {
|
|
2579
|
-
url?: string | undefined;
|
|
2580
|
-
base64?: string | undefined;
|
|
2581
|
-
schema?: any;
|
|
2582
|
-
};
|
|
2583
|
-
_input_out: {
|
|
2584
|
-
url?: string | undefined;
|
|
2585
|
-
base64?: string | undefined;
|
|
2586
|
-
schema?: any;
|
|
2587
|
-
};
|
|
2588
|
-
_output_in: typeof _trpc_server.unsetMarker;
|
|
2589
|
-
_output_out: typeof _trpc_server.unsetMarker;
|
|
2590
|
-
}, object>>;
|
|
2591
|
-
};
|
|
2592
|
-
extractTextFromContent: {
|
|
2593
|
-
mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
|
|
2594
|
-
_config: _trpc_server.RootConfig<{
|
|
2595
|
-
ctx: {
|
|
2596
|
-
appId: string;
|
|
2597
|
-
versionId: string;
|
|
2598
|
-
appName: string;
|
|
2599
|
-
appSubdomain: string;
|
|
2600
|
-
userId: string;
|
|
2601
|
-
isTesting: boolean;
|
|
2602
|
-
rpcMethod: string;
|
|
2603
|
-
requestId: string;
|
|
2604
|
-
type?: undefined;
|
|
2605
|
-
dbUrl?: string | null | undefined;
|
|
2606
|
-
userIdActual?: string | null | undefined;
|
|
2607
|
-
channelId?: string | null | undefined;
|
|
2608
|
-
} | {
|
|
2609
|
-
type: "BOXMAN_REQUEST";
|
|
2610
|
-
boxId: string;
|
|
2611
|
-
isDevelopment: boolean | null;
|
|
2612
|
-
appId?: string | null | undefined;
|
|
2613
|
-
rpcMethod?: string | null | undefined;
|
|
2614
|
-
requestId?: string | null | undefined;
|
|
2615
|
-
channelId?: string | null | undefined;
|
|
2616
|
-
platformUserId?: string | null | undefined;
|
|
2617
|
-
agent?: string | null | undefined;
|
|
2618
|
-
sessionId?: string | null | undefined;
|
|
2619
|
-
pushToken?: string | null | undefined;
|
|
2620
|
-
};
|
|
2621
|
-
meta: object;
|
|
2622
|
-
errorShape: {
|
|
2623
|
-
data: {
|
|
2624
|
-
zodError: typeToFlattenedError<any, string> | null;
|
|
2625
|
-
code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
|
|
2626
|
-
httpStatus: number;
|
|
2627
|
-
path?: string;
|
|
2628
|
-
stack?: string;
|
|
2629
|
-
};
|
|
2630
|
-
message: string;
|
|
2631
|
-
code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
2632
|
-
};
|
|
2633
|
-
transformer: typeof superjson;
|
|
2634
|
-
}>;
|
|
2635
|
-
_meta: object;
|
|
2636
|
-
_ctx_out: {
|
|
2637
|
-
type: undefined;
|
|
2638
|
-
appId: string;
|
|
2639
|
-
versionId: string;
|
|
2640
|
-
dbUrl: string | null | undefined;
|
|
2641
|
-
appName: string;
|
|
2642
|
-
appSubdomain: string;
|
|
2643
|
-
userId: string;
|
|
2644
|
-
userIdActual: string | null | undefined;
|
|
2645
|
-
isTesting: boolean;
|
|
2646
|
-
rpcMethod: string;
|
|
2647
|
-
requestId: string;
|
|
2648
|
-
channelId: string | null | undefined;
|
|
2649
|
-
} | {
|
|
2650
|
-
type: "BOXMAN_REQUEST";
|
|
2651
|
-
appId: string | null | undefined;
|
|
2652
|
-
boxId: string;
|
|
2653
|
-
rpcMethod: string | null | undefined;
|
|
2654
|
-
requestId: string | null | undefined;
|
|
2655
|
-
channelId: string | null | undefined;
|
|
2656
|
-
platformUserId: string | null | undefined;
|
|
2657
|
-
isDevelopment: boolean | null;
|
|
2658
|
-
agent: string | null | undefined;
|
|
2659
|
-
sessionId: string | null | undefined;
|
|
2660
|
-
pushToken: string | null | undefined;
|
|
2661
|
-
};
|
|
2662
|
-
_input_in: {
|
|
2663
|
-
url?: string | undefined;
|
|
2664
|
-
base64?: string | undefined;
|
|
2665
|
-
outputFormat?: "raw" | "formatted-markdown" | undefined;
|
|
2666
|
-
};
|
|
2667
|
-
_input_out: {
|
|
2668
|
-
url?: string | undefined;
|
|
2669
|
-
base64?: string | undefined;
|
|
2670
|
-
outputFormat?: "raw" | "formatted-markdown" | undefined;
|
|
2671
|
-
};
|
|
2672
|
-
_output_in: typeof _trpc_server.unsetMarker;
|
|
2673
|
-
_output_out: typeof _trpc_server.unsetMarker;
|
|
2674
|
-
}, string>>;
|
|
2675
|
-
};
|
|
2676
2153
|
createProduct: {
|
|
2677
2154
|
mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
|
|
2678
2155
|
_config: _trpc_server.RootConfig<{
|
|
@@ -3307,97 +2784,7 @@ declare let client: {
|
|
|
3307
2784
|
response: string;
|
|
3308
2785
|
}>>;
|
|
3309
2786
|
};
|
|
3310
|
-
|
|
3311
|
-
mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
|
|
3312
|
-
_config: _trpc_server.RootConfig<{
|
|
3313
|
-
ctx: {
|
|
3314
|
-
appId: string;
|
|
3315
|
-
versionId: string;
|
|
3316
|
-
appName: string;
|
|
3317
|
-
appSubdomain: string;
|
|
3318
|
-
userId: string;
|
|
3319
|
-
isTesting: boolean;
|
|
3320
|
-
rpcMethod: string;
|
|
3321
|
-
requestId: string;
|
|
3322
|
-
type?: undefined;
|
|
3323
|
-
dbUrl?: string | null | undefined;
|
|
3324
|
-
userIdActual?: string | null | undefined;
|
|
3325
|
-
channelId?: string | null | undefined;
|
|
3326
|
-
} | {
|
|
3327
|
-
type: "BOXMAN_REQUEST";
|
|
3328
|
-
boxId: string;
|
|
3329
|
-
isDevelopment: boolean | null;
|
|
3330
|
-
appId?: string | null | undefined;
|
|
3331
|
-
rpcMethod?: string | null | undefined;
|
|
3332
|
-
requestId?: string | null | undefined;
|
|
3333
|
-
channelId?: string | null | undefined;
|
|
3334
|
-
platformUserId?: string | null | undefined;
|
|
3335
|
-
agent?: string | null | undefined;
|
|
3336
|
-
sessionId?: string | null | undefined;
|
|
3337
|
-
pushToken?: string | null | undefined;
|
|
3338
|
-
};
|
|
3339
|
-
meta: object;
|
|
3340
|
-
errorShape: {
|
|
3341
|
-
data: {
|
|
3342
|
-
zodError: typeToFlattenedError<any, string> | null;
|
|
3343
|
-
code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
|
|
3344
|
-
httpStatus: number;
|
|
3345
|
-
path?: string;
|
|
3346
|
-
stack?: string;
|
|
3347
|
-
};
|
|
3348
|
-
message: string;
|
|
3349
|
-
code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
3350
|
-
};
|
|
3351
|
-
transformer: typeof superjson;
|
|
3352
|
-
}>;
|
|
3353
|
-
_meta: object;
|
|
3354
|
-
_ctx_out: {
|
|
3355
|
-
type: undefined;
|
|
3356
|
-
appId: string;
|
|
3357
|
-
versionId: string;
|
|
3358
|
-
dbUrl: string | null | undefined;
|
|
3359
|
-
appName: string;
|
|
3360
|
-
appSubdomain: string;
|
|
3361
|
-
userId: string;
|
|
3362
|
-
userIdActual: string | null | undefined;
|
|
3363
|
-
isTesting: boolean;
|
|
3364
|
-
rpcMethod: string;
|
|
3365
|
-
requestId: string;
|
|
3366
|
-
channelId: string | null | undefined;
|
|
3367
|
-
} | {
|
|
3368
|
-
type: "BOXMAN_REQUEST";
|
|
3369
|
-
appId: string | null | undefined;
|
|
3370
|
-
boxId: string;
|
|
3371
|
-
rpcMethod: string | null | undefined;
|
|
3372
|
-
requestId: string | null | undefined;
|
|
3373
|
-
channelId: string | null | undefined;
|
|
3374
|
-
platformUserId: string | null | undefined;
|
|
3375
|
-
isDevelopment: boolean | null;
|
|
3376
|
-
agent: string | null | undefined;
|
|
3377
|
-
sessionId: string | null | undefined;
|
|
3378
|
-
pushToken: string | null | undefined;
|
|
3379
|
-
};
|
|
3380
|
-
_input_in: {
|
|
3381
|
-
text: string;
|
|
3382
|
-
voice?: "Will" | "Brian" | "George" | "Jessica" | "Liam" | "Alice" | "Sarah" | "Charlotte" | "Matilda" | "Eric" | "Alloy" | "Ash" | "Ballad" | "Coral" | "Echo" | "Fable" | "Nova" | "Onyx" | "Sage" | "Shimmer" | undefined;
|
|
3383
|
-
};
|
|
3384
|
-
_input_out: {
|
|
3385
|
-
text: string;
|
|
3386
|
-
voice?: "Will" | "Brian" | "George" | "Jessica" | "Liam" | "Alice" | "Sarah" | "Charlotte" | "Matilda" | "Eric" | "Alloy" | "Ash" | "Ballad" | "Coral" | "Echo" | "Fable" | "Nova" | "Onyx" | "Sage" | "Shimmer" | undefined;
|
|
3387
|
-
};
|
|
3388
|
-
_output_in: {
|
|
3389
|
-
audioUrl: string;
|
|
3390
|
-
model: string;
|
|
3391
|
-
duration?: number | undefined;
|
|
3392
|
-
};
|
|
3393
|
-
_output_out: {
|
|
3394
|
-
audioUrl: string;
|
|
3395
|
-
model: string;
|
|
3396
|
-
duration?: number | undefined;
|
|
3397
|
-
};
|
|
3398
|
-
}, unknown>>;
|
|
3399
|
-
};
|
|
3400
|
-
textToImage: {
|
|
2787
|
+
generateMedia: {
|
|
3401
2788
|
mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
|
|
3402
2789
|
_config: _trpc_server.RootConfig<{
|
|
3403
2790
|
ctx: {
|
|
@@ -3468,20 +2855,22 @@ declare let client: {
|
|
|
3468
2855
|
pushToken: string | null | undefined;
|
|
3469
2856
|
};
|
|
3470
2857
|
_input_in: {
|
|
2858
|
+
kind: "image" | "dialogue" | "video" | "sound_effect" | "music" | "speech";
|
|
3471
2859
|
text: string;
|
|
3472
|
-
|
|
2860
|
+
quality?: "standard" | "high" | undefined;
|
|
2861
|
+
inputFilePath?: string | undefined;
|
|
3473
2862
|
};
|
|
3474
2863
|
_input_out: {
|
|
2864
|
+
kind: "image" | "dialogue" | "video" | "sound_effect" | "music" | "speech";
|
|
3475
2865
|
text: string;
|
|
3476
|
-
|
|
2866
|
+
quality: "standard" | "high";
|
|
2867
|
+
inputFilePath?: string | undefined;
|
|
3477
2868
|
};
|
|
3478
2869
|
_output_in: {
|
|
3479
|
-
|
|
3480
|
-
imageUrl: string;
|
|
2870
|
+
outputFilePath: string;
|
|
3481
2871
|
};
|
|
3482
2872
|
_output_out: {
|
|
3483
|
-
|
|
3484
|
-
imageUrl: string;
|
|
2873
|
+
outputFilePath: string;
|
|
3485
2874
|
};
|
|
3486
2875
|
}, unknown>>;
|
|
3487
2876
|
};
|