@adaptive-ai/sdk 0.1.38 → 0.1.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/index.d.ts +3 -0
- package/dist/client/index.js +8 -8
- package/dist/server/index.d.ts +6 -385
- package/dist/server/index.js +3 -3
- package/package.json +1 -1
package/dist/server/index.d.ts
CHANGED
|
@@ -14,11 +14,6 @@ declare const UserTier: {
|
|
|
14
14
|
readonly TWO: "TWO";
|
|
15
15
|
};
|
|
16
16
|
export type UserTier = (typeof UserTier)[keyof typeof UserTier];
|
|
17
|
-
declare const ProductKind: {
|
|
18
|
-
readonly SUBSCRIPTION: "SUBSCRIPTION";
|
|
19
|
-
readonly IN_APP_PURCHASE: "IN_APP_PURCHASE";
|
|
20
|
-
};
|
|
21
|
-
export type ProductKind = (typeof ProductKind)[keyof typeof ProductKind];
|
|
22
17
|
export type Primitive = string | number | symbol | bigint | boolean | null | undefined;
|
|
23
18
|
export type Scalars = Primitive | Primitive[];
|
|
24
19
|
declare namespace util {
|
|
@@ -2221,6 +2216,8 @@ declare let client: {
|
|
|
2221
2216
|
promotional: number;
|
|
2222
2217
|
nextDailyRefresh: Date;
|
|
2223
2218
|
nextMonthlyRefresh: Date;
|
|
2219
|
+
paygSpendLimitCents: number | null;
|
|
2220
|
+
paygSpendUsedCents: number;
|
|
2224
2221
|
} | null;
|
|
2225
2222
|
}>>;
|
|
2226
2223
|
};
|
|
@@ -2393,403 +2390,27 @@ declare let client: {
|
|
|
2393
2390
|
pushToken: string | null | undefined;
|
|
2394
2391
|
};
|
|
2395
2392
|
_input_in: {
|
|
2396
|
-
appId: string;
|
|
2397
2393
|
email: string;
|
|
2398
|
-
subject: string;
|
|
2399
2394
|
markdown: string;
|
|
2395
|
+
appId?: string | undefined;
|
|
2396
|
+
subject?: string | undefined;
|
|
2400
2397
|
unauthenticatedLinks?: boolean | undefined;
|
|
2401
2398
|
aclLevel?: "EDITOR" | "VIEWER" | undefined;
|
|
2402
2399
|
};
|
|
2403
2400
|
_input_out: {
|
|
2404
|
-
appId: string;
|
|
2405
2401
|
email: string;
|
|
2406
|
-
subject: string;
|
|
2407
2402
|
markdown: string;
|
|
2408
2403
|
aclLevel: "EDITOR" | "VIEWER";
|
|
2409
|
-
unauthenticatedLinks?: boolean | undefined;
|
|
2410
|
-
};
|
|
2411
|
-
_output_in: typeof _trpc_server.unsetMarker;
|
|
2412
|
-
_output_out: typeof _trpc_server.unsetMarker;
|
|
2413
|
-
}, {
|
|
2414
|
-
id: string;
|
|
2415
|
-
}>>;
|
|
2416
|
-
};
|
|
2417
|
-
createProduct: {
|
|
2418
|
-
mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
|
|
2419
|
-
_config: _trpc_server.RootConfig<{
|
|
2420
|
-
ctx: {
|
|
2421
|
-
appId: string;
|
|
2422
|
-
versionId: string;
|
|
2423
|
-
appName: string;
|
|
2424
|
-
appSubdomain: string;
|
|
2425
|
-
userId: string;
|
|
2426
|
-
isTesting: boolean;
|
|
2427
|
-
rpcMethod: string;
|
|
2428
|
-
requestId: string;
|
|
2429
|
-
type?: undefined;
|
|
2430
|
-
dbUrl?: string | null | undefined;
|
|
2431
|
-
userIdActual?: string | null | undefined;
|
|
2432
|
-
channelId?: string | null | undefined;
|
|
2433
|
-
} | {
|
|
2434
|
-
type: "BOXMAN_REQUEST";
|
|
2435
|
-
boxId: string;
|
|
2436
|
-
isDevelopment: boolean | null;
|
|
2437
|
-
appId?: string | null | undefined;
|
|
2438
|
-
appFolder?: string | null | undefined;
|
|
2439
|
-
modelOverride?: "standard" | "ultra" | null | undefined;
|
|
2440
|
-
rpcMethod?: string | null | undefined;
|
|
2441
|
-
requestId?: string | null | undefined;
|
|
2442
|
-
channelId?: string | null | undefined;
|
|
2443
|
-
platformUserId?: string | null | undefined;
|
|
2444
|
-
invocationTrigger?: "event" | "webhook" | "user" | "scheduled" | "composio" | null | undefined;
|
|
2445
|
-
agent?: string | null | undefined;
|
|
2446
|
-
sessionId?: string | null | undefined;
|
|
2447
|
-
pushToken?: string | null | undefined;
|
|
2448
|
-
};
|
|
2449
|
-
meta: object;
|
|
2450
|
-
errorShape: {
|
|
2451
|
-
data: {
|
|
2452
|
-
zodError: typeToFlattenedError<any, string> | null;
|
|
2453
|
-
code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
|
|
2454
|
-
httpStatus: number;
|
|
2455
|
-
path?: string;
|
|
2456
|
-
stack?: string;
|
|
2457
|
-
};
|
|
2458
|
-
message: string;
|
|
2459
|
-
code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
2460
|
-
};
|
|
2461
|
-
transformer: typeof superjson;
|
|
2462
|
-
}>;
|
|
2463
|
-
_meta: object;
|
|
2464
|
-
_ctx_out: {
|
|
2465
|
-
type: undefined;
|
|
2466
|
-
appId: string;
|
|
2467
|
-
versionId: string;
|
|
2468
|
-
dbUrl: string | null | undefined;
|
|
2469
|
-
appName: string;
|
|
2470
|
-
appSubdomain: string;
|
|
2471
|
-
userId: string;
|
|
2472
|
-
userIdActual: string | null | undefined;
|
|
2473
|
-
isTesting: boolean;
|
|
2474
|
-
rpcMethod: string;
|
|
2475
|
-
requestId: string;
|
|
2476
|
-
channelId: string | null | undefined;
|
|
2477
|
-
} | {
|
|
2478
|
-
type: "BOXMAN_REQUEST";
|
|
2479
|
-
appId: string | null | undefined;
|
|
2480
|
-
boxId: string;
|
|
2481
|
-
appFolder: string | null | undefined;
|
|
2482
|
-
modelOverride: "standard" | "ultra" | null | undefined;
|
|
2483
|
-
rpcMethod: string | null | undefined;
|
|
2484
|
-
requestId: string | null | undefined;
|
|
2485
|
-
channelId: string | null | undefined;
|
|
2486
|
-
platformUserId: string | null | undefined;
|
|
2487
|
-
invocationTrigger: "event" | "webhook" | "user" | "scheduled" | "composio" | null | undefined;
|
|
2488
|
-
isDevelopment: boolean | null;
|
|
2489
|
-
agent: string | null | undefined;
|
|
2490
|
-
sessionId: string | null | undefined;
|
|
2491
|
-
pushToken: string | null | undefined;
|
|
2492
|
-
};
|
|
2493
|
-
_input_in: {
|
|
2494
|
-
name: string;
|
|
2495
|
-
description: string;
|
|
2496
|
-
kind: "IN_APP_PURCHASE" | "SUBSCRIPTION";
|
|
2497
|
-
price: number;
|
|
2498
|
-
appId?: string | undefined;
|
|
2499
|
-
};
|
|
2500
|
-
_input_out: {
|
|
2501
|
-
name: string;
|
|
2502
|
-
description: string;
|
|
2503
|
-
kind: "IN_APP_PURCHASE" | "SUBSCRIPTION";
|
|
2504
|
-
price: number;
|
|
2505
2404
|
appId?: string | undefined;
|
|
2405
|
+
subject?: string | undefined;
|
|
2406
|
+
unauthenticatedLinks?: boolean | undefined;
|
|
2506
2407
|
};
|
|
2507
2408
|
_output_in: typeof _trpc_server.unsetMarker;
|
|
2508
2409
|
_output_out: typeof _trpc_server.unsetMarker;
|
|
2509
2410
|
}, {
|
|
2510
|
-
purchaseLink: string;
|
|
2511
2411
|
id: string;
|
|
2512
|
-
name: string;
|
|
2513
|
-
description: string;
|
|
2514
|
-
kind: ProductKind;
|
|
2515
|
-
price: number;
|
|
2516
2412
|
}>>;
|
|
2517
2413
|
};
|
|
2518
|
-
listProducts: {
|
|
2519
|
-
mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
|
|
2520
|
-
_config: _trpc_server.RootConfig<{
|
|
2521
|
-
ctx: {
|
|
2522
|
-
appId: string;
|
|
2523
|
-
versionId: string;
|
|
2524
|
-
appName: string;
|
|
2525
|
-
appSubdomain: string;
|
|
2526
|
-
userId: string;
|
|
2527
|
-
isTesting: boolean;
|
|
2528
|
-
rpcMethod: string;
|
|
2529
|
-
requestId: string;
|
|
2530
|
-
type?: undefined;
|
|
2531
|
-
dbUrl?: string | null | undefined;
|
|
2532
|
-
userIdActual?: string | null | undefined;
|
|
2533
|
-
channelId?: string | null | undefined;
|
|
2534
|
-
} | {
|
|
2535
|
-
type: "BOXMAN_REQUEST";
|
|
2536
|
-
boxId: string;
|
|
2537
|
-
isDevelopment: boolean | null;
|
|
2538
|
-
appId?: string | null | undefined;
|
|
2539
|
-
appFolder?: string | null | undefined;
|
|
2540
|
-
modelOverride?: "standard" | "ultra" | null | undefined;
|
|
2541
|
-
rpcMethod?: string | null | undefined;
|
|
2542
|
-
requestId?: string | null | undefined;
|
|
2543
|
-
channelId?: string | null | undefined;
|
|
2544
|
-
platformUserId?: string | null | undefined;
|
|
2545
|
-
invocationTrigger?: "event" | "webhook" | "user" | "scheduled" | "composio" | null | undefined;
|
|
2546
|
-
agent?: string | null | undefined;
|
|
2547
|
-
sessionId?: string | null | undefined;
|
|
2548
|
-
pushToken?: string | null | undefined;
|
|
2549
|
-
};
|
|
2550
|
-
meta: object;
|
|
2551
|
-
errorShape: {
|
|
2552
|
-
data: {
|
|
2553
|
-
zodError: typeToFlattenedError<any, string> | null;
|
|
2554
|
-
code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
|
|
2555
|
-
httpStatus: number;
|
|
2556
|
-
path?: string;
|
|
2557
|
-
stack?: string;
|
|
2558
|
-
};
|
|
2559
|
-
message: string;
|
|
2560
|
-
code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
2561
|
-
};
|
|
2562
|
-
transformer: typeof superjson;
|
|
2563
|
-
}>;
|
|
2564
|
-
_meta: object;
|
|
2565
|
-
_ctx_out: {
|
|
2566
|
-
type: undefined;
|
|
2567
|
-
appId: string;
|
|
2568
|
-
versionId: string;
|
|
2569
|
-
dbUrl: string | null | undefined;
|
|
2570
|
-
appName: string;
|
|
2571
|
-
appSubdomain: string;
|
|
2572
|
-
userId: string;
|
|
2573
|
-
userIdActual: string | null | undefined;
|
|
2574
|
-
isTesting: boolean;
|
|
2575
|
-
rpcMethod: string;
|
|
2576
|
-
requestId: string;
|
|
2577
|
-
channelId: string | null | undefined;
|
|
2578
|
-
} | {
|
|
2579
|
-
type: "BOXMAN_REQUEST";
|
|
2580
|
-
appId: string | null | undefined;
|
|
2581
|
-
boxId: string;
|
|
2582
|
-
appFolder: string | null | undefined;
|
|
2583
|
-
modelOverride: "standard" | "ultra" | null | undefined;
|
|
2584
|
-
rpcMethod: string | null | undefined;
|
|
2585
|
-
requestId: string | null | undefined;
|
|
2586
|
-
channelId: string | null | undefined;
|
|
2587
|
-
platformUserId: string | null | undefined;
|
|
2588
|
-
invocationTrigger: "event" | "webhook" | "user" | "scheduled" | "composio" | null | undefined;
|
|
2589
|
-
isDevelopment: boolean | null;
|
|
2590
|
-
agent: string | null | undefined;
|
|
2591
|
-
sessionId: string | null | undefined;
|
|
2592
|
-
pushToken: string | null | undefined;
|
|
2593
|
-
};
|
|
2594
|
-
_input_in: {
|
|
2595
|
-
appId?: string | undefined;
|
|
2596
|
-
} | undefined;
|
|
2597
|
-
_input_out: {
|
|
2598
|
-
appId?: string | undefined;
|
|
2599
|
-
} | undefined;
|
|
2600
|
-
_output_in: typeof _trpc_server.unsetMarker;
|
|
2601
|
-
_output_out: typeof _trpc_server.unsetMarker;
|
|
2602
|
-
}, {
|
|
2603
|
-
purchaseLink: string;
|
|
2604
|
-
id: string;
|
|
2605
|
-
name: string;
|
|
2606
|
-
description: string;
|
|
2607
|
-
kind: ProductKind;
|
|
2608
|
-
price: number;
|
|
2609
|
-
}[]>>;
|
|
2610
|
-
};
|
|
2611
|
-
listUserPurchases: {
|
|
2612
|
-
mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
|
|
2613
|
-
_config: _trpc_server.RootConfig<{
|
|
2614
|
-
ctx: {
|
|
2615
|
-
appId: string;
|
|
2616
|
-
versionId: string;
|
|
2617
|
-
appName: string;
|
|
2618
|
-
appSubdomain: string;
|
|
2619
|
-
userId: string;
|
|
2620
|
-
isTesting: boolean;
|
|
2621
|
-
rpcMethod: string;
|
|
2622
|
-
requestId: string;
|
|
2623
|
-
type?: undefined;
|
|
2624
|
-
dbUrl?: string | null | undefined;
|
|
2625
|
-
userIdActual?: string | null | undefined;
|
|
2626
|
-
channelId?: string | null | undefined;
|
|
2627
|
-
} | {
|
|
2628
|
-
type: "BOXMAN_REQUEST";
|
|
2629
|
-
boxId: string;
|
|
2630
|
-
isDevelopment: boolean | null;
|
|
2631
|
-
appId?: string | null | undefined;
|
|
2632
|
-
appFolder?: string | null | undefined;
|
|
2633
|
-
modelOverride?: "standard" | "ultra" | null | undefined;
|
|
2634
|
-
rpcMethod?: string | null | undefined;
|
|
2635
|
-
requestId?: string | null | undefined;
|
|
2636
|
-
channelId?: string | null | undefined;
|
|
2637
|
-
platformUserId?: string | null | undefined;
|
|
2638
|
-
invocationTrigger?: "event" | "webhook" | "user" | "scheduled" | "composio" | null | undefined;
|
|
2639
|
-
agent?: string | null | undefined;
|
|
2640
|
-
sessionId?: string | null | undefined;
|
|
2641
|
-
pushToken?: string | null | undefined;
|
|
2642
|
-
};
|
|
2643
|
-
meta: object;
|
|
2644
|
-
errorShape: {
|
|
2645
|
-
data: {
|
|
2646
|
-
zodError: typeToFlattenedError<any, string> | null;
|
|
2647
|
-
code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
|
|
2648
|
-
httpStatus: number;
|
|
2649
|
-
path?: string;
|
|
2650
|
-
stack?: string;
|
|
2651
|
-
};
|
|
2652
|
-
message: string;
|
|
2653
|
-
code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
2654
|
-
};
|
|
2655
|
-
transformer: typeof superjson;
|
|
2656
|
-
}>;
|
|
2657
|
-
_meta: object;
|
|
2658
|
-
_ctx_out: {
|
|
2659
|
-
type: undefined;
|
|
2660
|
-
appId: string;
|
|
2661
|
-
versionId: string;
|
|
2662
|
-
dbUrl: string | null | undefined;
|
|
2663
|
-
appName: string;
|
|
2664
|
-
appSubdomain: string;
|
|
2665
|
-
userId: string;
|
|
2666
|
-
userIdActual: string | null | undefined;
|
|
2667
|
-
isTesting: boolean;
|
|
2668
|
-
rpcMethod: string;
|
|
2669
|
-
requestId: string;
|
|
2670
|
-
channelId: string | null | undefined;
|
|
2671
|
-
} | {
|
|
2672
|
-
type: "BOXMAN_REQUEST";
|
|
2673
|
-
appId: string | null | undefined;
|
|
2674
|
-
boxId: string;
|
|
2675
|
-
appFolder: string | null | undefined;
|
|
2676
|
-
modelOverride: "standard" | "ultra" | null | undefined;
|
|
2677
|
-
rpcMethod: string | null | undefined;
|
|
2678
|
-
requestId: string | null | undefined;
|
|
2679
|
-
channelId: string | null | undefined;
|
|
2680
|
-
platformUserId: string | null | undefined;
|
|
2681
|
-
invocationTrigger: "event" | "webhook" | "user" | "scheduled" | "composio" | null | undefined;
|
|
2682
|
-
isDevelopment: boolean | null;
|
|
2683
|
-
agent: string | null | undefined;
|
|
2684
|
-
sessionId: string | null | undefined;
|
|
2685
|
-
pushToken: string | null | undefined;
|
|
2686
|
-
};
|
|
2687
|
-
_input_in: {
|
|
2688
|
-
appId?: string | undefined;
|
|
2689
|
-
userId?: string | undefined;
|
|
2690
|
-
} | undefined;
|
|
2691
|
-
_input_out: {
|
|
2692
|
-
appId?: string | undefined;
|
|
2693
|
-
userId?: string | undefined;
|
|
2694
|
-
} | undefined;
|
|
2695
|
-
_output_in: typeof _trpc_server.unsetMarker;
|
|
2696
|
-
_output_out: typeof _trpc_server.unsetMarker;
|
|
2697
|
-
}, {
|
|
2698
|
-
id: string;
|
|
2699
|
-
name: string;
|
|
2700
|
-
description: string;
|
|
2701
|
-
kind: ProductKind;
|
|
2702
|
-
price: number;
|
|
2703
|
-
}[]>>;
|
|
2704
|
-
};
|
|
2705
|
-
discontinueProduct: {
|
|
2706
|
-
mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
|
|
2707
|
-
_config: _trpc_server.RootConfig<{
|
|
2708
|
-
ctx: {
|
|
2709
|
-
appId: string;
|
|
2710
|
-
versionId: string;
|
|
2711
|
-
appName: string;
|
|
2712
|
-
appSubdomain: string;
|
|
2713
|
-
userId: string;
|
|
2714
|
-
isTesting: boolean;
|
|
2715
|
-
rpcMethod: string;
|
|
2716
|
-
requestId: string;
|
|
2717
|
-
type?: undefined;
|
|
2718
|
-
dbUrl?: string | null | undefined;
|
|
2719
|
-
userIdActual?: string | null | undefined;
|
|
2720
|
-
channelId?: string | null | undefined;
|
|
2721
|
-
} | {
|
|
2722
|
-
type: "BOXMAN_REQUEST";
|
|
2723
|
-
boxId: string;
|
|
2724
|
-
isDevelopment: boolean | null;
|
|
2725
|
-
appId?: string | null | undefined;
|
|
2726
|
-
appFolder?: string | null | undefined;
|
|
2727
|
-
modelOverride?: "standard" | "ultra" | null | undefined;
|
|
2728
|
-
rpcMethod?: string | null | undefined;
|
|
2729
|
-
requestId?: string | null | undefined;
|
|
2730
|
-
channelId?: string | null | undefined;
|
|
2731
|
-
platformUserId?: string | null | undefined;
|
|
2732
|
-
invocationTrigger?: "event" | "webhook" | "user" | "scheduled" | "composio" | null | undefined;
|
|
2733
|
-
agent?: string | null | undefined;
|
|
2734
|
-
sessionId?: string | null | undefined;
|
|
2735
|
-
pushToken?: string | null | undefined;
|
|
2736
|
-
};
|
|
2737
|
-
meta: object;
|
|
2738
|
-
errorShape: {
|
|
2739
|
-
data: {
|
|
2740
|
-
zodError: typeToFlattenedError<any, string> | null;
|
|
2741
|
-
code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
|
|
2742
|
-
httpStatus: number;
|
|
2743
|
-
path?: string;
|
|
2744
|
-
stack?: string;
|
|
2745
|
-
};
|
|
2746
|
-
message: string;
|
|
2747
|
-
code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
2748
|
-
};
|
|
2749
|
-
transformer: typeof superjson;
|
|
2750
|
-
}>;
|
|
2751
|
-
_meta: object;
|
|
2752
|
-
_ctx_out: {
|
|
2753
|
-
type: undefined;
|
|
2754
|
-
appId: string;
|
|
2755
|
-
versionId: string;
|
|
2756
|
-
dbUrl: string | null | undefined;
|
|
2757
|
-
appName: string;
|
|
2758
|
-
appSubdomain: string;
|
|
2759
|
-
userId: string;
|
|
2760
|
-
userIdActual: string | null | undefined;
|
|
2761
|
-
isTesting: boolean;
|
|
2762
|
-
rpcMethod: string;
|
|
2763
|
-
requestId: string;
|
|
2764
|
-
channelId: string | null | undefined;
|
|
2765
|
-
} | {
|
|
2766
|
-
type: "BOXMAN_REQUEST";
|
|
2767
|
-
appId: string | null | undefined;
|
|
2768
|
-
boxId: string;
|
|
2769
|
-
appFolder: string | null | undefined;
|
|
2770
|
-
modelOverride: "standard" | "ultra" | null | undefined;
|
|
2771
|
-
rpcMethod: string | null | undefined;
|
|
2772
|
-
requestId: string | null | undefined;
|
|
2773
|
-
channelId: string | null | undefined;
|
|
2774
|
-
platformUserId: string | null | undefined;
|
|
2775
|
-
invocationTrigger: "event" | "webhook" | "user" | "scheduled" | "composio" | null | undefined;
|
|
2776
|
-
isDevelopment: boolean | null;
|
|
2777
|
-
agent: string | null | undefined;
|
|
2778
|
-
sessionId: string | null | undefined;
|
|
2779
|
-
pushToken: string | null | undefined;
|
|
2780
|
-
};
|
|
2781
|
-
_input_in: {
|
|
2782
|
-
productId: string;
|
|
2783
|
-
appId?: string | undefined;
|
|
2784
|
-
};
|
|
2785
|
-
_input_out: {
|
|
2786
|
-
productId: string;
|
|
2787
|
-
appId?: string | undefined;
|
|
2788
|
-
};
|
|
2789
|
-
_output_in: typeof _trpc_server.unsetMarker;
|
|
2790
|
-
_output_out: typeof _trpc_server.unsetMarker;
|
|
2791
|
-
}, void>>;
|
|
2792
|
-
};
|
|
2793
2414
|
browseWeb: {
|
|
2794
2415
|
mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
|
|
2795
2416
|
_config: _trpc_server.RootConfig<{
|