@xberg-io/sdk 0.5.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 +12 -7
- package/dist/index.d.ts +8371 -1068
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +164 -98
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -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. `
|
|
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
|
|
126
|
-
|
|
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`,
|
|
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
|
-
`
|
|
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
|
|