@opencode-ai/client 0.0.0-next-15002 → 0.0.0-next-15005

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.
@@ -485,7 +485,7 @@ export declare const make: (options?: {
485
485
  readonly id: string & import("effect/Brand").Brand<"AgentV2.ID">;
486
486
  readonly request: {
487
487
  readonly settings: {
488
- readonly [x: string]: unknown;
488
+ readonly [x: string]: Schema.Json;
489
489
  };
490
490
  readonly headers: {
491
491
  readonly [x: string]: string;
@@ -2568,53 +2568,22 @@ export declare const make: (options?: {
2568
2568
  list: (input?: Endpoint6_0Input) => Effect.Effect<{
2569
2569
  readonly location: import("@opencode-ai/schema/location").Info;
2570
2570
  readonly data: readonly {
2571
- readonly id: string & import("effect/Brand").Brand<"ModelV2.ID">;
2572
- readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
2573
- readonly name: string;
2574
- readonly api: {
2575
- readonly type: "aisdk";
2576
- readonly package: string;
2577
- readonly id: string & import("effect/Brand").Brand<"ModelV2.ID">;
2578
- readonly url?: string | undefined;
2579
- readonly settings?: {
2580
- readonly [x: string]: unknown;
2581
- } | undefined;
2582
- } | {
2583
- readonly type: "native";
2584
- readonly settings: {
2585
- readonly [x: string]: unknown;
2586
- };
2587
- readonly id: string & import("effect/Brand").Brand<"ModelV2.ID">;
2588
- readonly url?: string | undefined;
2589
- };
2590
2571
  readonly capabilities: {
2591
2572
  readonly tools: boolean;
2592
2573
  readonly input: readonly string[];
2593
2574
  readonly output: readonly string[];
2594
2575
  };
2595
- readonly request: {
2596
- readonly settings: {
2597
- readonly [x: string]: unknown;
2598
- };
2599
- readonly headers: {
2600
- readonly [x: string]: string;
2601
- };
2602
- readonly body: {
2603
- readonly [x: string]: Schema.Json;
2604
- };
2605
- readonly variant?: string | undefined;
2606
- };
2607
2576
  readonly variants: readonly {
2608
- readonly settings: {
2609
- readonly [x: string]: unknown;
2610
- };
2611
- readonly headers: {
2577
+ readonly id: string & import("effect/Brand").Brand<"VariantID">;
2578
+ readonly settings?: {
2579
+ readonly [x: string]: Schema.Json;
2580
+ } | undefined;
2581
+ readonly headers?: {
2612
2582
  readonly [x: string]: string;
2613
- };
2614
- readonly body: {
2583
+ } | undefined;
2584
+ readonly body?: {
2615
2585
  readonly [x: string]: Schema.Json;
2616
- };
2617
- readonly id: string & import("effect/Brand").Brand<"VariantID">;
2586
+ } | undefined;
2618
2587
  }[];
2619
2588
  readonly time: {
2620
2589
  readonly released: number;
@@ -2638,59 +2607,42 @@ export declare const make: (options?: {
2638
2607
  readonly output: number;
2639
2608
  readonly input?: number | undefined;
2640
2609
  };
2610
+ readonly id: string & import("effect/Brand").Brand<"ModelV2.ID">;
2611
+ readonly modelID: string & import("effect/Brand").Brand<"ModelV2.ID">;
2612
+ readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
2613
+ readonly name: string;
2614
+ readonly settings?: {
2615
+ readonly [x: string]: Schema.Json;
2616
+ } | undefined;
2617
+ readonly headers?: {
2618
+ readonly [x: string]: string;
2619
+ } | undefined;
2620
+ readonly body?: {
2621
+ readonly [x: string]: Schema.Json;
2622
+ } | undefined;
2641
2623
  readonly family?: (string & import("effect/Brand").Brand<"Family">) | undefined;
2624
+ readonly package?: string | undefined;
2642
2625
  }[];
2643
2626
  }, import("@opencode-ai/protocol/errors").InvalidRequestError | Schema.SchemaError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").ServiceUnavailableError | HttpClientError.HttpClientError | ClientError, never>;
2644
2627
  default: (input?: Endpoint6_1Input) => Effect.Effect<{
2645
2628
  readonly location: import("@opencode-ai/schema/location").Info;
2646
2629
  readonly data: {
2647
- readonly id: string & import("effect/Brand").Brand<"ModelV2.ID">;
2648
- readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
2649
- readonly name: string;
2650
- readonly api: {
2651
- readonly type: "aisdk";
2652
- readonly package: string;
2653
- readonly id: string & import("effect/Brand").Brand<"ModelV2.ID">;
2654
- readonly url?: string | undefined;
2655
- readonly settings?: {
2656
- readonly [x: string]: unknown;
2657
- } | undefined;
2658
- } | {
2659
- readonly type: "native";
2660
- readonly settings: {
2661
- readonly [x: string]: unknown;
2662
- };
2663
- readonly id: string & import("effect/Brand").Brand<"ModelV2.ID">;
2664
- readonly url?: string | undefined;
2665
- };
2666
2630
  readonly capabilities: {
2667
2631
  readonly tools: boolean;
2668
2632
  readonly input: readonly string[];
2669
2633
  readonly output: readonly string[];
2670
2634
  };
2671
- readonly request: {
2672
- readonly settings: {
2673
- readonly [x: string]: unknown;
2674
- };
2675
- readonly headers: {
2676
- readonly [x: string]: string;
2677
- };
2678
- readonly body: {
2679
- readonly [x: string]: Schema.Json;
2680
- };
2681
- readonly variant?: string | undefined;
2682
- };
2683
2635
  readonly variants: readonly {
2684
- readonly settings: {
2685
- readonly [x: string]: unknown;
2686
- };
2687
- readonly headers: {
2636
+ readonly id: string & import("effect/Brand").Brand<"VariantID">;
2637
+ readonly settings?: {
2638
+ readonly [x: string]: Schema.Json;
2639
+ } | undefined;
2640
+ readonly headers?: {
2688
2641
  readonly [x: string]: string;
2689
- };
2690
- readonly body: {
2642
+ } | undefined;
2643
+ readonly body?: {
2691
2644
  readonly [x: string]: Schema.Json;
2692
- };
2693
- readonly id: string & import("effect/Brand").Brand<"VariantID">;
2645
+ } | undefined;
2694
2646
  }[];
2695
2647
  readonly time: {
2696
2648
  readonly released: number;
@@ -2714,7 +2666,21 @@ export declare const make: (options?: {
2714
2666
  readonly output: number;
2715
2667
  readonly input?: number | undefined;
2716
2668
  };
2669
+ readonly id: string & import("effect/Brand").Brand<"ModelV2.ID">;
2670
+ readonly modelID: string & import("effect/Brand").Brand<"ModelV2.ID">;
2671
+ readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
2672
+ readonly name: string;
2673
+ readonly settings?: {
2674
+ readonly [x: string]: Schema.Json;
2675
+ } | undefined;
2676
+ readonly headers?: {
2677
+ readonly [x: string]: string;
2678
+ } | undefined;
2679
+ readonly body?: {
2680
+ readonly [x: string]: Schema.Json;
2681
+ } | undefined;
2717
2682
  readonly family?: (string & import("effect/Brand").Brand<"Family">) | undefined;
2683
+ readonly package?: string | undefined;
2718
2684
  } | undefined;
2719
2685
  }, import("@opencode-ai/protocol/errors").InvalidRequestError | Schema.SchemaError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").ServiceUnavailableError | HttpClientError.HttpClientError | ClientError, never>;
2720
2686
  };
@@ -2729,31 +2695,16 @@ export declare const make: (options?: {
2729
2695
  readonly data: readonly {
2730
2696
  readonly id: string & import("effect/Brand").Brand<"ProviderV2.ID">;
2731
2697
  readonly name: string;
2732
- readonly api: {
2733
- readonly type: "aisdk";
2734
- readonly package: string;
2735
- readonly url?: string | undefined;
2736
- readonly settings?: {
2737
- readonly [x: string]: unknown;
2738
- } | undefined;
2739
- } | {
2740
- readonly type: "native";
2741
- readonly settings: {
2742
- readonly [x: string]: unknown;
2743
- };
2744
- readonly url?: string | undefined;
2745
- };
2746
- readonly request: {
2747
- readonly settings: {
2748
- readonly [x: string]: unknown;
2749
- };
2750
- readonly headers: {
2751
- readonly [x: string]: string;
2752
- };
2753
- readonly body: {
2754
- readonly [x: string]: Schema.Json;
2755
- };
2756
- };
2698
+ readonly package: string;
2699
+ readonly settings?: {
2700
+ readonly [x: string]: Schema.Json;
2701
+ } | undefined;
2702
+ readonly headers?: {
2703
+ readonly [x: string]: string;
2704
+ } | undefined;
2705
+ readonly body?: {
2706
+ readonly [x: string]: Schema.Json;
2707
+ } | undefined;
2757
2708
  readonly integrationID?: (string & import("effect/Brand").Brand<"Integration.ID">) | undefined;
2758
2709
  readonly disabled?: boolean | undefined;
2759
2710
  }[];
@@ -2763,31 +2714,16 @@ export declare const make: (options?: {
2763
2714
  readonly data: {
2764
2715
  readonly id: string & import("effect/Brand").Brand<"ProviderV2.ID">;
2765
2716
  readonly name: string;
2766
- readonly api: {
2767
- readonly type: "aisdk";
2768
- readonly package: string;
2769
- readonly url?: string | undefined;
2770
- readonly settings?: {
2771
- readonly [x: string]: unknown;
2772
- } | undefined;
2773
- } | {
2774
- readonly type: "native";
2775
- readonly settings: {
2776
- readonly [x: string]: unknown;
2777
- };
2778
- readonly url?: string | undefined;
2779
- };
2780
- readonly request: {
2781
- readonly settings: {
2782
- readonly [x: string]: unknown;
2783
- };
2784
- readonly headers: {
2785
- readonly [x: string]: string;
2786
- };
2787
- readonly body: {
2788
- readonly [x: string]: Schema.Json;
2789
- };
2790
- };
2717
+ readonly package: string;
2718
+ readonly settings?: {
2719
+ readonly [x: string]: Schema.Json;
2720
+ } | undefined;
2721
+ readonly headers?: {
2722
+ readonly [x: string]: string;
2723
+ } | undefined;
2724
+ readonly body?: {
2725
+ readonly [x: string]: Schema.Json;
2726
+ } | undefined;
2791
2727
  readonly integrationID?: (string & import("effect/Brand").Brand<"Integration.ID">) | undefined;
2792
2728
  readonly disabled?: boolean | undefined;
2793
2729
  };
@@ -3060,51 +3060,34 @@ export type ModelListOutput = {
3060
3060
  };
3061
3061
  readonly data: ReadonlyArray<{
3062
3062
  readonly id: string;
3063
+ readonly modelID: string;
3063
3064
  readonly providerID: string;
3064
3065
  readonly family?: string;
3065
3066
  readonly name: string;
3066
- readonly api: {
3067
- readonly id: string;
3068
- readonly type: "aisdk";
3069
- readonly package: string;
3070
- readonly url?: string;
3071
- readonly settings?: {
3072
- readonly [x: string]: JsonValue;
3073
- };
3074
- } | {
3075
- readonly id: string;
3076
- readonly type: "native";
3077
- readonly url?: string;
3078
- readonly settings: {
3079
- readonly [x: string]: JsonValue;
3080
- };
3067
+ readonly package?: string;
3068
+ readonly settings?: {
3069
+ readonly [x: string]: JsonValue;
3070
+ };
3071
+ readonly headers?: {
3072
+ readonly [x: string]: string;
3073
+ };
3074
+ readonly body?: {
3075
+ readonly [x: string]: JsonValue;
3081
3076
  };
3082
3077
  readonly capabilities: {
3083
3078
  readonly tools: boolean;
3084
3079
  readonly input: ReadonlyArray<string>;
3085
3080
  readonly output: ReadonlyArray<string>;
3086
3081
  };
3087
- readonly request: {
3088
- readonly settings: {
3089
- readonly [x: string]: JsonValue;
3090
- };
3091
- readonly headers: {
3092
- readonly [x: string]: string;
3093
- };
3094
- readonly body: {
3095
- readonly [x: string]: JsonValue;
3096
- };
3097
- readonly variant?: string;
3098
- };
3099
3082
  readonly variants: ReadonlyArray<{
3100
3083
  readonly id: string;
3101
- readonly settings: {
3084
+ readonly settings?: {
3102
3085
  readonly [x: string]: JsonValue;
3103
3086
  };
3104
- readonly headers: {
3087
+ readonly headers?: {
3105
3088
  readonly [x: string]: string;
3106
3089
  };
3107
- readonly body: {
3090
+ readonly body?: {
3108
3091
  readonly [x: string]: JsonValue;
3109
3092
  };
3110
3093
  }>;
@@ -3151,51 +3134,34 @@ export type ModelDefaultOutput = {
3151
3134
  };
3152
3135
  readonly data: {
3153
3136
  readonly id: string;
3137
+ readonly modelID: string;
3154
3138
  readonly providerID: string;
3155
3139
  readonly family?: string;
3156
3140
  readonly name: string;
3157
- readonly api: {
3158
- readonly id: string;
3159
- readonly type: "aisdk";
3160
- readonly package: string;
3161
- readonly url?: string;
3162
- readonly settings?: {
3163
- readonly [x: string]: JsonValue;
3164
- };
3165
- } | {
3166
- readonly id: string;
3167
- readonly type: "native";
3168
- readonly url?: string;
3169
- readonly settings: {
3170
- readonly [x: string]: JsonValue;
3171
- };
3141
+ readonly package?: string;
3142
+ readonly settings?: {
3143
+ readonly [x: string]: JsonValue;
3144
+ };
3145
+ readonly headers?: {
3146
+ readonly [x: string]: string;
3147
+ };
3148
+ readonly body?: {
3149
+ readonly [x: string]: JsonValue;
3172
3150
  };
3173
3151
  readonly capabilities: {
3174
3152
  readonly tools: boolean;
3175
3153
  readonly input: ReadonlyArray<string>;
3176
3154
  readonly output: ReadonlyArray<string>;
3177
3155
  };
3178
- readonly request: {
3179
- readonly settings: {
3180
- readonly [x: string]: JsonValue;
3181
- };
3182
- readonly headers: {
3183
- readonly [x: string]: string;
3184
- };
3185
- readonly body: {
3186
- readonly [x: string]: JsonValue;
3187
- };
3188
- readonly variant?: string;
3189
- };
3190
3156
  readonly variants: ReadonlyArray<{
3191
3157
  readonly id: string;
3192
- readonly settings: {
3158
+ readonly settings?: {
3193
3159
  readonly [x: string]: JsonValue;
3194
3160
  };
3195
- readonly headers: {
3161
+ readonly headers?: {
3196
3162
  readonly [x: string]: string;
3197
3163
  };
3198
- readonly body: {
3164
+ readonly body?: {
3199
3165
  readonly [x: string]: JsonValue;
3200
3166
  };
3201
3167
  }>;
@@ -3274,30 +3240,15 @@ export type ProviderListOutput = {
3274
3240
  readonly integrationID?: string;
3275
3241
  readonly name: string;
3276
3242
  readonly disabled?: boolean;
3277
- readonly api: {
3278
- readonly type: "aisdk";
3279
- readonly package: string;
3280
- readonly url?: string;
3281
- readonly settings?: {
3282
- readonly [x: string]: JsonValue;
3283
- };
3284
- } | {
3285
- readonly type: "native";
3286
- readonly url?: string;
3287
- readonly settings: {
3288
- readonly [x: string]: JsonValue;
3289
- };
3243
+ readonly package: string;
3244
+ readonly settings?: {
3245
+ readonly [x: string]: JsonValue;
3290
3246
  };
3291
- readonly request: {
3292
- readonly settings: {
3293
- readonly [x: string]: JsonValue;
3294
- };
3295
- readonly headers: {
3296
- readonly [x: string]: string;
3297
- };
3298
- readonly body: {
3299
- readonly [x: string]: JsonValue;
3300
- };
3247
+ readonly headers?: {
3248
+ readonly [x: string]: string;
3249
+ };
3250
+ readonly body?: {
3251
+ readonly [x: string]: JsonValue;
3301
3252
  };
3302
3253
  }>;
3303
3254
  };
@@ -3326,30 +3277,15 @@ export type ProviderGetOutput = {
3326
3277
  readonly integrationID?: string;
3327
3278
  readonly name: string;
3328
3279
  readonly disabled?: boolean;
3329
- readonly api: {
3330
- readonly type: "aisdk";
3331
- readonly package: string;
3332
- readonly url?: string;
3333
- readonly settings?: {
3334
- readonly [x: string]: JsonValue;
3335
- };
3336
- } | {
3337
- readonly type: "native";
3338
- readonly url?: string;
3339
- readonly settings: {
3340
- readonly [x: string]: JsonValue;
3341
- };
3280
+ readonly package: string;
3281
+ readonly settings?: {
3282
+ readonly [x: string]: JsonValue;
3342
3283
  };
3343
- readonly request: {
3344
- readonly settings: {
3345
- readonly [x: string]: JsonValue;
3346
- };
3347
- readonly headers: {
3348
- readonly [x: string]: string;
3349
- };
3350
- readonly body: {
3351
- readonly [x: string]: JsonValue;
3352
- };
3284
+ readonly headers?: {
3285
+ readonly [x: string]: string;
3286
+ };
3287
+ readonly body?: {
3288
+ readonly [x: string]: JsonValue;
3353
3289
  };
3354
3290
  };
3355
3291
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@opencode-ai/client",
4
- "version": "0.0.0-next-15002",
4
+ "version": "0.0.0-next-15005",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -41,8 +41,8 @@
41
41
  "typecheck": "tsgo --noEmit"
42
42
  },
43
43
  "dependencies": {
44
- "@opencode-ai/schema": "0.0.0-next-15002",
45
- "@opencode-ai/protocol": "0.0.0-next-15002"
44
+ "@opencode-ai/schema": "0.0.0-next-15005",
45
+ "@opencode-ai/protocol": "0.0.0-next-15005"
46
46
  },
47
47
  "peerDependencies": {
48
48
  "effect": "4.0.0-beta.83"
@@ -54,7 +54,7 @@
54
54
  },
55
55
  "devDependencies": {
56
56
  "@effect/platform-node": "4.0.0-beta.83",
57
- "@opencode-ai/httpapi-codegen": "0.0.0-next-15002",
57
+ "@opencode-ai/httpapi-codegen": "0.0.0-next-15005",
58
58
  "@tsconfig/bun": "1.0.9",
59
59
  "@types/bun": "1.3.13",
60
60
  "@typescript/native-preview": "7.0.0-dev.20251207.1",