@opencode-ai/sdk 0.0.0-next-15002 → 0.0.0-next-15006

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.
@@ -4336,27 +4336,23 @@ export type EventLogSynced = {
4336
4336
  aggregateID: string;
4337
4337
  seq?: number;
4338
4338
  };
4339
- export type ModelApi = {
4339
+ export type ModelCapabilities = {
4340
+ tools: boolean;
4341
+ input: Array<string>;
4342
+ output: Array<string>;
4343
+ };
4344
+ export type ModelVariant = {
4340
4345
  id: string;
4341
- type: "aisdk";
4342
- package: string;
4343
- url?: string;
4344
4346
  settings?: {
4345
4347
  [key: string]: unknown;
4346
4348
  };
4347
- } | {
4348
- id: string;
4349
- type: "native";
4350
- url?: string;
4351
- settings: {
4349
+ headers?: {
4350
+ [key: string]: string;
4351
+ };
4352
+ body?: {
4352
4353
  [key: string]: unknown;
4353
4354
  };
4354
4355
  };
4355
- export type ModelCapabilities = {
4356
- tools: boolean;
4357
- input: Array<string>;
4358
- output: Array<string>;
4359
- };
4360
4356
  export type ModelCost = {
4361
4357
  tier?: {
4362
4358
  type: "context";
@@ -4371,31 +4367,22 @@ export type ModelCost = {
4371
4367
  };
4372
4368
  export type ModelV2Info = {
4373
4369
  id: string;
4370
+ modelID: string;
4374
4371
  providerID: string;
4375
4372
  family?: string;
4376
4373
  name: string;
4377
- api: ModelApi;
4378
- capabilities: ModelCapabilities;
4379
- request: {
4380
- settings: ProviderSettings;
4381
- headers: {
4382
- [key: string]: string;
4383
- };
4384
- body: {
4385
- [key: string]: unknown;
4386
- };
4387
- variant?: string;
4374
+ package?: string;
4375
+ settings?: {
4376
+ [key: string]: unknown;
4388
4377
  };
4389
- variants: Array<{
4390
- id: string;
4391
- settings: ProviderSettings;
4392
- headers: {
4393
- [key: string]: string;
4394
- };
4395
- body: {
4396
- [key: string]: unknown;
4397
- };
4398
- }>;
4378
+ headers?: {
4379
+ [key: string]: string;
4380
+ };
4381
+ body?: {
4382
+ [key: string]: unknown;
4383
+ };
4384
+ capabilities: ModelCapabilities;
4385
+ variants: Array<ModelVariant>;
4399
4386
  time: {
4400
4387
  released: number;
4401
4388
  };
@@ -4408,30 +4395,22 @@ export type ModelV2Info = {
4408
4395
  output: number;
4409
4396
  };
4410
4397
  };
4411
- export type ProviderAisdk = {
4412
- type: "aisdk";
4398
+ export type ProviderV2Info = {
4399
+ id: string;
4400
+ integrationID?: string;
4401
+ name: string;
4402
+ disabled?: boolean;
4413
4403
  package: string;
4414
- url?: string;
4415
4404
  settings?: {
4416
4405
  [key: string]: unknown;
4417
4406
  };
4418
- };
4419
- export type ProviderNative = {
4420
- type: "native";
4421
- url?: string;
4422
- settings: {
4407
+ headers?: {
4408
+ [key: string]: string;
4409
+ };
4410
+ body?: {
4423
4411
  [key: string]: unknown;
4424
4412
  };
4425
4413
  };
4426
- export type ProviderApi = ProviderAisdk | ProviderNative;
4427
- export type ProviderV2Info = {
4428
- id: string;
4429
- integrationID?: string;
4430
- name: string;
4431
- disabled?: boolean;
4432
- api: ProviderApi;
4433
- request: ProviderRequest;
4434
- };
4435
4414
  export type IntegrationWhen = {
4436
4415
  key: string;
4437
4416
  op: "eq" | "neq";
@@ -7753,27 +7732,23 @@ export type SessionMessagesResponseV2 = {
7753
7732
  next?: string | null;
7754
7733
  };
7755
7734
  };
7756
- export type ModelApi2 = {
7735
+ export type ModelCapabilities2 = {
7736
+ tools: boolean;
7737
+ input: Array<string>;
7738
+ output: Array<string>;
7739
+ };
7740
+ export type ModelVariant2 = {
7757
7741
  id: string;
7758
- type: "aisdk";
7759
- package: string;
7760
- url?: string;
7761
7742
  settings?: {
7762
7743
  [key: string]: unknown;
7763
7744
  };
7764
- } | {
7765
- id: string;
7766
- type: "native";
7767
- url?: string;
7768
- settings: {
7745
+ headers?: {
7746
+ [key: string]: string;
7747
+ };
7748
+ body?: {
7769
7749
  [key: string]: unknown;
7770
7750
  };
7771
7751
  };
7772
- export type ModelCapabilities2 = {
7773
- tools: boolean;
7774
- input: Array<string>;
7775
- output: Array<string>;
7776
- };
7777
7752
  export type ModelCost2 = {
7778
7753
  tier?: {
7779
7754
  type: "context";
@@ -7788,31 +7763,22 @@ export type ModelCost2 = {
7788
7763
  };
7789
7764
  export type ModelV2Info2 = {
7790
7765
  id: string;
7766
+ modelID: string;
7791
7767
  providerID: string;
7792
7768
  family?: string;
7793
7769
  name: string;
7794
- api: ModelApi2;
7795
- capabilities: ModelCapabilities2;
7796
- request: {
7797
- settings: ProviderSettings2;
7798
- headers: {
7799
- [key: string]: string;
7800
- };
7801
- body: {
7802
- [key: string]: unknown;
7803
- };
7804
- variant?: string;
7770
+ package?: string;
7771
+ settings?: {
7772
+ [key: string]: unknown;
7805
7773
  };
7806
- variants: Array<{
7807
- id: string;
7808
- settings: ProviderSettings2;
7809
- headers: {
7810
- [key: string]: string;
7811
- };
7812
- body: {
7813
- [key: string]: unknown;
7814
- };
7815
- }>;
7774
+ headers?: {
7775
+ [key: string]: string;
7776
+ };
7777
+ body?: {
7778
+ [key: string]: unknown;
7779
+ };
7780
+ capabilities: ModelCapabilities2;
7781
+ variants: Array<ModelVariant2>;
7816
7782
  time: {
7817
7783
  released: number;
7818
7784
  };
@@ -7830,30 +7796,22 @@ export type GenerateTextResponseV2 = {
7830
7796
  text: string;
7831
7797
  };
7832
7798
  };
7833
- export type ProviderAisdk2 = {
7834
- type: "aisdk";
7799
+ export type ProviderV2Info2 = {
7800
+ id: string;
7801
+ integrationID?: string;
7802
+ name: string;
7803
+ disabled?: boolean;
7835
7804
  package: string;
7836
- url?: string;
7837
7805
  settings?: {
7838
7806
  [key: string]: unknown;
7839
7807
  };
7840
- };
7841
- export type ProviderNative2 = {
7842
- type: "native";
7843
- url?: string;
7844
- settings: {
7808
+ headers?: {
7809
+ [key: string]: string;
7810
+ };
7811
+ body?: {
7845
7812
  [key: string]: unknown;
7846
7813
  };
7847
7814
  };
7848
- export type ProviderApi2 = ProviderAisdk2 | ProviderNative2;
7849
- export type ProviderV2Info2 = {
7850
- id: string;
7851
- integrationID?: string;
7852
- name: string;
7853
- disabled?: boolean;
7854
- api: ProviderApi2;
7855
- request: ProviderRequest2;
7856
- };
7857
7815
  export type ProviderNotFoundErrorV2 = {
7858
7816
  _tag: "ProviderNotFoundError";
7859
7817
  providerID: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@opencode-ai/sdk",
4
- "version": "0.0.0-next-15002",
4
+ "version": "0.0.0-next-15006",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "scripts": {