@adaptive-ai/sdk 0.1.2 → 0.1.4

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,133 @@
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 allKeys<T> = T extends any ? keyof T : never;
125
+ export type typeToFlattenedError<T, U = string> = {
126
+ formErrors: U[];
127
+ fieldErrors: {
128
+ [P in allKeys<T>]?: U[];
129
+ };
130
+ };
5
131
  declare const AuthProvider: {
6
132
  readonly GITHUB_USER: "GITHUB_USER";
7
133
  readonly GITHUB_BOT: "GITHUB_BOT";
@@ -41,7 +167,2025 @@ export interface EmailHandlerInput {
41
167
  body: string;
42
168
  fromUserId: string;
43
169
  }
44
- declare let client: ReturnType<typeof createTRPCProxyClient<GuestServicesRouter>>;
170
+ declare let client: {
171
+ getCurrentUser: {
172
+ mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
173
+ _config: _trpc_server.RootConfig<{
174
+ ctx: {
175
+ appId: string;
176
+ versionId: string;
177
+ appName: string;
178
+ appSubdomain: string;
179
+ userId: string;
180
+ isTesting: boolean;
181
+ rpcMethod: string;
182
+ requestId: string;
183
+ type?: undefined;
184
+ dbUrl?: string | null | undefined;
185
+ userIdActual?: string | null | undefined;
186
+ channelId?: string | null | undefined;
187
+ } | {
188
+ type: "BOXMAN_REQUEST";
189
+ boxId: string;
190
+ isDevelopment: boolean | null;
191
+ appId?: string | null | undefined;
192
+ rpcMethod?: string | null | undefined;
193
+ requestId?: string | null | undefined;
194
+ channelId?: string | null | undefined;
195
+ platformUserId?: string | null | undefined;
196
+ agent?: string | null | undefined;
197
+ sessionId?: string | null | undefined;
198
+ };
199
+ meta: object;
200
+ errorShape: {
201
+ data: {
202
+ zodError: typeToFlattenedError<any, string> | null;
203
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
204
+ httpStatus: number;
205
+ path?: string;
206
+ stack?: string;
207
+ };
208
+ message: string;
209
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
210
+ };
211
+ transformer: typeof superjson;
212
+ }>;
213
+ _meta: object;
214
+ _ctx_out: {
215
+ type: undefined;
216
+ appId: string;
217
+ versionId: string;
218
+ dbUrl: string | null | undefined;
219
+ appName: string;
220
+ appSubdomain: string;
221
+ userId: string;
222
+ userIdActual: string | null | undefined;
223
+ isTesting: boolean;
224
+ rpcMethod: string;
225
+ requestId: string;
226
+ channelId: string | null | undefined;
227
+ } | {
228
+ type: "BOXMAN_REQUEST";
229
+ appId: string | null | undefined;
230
+ rpcMethod: string | null | undefined;
231
+ requestId: string | null | undefined;
232
+ channelId: string | null | undefined;
233
+ boxId: string;
234
+ platformUserId: string | null | undefined;
235
+ isDevelopment: boolean | null;
236
+ agent: string | null | undefined;
237
+ sessionId: string | null | undefined;
238
+ };
239
+ _input_in: {
240
+ appId?: string | undefined;
241
+ throwIfNotLoggedIn?: boolean | undefined;
242
+ } | undefined;
243
+ _input_out: {
244
+ appId?: string | undefined;
245
+ throwIfNotLoggedIn?: boolean | undefined;
246
+ } | undefined;
247
+ _output_in: typeof _trpc_server.unsetMarker;
248
+ _output_out: typeof _trpc_server.unsetMarker;
249
+ }, {
250
+ error: "SEED";
251
+ providers: never[];
252
+ userId?: undefined;
253
+ } | {
254
+ userId: null;
255
+ error: null;
256
+ providers: never[];
257
+ } | {
258
+ userId: string;
259
+ error: null;
260
+ providers: AuthProvider[];
261
+ }>>;
262
+ };
263
+ sendEmail: {
264
+ mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
265
+ _config: _trpc_server.RootConfig<{
266
+ ctx: {
267
+ appId: string;
268
+ versionId: string;
269
+ appName: string;
270
+ appSubdomain: string;
271
+ userId: string;
272
+ isTesting: boolean;
273
+ rpcMethod: string;
274
+ requestId: string;
275
+ type?: undefined;
276
+ dbUrl?: string | null | undefined;
277
+ userIdActual?: string | null | undefined;
278
+ channelId?: string | null | undefined;
279
+ } | {
280
+ type: "BOXMAN_REQUEST";
281
+ boxId: string;
282
+ isDevelopment: boolean | null;
283
+ appId?: string | null | undefined;
284
+ rpcMethod?: string | null | undefined;
285
+ requestId?: string | null | undefined;
286
+ channelId?: string | null | undefined;
287
+ platformUserId?: string | null | undefined;
288
+ agent?: string | null | undefined;
289
+ sessionId?: string | null | undefined;
290
+ };
291
+ meta: object;
292
+ errorShape: {
293
+ data: {
294
+ zodError: typeToFlattenedError<any, string> | null;
295
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
296
+ httpStatus: number;
297
+ path?: string;
298
+ stack?: string;
299
+ };
300
+ message: string;
301
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
302
+ };
303
+ transformer: typeof superjson;
304
+ }>;
305
+ _meta: object;
306
+ _ctx_out: {
307
+ type: undefined;
308
+ appId: string;
309
+ versionId: string;
310
+ dbUrl: string | null | undefined;
311
+ appName: string;
312
+ appSubdomain: string;
313
+ userId: string;
314
+ userIdActual: string | null | undefined;
315
+ isTesting: boolean;
316
+ rpcMethod: string;
317
+ requestId: string;
318
+ channelId: string | null | undefined;
319
+ } | {
320
+ type: "BOXMAN_REQUEST";
321
+ appId: string | null | undefined;
322
+ rpcMethod: string | null | undefined;
323
+ requestId: string | null | undefined;
324
+ channelId: string | null | undefined;
325
+ boxId: string;
326
+ platformUserId: string | null | undefined;
327
+ isDevelopment: boolean | null;
328
+ agent: string | null | undefined;
329
+ sessionId: string | null | undefined;
330
+ };
331
+ _input_in: {
332
+ markdown: string;
333
+ subject: string;
334
+ toUserId?: string | undefined;
335
+ toEmail?: string | undefined;
336
+ };
337
+ _input_out: {
338
+ markdown: string;
339
+ subject: string;
340
+ toUserId?: string | undefined;
341
+ toEmail?: string | undefined;
342
+ };
343
+ _output_in: typeof _trpc_server.unsetMarker;
344
+ _output_out: typeof _trpc_server.unsetMarker;
345
+ }, void>>;
346
+ };
347
+ inviteUser: {
348
+ mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
349
+ _config: _trpc_server.RootConfig<{
350
+ ctx: {
351
+ appId: string;
352
+ versionId: string;
353
+ appName: string;
354
+ appSubdomain: string;
355
+ userId: string;
356
+ isTesting: boolean;
357
+ rpcMethod: string;
358
+ requestId: string;
359
+ type?: undefined;
360
+ dbUrl?: string | null | undefined;
361
+ userIdActual?: string | null | undefined;
362
+ channelId?: string | null | undefined;
363
+ } | {
364
+ type: "BOXMAN_REQUEST";
365
+ boxId: string;
366
+ isDevelopment: boolean | null;
367
+ appId?: string | null | undefined;
368
+ rpcMethod?: string | null | undefined;
369
+ requestId?: string | null | undefined;
370
+ channelId?: string | null | undefined;
371
+ platformUserId?: string | null | undefined;
372
+ agent?: string | null | undefined;
373
+ sessionId?: string | null | undefined;
374
+ };
375
+ meta: object;
376
+ errorShape: {
377
+ data: {
378
+ zodError: typeToFlattenedError<any, string> | null;
379
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
380
+ httpStatus: number;
381
+ path?: string;
382
+ stack?: string;
383
+ };
384
+ message: string;
385
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
386
+ };
387
+ transformer: typeof superjson;
388
+ }>;
389
+ _meta: object;
390
+ _ctx_out: {
391
+ type: undefined;
392
+ appId: string;
393
+ versionId: string;
394
+ dbUrl: string | null | undefined;
395
+ appName: string;
396
+ appSubdomain: string;
397
+ userId: string;
398
+ userIdActual: string | null | undefined;
399
+ isTesting: boolean;
400
+ rpcMethod: string;
401
+ requestId: string;
402
+ channelId: string | null | undefined;
403
+ } | {
404
+ type: "BOXMAN_REQUEST";
405
+ appId: string | null | undefined;
406
+ rpcMethod: string | null | undefined;
407
+ requestId: string | null | undefined;
408
+ channelId: string | null | undefined;
409
+ boxId: string;
410
+ platformUserId: string | null | undefined;
411
+ isDevelopment: boolean | null;
412
+ agent: string | null | undefined;
413
+ sessionId: string | null | undefined;
414
+ };
415
+ _input_in: {
416
+ appId?: string | undefined;
417
+ email?: string | undefined;
418
+ markdown?: string | undefined;
419
+ subject?: string | undefined;
420
+ unauthenticatedLinks?: boolean | undefined;
421
+ };
422
+ _input_out: {
423
+ appId?: string | undefined;
424
+ email?: string | undefined;
425
+ markdown?: string | undefined;
426
+ subject?: string | undefined;
427
+ unauthenticatedLinks?: boolean | undefined;
428
+ };
429
+ _output_in: typeof _trpc_server.unsetMarker;
430
+ _output_out: typeof _trpc_server.unsetMarker;
431
+ }, {
432
+ id: string;
433
+ }>>;
434
+ };
435
+ uploadToBucket: {
436
+ mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
437
+ _config: _trpc_server.RootConfig<{
438
+ ctx: {
439
+ appId: string;
440
+ versionId: string;
441
+ appName: string;
442
+ appSubdomain: string;
443
+ userId: string;
444
+ isTesting: boolean;
445
+ rpcMethod: string;
446
+ requestId: string;
447
+ type?: undefined;
448
+ dbUrl?: string | null | undefined;
449
+ userIdActual?: string | null | undefined;
450
+ channelId?: string | null | undefined;
451
+ } | {
452
+ type: "BOXMAN_REQUEST";
453
+ boxId: string;
454
+ isDevelopment: boolean | null;
455
+ appId?: string | null | undefined;
456
+ rpcMethod?: string | null | undefined;
457
+ requestId?: string | null | undefined;
458
+ channelId?: string | null | undefined;
459
+ platformUserId?: string | null | undefined;
460
+ agent?: string | null | undefined;
461
+ sessionId?: string | null | undefined;
462
+ };
463
+ meta: object;
464
+ errorShape: {
465
+ data: {
466
+ zodError: typeToFlattenedError<any, string> | null;
467
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
468
+ httpStatus: number;
469
+ path?: string;
470
+ stack?: string;
471
+ };
472
+ message: string;
473
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
474
+ };
475
+ transformer: typeof superjson;
476
+ }>;
477
+ _meta: object;
478
+ _ctx_out: {
479
+ type: undefined;
480
+ appId: string;
481
+ versionId: string;
482
+ dbUrl: string | null | undefined;
483
+ appName: string;
484
+ appSubdomain: string;
485
+ userId: string;
486
+ userIdActual: string | null | undefined;
487
+ isTesting: boolean;
488
+ rpcMethod: string;
489
+ requestId: string;
490
+ channelId: string | null | undefined;
491
+ } | {
492
+ type: "BOXMAN_REQUEST";
493
+ appId: string | null | undefined;
494
+ rpcMethod: string | null | undefined;
495
+ requestId: string | null | undefined;
496
+ channelId: string | null | undefined;
497
+ boxId: string;
498
+ platformUserId: string | null | undefined;
499
+ isDevelopment: boolean | null;
500
+ agent: string | null | undefined;
501
+ sessionId: string | null | undefined;
502
+ };
503
+ _input_in: {
504
+ base64: string;
505
+ fileName: string;
506
+ };
507
+ _input_out: {
508
+ base64: string;
509
+ fileName: string;
510
+ };
511
+ _output_in: typeof _trpc_server.unsetMarker;
512
+ _output_out: typeof _trpc_server.unsetMarker;
513
+ }, string>>;
514
+ };
515
+ generateSoundEffect: {
516
+ mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
517
+ _config: _trpc_server.RootConfig<{
518
+ ctx: {
519
+ appId: string;
520
+ versionId: string;
521
+ appName: string;
522
+ appSubdomain: string;
523
+ userId: string;
524
+ isTesting: boolean;
525
+ rpcMethod: string;
526
+ requestId: string;
527
+ type?: undefined;
528
+ dbUrl?: string | null | undefined;
529
+ userIdActual?: string | null | undefined;
530
+ channelId?: string | null | undefined;
531
+ } | {
532
+ type: "BOXMAN_REQUEST";
533
+ boxId: string;
534
+ isDevelopment: boolean | null;
535
+ appId?: string | null | undefined;
536
+ rpcMethod?: string | null | undefined;
537
+ requestId?: string | null | undefined;
538
+ channelId?: string | null | undefined;
539
+ platformUserId?: string | null | undefined;
540
+ agent?: string | null | undefined;
541
+ sessionId?: string | null | undefined;
542
+ };
543
+ meta: object;
544
+ errorShape: {
545
+ data: {
546
+ zodError: typeToFlattenedError<any, string> | null;
547
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
548
+ httpStatus: number;
549
+ path?: string;
550
+ stack?: string;
551
+ };
552
+ message: string;
553
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
554
+ };
555
+ transformer: typeof superjson;
556
+ }>;
557
+ _meta: object;
558
+ _ctx_out: {
559
+ type: undefined;
560
+ appId: string;
561
+ versionId: string;
562
+ dbUrl: string | null | undefined;
563
+ appName: string;
564
+ appSubdomain: string;
565
+ userId: string;
566
+ userIdActual: string | null | undefined;
567
+ isTesting: boolean;
568
+ rpcMethod: string;
569
+ requestId: string;
570
+ channelId: string | null | undefined;
571
+ } | {
572
+ type: "BOXMAN_REQUEST";
573
+ appId: string | null | undefined;
574
+ rpcMethod: string | null | undefined;
575
+ requestId: string | null | undefined;
576
+ channelId: string | null | undefined;
577
+ boxId: string;
578
+ platformUserId: string | null | undefined;
579
+ isDevelopment: boolean | null;
580
+ agent: string | null | undefined;
581
+ sessionId: string | null | undefined;
582
+ };
583
+ _input_in: {
584
+ text: string;
585
+ durationInSeconds?: number | undefined;
586
+ promptInfluence?: number | undefined;
587
+ loop?: boolean | undefined;
588
+ };
589
+ _input_out: {
590
+ text: string;
591
+ durationInSeconds?: number | undefined;
592
+ promptInfluence?: number | undefined;
593
+ loop?: boolean | undefined;
594
+ };
595
+ _output_in: typeof _trpc_server.unsetMarker;
596
+ _output_out: typeof _trpc_server.unsetMarker;
597
+ }, string>>;
598
+ };
599
+ generateDialogue: {
600
+ mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
601
+ _config: _trpc_server.RootConfig<{
602
+ ctx: {
603
+ appId: string;
604
+ versionId: string;
605
+ appName: string;
606
+ appSubdomain: string;
607
+ userId: string;
608
+ isTesting: boolean;
609
+ rpcMethod: string;
610
+ requestId: string;
611
+ type?: undefined;
612
+ dbUrl?: string | null | undefined;
613
+ userIdActual?: string | null | undefined;
614
+ channelId?: string | null | undefined;
615
+ } | {
616
+ type: "BOXMAN_REQUEST";
617
+ boxId: string;
618
+ isDevelopment: boolean | null;
619
+ appId?: string | null | undefined;
620
+ rpcMethod?: string | null | undefined;
621
+ requestId?: string | null | undefined;
622
+ channelId?: string | null | undefined;
623
+ platformUserId?: string | null | undefined;
624
+ agent?: string | null | undefined;
625
+ sessionId?: string | null | undefined;
626
+ };
627
+ meta: object;
628
+ errorShape: {
629
+ data: {
630
+ zodError: typeToFlattenedError<any, string> | null;
631
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
632
+ httpStatus: number;
633
+ path?: string;
634
+ stack?: string;
635
+ };
636
+ message: string;
637
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
638
+ };
639
+ transformer: typeof superjson;
640
+ }>;
641
+ _meta: object;
642
+ _ctx_out: {
643
+ type: undefined;
644
+ appId: string;
645
+ versionId: string;
646
+ dbUrl: string | null | undefined;
647
+ appName: string;
648
+ appSubdomain: string;
649
+ userId: string;
650
+ userIdActual: string | null | undefined;
651
+ isTesting: boolean;
652
+ rpcMethod: string;
653
+ requestId: string;
654
+ channelId: string | null | undefined;
655
+ } | {
656
+ type: "BOXMAN_REQUEST";
657
+ appId: string | null | undefined;
658
+ rpcMethod: string | null | undefined;
659
+ requestId: string | null | undefined;
660
+ channelId: string | null | undefined;
661
+ boxId: string;
662
+ platformUserId: string | null | undefined;
663
+ isDevelopment: boolean | null;
664
+ agent: string | null | undefined;
665
+ sessionId: string | null | undefined;
666
+ };
667
+ _input_in: {
668
+ inputs: {
669
+ text: string;
670
+ character: string;
671
+ }[];
672
+ };
673
+ _input_out: {
674
+ inputs: {
675
+ text: string;
676
+ character: string;
677
+ }[];
678
+ };
679
+ _output_in: typeof _trpc_server.unsetMarker;
680
+ _output_out: typeof _trpc_server.unsetMarker;
681
+ }, {
682
+ url: string;
683
+ duration: number | undefined;
684
+ }>>;
685
+ };
686
+ generateMusic: {
687
+ mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
688
+ _config: _trpc_server.RootConfig<{
689
+ ctx: {
690
+ appId: string;
691
+ versionId: string;
692
+ appName: string;
693
+ appSubdomain: string;
694
+ userId: string;
695
+ isTesting: boolean;
696
+ rpcMethod: string;
697
+ requestId: string;
698
+ type?: undefined;
699
+ dbUrl?: string | null | undefined;
700
+ userIdActual?: string | null | undefined;
701
+ channelId?: string | null | undefined;
702
+ } | {
703
+ type: "BOXMAN_REQUEST";
704
+ boxId: string;
705
+ isDevelopment: boolean | null;
706
+ appId?: string | null | undefined;
707
+ rpcMethod?: string | null | undefined;
708
+ requestId?: string | null | undefined;
709
+ channelId?: string | null | undefined;
710
+ platformUserId?: string | null | undefined;
711
+ agent?: string | null | undefined;
712
+ sessionId?: string | null | undefined;
713
+ };
714
+ meta: object;
715
+ errorShape: {
716
+ data: {
717
+ zodError: typeToFlattenedError<any, string> | null;
718
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
719
+ httpStatus: number;
720
+ path?: string;
721
+ stack?: string;
722
+ };
723
+ message: string;
724
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
725
+ };
726
+ transformer: typeof superjson;
727
+ }>;
728
+ _meta: object;
729
+ _ctx_out: {
730
+ type: undefined;
731
+ appId: string;
732
+ versionId: string;
733
+ dbUrl: string | null | undefined;
734
+ appName: string;
735
+ appSubdomain: string;
736
+ userId: string;
737
+ userIdActual: string | null | undefined;
738
+ isTesting: boolean;
739
+ rpcMethod: string;
740
+ requestId: string;
741
+ channelId: string | null | undefined;
742
+ } | {
743
+ type: "BOXMAN_REQUEST";
744
+ appId: string | null | undefined;
745
+ rpcMethod: string | null | undefined;
746
+ requestId: string | null | undefined;
747
+ channelId: string | null | undefined;
748
+ boxId: string;
749
+ platformUserId: string | null | undefined;
750
+ isDevelopment: boolean | null;
751
+ agent: string | null | undefined;
752
+ sessionId: string | null | undefined;
753
+ };
754
+ _input_in: {
755
+ text: string;
756
+ };
757
+ _input_out: {
758
+ text: string;
759
+ };
760
+ _output_in: typeof _trpc_server.unsetMarker;
761
+ _output_out: typeof _trpc_server.unsetMarker;
762
+ }, string>>;
763
+ };
764
+ extractStructuredDataFromContent: {
765
+ mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
766
+ _config: _trpc_server.RootConfig<{
767
+ ctx: {
768
+ appId: string;
769
+ versionId: string;
770
+ appName: string;
771
+ appSubdomain: string;
772
+ userId: string;
773
+ isTesting: boolean;
774
+ rpcMethod: string;
775
+ requestId: string;
776
+ type?: undefined;
777
+ dbUrl?: string | null | undefined;
778
+ userIdActual?: string | null | undefined;
779
+ channelId?: string | null | undefined;
780
+ } | {
781
+ type: "BOXMAN_REQUEST";
782
+ boxId: string;
783
+ isDevelopment: boolean | null;
784
+ appId?: string | null | undefined;
785
+ rpcMethod?: string | null | undefined;
786
+ requestId?: string | null | undefined;
787
+ channelId?: string | null | undefined;
788
+ platformUserId?: string | null | undefined;
789
+ agent?: string | null | undefined;
790
+ sessionId?: string | null | undefined;
791
+ };
792
+ meta: object;
793
+ errorShape: {
794
+ data: {
795
+ zodError: typeToFlattenedError<any, string> | null;
796
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
797
+ httpStatus: number;
798
+ path?: string;
799
+ stack?: string;
800
+ };
801
+ message: string;
802
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
803
+ };
804
+ transformer: typeof superjson;
805
+ }>;
806
+ _meta: object;
807
+ _ctx_out: {
808
+ type: undefined;
809
+ appId: string;
810
+ versionId: string;
811
+ dbUrl: string | null | undefined;
812
+ appName: string;
813
+ appSubdomain: string;
814
+ userId: string;
815
+ userIdActual: string | null | undefined;
816
+ isTesting: boolean;
817
+ rpcMethod: string;
818
+ requestId: string;
819
+ channelId: string | null | undefined;
820
+ } | {
821
+ type: "BOXMAN_REQUEST";
822
+ appId: string | null | undefined;
823
+ rpcMethod: string | null | undefined;
824
+ requestId: string | null | undefined;
825
+ channelId: string | null | undefined;
826
+ boxId: string;
827
+ platformUserId: string | null | undefined;
828
+ isDevelopment: boolean | null;
829
+ agent: string | null | undefined;
830
+ sessionId: string | null | undefined;
831
+ };
832
+ _input_in: {
833
+ base64?: string | undefined;
834
+ url?: string | undefined;
835
+ schema?: any;
836
+ };
837
+ _input_out: {
838
+ base64?: string | undefined;
839
+ url?: string | undefined;
840
+ schema?: any;
841
+ };
842
+ _output_in: typeof _trpc_server.unsetMarker;
843
+ _output_out: typeof _trpc_server.unsetMarker;
844
+ }, object>>;
845
+ };
846
+ extractTextFromContent: {
847
+ mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
848
+ _config: _trpc_server.RootConfig<{
849
+ ctx: {
850
+ appId: string;
851
+ versionId: string;
852
+ appName: string;
853
+ appSubdomain: string;
854
+ userId: string;
855
+ isTesting: boolean;
856
+ rpcMethod: string;
857
+ requestId: string;
858
+ type?: undefined;
859
+ dbUrl?: string | null | undefined;
860
+ userIdActual?: string | null | undefined;
861
+ channelId?: string | null | undefined;
862
+ } | {
863
+ type: "BOXMAN_REQUEST";
864
+ boxId: string;
865
+ isDevelopment: boolean | null;
866
+ appId?: string | null | undefined;
867
+ rpcMethod?: string | null | undefined;
868
+ requestId?: string | null | undefined;
869
+ channelId?: string | null | undefined;
870
+ platformUserId?: string | null | undefined;
871
+ agent?: string | null | undefined;
872
+ sessionId?: string | null | undefined;
873
+ };
874
+ meta: object;
875
+ errorShape: {
876
+ data: {
877
+ zodError: typeToFlattenedError<any, string> | null;
878
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
879
+ httpStatus: number;
880
+ path?: string;
881
+ stack?: string;
882
+ };
883
+ message: string;
884
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
885
+ };
886
+ transformer: typeof superjson;
887
+ }>;
888
+ _meta: object;
889
+ _ctx_out: {
890
+ type: undefined;
891
+ appId: string;
892
+ versionId: string;
893
+ dbUrl: string | null | undefined;
894
+ appName: string;
895
+ appSubdomain: string;
896
+ userId: string;
897
+ userIdActual: string | null | undefined;
898
+ isTesting: boolean;
899
+ rpcMethod: string;
900
+ requestId: string;
901
+ channelId: string | null | undefined;
902
+ } | {
903
+ type: "BOXMAN_REQUEST";
904
+ appId: string | null | undefined;
905
+ rpcMethod: string | null | undefined;
906
+ requestId: string | null | undefined;
907
+ channelId: string | null | undefined;
908
+ boxId: string;
909
+ platformUserId: string | null | undefined;
910
+ isDevelopment: boolean | null;
911
+ agent: string | null | undefined;
912
+ sessionId: string | null | undefined;
913
+ };
914
+ _input_in: {
915
+ base64?: string | undefined;
916
+ url?: string | undefined;
917
+ outputFormat?: "raw" | "formatted-markdown" | undefined;
918
+ };
919
+ _input_out: {
920
+ base64?: string | undefined;
921
+ url?: string | undefined;
922
+ outputFormat?: "raw" | "formatted-markdown" | undefined;
923
+ };
924
+ _output_in: typeof _trpc_server.unsetMarker;
925
+ _output_out: typeof _trpc_server.unsetMarker;
926
+ }, string>>;
927
+ };
928
+ createProduct: {
929
+ mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
930
+ _config: _trpc_server.RootConfig<{
931
+ ctx: {
932
+ appId: string;
933
+ versionId: string;
934
+ appName: string;
935
+ appSubdomain: string;
936
+ userId: string;
937
+ isTesting: boolean;
938
+ rpcMethod: string;
939
+ requestId: string;
940
+ type?: undefined;
941
+ dbUrl?: string | null | undefined;
942
+ userIdActual?: string | null | undefined;
943
+ channelId?: string | null | undefined;
944
+ } | {
945
+ type: "BOXMAN_REQUEST";
946
+ boxId: string;
947
+ isDevelopment: boolean | null;
948
+ appId?: string | null | undefined;
949
+ rpcMethod?: string | null | undefined;
950
+ requestId?: string | null | undefined;
951
+ channelId?: string | null | undefined;
952
+ platformUserId?: string | null | undefined;
953
+ agent?: string | null | undefined;
954
+ sessionId?: string | null | undefined;
955
+ };
956
+ meta: object;
957
+ errorShape: {
958
+ data: {
959
+ zodError: typeToFlattenedError<any, string> | null;
960
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
961
+ httpStatus: number;
962
+ path?: string;
963
+ stack?: string;
964
+ };
965
+ message: string;
966
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
967
+ };
968
+ transformer: typeof superjson;
969
+ }>;
970
+ _meta: object;
971
+ _ctx_out: {
972
+ type: undefined;
973
+ appId: string;
974
+ versionId: string;
975
+ dbUrl: string | null | undefined;
976
+ appName: string;
977
+ appSubdomain: string;
978
+ userId: string;
979
+ userIdActual: string | null | undefined;
980
+ isTesting: boolean;
981
+ rpcMethod: string;
982
+ requestId: string;
983
+ channelId: string | null | undefined;
984
+ } | {
985
+ type: "BOXMAN_REQUEST";
986
+ appId: string | null | undefined;
987
+ rpcMethod: string | null | undefined;
988
+ requestId: string | null | undefined;
989
+ channelId: string | null | undefined;
990
+ boxId: string;
991
+ platformUserId: string | null | undefined;
992
+ isDevelopment: boolean | null;
993
+ agent: string | null | undefined;
994
+ sessionId: string | null | undefined;
995
+ };
996
+ _input_in: {
997
+ name: string;
998
+ kind: "IN_APP_PURCHASE" | "SUBSCRIPTION";
999
+ description: string;
1000
+ price: number;
1001
+ appId?: string | undefined;
1002
+ };
1003
+ _input_out: {
1004
+ name: string;
1005
+ kind: "IN_APP_PURCHASE" | "SUBSCRIPTION";
1006
+ description: string;
1007
+ price: number;
1008
+ appId?: string | undefined;
1009
+ };
1010
+ _output_in: typeof _trpc_server.unsetMarker;
1011
+ _output_out: typeof _trpc_server.unsetMarker;
1012
+ }, {
1013
+ purchaseLink: string;
1014
+ id: string;
1015
+ name: string;
1016
+ kind: $Enums.ProductKind;
1017
+ description: string;
1018
+ price: number;
1019
+ }>>;
1020
+ };
1021
+ listProducts: {
1022
+ mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
1023
+ _config: _trpc_server.RootConfig<{
1024
+ ctx: {
1025
+ appId: string;
1026
+ versionId: string;
1027
+ appName: string;
1028
+ appSubdomain: string;
1029
+ userId: string;
1030
+ isTesting: boolean;
1031
+ rpcMethod: string;
1032
+ requestId: string;
1033
+ type?: undefined;
1034
+ dbUrl?: string | null | undefined;
1035
+ userIdActual?: string | null | undefined;
1036
+ channelId?: string | null | undefined;
1037
+ } | {
1038
+ type: "BOXMAN_REQUEST";
1039
+ boxId: string;
1040
+ isDevelopment: boolean | null;
1041
+ appId?: string | null | undefined;
1042
+ rpcMethod?: string | null | undefined;
1043
+ requestId?: string | null | undefined;
1044
+ channelId?: string | null | undefined;
1045
+ platformUserId?: string | null | undefined;
1046
+ agent?: string | null | undefined;
1047
+ sessionId?: string | null | undefined;
1048
+ };
1049
+ meta: object;
1050
+ errorShape: {
1051
+ data: {
1052
+ zodError: typeToFlattenedError<any, string> | null;
1053
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
1054
+ httpStatus: number;
1055
+ path?: string;
1056
+ stack?: string;
1057
+ };
1058
+ message: string;
1059
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
1060
+ };
1061
+ transformer: typeof superjson;
1062
+ }>;
1063
+ _meta: object;
1064
+ _ctx_out: {
1065
+ type: undefined;
1066
+ appId: string;
1067
+ versionId: string;
1068
+ dbUrl: string | null | undefined;
1069
+ appName: string;
1070
+ appSubdomain: string;
1071
+ userId: string;
1072
+ userIdActual: string | null | undefined;
1073
+ isTesting: boolean;
1074
+ rpcMethod: string;
1075
+ requestId: string;
1076
+ channelId: string | null | undefined;
1077
+ } | {
1078
+ type: "BOXMAN_REQUEST";
1079
+ appId: string | null | undefined;
1080
+ rpcMethod: string | null | undefined;
1081
+ requestId: string | null | undefined;
1082
+ channelId: string | null | undefined;
1083
+ boxId: string;
1084
+ platformUserId: string | null | undefined;
1085
+ isDevelopment: boolean | null;
1086
+ agent: string | null | undefined;
1087
+ sessionId: string | null | undefined;
1088
+ };
1089
+ _input_in: {
1090
+ appId?: string | undefined;
1091
+ } | undefined;
1092
+ _input_out: {
1093
+ appId?: string | undefined;
1094
+ } | undefined;
1095
+ _output_in: typeof _trpc_server.unsetMarker;
1096
+ _output_out: typeof _trpc_server.unsetMarker;
1097
+ }, {
1098
+ purchaseLink: string;
1099
+ id: string;
1100
+ name: string;
1101
+ kind: $Enums.ProductKind;
1102
+ description: string;
1103
+ price: number;
1104
+ }[]>>;
1105
+ };
1106
+ listUserPurchases: {
1107
+ mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
1108
+ _config: _trpc_server.RootConfig<{
1109
+ ctx: {
1110
+ appId: string;
1111
+ versionId: string;
1112
+ appName: string;
1113
+ appSubdomain: string;
1114
+ userId: string;
1115
+ isTesting: boolean;
1116
+ rpcMethod: string;
1117
+ requestId: string;
1118
+ type?: undefined;
1119
+ dbUrl?: string | null | undefined;
1120
+ userIdActual?: string | null | undefined;
1121
+ channelId?: string | null | undefined;
1122
+ } | {
1123
+ type: "BOXMAN_REQUEST";
1124
+ boxId: string;
1125
+ isDevelopment: boolean | null;
1126
+ appId?: string | null | undefined;
1127
+ rpcMethod?: string | null | undefined;
1128
+ requestId?: string | null | undefined;
1129
+ channelId?: string | null | undefined;
1130
+ platformUserId?: string | null | undefined;
1131
+ agent?: string | null | undefined;
1132
+ sessionId?: string | null | undefined;
1133
+ };
1134
+ meta: object;
1135
+ errorShape: {
1136
+ data: {
1137
+ zodError: typeToFlattenedError<any, string> | null;
1138
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
1139
+ httpStatus: number;
1140
+ path?: string;
1141
+ stack?: string;
1142
+ };
1143
+ message: string;
1144
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
1145
+ };
1146
+ transformer: typeof superjson;
1147
+ }>;
1148
+ _meta: object;
1149
+ _ctx_out: {
1150
+ type: undefined;
1151
+ appId: string;
1152
+ versionId: string;
1153
+ dbUrl: string | null | undefined;
1154
+ appName: string;
1155
+ appSubdomain: string;
1156
+ userId: string;
1157
+ userIdActual: string | null | undefined;
1158
+ isTesting: boolean;
1159
+ rpcMethod: string;
1160
+ requestId: string;
1161
+ channelId: string | null | undefined;
1162
+ } | {
1163
+ type: "BOXMAN_REQUEST";
1164
+ appId: string | null | undefined;
1165
+ rpcMethod: string | null | undefined;
1166
+ requestId: string | null | undefined;
1167
+ channelId: string | null | undefined;
1168
+ boxId: string;
1169
+ platformUserId: string | null | undefined;
1170
+ isDevelopment: boolean | null;
1171
+ agent: string | null | undefined;
1172
+ sessionId: string | null | undefined;
1173
+ };
1174
+ _input_in: {
1175
+ appId?: string | undefined;
1176
+ userId?: string | undefined;
1177
+ } | undefined;
1178
+ _input_out: {
1179
+ appId?: string | undefined;
1180
+ userId?: string | undefined;
1181
+ } | undefined;
1182
+ _output_in: typeof _trpc_server.unsetMarker;
1183
+ _output_out: typeof _trpc_server.unsetMarker;
1184
+ }, {
1185
+ id: string;
1186
+ name: string;
1187
+ kind: $Enums.ProductKind;
1188
+ description: string;
1189
+ price: number;
1190
+ }[]>>;
1191
+ };
1192
+ discontinueProduct: {
1193
+ mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
1194
+ _config: _trpc_server.RootConfig<{
1195
+ ctx: {
1196
+ appId: string;
1197
+ versionId: string;
1198
+ appName: string;
1199
+ appSubdomain: string;
1200
+ userId: string;
1201
+ isTesting: boolean;
1202
+ rpcMethod: string;
1203
+ requestId: string;
1204
+ type?: undefined;
1205
+ dbUrl?: string | null | undefined;
1206
+ userIdActual?: string | null | undefined;
1207
+ channelId?: string | null | undefined;
1208
+ } | {
1209
+ type: "BOXMAN_REQUEST";
1210
+ boxId: string;
1211
+ isDevelopment: boolean | null;
1212
+ appId?: string | null | undefined;
1213
+ rpcMethod?: string | null | undefined;
1214
+ requestId?: string | null | undefined;
1215
+ channelId?: string | null | undefined;
1216
+ platformUserId?: string | null | undefined;
1217
+ agent?: string | null | undefined;
1218
+ sessionId?: string | null | undefined;
1219
+ };
1220
+ meta: object;
1221
+ errorShape: {
1222
+ data: {
1223
+ zodError: typeToFlattenedError<any, string> | null;
1224
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
1225
+ httpStatus: number;
1226
+ path?: string;
1227
+ stack?: string;
1228
+ };
1229
+ message: string;
1230
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
1231
+ };
1232
+ transformer: typeof superjson;
1233
+ }>;
1234
+ _meta: object;
1235
+ _ctx_out: {
1236
+ type: undefined;
1237
+ appId: string;
1238
+ versionId: string;
1239
+ dbUrl: string | null | undefined;
1240
+ appName: string;
1241
+ appSubdomain: string;
1242
+ userId: string;
1243
+ userIdActual: string | null | undefined;
1244
+ isTesting: boolean;
1245
+ rpcMethod: string;
1246
+ requestId: string;
1247
+ channelId: string | null | undefined;
1248
+ } | {
1249
+ type: "BOXMAN_REQUEST";
1250
+ appId: string | null | undefined;
1251
+ rpcMethod: string | null | undefined;
1252
+ requestId: string | null | undefined;
1253
+ channelId: string | null | undefined;
1254
+ boxId: string;
1255
+ platformUserId: string | null | undefined;
1256
+ isDevelopment: boolean | null;
1257
+ agent: string | null | undefined;
1258
+ sessionId: string | null | undefined;
1259
+ };
1260
+ _input_in: {
1261
+ productId: string;
1262
+ appId?: string | undefined;
1263
+ };
1264
+ _input_out: {
1265
+ productId: string;
1266
+ appId?: string | undefined;
1267
+ };
1268
+ _output_in: typeof _trpc_server.unsetMarker;
1269
+ _output_out: typeof _trpc_server.unsetMarker;
1270
+ }, void>>;
1271
+ };
1272
+ getOAuthToken: {
1273
+ mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
1274
+ _config: _trpc_server.RootConfig<{
1275
+ ctx: {
1276
+ appId: string;
1277
+ versionId: string;
1278
+ appName: string;
1279
+ appSubdomain: string;
1280
+ userId: string;
1281
+ isTesting: boolean;
1282
+ rpcMethod: string;
1283
+ requestId: string;
1284
+ type?: undefined;
1285
+ dbUrl?: string | null | undefined;
1286
+ userIdActual?: string | null | undefined;
1287
+ channelId?: string | null | undefined;
1288
+ } | {
1289
+ type: "BOXMAN_REQUEST";
1290
+ boxId: string;
1291
+ isDevelopment: boolean | null;
1292
+ appId?: string | null | undefined;
1293
+ rpcMethod?: string | null | undefined;
1294
+ requestId?: string | null | undefined;
1295
+ channelId?: string | null | undefined;
1296
+ platformUserId?: string | null | undefined;
1297
+ agent?: string | null | undefined;
1298
+ sessionId?: string | null | undefined;
1299
+ };
1300
+ meta: object;
1301
+ errorShape: {
1302
+ data: {
1303
+ zodError: typeToFlattenedError<any, string> | null;
1304
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
1305
+ httpStatus: number;
1306
+ path?: string;
1307
+ stack?: string;
1308
+ };
1309
+ message: string;
1310
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
1311
+ };
1312
+ transformer: typeof superjson;
1313
+ }>;
1314
+ _meta: object;
1315
+ _ctx_out: {
1316
+ type: undefined;
1317
+ appId: string;
1318
+ versionId: string;
1319
+ dbUrl: string | null | undefined;
1320
+ appName: string;
1321
+ appSubdomain: string;
1322
+ userId: string;
1323
+ userIdActual: string | null | undefined;
1324
+ isTesting: boolean;
1325
+ rpcMethod: string;
1326
+ requestId: string;
1327
+ channelId: string | null | undefined;
1328
+ } | {
1329
+ type: "BOXMAN_REQUEST";
1330
+ appId: string | null | undefined;
1331
+ rpcMethod: string | null | undefined;
1332
+ requestId: string | null | undefined;
1333
+ channelId: string | null | undefined;
1334
+ boxId: string;
1335
+ platformUserId: string | null | undefined;
1336
+ isDevelopment: boolean | null;
1337
+ agent: string | null | undefined;
1338
+ sessionId: string | null | undefined;
1339
+ };
1340
+ _input_in: {
1341
+ connectionId: string;
1342
+ appId?: string | undefined;
1343
+ };
1344
+ _input_out: {
1345
+ connectionId: string;
1346
+ appId?: string | undefined;
1347
+ };
1348
+ _output_in: typeof _trpc_server.unsetMarker;
1349
+ _output_out: typeof _trpc_server.unsetMarker;
1350
+ }, {
1351
+ connectionId: string;
1352
+ userId: string | null;
1353
+ accessToken: string | null;
1354
+ expiresAt: Date | null;
1355
+ scope: string[];
1356
+ }>>;
1357
+ };
1358
+ getOAuthConnectionForCurrentUser: {
1359
+ mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
1360
+ _config: _trpc_server.RootConfig<{
1361
+ ctx: {
1362
+ appId: string;
1363
+ versionId: string;
1364
+ appName: string;
1365
+ appSubdomain: string;
1366
+ userId: string;
1367
+ isTesting: boolean;
1368
+ rpcMethod: string;
1369
+ requestId: string;
1370
+ type?: undefined;
1371
+ dbUrl?: string | null | undefined;
1372
+ userIdActual?: string | null | undefined;
1373
+ channelId?: string | null | undefined;
1374
+ } | {
1375
+ type: "BOXMAN_REQUEST";
1376
+ boxId: string;
1377
+ isDevelopment: boolean | null;
1378
+ appId?: string | null | undefined;
1379
+ rpcMethod?: string | null | undefined;
1380
+ requestId?: string | null | undefined;
1381
+ channelId?: string | null | undefined;
1382
+ platformUserId?: string | null | undefined;
1383
+ agent?: string | null | undefined;
1384
+ sessionId?: string | null | undefined;
1385
+ };
1386
+ meta: object;
1387
+ errorShape: {
1388
+ data: {
1389
+ zodError: typeToFlattenedError<any, string> | null;
1390
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
1391
+ httpStatus: number;
1392
+ path?: string;
1393
+ stack?: string;
1394
+ };
1395
+ message: string;
1396
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
1397
+ };
1398
+ transformer: typeof superjson;
1399
+ }>;
1400
+ _meta: object;
1401
+ _ctx_out: {
1402
+ type: undefined;
1403
+ appId: string;
1404
+ versionId: string;
1405
+ dbUrl: string | null | undefined;
1406
+ appName: string;
1407
+ appSubdomain: string;
1408
+ userId: string;
1409
+ userIdActual: string | null | undefined;
1410
+ isTesting: boolean;
1411
+ rpcMethod: string;
1412
+ requestId: string;
1413
+ channelId: string | null | undefined;
1414
+ } | {
1415
+ type: "BOXMAN_REQUEST";
1416
+ appId: string | null | undefined;
1417
+ rpcMethod: string | null | undefined;
1418
+ requestId: string | null | undefined;
1419
+ channelId: string | null | undefined;
1420
+ boxId: string;
1421
+ platformUserId: string | null | undefined;
1422
+ isDevelopment: boolean | null;
1423
+ agent: string | null | undefined;
1424
+ sessionId: string | null | undefined;
1425
+ };
1426
+ _input_in: {
1427
+ scope: string[];
1428
+ provider: "GITHUB_USER" | "GITHUB_BOT" | "GOOGLE" | "AC1" | "SLACK" | "SLACK_BOT" | "DISCORD" | "NOTION" | "TWITTER" | "LINKEDIN" | "YAHOO" | "FIGMA";
1429
+ appId?: string | undefined;
1430
+ required?: boolean | undefined;
1431
+ };
1432
+ _input_out: {
1433
+ scope: string[];
1434
+ provider: "GITHUB_USER" | "GITHUB_BOT" | "GOOGLE" | "AC1" | "SLACK" | "SLACK_BOT" | "DISCORD" | "NOTION" | "TWITTER" | "LINKEDIN" | "YAHOO" | "FIGMA";
1435
+ appId?: string | undefined;
1436
+ required?: boolean | undefined;
1437
+ };
1438
+ _output_in: typeof _trpc_server.unsetMarker;
1439
+ _output_out: typeof _trpc_server.unsetMarker;
1440
+ }, {
1441
+ id: string;
1442
+ provider: string;
1443
+ userId: string | undefined;
1444
+ scope: string[];
1445
+ } | null>>;
1446
+ };
1447
+ isPermissionGranted: {
1448
+ mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
1449
+ _config: _trpc_server.RootConfig<{
1450
+ ctx: {
1451
+ appId: string;
1452
+ versionId: string;
1453
+ appName: string;
1454
+ appSubdomain: string;
1455
+ userId: string;
1456
+ isTesting: boolean;
1457
+ rpcMethod: string;
1458
+ requestId: string;
1459
+ type?: undefined;
1460
+ dbUrl?: string | null | undefined;
1461
+ userIdActual?: string | null | undefined;
1462
+ channelId?: string | null | undefined;
1463
+ } | {
1464
+ type: "BOXMAN_REQUEST";
1465
+ boxId: string;
1466
+ isDevelopment: boolean | null;
1467
+ appId?: string | null | undefined;
1468
+ rpcMethod?: string | null | undefined;
1469
+ requestId?: string | null | undefined;
1470
+ channelId?: string | null | undefined;
1471
+ platformUserId?: string | null | undefined;
1472
+ agent?: string | null | undefined;
1473
+ sessionId?: string | null | undefined;
1474
+ };
1475
+ meta: object;
1476
+ errorShape: {
1477
+ data: {
1478
+ zodError: typeToFlattenedError<any, string> | null;
1479
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
1480
+ httpStatus: number;
1481
+ path?: string;
1482
+ stack?: string;
1483
+ };
1484
+ message: string;
1485
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
1486
+ };
1487
+ transformer: typeof superjson;
1488
+ }>;
1489
+ _meta: object;
1490
+ _ctx_out: {
1491
+ type: undefined;
1492
+ appId: string;
1493
+ versionId: string;
1494
+ dbUrl: string | null | undefined;
1495
+ appName: string;
1496
+ appSubdomain: string;
1497
+ userId: string;
1498
+ userIdActual: string | null | undefined;
1499
+ isTesting: boolean;
1500
+ rpcMethod: string;
1501
+ requestId: string;
1502
+ channelId: string | null | undefined;
1503
+ } | {
1504
+ type: "BOXMAN_REQUEST";
1505
+ appId: string | null | undefined;
1506
+ rpcMethod: string | null | undefined;
1507
+ requestId: string | null | undefined;
1508
+ channelId: string | null | undefined;
1509
+ boxId: string;
1510
+ platformUserId: string | null | undefined;
1511
+ isDevelopment: boolean | null;
1512
+ agent: string | null | undefined;
1513
+ sessionId: string | null | undefined;
1514
+ };
1515
+ _input_in: {
1516
+ userId: string;
1517
+ scope: string;
1518
+ provider: string;
1519
+ appId?: string | undefined;
1520
+ };
1521
+ _input_out: {
1522
+ userId: string;
1523
+ scope: string;
1524
+ provider: string;
1525
+ appId?: string | undefined;
1526
+ };
1527
+ _output_in: typeof _trpc_server.unsetMarker;
1528
+ _output_out: typeof _trpc_server.unsetMarker;
1529
+ }, boolean>>;
1530
+ };
1531
+ getOAuthConnection: {
1532
+ mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
1533
+ _config: _trpc_server.RootConfig<{
1534
+ ctx: {
1535
+ appId: string;
1536
+ versionId: string;
1537
+ appName: string;
1538
+ appSubdomain: string;
1539
+ userId: string;
1540
+ isTesting: boolean;
1541
+ rpcMethod: string;
1542
+ requestId: string;
1543
+ type?: undefined;
1544
+ dbUrl?: string | null | undefined;
1545
+ userIdActual?: string | null | undefined;
1546
+ channelId?: string | null | undefined;
1547
+ } | {
1548
+ type: "BOXMAN_REQUEST";
1549
+ boxId: string;
1550
+ isDevelopment: boolean | null;
1551
+ appId?: string | null | undefined;
1552
+ rpcMethod?: string | null | undefined;
1553
+ requestId?: string | null | undefined;
1554
+ channelId?: string | null | undefined;
1555
+ platformUserId?: string | null | undefined;
1556
+ agent?: string | null | undefined;
1557
+ sessionId?: string | null | undefined;
1558
+ };
1559
+ meta: object;
1560
+ errorShape: {
1561
+ data: {
1562
+ zodError: typeToFlattenedError<any, string> | null;
1563
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
1564
+ httpStatus: number;
1565
+ path?: string;
1566
+ stack?: string;
1567
+ };
1568
+ message: string;
1569
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
1570
+ };
1571
+ transformer: typeof superjson;
1572
+ }>;
1573
+ _meta: object;
1574
+ _ctx_out: {
1575
+ type: undefined;
1576
+ appId: string;
1577
+ versionId: string;
1578
+ dbUrl: string | null | undefined;
1579
+ appName: string;
1580
+ appSubdomain: string;
1581
+ userId: string;
1582
+ userIdActual: string | null | undefined;
1583
+ isTesting: boolean;
1584
+ rpcMethod: string;
1585
+ requestId: string;
1586
+ channelId: string | null | undefined;
1587
+ } | {
1588
+ type: "BOXMAN_REQUEST";
1589
+ appId: string | null | undefined;
1590
+ rpcMethod: string | null | undefined;
1591
+ requestId: string | null | undefined;
1592
+ channelId: string | null | undefined;
1593
+ boxId: string;
1594
+ platformUserId: string | null | undefined;
1595
+ isDevelopment: boolean | null;
1596
+ agent: string | null | undefined;
1597
+ sessionId: string | null | undefined;
1598
+ };
1599
+ _input_in: {
1600
+ connectionId: string;
1601
+ appId?: string | undefined;
1602
+ };
1603
+ _input_out: {
1604
+ connectionId: string;
1605
+ appId?: string | undefined;
1606
+ };
1607
+ _output_in: typeof _trpc_server.unsetMarker;
1608
+ _output_out: typeof _trpc_server.unsetMarker;
1609
+ }, {
1610
+ id: string;
1611
+ provider: string;
1612
+ userId: string | undefined;
1613
+ scope: string[];
1614
+ }>>;
1615
+ };
1616
+ queryOAuthConnections: {
1617
+ mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
1618
+ _config: _trpc_server.RootConfig<{
1619
+ ctx: {
1620
+ appId: string;
1621
+ versionId: string;
1622
+ appName: string;
1623
+ appSubdomain: string;
1624
+ userId: string;
1625
+ isTesting: boolean;
1626
+ rpcMethod: string;
1627
+ requestId: string;
1628
+ type?: undefined;
1629
+ dbUrl?: string | null | undefined;
1630
+ userIdActual?: string | null | undefined;
1631
+ channelId?: string | null | undefined;
1632
+ } | {
1633
+ type: "BOXMAN_REQUEST";
1634
+ boxId: string;
1635
+ isDevelopment: boolean | null;
1636
+ appId?: string | null | undefined;
1637
+ rpcMethod?: string | null | undefined;
1638
+ requestId?: string | null | undefined;
1639
+ channelId?: string | null | undefined;
1640
+ platformUserId?: string | null | undefined;
1641
+ agent?: string | null | undefined;
1642
+ sessionId?: string | null | undefined;
1643
+ };
1644
+ meta: object;
1645
+ errorShape: {
1646
+ data: {
1647
+ zodError: typeToFlattenedError<any, string> | null;
1648
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
1649
+ httpStatus: number;
1650
+ path?: string;
1651
+ stack?: string;
1652
+ };
1653
+ message: string;
1654
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
1655
+ };
1656
+ transformer: typeof superjson;
1657
+ }>;
1658
+ _meta: object;
1659
+ _ctx_out: {
1660
+ type: undefined;
1661
+ appId: string;
1662
+ versionId: string;
1663
+ dbUrl: string | null | undefined;
1664
+ appName: string;
1665
+ appSubdomain: string;
1666
+ userId: string;
1667
+ userIdActual: string | null | undefined;
1668
+ isTesting: boolean;
1669
+ rpcMethod: string;
1670
+ requestId: string;
1671
+ channelId: string | null | undefined;
1672
+ } | {
1673
+ type: "BOXMAN_REQUEST";
1674
+ appId: string | null | undefined;
1675
+ rpcMethod: string | null | undefined;
1676
+ requestId: string | null | undefined;
1677
+ channelId: string | null | undefined;
1678
+ boxId: string;
1679
+ platformUserId: string | null | undefined;
1680
+ isDevelopment: boolean | null;
1681
+ agent: string | null | undefined;
1682
+ sessionId: string | null | undefined;
1683
+ };
1684
+ _input_in: {
1685
+ appId?: string | undefined;
1686
+ userId?: string | undefined;
1687
+ scope?: string[] | undefined;
1688
+ provider?: "GITHUB_USER" | "GITHUB_BOT" | "GOOGLE" | "AC1" | "SLACK" | "SLACK_BOT" | "DISCORD" | "NOTION" | "TWITTER" | "LINKEDIN" | "YAHOO" | "FIGMA" | undefined;
1689
+ };
1690
+ _input_out: {
1691
+ appId?: string | undefined;
1692
+ userId?: string | undefined;
1693
+ scope?: string[] | undefined;
1694
+ provider?: "GITHUB_USER" | "GITHUB_BOT" | "GOOGLE" | "AC1" | "SLACK" | "SLACK_BOT" | "DISCORD" | "NOTION" | "TWITTER" | "LINKEDIN" | "YAHOO" | "FIGMA" | undefined;
1695
+ };
1696
+ _output_in: typeof _trpc_server.unsetMarker;
1697
+ _output_out: typeof _trpc_server.unsetMarker;
1698
+ }, {
1699
+ id: string;
1700
+ provider: string;
1701
+ userId: string | undefined;
1702
+ scope: string[];
1703
+ }[]>>;
1704
+ };
1705
+ deleteOAuthConnection: {
1706
+ mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
1707
+ _config: _trpc_server.RootConfig<{
1708
+ ctx: {
1709
+ appId: string;
1710
+ versionId: string;
1711
+ appName: string;
1712
+ appSubdomain: string;
1713
+ userId: string;
1714
+ isTesting: boolean;
1715
+ rpcMethod: string;
1716
+ requestId: string;
1717
+ type?: undefined;
1718
+ dbUrl?: string | null | undefined;
1719
+ userIdActual?: string | null | undefined;
1720
+ channelId?: string | null | undefined;
1721
+ } | {
1722
+ type: "BOXMAN_REQUEST";
1723
+ boxId: string;
1724
+ isDevelopment: boolean | null;
1725
+ appId?: string | null | undefined;
1726
+ rpcMethod?: string | null | undefined;
1727
+ requestId?: string | null | undefined;
1728
+ channelId?: string | null | undefined;
1729
+ platformUserId?: string | null | undefined;
1730
+ agent?: string | null | undefined;
1731
+ sessionId?: string | null | undefined;
1732
+ };
1733
+ meta: object;
1734
+ errorShape: {
1735
+ data: {
1736
+ zodError: typeToFlattenedError<any, string> | null;
1737
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
1738
+ httpStatus: number;
1739
+ path?: string;
1740
+ stack?: string;
1741
+ };
1742
+ message: string;
1743
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
1744
+ };
1745
+ transformer: typeof superjson;
1746
+ }>;
1747
+ _meta: object;
1748
+ _ctx_out: {
1749
+ type: undefined;
1750
+ appId: string;
1751
+ versionId: string;
1752
+ dbUrl: string | null | undefined;
1753
+ appName: string;
1754
+ appSubdomain: string;
1755
+ userId: string;
1756
+ userIdActual: string | null | undefined;
1757
+ isTesting: boolean;
1758
+ rpcMethod: string;
1759
+ requestId: string;
1760
+ channelId: string | null | undefined;
1761
+ } | {
1762
+ type: "BOXMAN_REQUEST";
1763
+ appId: string | null | undefined;
1764
+ rpcMethod: string | null | undefined;
1765
+ requestId: string | null | undefined;
1766
+ channelId: string | null | undefined;
1767
+ boxId: string;
1768
+ platformUserId: string | null | undefined;
1769
+ isDevelopment: boolean | null;
1770
+ agent: string | null | undefined;
1771
+ sessionId: string | null | undefined;
1772
+ };
1773
+ _input_in: {
1774
+ connectionId: string;
1775
+ appId?: string | undefined;
1776
+ };
1777
+ _input_out: {
1778
+ connectionId: string;
1779
+ appId?: string | undefined;
1780
+ };
1781
+ _output_in: typeof _trpc_server.unsetMarker;
1782
+ _output_out: typeof _trpc_server.unsetMarker;
1783
+ }, {
1784
+ readonly ok: true;
1785
+ }>>;
1786
+ };
1787
+ searchTheWeb: {
1788
+ mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
1789
+ _config: _trpc_server.RootConfig<{
1790
+ ctx: {
1791
+ appId: string;
1792
+ versionId: string;
1793
+ appName: string;
1794
+ appSubdomain: string;
1795
+ userId: string;
1796
+ isTesting: boolean;
1797
+ rpcMethod: string;
1798
+ requestId: string;
1799
+ type?: undefined;
1800
+ dbUrl?: string | null | undefined;
1801
+ userIdActual?: string | null | undefined;
1802
+ channelId?: string | null | undefined;
1803
+ } | {
1804
+ type: "BOXMAN_REQUEST";
1805
+ boxId: string;
1806
+ isDevelopment: boolean | null;
1807
+ appId?: string | null | undefined;
1808
+ rpcMethod?: string | null | undefined;
1809
+ requestId?: string | null | undefined;
1810
+ channelId?: string | null | undefined;
1811
+ platformUserId?: string | null | undefined;
1812
+ agent?: string | null | undefined;
1813
+ sessionId?: string | null | undefined;
1814
+ };
1815
+ meta: object;
1816
+ errorShape: {
1817
+ data: {
1818
+ zodError: typeToFlattenedError<any, string> | null;
1819
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
1820
+ httpStatus: number;
1821
+ path?: string;
1822
+ stack?: string;
1823
+ };
1824
+ message: string;
1825
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
1826
+ };
1827
+ transformer: typeof superjson;
1828
+ }>;
1829
+ _meta: object;
1830
+ _ctx_out: {
1831
+ type: undefined;
1832
+ appId: string;
1833
+ versionId: string;
1834
+ dbUrl: string | null | undefined;
1835
+ appName: string;
1836
+ appSubdomain: string;
1837
+ userId: string;
1838
+ userIdActual: string | null | undefined;
1839
+ isTesting: boolean;
1840
+ rpcMethod: string;
1841
+ requestId: string;
1842
+ channelId: string | null | undefined;
1843
+ } | {
1844
+ type: "BOXMAN_REQUEST";
1845
+ appId: string | null | undefined;
1846
+ rpcMethod: string | null | undefined;
1847
+ requestId: string | null | undefined;
1848
+ channelId: string | null | undefined;
1849
+ boxId: string;
1850
+ platformUserId: string | null | undefined;
1851
+ isDevelopment: boolean | null;
1852
+ agent: string | null | undefined;
1853
+ sessionId: string | null | undefined;
1854
+ };
1855
+ _input_in: {
1856
+ query: string;
1857
+ allowedDomains?: string[] | undefined;
1858
+ blockedDomains?: string[] | undefined;
1859
+ };
1860
+ _input_out: {
1861
+ query: string;
1862
+ allowedDomains?: string[] | undefined;
1863
+ blockedDomains?: string[] | undefined;
1864
+ };
1865
+ _output_in: typeof _trpc_server.unsetMarker;
1866
+ _output_out: typeof _trpc_server.unsetMarker;
1867
+ }, {
1868
+ response: string;
1869
+ }>>;
1870
+ };
1871
+ textToSpeech: {
1872
+ mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
1873
+ _config: _trpc_server.RootConfig<{
1874
+ ctx: {
1875
+ appId: string;
1876
+ versionId: string;
1877
+ appName: string;
1878
+ appSubdomain: string;
1879
+ userId: string;
1880
+ isTesting: boolean;
1881
+ rpcMethod: string;
1882
+ requestId: string;
1883
+ type?: undefined;
1884
+ dbUrl?: string | null | undefined;
1885
+ userIdActual?: string | null | undefined;
1886
+ channelId?: string | null | undefined;
1887
+ } | {
1888
+ type: "BOXMAN_REQUEST";
1889
+ boxId: string;
1890
+ isDevelopment: boolean | null;
1891
+ appId?: string | null | undefined;
1892
+ rpcMethod?: string | null | undefined;
1893
+ requestId?: string | null | undefined;
1894
+ channelId?: string | null | undefined;
1895
+ platformUserId?: string | null | undefined;
1896
+ agent?: string | null | undefined;
1897
+ sessionId?: string | null | undefined;
1898
+ };
1899
+ meta: object;
1900
+ errorShape: {
1901
+ data: {
1902
+ zodError: typeToFlattenedError<any, string> | null;
1903
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
1904
+ httpStatus: number;
1905
+ path?: string;
1906
+ stack?: string;
1907
+ };
1908
+ message: string;
1909
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
1910
+ };
1911
+ transformer: typeof superjson;
1912
+ }>;
1913
+ _meta: object;
1914
+ _ctx_out: {
1915
+ type: undefined;
1916
+ appId: string;
1917
+ versionId: string;
1918
+ dbUrl: string | null | undefined;
1919
+ appName: string;
1920
+ appSubdomain: string;
1921
+ userId: string;
1922
+ userIdActual: string | null | undefined;
1923
+ isTesting: boolean;
1924
+ rpcMethod: string;
1925
+ requestId: string;
1926
+ channelId: string | null | undefined;
1927
+ } | {
1928
+ type: "BOXMAN_REQUEST";
1929
+ appId: string | null | undefined;
1930
+ rpcMethod: string | null | undefined;
1931
+ requestId: string | null | undefined;
1932
+ channelId: string | null | undefined;
1933
+ boxId: string;
1934
+ platformUserId: string | null | undefined;
1935
+ isDevelopment: boolean | null;
1936
+ agent: string | null | undefined;
1937
+ sessionId: string | null | undefined;
1938
+ };
1939
+ _input_in: {
1940
+ text: string;
1941
+ voice?: "Will" | "Brian" | "George" | "Jessica" | "Liam" | "Alice" | "Sarah" | "Charlotte" | "Matilda" | "Eric" | "Alloy" | "Ash" | "Ballad" | "Coral" | "Echo" | "Fable" | "Nova" | "Onyx" | "Sage" | "Shimmer" | undefined;
1942
+ };
1943
+ _input_out: {
1944
+ text: string;
1945
+ voice?: "Will" | "Brian" | "George" | "Jessica" | "Liam" | "Alice" | "Sarah" | "Charlotte" | "Matilda" | "Eric" | "Alloy" | "Ash" | "Ballad" | "Coral" | "Echo" | "Fable" | "Nova" | "Onyx" | "Sage" | "Shimmer" | undefined;
1946
+ };
1947
+ _output_in: typeof _trpc_server.unsetMarker;
1948
+ _output_out: typeof _trpc_server.unsetMarker;
1949
+ }, {
1950
+ url: string;
1951
+ duration: number | undefined;
1952
+ } | null>>;
1953
+ };
1954
+ textToImage: {
1955
+ mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
1956
+ _config: _trpc_server.RootConfig<{
1957
+ ctx: {
1958
+ appId: string;
1959
+ versionId: string;
1960
+ appName: string;
1961
+ appSubdomain: string;
1962
+ userId: string;
1963
+ isTesting: boolean;
1964
+ rpcMethod: string;
1965
+ requestId: string;
1966
+ type?: undefined;
1967
+ dbUrl?: string | null | undefined;
1968
+ userIdActual?: string | null | undefined;
1969
+ channelId?: string | null | undefined;
1970
+ } | {
1971
+ type: "BOXMAN_REQUEST";
1972
+ boxId: string;
1973
+ isDevelopment: boolean | null;
1974
+ appId?: string | null | undefined;
1975
+ rpcMethod?: string | null | undefined;
1976
+ requestId?: string | null | undefined;
1977
+ channelId?: string | null | undefined;
1978
+ platformUserId?: string | null | undefined;
1979
+ agent?: string | null | undefined;
1980
+ sessionId?: string | null | undefined;
1981
+ };
1982
+ meta: object;
1983
+ errorShape: {
1984
+ data: {
1985
+ zodError: typeToFlattenedError<any, string> | null;
1986
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
1987
+ httpStatus: number;
1988
+ path?: string;
1989
+ stack?: string;
1990
+ };
1991
+ message: string;
1992
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
1993
+ };
1994
+ transformer: typeof superjson;
1995
+ }>;
1996
+ _meta: object;
1997
+ _ctx_out: {
1998
+ type: undefined;
1999
+ appId: string;
2000
+ versionId: string;
2001
+ dbUrl: string | null | undefined;
2002
+ appName: string;
2003
+ appSubdomain: string;
2004
+ userId: string;
2005
+ userIdActual: string | null | undefined;
2006
+ isTesting: boolean;
2007
+ rpcMethod: string;
2008
+ requestId: string;
2009
+ channelId: string | null | undefined;
2010
+ } | {
2011
+ type: "BOXMAN_REQUEST";
2012
+ appId: string | null | undefined;
2013
+ rpcMethod: string | null | undefined;
2014
+ requestId: string | null | undefined;
2015
+ channelId: string | null | undefined;
2016
+ boxId: string;
2017
+ platformUserId: string | null | undefined;
2018
+ isDevelopment: boolean | null;
2019
+ agent: string | null | undefined;
2020
+ sessionId: string | null | undefined;
2021
+ };
2022
+ _input_in: {
2023
+ text: string;
2024
+ size?: "square_hd" | "square" | "portrait_4_3" | "portrait_16_9" | "landscape_4_3" | "landscape_16_9" | undefined;
2025
+ };
2026
+ _input_out: {
2027
+ text: string;
2028
+ size?: "square_hd" | "square" | "portrait_4_3" | "portrait_16_9" | "landscape_4_3" | "landscape_16_9" | undefined;
2029
+ };
2030
+ _output_in: typeof _trpc_server.unsetMarker;
2031
+ _output_out: typeof _trpc_server.unsetMarker;
2032
+ }, string>>;
2033
+ };
2034
+ health: {
2035
+ query: _trpc_client.Resolver<_trpc_server.BuildProcedure<"query", {
2036
+ _config: _trpc_server.RootConfig<{
2037
+ ctx: {
2038
+ appId: string;
2039
+ versionId: string;
2040
+ appName: string;
2041
+ appSubdomain: string;
2042
+ userId: string;
2043
+ isTesting: boolean;
2044
+ rpcMethod: string;
2045
+ requestId: string;
2046
+ type?: undefined;
2047
+ dbUrl?: string | null | undefined;
2048
+ userIdActual?: string | null | undefined;
2049
+ channelId?: string | null | undefined;
2050
+ } | {
2051
+ type: "BOXMAN_REQUEST";
2052
+ boxId: string;
2053
+ isDevelopment: boolean | null;
2054
+ appId?: string | null | undefined;
2055
+ rpcMethod?: string | null | undefined;
2056
+ requestId?: string | null | undefined;
2057
+ channelId?: string | null | undefined;
2058
+ platformUserId?: string | null | undefined;
2059
+ agent?: string | null | undefined;
2060
+ sessionId?: string | null | undefined;
2061
+ };
2062
+ meta: object;
2063
+ errorShape: {
2064
+ data: {
2065
+ zodError: typeToFlattenedError<any, string> | null;
2066
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
2067
+ httpStatus: number;
2068
+ path?: string;
2069
+ stack?: string;
2070
+ };
2071
+ message: string;
2072
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
2073
+ };
2074
+ transformer: typeof superjson;
2075
+ }>;
2076
+ _meta: object;
2077
+ _ctx_out: {
2078
+ type: undefined;
2079
+ appId: string;
2080
+ versionId: string;
2081
+ dbUrl: string | null | undefined;
2082
+ appName: string;
2083
+ appSubdomain: string;
2084
+ userId: string;
2085
+ userIdActual: string | null | undefined;
2086
+ isTesting: boolean;
2087
+ rpcMethod: string;
2088
+ requestId: string;
2089
+ channelId: string | null | undefined;
2090
+ } | {
2091
+ type: "BOXMAN_REQUEST";
2092
+ appId: string | null | undefined;
2093
+ rpcMethod: string | null | undefined;
2094
+ requestId: string | null | undefined;
2095
+ channelId: string | null | undefined;
2096
+ boxId: string;
2097
+ platformUserId: string | null | undefined;
2098
+ isDevelopment: boolean | null;
2099
+ agent: string | null | undefined;
2100
+ sessionId: string | null | undefined;
2101
+ };
2102
+ _input_in: typeof _trpc_server.unsetMarker;
2103
+ _input_out: typeof _trpc_server.unsetMarker;
2104
+ _output_in: typeof _trpc_server.unsetMarker;
2105
+ _output_out: typeof _trpc_server.unsetMarker;
2106
+ }, {
2107
+ status: string;
2108
+ }>>;
2109
+ };
2110
+ generateCrossAppToken: {
2111
+ mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
2112
+ _config: _trpc_server.RootConfig<{
2113
+ ctx: {
2114
+ appId: string;
2115
+ versionId: string;
2116
+ appName: string;
2117
+ appSubdomain: string;
2118
+ userId: string;
2119
+ isTesting: boolean;
2120
+ rpcMethod: string;
2121
+ requestId: string;
2122
+ type?: undefined;
2123
+ dbUrl?: string | null | undefined;
2124
+ userIdActual?: string | null | undefined;
2125
+ channelId?: string | null | undefined;
2126
+ } | {
2127
+ type: "BOXMAN_REQUEST";
2128
+ boxId: string;
2129
+ isDevelopment: boolean | null;
2130
+ appId?: string | null | undefined;
2131
+ rpcMethod?: string | null | undefined;
2132
+ requestId?: string | null | undefined;
2133
+ channelId?: string | null | undefined;
2134
+ platformUserId?: string | null | undefined;
2135
+ agent?: string | null | undefined;
2136
+ sessionId?: string | null | undefined;
2137
+ };
2138
+ meta: object;
2139
+ errorShape: {
2140
+ data: {
2141
+ zodError: typeToFlattenedError<any, string> | null;
2142
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
2143
+ httpStatus: number;
2144
+ path?: string;
2145
+ stack?: string;
2146
+ };
2147
+ message: string;
2148
+ code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
2149
+ };
2150
+ transformer: typeof superjson;
2151
+ }>;
2152
+ _meta: object;
2153
+ _ctx_out: {
2154
+ type: undefined;
2155
+ appId: string;
2156
+ versionId: string;
2157
+ dbUrl: string | null | undefined;
2158
+ appName: string;
2159
+ appSubdomain: string;
2160
+ userId: string;
2161
+ userIdActual: string | null | undefined;
2162
+ isTesting: boolean;
2163
+ rpcMethod: string;
2164
+ requestId: string;
2165
+ channelId: string | null | undefined;
2166
+ } | {
2167
+ type: "BOXMAN_REQUEST";
2168
+ appId: string | null | undefined;
2169
+ rpcMethod: string | null | undefined;
2170
+ requestId: string | null | undefined;
2171
+ channelId: string | null | undefined;
2172
+ boxId: string;
2173
+ platformUserId: string | null | undefined;
2174
+ isDevelopment: boolean | null;
2175
+ agent: string | null | undefined;
2176
+ sessionId: string | null | undefined;
2177
+ };
2178
+ _input_in: {
2179
+ appId: string;
2180
+ };
2181
+ _input_out: {
2182
+ appId: string;
2183
+ };
2184
+ _output_in: typeof _trpc_server.unsetMarker;
2185
+ _output_out: typeof _trpc_server.unsetMarker;
2186
+ }, string>>;
2187
+ };
2188
+ };
45
2189
  export declare function initializeServerEnvironment({ baseUrl, realtimeDomain, guestServicesUrl, }: {
46
2190
  baseUrl: string;
47
2191
  realtimeDomain: string;