@adaptive-ai/sdk 0.1.38 → 0.1.40

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.
@@ -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 {
@@ -1657,24 +1652,27 @@ export declare const appConfigSchema: z.ZodObject<{
1657
1652
  modelOverride?: "standard" | "ultra" | undefined;
1658
1653
  }>, "many">;
1659
1654
  events: z.ZodDefault<z.ZodArray<z.ZodObject<{
1660
- provider: z.ZodNativeEnum<{
1661
- readonly AC1: "AC1";
1662
- readonly PLAID: "PLAID";
1663
- readonly GITHUB_USER: "GITHUB_USER";
1664
- readonly GITHUB_BOT: "GITHUB_BOT";
1665
- readonly GOOGLE: "GOOGLE";
1666
- readonly SLACK: "SLACK";
1667
- readonly SLACK_BOT: "SLACK_BOT";
1668
- readonly DISCORD: "DISCORD";
1669
- readonly NOTION: "NOTION";
1670
- readonly TWITTER: "TWITTER";
1671
- readonly LINKEDIN: "LINKEDIN";
1672
- readonly YAHOO: "YAHOO";
1673
- readonly FIGMA: "FIGMA";
1674
- readonly SQUARE: "SQUARE";
1675
- readonly SHOPIFY: "SHOPIFY";
1676
- readonly WHOOP: "WHOOP";
1677
- }>;
1655
+ provider: z.ZodUnion<[
1656
+ z.ZodNativeEnum<{
1657
+ readonly AC1: "AC1";
1658
+ readonly PLAID: "PLAID";
1659
+ readonly GITHUB_USER: "GITHUB_USER";
1660
+ readonly GITHUB_BOT: "GITHUB_BOT";
1661
+ readonly GOOGLE: "GOOGLE";
1662
+ readonly SLACK: "SLACK";
1663
+ readonly SLACK_BOT: "SLACK_BOT";
1664
+ readonly DISCORD: "DISCORD";
1665
+ readonly NOTION: "NOTION";
1666
+ readonly TWITTER: "TWITTER";
1667
+ readonly LINKEDIN: "LINKEDIN";
1668
+ readonly YAHOO: "YAHOO";
1669
+ readonly FIGMA: "FIGMA";
1670
+ readonly SQUARE: "SQUARE";
1671
+ readonly SHOPIFY: "SHOPIFY";
1672
+ readonly WHOOP: "WHOOP";
1673
+ }>,
1674
+ z.ZodLiteral<"platform">
1675
+ ]>;
1678
1676
  event: z.ZodString;
1679
1677
  handler: z.ZodEffects<z.ZodString, string, string>;
1680
1678
  slug: z.ZodDefault<z.ZodString>;
@@ -1688,13 +1686,13 @@ export declare const appConfigSchema: z.ZodObject<{
1688
1686
  description: string;
1689
1687
  event: string;
1690
1688
  name: string;
1691
- provider: "GITHUB_USER" | "GITHUB_BOT" | "GOOGLE" | "SLACK" | "SLACK_BOT" | "DISCORD" | "NOTION" | "TWITTER" | "LINKEDIN" | "YAHOO" | "FIGMA" | "SQUARE" | "SHOPIFY" | "WHOOP" | "PLAID" | "AC1";
1689
+ provider: "GITHUB_USER" | "GITHUB_BOT" | "GOOGLE" | "SLACK" | "SLACK_BOT" | "DISCORD" | "NOTION" | "TWITTER" | "LINKEDIN" | "YAHOO" | "FIGMA" | "SQUARE" | "SHOPIFY" | "WHOOP" | "PLAID" | "AC1" | "platform";
1692
1690
  slug: string;
1693
1691
  handler: string;
1694
1692
  modelOverride?: "standard" | "ultra" | undefined;
1695
1693
  }, {
1696
1694
  event: string;
1697
- provider: "GITHUB_USER" | "GITHUB_BOT" | "GOOGLE" | "SLACK" | "SLACK_BOT" | "DISCORD" | "NOTION" | "TWITTER" | "LINKEDIN" | "YAHOO" | "FIGMA" | "SQUARE" | "SHOPIFY" | "WHOOP" | "PLAID" | "AC1";
1695
+ provider: "GITHUB_USER" | "GITHUB_BOT" | "GOOGLE" | "SLACK" | "SLACK_BOT" | "DISCORD" | "NOTION" | "TWITTER" | "LINKEDIN" | "YAHOO" | "FIGMA" | "SQUARE" | "SHOPIFY" | "WHOOP" | "PLAID" | "AC1" | "platform";
1698
1696
  handler: string;
1699
1697
  description?: string | undefined;
1700
1698
  name?: string | undefined;
@@ -1768,7 +1766,7 @@ export declare const appConfigSchema: z.ZodObject<{
1768
1766
  description: string;
1769
1767
  event: string;
1770
1768
  name: string;
1771
- provider: "GITHUB_USER" | "GITHUB_BOT" | "GOOGLE" | "SLACK" | "SLACK_BOT" | "DISCORD" | "NOTION" | "TWITTER" | "LINKEDIN" | "YAHOO" | "FIGMA" | "SQUARE" | "SHOPIFY" | "WHOOP" | "PLAID" | "AC1";
1769
+ provider: "GITHUB_USER" | "GITHUB_BOT" | "GOOGLE" | "SLACK" | "SLACK_BOT" | "DISCORD" | "NOTION" | "TWITTER" | "LINKEDIN" | "YAHOO" | "FIGMA" | "SQUARE" | "SHOPIFY" | "WHOOP" | "PLAID" | "AC1" | "platform";
1772
1770
  slug: string;
1773
1771
  handler: string;
1774
1772
  modelOverride?: "standard" | "ultra" | undefined;
@@ -1796,7 +1794,7 @@ export declare const appConfigSchema: z.ZodObject<{
1796
1794
  }[] | undefined;
1797
1795
  events?: {
1798
1796
  event: string;
1799
- provider: "GITHUB_USER" | "GITHUB_BOT" | "GOOGLE" | "SLACK" | "SLACK_BOT" | "DISCORD" | "NOTION" | "TWITTER" | "LINKEDIN" | "YAHOO" | "FIGMA" | "SQUARE" | "SHOPIFY" | "WHOOP" | "PLAID" | "AC1";
1797
+ provider: "GITHUB_USER" | "GITHUB_BOT" | "GOOGLE" | "SLACK" | "SLACK_BOT" | "DISCORD" | "NOTION" | "TWITTER" | "LINKEDIN" | "YAHOO" | "FIGMA" | "SQUARE" | "SHOPIFY" | "WHOOP" | "PLAID" | "AC1" | "platform";
1800
1798
  handler: string;
1801
1799
  description?: string | undefined;
1802
1800
  name?: string | undefined;
@@ -2198,6 +2196,7 @@ declare let client: {
2198
2196
  tier?: undefined;
2199
2197
  planName?: undefined;
2200
2198
  handle?: undefined;
2199
+ timezone?: undefined;
2201
2200
  credits?: undefined;
2202
2201
  } | {
2203
2202
  userId: null;
@@ -2206,6 +2205,7 @@ declare let client: {
2206
2205
  tier?: undefined;
2207
2206
  planName?: undefined;
2208
2207
  handle?: undefined;
2208
+ timezone?: undefined;
2209
2209
  credits?: undefined;
2210
2210
  } | {
2211
2211
  userId: string | null;
@@ -2214,6 +2214,7 @@ declare let client: {
2214
2214
  tier: UserTier | null;
2215
2215
  planName: string | null;
2216
2216
  handle: string | null;
2217
+ timezone: string | null;
2217
2218
  credits: {
2218
2219
  available: number;
2219
2220
  daily: number;
@@ -2221,6 +2222,8 @@ declare let client: {
2221
2222
  promotional: number;
2222
2223
  nextDailyRefresh: Date;
2223
2224
  nextMonthlyRefresh: Date;
2225
+ paygSpendLimitCents: number | null;
2226
+ paygSpendUsedCents: number;
2224
2227
  } | null;
2225
2228
  }>>;
2226
2229
  };
@@ -2393,403 +2396,27 @@ declare let client: {
2393
2396
  pushToken: string | null | undefined;
2394
2397
  };
2395
2398
  _input_in: {
2396
- appId: string;
2397
2399
  email: string;
2398
- subject: string;
2399
2400
  markdown: string;
2401
+ appId?: string | undefined;
2402
+ subject?: string | undefined;
2400
2403
  unauthenticatedLinks?: boolean | undefined;
2401
2404
  aclLevel?: "EDITOR" | "VIEWER" | undefined;
2402
2405
  };
2403
2406
  _input_out: {
2404
- appId: string;
2405
2407
  email: string;
2406
- subject: string;
2407
2408
  markdown: string;
2408
2409
  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
2410
  appId?: string | undefined;
2411
+ subject?: string | undefined;
2412
+ unauthenticatedLinks?: boolean | undefined;
2506
2413
  };
2507
2414
  _output_in: typeof _trpc_server.unsetMarker;
2508
2415
  _output_out: typeof _trpc_server.unsetMarker;
2509
2416
  }, {
2510
- purchaseLink: string;
2511
2417
  id: string;
2512
- name: string;
2513
- description: string;
2514
- kind: ProductKind;
2515
- price: number;
2516
2418
  }>>;
2517
2419
  };
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
2420
  browseWeb: {
2794
2421
  mutate: _trpc_client.Resolver<_trpc_server.BuildProcedure<"mutation", {
2795
2422
  _config: _trpc_server.RootConfig<{