@adaptive-ai/sdk 0.1.2 → 0.1.3

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.
@@ -1,7 +1,148 @@
1
1
  // Generated by dts-bundle-generator v9.5.1
2
2
 
3
- import { createTRPCProxyClient } from '@trpc/client';
3
+ import * as _trpc_client from '@trpc/client';
4
+ import * as _trpc_server from '@trpc/server';
5
+ import * as _trpc_server_rpc from '@trpc/server/rpc';
6
+ import superjson from 'superjson';
4
7
 
8
+ declare namespace $Enums {
9
+ export const UserTier: {
10
+ FREE: "FREE";
11
+ ONE: "ONE";
12
+ TWO: "TWO";
13
+ };
14
+ export type UserTier = (typeof UserTier)[keyof typeof UserTier];
15
+ export const PreferenceKind: {
16
+ ENABLE_DEV_MODE: "ENABLE_DEV_MODE";
17
+ FORCE_DARKMODE: "FORCE_DARKMODE";
18
+ FORCE_LIGHTMODE: "FORCE_LIGHTMODE";
19
+ HIDE_PUBLISH_TOOLTIP: "HIDE_PUBLISH_TOOLTIP";
20
+ HIDE_FORK_TOOLTIP: "HIDE_FORK_TOOLTIP";
21
+ HIDE_PLANS_POPUP: "HIDE_PLANS_POPUP";
22
+ REQUEST_REVIEW: "REQUEST_REVIEW";
23
+ DONT_ASK_FOR_REVIEW: "DONT_ASK_FOR_REVIEW";
24
+ SYS_PLANS_ENABLED: "SYS_PLANS_ENABLED";
25
+ SYS_WORKSPACES_ENABLED: "SYS_WORKSPACES_ENABLED";
26
+ SYS_API_TESTS_ENABLED: "SYS_API_TESTS_ENABLED";
27
+ SYS_INTEGRATIONS_ENABLED: "SYS_INTEGRATIONS_ENABLED";
28
+ SYS_BOXMAN_ENABLED: "SYS_BOXMAN_ENABLED";
29
+ SYS_CREDITS_ENABLED: "SYS_CREDITS_ENABLED";
30
+ SYS_ADMIN_SERVICE_TIER_PRIORITY: "SYS_ADMIN_SERVICE_TIER_PRIORITY";
31
+ SYS_ADMIN_SERVICE_TIER_DEFAULT: "SYS_ADMIN_SERVICE_TIER_DEFAULT";
32
+ SYS_ADMIN_SERVICE_TIER_FLEX: "SYS_ADMIN_SERVICE_TIER_FLEX";
33
+ };
34
+ export type PreferenceKind = (typeof PreferenceKind)[keyof typeof PreferenceKind];
35
+ export const ProductKind: {
36
+ SUBSCRIPTION: "SUBSCRIPTION";
37
+ IN_APP_PURCHASE: "IN_APP_PURCHASE";
38
+ };
39
+ export type ProductKind = (typeof ProductKind)[keyof typeof ProductKind];
40
+ export const AclLevel: {
41
+ VIEWER: "VIEWER";
42
+ EDITOR: "EDITOR";
43
+ OWNER: "OWNER";
44
+ };
45
+ export type AclLevel = (typeof AclLevel)[keyof typeof AclLevel];
46
+ export const AppTier: {
47
+ FREE: "FREE";
48
+ ONE: "ONE";
49
+ CUSTOM: "CUSTOM";
50
+ };
51
+ export type AppTier = (typeof AppTier)[keyof typeof AppTier];
52
+ export const AppRuntimeKind: {
53
+ LEGACY: "LEGACY";
54
+ BOXMAN: "BOXMAN";
55
+ };
56
+ export type AppRuntimeKind = (typeof AppRuntimeKind)[keyof typeof AppRuntimeKind];
57
+ export const RegistryKind: {
58
+ DOCUMENTATION: "DOCUMENTATION";
59
+ FULL_STACK: "FULL_STACK";
60
+ ERROR_TRANSFORMATION: "ERROR_TRANSFORMATION";
61
+ };
62
+ export type RegistryKind = (typeof RegistryKind)[keyof typeof RegistryKind];
63
+ export const VersionStatus: {
64
+ IDLE: "IDLE";
65
+ GENERATING: "GENERATING";
66
+ DIED: "DIED";
67
+ };
68
+ export type VersionStatus = (typeof VersionStatus)[keyof typeof VersionStatus];
69
+ export const MessageRole: {
70
+ USER: "USER";
71
+ ASSISTANT: "ASSISTANT";
72
+ TOOL: "TOOL";
73
+ SYSTEM: "SYSTEM";
74
+ };
75
+ export type MessageRole = (typeof MessageRole)[keyof typeof MessageRole];
76
+ export const MetricType: {
77
+ PAGE_VIEW: "PAGE_VIEW";
78
+ OTHER: "OTHER";
79
+ };
80
+ export type MetricType = (typeof MetricType)[keyof typeof MetricType];
81
+ export const RuntimeLogKind: {
82
+ CLIENT: "CLIENT";
83
+ SERVER: "SERVER";
84
+ };
85
+ export type RuntimeLogKind = (typeof RuntimeLogKind)[keyof typeof RuntimeLogKind];
86
+ export const LogLevel: {
87
+ ERROR: "ERROR";
88
+ WARN: "WARN";
89
+ INFO: "INFO";
90
+ };
91
+ export type LogLevel = (typeof LogLevel)[keyof typeof LogLevel];
92
+ export const BuildLogKind: {
93
+ MIGRATION: "MIGRATION";
94
+ LINT: "LINT";
95
+ TYPECHECK: "TYPECHECK";
96
+ ESBUILD: "ESBUILD";
97
+ CSS: "CSS";
98
+ IMPLEMENTATION: "IMPLEMENTATION";
99
+ MISSING_ENV_VARS: "MISSING_ENV_VARS";
100
+ };
101
+ export type BuildLogKind = (typeof BuildLogKind)[keyof typeof BuildLogKind];
102
+ export const SecuritySeverity: {
103
+ NONE: "NONE";
104
+ LOW: "LOW";
105
+ MEDIUM: "MEDIUM";
106
+ HIGH: "HIGH";
107
+ };
108
+ export type SecuritySeverity = (typeof SecuritySeverity)[keyof typeof SecuritySeverity];
109
+ export const AnalysisConfidence: {
110
+ LOW: "LOW";
111
+ MEDIUM: "MEDIUM";
112
+ HIGH: "HIGH";
113
+ };
114
+ export type AnalysisConfidence = (typeof AnalysisConfidence)[keyof typeof AnalysisConfidence];
115
+ export const CreditLogType: {
116
+ WAIVED_SPEND: "WAIVED_SPEND";
117
+ SPEND: "SPEND";
118
+ GRANT: "GRANT";
119
+ DAILY_REFRESH: "DAILY_REFRESH";
120
+ MONTHLY_REFRESH: "MONTHLY_REFRESH";
121
+ };
122
+ export type CreditLogType = (typeof CreditLogType)[keyof typeof CreditLogType];
123
+ }
124
+ export type UserTier = $Enums.UserTier;
125
+ declare const UserTier: typeof $Enums.UserTier;
126
+ export type allKeys<T> = T extends any ? keyof T : never;
127
+ export type typeToFlattenedError<T, U = string> = {
128
+ formErrors: U[];
129
+ fieldErrors: {
130
+ [P in allKeys<T>]?: U[];
131
+ };
132
+ };
133
+ export type VisualModel = {
134
+ id: string;
135
+ name: string;
136
+ speed: string;
137
+ strength: string;
138
+ cost: number;
139
+ thumbnails: {
140
+ src: string;
141
+ alt: string;
142
+ prompt?: string;
143
+ }[];
144
+ tier: UserTier;
145
+ };
5
146
  declare const AuthProvider: {
6
147
  readonly GITHUB_USER: "GITHUB_USER";
7
148
  readonly GITHUB_BOT: "GITHUB_BOT";
@@ -41,7 +182,4678 @@ export interface EmailHandlerInput {
41
182
  body: string;
42
183
  fromUserId: string;
43
184
  }
44
- declare let client: ReturnType<typeof createTRPCProxyClient<GuestServicesRouter>>;
185
+ declare let client: {
186
+ health: {
187
+ query: _trpc_client.Resolver<_trpc_server.BuildProcedure<"query", {
188
+ _config: _trpc_server.RootConfig<{
189
+ ctx: {
190
+ appId: string;
191
+ versionId: string;
192
+ appName: string;
193
+ appSubdomain: string;
194
+ userId: string;
195
+ isTesting: boolean;
196
+ rpcMethod: string;
197
+ requestId: string;
198
+ type?: undefined;
199
+ dbUrl?: string | null | undefined;
200
+ userIdActual?: string | null | undefined;
201
+ channelId?: string | null | undefined;
202
+ } | {
203
+ type: "BOXMAN_REQUEST";
204
+ boxId: string;
205
+ isDevelopment: boolean | null;
206
+ appId?: string | null | undefined;
207
+ rpcMethod?: string | null | undefined;
208
+ requestId?: string | null | undefined;
209
+ channelId?: string | null | undefined;
210
+ platformUserId?: string | null | undefined;
211
+ agent?: string | null | undefined;
212
+ sessionId?: string | null | undefined;
213
+ };
214
+ meta: object;
215
+ errorShape: {
216
+ data: {
217
+ zodError: typeToFlattenedError<any, string> | null;
218
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
219
+ httpStatus: number;
220
+ path?: string;
221
+ stack?: string;
222
+ };
223
+ message: string;
224
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
225
+ };
226
+ transformer: typeof superjson;
227
+ }>;
228
+ _meta: object;
229
+ _ctx_out: {
230
+ type: undefined;
231
+ appId: string;
232
+ versionId: string;
233
+ dbUrl: string | null | undefined;
234
+ appName: string;
235
+ appSubdomain: string;
236
+ userId: string;
237
+ userIdActual: string | null | undefined;
238
+ isTesting: boolean;
239
+ rpcMethod: string;
240
+ requestId: string;
241
+ channelId: string | null | undefined;
242
+ } | {
243
+ type: "BOXMAN_REQUEST";
244
+ appId: string | null | undefined;
245
+ rpcMethod: string | null | undefined;
246
+ requestId: string | null | undefined;
247
+ channelId: string | null | undefined;
248
+ boxId: string;
249
+ platformUserId: string | null | undefined;
250
+ isDevelopment: boolean | null;
251
+ agent: string | null | undefined;
252
+ sessionId: string | null | undefined;
253
+ };
254
+ _input_in: typeof _trpc_server.unsetMarker;
255
+ _input_out: typeof _trpc_server.unsetMarker;
256
+ _output_in: typeof _trpc_server.unsetMarker;
257
+ _output_out: typeof _trpc_server.unsetMarker;
258
+ }, {
259
+ status: string;
260
+ }>>;
261
+ };
262
+ generateCrossAppToken: {
263
+ mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
264
+ _config: _trpc_server.RootConfig<{
265
+ ctx: {
266
+ appId: string;
267
+ versionId: string;
268
+ appName: string;
269
+ appSubdomain: string;
270
+ userId: string;
271
+ isTesting: boolean;
272
+ rpcMethod: string;
273
+ requestId: string;
274
+ type?: undefined;
275
+ dbUrl?: string | null | undefined;
276
+ userIdActual?: string | null | undefined;
277
+ channelId?: string | null | undefined;
278
+ } | {
279
+ type: "BOXMAN_REQUEST";
280
+ boxId: string;
281
+ isDevelopment: boolean | null;
282
+ appId?: string | null | undefined;
283
+ rpcMethod?: string | null | undefined;
284
+ requestId?: string | null | undefined;
285
+ channelId?: string | null | undefined;
286
+ platformUserId?: string | null | undefined;
287
+ agent?: string | null | undefined;
288
+ sessionId?: string | null | undefined;
289
+ };
290
+ meta: object;
291
+ errorShape: {
292
+ data: {
293
+ zodError: typeToFlattenedError<any, string> | null;
294
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
295
+ httpStatus: number;
296
+ path?: string;
297
+ stack?: string;
298
+ };
299
+ message: string;
300
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
301
+ };
302
+ transformer: typeof superjson;
303
+ }>;
304
+ _meta: object;
305
+ _ctx_out: {
306
+ type: undefined;
307
+ appId: string;
308
+ versionId: string;
309
+ dbUrl: string | null | undefined;
310
+ appName: string;
311
+ appSubdomain: string;
312
+ userId: string;
313
+ userIdActual: string | null | undefined;
314
+ isTesting: boolean;
315
+ rpcMethod: string;
316
+ requestId: string;
317
+ channelId: string | null | undefined;
318
+ } | {
319
+ type: "BOXMAN_REQUEST";
320
+ appId: string | null | undefined;
321
+ rpcMethod: string | null | undefined;
322
+ requestId: string | null | undefined;
323
+ channelId: string | null | undefined;
324
+ boxId: string;
325
+ platformUserId: string | null | undefined;
326
+ isDevelopment: boolean | null;
327
+ agent: string | null | undefined;
328
+ sessionId: string | null | undefined;
329
+ };
330
+ _input_in: {
331
+ appId: string;
332
+ };
333
+ _input_out: {
334
+ appId: string;
335
+ };
336
+ _output_in: typeof _trpc_server.unsetMarker;
337
+ _output_out: typeof _trpc_server.unsetMarker;
338
+ }, string>>;
339
+ };
340
+ getCurrentUser: {
341
+ mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
342
+ _config: _trpc_server.RootConfig<{
343
+ ctx: {
344
+ appId: string;
345
+ versionId: string;
346
+ appName: string;
347
+ appSubdomain: string;
348
+ userId: string;
349
+ isTesting: boolean;
350
+ rpcMethod: string;
351
+ requestId: string;
352
+ type?: undefined;
353
+ dbUrl?: string | null | undefined;
354
+ userIdActual?: string | null | undefined;
355
+ channelId?: string | null | undefined;
356
+ } | {
357
+ type: "BOXMAN_REQUEST";
358
+ boxId: string;
359
+ isDevelopment: boolean | null;
360
+ appId?: string | null | undefined;
361
+ rpcMethod?: string | null | undefined;
362
+ requestId?: string | null | undefined;
363
+ channelId?: string | null | undefined;
364
+ platformUserId?: string | null | undefined;
365
+ agent?: string | null | undefined;
366
+ sessionId?: string | null | undefined;
367
+ };
368
+ meta: object;
369
+ errorShape: {
370
+ data: {
371
+ zodError: typeToFlattenedError<any, string> | null;
372
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
373
+ httpStatus: number;
374
+ path?: string;
375
+ stack?: string;
376
+ };
377
+ message: string;
378
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
379
+ };
380
+ transformer: typeof superjson;
381
+ }>;
382
+ _meta: object;
383
+ _ctx_out: {
384
+ type: undefined;
385
+ appId: string;
386
+ versionId: string;
387
+ dbUrl: string | null | undefined;
388
+ appName: string;
389
+ appSubdomain: string;
390
+ userId: string;
391
+ userIdActual: string | null | undefined;
392
+ isTesting: boolean;
393
+ rpcMethod: string;
394
+ requestId: string;
395
+ channelId: string | null | undefined;
396
+ } | {
397
+ type: "BOXMAN_REQUEST";
398
+ appId: string | null | undefined;
399
+ rpcMethod: string | null | undefined;
400
+ requestId: string | null | undefined;
401
+ channelId: string | null | undefined;
402
+ boxId: string;
403
+ platformUserId: string | null | undefined;
404
+ isDevelopment: boolean | null;
405
+ agent: string | null | undefined;
406
+ sessionId: string | null | undefined;
407
+ };
408
+ _input_in: {
409
+ appId?: string | undefined;
410
+ throwIfNotLoggedIn?: boolean | undefined;
411
+ } | undefined;
412
+ _input_out: {
413
+ appId?: string | undefined;
414
+ throwIfNotLoggedIn?: boolean | undefined;
415
+ } | undefined;
416
+ _output_in: typeof _trpc_server.unsetMarker;
417
+ _output_out: typeof _trpc_server.unsetMarker;
418
+ }, {
419
+ error: "SEED";
420
+ providers: never[];
421
+ userId?: undefined;
422
+ } | {
423
+ userId: null;
424
+ error: null;
425
+ providers: never[];
426
+ } | {
427
+ userId: string;
428
+ error: null;
429
+ providers: AuthProvider[];
430
+ }>>;
431
+ };
432
+ sendEmail: {
433
+ mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
434
+ _config: _trpc_server.RootConfig<{
435
+ ctx: {
436
+ appId: string;
437
+ versionId: string;
438
+ appName: string;
439
+ appSubdomain: string;
440
+ userId: string;
441
+ isTesting: boolean;
442
+ rpcMethod: string;
443
+ requestId: string;
444
+ type?: undefined;
445
+ dbUrl?: string | null | undefined;
446
+ userIdActual?: string | null | undefined;
447
+ channelId?: string | null | undefined;
448
+ } | {
449
+ type: "BOXMAN_REQUEST";
450
+ boxId: string;
451
+ isDevelopment: boolean | null;
452
+ appId?: string | null | undefined;
453
+ rpcMethod?: string | null | undefined;
454
+ requestId?: string | null | undefined;
455
+ channelId?: string | null | undefined;
456
+ platformUserId?: string | null | undefined;
457
+ agent?: string | null | undefined;
458
+ sessionId?: string | null | undefined;
459
+ };
460
+ meta: object;
461
+ errorShape: {
462
+ data: {
463
+ zodError: typeToFlattenedError<any, string> | null;
464
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
465
+ httpStatus: number;
466
+ path?: string;
467
+ stack?: string;
468
+ };
469
+ message: string;
470
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
471
+ };
472
+ transformer: typeof superjson;
473
+ }>;
474
+ _meta: object;
475
+ _ctx_out: {
476
+ type: undefined;
477
+ appId: string;
478
+ versionId: string;
479
+ dbUrl: string | null | undefined;
480
+ appName: string;
481
+ appSubdomain: string;
482
+ userId: string;
483
+ userIdActual: string | null | undefined;
484
+ isTesting: boolean;
485
+ rpcMethod: string;
486
+ requestId: string;
487
+ channelId: string | null | undefined;
488
+ } | {
489
+ type: "BOXMAN_REQUEST";
490
+ appId: string | null | undefined;
491
+ rpcMethod: string | null | undefined;
492
+ requestId: string | null | undefined;
493
+ channelId: string | null | undefined;
494
+ boxId: string;
495
+ platformUserId: string | null | undefined;
496
+ isDevelopment: boolean | null;
497
+ agent: string | null | undefined;
498
+ sessionId: string | null | undefined;
499
+ };
500
+ _input_in: {
501
+ markdown: string;
502
+ subject: string;
503
+ toUserId?: string | undefined;
504
+ toEmail?: string | undefined;
505
+ };
506
+ _input_out: {
507
+ markdown: string;
508
+ subject: string;
509
+ toUserId?: string | undefined;
510
+ toEmail?: string | undefined;
511
+ };
512
+ _output_in: typeof _trpc_server.unsetMarker;
513
+ _output_out: typeof _trpc_server.unsetMarker;
514
+ }, void>>;
515
+ };
516
+ inviteUser: {
517
+ mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
518
+ _config: _trpc_server.RootConfig<{
519
+ ctx: {
520
+ appId: string;
521
+ versionId: string;
522
+ appName: string;
523
+ appSubdomain: string;
524
+ userId: string;
525
+ isTesting: boolean;
526
+ rpcMethod: string;
527
+ requestId: string;
528
+ type?: undefined;
529
+ dbUrl?: string | null | undefined;
530
+ userIdActual?: string | null | undefined;
531
+ channelId?: string | null | undefined;
532
+ } | {
533
+ type: "BOXMAN_REQUEST";
534
+ boxId: string;
535
+ isDevelopment: boolean | null;
536
+ appId?: string | null | undefined;
537
+ rpcMethod?: string | null | undefined;
538
+ requestId?: string | null | undefined;
539
+ channelId?: string | null | undefined;
540
+ platformUserId?: string | null | undefined;
541
+ agent?: string | null | undefined;
542
+ sessionId?: string | null | undefined;
543
+ };
544
+ meta: object;
545
+ errorShape: {
546
+ data: {
547
+ zodError: typeToFlattenedError<any, string> | null;
548
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
549
+ httpStatus: number;
550
+ path?: string;
551
+ stack?: string;
552
+ };
553
+ message: string;
554
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
555
+ };
556
+ transformer: typeof superjson;
557
+ }>;
558
+ _meta: object;
559
+ _ctx_out: {
560
+ type: undefined;
561
+ appId: string;
562
+ versionId: string;
563
+ dbUrl: string | null | undefined;
564
+ appName: string;
565
+ appSubdomain: string;
566
+ userId: string;
567
+ userIdActual: string | null | undefined;
568
+ isTesting: boolean;
569
+ rpcMethod: string;
570
+ requestId: string;
571
+ channelId: string | null | undefined;
572
+ } | {
573
+ type: "BOXMAN_REQUEST";
574
+ appId: string | null | undefined;
575
+ rpcMethod: string | null | undefined;
576
+ requestId: string | null | undefined;
577
+ channelId: string | null | undefined;
578
+ boxId: string;
579
+ platformUserId: string | null | undefined;
580
+ isDevelopment: boolean | null;
581
+ agent: string | null | undefined;
582
+ sessionId: string | null | undefined;
583
+ };
584
+ _input_in: {
585
+ appId?: string | undefined;
586
+ markdown?: string | undefined;
587
+ subject?: string | undefined;
588
+ email?: string | undefined;
589
+ unauthenticatedLinks?: boolean | undefined;
590
+ };
591
+ _input_out: {
592
+ appId?: string | undefined;
593
+ markdown?: string | undefined;
594
+ subject?: string | undefined;
595
+ email?: string | undefined;
596
+ unauthenticatedLinks?: boolean | undefined;
597
+ };
598
+ _output_in: typeof _trpc_server.unsetMarker;
599
+ _output_out: typeof _trpc_server.unsetMarker;
600
+ }, {
601
+ id: string;
602
+ }>>;
603
+ };
604
+ uploadToBucket: {
605
+ mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
606
+ _config: _trpc_server.RootConfig<{
607
+ ctx: {
608
+ appId: string;
609
+ versionId: string;
610
+ appName: string;
611
+ appSubdomain: string;
612
+ userId: string;
613
+ isTesting: boolean;
614
+ rpcMethod: string;
615
+ requestId: string;
616
+ type?: undefined;
617
+ dbUrl?: string | null | undefined;
618
+ userIdActual?: string | null | undefined;
619
+ channelId?: string | null | undefined;
620
+ } | {
621
+ type: "BOXMAN_REQUEST";
622
+ boxId: string;
623
+ isDevelopment: boolean | null;
624
+ appId?: string | null | undefined;
625
+ rpcMethod?: string | null | undefined;
626
+ requestId?: string | null | undefined;
627
+ channelId?: string | null | undefined;
628
+ platformUserId?: string | null | undefined;
629
+ agent?: string | null | undefined;
630
+ sessionId?: string | null | undefined;
631
+ };
632
+ meta: object;
633
+ errorShape: {
634
+ data: {
635
+ zodError: typeToFlattenedError<any, string> | null;
636
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
637
+ httpStatus: number;
638
+ path?: string;
639
+ stack?: string;
640
+ };
641
+ message: string;
642
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
643
+ };
644
+ transformer: typeof superjson;
645
+ }>;
646
+ _meta: object;
647
+ _ctx_out: {
648
+ type: undefined;
649
+ appId: string;
650
+ versionId: string;
651
+ dbUrl: string | null | undefined;
652
+ appName: string;
653
+ appSubdomain: string;
654
+ userId: string;
655
+ userIdActual: string | null | undefined;
656
+ isTesting: boolean;
657
+ rpcMethod: string;
658
+ requestId: string;
659
+ channelId: string | null | undefined;
660
+ } | {
661
+ type: "BOXMAN_REQUEST";
662
+ appId: string | null | undefined;
663
+ rpcMethod: string | null | undefined;
664
+ requestId: string | null | undefined;
665
+ channelId: string | null | undefined;
666
+ boxId: string;
667
+ platformUserId: string | null | undefined;
668
+ isDevelopment: boolean | null;
669
+ agent: string | null | undefined;
670
+ sessionId: string | null | undefined;
671
+ };
672
+ _input_in: {
673
+ base64: string;
674
+ fileName: string;
675
+ };
676
+ _input_out: {
677
+ base64: string;
678
+ fileName: string;
679
+ };
680
+ _output_in: typeof _trpc_server.unsetMarker;
681
+ _output_out: typeof _trpc_server.unsetMarker;
682
+ }, string>>;
683
+ };
684
+ generateSoundEffect: {
685
+ mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
686
+ _config: _trpc_server.RootConfig<{
687
+ ctx: {
688
+ appId: string;
689
+ versionId: string;
690
+ appName: string;
691
+ appSubdomain: string;
692
+ userId: string;
693
+ isTesting: boolean;
694
+ rpcMethod: string;
695
+ requestId: string;
696
+ type?: undefined;
697
+ dbUrl?: string | null | undefined;
698
+ userIdActual?: string | null | undefined;
699
+ channelId?: string | null | undefined;
700
+ } | {
701
+ type: "BOXMAN_REQUEST";
702
+ boxId: string;
703
+ isDevelopment: boolean | null;
704
+ appId?: string | null | undefined;
705
+ rpcMethod?: string | null | undefined;
706
+ requestId?: string | null | undefined;
707
+ channelId?: string | null | undefined;
708
+ platformUserId?: string | null | undefined;
709
+ agent?: string | null | undefined;
710
+ sessionId?: string | null | undefined;
711
+ };
712
+ meta: object;
713
+ errorShape: {
714
+ data: {
715
+ zodError: typeToFlattenedError<any, string> | null;
716
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
717
+ httpStatus: number;
718
+ path?: string;
719
+ stack?: string;
720
+ };
721
+ message: string;
722
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
723
+ };
724
+ transformer: typeof superjson;
725
+ }>;
726
+ _meta: object;
727
+ _ctx_out: {
728
+ type: undefined;
729
+ appId: string;
730
+ versionId: string;
731
+ dbUrl: string | null | undefined;
732
+ appName: string;
733
+ appSubdomain: string;
734
+ userId: string;
735
+ userIdActual: string | null | undefined;
736
+ isTesting: boolean;
737
+ rpcMethod: string;
738
+ requestId: string;
739
+ channelId: string | null | undefined;
740
+ } | {
741
+ type: "BOXMAN_REQUEST";
742
+ appId: string | null | undefined;
743
+ rpcMethod: string | null | undefined;
744
+ requestId: string | null | undefined;
745
+ channelId: string | null | undefined;
746
+ boxId: string;
747
+ platformUserId: string | null | undefined;
748
+ isDevelopment: boolean | null;
749
+ agent: string | null | undefined;
750
+ sessionId: string | null | undefined;
751
+ };
752
+ _input_in: {
753
+ text: string;
754
+ durationInSeconds?: number | undefined;
755
+ promptInfluence?: number | undefined;
756
+ loop?: boolean | undefined;
757
+ };
758
+ _input_out: {
759
+ text: string;
760
+ durationInSeconds?: number | undefined;
761
+ promptInfluence?: number | undefined;
762
+ loop?: boolean | undefined;
763
+ };
764
+ _output_in: typeof _trpc_server.unsetMarker;
765
+ _output_out: typeof _trpc_server.unsetMarker;
766
+ }, string>>;
767
+ };
768
+ generateDialogue: {
769
+ mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
770
+ _config: _trpc_server.RootConfig<{
771
+ ctx: {
772
+ appId: string;
773
+ versionId: string;
774
+ appName: string;
775
+ appSubdomain: string;
776
+ userId: string;
777
+ isTesting: boolean;
778
+ rpcMethod: string;
779
+ requestId: string;
780
+ type?: undefined;
781
+ dbUrl?: string | null | undefined;
782
+ userIdActual?: string | null | undefined;
783
+ channelId?: string | null | undefined;
784
+ } | {
785
+ type: "BOXMAN_REQUEST";
786
+ boxId: string;
787
+ isDevelopment: boolean | null;
788
+ appId?: string | null | undefined;
789
+ rpcMethod?: string | null | undefined;
790
+ requestId?: string | null | undefined;
791
+ channelId?: string | null | undefined;
792
+ platformUserId?: string | null | undefined;
793
+ agent?: string | null | undefined;
794
+ sessionId?: string | null | undefined;
795
+ };
796
+ meta: object;
797
+ errorShape: {
798
+ data: {
799
+ zodError: typeToFlattenedError<any, string> | null;
800
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
801
+ httpStatus: number;
802
+ path?: string;
803
+ stack?: string;
804
+ };
805
+ message: string;
806
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
807
+ };
808
+ transformer: typeof superjson;
809
+ }>;
810
+ _meta: object;
811
+ _ctx_out: {
812
+ type: undefined;
813
+ appId: string;
814
+ versionId: string;
815
+ dbUrl: string | null | undefined;
816
+ appName: string;
817
+ appSubdomain: string;
818
+ userId: string;
819
+ userIdActual: string | null | undefined;
820
+ isTesting: boolean;
821
+ rpcMethod: string;
822
+ requestId: string;
823
+ channelId: string | null | undefined;
824
+ } | {
825
+ type: "BOXMAN_REQUEST";
826
+ appId: string | null | undefined;
827
+ rpcMethod: string | null | undefined;
828
+ requestId: string | null | undefined;
829
+ channelId: string | null | undefined;
830
+ boxId: string;
831
+ platformUserId: string | null | undefined;
832
+ isDevelopment: boolean | null;
833
+ agent: string | null | undefined;
834
+ sessionId: string | null | undefined;
835
+ };
836
+ _input_in: {
837
+ inputs: {
838
+ text: string;
839
+ character: string;
840
+ }[];
841
+ };
842
+ _input_out: {
843
+ inputs: {
844
+ text: string;
845
+ character: string;
846
+ }[];
847
+ };
848
+ _output_in: typeof _trpc_server.unsetMarker;
849
+ _output_out: typeof _trpc_server.unsetMarker;
850
+ }, {
851
+ url: string;
852
+ duration: number | undefined;
853
+ }>>;
854
+ };
855
+ generateMusic: {
856
+ mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
857
+ _config: _trpc_server.RootConfig<{
858
+ ctx: {
859
+ appId: string;
860
+ versionId: string;
861
+ appName: string;
862
+ appSubdomain: string;
863
+ userId: string;
864
+ isTesting: boolean;
865
+ rpcMethod: string;
866
+ requestId: string;
867
+ type?: undefined;
868
+ dbUrl?: string | null | undefined;
869
+ userIdActual?: string | null | undefined;
870
+ channelId?: string | null | undefined;
871
+ } | {
872
+ type: "BOXMAN_REQUEST";
873
+ boxId: string;
874
+ isDevelopment: boolean | null;
875
+ appId?: string | null | undefined;
876
+ rpcMethod?: string | null | undefined;
877
+ requestId?: string | null | undefined;
878
+ channelId?: string | null | undefined;
879
+ platformUserId?: string | null | undefined;
880
+ agent?: string | null | undefined;
881
+ sessionId?: string | null | undefined;
882
+ };
883
+ meta: object;
884
+ errorShape: {
885
+ data: {
886
+ zodError: typeToFlattenedError<any, string> | null;
887
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
888
+ httpStatus: number;
889
+ path?: string;
890
+ stack?: string;
891
+ };
892
+ message: string;
893
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
894
+ };
895
+ transformer: typeof superjson;
896
+ }>;
897
+ _meta: object;
898
+ _ctx_out: {
899
+ type: undefined;
900
+ appId: string;
901
+ versionId: string;
902
+ dbUrl: string | null | undefined;
903
+ appName: string;
904
+ appSubdomain: string;
905
+ userId: string;
906
+ userIdActual: string | null | undefined;
907
+ isTesting: boolean;
908
+ rpcMethod: string;
909
+ requestId: string;
910
+ channelId: string | null | undefined;
911
+ } | {
912
+ type: "BOXMAN_REQUEST";
913
+ appId: string | null | undefined;
914
+ rpcMethod: string | null | undefined;
915
+ requestId: string | null | undefined;
916
+ channelId: string | null | undefined;
917
+ boxId: string;
918
+ platformUserId: string | null | undefined;
919
+ isDevelopment: boolean | null;
920
+ agent: string | null | undefined;
921
+ sessionId: string | null | undefined;
922
+ };
923
+ _input_in: {
924
+ text: string;
925
+ };
926
+ _input_out: {
927
+ text: string;
928
+ };
929
+ _output_in: typeof _trpc_server.unsetMarker;
930
+ _output_out: typeof _trpc_server.unsetMarker;
931
+ }, string>>;
932
+ };
933
+ extractStructuredDataFromContent: {
934
+ mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
935
+ _config: _trpc_server.RootConfig<{
936
+ ctx: {
937
+ appId: string;
938
+ versionId: string;
939
+ appName: string;
940
+ appSubdomain: string;
941
+ userId: string;
942
+ isTesting: boolean;
943
+ rpcMethod: string;
944
+ requestId: string;
945
+ type?: undefined;
946
+ dbUrl?: string | null | undefined;
947
+ userIdActual?: string | null | undefined;
948
+ channelId?: string | null | undefined;
949
+ } | {
950
+ type: "BOXMAN_REQUEST";
951
+ boxId: string;
952
+ isDevelopment: boolean | null;
953
+ appId?: string | null | undefined;
954
+ rpcMethod?: string | null | undefined;
955
+ requestId?: string | null | undefined;
956
+ channelId?: string | null | undefined;
957
+ platformUserId?: string | null | undefined;
958
+ agent?: string | null | undefined;
959
+ sessionId?: string | null | undefined;
960
+ };
961
+ meta: object;
962
+ errorShape: {
963
+ data: {
964
+ zodError: typeToFlattenedError<any, string> | null;
965
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
966
+ httpStatus: number;
967
+ path?: string;
968
+ stack?: string;
969
+ };
970
+ message: string;
971
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
972
+ };
973
+ transformer: typeof superjson;
974
+ }>;
975
+ _meta: object;
976
+ _ctx_out: {
977
+ type: undefined;
978
+ appId: string;
979
+ versionId: string;
980
+ dbUrl: string | null | undefined;
981
+ appName: string;
982
+ appSubdomain: string;
983
+ userId: string;
984
+ userIdActual: string | null | undefined;
985
+ isTesting: boolean;
986
+ rpcMethod: string;
987
+ requestId: string;
988
+ channelId: string | null | undefined;
989
+ } | {
990
+ type: "BOXMAN_REQUEST";
991
+ appId: string | null | undefined;
992
+ rpcMethod: string | null | undefined;
993
+ requestId: string | null | undefined;
994
+ channelId: string | null | undefined;
995
+ boxId: string;
996
+ platformUserId: string | null | undefined;
997
+ isDevelopment: boolean | null;
998
+ agent: string | null | undefined;
999
+ sessionId: string | null | undefined;
1000
+ };
1001
+ _input_in: {
1002
+ base64?: string | undefined;
1003
+ url?: string | undefined;
1004
+ schema?: any;
1005
+ };
1006
+ _input_out: {
1007
+ base64?: string | undefined;
1008
+ url?: string | undefined;
1009
+ schema?: any;
1010
+ };
1011
+ _output_in: typeof _trpc_server.unsetMarker;
1012
+ _output_out: typeof _trpc_server.unsetMarker;
1013
+ }, object>>;
1014
+ };
1015
+ extractTextFromContent: {
1016
+ mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
1017
+ _config: _trpc_server.RootConfig<{
1018
+ ctx: {
1019
+ appId: string;
1020
+ versionId: string;
1021
+ appName: string;
1022
+ appSubdomain: string;
1023
+ userId: string;
1024
+ isTesting: boolean;
1025
+ rpcMethod: string;
1026
+ requestId: string;
1027
+ type?: undefined;
1028
+ dbUrl?: string | null | undefined;
1029
+ userIdActual?: string | null | undefined;
1030
+ channelId?: string | null | undefined;
1031
+ } | {
1032
+ type: "BOXMAN_REQUEST";
1033
+ boxId: string;
1034
+ isDevelopment: boolean | null;
1035
+ appId?: string | null | undefined;
1036
+ rpcMethod?: string | null | undefined;
1037
+ requestId?: string | null | undefined;
1038
+ channelId?: string | null | undefined;
1039
+ platformUserId?: string | null | undefined;
1040
+ agent?: string | null | undefined;
1041
+ sessionId?: string | null | undefined;
1042
+ };
1043
+ meta: object;
1044
+ errorShape: {
1045
+ data: {
1046
+ zodError: typeToFlattenedError<any, string> | null;
1047
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
1048
+ httpStatus: number;
1049
+ path?: string;
1050
+ stack?: string;
1051
+ };
1052
+ message: string;
1053
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
1054
+ };
1055
+ transformer: typeof superjson;
1056
+ }>;
1057
+ _meta: object;
1058
+ _ctx_out: {
1059
+ type: undefined;
1060
+ appId: string;
1061
+ versionId: string;
1062
+ dbUrl: string | null | undefined;
1063
+ appName: string;
1064
+ appSubdomain: string;
1065
+ userId: string;
1066
+ userIdActual: string | null | undefined;
1067
+ isTesting: boolean;
1068
+ rpcMethod: string;
1069
+ requestId: string;
1070
+ channelId: string | null | undefined;
1071
+ } | {
1072
+ type: "BOXMAN_REQUEST";
1073
+ appId: string | null | undefined;
1074
+ rpcMethod: string | null | undefined;
1075
+ requestId: string | null | undefined;
1076
+ channelId: string | null | undefined;
1077
+ boxId: string;
1078
+ platformUserId: string | null | undefined;
1079
+ isDevelopment: boolean | null;
1080
+ agent: string | null | undefined;
1081
+ sessionId: string | null | undefined;
1082
+ };
1083
+ _input_in: {
1084
+ base64?: string | undefined;
1085
+ url?: string | undefined;
1086
+ outputFormat?: "raw" | "formatted-markdown" | undefined;
1087
+ };
1088
+ _input_out: {
1089
+ base64?: string | undefined;
1090
+ url?: string | undefined;
1091
+ outputFormat?: "raw" | "formatted-markdown" | undefined;
1092
+ };
1093
+ _output_in: typeof _trpc_server.unsetMarker;
1094
+ _output_out: typeof _trpc_server.unsetMarker;
1095
+ }, string>>;
1096
+ };
1097
+ getTTSVoicesCatalog: {
1098
+ mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
1099
+ _config: _trpc_server.RootConfig<{
1100
+ ctx: {
1101
+ appId: string;
1102
+ versionId: string;
1103
+ appName: string;
1104
+ appSubdomain: string;
1105
+ userId: string;
1106
+ isTesting: boolean;
1107
+ rpcMethod: string;
1108
+ requestId: string;
1109
+ type?: undefined;
1110
+ dbUrl?: string | null | undefined;
1111
+ userIdActual?: string | null | undefined;
1112
+ channelId?: string | null | undefined;
1113
+ } | {
1114
+ type: "BOXMAN_REQUEST";
1115
+ boxId: string;
1116
+ isDevelopment: boolean | null;
1117
+ appId?: string | null | undefined;
1118
+ rpcMethod?: string | null | undefined;
1119
+ requestId?: string | null | undefined;
1120
+ channelId?: string | null | undefined;
1121
+ platformUserId?: string | null | undefined;
1122
+ agent?: string | null | undefined;
1123
+ sessionId?: string | null | undefined;
1124
+ };
1125
+ meta: object;
1126
+ errorShape: {
1127
+ data: {
1128
+ zodError: typeToFlattenedError<any, string> | null;
1129
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
1130
+ httpStatus: number;
1131
+ path?: string;
1132
+ stack?: string;
1133
+ };
1134
+ message: string;
1135
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
1136
+ };
1137
+ transformer: typeof superjson;
1138
+ }>;
1139
+ _meta: object;
1140
+ _ctx_out: {
1141
+ type: undefined;
1142
+ appId: string;
1143
+ versionId: string;
1144
+ dbUrl: string | null | undefined;
1145
+ appName: string;
1146
+ appSubdomain: string;
1147
+ userId: string;
1148
+ userIdActual: string | null | undefined;
1149
+ isTesting: boolean;
1150
+ rpcMethod: string;
1151
+ requestId: string;
1152
+ channelId: string | null | undefined;
1153
+ } | {
1154
+ type: "BOXMAN_REQUEST";
1155
+ appId: string | null | undefined;
1156
+ rpcMethod: string | null | undefined;
1157
+ requestId: string | null | undefined;
1158
+ channelId: string | null | undefined;
1159
+ boxId: string;
1160
+ platformUserId: string | null | undefined;
1161
+ isDevelopment: boolean | null;
1162
+ agent: string | null | undefined;
1163
+ sessionId: string | null | undefined;
1164
+ };
1165
+ _input_in: {
1166
+ limit: number;
1167
+ };
1168
+ _input_out: {
1169
+ limit: number;
1170
+ };
1171
+ _output_in: typeof _trpc_server.unsetMarker;
1172
+ _output_out: typeof _trpc_server.unsetMarker;
1173
+ }, {
1174
+ id: string;
1175
+ name: string;
1176
+ description: string;
1177
+ previewUrl: string;
1178
+ tier: $Enums.UserTier;
1179
+ }[]>>;
1180
+ };
1181
+ getDialogueVoicesCatalog: {
1182
+ mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
1183
+ _config: _trpc_server.RootConfig<{
1184
+ ctx: {
1185
+ appId: string;
1186
+ versionId: string;
1187
+ appName: string;
1188
+ appSubdomain: string;
1189
+ userId: string;
1190
+ isTesting: boolean;
1191
+ rpcMethod: string;
1192
+ requestId: string;
1193
+ type?: undefined;
1194
+ dbUrl?: string | null | undefined;
1195
+ userIdActual?: string | null | undefined;
1196
+ channelId?: string | null | undefined;
1197
+ } | {
1198
+ type: "BOXMAN_REQUEST";
1199
+ boxId: string;
1200
+ isDevelopment: boolean | null;
1201
+ appId?: string | null | undefined;
1202
+ rpcMethod?: string | null | undefined;
1203
+ requestId?: string | null | undefined;
1204
+ channelId?: string | null | undefined;
1205
+ platformUserId?: string | null | undefined;
1206
+ agent?: string | null | undefined;
1207
+ sessionId?: string | null | undefined;
1208
+ };
1209
+ meta: object;
1210
+ errorShape: {
1211
+ data: {
1212
+ zodError: typeToFlattenedError<any, string> | null;
1213
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
1214
+ httpStatus: number;
1215
+ path?: string;
1216
+ stack?: string;
1217
+ };
1218
+ message: string;
1219
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
1220
+ };
1221
+ transformer: typeof superjson;
1222
+ }>;
1223
+ _meta: object;
1224
+ _ctx_out: {
1225
+ type: undefined;
1226
+ appId: string;
1227
+ versionId: string;
1228
+ dbUrl: string | null | undefined;
1229
+ appName: string;
1230
+ appSubdomain: string;
1231
+ userId: string;
1232
+ userIdActual: string | null | undefined;
1233
+ isTesting: boolean;
1234
+ rpcMethod: string;
1235
+ requestId: string;
1236
+ channelId: string | null | undefined;
1237
+ } | {
1238
+ type: "BOXMAN_REQUEST";
1239
+ appId: string | null | undefined;
1240
+ rpcMethod: string | null | undefined;
1241
+ requestId: string | null | undefined;
1242
+ channelId: string | null | undefined;
1243
+ boxId: string;
1244
+ platformUserId: string | null | undefined;
1245
+ isDevelopment: boolean | null;
1246
+ agent: string | null | undefined;
1247
+ sessionId: string | null | undefined;
1248
+ };
1249
+ _input_in: {
1250
+ limit: number;
1251
+ };
1252
+ _input_out: {
1253
+ limit: number;
1254
+ };
1255
+ _output_in: typeof _trpc_server.unsetMarker;
1256
+ _output_out: typeof _trpc_server.unsetMarker;
1257
+ }, {
1258
+ id: string;
1259
+ name: string;
1260
+ description: string;
1261
+ previewUrl: string;
1262
+ tier: $Enums.UserTier;
1263
+ }[]>>;
1264
+ };
1265
+ getImageModelsCatalog: {
1266
+ mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
1267
+ _config: _trpc_server.RootConfig<{
1268
+ ctx: {
1269
+ appId: string;
1270
+ versionId: string;
1271
+ appName: string;
1272
+ appSubdomain: string;
1273
+ userId: string;
1274
+ isTesting: boolean;
1275
+ rpcMethod: string;
1276
+ requestId: string;
1277
+ type?: undefined;
1278
+ dbUrl?: string | null | undefined;
1279
+ userIdActual?: string | null | undefined;
1280
+ channelId?: string | null | undefined;
1281
+ } | {
1282
+ type: "BOXMAN_REQUEST";
1283
+ boxId: string;
1284
+ isDevelopment: boolean | null;
1285
+ appId?: string | null | undefined;
1286
+ rpcMethod?: string | null | undefined;
1287
+ requestId?: string | null | undefined;
1288
+ channelId?: string | null | undefined;
1289
+ platformUserId?: string | null | undefined;
1290
+ agent?: string | null | undefined;
1291
+ sessionId?: string | null | undefined;
1292
+ };
1293
+ meta: object;
1294
+ errorShape: {
1295
+ data: {
1296
+ zodError: typeToFlattenedError<any, string> | null;
1297
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
1298
+ httpStatus: number;
1299
+ path?: string;
1300
+ stack?: string;
1301
+ };
1302
+ message: string;
1303
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
1304
+ };
1305
+ transformer: typeof superjson;
1306
+ }>;
1307
+ _meta: object;
1308
+ _ctx_out: {
1309
+ type: undefined;
1310
+ appId: string;
1311
+ versionId: string;
1312
+ dbUrl: string | null | undefined;
1313
+ appName: string;
1314
+ appSubdomain: string;
1315
+ userId: string;
1316
+ userIdActual: string | null | undefined;
1317
+ isTesting: boolean;
1318
+ rpcMethod: string;
1319
+ requestId: string;
1320
+ channelId: string | null | undefined;
1321
+ } | {
1322
+ type: "BOXMAN_REQUEST";
1323
+ appId: string | null | undefined;
1324
+ rpcMethod: string | null | undefined;
1325
+ requestId: string | null | undefined;
1326
+ channelId: string | null | undefined;
1327
+ boxId: string;
1328
+ platformUserId: string | null | undefined;
1329
+ isDevelopment: boolean | null;
1330
+ agent: string | null | undefined;
1331
+ sessionId: string | null | undefined;
1332
+ };
1333
+ _input_in: {
1334
+ limit: number;
1335
+ };
1336
+ _input_out: {
1337
+ limit: number;
1338
+ };
1339
+ _output_in: typeof _trpc_server.unsetMarker;
1340
+ _output_out: typeof _trpc_server.unsetMarker;
1341
+ }, VisualModel[]>>;
1342
+ };
1343
+ createProduct: {
1344
+ mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
1345
+ _config: _trpc_server.RootConfig<{
1346
+ ctx: {
1347
+ appId: string;
1348
+ versionId: string;
1349
+ appName: string;
1350
+ appSubdomain: string;
1351
+ userId: string;
1352
+ isTesting: boolean;
1353
+ rpcMethod: string;
1354
+ requestId: string;
1355
+ type?: undefined;
1356
+ dbUrl?: string | null | undefined;
1357
+ userIdActual?: string | null | undefined;
1358
+ channelId?: string | null | undefined;
1359
+ } | {
1360
+ type: "BOXMAN_REQUEST";
1361
+ boxId: string;
1362
+ isDevelopment: boolean | null;
1363
+ appId?: string | null | undefined;
1364
+ rpcMethod?: string | null | undefined;
1365
+ requestId?: string | null | undefined;
1366
+ channelId?: string | null | undefined;
1367
+ platformUserId?: string | null | undefined;
1368
+ agent?: string | null | undefined;
1369
+ sessionId?: string | null | undefined;
1370
+ };
1371
+ meta: object;
1372
+ errorShape: {
1373
+ data: {
1374
+ zodError: typeToFlattenedError<any, string> | null;
1375
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
1376
+ httpStatus: number;
1377
+ path?: string;
1378
+ stack?: string;
1379
+ };
1380
+ message: string;
1381
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
1382
+ };
1383
+ transformer: typeof superjson;
1384
+ }>;
1385
+ _meta: object;
1386
+ _ctx_out: {
1387
+ type: undefined;
1388
+ appId: string;
1389
+ versionId: string;
1390
+ dbUrl: string | null | undefined;
1391
+ appName: string;
1392
+ appSubdomain: string;
1393
+ userId: string;
1394
+ userIdActual: string | null | undefined;
1395
+ isTesting: boolean;
1396
+ rpcMethod: string;
1397
+ requestId: string;
1398
+ channelId: string | null | undefined;
1399
+ } | {
1400
+ type: "BOXMAN_REQUEST";
1401
+ appId: string | null | undefined;
1402
+ rpcMethod: string | null | undefined;
1403
+ requestId: string | null | undefined;
1404
+ channelId: string | null | undefined;
1405
+ boxId: string;
1406
+ platformUserId: string | null | undefined;
1407
+ isDevelopment: boolean | null;
1408
+ agent: string | null | undefined;
1409
+ sessionId: string | null | undefined;
1410
+ };
1411
+ _input_in: {
1412
+ name: string;
1413
+ kind: "IN_APP_PURCHASE" | "SUBSCRIPTION";
1414
+ description: string;
1415
+ price: number;
1416
+ appId?: string | undefined;
1417
+ };
1418
+ _input_out: {
1419
+ name: string;
1420
+ kind: "IN_APP_PURCHASE" | "SUBSCRIPTION";
1421
+ description: string;
1422
+ price: number;
1423
+ appId?: string | undefined;
1424
+ };
1425
+ _output_in: typeof _trpc_server.unsetMarker;
1426
+ _output_out: typeof _trpc_server.unsetMarker;
1427
+ }, {
1428
+ purchaseLink: string;
1429
+ id: string;
1430
+ name: string;
1431
+ kind: $Enums.ProductKind;
1432
+ description: string;
1433
+ price: number;
1434
+ }>>;
1435
+ };
1436
+ listProducts: {
1437
+ mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
1438
+ _config: _trpc_server.RootConfig<{
1439
+ ctx: {
1440
+ appId: string;
1441
+ versionId: string;
1442
+ appName: string;
1443
+ appSubdomain: string;
1444
+ userId: string;
1445
+ isTesting: boolean;
1446
+ rpcMethod: string;
1447
+ requestId: string;
1448
+ type?: undefined;
1449
+ dbUrl?: string | null | undefined;
1450
+ userIdActual?: string | null | undefined;
1451
+ channelId?: string | null | undefined;
1452
+ } | {
1453
+ type: "BOXMAN_REQUEST";
1454
+ boxId: string;
1455
+ isDevelopment: boolean | null;
1456
+ appId?: string | null | undefined;
1457
+ rpcMethod?: string | null | undefined;
1458
+ requestId?: string | null | undefined;
1459
+ channelId?: string | null | undefined;
1460
+ platformUserId?: string | null | undefined;
1461
+ agent?: string | null | undefined;
1462
+ sessionId?: string | null | undefined;
1463
+ };
1464
+ meta: object;
1465
+ errorShape: {
1466
+ data: {
1467
+ zodError: typeToFlattenedError<any, string> | null;
1468
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
1469
+ httpStatus: number;
1470
+ path?: string;
1471
+ stack?: string;
1472
+ };
1473
+ message: string;
1474
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
1475
+ };
1476
+ transformer: typeof superjson;
1477
+ }>;
1478
+ _meta: object;
1479
+ _ctx_out: {
1480
+ type: undefined;
1481
+ appId: string;
1482
+ versionId: string;
1483
+ dbUrl: string | null | undefined;
1484
+ appName: string;
1485
+ appSubdomain: string;
1486
+ userId: string;
1487
+ userIdActual: string | null | undefined;
1488
+ isTesting: boolean;
1489
+ rpcMethod: string;
1490
+ requestId: string;
1491
+ channelId: string | null | undefined;
1492
+ } | {
1493
+ type: "BOXMAN_REQUEST";
1494
+ appId: string | null | undefined;
1495
+ rpcMethod: string | null | undefined;
1496
+ requestId: string | null | undefined;
1497
+ channelId: string | null | undefined;
1498
+ boxId: string;
1499
+ platformUserId: string | null | undefined;
1500
+ isDevelopment: boolean | null;
1501
+ agent: string | null | undefined;
1502
+ sessionId: string | null | undefined;
1503
+ };
1504
+ _input_in: {
1505
+ appId?: string | undefined;
1506
+ } | undefined;
1507
+ _input_out: {
1508
+ appId?: string | undefined;
1509
+ } | undefined;
1510
+ _output_in: typeof _trpc_server.unsetMarker;
1511
+ _output_out: typeof _trpc_server.unsetMarker;
1512
+ }, {
1513
+ purchaseLink: string;
1514
+ id: string;
1515
+ name: string;
1516
+ kind: $Enums.ProductKind;
1517
+ description: string;
1518
+ price: number;
1519
+ }[]>>;
1520
+ };
1521
+ listUserPurchases: {
1522
+ mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
1523
+ _config: _trpc_server.RootConfig<{
1524
+ ctx: {
1525
+ appId: string;
1526
+ versionId: string;
1527
+ appName: string;
1528
+ appSubdomain: string;
1529
+ userId: string;
1530
+ isTesting: boolean;
1531
+ rpcMethod: string;
1532
+ requestId: string;
1533
+ type?: undefined;
1534
+ dbUrl?: string | null | undefined;
1535
+ userIdActual?: string | null | undefined;
1536
+ channelId?: string | null | undefined;
1537
+ } | {
1538
+ type: "BOXMAN_REQUEST";
1539
+ boxId: string;
1540
+ isDevelopment: boolean | null;
1541
+ appId?: string | null | undefined;
1542
+ rpcMethod?: string | null | undefined;
1543
+ requestId?: string | null | undefined;
1544
+ channelId?: string | null | undefined;
1545
+ platformUserId?: string | null | undefined;
1546
+ agent?: string | null | undefined;
1547
+ sessionId?: string | null | undefined;
1548
+ };
1549
+ meta: object;
1550
+ errorShape: {
1551
+ data: {
1552
+ zodError: typeToFlattenedError<any, string> | null;
1553
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
1554
+ httpStatus: number;
1555
+ path?: string;
1556
+ stack?: string;
1557
+ };
1558
+ message: string;
1559
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
1560
+ };
1561
+ transformer: typeof superjson;
1562
+ }>;
1563
+ _meta: object;
1564
+ _ctx_out: {
1565
+ type: undefined;
1566
+ appId: string;
1567
+ versionId: string;
1568
+ dbUrl: string | null | undefined;
1569
+ appName: string;
1570
+ appSubdomain: string;
1571
+ userId: string;
1572
+ userIdActual: string | null | undefined;
1573
+ isTesting: boolean;
1574
+ rpcMethod: string;
1575
+ requestId: string;
1576
+ channelId: string | null | undefined;
1577
+ } | {
1578
+ type: "BOXMAN_REQUEST";
1579
+ appId: string | null | undefined;
1580
+ rpcMethod: string | null | undefined;
1581
+ requestId: string | null | undefined;
1582
+ channelId: string | null | undefined;
1583
+ boxId: string;
1584
+ platformUserId: string | null | undefined;
1585
+ isDevelopment: boolean | null;
1586
+ agent: string | null | undefined;
1587
+ sessionId: string | null | undefined;
1588
+ };
1589
+ _input_in: {
1590
+ appId?: string | undefined;
1591
+ userId?: string | undefined;
1592
+ } | undefined;
1593
+ _input_out: {
1594
+ appId?: string | undefined;
1595
+ userId?: string | undefined;
1596
+ } | undefined;
1597
+ _output_in: typeof _trpc_server.unsetMarker;
1598
+ _output_out: typeof _trpc_server.unsetMarker;
1599
+ }, {
1600
+ id: string;
1601
+ name: string;
1602
+ kind: $Enums.ProductKind;
1603
+ description: string;
1604
+ price: number;
1605
+ }[]>>;
1606
+ };
1607
+ discontinueProduct: {
1608
+ mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
1609
+ _config: _trpc_server.RootConfig<{
1610
+ ctx: {
1611
+ appId: string;
1612
+ versionId: string;
1613
+ appName: string;
1614
+ appSubdomain: string;
1615
+ userId: string;
1616
+ isTesting: boolean;
1617
+ rpcMethod: string;
1618
+ requestId: string;
1619
+ type?: undefined;
1620
+ dbUrl?: string | null | undefined;
1621
+ userIdActual?: string | null | undefined;
1622
+ channelId?: string | null | undefined;
1623
+ } | {
1624
+ type: "BOXMAN_REQUEST";
1625
+ boxId: string;
1626
+ isDevelopment: boolean | null;
1627
+ appId?: string | null | undefined;
1628
+ rpcMethod?: string | null | undefined;
1629
+ requestId?: string | null | undefined;
1630
+ channelId?: string | null | undefined;
1631
+ platformUserId?: string | null | undefined;
1632
+ agent?: string | null | undefined;
1633
+ sessionId?: string | null | undefined;
1634
+ };
1635
+ meta: object;
1636
+ errorShape: {
1637
+ data: {
1638
+ zodError: typeToFlattenedError<any, string> | null;
1639
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
1640
+ httpStatus: number;
1641
+ path?: string;
1642
+ stack?: string;
1643
+ };
1644
+ message: string;
1645
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
1646
+ };
1647
+ transformer: typeof superjson;
1648
+ }>;
1649
+ _meta: object;
1650
+ _ctx_out: {
1651
+ type: undefined;
1652
+ appId: string;
1653
+ versionId: string;
1654
+ dbUrl: string | null | undefined;
1655
+ appName: string;
1656
+ appSubdomain: string;
1657
+ userId: string;
1658
+ userIdActual: string | null | undefined;
1659
+ isTesting: boolean;
1660
+ rpcMethod: string;
1661
+ requestId: string;
1662
+ channelId: string | null | undefined;
1663
+ } | {
1664
+ type: "BOXMAN_REQUEST";
1665
+ appId: string | null | undefined;
1666
+ rpcMethod: string | null | undefined;
1667
+ requestId: string | null | undefined;
1668
+ channelId: string | null | undefined;
1669
+ boxId: string;
1670
+ platformUserId: string | null | undefined;
1671
+ isDevelopment: boolean | null;
1672
+ agent: string | null | undefined;
1673
+ sessionId: string | null | undefined;
1674
+ };
1675
+ _input_in: {
1676
+ productId: string;
1677
+ appId?: string | undefined;
1678
+ };
1679
+ _input_out: {
1680
+ productId: string;
1681
+ appId?: string | undefined;
1682
+ };
1683
+ _output_in: typeof _trpc_server.unsetMarker;
1684
+ _output_out: typeof _trpc_server.unsetMarker;
1685
+ }, void>>;
1686
+ };
1687
+ getOAuthToken: {
1688
+ mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
1689
+ _config: _trpc_server.RootConfig<{
1690
+ ctx: {
1691
+ appId: string;
1692
+ versionId: string;
1693
+ appName: string;
1694
+ appSubdomain: string;
1695
+ userId: string;
1696
+ isTesting: boolean;
1697
+ rpcMethod: string;
1698
+ requestId: string;
1699
+ type?: undefined;
1700
+ dbUrl?: string | null | undefined;
1701
+ userIdActual?: string | null | undefined;
1702
+ channelId?: string | null | undefined;
1703
+ } | {
1704
+ type: "BOXMAN_REQUEST";
1705
+ boxId: string;
1706
+ isDevelopment: boolean | null;
1707
+ appId?: string | null | undefined;
1708
+ rpcMethod?: string | null | undefined;
1709
+ requestId?: string | null | undefined;
1710
+ channelId?: string | null | undefined;
1711
+ platformUserId?: string | null | undefined;
1712
+ agent?: string | null | undefined;
1713
+ sessionId?: string | null | undefined;
1714
+ };
1715
+ meta: object;
1716
+ errorShape: {
1717
+ data: {
1718
+ zodError: typeToFlattenedError<any, string> | null;
1719
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
1720
+ httpStatus: number;
1721
+ path?: string;
1722
+ stack?: string;
1723
+ };
1724
+ message: string;
1725
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
1726
+ };
1727
+ transformer: typeof superjson;
1728
+ }>;
1729
+ _meta: object;
1730
+ _ctx_out: {
1731
+ type: undefined;
1732
+ appId: string;
1733
+ versionId: string;
1734
+ dbUrl: string | null | undefined;
1735
+ appName: string;
1736
+ appSubdomain: string;
1737
+ userId: string;
1738
+ userIdActual: string | null | undefined;
1739
+ isTesting: boolean;
1740
+ rpcMethod: string;
1741
+ requestId: string;
1742
+ channelId: string | null | undefined;
1743
+ } | {
1744
+ type: "BOXMAN_REQUEST";
1745
+ appId: string | null | undefined;
1746
+ rpcMethod: string | null | undefined;
1747
+ requestId: string | null | undefined;
1748
+ channelId: string | null | undefined;
1749
+ boxId: string;
1750
+ platformUserId: string | null | undefined;
1751
+ isDevelopment: boolean | null;
1752
+ agent: string | null | undefined;
1753
+ sessionId: string | null | undefined;
1754
+ };
1755
+ _input_in: {
1756
+ connectionId: string;
1757
+ appId?: string | undefined;
1758
+ };
1759
+ _input_out: {
1760
+ connectionId: string;
1761
+ appId?: string | undefined;
1762
+ };
1763
+ _output_in: typeof _trpc_server.unsetMarker;
1764
+ _output_out: typeof _trpc_server.unsetMarker;
1765
+ }, {
1766
+ connectionId: string;
1767
+ userId: string | null;
1768
+ accessToken: string | null;
1769
+ expiresAt: Date | null;
1770
+ scope: string[];
1771
+ }>>;
1772
+ };
1773
+ getOAuthConnectionForCurrentUser: {
1774
+ mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
1775
+ _config: _trpc_server.RootConfig<{
1776
+ ctx: {
1777
+ appId: string;
1778
+ versionId: string;
1779
+ appName: string;
1780
+ appSubdomain: string;
1781
+ userId: string;
1782
+ isTesting: boolean;
1783
+ rpcMethod: string;
1784
+ requestId: string;
1785
+ type?: undefined;
1786
+ dbUrl?: string | null | undefined;
1787
+ userIdActual?: string | null | undefined;
1788
+ channelId?: string | null | undefined;
1789
+ } | {
1790
+ type: "BOXMAN_REQUEST";
1791
+ boxId: string;
1792
+ isDevelopment: boolean | null;
1793
+ appId?: string | null | undefined;
1794
+ rpcMethod?: string | null | undefined;
1795
+ requestId?: string | null | undefined;
1796
+ channelId?: string | null | undefined;
1797
+ platformUserId?: string | null | undefined;
1798
+ agent?: string | null | undefined;
1799
+ sessionId?: string | null | undefined;
1800
+ };
1801
+ meta: object;
1802
+ errorShape: {
1803
+ data: {
1804
+ zodError: typeToFlattenedError<any, string> | null;
1805
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
1806
+ httpStatus: number;
1807
+ path?: string;
1808
+ stack?: string;
1809
+ };
1810
+ message: string;
1811
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
1812
+ };
1813
+ transformer: typeof superjson;
1814
+ }>;
1815
+ _meta: object;
1816
+ _ctx_out: {
1817
+ type: undefined;
1818
+ appId: string;
1819
+ versionId: string;
1820
+ dbUrl: string | null | undefined;
1821
+ appName: string;
1822
+ appSubdomain: string;
1823
+ userId: string;
1824
+ userIdActual: string | null | undefined;
1825
+ isTesting: boolean;
1826
+ rpcMethod: string;
1827
+ requestId: string;
1828
+ channelId: string | null | undefined;
1829
+ } | {
1830
+ type: "BOXMAN_REQUEST";
1831
+ appId: string | null | undefined;
1832
+ rpcMethod: string | null | undefined;
1833
+ requestId: string | null | undefined;
1834
+ channelId: string | null | undefined;
1835
+ boxId: string;
1836
+ platformUserId: string | null | undefined;
1837
+ isDevelopment: boolean | null;
1838
+ agent: string | null | undefined;
1839
+ sessionId: string | null | undefined;
1840
+ };
1841
+ _input_in: {
1842
+ scope: string[];
1843
+ provider: "GITHUB_USER" | "GITHUB_BOT" | "GOOGLE" | "AC1" | "SLACK" | "SLACK_BOT" | "DISCORD" | "NOTION" | "TWITTER" | "LINKEDIN" | "YAHOO" | "FIGMA";
1844
+ appId?: string | undefined;
1845
+ required?: boolean | undefined;
1846
+ };
1847
+ _input_out: {
1848
+ scope: string[];
1849
+ provider: "GITHUB_USER" | "GITHUB_BOT" | "GOOGLE" | "AC1" | "SLACK" | "SLACK_BOT" | "DISCORD" | "NOTION" | "TWITTER" | "LINKEDIN" | "YAHOO" | "FIGMA";
1850
+ appId?: string | undefined;
1851
+ required?: boolean | undefined;
1852
+ };
1853
+ _output_in: typeof _trpc_server.unsetMarker;
1854
+ _output_out: typeof _trpc_server.unsetMarker;
1855
+ }, {
1856
+ id: string;
1857
+ provider: string;
1858
+ userId: string | undefined;
1859
+ scope: string[];
1860
+ } | null>>;
1861
+ };
1862
+ isPermissionGranted: {
1863
+ mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
1864
+ _config: _trpc_server.RootConfig<{
1865
+ ctx: {
1866
+ appId: string;
1867
+ versionId: string;
1868
+ appName: string;
1869
+ appSubdomain: string;
1870
+ userId: string;
1871
+ isTesting: boolean;
1872
+ rpcMethod: string;
1873
+ requestId: string;
1874
+ type?: undefined;
1875
+ dbUrl?: string | null | undefined;
1876
+ userIdActual?: string | null | undefined;
1877
+ channelId?: string | null | undefined;
1878
+ } | {
1879
+ type: "BOXMAN_REQUEST";
1880
+ boxId: string;
1881
+ isDevelopment: boolean | null;
1882
+ appId?: string | null | undefined;
1883
+ rpcMethod?: string | null | undefined;
1884
+ requestId?: string | null | undefined;
1885
+ channelId?: string | null | undefined;
1886
+ platformUserId?: string | null | undefined;
1887
+ agent?: string | null | undefined;
1888
+ sessionId?: string | null | undefined;
1889
+ };
1890
+ meta: object;
1891
+ errorShape: {
1892
+ data: {
1893
+ zodError: typeToFlattenedError<any, string> | null;
1894
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
1895
+ httpStatus: number;
1896
+ path?: string;
1897
+ stack?: string;
1898
+ };
1899
+ message: string;
1900
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
1901
+ };
1902
+ transformer: typeof superjson;
1903
+ }>;
1904
+ _meta: object;
1905
+ _ctx_out: {
1906
+ type: undefined;
1907
+ appId: string;
1908
+ versionId: string;
1909
+ dbUrl: string | null | undefined;
1910
+ appName: string;
1911
+ appSubdomain: string;
1912
+ userId: string;
1913
+ userIdActual: string | null | undefined;
1914
+ isTesting: boolean;
1915
+ rpcMethod: string;
1916
+ requestId: string;
1917
+ channelId: string | null | undefined;
1918
+ } | {
1919
+ type: "BOXMAN_REQUEST";
1920
+ appId: string | null | undefined;
1921
+ rpcMethod: string | null | undefined;
1922
+ requestId: string | null | undefined;
1923
+ channelId: string | null | undefined;
1924
+ boxId: string;
1925
+ platformUserId: string | null | undefined;
1926
+ isDevelopment: boolean | null;
1927
+ agent: string | null | undefined;
1928
+ sessionId: string | null | undefined;
1929
+ };
1930
+ _input_in: {
1931
+ userId: string;
1932
+ scope: string;
1933
+ provider: string;
1934
+ appId?: string | undefined;
1935
+ };
1936
+ _input_out: {
1937
+ userId: string;
1938
+ scope: string;
1939
+ provider: string;
1940
+ appId?: string | undefined;
1941
+ };
1942
+ _output_in: typeof _trpc_server.unsetMarker;
1943
+ _output_out: typeof _trpc_server.unsetMarker;
1944
+ }, boolean>>;
1945
+ };
1946
+ getOAuthConnection: {
1947
+ mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
1948
+ _config: _trpc_server.RootConfig<{
1949
+ ctx: {
1950
+ appId: string;
1951
+ versionId: string;
1952
+ appName: string;
1953
+ appSubdomain: string;
1954
+ userId: string;
1955
+ isTesting: boolean;
1956
+ rpcMethod: string;
1957
+ requestId: string;
1958
+ type?: undefined;
1959
+ dbUrl?: string | null | undefined;
1960
+ userIdActual?: string | null | undefined;
1961
+ channelId?: string | null | undefined;
1962
+ } | {
1963
+ type: "BOXMAN_REQUEST";
1964
+ boxId: string;
1965
+ isDevelopment: boolean | null;
1966
+ appId?: string | null | undefined;
1967
+ rpcMethod?: string | null | undefined;
1968
+ requestId?: string | null | undefined;
1969
+ channelId?: string | null | undefined;
1970
+ platformUserId?: string | null | undefined;
1971
+ agent?: string | null | undefined;
1972
+ sessionId?: string | null | undefined;
1973
+ };
1974
+ meta: object;
1975
+ errorShape: {
1976
+ data: {
1977
+ zodError: typeToFlattenedError<any, string> | null;
1978
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
1979
+ httpStatus: number;
1980
+ path?: string;
1981
+ stack?: string;
1982
+ };
1983
+ message: string;
1984
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
1985
+ };
1986
+ transformer: typeof superjson;
1987
+ }>;
1988
+ _meta: object;
1989
+ _ctx_out: {
1990
+ type: undefined;
1991
+ appId: string;
1992
+ versionId: string;
1993
+ dbUrl: string | null | undefined;
1994
+ appName: string;
1995
+ appSubdomain: string;
1996
+ userId: string;
1997
+ userIdActual: string | null | undefined;
1998
+ isTesting: boolean;
1999
+ rpcMethod: string;
2000
+ requestId: string;
2001
+ channelId: string | null | undefined;
2002
+ } | {
2003
+ type: "BOXMAN_REQUEST";
2004
+ appId: string | null | undefined;
2005
+ rpcMethod: string | null | undefined;
2006
+ requestId: string | null | undefined;
2007
+ channelId: string | null | undefined;
2008
+ boxId: string;
2009
+ platformUserId: string | null | undefined;
2010
+ isDevelopment: boolean | null;
2011
+ agent: string | null | undefined;
2012
+ sessionId: string | null | undefined;
2013
+ };
2014
+ _input_in: {
2015
+ connectionId: string;
2016
+ appId?: string | undefined;
2017
+ };
2018
+ _input_out: {
2019
+ connectionId: string;
2020
+ appId?: string | undefined;
2021
+ };
2022
+ _output_in: typeof _trpc_server.unsetMarker;
2023
+ _output_out: typeof _trpc_server.unsetMarker;
2024
+ }, {
2025
+ id: string;
2026
+ provider: string;
2027
+ userId: string | undefined;
2028
+ scope: string[];
2029
+ }>>;
2030
+ };
2031
+ queryOAuthConnections: {
2032
+ mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
2033
+ _config: _trpc_server.RootConfig<{
2034
+ ctx: {
2035
+ appId: string;
2036
+ versionId: string;
2037
+ appName: string;
2038
+ appSubdomain: string;
2039
+ userId: string;
2040
+ isTesting: boolean;
2041
+ rpcMethod: string;
2042
+ requestId: string;
2043
+ type?: undefined;
2044
+ dbUrl?: string | null | undefined;
2045
+ userIdActual?: string | null | undefined;
2046
+ channelId?: string | null | undefined;
2047
+ } | {
2048
+ type: "BOXMAN_REQUEST";
2049
+ boxId: string;
2050
+ isDevelopment: boolean | null;
2051
+ appId?: string | null | undefined;
2052
+ rpcMethod?: string | null | undefined;
2053
+ requestId?: string | null | undefined;
2054
+ channelId?: string | null | undefined;
2055
+ platformUserId?: string | null | undefined;
2056
+ agent?: string | null | undefined;
2057
+ sessionId?: string | null | undefined;
2058
+ };
2059
+ meta: object;
2060
+ errorShape: {
2061
+ data: {
2062
+ zodError: typeToFlattenedError<any, string> | null;
2063
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
2064
+ httpStatus: number;
2065
+ path?: string;
2066
+ stack?: string;
2067
+ };
2068
+ message: string;
2069
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
2070
+ };
2071
+ transformer: typeof superjson;
2072
+ }>;
2073
+ _meta: object;
2074
+ _ctx_out: {
2075
+ type: undefined;
2076
+ appId: string;
2077
+ versionId: string;
2078
+ dbUrl: string | null | undefined;
2079
+ appName: string;
2080
+ appSubdomain: string;
2081
+ userId: string;
2082
+ userIdActual: string | null | undefined;
2083
+ isTesting: boolean;
2084
+ rpcMethod: string;
2085
+ requestId: string;
2086
+ channelId: string | null | undefined;
2087
+ } | {
2088
+ type: "BOXMAN_REQUEST";
2089
+ appId: string | null | undefined;
2090
+ rpcMethod: string | null | undefined;
2091
+ requestId: string | null | undefined;
2092
+ channelId: string | null | undefined;
2093
+ boxId: string;
2094
+ platformUserId: string | null | undefined;
2095
+ isDevelopment: boolean | null;
2096
+ agent: string | null | undefined;
2097
+ sessionId: string | null | undefined;
2098
+ };
2099
+ _input_in: {
2100
+ appId?: string | undefined;
2101
+ userId?: string | undefined;
2102
+ scope?: string[] | undefined;
2103
+ provider?: "GITHUB_USER" | "GITHUB_BOT" | "GOOGLE" | "AC1" | "SLACK" | "SLACK_BOT" | "DISCORD" | "NOTION" | "TWITTER" | "LINKEDIN" | "YAHOO" | "FIGMA" | undefined;
2104
+ };
2105
+ _input_out: {
2106
+ appId?: string | undefined;
2107
+ userId?: string | undefined;
2108
+ scope?: string[] | undefined;
2109
+ provider?: "GITHUB_USER" | "GITHUB_BOT" | "GOOGLE" | "AC1" | "SLACK" | "SLACK_BOT" | "DISCORD" | "NOTION" | "TWITTER" | "LINKEDIN" | "YAHOO" | "FIGMA" | undefined;
2110
+ };
2111
+ _output_in: typeof _trpc_server.unsetMarker;
2112
+ _output_out: typeof _trpc_server.unsetMarker;
2113
+ }, {
2114
+ id: string;
2115
+ provider: string;
2116
+ userId: string | undefined;
2117
+ scope: string[];
2118
+ }[]>>;
2119
+ };
2120
+ deleteOAuthConnection: {
2121
+ mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
2122
+ _config: _trpc_server.RootConfig<{
2123
+ ctx: {
2124
+ appId: string;
2125
+ versionId: string;
2126
+ appName: string;
2127
+ appSubdomain: string;
2128
+ userId: string;
2129
+ isTesting: boolean;
2130
+ rpcMethod: string;
2131
+ requestId: string;
2132
+ type?: undefined;
2133
+ dbUrl?: string | null | undefined;
2134
+ userIdActual?: string | null | undefined;
2135
+ channelId?: string | null | undefined;
2136
+ } | {
2137
+ type: "BOXMAN_REQUEST";
2138
+ boxId: string;
2139
+ isDevelopment: boolean | null;
2140
+ appId?: string | null | undefined;
2141
+ rpcMethod?: string | null | undefined;
2142
+ requestId?: string | null | undefined;
2143
+ channelId?: string | null | undefined;
2144
+ platformUserId?: string | null | undefined;
2145
+ agent?: string | null | undefined;
2146
+ sessionId?: string | null | undefined;
2147
+ };
2148
+ meta: object;
2149
+ errorShape: {
2150
+ data: {
2151
+ zodError: typeToFlattenedError<any, string> | null;
2152
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
2153
+ httpStatus: number;
2154
+ path?: string;
2155
+ stack?: string;
2156
+ };
2157
+ message: string;
2158
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
2159
+ };
2160
+ transformer: typeof superjson;
2161
+ }>;
2162
+ _meta: object;
2163
+ _ctx_out: {
2164
+ type: undefined;
2165
+ appId: string;
2166
+ versionId: string;
2167
+ dbUrl: string | null | undefined;
2168
+ appName: string;
2169
+ appSubdomain: string;
2170
+ userId: string;
2171
+ userIdActual: string | null | undefined;
2172
+ isTesting: boolean;
2173
+ rpcMethod: string;
2174
+ requestId: string;
2175
+ channelId: string | null | undefined;
2176
+ } | {
2177
+ type: "BOXMAN_REQUEST";
2178
+ appId: string | null | undefined;
2179
+ rpcMethod: string | null | undefined;
2180
+ requestId: string | null | undefined;
2181
+ channelId: string | null | undefined;
2182
+ boxId: string;
2183
+ platformUserId: string | null | undefined;
2184
+ isDevelopment: boolean | null;
2185
+ agent: string | null | undefined;
2186
+ sessionId: string | null | undefined;
2187
+ };
2188
+ _input_in: {
2189
+ connectionId: string;
2190
+ appId?: string | undefined;
2191
+ };
2192
+ _input_out: {
2193
+ connectionId: string;
2194
+ appId?: string | undefined;
2195
+ };
2196
+ _output_in: typeof _trpc_server.unsetMarker;
2197
+ _output_out: typeof _trpc_server.unsetMarker;
2198
+ }, {
2199
+ readonly ok: true;
2200
+ }>>;
2201
+ };
2202
+ getAppInfo: {
2203
+ mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
2204
+ _config: _trpc_server.RootConfig<{
2205
+ ctx: {
2206
+ appId: string;
2207
+ versionId: string;
2208
+ appName: string;
2209
+ appSubdomain: string;
2210
+ userId: string;
2211
+ isTesting: boolean;
2212
+ rpcMethod: string;
2213
+ requestId: string;
2214
+ type?: undefined;
2215
+ dbUrl?: string | null | undefined;
2216
+ userIdActual?: string | null | undefined;
2217
+ channelId?: string | null | undefined;
2218
+ } | {
2219
+ type: "BOXMAN_REQUEST";
2220
+ boxId: string;
2221
+ isDevelopment: boolean | null;
2222
+ appId?: string | null | undefined;
2223
+ rpcMethod?: string | null | undefined;
2224
+ requestId?: string | null | undefined;
2225
+ channelId?: string | null | undefined;
2226
+ platformUserId?: string | null | undefined;
2227
+ agent?: string | null | undefined;
2228
+ sessionId?: string | null | undefined;
2229
+ };
2230
+ meta: object;
2231
+ errorShape: {
2232
+ data: {
2233
+ zodError: typeToFlattenedError<any, string> | null;
2234
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
2235
+ httpStatus: number;
2236
+ path?: string;
2237
+ stack?: string;
2238
+ };
2239
+ message: string;
2240
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
2241
+ };
2242
+ transformer: typeof superjson;
2243
+ }>;
2244
+ _meta: object;
2245
+ _ctx_out: {
2246
+ type: undefined;
2247
+ appId: string;
2248
+ versionId: string;
2249
+ dbUrl: string | null | undefined;
2250
+ appName: string;
2251
+ appSubdomain: string;
2252
+ userId: string;
2253
+ userIdActual: string | null | undefined;
2254
+ isTesting: boolean;
2255
+ rpcMethod: string;
2256
+ requestId: string;
2257
+ channelId: string | null | undefined;
2258
+ } | {
2259
+ type: "BOXMAN_REQUEST";
2260
+ appId: string | null | undefined;
2261
+ rpcMethod: string | null | undefined;
2262
+ requestId: string | null | undefined;
2263
+ channelId: string | null | undefined;
2264
+ boxId: string;
2265
+ platformUserId: string | null | undefined;
2266
+ isDevelopment: boolean | null;
2267
+ agent: string | null | undefined;
2268
+ sessionId: string | null | undefined;
2269
+ };
2270
+ _input_in: {
2271
+ appId: string;
2272
+ };
2273
+ _input_out: {
2274
+ appId: string;
2275
+ };
2276
+ _output_in: typeof _trpc_server.unsetMarker;
2277
+ _output_out: typeof _trpc_server.unsetMarker;
2278
+ }, {
2279
+ response: string;
2280
+ }>>;
2281
+ };
2282
+ queryDb: {
2283
+ mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
2284
+ _config: _trpc_server.RootConfig<{
2285
+ ctx: {
2286
+ appId: string;
2287
+ versionId: string;
2288
+ appName: string;
2289
+ appSubdomain: string;
2290
+ userId: string;
2291
+ isTesting: boolean;
2292
+ rpcMethod: string;
2293
+ requestId: string;
2294
+ type?: undefined;
2295
+ dbUrl?: string | null | undefined;
2296
+ userIdActual?: string | null | undefined;
2297
+ channelId?: string | null | undefined;
2298
+ } | {
2299
+ type: "BOXMAN_REQUEST";
2300
+ boxId: string;
2301
+ isDevelopment: boolean | null;
2302
+ appId?: string | null | undefined;
2303
+ rpcMethod?: string | null | undefined;
2304
+ requestId?: string | null | undefined;
2305
+ channelId?: string | null | undefined;
2306
+ platformUserId?: string | null | undefined;
2307
+ agent?: string | null | undefined;
2308
+ sessionId?: string | null | undefined;
2309
+ };
2310
+ meta: object;
2311
+ errorShape: {
2312
+ data: {
2313
+ zodError: typeToFlattenedError<any, string> | null;
2314
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
2315
+ httpStatus: number;
2316
+ path?: string;
2317
+ stack?: string;
2318
+ };
2319
+ message: string;
2320
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
2321
+ };
2322
+ transformer: typeof superjson;
2323
+ }>;
2324
+ _meta: object;
2325
+ _ctx_out: {
2326
+ type: undefined;
2327
+ appId: string;
2328
+ versionId: string;
2329
+ dbUrl: string | null | undefined;
2330
+ appName: string;
2331
+ appSubdomain: string;
2332
+ userId: string;
2333
+ userIdActual: string | null | undefined;
2334
+ isTesting: boolean;
2335
+ rpcMethod: string;
2336
+ requestId: string;
2337
+ channelId: string | null | undefined;
2338
+ } | {
2339
+ type: "BOXMAN_REQUEST";
2340
+ appId: string | null | undefined;
2341
+ rpcMethod: string | null | undefined;
2342
+ requestId: string | null | undefined;
2343
+ channelId: string | null | undefined;
2344
+ boxId: string;
2345
+ platformUserId: string | null | undefined;
2346
+ isDevelopment: boolean | null;
2347
+ agent: string | null | undefined;
2348
+ sessionId: string | null | undefined;
2349
+ };
2350
+ _input_in: {
2351
+ appId: string;
2352
+ query: string;
2353
+ isDevelopmentDatabase?: boolean | undefined;
2354
+ };
2355
+ _input_out: {
2356
+ appId: string;
2357
+ query: string;
2358
+ isDevelopmentDatabase: boolean;
2359
+ };
2360
+ _output_in: typeof _trpc_server.unsetMarker;
2361
+ _output_out: typeof _trpc_server.unsetMarker;
2362
+ }, unknown[] | {
2363
+ response: string;
2364
+ } | undefined>>;
2365
+ };
2366
+ runRpcEndpoint: {
2367
+ mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
2368
+ _config: _trpc_server.RootConfig<{
2369
+ ctx: {
2370
+ appId: string;
2371
+ versionId: string;
2372
+ appName: string;
2373
+ appSubdomain: string;
2374
+ userId: string;
2375
+ isTesting: boolean;
2376
+ rpcMethod: string;
2377
+ requestId: string;
2378
+ type?: undefined;
2379
+ dbUrl?: string | null | undefined;
2380
+ userIdActual?: string | null | undefined;
2381
+ channelId?: string | null | undefined;
2382
+ } | {
2383
+ type: "BOXMAN_REQUEST";
2384
+ boxId: string;
2385
+ isDevelopment: boolean | null;
2386
+ appId?: string | null | undefined;
2387
+ rpcMethod?: string | null | undefined;
2388
+ requestId?: string | null | undefined;
2389
+ channelId?: string | null | undefined;
2390
+ platformUserId?: string | null | undefined;
2391
+ agent?: string | null | undefined;
2392
+ sessionId?: string | null | undefined;
2393
+ };
2394
+ meta: object;
2395
+ errorShape: {
2396
+ data: {
2397
+ zodError: typeToFlattenedError<any, string> | null;
2398
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
2399
+ httpStatus: number;
2400
+ path?: string;
2401
+ stack?: string;
2402
+ };
2403
+ message: string;
2404
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
2405
+ };
2406
+ transformer: typeof superjson;
2407
+ }>;
2408
+ _meta: object;
2409
+ _ctx_out: {
2410
+ type: undefined;
2411
+ appId: string;
2412
+ versionId: string;
2413
+ dbUrl: string | null | undefined;
2414
+ appName: string;
2415
+ appSubdomain: string;
2416
+ userId: string;
2417
+ userIdActual: string | null | undefined;
2418
+ isTesting: boolean;
2419
+ rpcMethod: string;
2420
+ requestId: string;
2421
+ channelId: string | null | undefined;
2422
+ } | {
2423
+ type: "BOXMAN_REQUEST";
2424
+ appId: string | null | undefined;
2425
+ rpcMethod: string | null | undefined;
2426
+ requestId: string | null | undefined;
2427
+ channelId: string | null | undefined;
2428
+ boxId: string;
2429
+ platformUserId: string | null | undefined;
2430
+ isDevelopment: boolean | null;
2431
+ agent: string | null | undefined;
2432
+ sessionId: string | null | undefined;
2433
+ };
2434
+ _input_in: {
2435
+ methodName: string;
2436
+ onBehalfOfCurrentUser: boolean;
2437
+ params?: unknown[] | undefined;
2438
+ appId?: string | null | undefined;
2439
+ runOnTestDatabase?: boolean | undefined;
2440
+ };
2441
+ _input_out: {
2442
+ methodName: string;
2443
+ runOnTestDatabase: boolean;
2444
+ onBehalfOfCurrentUser: boolean;
2445
+ params?: unknown[] | undefined;
2446
+ appId?: string | null | undefined;
2447
+ };
2448
+ _output_in: typeof _trpc_server.unsetMarker;
2449
+ _output_out: typeof _trpc_server.unsetMarker;
2450
+ }, {
2451
+ response: string;
2452
+ }>>;
2453
+ };
2454
+ runOAuthEndpoint: {
2455
+ mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
2456
+ _config: _trpc_server.RootConfig<{
2457
+ ctx: {
2458
+ appId: string;
2459
+ versionId: string;
2460
+ appName: string;
2461
+ appSubdomain: string;
2462
+ userId: string;
2463
+ isTesting: boolean;
2464
+ rpcMethod: string;
2465
+ requestId: string;
2466
+ type?: undefined;
2467
+ dbUrl?: string | null | undefined;
2468
+ userIdActual?: string | null | undefined;
2469
+ channelId?: string | null | undefined;
2470
+ } | {
2471
+ type: "BOXMAN_REQUEST";
2472
+ boxId: string;
2473
+ isDevelopment: boolean | null;
2474
+ appId?: string | null | undefined;
2475
+ rpcMethod?: string | null | undefined;
2476
+ requestId?: string | null | undefined;
2477
+ channelId?: string | null | undefined;
2478
+ platformUserId?: string | null | undefined;
2479
+ agent?: string | null | undefined;
2480
+ sessionId?: string | null | undefined;
2481
+ };
2482
+ meta: object;
2483
+ errorShape: {
2484
+ data: {
2485
+ zodError: typeToFlattenedError<any, string> | null;
2486
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
2487
+ httpStatus: number;
2488
+ path?: string;
2489
+ stack?: string;
2490
+ };
2491
+ message: string;
2492
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
2493
+ };
2494
+ transformer: typeof superjson;
2495
+ }>;
2496
+ _meta: object;
2497
+ _ctx_out: {
2498
+ type: undefined;
2499
+ appId: string;
2500
+ versionId: string;
2501
+ dbUrl: string | null | undefined;
2502
+ appName: string;
2503
+ appSubdomain: string;
2504
+ userId: string;
2505
+ userIdActual: string | null | undefined;
2506
+ isTesting: boolean;
2507
+ rpcMethod: string;
2508
+ requestId: string;
2509
+ channelId: string | null | undefined;
2510
+ } | {
2511
+ type: "BOXMAN_REQUEST";
2512
+ appId: string | null | undefined;
2513
+ rpcMethod: string | null | undefined;
2514
+ requestId: string | null | undefined;
2515
+ channelId: string | null | undefined;
2516
+ boxId: string;
2517
+ platformUserId: string | null | undefined;
2518
+ isDevelopment: boolean | null;
2519
+ agent: string | null | undefined;
2520
+ sessionId: string | null | undefined;
2521
+ };
2522
+ _input_in: {
2523
+ provider: "GITHUB_USER" | "GITHUB_BOT" | "GOOGLE" | "SLACK" | "SLACK_BOT" | "DISCORD" | "NOTION" | "TWITTER" | "LINKEDIN" | "YAHOO" | "FIGMA";
2524
+ endpoint: string;
2525
+ method: "GET" | "POST" | "PUT" | "DELETE" | "HEAD";
2526
+ params?: any;
2527
+ description?: string | undefined;
2528
+ headers?: Record<string, string> | undefined;
2529
+ connectionId?: string | undefined;
2530
+ };
2531
+ _input_out: {
2532
+ provider: "GITHUB_USER" | "GITHUB_BOT" | "GOOGLE" | "SLACK" | "SLACK_BOT" | "DISCORD" | "NOTION" | "TWITTER" | "LINKEDIN" | "YAHOO" | "FIGMA";
2533
+ endpoint: string;
2534
+ method: "GET" | "POST" | "PUT" | "DELETE" | "HEAD";
2535
+ params?: any;
2536
+ description?: string | undefined;
2537
+ headers?: Record<string, string> | undefined;
2538
+ connectionId?: string | undefined;
2539
+ };
2540
+ _output_in: typeof _trpc_server.unsetMarker;
2541
+ _output_out: typeof _trpc_server.unsetMarker;
2542
+ }, {
2543
+ ok: boolean;
2544
+ status: number;
2545
+ statusText: string;
2546
+ headers: {
2547
+ [k: string]: string;
2548
+ };
2549
+ body: string;
2550
+ reason: any;
2551
+ retryAfter: string | undefined;
2552
+ }>>;
2553
+ };
2554
+ checkOauthIntegrationStatus: {
2555
+ mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
2556
+ _config: _trpc_server.RootConfig<{
2557
+ ctx: {
2558
+ appId: string;
2559
+ versionId: string;
2560
+ appName: string;
2561
+ appSubdomain: string;
2562
+ userId: string;
2563
+ isTesting: boolean;
2564
+ rpcMethod: string;
2565
+ requestId: string;
2566
+ type?: undefined;
2567
+ dbUrl?: string | null | undefined;
2568
+ userIdActual?: string | null | undefined;
2569
+ channelId?: string | null | undefined;
2570
+ } | {
2571
+ type: "BOXMAN_REQUEST";
2572
+ boxId: string;
2573
+ isDevelopment: boolean | null;
2574
+ appId?: string | null | undefined;
2575
+ rpcMethod?: string | null | undefined;
2576
+ requestId?: string | null | undefined;
2577
+ channelId?: string | null | undefined;
2578
+ platformUserId?: string | null | undefined;
2579
+ agent?: string | null | undefined;
2580
+ sessionId?: string | null | undefined;
2581
+ };
2582
+ meta: object;
2583
+ errorShape: {
2584
+ data: {
2585
+ zodError: typeToFlattenedError<any, string> | null;
2586
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
2587
+ httpStatus: number;
2588
+ path?: string;
2589
+ stack?: string;
2590
+ };
2591
+ message: string;
2592
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
2593
+ };
2594
+ transformer: typeof superjson;
2595
+ }>;
2596
+ _meta: object;
2597
+ _ctx_out: {
2598
+ type: undefined;
2599
+ appId: string;
2600
+ versionId: string;
2601
+ dbUrl: string | null | undefined;
2602
+ appName: string;
2603
+ appSubdomain: string;
2604
+ userId: string;
2605
+ userIdActual: string | null | undefined;
2606
+ isTesting: boolean;
2607
+ rpcMethod: string;
2608
+ requestId: string;
2609
+ channelId: string | null | undefined;
2610
+ } | {
2611
+ type: "BOXMAN_REQUEST";
2612
+ appId: string | null | undefined;
2613
+ rpcMethod: string | null | undefined;
2614
+ requestId: string | null | undefined;
2615
+ channelId: string | null | undefined;
2616
+ boxId: string;
2617
+ platformUserId: string | null | undefined;
2618
+ isDevelopment: boolean | null;
2619
+ agent: string | null | undefined;
2620
+ sessionId: string | null | undefined;
2621
+ };
2622
+ _input_in: {
2623
+ provider: "GITHUB_USER" | "GITHUB_BOT" | "GOOGLE" | "SLACK" | "SLACK_BOT" | "DISCORD" | "NOTION" | "TWITTER" | "LINKEDIN" | "YAHOO" | "FIGMA";
2624
+ };
2625
+ _input_out: {
2626
+ provider: "GITHUB_USER" | "GITHUB_BOT" | "GOOGLE" | "SLACK" | "SLACK_BOT" | "DISCORD" | "NOTION" | "TWITTER" | "LINKEDIN" | "YAHOO" | "FIGMA";
2627
+ };
2628
+ _output_in: typeof _trpc_server.unsetMarker;
2629
+ _output_out: typeof _trpc_server.unsetMarker;
2630
+ }, {
2631
+ connected: boolean;
2632
+ connections: {
2633
+ id: string;
2634
+ connectedAt: Date;
2635
+ scopes: string[];
2636
+ profile: {
2637
+ handle?: string | null;
2638
+ name?: string | null;
2639
+ email?: string | null;
2640
+ avatarUrl?: string | null;
2641
+ };
2642
+ }[];
2643
+ }>>;
2644
+ };
2645
+ searchTheWeb: {
2646
+ mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
2647
+ _config: _trpc_server.RootConfig<{
2648
+ ctx: {
2649
+ appId: string;
2650
+ versionId: string;
2651
+ appName: string;
2652
+ appSubdomain: string;
2653
+ userId: string;
2654
+ isTesting: boolean;
2655
+ rpcMethod: string;
2656
+ requestId: string;
2657
+ type?: undefined;
2658
+ dbUrl?: string | null | undefined;
2659
+ userIdActual?: string | null | undefined;
2660
+ channelId?: string | null | undefined;
2661
+ } | {
2662
+ type: "BOXMAN_REQUEST";
2663
+ boxId: string;
2664
+ isDevelopment: boolean | null;
2665
+ appId?: string | null | undefined;
2666
+ rpcMethod?: string | null | undefined;
2667
+ requestId?: string | null | undefined;
2668
+ channelId?: string | null | undefined;
2669
+ platformUserId?: string | null | undefined;
2670
+ agent?: string | null | undefined;
2671
+ sessionId?: string | null | undefined;
2672
+ };
2673
+ meta: object;
2674
+ errorShape: {
2675
+ data: {
2676
+ zodError: typeToFlattenedError<any, string> | null;
2677
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
2678
+ httpStatus: number;
2679
+ path?: string;
2680
+ stack?: string;
2681
+ };
2682
+ message: string;
2683
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
2684
+ };
2685
+ transformer: typeof superjson;
2686
+ }>;
2687
+ _meta: object;
2688
+ _ctx_out: {
2689
+ type: undefined;
2690
+ appId: string;
2691
+ versionId: string;
2692
+ dbUrl: string | null | undefined;
2693
+ appName: string;
2694
+ appSubdomain: string;
2695
+ userId: string;
2696
+ userIdActual: string | null | undefined;
2697
+ isTesting: boolean;
2698
+ rpcMethod: string;
2699
+ requestId: string;
2700
+ channelId: string | null | undefined;
2701
+ } | {
2702
+ type: "BOXMAN_REQUEST";
2703
+ appId: string | null | undefined;
2704
+ rpcMethod: string | null | undefined;
2705
+ requestId: string | null | undefined;
2706
+ channelId: string | null | undefined;
2707
+ boxId: string;
2708
+ platformUserId: string | null | undefined;
2709
+ isDevelopment: boolean | null;
2710
+ agent: string | null | undefined;
2711
+ sessionId: string | null | undefined;
2712
+ };
2713
+ _input_in: {
2714
+ query: string;
2715
+ allowedDomains?: string[] | undefined;
2716
+ blockedDomains?: string[] | undefined;
2717
+ };
2718
+ _input_out: {
2719
+ query: string;
2720
+ allowedDomains?: string[] | undefined;
2721
+ blockedDomains?: string[] | undefined;
2722
+ };
2723
+ _output_in: typeof _trpc_server.unsetMarker;
2724
+ _output_out: typeof _trpc_server.unsetMarker;
2725
+ }, {
2726
+ response: string;
2727
+ }>>;
2728
+ };
2729
+ textToSpeech: {
2730
+ mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
2731
+ _config: _trpc_server.RootConfig<{
2732
+ ctx: {
2733
+ appId: string;
2734
+ versionId: string;
2735
+ appName: string;
2736
+ appSubdomain: string;
2737
+ userId: string;
2738
+ isTesting: boolean;
2739
+ rpcMethod: string;
2740
+ requestId: string;
2741
+ type?: undefined;
2742
+ dbUrl?: string | null | undefined;
2743
+ userIdActual?: string | null | undefined;
2744
+ channelId?: string | null | undefined;
2745
+ } | {
2746
+ type: "BOXMAN_REQUEST";
2747
+ boxId: string;
2748
+ isDevelopment: boolean | null;
2749
+ appId?: string | null | undefined;
2750
+ rpcMethod?: string | null | undefined;
2751
+ requestId?: string | null | undefined;
2752
+ channelId?: string | null | undefined;
2753
+ platformUserId?: string | null | undefined;
2754
+ agent?: string | null | undefined;
2755
+ sessionId?: string | null | undefined;
2756
+ };
2757
+ meta: object;
2758
+ errorShape: {
2759
+ data: {
2760
+ zodError: typeToFlattenedError<any, string> | null;
2761
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
2762
+ httpStatus: number;
2763
+ path?: string;
2764
+ stack?: string;
2765
+ };
2766
+ message: string;
2767
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
2768
+ };
2769
+ transformer: typeof superjson;
2770
+ }>;
2771
+ _meta: object;
2772
+ _ctx_out: {
2773
+ type: undefined;
2774
+ appId: string;
2775
+ versionId: string;
2776
+ dbUrl: string | null | undefined;
2777
+ appName: string;
2778
+ appSubdomain: string;
2779
+ userId: string;
2780
+ userIdActual: string | null | undefined;
2781
+ isTesting: boolean;
2782
+ rpcMethod: string;
2783
+ requestId: string;
2784
+ channelId: string | null | undefined;
2785
+ } | {
2786
+ type: "BOXMAN_REQUEST";
2787
+ appId: string | null | undefined;
2788
+ rpcMethod: string | null | undefined;
2789
+ requestId: string | null | undefined;
2790
+ channelId: string | null | undefined;
2791
+ boxId: string;
2792
+ platformUserId: string | null | undefined;
2793
+ isDevelopment: boolean | null;
2794
+ agent: string | null | undefined;
2795
+ sessionId: string | null | undefined;
2796
+ };
2797
+ _input_in: {
2798
+ text: string;
2799
+ voice?: "Will" | "Brian" | "George" | "Jessica" | "Liam" | "Alice" | "Sarah" | "Charlotte" | "Matilda" | "Eric" | "Alloy" | "Ash" | "Ballad" | "Coral" | "Echo" | "Fable" | "Nova" | "Onyx" | "Sage" | "Shimmer" | undefined;
2800
+ };
2801
+ _input_out: {
2802
+ text: string;
2803
+ voice?: "Will" | "Brian" | "George" | "Jessica" | "Liam" | "Alice" | "Sarah" | "Charlotte" | "Matilda" | "Eric" | "Alloy" | "Ash" | "Ballad" | "Coral" | "Echo" | "Fable" | "Nova" | "Onyx" | "Sage" | "Shimmer" | undefined;
2804
+ };
2805
+ _output_in: typeof _trpc_server.unsetMarker;
2806
+ _output_out: typeof _trpc_server.unsetMarker;
2807
+ }, {
2808
+ url: string;
2809
+ duration: number | undefined;
2810
+ } | null>>;
2811
+ };
2812
+ getMultimodalUsageInsights: {
2813
+ mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
2814
+ _config: _trpc_server.RootConfig<{
2815
+ ctx: {
2816
+ appId: string;
2817
+ versionId: string;
2818
+ appName: string;
2819
+ appSubdomain: string;
2820
+ userId: string;
2821
+ isTesting: boolean;
2822
+ rpcMethod: string;
2823
+ requestId: string;
2824
+ type?: undefined;
2825
+ dbUrl?: string | null | undefined;
2826
+ userIdActual?: string | null | undefined;
2827
+ channelId?: string | null | undefined;
2828
+ } | {
2829
+ type: "BOXMAN_REQUEST";
2830
+ boxId: string;
2831
+ isDevelopment: boolean | null;
2832
+ appId?: string | null | undefined;
2833
+ rpcMethod?: string | null | undefined;
2834
+ requestId?: string | null | undefined;
2835
+ channelId?: string | null | undefined;
2836
+ platformUserId?: string | null | undefined;
2837
+ agent?: string | null | undefined;
2838
+ sessionId?: string | null | undefined;
2839
+ };
2840
+ meta: object;
2841
+ errorShape: {
2842
+ data: {
2843
+ zodError: typeToFlattenedError<any, string> | null;
2844
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
2845
+ httpStatus: number;
2846
+ path?: string;
2847
+ stack?: string;
2848
+ };
2849
+ message: string;
2850
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
2851
+ };
2852
+ transformer: typeof superjson;
2853
+ }>;
2854
+ _meta: object;
2855
+ _ctx_out: {
2856
+ type: undefined;
2857
+ appId: string;
2858
+ versionId: string;
2859
+ dbUrl: string | null | undefined;
2860
+ appName: string;
2861
+ appSubdomain: string;
2862
+ userId: string;
2863
+ userIdActual: string | null | undefined;
2864
+ isTesting: boolean;
2865
+ rpcMethod: string;
2866
+ requestId: string;
2867
+ channelId: string | null | undefined;
2868
+ } | {
2869
+ type: "BOXMAN_REQUEST";
2870
+ appId: string | null | undefined;
2871
+ rpcMethod: string | null | undefined;
2872
+ requestId: string | null | undefined;
2873
+ channelId: string | null | undefined;
2874
+ boxId: string;
2875
+ platformUserId: string | null | undefined;
2876
+ isDevelopment: boolean | null;
2877
+ agent: string | null | undefined;
2878
+ sessionId: string | null | undefined;
2879
+ };
2880
+ _input_in: {
2881
+ appId: string;
2882
+ summaryHours?: number | undefined;
2883
+ loopLimit?: number | undefined;
2884
+ };
2885
+ _input_out: {
2886
+ appId: string;
2887
+ summaryHours: number;
2888
+ loopLimit: number;
2889
+ };
2890
+ _output_in: typeof _trpc_server.unsetMarker;
2891
+ _output_out: typeof _trpc_server.unsetMarker;
2892
+ }, {
2893
+ response: string;
2894
+ }>>;
2895
+ };
2896
+ getAC1AppInfo: {
2897
+ mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
2898
+ _config: _trpc_server.RootConfig<{
2899
+ ctx: {
2900
+ appId: string;
2901
+ versionId: string;
2902
+ appName: string;
2903
+ appSubdomain: string;
2904
+ userId: string;
2905
+ isTesting: boolean;
2906
+ rpcMethod: string;
2907
+ requestId: string;
2908
+ type?: undefined;
2909
+ dbUrl?: string | null | undefined;
2910
+ userIdActual?: string | null | undefined;
2911
+ channelId?: string | null | undefined;
2912
+ } | {
2913
+ type: "BOXMAN_REQUEST";
2914
+ boxId: string;
2915
+ isDevelopment: boolean | null;
2916
+ appId?: string | null | undefined;
2917
+ rpcMethod?: string | null | undefined;
2918
+ requestId?: string | null | undefined;
2919
+ channelId?: string | null | undefined;
2920
+ platformUserId?: string | null | undefined;
2921
+ agent?: string | null | undefined;
2922
+ sessionId?: string | null | undefined;
2923
+ };
2924
+ meta: object;
2925
+ errorShape: {
2926
+ data: {
2927
+ zodError: typeToFlattenedError<any, string> | null;
2928
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
2929
+ httpStatus: number;
2930
+ path?: string;
2931
+ stack?: string;
2932
+ };
2933
+ message: string;
2934
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
2935
+ };
2936
+ transformer: typeof superjson;
2937
+ }>;
2938
+ _meta: object;
2939
+ _ctx_out: {
2940
+ type: undefined;
2941
+ appId: string;
2942
+ versionId: string;
2943
+ dbUrl: string | null | undefined;
2944
+ appName: string;
2945
+ appSubdomain: string;
2946
+ userId: string;
2947
+ userIdActual: string | null | undefined;
2948
+ isTesting: boolean;
2949
+ rpcMethod: string;
2950
+ requestId: string;
2951
+ channelId: string | null | undefined;
2952
+ } | {
2953
+ type: "BOXMAN_REQUEST";
2954
+ appId: string | null | undefined;
2955
+ rpcMethod: string | null | undefined;
2956
+ requestId: string | null | undefined;
2957
+ channelId: string | null | undefined;
2958
+ boxId: string;
2959
+ platformUserId: string | null | undefined;
2960
+ isDevelopment: boolean | null;
2961
+ agent: string | null | undefined;
2962
+ sessionId: string | null | undefined;
2963
+ };
2964
+ _input_in: {
2965
+ appId: string;
2966
+ };
2967
+ _input_out: {
2968
+ appId: string;
2969
+ };
2970
+ _output_in: typeof _trpc_server.unsetMarker;
2971
+ _output_out: typeof _trpc_server.unsetMarker;
2972
+ }, {
2973
+ response: string;
2974
+ }>>;
2975
+ };
2976
+ setUserHandle: {
2977
+ mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
2978
+ _config: _trpc_server.RootConfig<{
2979
+ ctx: {
2980
+ appId: string;
2981
+ versionId: string;
2982
+ appName: string;
2983
+ appSubdomain: string;
2984
+ userId: string;
2985
+ isTesting: boolean;
2986
+ rpcMethod: string;
2987
+ requestId: string;
2988
+ type?: undefined;
2989
+ dbUrl?: string | null | undefined;
2990
+ userIdActual?: string | null | undefined;
2991
+ channelId?: string | null | undefined;
2992
+ } | {
2993
+ type: "BOXMAN_REQUEST";
2994
+ boxId: string;
2995
+ isDevelopment: boolean | null;
2996
+ appId?: string | null | undefined;
2997
+ rpcMethod?: string | null | undefined;
2998
+ requestId?: string | null | undefined;
2999
+ channelId?: string | null | undefined;
3000
+ platformUserId?: string | null | undefined;
3001
+ agent?: string | null | undefined;
3002
+ sessionId?: string | null | undefined;
3003
+ };
3004
+ meta: object;
3005
+ errorShape: {
3006
+ data: {
3007
+ zodError: typeToFlattenedError<any, string> | null;
3008
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
3009
+ httpStatus: number;
3010
+ path?: string;
3011
+ stack?: string;
3012
+ };
3013
+ message: string;
3014
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
3015
+ };
3016
+ transformer: typeof superjson;
3017
+ }>;
3018
+ _meta: object;
3019
+ _ctx_out: {
3020
+ type: undefined;
3021
+ appId: string;
3022
+ versionId: string;
3023
+ dbUrl: string | null | undefined;
3024
+ appName: string;
3025
+ appSubdomain: string;
3026
+ userId: string;
3027
+ userIdActual: string | null | undefined;
3028
+ isTesting: boolean;
3029
+ rpcMethod: string;
3030
+ requestId: string;
3031
+ channelId: string | null | undefined;
3032
+ } | {
3033
+ type: "BOXMAN_REQUEST";
3034
+ appId: string | null | undefined;
3035
+ rpcMethod: string | null | undefined;
3036
+ requestId: string | null | undefined;
3037
+ channelId: string | null | undefined;
3038
+ boxId: string;
3039
+ platformUserId: string | null | undefined;
3040
+ isDevelopment: boolean | null;
3041
+ agent: string | null | undefined;
3042
+ sessionId: string | null | undefined;
3043
+ };
3044
+ _input_in: {
3045
+ handle: string;
3046
+ };
3047
+ _input_out: {
3048
+ handle: string;
3049
+ };
3050
+ _output_in: typeof _trpc_server.unsetMarker;
3051
+ _output_out: typeof _trpc_server.unsetMarker;
3052
+ }, string>>;
3053
+ };
3054
+ setTheme: {
3055
+ mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
3056
+ _config: _trpc_server.RootConfig<{
3057
+ ctx: {
3058
+ appId: string;
3059
+ versionId: string;
3060
+ appName: string;
3061
+ appSubdomain: string;
3062
+ userId: string;
3063
+ isTesting: boolean;
3064
+ rpcMethod: string;
3065
+ requestId: string;
3066
+ type?: undefined;
3067
+ dbUrl?: string | null | undefined;
3068
+ userIdActual?: string | null | undefined;
3069
+ channelId?: string | null | undefined;
3070
+ } | {
3071
+ type: "BOXMAN_REQUEST";
3072
+ boxId: string;
3073
+ isDevelopment: boolean | null;
3074
+ appId?: string | null | undefined;
3075
+ rpcMethod?: string | null | undefined;
3076
+ requestId?: string | null | undefined;
3077
+ channelId?: string | null | undefined;
3078
+ platformUserId?: string | null | undefined;
3079
+ agent?: string | null | undefined;
3080
+ sessionId?: string | null | undefined;
3081
+ };
3082
+ meta: object;
3083
+ errorShape: {
3084
+ data: {
3085
+ zodError: typeToFlattenedError<any, string> | null;
3086
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
3087
+ httpStatus: number;
3088
+ path?: string;
3089
+ stack?: string;
3090
+ };
3091
+ message: string;
3092
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
3093
+ };
3094
+ transformer: typeof superjson;
3095
+ }>;
3096
+ _meta: object;
3097
+ _ctx_out: {
3098
+ type: undefined;
3099
+ appId: string;
3100
+ versionId: string;
3101
+ dbUrl: string | null | undefined;
3102
+ appName: string;
3103
+ appSubdomain: string;
3104
+ userId: string;
3105
+ userIdActual: string | null | undefined;
3106
+ isTesting: boolean;
3107
+ rpcMethod: string;
3108
+ requestId: string;
3109
+ channelId: string | null | undefined;
3110
+ } | {
3111
+ type: "BOXMAN_REQUEST";
3112
+ appId: string | null | undefined;
3113
+ rpcMethod: string | null | undefined;
3114
+ requestId: string | null | undefined;
3115
+ channelId: string | null | undefined;
3116
+ boxId: string;
3117
+ platformUserId: string | null | undefined;
3118
+ isDevelopment: boolean | null;
3119
+ agent: string | null | undefined;
3120
+ sessionId: string | null | undefined;
3121
+ };
3122
+ _input_in: {
3123
+ theme: "dark" | "light" | "system";
3124
+ };
3125
+ _input_out: {
3126
+ theme: "dark" | "light" | "system";
3127
+ };
3128
+ _output_in: typeof _trpc_server.unsetMarker;
3129
+ _output_out: typeof _trpc_server.unsetMarker;
3130
+ }, string>>;
3131
+ };
3132
+ navigate: {
3133
+ mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
3134
+ _config: _trpc_server.RootConfig<{
3135
+ ctx: {
3136
+ appId: string;
3137
+ versionId: string;
3138
+ appName: string;
3139
+ appSubdomain: string;
3140
+ userId: string;
3141
+ isTesting: boolean;
3142
+ rpcMethod: string;
3143
+ requestId: string;
3144
+ type?: undefined;
3145
+ dbUrl?: string | null | undefined;
3146
+ userIdActual?: string | null | undefined;
3147
+ channelId?: string | null | undefined;
3148
+ } | {
3149
+ type: "BOXMAN_REQUEST";
3150
+ boxId: string;
3151
+ isDevelopment: boolean | null;
3152
+ appId?: string | null | undefined;
3153
+ rpcMethod?: string | null | undefined;
3154
+ requestId?: string | null | undefined;
3155
+ channelId?: string | null | undefined;
3156
+ platformUserId?: string | null | undefined;
3157
+ agent?: string | null | undefined;
3158
+ sessionId?: string | null | undefined;
3159
+ };
3160
+ meta: object;
3161
+ errorShape: {
3162
+ data: {
3163
+ zodError: typeToFlattenedError<any, string> | null;
3164
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
3165
+ httpStatus: number;
3166
+ path?: string;
3167
+ stack?: string;
3168
+ };
3169
+ message: string;
3170
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
3171
+ };
3172
+ transformer: typeof superjson;
3173
+ }>;
3174
+ _meta: object;
3175
+ _ctx_out: {
3176
+ type: undefined;
3177
+ appId: string;
3178
+ versionId: string;
3179
+ dbUrl: string | null | undefined;
3180
+ appName: string;
3181
+ appSubdomain: string;
3182
+ userId: string;
3183
+ userIdActual: string | null | undefined;
3184
+ isTesting: boolean;
3185
+ rpcMethod: string;
3186
+ requestId: string;
3187
+ channelId: string | null | undefined;
3188
+ } | {
3189
+ type: "BOXMAN_REQUEST";
3190
+ appId: string | null | undefined;
3191
+ rpcMethod: string | null | undefined;
3192
+ requestId: string | null | undefined;
3193
+ channelId: string | null | undefined;
3194
+ boxId: string;
3195
+ platformUserId: string | null | undefined;
3196
+ isDevelopment: boolean | null;
3197
+ agent: string | null | undefined;
3198
+ sessionId: string | null | undefined;
3199
+ };
3200
+ _input_in: {
3201
+ target: "app" | "home";
3202
+ appId?: string | undefined;
3203
+ };
3204
+ _input_out: {
3205
+ target: "app" | "home";
3206
+ appId?: string | undefined;
3207
+ };
3208
+ _output_in: typeof _trpc_server.unsetMarker;
3209
+ _output_out: typeof _trpc_server.unsetMarker;
3210
+ }, string>>;
3211
+ };
3212
+ getComputerContext: {
3213
+ mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
3214
+ _config: _trpc_server.RootConfig<{
3215
+ ctx: {
3216
+ appId: string;
3217
+ versionId: string;
3218
+ appName: string;
3219
+ appSubdomain: string;
3220
+ userId: string;
3221
+ isTesting: boolean;
3222
+ rpcMethod: string;
3223
+ requestId: string;
3224
+ type?: undefined;
3225
+ dbUrl?: string | null | undefined;
3226
+ userIdActual?: string | null | undefined;
3227
+ channelId?: string | null | undefined;
3228
+ } | {
3229
+ type: "BOXMAN_REQUEST";
3230
+ boxId: string;
3231
+ isDevelopment: boolean | null;
3232
+ appId?: string | null | undefined;
3233
+ rpcMethod?: string | null | undefined;
3234
+ requestId?: string | null | undefined;
3235
+ channelId?: string | null | undefined;
3236
+ platformUserId?: string | null | undefined;
3237
+ agent?: string | null | undefined;
3238
+ sessionId?: string | null | undefined;
3239
+ };
3240
+ meta: object;
3241
+ errorShape: {
3242
+ data: {
3243
+ zodError: typeToFlattenedError<any, string> | null;
3244
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
3245
+ httpStatus: number;
3246
+ path?: string;
3247
+ stack?: string;
3248
+ };
3249
+ message: string;
3250
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
3251
+ };
3252
+ transformer: typeof superjson;
3253
+ }>;
3254
+ _meta: object;
3255
+ _ctx_out: {
3256
+ type: undefined;
3257
+ appId: string;
3258
+ versionId: string;
3259
+ dbUrl: string | null | undefined;
3260
+ appName: string;
3261
+ appSubdomain: string;
3262
+ userId: string;
3263
+ userIdActual: string | null | undefined;
3264
+ isTesting: boolean;
3265
+ rpcMethod: string;
3266
+ requestId: string;
3267
+ channelId: string | null | undefined;
3268
+ } | {
3269
+ type: "BOXMAN_REQUEST";
3270
+ appId: string | null | undefined;
3271
+ rpcMethod: string | null | undefined;
3272
+ requestId: string | null | undefined;
3273
+ channelId: string | null | undefined;
3274
+ boxId: string;
3275
+ platformUserId: string | null | undefined;
3276
+ isDevelopment: boolean | null;
3277
+ agent: string | null | undefined;
3278
+ sessionId: string | null | undefined;
3279
+ };
3280
+ _input_in: {};
3281
+ _input_out: {};
3282
+ _output_in: typeof _trpc_server.unsetMarker;
3283
+ _output_out: typeof _trpc_server.unsetMarker;
3284
+ }, {
3285
+ location: "homescreen";
3286
+ theme: "dark" | "light" | "system";
3287
+ userHandle?: string | undefined;
3288
+ } | {
3289
+ appId: string;
3290
+ appName: string;
3291
+ location: "app";
3292
+ theme: "dark" | "light" | "system";
3293
+ userHandle?: string | undefined;
3294
+ } | "Computer context not found. Ask the user for any information you expected this tool to provide.">>;
3295
+ };
3296
+ textToImage: {
3297
+ mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
3298
+ _config: _trpc_server.RootConfig<{
3299
+ ctx: {
3300
+ appId: string;
3301
+ versionId: string;
3302
+ appName: string;
3303
+ appSubdomain: string;
3304
+ userId: string;
3305
+ isTesting: boolean;
3306
+ rpcMethod: string;
3307
+ requestId: string;
3308
+ type?: undefined;
3309
+ dbUrl?: string | null | undefined;
3310
+ userIdActual?: string | null | undefined;
3311
+ channelId?: string | null | undefined;
3312
+ } | {
3313
+ type: "BOXMAN_REQUEST";
3314
+ boxId: string;
3315
+ isDevelopment: boolean | null;
3316
+ appId?: string | null | undefined;
3317
+ rpcMethod?: string | null | undefined;
3318
+ requestId?: string | null | undefined;
3319
+ channelId?: string | null | undefined;
3320
+ platformUserId?: string | null | undefined;
3321
+ agent?: string | null | undefined;
3322
+ sessionId?: string | null | undefined;
3323
+ };
3324
+ meta: object;
3325
+ errorShape: {
3326
+ data: {
3327
+ zodError: typeToFlattenedError<any, string> | null;
3328
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
3329
+ httpStatus: number;
3330
+ path?: string;
3331
+ stack?: string;
3332
+ };
3333
+ message: string;
3334
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
3335
+ };
3336
+ transformer: typeof superjson;
3337
+ }>;
3338
+ _meta: object;
3339
+ _ctx_out: {
3340
+ type: undefined;
3341
+ appId: string;
3342
+ versionId: string;
3343
+ dbUrl: string | null | undefined;
3344
+ appName: string;
3345
+ appSubdomain: string;
3346
+ userId: string;
3347
+ userIdActual: string | null | undefined;
3348
+ isTesting: boolean;
3349
+ rpcMethod: string;
3350
+ requestId: string;
3351
+ channelId: string | null | undefined;
3352
+ } | {
3353
+ type: "BOXMAN_REQUEST";
3354
+ appId: string | null | undefined;
3355
+ rpcMethod: string | null | undefined;
3356
+ requestId: string | null | undefined;
3357
+ channelId: string | null | undefined;
3358
+ boxId: string;
3359
+ platformUserId: string | null | undefined;
3360
+ isDevelopment: boolean | null;
3361
+ agent: string | null | undefined;
3362
+ sessionId: string | null | undefined;
3363
+ };
3364
+ _input_in: {
3365
+ text: string;
3366
+ size?: "square_hd" | "square" | "portrait_4_3" | "portrait_16_9" | "landscape_4_3" | "landscape_16_9" | undefined;
3367
+ };
3368
+ _input_out: {
3369
+ text: string;
3370
+ size?: "square_hd" | "square" | "portrait_4_3" | "portrait_16_9" | "landscape_4_3" | "landscape_16_9" | undefined;
3371
+ };
3372
+ _output_in: typeof _trpc_server.unsetMarker;
3373
+ _output_out: typeof _trpc_server.unsetMarker;
3374
+ }, string>>;
3375
+ };
3376
+ startTask: {
3377
+ mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
3378
+ _config: _trpc_server.RootConfig<{
3379
+ ctx: {
3380
+ appId: string;
3381
+ versionId: string;
3382
+ appName: string;
3383
+ appSubdomain: string;
3384
+ userId: string;
3385
+ isTesting: boolean;
3386
+ rpcMethod: string;
3387
+ requestId: string;
3388
+ type?: undefined;
3389
+ dbUrl?: string | null | undefined;
3390
+ userIdActual?: string | null | undefined;
3391
+ channelId?: string | null | undefined;
3392
+ } | {
3393
+ type: "BOXMAN_REQUEST";
3394
+ boxId: string;
3395
+ isDevelopment: boolean | null;
3396
+ appId?: string | null | undefined;
3397
+ rpcMethod?: string | null | undefined;
3398
+ requestId?: string | null | undefined;
3399
+ channelId?: string | null | undefined;
3400
+ platformUserId?: string | null | undefined;
3401
+ agent?: string | null | undefined;
3402
+ sessionId?: string | null | undefined;
3403
+ };
3404
+ meta: object;
3405
+ errorShape: {
3406
+ data: {
3407
+ zodError: typeToFlattenedError<any, string> | null;
3408
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
3409
+ httpStatus: number;
3410
+ path?: string;
3411
+ stack?: string;
3412
+ };
3413
+ message: string;
3414
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
3415
+ };
3416
+ transformer: typeof superjson;
3417
+ }>;
3418
+ _meta: object;
3419
+ _ctx_out: {
3420
+ type: undefined;
3421
+ appId: string;
3422
+ versionId: string;
3423
+ dbUrl: string | null | undefined;
3424
+ appName: string;
3425
+ appSubdomain: string;
3426
+ userId: string;
3427
+ userIdActual: string | null | undefined;
3428
+ isTesting: boolean;
3429
+ rpcMethod: string;
3430
+ requestId: string;
3431
+ channelId: string | null | undefined;
3432
+ } | {
3433
+ type: "BOXMAN_REQUEST";
3434
+ appId: string | null | undefined;
3435
+ rpcMethod: string | null | undefined;
3436
+ requestId: string | null | undefined;
3437
+ channelId: string | null | undefined;
3438
+ boxId: string;
3439
+ platformUserId: string | null | undefined;
3440
+ isDevelopment: boolean | null;
3441
+ agent: string | null | undefined;
3442
+ sessionId: string | null | undefined;
3443
+ };
3444
+ _input_in: {
3445
+ type: "CREATE_APP" | "EDIT_APP" | "OTHER";
3446
+ prompt: string;
3447
+ purpose: string;
3448
+ previousSessionId?: string | undefined;
3449
+ };
3450
+ _input_out: {
3451
+ type: "CREATE_APP" | "EDIT_APP" | "OTHER";
3452
+ prompt: string;
3453
+ purpose: string;
3454
+ previousSessionId?: string | undefined;
3455
+ };
3456
+ _output_in: typeof _trpc_server.unsetMarker;
3457
+ _output_out: typeof _trpc_server.unsetMarker;
3458
+ }, {
3459
+ taskId: string;
3460
+ type: "CREATE_APP" | "EDIT_APP" | "OTHER";
3461
+ status: string;
3462
+ startedAt: string;
3463
+ subscribedToUpdates: boolean;
3464
+ sessionId: string;
3465
+ }>>;
3466
+ };
3467
+ stopTask: {
3468
+ mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
3469
+ _config: _trpc_server.RootConfig<{
3470
+ ctx: {
3471
+ appId: string;
3472
+ versionId: string;
3473
+ appName: string;
3474
+ appSubdomain: string;
3475
+ userId: string;
3476
+ isTesting: boolean;
3477
+ rpcMethod: string;
3478
+ requestId: string;
3479
+ type?: undefined;
3480
+ dbUrl?: string | null | undefined;
3481
+ userIdActual?: string | null | undefined;
3482
+ channelId?: string | null | undefined;
3483
+ } | {
3484
+ type: "BOXMAN_REQUEST";
3485
+ boxId: string;
3486
+ isDevelopment: boolean | null;
3487
+ appId?: string | null | undefined;
3488
+ rpcMethod?: string | null | undefined;
3489
+ requestId?: string | null | undefined;
3490
+ channelId?: string | null | undefined;
3491
+ platformUserId?: string | null | undefined;
3492
+ agent?: string | null | undefined;
3493
+ sessionId?: string | null | undefined;
3494
+ };
3495
+ meta: object;
3496
+ errorShape: {
3497
+ data: {
3498
+ zodError: typeToFlattenedError<any, string> | null;
3499
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
3500
+ httpStatus: number;
3501
+ path?: string;
3502
+ stack?: string;
3503
+ };
3504
+ message: string;
3505
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
3506
+ };
3507
+ transformer: typeof superjson;
3508
+ }>;
3509
+ _meta: object;
3510
+ _ctx_out: {
3511
+ type: undefined;
3512
+ appId: string;
3513
+ versionId: string;
3514
+ dbUrl: string | null | undefined;
3515
+ appName: string;
3516
+ appSubdomain: string;
3517
+ userId: string;
3518
+ userIdActual: string | null | undefined;
3519
+ isTesting: boolean;
3520
+ rpcMethod: string;
3521
+ requestId: string;
3522
+ channelId: string | null | undefined;
3523
+ } | {
3524
+ type: "BOXMAN_REQUEST";
3525
+ appId: string | null | undefined;
3526
+ rpcMethod: string | null | undefined;
3527
+ requestId: string | null | undefined;
3528
+ channelId: string | null | undefined;
3529
+ boxId: string;
3530
+ platformUserId: string | null | undefined;
3531
+ isDevelopment: boolean | null;
3532
+ agent: string | null | undefined;
3533
+ sessionId: string | null | undefined;
3534
+ };
3535
+ _input_in: {
3536
+ taskId: string;
3537
+ };
3538
+ _input_out: {
3539
+ taskId: string;
3540
+ };
3541
+ _output_in: typeof _trpc_server.unsetMarker;
3542
+ _output_out: typeof _trpc_server.unsetMarker;
3543
+ }, {
3544
+ id: string;
3545
+ stopped: boolean;
3546
+ }>>;
3547
+ };
3548
+ displayVoicesCatalogTool: {
3549
+ mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
3550
+ _config: _trpc_server.RootConfig<{
3551
+ ctx: {
3552
+ appId: string;
3553
+ versionId: string;
3554
+ appName: string;
3555
+ appSubdomain: string;
3556
+ userId: string;
3557
+ isTesting: boolean;
3558
+ rpcMethod: string;
3559
+ requestId: string;
3560
+ type?: undefined;
3561
+ dbUrl?: string | null | undefined;
3562
+ userIdActual?: string | null | undefined;
3563
+ channelId?: string | null | undefined;
3564
+ } | {
3565
+ type: "BOXMAN_REQUEST";
3566
+ boxId: string;
3567
+ isDevelopment: boolean | null;
3568
+ appId?: string | null | undefined;
3569
+ rpcMethod?: string | null | undefined;
3570
+ requestId?: string | null | undefined;
3571
+ channelId?: string | null | undefined;
3572
+ platformUserId?: string | null | undefined;
3573
+ agent?: string | null | undefined;
3574
+ sessionId?: string | null | undefined;
3575
+ };
3576
+ meta: object;
3577
+ errorShape: {
3578
+ data: {
3579
+ zodError: typeToFlattenedError<any, string> | null;
3580
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
3581
+ httpStatus: number;
3582
+ path?: string;
3583
+ stack?: string;
3584
+ };
3585
+ message: string;
3586
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
3587
+ };
3588
+ transformer: typeof superjson;
3589
+ }>;
3590
+ _meta: object;
3591
+ _ctx_out: {
3592
+ type: undefined;
3593
+ appId: string;
3594
+ versionId: string;
3595
+ dbUrl: string | null | undefined;
3596
+ appName: string;
3597
+ appSubdomain: string;
3598
+ userId: string;
3599
+ userIdActual: string | null | undefined;
3600
+ isTesting: boolean;
3601
+ rpcMethod: string;
3602
+ requestId: string;
3603
+ channelId: string | null | undefined;
3604
+ } | {
3605
+ type: "BOXMAN_REQUEST";
3606
+ appId: string | null | undefined;
3607
+ rpcMethod: string | null | undefined;
3608
+ requestId: string | null | undefined;
3609
+ channelId: string | null | undefined;
3610
+ boxId: string;
3611
+ platformUserId: string | null | undefined;
3612
+ isDevelopment: boolean | null;
3613
+ agent: string | null | undefined;
3614
+ sessionId: string | null | undefined;
3615
+ };
3616
+ _input_in: {
3617
+ selectionMode: "single" | "multiple";
3618
+ useCase: "tts" | "dialogue";
3619
+ info?: string | undefined;
3620
+ maxSelections?: number | undefined;
3621
+ };
3622
+ _input_out: {
3623
+ selectionMode: "single" | "multiple";
3624
+ useCase: "tts" | "dialogue";
3625
+ info?: string | undefined;
3626
+ maxSelections?: number | undefined;
3627
+ };
3628
+ _output_in: typeof _trpc_server.unsetMarker;
3629
+ _output_out: typeof _trpc_server.unsetMarker;
3630
+ }, string>>;
3631
+ };
3632
+ requestEnvironmentVariablesTool: {
3633
+ mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
3634
+ _config: _trpc_server.RootConfig<{
3635
+ ctx: {
3636
+ appId: string;
3637
+ versionId: string;
3638
+ appName: string;
3639
+ appSubdomain: string;
3640
+ userId: string;
3641
+ isTesting: boolean;
3642
+ rpcMethod: string;
3643
+ requestId: string;
3644
+ type?: undefined;
3645
+ dbUrl?: string | null | undefined;
3646
+ userIdActual?: string | null | undefined;
3647
+ channelId?: string | null | undefined;
3648
+ } | {
3649
+ type: "BOXMAN_REQUEST";
3650
+ boxId: string;
3651
+ isDevelopment: boolean | null;
3652
+ appId?: string | null | undefined;
3653
+ rpcMethod?: string | null | undefined;
3654
+ requestId?: string | null | undefined;
3655
+ channelId?: string | null | undefined;
3656
+ platformUserId?: string | null | undefined;
3657
+ agent?: string | null | undefined;
3658
+ sessionId?: string | null | undefined;
3659
+ };
3660
+ meta: object;
3661
+ errorShape: {
3662
+ data: {
3663
+ zodError: typeToFlattenedError<any, string> | null;
3664
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
3665
+ httpStatus: number;
3666
+ path?: string;
3667
+ stack?: string;
3668
+ };
3669
+ message: string;
3670
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
3671
+ };
3672
+ transformer: typeof superjson;
3673
+ }>;
3674
+ _meta: object;
3675
+ _ctx_out: {
3676
+ type: undefined;
3677
+ appId: string;
3678
+ versionId: string;
3679
+ dbUrl: string | null | undefined;
3680
+ appName: string;
3681
+ appSubdomain: string;
3682
+ userId: string;
3683
+ userIdActual: string | null | undefined;
3684
+ isTesting: boolean;
3685
+ rpcMethod: string;
3686
+ requestId: string;
3687
+ channelId: string | null | undefined;
3688
+ } | {
3689
+ type: "BOXMAN_REQUEST";
3690
+ appId: string | null | undefined;
3691
+ rpcMethod: string | null | undefined;
3692
+ requestId: string | null | undefined;
3693
+ channelId: string | null | undefined;
3694
+ boxId: string;
3695
+ platformUserId: string | null | undefined;
3696
+ isDevelopment: boolean | null;
3697
+ agent: string | null | undefined;
3698
+ sessionId: string | null | undefined;
3699
+ };
3700
+ _input_in: {
3701
+ missingVariables: {
3702
+ key: string;
3703
+ instructions: string;
3704
+ exampleValue?: string | undefined;
3705
+ }[];
3706
+ };
3707
+ _input_out: {
3708
+ missingVariables: {
3709
+ key: string;
3710
+ instructions: string;
3711
+ exampleValue?: string | undefined;
3712
+ }[];
3713
+ };
3714
+ _output_in: typeof _trpc_server.unsetMarker;
3715
+ _output_out: typeof _trpc_server.unsetMarker;
3716
+ }, string>>;
3717
+ };
3718
+ proposeAppSettingsTool: {
3719
+ mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
3720
+ _config: _trpc_server.RootConfig<{
3721
+ ctx: {
3722
+ appId: string;
3723
+ versionId: string;
3724
+ appName: string;
3725
+ appSubdomain: string;
3726
+ userId: string;
3727
+ isTesting: boolean;
3728
+ rpcMethod: string;
3729
+ requestId: string;
3730
+ type?: undefined;
3731
+ dbUrl?: string | null | undefined;
3732
+ userIdActual?: string | null | undefined;
3733
+ channelId?: string | null | undefined;
3734
+ } | {
3735
+ type: "BOXMAN_REQUEST";
3736
+ boxId: string;
3737
+ isDevelopment: boolean | null;
3738
+ appId?: string | null | undefined;
3739
+ rpcMethod?: string | null | undefined;
3740
+ requestId?: string | null | undefined;
3741
+ channelId?: string | null | undefined;
3742
+ platformUserId?: string | null | undefined;
3743
+ agent?: string | null | undefined;
3744
+ sessionId?: string | null | undefined;
3745
+ };
3746
+ meta: object;
3747
+ errorShape: {
3748
+ data: {
3749
+ zodError: typeToFlattenedError<any, string> | null;
3750
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
3751
+ httpStatus: number;
3752
+ path?: string;
3753
+ stack?: string;
3754
+ };
3755
+ message: string;
3756
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
3757
+ };
3758
+ transformer: typeof superjson;
3759
+ }>;
3760
+ _meta: object;
3761
+ _ctx_out: {
3762
+ type: undefined;
3763
+ appId: string;
3764
+ versionId: string;
3765
+ dbUrl: string | null | undefined;
3766
+ appName: string;
3767
+ appSubdomain: string;
3768
+ userId: string;
3769
+ userIdActual: string | null | undefined;
3770
+ isTesting: boolean;
3771
+ rpcMethod: string;
3772
+ requestId: string;
3773
+ channelId: string | null | undefined;
3774
+ } | {
3775
+ type: "BOXMAN_REQUEST";
3776
+ appId: string | null | undefined;
3777
+ rpcMethod: string | null | undefined;
3778
+ requestId: string | null | undefined;
3779
+ channelId: string | null | undefined;
3780
+ boxId: string;
3781
+ platformUserId: string | null | undefined;
3782
+ isDevelopment: boolean | null;
3783
+ agent: string | null | undefined;
3784
+ sessionId: string | null | undefined;
3785
+ };
3786
+ _input_in: {
3787
+ changes: {
3788
+ isForkable?: {
3789
+ reason?: string | undefined;
3790
+ proposedValue?: boolean | undefined;
3791
+ } | undefined;
3792
+ description?: {
3793
+ reason?: string | undefined;
3794
+ proposedValue?: string | undefined;
3795
+ } | undefined;
3796
+ iconUrl?: {
3797
+ regenerate?: boolean | undefined;
3798
+ reason?: string | undefined;
3799
+ } | undefined;
3800
+ displayName?: {
3801
+ reason?: string | undefined;
3802
+ proposedValue?: string | undefined;
3803
+ } | undefined;
3804
+ isPublic?: {
3805
+ reason?: string | undefined;
3806
+ proposedValue?: boolean | undefined;
3807
+ } | undefined;
3808
+ showWatermark?: {
3809
+ reason?: string | undefined;
3810
+ proposedValue?: boolean | undefined;
3811
+ } | undefined;
3812
+ customDomain?: {
3813
+ reason?: string | undefined;
3814
+ proposedValue?: string | null | undefined;
3815
+ } | undefined;
3816
+ };
3817
+ explanation?: string | undefined;
3818
+ };
3819
+ _input_out: {
3820
+ changes: {
3821
+ isForkable?: {
3822
+ reason?: string | undefined;
3823
+ proposedValue?: boolean | undefined;
3824
+ } | undefined;
3825
+ description?: {
3826
+ reason?: string | undefined;
3827
+ proposedValue?: string | undefined;
3828
+ } | undefined;
3829
+ iconUrl?: {
3830
+ regenerate?: boolean | undefined;
3831
+ reason?: string | undefined;
3832
+ } | undefined;
3833
+ displayName?: {
3834
+ reason?: string | undefined;
3835
+ proposedValue?: string | undefined;
3836
+ } | undefined;
3837
+ isPublic?: {
3838
+ reason?: string | undefined;
3839
+ proposedValue?: boolean | undefined;
3840
+ } | undefined;
3841
+ showWatermark?: {
3842
+ reason?: string | undefined;
3843
+ proposedValue?: boolean | undefined;
3844
+ } | undefined;
3845
+ customDomain?: {
3846
+ reason?: string | undefined;
3847
+ proposedValue?: string | null | undefined;
3848
+ } | undefined;
3849
+ };
3850
+ explanation?: string | undefined;
3851
+ };
3852
+ _output_in: typeof _trpc_server.unsetMarker;
3853
+ _output_out: typeof _trpc_server.unsetMarker;
3854
+ }, string>>;
3855
+ };
3856
+ displayVisualModelsCompareTool: {
3857
+ mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
3858
+ _config: _trpc_server.RootConfig<{
3859
+ ctx: {
3860
+ appId: string;
3861
+ versionId: string;
3862
+ appName: string;
3863
+ appSubdomain: string;
3864
+ userId: string;
3865
+ isTesting: boolean;
3866
+ rpcMethod: string;
3867
+ requestId: string;
3868
+ type?: undefined;
3869
+ dbUrl?: string | null | undefined;
3870
+ userIdActual?: string | null | undefined;
3871
+ channelId?: string | null | undefined;
3872
+ } | {
3873
+ type: "BOXMAN_REQUEST";
3874
+ boxId: string;
3875
+ isDevelopment: boolean | null;
3876
+ appId?: string | null | undefined;
3877
+ rpcMethod?: string | null | undefined;
3878
+ requestId?: string | null | undefined;
3879
+ channelId?: string | null | undefined;
3880
+ platformUserId?: string | null | undefined;
3881
+ agent?: string | null | undefined;
3882
+ sessionId?: string | null | undefined;
3883
+ };
3884
+ meta: object;
3885
+ errorShape: {
3886
+ data: {
3887
+ zodError: typeToFlattenedError<any, string> | null;
3888
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
3889
+ httpStatus: number;
3890
+ path?: string;
3891
+ stack?: string;
3892
+ };
3893
+ message: string;
3894
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
3895
+ };
3896
+ transformer: typeof superjson;
3897
+ }>;
3898
+ _meta: object;
3899
+ _ctx_out: {
3900
+ type: undefined;
3901
+ appId: string;
3902
+ versionId: string;
3903
+ dbUrl: string | null | undefined;
3904
+ appName: string;
3905
+ appSubdomain: string;
3906
+ userId: string;
3907
+ userIdActual: string | null | undefined;
3908
+ isTesting: boolean;
3909
+ rpcMethod: string;
3910
+ requestId: string;
3911
+ channelId: string | null | undefined;
3912
+ } | {
3913
+ type: "BOXMAN_REQUEST";
3914
+ appId: string | null | undefined;
3915
+ rpcMethod: string | null | undefined;
3916
+ requestId: string | null | undefined;
3917
+ channelId: string | null | undefined;
3918
+ boxId: string;
3919
+ platformUserId: string | null | undefined;
3920
+ isDevelopment: boolean | null;
3921
+ agent: string | null | undefined;
3922
+ sessionId: string | null | undefined;
3923
+ };
3924
+ _input_in: {
3925
+ useCase: "image";
3926
+ info?: string | undefined;
3927
+ };
3928
+ _input_out: {
3929
+ useCase: "image";
3930
+ info?: string | undefined;
3931
+ };
3932
+ _output_in: typeof _trpc_server.unsetMarker;
3933
+ _output_out: typeof _trpc_server.unsetMarker;
3934
+ }, string>>;
3935
+ };
3936
+ displayThirdPartyIntegrationTool: {
3937
+ mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
3938
+ _config: _trpc_server.RootConfig<{
3939
+ ctx: {
3940
+ appId: string;
3941
+ versionId: string;
3942
+ appName: string;
3943
+ appSubdomain: string;
3944
+ userId: string;
3945
+ isTesting: boolean;
3946
+ rpcMethod: string;
3947
+ requestId: string;
3948
+ type?: undefined;
3949
+ dbUrl?: string | null | undefined;
3950
+ userIdActual?: string | null | undefined;
3951
+ channelId?: string | null | undefined;
3952
+ } | {
3953
+ type: "BOXMAN_REQUEST";
3954
+ boxId: string;
3955
+ isDevelopment: boolean | null;
3956
+ appId?: string | null | undefined;
3957
+ rpcMethod?: string | null | undefined;
3958
+ requestId?: string | null | undefined;
3959
+ channelId?: string | null | undefined;
3960
+ platformUserId?: string | null | undefined;
3961
+ agent?: string | null | undefined;
3962
+ sessionId?: string | null | undefined;
3963
+ };
3964
+ meta: object;
3965
+ errorShape: {
3966
+ data: {
3967
+ zodError: typeToFlattenedError<any, string> | null;
3968
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
3969
+ httpStatus: number;
3970
+ path?: string;
3971
+ stack?: string;
3972
+ };
3973
+ message: string;
3974
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
3975
+ };
3976
+ transformer: typeof superjson;
3977
+ }>;
3978
+ _meta: object;
3979
+ _ctx_out: {
3980
+ type: undefined;
3981
+ appId: string;
3982
+ versionId: string;
3983
+ dbUrl: string | null | undefined;
3984
+ appName: string;
3985
+ appSubdomain: string;
3986
+ userId: string;
3987
+ userIdActual: string | null | undefined;
3988
+ isTesting: boolean;
3989
+ rpcMethod: string;
3990
+ requestId: string;
3991
+ channelId: string | null | undefined;
3992
+ } | {
3993
+ type: "BOXMAN_REQUEST";
3994
+ appId: string | null | undefined;
3995
+ rpcMethod: string | null | undefined;
3996
+ requestId: string | null | undefined;
3997
+ channelId: string | null | undefined;
3998
+ boxId: string;
3999
+ platformUserId: string | null | undefined;
4000
+ isDevelopment: boolean | null;
4001
+ agent: string | null | undefined;
4002
+ sessionId: string | null | undefined;
4003
+ };
4004
+ _input_in: {
4005
+ integration: "GITHUB_USER" | "GITHUB_BOT" | "GOOGLE" | "AC1" | "SLACK" | "SLACK_BOT" | "DISCORD" | "NOTION" | "TWITTER" | "LINKEDIN" | "YAHOO" | "FIGMA";
4006
+ scopes?: {
4007
+ description: string;
4008
+ scope: string;
4009
+ }[] | undefined;
4010
+ };
4011
+ _input_out: {
4012
+ integration: "GITHUB_USER" | "GITHUB_BOT" | "GOOGLE" | "AC1" | "SLACK" | "SLACK_BOT" | "DISCORD" | "NOTION" | "TWITTER" | "LINKEDIN" | "YAHOO" | "FIGMA";
4013
+ scopes?: {
4014
+ description: string;
4015
+ scope: string;
4016
+ }[] | undefined;
4017
+ };
4018
+ _output_in: typeof _trpc_server.unsetMarker;
4019
+ _output_out: typeof _trpc_server.unsetMarker;
4020
+ }, string>>;
4021
+ };
4022
+ scaffoldNewApp: {
4023
+ mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
4024
+ _config: _trpc_server.RootConfig<{
4025
+ ctx: {
4026
+ appId: string;
4027
+ versionId: string;
4028
+ appName: string;
4029
+ appSubdomain: string;
4030
+ userId: string;
4031
+ isTesting: boolean;
4032
+ rpcMethod: string;
4033
+ requestId: string;
4034
+ type?: undefined;
4035
+ dbUrl?: string | null | undefined;
4036
+ userIdActual?: string | null | undefined;
4037
+ channelId?: string | null | undefined;
4038
+ } | {
4039
+ type: "BOXMAN_REQUEST";
4040
+ boxId: string;
4041
+ isDevelopment: boolean | null;
4042
+ appId?: string | null | undefined;
4043
+ rpcMethod?: string | null | undefined;
4044
+ requestId?: string | null | undefined;
4045
+ channelId?: string | null | undefined;
4046
+ platformUserId?: string | null | undefined;
4047
+ agent?: string | null | undefined;
4048
+ sessionId?: string | null | undefined;
4049
+ };
4050
+ meta: object;
4051
+ errorShape: {
4052
+ data: {
4053
+ zodError: typeToFlattenedError<any, string> | null;
4054
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
4055
+ httpStatus: number;
4056
+ path?: string;
4057
+ stack?: string;
4058
+ };
4059
+ message: string;
4060
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
4061
+ };
4062
+ transformer: typeof superjson;
4063
+ }>;
4064
+ _meta: object;
4065
+ _ctx_out: {
4066
+ type: undefined;
4067
+ appId: string;
4068
+ versionId: string;
4069
+ dbUrl: string | null | undefined;
4070
+ appName: string;
4071
+ appSubdomain: string;
4072
+ userId: string;
4073
+ userIdActual: string | null | undefined;
4074
+ isTesting: boolean;
4075
+ rpcMethod: string;
4076
+ requestId: string;
4077
+ channelId: string | null | undefined;
4078
+ } | {
4079
+ type: "BOXMAN_REQUEST";
4080
+ appId: string | null | undefined;
4081
+ rpcMethod: string | null | undefined;
4082
+ requestId: string | null | undefined;
4083
+ channelId: string | null | undefined;
4084
+ boxId: string;
4085
+ platformUserId: string | null | undefined;
4086
+ isDevelopment: boolean | null;
4087
+ agent: string | null | undefined;
4088
+ sessionId: string | null | undefined;
4089
+ };
4090
+ _input_in: {
4091
+ name: string;
4092
+ description: string;
4093
+ slug: string;
4094
+ };
4095
+ _input_out: {
4096
+ name: string;
4097
+ description: string;
4098
+ slug: string;
4099
+ };
4100
+ _output_in: typeof _trpc_server.unsetMarker;
4101
+ _output_out: typeof _trpc_server.unsetMarker;
4102
+ }, string>>;
4103
+ };
4104
+ sendSms: {
4105
+ mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
4106
+ _config: _trpc_server.RootConfig<{
4107
+ ctx: {
4108
+ appId: string;
4109
+ versionId: string;
4110
+ appName: string;
4111
+ appSubdomain: string;
4112
+ userId: string;
4113
+ isTesting: boolean;
4114
+ rpcMethod: string;
4115
+ requestId: string;
4116
+ type?: undefined;
4117
+ dbUrl?: string | null | undefined;
4118
+ userIdActual?: string | null | undefined;
4119
+ channelId?: string | null | undefined;
4120
+ } | {
4121
+ type: "BOXMAN_REQUEST";
4122
+ boxId: string;
4123
+ isDevelopment: boolean | null;
4124
+ appId?: string | null | undefined;
4125
+ rpcMethod?: string | null | undefined;
4126
+ requestId?: string | null | undefined;
4127
+ channelId?: string | null | undefined;
4128
+ platformUserId?: string | null | undefined;
4129
+ agent?: string | null | undefined;
4130
+ sessionId?: string | null | undefined;
4131
+ };
4132
+ meta: object;
4133
+ errorShape: {
4134
+ data: {
4135
+ zodError: typeToFlattenedError<any, string> | null;
4136
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
4137
+ httpStatus: number;
4138
+ path?: string;
4139
+ stack?: string;
4140
+ };
4141
+ message: string;
4142
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
4143
+ };
4144
+ transformer: typeof superjson;
4145
+ }>;
4146
+ _meta: object;
4147
+ _ctx_out: {
4148
+ type: undefined;
4149
+ appId: string;
4150
+ versionId: string;
4151
+ dbUrl: string | null | undefined;
4152
+ appName: string;
4153
+ appSubdomain: string;
4154
+ userId: string;
4155
+ userIdActual: string | null | undefined;
4156
+ isTesting: boolean;
4157
+ rpcMethod: string;
4158
+ requestId: string;
4159
+ channelId: string | null | undefined;
4160
+ } | {
4161
+ type: "BOXMAN_REQUEST";
4162
+ appId: string | null | undefined;
4163
+ rpcMethod: string | null | undefined;
4164
+ requestId: string | null | undefined;
4165
+ channelId: string | null | undefined;
4166
+ boxId: string;
4167
+ platformUserId: string | null | undefined;
4168
+ isDevelopment: boolean | null;
4169
+ agent: string | null | undefined;
4170
+ sessionId: string | null | undefined;
4171
+ };
4172
+ _input_in: {
4173
+ toUserId: string;
4174
+ body: string;
4175
+ };
4176
+ _input_out: {
4177
+ toUserId: string;
4178
+ body: string;
4179
+ };
4180
+ _output_in: typeof _trpc_server.unsetMarker;
4181
+ _output_out: typeof _trpc_server.unsetMarker;
4182
+ }, void>>;
4183
+ };
4184
+ isAppOwner: {
4185
+ mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
4186
+ _config: _trpc_server.RootConfig<{
4187
+ ctx: {
4188
+ appId: string;
4189
+ versionId: string;
4190
+ appName: string;
4191
+ appSubdomain: string;
4192
+ userId: string;
4193
+ isTesting: boolean;
4194
+ rpcMethod: string;
4195
+ requestId: string;
4196
+ type?: undefined;
4197
+ dbUrl?: string | null | undefined;
4198
+ userIdActual?: string | null | undefined;
4199
+ channelId?: string | null | undefined;
4200
+ } | {
4201
+ type: "BOXMAN_REQUEST";
4202
+ boxId: string;
4203
+ isDevelopment: boolean | null;
4204
+ appId?: string | null | undefined;
4205
+ rpcMethod?: string | null | undefined;
4206
+ requestId?: string | null | undefined;
4207
+ channelId?: string | null | undefined;
4208
+ platformUserId?: string | null | undefined;
4209
+ agent?: string | null | undefined;
4210
+ sessionId?: string | null | undefined;
4211
+ };
4212
+ meta: object;
4213
+ errorShape: {
4214
+ data: {
4215
+ zodError: typeToFlattenedError<any, string> | null;
4216
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
4217
+ httpStatus: number;
4218
+ path?: string;
4219
+ stack?: string;
4220
+ };
4221
+ message: string;
4222
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
4223
+ };
4224
+ transformer: typeof superjson;
4225
+ }>;
4226
+ _meta: object;
4227
+ _ctx_out: {
4228
+ type: undefined;
4229
+ appId: string;
4230
+ versionId: string;
4231
+ dbUrl: string | null | undefined;
4232
+ appName: string;
4233
+ appSubdomain: string;
4234
+ userId: string;
4235
+ userIdActual: string | null | undefined;
4236
+ isTesting: boolean;
4237
+ rpcMethod: string;
4238
+ requestId: string;
4239
+ channelId: string | null | undefined;
4240
+ } | {
4241
+ type: "BOXMAN_REQUEST";
4242
+ appId: string | null | undefined;
4243
+ rpcMethod: string | null | undefined;
4244
+ requestId: string | null | undefined;
4245
+ channelId: string | null | undefined;
4246
+ boxId: string;
4247
+ platformUserId: string | null | undefined;
4248
+ isDevelopment: boolean | null;
4249
+ agent: string | null | undefined;
4250
+ sessionId: string | null | undefined;
4251
+ };
4252
+ _input_in: typeof _trpc_server.unsetMarker;
4253
+ _input_out: typeof _trpc_server.unsetMarker;
4254
+ _output_in: typeof _trpc_server.unsetMarker;
4255
+ _output_out: typeof _trpc_server.unsetMarker;
4256
+ }, boolean>>;
4257
+ };
4258
+ createRuntimeLogs: {
4259
+ mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
4260
+ _config: _trpc_server.RootConfig<{
4261
+ ctx: {
4262
+ appId: string;
4263
+ versionId: string;
4264
+ appName: string;
4265
+ appSubdomain: string;
4266
+ userId: string;
4267
+ isTesting: boolean;
4268
+ rpcMethod: string;
4269
+ requestId: string;
4270
+ type?: undefined;
4271
+ dbUrl?: string | null | undefined;
4272
+ userIdActual?: string | null | undefined;
4273
+ channelId?: string | null | undefined;
4274
+ } | {
4275
+ type: "BOXMAN_REQUEST";
4276
+ boxId: string;
4277
+ isDevelopment: boolean | null;
4278
+ appId?: string | null | undefined;
4279
+ rpcMethod?: string | null | undefined;
4280
+ requestId?: string | null | undefined;
4281
+ channelId?: string | null | undefined;
4282
+ platformUserId?: string | null | undefined;
4283
+ agent?: string | null | undefined;
4284
+ sessionId?: string | null | undefined;
4285
+ };
4286
+ meta: object;
4287
+ errorShape: {
4288
+ data: {
4289
+ zodError: typeToFlattenedError<any, string> | null;
4290
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
4291
+ httpStatus: number;
4292
+ path?: string;
4293
+ stack?: string;
4294
+ };
4295
+ message: string;
4296
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
4297
+ };
4298
+ transformer: typeof superjson;
4299
+ }>;
4300
+ _meta: object;
4301
+ _ctx_out: {
4302
+ type: undefined;
4303
+ appId: string;
4304
+ versionId: string;
4305
+ dbUrl: string | null | undefined;
4306
+ appName: string;
4307
+ appSubdomain: string;
4308
+ userId: string;
4309
+ userIdActual: string | null | undefined;
4310
+ isTesting: boolean;
4311
+ rpcMethod: string;
4312
+ requestId: string;
4313
+ channelId: string | null | undefined;
4314
+ } | {
4315
+ type: "BOXMAN_REQUEST";
4316
+ appId: string | null | undefined;
4317
+ rpcMethod: string | null | undefined;
4318
+ requestId: string | null | undefined;
4319
+ channelId: string | null | undefined;
4320
+ boxId: string;
4321
+ platformUserId: string | null | undefined;
4322
+ isDevelopment: boolean | null;
4323
+ agent: string | null | undefined;
4324
+ sessionId: string | null | undefined;
4325
+ };
4326
+ _input_in: {
4327
+ logs: {
4328
+ type: string;
4329
+ args?: any;
4330
+ }[];
4331
+ };
4332
+ _input_out: {
4333
+ logs: {
4334
+ type: string;
4335
+ args?: any;
4336
+ }[];
4337
+ };
4338
+ _output_in: typeof _trpc_server.unsetMarker;
4339
+ _output_out: typeof _trpc_server.unsetMarker;
4340
+ }, void>>;
4341
+ };
4342
+ createCommitLogs: {
4343
+ mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
4344
+ _config: _trpc_server.RootConfig<{
4345
+ ctx: {
4346
+ appId: string;
4347
+ versionId: string;
4348
+ appName: string;
4349
+ appSubdomain: string;
4350
+ userId: string;
4351
+ isTesting: boolean;
4352
+ rpcMethod: string;
4353
+ requestId: string;
4354
+ type?: undefined;
4355
+ dbUrl?: string | null | undefined;
4356
+ userIdActual?: string | null | undefined;
4357
+ channelId?: string | null | undefined;
4358
+ } | {
4359
+ type: "BOXMAN_REQUEST";
4360
+ boxId: string;
4361
+ isDevelopment: boolean | null;
4362
+ appId?: string | null | undefined;
4363
+ rpcMethod?: string | null | undefined;
4364
+ requestId?: string | null | undefined;
4365
+ channelId?: string | null | undefined;
4366
+ platformUserId?: string | null | undefined;
4367
+ agent?: string | null | undefined;
4368
+ sessionId?: string | null | undefined;
4369
+ };
4370
+ meta: object;
4371
+ errorShape: {
4372
+ data: {
4373
+ zodError: typeToFlattenedError<any, string> | null;
4374
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
4375
+ httpStatus: number;
4376
+ path?: string;
4377
+ stack?: string;
4378
+ };
4379
+ message: string;
4380
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
4381
+ };
4382
+ transformer: typeof superjson;
4383
+ }>;
4384
+ _meta: object;
4385
+ _ctx_out: {
4386
+ type: undefined;
4387
+ appId: string;
4388
+ versionId: string;
4389
+ dbUrl: string | null | undefined;
4390
+ appName: string;
4391
+ appSubdomain: string;
4392
+ userId: string;
4393
+ userIdActual: string | null | undefined;
4394
+ isTesting: boolean;
4395
+ rpcMethod: string;
4396
+ requestId: string;
4397
+ channelId: string | null | undefined;
4398
+ } | {
4399
+ type: "BOXMAN_REQUEST";
4400
+ appId: string | null | undefined;
4401
+ rpcMethod: string | null | undefined;
4402
+ requestId: string | null | undefined;
4403
+ channelId: string | null | undefined;
4404
+ boxId: string;
4405
+ platformUserId: string | null | undefined;
4406
+ isDevelopment: boolean | null;
4407
+ agent: string | null | undefined;
4408
+ sessionId: string | null | undefined;
4409
+ };
4410
+ _input_in: {
4411
+ logs: {
4412
+ body?: any;
4413
+ stmt?: any;
4414
+ }[];
4415
+ };
4416
+ _input_out: {
4417
+ logs: {
4418
+ body?: any;
4419
+ stmt?: any;
4420
+ }[];
4421
+ };
4422
+ _output_in: typeof _trpc_server.unsetMarker;
4423
+ _output_out: typeof _trpc_server.unsetMarker;
4424
+ }, void>>;
4425
+ };
4426
+ searchWithGoogle: {
4427
+ mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
4428
+ _config: _trpc_server.RootConfig<{
4429
+ ctx: {
4430
+ appId: string;
4431
+ versionId: string;
4432
+ appName: string;
4433
+ appSubdomain: string;
4434
+ userId: string;
4435
+ isTesting: boolean;
4436
+ rpcMethod: string;
4437
+ requestId: string;
4438
+ type?: undefined;
4439
+ dbUrl?: string | null | undefined;
4440
+ userIdActual?: string | null | undefined;
4441
+ channelId?: string | null | undefined;
4442
+ } | {
4443
+ type: "BOXMAN_REQUEST";
4444
+ boxId: string;
4445
+ isDevelopment: boolean | null;
4446
+ appId?: string | null | undefined;
4447
+ rpcMethod?: string | null | undefined;
4448
+ requestId?: string | null | undefined;
4449
+ channelId?: string | null | undefined;
4450
+ platformUserId?: string | null | undefined;
4451
+ agent?: string | null | undefined;
4452
+ sessionId?: string | null | undefined;
4453
+ };
4454
+ meta: object;
4455
+ errorShape: {
4456
+ data: {
4457
+ zodError: typeToFlattenedError<any, string> | null;
4458
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
4459
+ httpStatus: number;
4460
+ path?: string;
4461
+ stack?: string;
4462
+ };
4463
+ message: string;
4464
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
4465
+ };
4466
+ transformer: typeof superjson;
4467
+ }>;
4468
+ _meta: object;
4469
+ _ctx_out: {
4470
+ type: undefined;
4471
+ appId: string;
4472
+ versionId: string;
4473
+ dbUrl: string | null | undefined;
4474
+ appName: string;
4475
+ appSubdomain: string;
4476
+ userId: string;
4477
+ userIdActual: string | null | undefined;
4478
+ isTesting: boolean;
4479
+ rpcMethod: string;
4480
+ requestId: string;
4481
+ channelId: string | null | undefined;
4482
+ } | {
4483
+ type: "BOXMAN_REQUEST";
4484
+ appId: string | null | undefined;
4485
+ rpcMethod: string | null | undefined;
4486
+ requestId: string | null | undefined;
4487
+ channelId: string | null | undefined;
4488
+ boxId: string;
4489
+ platformUserId: string | null | undefined;
4490
+ isDevelopment: boolean | null;
4491
+ agent: string | null | undefined;
4492
+ sessionId: string | null | undefined;
4493
+ };
4494
+ _input_in: {
4495
+ query: string;
4496
+ };
4497
+ _input_out: {
4498
+ query: string;
4499
+ };
4500
+ _output_in: typeof _trpc_server.unsetMarker;
4501
+ _output_out: typeof _trpc_server.unsetMarker;
4502
+ }, {
4503
+ answer: string | undefined;
4504
+ sources: {
4505
+ title: string;
4506
+ url: string;
4507
+ }[];
4508
+ }>>;
4509
+ };
4510
+ requestMultimodalModel: {
4511
+ mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
4512
+ _config: _trpc_server.RootConfig<{
4513
+ ctx: {
4514
+ appId: string;
4515
+ versionId: string;
4516
+ appName: string;
4517
+ appSubdomain: string;
4518
+ userId: string;
4519
+ isTesting: boolean;
4520
+ rpcMethod: string;
4521
+ requestId: string;
4522
+ type?: undefined;
4523
+ dbUrl?: string | null | undefined;
4524
+ userIdActual?: string | null | undefined;
4525
+ channelId?: string | null | undefined;
4526
+ } | {
4527
+ type: "BOXMAN_REQUEST";
4528
+ boxId: string;
4529
+ isDevelopment: boolean | null;
4530
+ appId?: string | null | undefined;
4531
+ rpcMethod?: string | null | undefined;
4532
+ requestId?: string | null | undefined;
4533
+ channelId?: string | null | undefined;
4534
+ platformUserId?: string | null | undefined;
4535
+ agent?: string | null | undefined;
4536
+ sessionId?: string | null | undefined;
4537
+ };
4538
+ meta: object;
4539
+ errorShape: {
4540
+ data: {
4541
+ zodError: typeToFlattenedError<any, string> | null;
4542
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
4543
+ httpStatus: number;
4544
+ path?: string;
4545
+ stack?: string;
4546
+ };
4547
+ message: string;
4548
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
4549
+ };
4550
+ transformer: typeof superjson;
4551
+ }>;
4552
+ _meta: object;
4553
+ _ctx_out: {
4554
+ type: undefined;
4555
+ appId: string;
4556
+ versionId: string;
4557
+ dbUrl: string | null | undefined;
4558
+ appName: string;
4559
+ appSubdomain: string;
4560
+ userId: string;
4561
+ userIdActual: string | null | undefined;
4562
+ isTesting: boolean;
4563
+ rpcMethod: string;
4564
+ requestId: string;
4565
+ channelId: string | null | undefined;
4566
+ } | {
4567
+ type: "BOXMAN_REQUEST";
4568
+ appId: string | null | undefined;
4569
+ rpcMethod: string | null | undefined;
4570
+ requestId: string | null | undefined;
4571
+ channelId: string | null | undefined;
4572
+ boxId: string;
4573
+ platformUserId: string | null | undefined;
4574
+ isDevelopment: boolean | null;
4575
+ agent: string | null | undefined;
4576
+ sessionId: string | null | undefined;
4577
+ };
4578
+ _input_in: {
4579
+ messages: any[];
4580
+ system?: string | undefined;
4581
+ model?: "small" | "medium" | "large" | undefined;
4582
+ returnType?: any;
4583
+ realtimeChannelId?: string | undefined;
4584
+ temperature?: number | undefined;
4585
+ customTools?: any[] | undefined;
4586
+ };
4587
+ _input_out: {
4588
+ messages: any[];
4589
+ temperature: number;
4590
+ system?: string | undefined;
4591
+ model?: "small" | "medium" | "large" | undefined;
4592
+ returnType?: any;
4593
+ realtimeChannelId?: string | undefined;
4594
+ customTools?: any[] | undefined;
4595
+ };
4596
+ _output_in: typeof _trpc_server.unsetMarker;
4597
+ _output_out: typeof _trpc_server.unsetMarker;
4598
+ }, object>>;
4599
+ };
4600
+ getTaskStatus: {
4601
+ mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
4602
+ _config: _trpc_server.RootConfig<{
4603
+ ctx: {
4604
+ appId: string;
4605
+ versionId: string;
4606
+ appName: string;
4607
+ appSubdomain: string;
4608
+ userId: string;
4609
+ isTesting: boolean;
4610
+ rpcMethod: string;
4611
+ requestId: string;
4612
+ type?: undefined;
4613
+ dbUrl?: string | null | undefined;
4614
+ userIdActual?: string | null | undefined;
4615
+ channelId?: string | null | undefined;
4616
+ } | {
4617
+ type: "BOXMAN_REQUEST";
4618
+ boxId: string;
4619
+ isDevelopment: boolean | null;
4620
+ appId?: string | null | undefined;
4621
+ rpcMethod?: string | null | undefined;
4622
+ requestId?: string | null | undefined;
4623
+ channelId?: string | null | undefined;
4624
+ platformUserId?: string | null | undefined;
4625
+ agent?: string | null | undefined;
4626
+ sessionId?: string | null | undefined;
4627
+ };
4628
+ meta: object;
4629
+ errorShape: {
4630
+ data: {
4631
+ zodError: typeToFlattenedError<any, string> | null;
4632
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
4633
+ httpStatus: number;
4634
+ path?: string;
4635
+ stack?: string;
4636
+ };
4637
+ message: string;
4638
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
4639
+ };
4640
+ transformer: typeof superjson;
4641
+ }>;
4642
+ _meta: object;
4643
+ _ctx_out: {
4644
+ type: undefined;
4645
+ appId: string;
4646
+ versionId: string;
4647
+ dbUrl: string | null | undefined;
4648
+ appName: string;
4649
+ appSubdomain: string;
4650
+ userId: string;
4651
+ userIdActual: string | null | undefined;
4652
+ isTesting: boolean;
4653
+ rpcMethod: string;
4654
+ requestId: string;
4655
+ channelId: string | null | undefined;
4656
+ } | {
4657
+ type: "BOXMAN_REQUEST";
4658
+ appId: string | null | undefined;
4659
+ rpcMethod: string | null | undefined;
4660
+ requestId: string | null | undefined;
4661
+ channelId: string | null | undefined;
4662
+ boxId: string;
4663
+ platformUserId: string | null | undefined;
4664
+ isDevelopment: boolean | null;
4665
+ agent: string | null | undefined;
4666
+ sessionId: string | null | undefined;
4667
+ };
4668
+ _input_in: {
4669
+ id: string;
4670
+ };
4671
+ _input_out: {
4672
+ id: string;
4673
+ };
4674
+ _output_in: typeof _trpc_server.unsetMarker;
4675
+ _output_out: typeof _trpc_server.unsetMarker;
4676
+ }, {
4677
+ status: "RUNNING" | "COMPLETED" | "FAILED";
4678
+ id: string;
4679
+ error?: any;
4680
+ } | {
4681
+ id: string;
4682
+ status: "UNKNOWN";
4683
+ }>>;
4684
+ };
4685
+ upsertTaskStatus: {
4686
+ mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
4687
+ _config: _trpc_server.RootConfig<{
4688
+ ctx: {
4689
+ appId: string;
4690
+ versionId: string;
4691
+ appName: string;
4692
+ appSubdomain: string;
4693
+ userId: string;
4694
+ isTesting: boolean;
4695
+ rpcMethod: string;
4696
+ requestId: string;
4697
+ type?: undefined;
4698
+ dbUrl?: string | null | undefined;
4699
+ userIdActual?: string | null | undefined;
4700
+ channelId?: string | null | undefined;
4701
+ } | {
4702
+ type: "BOXMAN_REQUEST";
4703
+ boxId: string;
4704
+ isDevelopment: boolean | null;
4705
+ appId?: string | null | undefined;
4706
+ rpcMethod?: string | null | undefined;
4707
+ requestId?: string | null | undefined;
4708
+ channelId?: string | null | undefined;
4709
+ platformUserId?: string | null | undefined;
4710
+ agent?: string | null | undefined;
4711
+ sessionId?: string | null | undefined;
4712
+ };
4713
+ meta: object;
4714
+ errorShape: {
4715
+ data: {
4716
+ zodError: typeToFlattenedError<any, string> | null;
4717
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
4718
+ httpStatus: number;
4719
+ path?: string;
4720
+ stack?: string;
4721
+ };
4722
+ message: string;
4723
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
4724
+ };
4725
+ transformer: typeof superjson;
4726
+ }>;
4727
+ _meta: object;
4728
+ _ctx_out: {
4729
+ type: undefined;
4730
+ appId: string;
4731
+ versionId: string;
4732
+ dbUrl: string | null | undefined;
4733
+ appName: string;
4734
+ appSubdomain: string;
4735
+ userId: string;
4736
+ userIdActual: string | null | undefined;
4737
+ isTesting: boolean;
4738
+ rpcMethod: string;
4739
+ requestId: string;
4740
+ channelId: string | null | undefined;
4741
+ } | {
4742
+ type: "BOXMAN_REQUEST";
4743
+ appId: string | null | undefined;
4744
+ rpcMethod: string | null | undefined;
4745
+ requestId: string | null | undefined;
4746
+ channelId: string | null | undefined;
4747
+ boxId: string;
4748
+ platformUserId: string | null | undefined;
4749
+ isDevelopment: boolean | null;
4750
+ agent: string | null | undefined;
4751
+ sessionId: string | null | undefined;
4752
+ };
4753
+ _input_in: {
4754
+ status: "RUNNING" | "COMPLETED" | "FAILED";
4755
+ id?: string | undefined;
4756
+ error?: any;
4757
+ };
4758
+ _input_out: {
4759
+ status: "RUNNING" | "COMPLETED" | "FAILED";
4760
+ id?: string | undefined;
4761
+ error?: any;
4762
+ };
4763
+ _output_in: typeof _trpc_server.unsetMarker;
4764
+ _output_out: typeof _trpc_server.unsetMarker;
4765
+ }, {
4766
+ id: string;
4767
+ status: "RUNNING" | "COMPLETED" | "FAILED";
4768
+ error: any;
4769
+ }>>;
4770
+ };
4771
+ getGuestServerInfo: {
4772
+ mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
4773
+ _config: _trpc_server.RootConfig<{
4774
+ ctx: {
4775
+ appId: string;
4776
+ versionId: string;
4777
+ appName: string;
4778
+ appSubdomain: string;
4779
+ userId: string;
4780
+ isTesting: boolean;
4781
+ rpcMethod: string;
4782
+ requestId: string;
4783
+ type?: undefined;
4784
+ dbUrl?: string | null | undefined;
4785
+ userIdActual?: string | null | undefined;
4786
+ channelId?: string | null | undefined;
4787
+ } | {
4788
+ type: "BOXMAN_REQUEST";
4789
+ boxId: string;
4790
+ isDevelopment: boolean | null;
4791
+ appId?: string | null | undefined;
4792
+ rpcMethod?: string | null | undefined;
4793
+ requestId?: string | null | undefined;
4794
+ channelId?: string | null | undefined;
4795
+ platformUserId?: string | null | undefined;
4796
+ agent?: string | null | undefined;
4797
+ sessionId?: string | null | undefined;
4798
+ };
4799
+ meta: object;
4800
+ errorShape: {
4801
+ data: {
4802
+ zodError: typeToFlattenedError<any, string> | null;
4803
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
4804
+ httpStatus: number;
4805
+ path?: string;
4806
+ stack?: string;
4807
+ };
4808
+ message: string;
4809
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
4810
+ };
4811
+ transformer: typeof superjson;
4812
+ }>;
4813
+ _meta: object;
4814
+ _ctx_out: {
4815
+ type: undefined;
4816
+ appId: string;
4817
+ versionId: string;
4818
+ dbUrl: string | null | undefined;
4819
+ appName: string;
4820
+ appSubdomain: string;
4821
+ userId: string;
4822
+ userIdActual: string | null | undefined;
4823
+ isTesting: boolean;
4824
+ rpcMethod: string;
4825
+ requestId: string;
4826
+ channelId: string | null | undefined;
4827
+ } | {
4828
+ type: "BOXMAN_REQUEST";
4829
+ appId: string | null | undefined;
4830
+ rpcMethod: string | null | undefined;
4831
+ requestId: string | null | undefined;
4832
+ channelId: string | null | undefined;
4833
+ boxId: string;
4834
+ platformUserId: string | null | undefined;
4835
+ isDevelopment: boolean | null;
4836
+ agent: string | null | undefined;
4837
+ sessionId: string | null | undefined;
4838
+ };
4839
+ _input_in: typeof _trpc_server.unsetMarker;
4840
+ _input_out: typeof _trpc_server.unsetMarker;
4841
+ _output_in: typeof _trpc_server.unsetMarker;
4842
+ _output_out: typeof _trpc_server.unsetMarker;
4843
+ }, {
4844
+ backendCode: string | null;
4845
+ backendCodeUrl: string | null;
4846
+ envVars: Record<string, string>;
4847
+ connectionInfo: {
4848
+ authToken: string;
4849
+ url: string;
4850
+ } | null;
4851
+ appUrl: string;
4852
+ appSubdomain: string;
4853
+ appName: string;
4854
+ }>>;
4855
+ };
4856
+ };
45
4857
  export declare function initializeServerEnvironment({ baseUrl, realtimeDomain, guestServicesUrl, }: {
46
4858
  baseUrl: string;
47
4859
  realtimeDomain: string;