@syrtis-ai/syrtis-javascript-client 0.0.74 → 2.0.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.
- package/README.md +40 -1
- package/package.json +2 -2
- package/src/Common/SyrtisClient.ts +11 -6
package/README.md
CHANGED
|
@@ -1,8 +1,47 @@
|
|
|
1
1
|
# @syrtis-ai/syrtis-javascript-client
|
|
2
2
|
|
|
3
|
-
Version: 0.0
|
|
3
|
+
Version: 2.0.0
|
|
4
4
|
|
|
5
5
|
## Table of Contents
|
|
6
6
|
|
|
7
|
+
- [Introduction](#introduction)
|
|
8
|
+
- [Usage](#usage)
|
|
9
|
+
- [Suite Signature](#suite-signature)
|
|
7
10
|
|
|
11
|
+
# @syrtis-ai/syrtis-javascript-client
|
|
12
|
+
|
|
13
|
+
Version: 0.0.75
|
|
14
|
+
|
|
15
|
+
## Table of Contents
|
|
16
|
+
|
|
17
|
+
## Installation
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
npm install @syrtis-ai/syrtis-javascript-client
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Instantiation
|
|
24
|
+
|
|
25
|
+
```typescript
|
|
26
|
+
import SyrtisClient from '@syrtis-ai/syrtis-javascript-client/Common/SyrtisClient';
|
|
27
|
+
|
|
28
|
+
const client = new SyrtisClient({
|
|
29
|
+
bearerToken: 'your_token_here',
|
|
30
|
+
});
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
By default the client targets the latest API version. To pin a specific version:
|
|
34
|
+
|
|
35
|
+
```typescript
|
|
36
|
+
const client = new SyrtisClient({
|
|
37
|
+
bearerToken: 'your_token_here',
|
|
38
|
+
});
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
# About us
|
|
42
|
+
|
|
43
|
+
[Syrtis AI](https://syrtis.ai) helps organizations turn artificial intelligence from an idea into reliable, measurable systems. We are a team of engineers and practitioners focused on implementing AI services inside real businesses — from strategy and architecture to deployment, integration, and long-term operations. Our goal is simple: deliver AI that works in production, fits your constraints, and earns its keep.
|
|
44
|
+
|
|
45
|
+
We build practical solutions that connect to existing tools, data, and processes, with an emphasis on security, performance, and governance. Whether it’s automating workflows, enhancing decision-making, or creating new product capabilities, Syrtis AI designs implementations that are maintainable, scalable, and aligned with business outcomes — not demos.
|
|
8
46
|
|
|
47
|
+
Syrtis AI promotes a culture of rigor and responsibility. Every delivery reflects a commitment to clear engineering, transparent communication, and trustworthy AI practices, so teams can adopt, operate, and evolve their AI services with confidence.
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.0
|
|
2
|
+
"version": "2.0.0",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"name": "@syrtis-ai/syrtis-javascript-client",
|
|
5
5
|
"scripts": {
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"access": "public"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@wexample/js-api": "0.0.
|
|
16
|
+
"@wexample/js-api": "^0.0.40"
|
|
17
17
|
},
|
|
18
18
|
"files": [
|
|
19
19
|
"src"
|
|
@@ -4,18 +4,23 @@ import type { RepositoryClass } from '@wexample/js-api/Common/ApiEntityManager';
|
|
|
4
4
|
import getEntitySchemas from './entitySchemas.js';
|
|
5
5
|
import generatedRepositories from './generatedRepositories.js';
|
|
6
6
|
|
|
7
|
+
export type SyrtisClientOptions = Omit<ApiClientOptions, 'baseUrl'> & {
|
|
8
|
+
host: string;
|
|
9
|
+
apiVersion?: string;
|
|
10
|
+
};
|
|
11
|
+
|
|
7
12
|
export default class SyrtisClient extends AbstractApiEntitiesClient {
|
|
8
13
|
static readonly API_VERSION_2025_3 = '2025-3';
|
|
9
14
|
static readonly API_VERSION_2026_1 = '2026-1';
|
|
10
15
|
static readonly API_VERSION_DEFAULT = SyrtisClient.API_VERSION_2026_1;
|
|
11
16
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
17
|
+
constructor(options: SyrtisClientOptions) {
|
|
18
|
+
const { host, apiVersion, ...rest } = options;
|
|
19
|
+
const version = apiVersion ?? SyrtisClient.API_VERSION_DEFAULT;
|
|
20
|
+
const normalizedHost = host.endsWith('/') ? host : host + '/';
|
|
16
21
|
super({
|
|
17
|
-
...
|
|
18
|
-
baseUrl:
|
|
22
|
+
...rest,
|
|
23
|
+
baseUrl: `${normalizedHost}api/${version}/`,
|
|
19
24
|
});
|
|
20
25
|
}
|
|
21
26
|
|