@agentuity/aigateway 2.0.19 → 3.0.0-beta.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.
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- export { AIGatewayService, buildAIGatewayCompletionParams, type AIGatewayChatCompletion, type AIGatewayChatCompletionParams, type AIGatewayChatMessage, type AIGatewayCompletionAdapterRequest, type AIGatewayModel, type AIGatewayModelProvider, type AIGatewayModels, type AIGatewayModelsResponse, type AIGatewayPricing, type AIGatewayRequestOptions, type AIGatewayRequestResponse, type AIGatewayReasoning, type AIGatewayResponseMetadata, type AIGatewayStreamingCompletion, AIGatewayChatCompletionParamsSchema, AIGatewayChatCompletionSchema, AIGatewayChatMessageSchema, AIGatewayModelProviderSchema, AIGatewayModelSchema, AIGatewayModelsResponseSchema, AIGatewayModelsSchema, AIGatewayPricingSchema, } from '@agentuity/core/aigateway';
2
- import { type AIGatewayChatCompletion, type AIGatewayChatCompletionParams, type AIGatewayModels, type AIGatewayRequestOptions, type AIGatewayRequestResponse, type AIGatewayStreamingCompletion } from '@agentuity/core/aigateway';
3
- import { type Logger } from '@agentuity/server';
1
+ export { AIGatewayService, type AIGatewayChatCompletion, type AIGatewayChatCompletionParams, type AIGatewayChatMessage, type AIGatewayModel, type AIGatewayModelProvider, type AIGatewayModels, type AIGatewayModelsResponse, type AIGatewayPricing, AIGatewayChatCompletionParamsSchema, AIGatewayChatCompletionSchema, AIGatewayChatMessageSchema, AIGatewayModelProviderSchema, AIGatewayModelSchema, AIGatewayModelsResponseSchema, AIGatewayModelsSchema, AIGatewayPricingSchema, } from '@agentuity/core/aigateway';
2
+ import { type AIGatewayChatCompletion, type AIGatewayChatCompletionParams, type AIGatewayModels } from '@agentuity/core/aigateway';
3
+ import { type Logger } from '@agentuity/core';
4
4
  import { z } from 'zod';
