@axonflow/sdk 6.1.0 → 6.2.0

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.
@@ -17,4 +17,5 @@ export * from './hitl';
17
17
  export * from './media';
18
18
  export * from './simulation';
19
19
  export * from './decisions';
20
+ export * from './llm-providers';
20
21
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC"}
@@ -17,4 +17,5 @@ export * from './hitl.js';
17
17
  export * from './media.js';
18
18
  export * from './simulation.js';
19
19
  export * from './decisions.js';
20
+ export * from './llm-providers.js';
20
21
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1,63 @@
1
+ /**
2
+ * Types for the platform's LLM provider listing endpoint
3
+ * (`GET /api/v1/llm-providers`).
4
+ *
5
+ * Mirrors `LLMProvider` / `LLMProviderHealth` in the Python and Go SDKs.
6
+ */
7
+ /** Health snapshot for a registered LLM provider. */
8
+ export interface LLMProviderHealth {
9
+ status: string;
10
+ message?: string;
11
+ last_checked?: string;
12
+ }
13
+ /**
14
+ * A configured LLM provider returned by `client.listProviders()`.
15
+ *
16
+ * Mirrors the platform's `LLMProviderResource` schema. Optional fields
17
+ * are populated when the provider config has them set; `settings` is a
18
+ * free-form provider-specific record (e.g. Bedrock inference-profile id,
19
+ * Azure OpenAI deployment name).
20
+ */
21
+ export interface LLMProvider {
22
+ name: string;
23
+ type: string;
24
+ enabled: boolean;
25
+ priority?: number;
26
+ weight?: number;
27
+ has_api_key: boolean;
28
+ health?: LLMProviderHealth;
29
+ endpoint?: string;
30
+ model?: string;
31
+ region?: string;
32
+ rate_limit?: number;
33
+ timeout_seconds?: number;
34
+ settings?: Record<string, unknown>;
35
+ }
36
+ /**
37
+ * Optional filters and pagination controls for `client.listProviders()`.
38
+ * All fields are optional; leaving them undefined uses the server's
39
+ * defaults (page 1, page_size 20, no filtering).
40
+ */
41
+ export interface ListProvidersOptions {
42
+ /** Filter by provider type (e.g. `"openai"`, `"anthropic"`). */
43
+ type?: string;
44
+ /** Filter by the provider's enabled flag. */
45
+ enabled?: boolean;
46
+ /** 1-indexed page number. Server default: 1. */
47
+ page?: number;
48
+ /** Items per page. Server default: 20, max: 100. */
49
+ page_size?: number;
50
+ }
51
+ /** Pagination metadata returned alongside paginated list responses. */
52
+ export interface PaginationMeta {
53
+ page: number;
54
+ page_size: number;
55
+ total_items: number;
56
+ total_pages: number;
57
+ }
58
+ /** Paginated wrapper returned by `client.listProvidersPaged()`. */
59
+ export interface LLMProviderListResponse {
60
+ providers: LLMProvider[];
61
+ pagination: PaginationMeta;
62
+ }
63
+ //# sourceMappingURL=llm-providers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"llm-providers.d.ts","sourceRoot":"","sources":["../../../src/types/llm-providers.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,qDAAqD;AACrD,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,OAAO,CAAC;IACrB,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACpC;AAED;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACnC,gEAAgE;IAChE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,6CAA6C;IAC7C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,gDAAgD;IAChD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,oDAAoD;IACpD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,uEAAuE;AACvE,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,mEAAmE;AACnE,MAAM,WAAW,uBAAuB;IACtC,SAAS,EAAE,WAAW,EAAE,CAAC;IACzB,UAAU,EAAE,cAAc,CAAC;CAC5B"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Types for the platform's LLM provider listing endpoint
3
+ * (`GET /api/v1/llm-providers`).
4
+ *
5
+ * Mirrors `LLMProvider` / `LLMProviderHealth` in the Python and Go SDKs.
6
+ */
7
+ export {};
8
+ //# sourceMappingURL=llm-providers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"llm-providers.js","sourceRoot":"","sources":["../../../src/types/llm-providers.ts"],"names":[],"mappings":"AAAA;;;;;GAKG"}
@@ -7,5 +7,5 @@
7
7
  * During tests, Jest runs source directly and the test suite verifies
8
8
  * this value matches package.json.
9
9
  */
10
- export declare const VERSION = "6.1.0";
10
+ export declare const VERSION = "6.2.0";
11
11
  //# sourceMappingURL=version.d.ts.map
@@ -8,5 +8,5 @@
8
8
  * this value matches package.json.
9
9
  */
10
10
  // AUTO-GENERATED — do not edit. Run `npm run stamp-version` to update.
11
- export const VERSION = '6.1.0';
11
+ export const VERSION = '6.2.0';
12
12
  //# sourceMappingURL=version.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axonflow/sdk",
3
- "version": "6.1.0",
3
+ "version": "6.2.0",
4
4
  "description": "AxonFlow SDK - Add invisible AI governance to your applications in 3 lines of code",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -27,7 +27,7 @@
27
27
  "test": "jest",
28
28
  "test:coverage": "jest --coverage",
29
29
  "test:contract": "jest tests/contract.test.ts",
30
- "test:integration": "jest tests/integration.test.ts test/integration.test.ts --testTimeout=30000 --testPathIgnorePatterns='/node_modules/'",
30
+ "test:integration": "jest tests/integration.test.ts --testTimeout=30000 --testPathIgnorePatterns='/node_modules/'",
31
31
  "test:e2e": "jest tests/e2e-staging.test.ts --testTimeout=60000 --runInBand --testPathIgnorePatterns='/node_modules/'",
32
32
  "test:all": "jest --testPathIgnorePatterns='/node_modules/' --testTimeout=60000",
33
33
  "lint": "eslint 'src/**/*.ts' 'test/**/*.ts' 'tests/**/*.ts'",