@xberg-io/sdk 0.4.0 → 0.6.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 CHANGED
@@ -18,7 +18,7 @@
18
18
  <a href="https://pypi.org/project/xberg-io-sdk/"><img src="https://img.shields.io/pypi/v/xberg-io-sdk?label=PyPI&color=007ec6" alt="PyPI"></a>
19
19
  <a href="https://www.npmjs.com/package/@xberg-io/sdk"><img src="https://img.shields.io/npm/v/%40xberg-io%2Fsdk?label=npm&color=007ec6" alt="npm"></a>
20
20
  <a href="https://pkg.go.dev/github.com/xberg-io/sdks/packages/go"><img src="https://img.shields.io/badge/Go-pkg.go.dev-007ec6?logo=go&logoColor=white" alt="Go Reference"></a>
21
- <a href="https://github.com/xberg-io/sdks/blob/main/LICENSE"><img src="https://img.shields.io/badge/License-MIT-blue.svg" alt="License"></a>
21
+ <a href="https://github.com/xberg-io/sdks/blob/main/LICENSE"><img src="https://img.shields.io/badge/License-MIT-007ec6" alt="License"></a>
22
22
  <a href="https://docs.sdks.xberg.io"><img src="https://img.shields.io/badge/docs-docs.sdks.xberg.io-007ec6" alt="Documentation"></a>
23
23
  <a href="https://github.com/xberg-io/sdks/actions/workflows/validate.yml"><img src="https://github.com/xberg-io/sdks/actions/workflows/validate.yml/badge.svg" alt="CI"></a>
24
24
 
@@ -30,7 +30,7 @@
30
30
 
31
31
  </div>
32
32
 
33
- Official TypeScript / Node.js client for the [Xberg Enterprise](https://enterprise.xberg.io)
33
+ Official TypeScript / Node.js client for the [Xberg Enterprise](https://xberg.io)
34
34
  and Xberg Pro document-processing APIs. One `XbergClient` speaks to either
35
35
  product: the shared surface (extraction, jobs, audit, curated presets, RAG) is
36
36
  written once, and tier-specific methods are capability-gated.
@@ -59,8 +59,8 @@ const pro = new XbergClient({ apiKey: process.env.XBERG_API_KEY!, target: "pro",
59
59
  ```
60
60
 
61
61
  When `target` is omitted the tier is discovered lazily from `GET /healthz`.
62
- Calling a method not available on the connected tier (e.g. `usage()` on Pro, or
63
- `login()` on Enterprise) throws a clear "not available on this tier" error.
62
+ Calling a method not available on the connected tier (e.g. `versions()` on Pro,
63
+ or `login()` on Enterprise) throws a clear "not available on this tier" error.
64
64
 
65
65
  ## Quickstart — single file
66
66
 
@@ -122,18 +122,23 @@ Shared surface (both tiers):
122
122
  extraction result (`GET /v1/jobs/{id}/result`). They are different schemas — the
123
123
  polling helpers return the former, `getJobResult` the latter.
124
124
 
125
- Saved presets are shared but the two products spell the route differently —
126
- Enterprise serves `/v1/saved_presets`, Pro `/v1/saved-presets`, with identical
127
- schemas. The client resolves the tier and picks the spelling for you.
125
+ Saved presets are shared, and both products serve them at `/v1/saved_presets`
126
+ with identical schemas.
128
127
 
129
- Xberg Pro only: `login`, `authConfig`, `getRagConfig` / `setRagConfig`, and the
128
+ Xberg Pro only: `login`, `authConfig`, `getRagConfig` / `setRagConfig`,
129
+ `getLicenseInfo`, `putLocalUpload`, and the
130
130
  control plane — `listProjects` / `createProject`, `listApiKeys` / `createApiKey` /
131
131
  `revokeApiKey`, `listIntegrations` / `createIntegration` / `getIntegration` /
132
132
  `deleteIntegration`, `connectIntegration` / `disconnectIntegration`,
133
133
  `listIntegrationDocuments` / `fetchIntegrationDocument`.
134
134
 
135
135
  Xberg Enterprise only: `getDocument`, `versions`, `diff` / `getDiffJob`,
136
- `presignUpload` / `confirmUpload`, `usage`, `listExtractionEvents`, `getJobPage`,
136
+ `listExtractionEvents`, `listSubscriptionDeliveries` / `getSubscriptionDelivery`.
137
+
138
+ Both tiers also carry `stopAutoTuneJob` and `listManagedEmbeddingPresets`.
139
+
140
+ Available on both tiers, though earlier releases wrongly gated them to
141
+ Enterprise: `presignUpload` / `confirmUpload`, `usage`, `getJobPage`,
137
142
  `submitEnrich` / `getEnrichStatus`, `streamCrawlEvents` (an `AsyncIterable` over
138
143
  a Server-Sent Events stream).
139
144
 
@@ -161,7 +166,7 @@ is still exported for direct OpenAPI access.
161
166
  ## Docs
162
167
 
163
168
  - SDK docs: <https://docs.sdks.xberg.io>
164
- - Full reference at <https://enterprise.xberg.io>.
169
+ - Product overview: <https://xberg.io>
165
170
 
166
171
  ## License
167
172