5
5
  export declare const AIGatewayClientOptionsSchema: z.ZodObject<{
6
6
  apiKey: z.ZodOptional<z.ZodString>;
@@ -14,7 +14,5 @@ export declare class AIGatewayClient {
14
14
  constructor(options?: AIGatewayClientOptions);
15
15
  listModels(): Promise<AIGatewayModels>;
16
16
  complete(params: AIGatewayChatCompletionParams): Promise<AIGatewayChatCompletion>;
17
- request<T = unknown>(options: AIGatewayRequestOptions): Promise<AIGatewayRequestResponse<T>>;
18
- streamRequest(options: AIGatewayRequestOptions): Promise<AIGatewayStreamingCompletion>;
19
17
  }
20
18
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,gBAAgB,EAChB,8BAA8B,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,6BAA6B,EAClC,KAAK,oBAAoB,EACzB,KAAK,iCAAiC,EACtC,KAAK,cAAc,EACnB,KAAK,sBAAsB,EAC3B,KAAK,eAAe,EACpB,KAAK,uBAAuB,EAC5B,KAAK,gBAAgB,EACrB,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAC7B,KAAK,kBAAkB,EACvB,KAAK,yBAAyB,EAC9B,KAAK,4BAA4B,EACjC,mCAAmC,EACnC,6BAA6B,EAC7B,0BAA0B,EAC1B,4BAA4B,EAC5B,oBAAoB,EACpB,6BAA6B,EAC7B,qBAAqB,EACrB,sBAAsB,GACtB,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAEN,KAAK,uBAAuB,EAC5B,KAAK,6BAA6B,EAClC,KAAK,eAAe,EACpB,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAC7B,KAAK,4BAA4B,EACjC,MAAM,2BAA2B,CAAC;AAGnC,OAAO,EAAgD,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC9F,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,eAAO,MAAM,4BAA4B;;;;;iBAKvC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC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AAC,MAAM,EAAE,6BAA6B,GAAG,OAAO,CAAC,uBAAuB,CAAC;CAGvF"}
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
- export { AIGatewayService, buildAIGatewayCompletionParams, AIGatewayChatCompletionParamsSchema, AIGatewayChatCompletionSchema, AIGatewayChatMessageSchema, AIGatewayModelProviderSchema, AIGatewayModelSchema, AIGatewayModelsResponseSchema, AIGatewayModelsSchema, AIGatewayPricingSchema, } from '@agentuity/core/aigateway';
1
+ export { AIGatewayService, AIGatewayChatCompletionParamsSchema, AIGatewayChatCompletionSchema, AIGatewayChatMessageSchema, AIGatewayModelProviderSchema, AIGatewayModelSchema, AIGatewayModelsResponseSchema, AIGatewayModelsSchema, AIGatewayPricingSchema, } from '@agentuity/core/aigateway';
2
2
  import { AIGatewayService, } from '@agentuity/core/aigateway';
3
3
  import { createMinimalLogger, getEnv } from '@agentuity/core';
4
4
  import { getServiceUrls } from '@agentuity/core/config';
5
- import { buildClientHeaders, createServerFetchAdapter } from '@agentuity/server';
5
+ import { buildClientHeaders, createServerFetchAdapter } from '@agentuity/adapter';
6
6
  import { z } from 'zod';
7
7
  const isLogger = (val) => typeof val === 'object' &&
8
8
  val !== null &&
@@ -38,11 +38,5 @@ export class AIGatewayClient {
38
38
  async complete(params) {
39
39
  return this.#service.complete(params);
40
40
  }
41
- async request(options) {
42
- return this.#service.request(options);
43
- }
44
- async streamRequest(options) {
45
- return this.#service.streamRequest(options);
46
- }
47
41
  }
48
42
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,gBAAgB,EAChB,8BAA8B,EAe9B,mCAAmC,EACnC,6BAA6B,EAC7B,0BAA0B,EAC1B,4BAA4B,EAC5B,oBAAoB,EACpB,6BAA6B,EAC7B,qBAAqB,EACrB,sBAAsB,GACtB,MAAM,2BAA2B,CAAC;AAEnC,OA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AkC,EAAE;QAC/C,MAAM,gBAAgB,GAAG,4BAA4B,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACrE,MAAM,MAAM,GACX,gBAAgB,CAAC,MAAM;YACvB,MAAM,CAAC,yBAAyB,CAAC;YACjC,MAAM,CAAC,mBAAmB,CAAC;YAC3B,MAAM,CAAC,mBAAmB,CAAC,CAAC;QAC7B,MAAM,MAAM,GAAG,MAAM,CAAC,kBAAkB,CAAC,IAAI,KAAK,CAAC;QACnD,MAAM,WAAW,GAAG,cAAc,CAAC,MAAM,CAAC,CAAC;QAC3C,MAAM,GAAG,GACR,gBAAgB,CAAC,GAAG,IAAI,MAAM,CAAC,yBAAyB,CAAC,IAAI,WAAW,CAAC,SAAS,CAAC;QACpF,MAAM,MAAM,GAAG,gBAAgB,CAAC,MAAM,IAAI,mBAAmB,EAAE,CAAC;QAChE,MAAM,OAAO,GAAG,kBAAkB,CAAC;YAClC,MAAM;YACN,KAAK,EAAE,gBAAgB,CAAC,KAAK;SAC7B,CAAC,CAAC;QAEH,MAAM,OAAO,GAAG,wBAAwB,CAAC,EAAE,OAAO,EAAE,EAAE,MAAM,CAAC,CAAC;QAC9D,IAAI,CAAC,QAAQ,GAAG,IAAI,gBAAgB,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;IACpD,CAAC;IAED,KAAK,CAAC,UAAU;QACf,OAAO,IAAI,CAAC,QAAQ,CAAC,UAAU,EAAE,CAAC;IACnC,CAAC;IAED,KAAK,CAAC,QAAQ,CAAC,MAAqC;QACnD,OAAO,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IACvC,CAAC;CACD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentuity/aigateway",
3
- "version": "2.0.19",
3
+ "version": "3.0.0-beta.4",
4
4
  "license": "Apache-2.0",
5
5
  "author": "Agentuity employees and contributors",
6
6
  "type": "module",
@@ -20,23 +20,27 @@
20
20
  },
21
21
  "scripts": {
22
22
  "clean": "rm -rf dist tsconfig.tsbuildinfo",
23
- "build": "bunx tsc --build --force",
24
- "typecheck": "bunx tsc --noEmit",
23
+ "build": "tsgo --build --force",
24
+ "typecheck": "tsgo --noEmit",
25
25
  "prepublishOnly": "bun run clean && bun run build"
26
26
  },
27
27
  "dependencies": {
28
- "@agentuity/core": "2.0.19",
29
- "@agentuity/server": "2.0.19",
28
+ "@agentuity/core": "3.0.0-beta.4",
29
+ "@agentuity/adapter": "3.0.0-beta.4",
30
30
  "zod": "^4.3.5"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@types/bun": "latest",
34
34
  "@types/node": "^22.0.0",
35
- "bun-types": "latest",
36
- "typescript": "^5.9.0"
35
+ "typescript": "^6.0.2"
37
36
  },
38
37
  "publishConfig": {
39
38
  "access": "public"
40
39
  },
41
- "sideEffects": false
40
+ "sideEffects": false,
41
+ "repository": {
42
+ "type": "git",
43
+ "url": "git+https://github.com/agentuity/sdk.git",
44
+ "directory": "packages/aigateway"
45
+ }
42
46
  }
package/src/index.ts CHANGED
@@ -1,20 +1,13 @@
1
1
  export {
2
2
  AIGatewayService,
3
- buildAIGatewayCompletionParams,
4
3
  type AIGatewayChatCompletion,
5
4
  type AIGatewayChatCompletionParams,
6
5
  type AIGatewayChatMessage,
7
- type AIGatewayCompletionAdapterRequest,
8
6
  type AIGatewayModel,
9
7
  type AIGatewayModelProvider,
10
8
  type AIGatewayModels,
11
9
  type AIGatewayModelsResponse,
12
10
  type AIGatewayPricing,
13
- type AIGatewayRequestOptions,
14
- type AIGatewayRequestResponse,
15
- type AIGatewayReasoning,
16
- type AIGatewayResponseMetadata,
17
- type AIGatewayStreamingCompletion,
18
11
  AIGatewayChatCompletionParamsSchema,
19
12
  AIGatewayChatCompletionSchema,
20
13
  AIGatewayChatMessageSchema,
@@ -30,13 +23,10 @@ import {
30
23
  type AIGatewayChatCompletion,
31
24
  type AIGatewayChatCompletionParams,
32
25
  type AIGatewayModels,
33
- type AIGatewayRequestOptions,
34
- type AIGatewayRequestResponse,
35
- type AIGatewayStreamingCompletion,
36
26
  } from '@agentuity/core/aigateway';
37
- import { createMinimalLogger, getEnv } from '@agentuity/core';
27
+ import { createMinimalLogger, getEnv, type Logger } from '@agentuity/core';
38
28
  import { getServiceUrls } from '@agentuity/core/config';
39
- import { buildClientHeaders, createServerFetchAdapter, type Logger } from '@agentuity/server';
29
+ import { buildClientHeaders, createServerFetchAdapter } from '@agentuity/adapter';
40
30
  import { z } from 'zod';
41
31
 
42
32
  const isLogger = (val: unknown): val is Logger =>
@@ -86,14 +76,4 @@ export class AIGatewayClient {
86
76
  async complete(params: AIGatewayChatCompletionParams): Promise<AIGatewayChatCompletion> {
87
77
  return this.#service.complete(params);
88
78
  }
89
-
90
- async request<T = unknown>(
91
- options: AIGatewayRequestOptions
92
- ): Promise<AIGatewayRequestResponse<T>> {
93
- return this.#service.request<T>(options);
94
- }
95
-
96
- async streamRequest(options: AIGatewayRequestOptions): Promise<AIGatewayStreamingCompletion> {
97
- return this.#service.streamRequest(options);
98
- }
99
79
  }