@replicer/sdk 0.0.0-stage → 0.1.1

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Hetyna S.r.l.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,115 @@
1
- # Temporary Holding Version
1
+ # @replicer/sdk
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Typed JavaScript/TypeScript client for the [Replicer](https://replicer.ai) API. Zero dependencies, uses the platform `fetch` (Node 18+, Bun, Deno, edge runtimes).
4
+
5
+ ```bash
6
+ npm install @replicer/sdk
7
+ ```
8
+
9
+ ## Quick start
10
+
11
+ ```ts
12
+ import { Replicer, ReplicerError } from '@replicer/sdk'
13
+
14
+ const replicer = new Replicer({ apiKey: process.env.REPLICER_API_KEY! })
15
+
16
+ try {
17
+ const { call_id, status } = await replicer.call.createPhoneCall({
18
+ agent_id: 'agent_123',
19
+ to_number: '+39111111111',
20
+ dynamic_variables: { company: 'Acme' },
21
+ })
22
+ console.log(call_id, status) // "pending"
23
+
24
+ const call = await replicer.call.get(call_id)
25
+
26
+ const { data, pagination } = await replicer.call.list({ status: 'completed', limit: 10 })
27
+ console.log(data.length, pagination.total_pages)
28
+ }
29
+ catch (err) {
30
+ if (err instanceof ReplicerError) {
31
+ console.error(err.status, err.code, err.message, err.requestId)
32
+ if (err.status === 429) console.error(`retry in ${err.retryAfter}s`)
33
+ }
34
+ else throw err
35
+ }
36
+ ```
37
+
38
+ > Keep your API key on the server. Never ship it to browsers or mobile apps.
39
+
40
+ Parameters and response fields are **snake_case**, exactly as on the wire.
41
+
42
+ ## Resources
43
+
44
+ | Resource | Methods |
45
+ |----------|---------|
46
+ | `replicer.call` | `createPhoneCall`, `cancel`, `cancelCampaignPending`, `list`, `get` |
47
+ | `replicer.campaign` | `create`, `get`, `list`, `start` |
48
+ | `replicer.phoneNumber` | `provisionInbound`, `deprovisionInbound` |
49
+ | `replicer.knowledgeBase` | `create`, `retrieve`, `list`, `delete`, `addSources`, `deleteSource`, `update`, `presignFile`, `completeFile`, `failFile`, `reindex`, `updateSource`, `updateChunk`, `getSource`, `presignFileDownload` |
50
+ | `replicer.contact` | `list`, `create` |
51
+ | `replicer.agent` | `list` |
52
+ | `replicer.calendar` | `listEvents`, `createEvent` |
53
+ | `replicer.message` | `list`, `sendSms`, `sendWhatsapp`, `sendEmail` |
54
+ | `replicer.tts` | `create`, `list`, `get` |
55
+
56
+ Single-resource methods resolve to the JSON body exactly as the API returns it (for example `createPhoneCall` resolves to `{ call_id, status }`). List methods resolve to `{ data, pagination: { page, limit, total, total_pages } }` and accept `page` / `limit` (1..100, default 20) plus resource filters:
57
+
58
+ ```ts
59
+ await replicer.call.list({ status: 'completed', direction: 'outbound', date_from: '2026-01-01T00:00:00Z' })
60
+ await replicer.campaign.list({ status: 'RUNNING' })
61
+ await replicer.contact.list({ search: 'ann' })
62
+ await replicer.calendar.listEvents({ calendar_id: 'cal_1', status: 'CONFIRMED', date_from: '2026-01-01T00:00:00Z' })
63
+ await replicer.message.list({ channel: 'sms' })
64
+ await replicer.tts.list({ status: 'completed' })
65
+ ```
66
+
67
+ Deleting a knowledge base resolves to `undefined` (HTTP 204).
68
+
69
+ > `campaign.create` and `campaign.get` currently return the legacy `{ success, campaign }` wrapper with camelCase campaign fields; `campaign.list` returns the snake_case envelope. The types model each response exactly as sent.
70
+
71
+ `message.send*` methods queue the message and resolve to `{ task_id, channel, status: 'queued' }`; `tts.create` resolves to `{ id, status: 'queued', character_count }` (poll with `tts.get`).
72
+
73
+ ## Errors
74
+
75
+ Any non-2xx response, network failure, or non-JSON 2xx response rejects with a `ReplicerError`:
76
+
77
+ | Field | Meaning |
78
+ |-------|---------|
79
+ | `status` | HTTP status, `0` for network failures |
80
+ | `code` | `body.code` when sent (`validation_error`, `not_found`, ...), else `network_error`, `invalid_response` or `http_<status>` |
81
+ | `message` / `errorMessage` | The API's `error` string when present, else the raw body or status text |
82
+ | `body` | Parsed JSON error body, or raw text when not JSON |
83
+ | `path` | Request path |
84
+ | `requestId` | `x-request-id` response header, when present |
85
+ | `retryAfter` | Seconds from `Retry-After` (429), when provided |
86
+
87
+ ## Options
88
+
89
+ ```ts
90
+ new Replicer({
91
+ apiKey: '…', // required
92
+ baseURL: 'https://api.replicer.ai', // default
93
+ fetch: customFetch, // optional
94
+ })
95
+ ```
96
+
97
+ ## Verifying webhooks
98
+
99
+ The `X-Replicer-Signature` header is `sha256=<hex>`: the hex HMAC-SHA256 of the raw request body with your endpoint secret. Use the body exactly as received (never re-serialized JSON). The helper is server-only (it uses `node:crypto`), so it lives in its own subpath and the main entry stays edge/browser-bundle friendly:
100
+
101
+ ```ts
102
+ import { verifyWebhookSignature } from '@replicer/sdk/webhooks'
103
+
104
+ const ok = verifyWebhookSignature({
105
+ payload: rawBody, // string or Uint8Array/Buffer
106
+ signature: req.headers['x-replicer-signature'], // "sha256=<hex>"
107
+ secret: process.env.REPLICER_WEBHOOK_SECRET!,
108
+ })
109
+ ```
110
+
111
+ It returns `false` (never throws) for a missing or malformed signature. The `X-Replicer-Timestamp` header is not signed: for replay protection, de-duplicate on `X-Replicer-Delivery-Id`.
112
+
113
+ ## Route table
114
+
115
+ `ROUTES` (`{ method, path, sdk }[]`) is exported and drives every SDK method; it is checked against the engine API route files in CI.
package/dist/index.cjs ADDED
@@ -0,0 +1,299 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/index.ts
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
+ DEFAULT_BASE_URL: () => DEFAULT_BASE_URL,
24
+ ROUTES: () => ROUTES,
25
+ Replicer: () => Replicer,
26
+ ReplicerError: () => ReplicerError
27
+ });
28
+ module.exports = __toCommonJS(index_exports);
29
+
30
+ // src/errors.ts
31
+ var ReplicerError = class extends Error {
32
+ /** HTTP status code (0 when the request never produced a response). */
33
+ status;
34
+ /** `body.code` when the API sent one, else `network_error`, `invalid_response` or `http_<status>`. */
35
+ code;
36
+ /** Parsed JSON error body, or the raw response text when it was not JSON. */
37
+ body;
38
+ /** Request path (without the base URL or query string). */
39
+ path;
40
+ /** `x-request-id` response header, when present. */
41
+ requestId;
42
+ /** Seconds to wait before retrying (from `Retry-After` on a 429), when provided. */
43
+ retryAfter;
44
+ constructor(init) {
45
+ super(init.message, init.cause === void 0 ? void 0 : { cause: init.cause });
46
+ this.name = "ReplicerError";
47
+ this.status = init.status;
48
+ this.code = init.code;
49
+ this.body = init.body;
50
+ this.path = init.path ?? "";
51
+ this.requestId = init.requestId;
52
+ this.retryAfter = init.retryAfter;
53
+ }
54
+ /** Best human-readable message: the API's `error` string, else the raw text body, else `message`. */
55
+ get errorMessage() {
56
+ if (this.body && typeof this.body === "object" && typeof this.body.error === "string") {
57
+ return this.body.error;
58
+ }
59
+ if (typeof this.body === "string" && this.body !== "") return this.body;
60
+ return this.message;
61
+ }
62
+ };
63
+
64
+ // src/routes.ts
65
+ var ROUTES = [
66
+ { method: "POST", path: "/v1/create-phone-call", sdk: "call.createPhoneCall" },
67
+ { method: "POST", path: "/v1/cancel-call", sdk: "call.cancel" },
68
+ { method: "POST", path: "/v1/cancel-campaign-pending", sdk: "call.cancelCampaignPending" },
69
+ { method: "GET", path: "/v1/list-calls", sdk: "call.list" },
70
+ { method: "GET", path: "/v1/get-call/:id", sdk: "call.get" },
71
+ { method: "POST", path: "/v1/campaigns", sdk: "campaign.create" },
72
+ { method: "GET", path: "/v1/campaigns/:id", sdk: "campaign.get" },
73
+ { method: "GET", path: "/v1/list-campaigns", sdk: "campaign.list" },
74
+ { method: "POST", path: "/v1/start-campaign/:id", sdk: "campaign.start" },
75
+ { method: "GET", path: "/v1/list-phone-numbers", sdk: "phoneNumber.list" },
76
+ { method: "POST", path: "/v1/phone-numbers/inbound", sdk: "phoneNumber.provisionInbound" },
77
+ { method: "DELETE", path: "/v1/phone-numbers/inbound/:id", sdk: "phoneNumber.deprovisionInbound" },
78
+ { method: "POST", path: "/v1/create-knowledge-base", sdk: "knowledgeBase.create" },
79
+ { method: "GET", path: "/v1/get-knowledge-base/:id", sdk: "knowledgeBase.retrieve" },
80
+ { method: "GET", path: "/v1/list-knowledge-bases", sdk: "knowledgeBase.list" },
81
+ { method: "DELETE", path: "/v1/delete-knowledge-base/:id", sdk: "knowledgeBase.delete" },
82
+ { method: "POST", path: "/v1/add-knowledge-base-sources/:id", sdk: "knowledgeBase.addSources" },
83
+ { method: "DELETE", path: "/v1/delete-knowledge-base-source/:source_id", sdk: "knowledgeBase.deleteSource" },
84
+ { method: "PATCH", path: "/v1/update-knowledge-base/:id", sdk: "knowledgeBase.update" },
85
+ { method: "POST", path: "/v1/presign-knowledge-base-file/:id", sdk: "knowledgeBase.presignFile" },
86
+ { method: "POST", path: "/v1/complete-knowledge-base-file/:id/:source_id", sdk: "knowledgeBase.completeFile" },
87
+ { method: "POST", path: "/v1/fail-knowledge-base-file/:id/:source_id", sdk: "knowledgeBase.failFile" },
88
+ { method: "PUT", path: "/v1/reindex-knowledge-base/:id", sdk: "knowledgeBase.reindex" },
89
+ { method: "PATCH", path: "/v1/update-knowledge-base-source/:id/:source_id", sdk: "knowledgeBase.updateSource" },
90
+ { method: "PATCH", path: "/v1/update-knowledge-base-chunk/:id/:chunk_id", sdk: "knowledgeBase.updateChunk" },
91
+ { method: "GET", path: "/v1/get-knowledge-base-source/:id/:source_id", sdk: "knowledgeBase.getSource" },
92
+ { method: "GET", path: "/v1/presign-knowledge-base-file-download/:id/:source_id", sdk: "knowledgeBase.presignFileDownload" },
93
+ { method: "GET", path: "/v1/list-contacts", sdk: "contact.list" },
94
+ { method: "POST", path: "/v1/create-contact", sdk: "contact.create" },
95
+ { method: "GET", path: "/v1/list-agents", sdk: "agent.list" },
96
+ { method: "GET", path: "/v1/list-calendar-events", sdk: "calendar.listEvents" },
97
+ { method: "POST", path: "/v1/create-calendar-event", sdk: "calendar.createEvent" },
98
+ { method: "GET", path: "/v1/list-messages", sdk: "message.list" },
99
+ { method: "POST", path: "/v1/send-sms", sdk: "message.sendSms" },
100
+ { method: "POST", path: "/v1/send-whatsapp", sdk: "message.sendWhatsapp" },
101
+ { method: "POST", path: "/v1/send-email", sdk: "message.sendEmail" },
102
+ { method: "POST", path: "/v1/create-tts", sdk: "tts.create" },
103
+ { method: "GET", path: "/v1/list-tts", sdk: "tts.list" },
104
+ { method: "GET", path: "/v1/get-tts/:id", sdk: "tts.get" }
105
+ ];
106
+
107
+ // src/client.ts
108
+ var DEFAULT_BASE_URL = "https://api.replicer.ai";
109
+ var ROUTE_BY_SDK = new Map(ROUTES.map((r) => [r.sdk, r]));
110
+ var Replicer = class {
111
+ apiKey;
112
+ baseURL;
113
+ fetchImpl;
114
+ constructor(options) {
115
+ if (!options || typeof options.apiKey !== "string" || options.apiKey.trim() === "") {
116
+ throw new TypeError("Replicer: `apiKey` is required");
117
+ }
118
+ const impl = options.fetch ?? globalThis.fetch;
119
+ if (typeof impl !== "function") {
120
+ throw new TypeError("Replicer: no global `fetch` found; pass one via the `fetch` option");
121
+ }
122
+ this.apiKey = options.apiKey;
123
+ this.baseURL = (options.baseURL ?? DEFAULT_BASE_URL).replace(/\/+$/, "");
124
+ this.fetchImpl = impl.bind(globalThis);
125
+ }
126
+ call = {
127
+ createPhoneCall: (input) => this.request("call.createPhoneCall", { body: input }),
128
+ cancel: (call_id) => this.request("call.cancel", { body: { call_id } }),
129
+ cancelCampaignPending: (campaign_id) => this.request("call.cancelCampaignPending", { body: { campaign_id } }),
130
+ list: (params) => this.request("call.list", { query: params }),
131
+ get: (id) => this.request("call.get", { params: { id } })
132
+ };
133
+ campaign = {
134
+ create: (input) => this.request("campaign.create", { body: input }),
135
+ /** Includes up to 1,000 contacts (`contacts_truncated` tells whether there are more). */
136
+ get: (id) => this.request("campaign.get", { params: { id } }),
137
+ list: (params) => this.request("campaign.list", { query: params }),
138
+ /** Starts a campaign, or resumes one paused by `call.cancelCampaignPending`. */
139
+ start: (id) => this.request("campaign.start", { params: { id } })
140
+ };
141
+ phoneNumber = {
142
+ /** Your organization's phone numbers; `id` is the `from_number_id` for `call.createPhoneCall`. */
143
+ list: (params) => this.request("phoneNumber.list", { query: params }),
144
+ provisionInbound: (input) => this.request("phoneNumber.provisionInbound", { body: input }),
145
+ deprovisionInbound: (id, trunk_id, rule_id) => this.request("phoneNumber.deprovisionInbound", { params: { id }, query: { trunk_id, rule_id } })
146
+ };
147
+ knowledgeBase = {
148
+ create: (input) => this.request("knowledgeBase.create", { body: input }),
149
+ retrieve: (knowledgeBaseId) => this.request("knowledgeBase.retrieve", { params: { id: knowledgeBaseId } }),
150
+ list: () => this.request("knowledgeBase.list"),
151
+ delete: (knowledgeBaseId) => this.request("knowledgeBase.delete", { params: { id: knowledgeBaseId } }),
152
+ addSources: (knowledgeBaseId, input) => this.request("knowledgeBase.addSources", { params: { id: knowledgeBaseId }, body: input }),
153
+ deleteSource: (sourceId, knowledgeBaseId) => this.request("knowledgeBase.deleteSource", {
154
+ params: { source_id: sourceId },
155
+ query: { knowledge_base_id: knowledgeBaseId }
156
+ }),
157
+ update: (knowledgeBaseId, input) => this.request("knowledgeBase.update", { params: { id: knowledgeBaseId }, body: input }),
158
+ presignFile: (knowledgeBaseId, input) => this.request("knowledgeBase.presignFile", { params: { id: knowledgeBaseId }, body: input }),
159
+ completeFile: (knowledgeBaseId, sourceId) => this.request("knowledgeBase.completeFile", {
160
+ params: { id: knowledgeBaseId, source_id: sourceId },
161
+ body: {}
162
+ }),
163
+ failFile: (knowledgeBaseId, sourceId, input) => this.request("knowledgeBase.failFile", {
164
+ params: { id: knowledgeBaseId, source_id: sourceId },
165
+ body: input ?? {}
166
+ }),
167
+ reindex: (knowledgeBaseId) => this.request("knowledgeBase.reindex", { params: { id: knowledgeBaseId }, body: {} }),
168
+ updateSource: (knowledgeBaseId, sourceId, input) => this.request("knowledgeBase.updateSource", {
169
+ params: { id: knowledgeBaseId, source_id: sourceId },
170
+ body: input
171
+ }),
172
+ updateChunk: (knowledgeBaseId, chunkId, input) => this.request("knowledgeBase.updateChunk", {
173
+ params: { id: knowledgeBaseId, chunk_id: chunkId },
174
+ body: input
175
+ }),
176
+ getSource: (knowledgeBaseId, sourceId) => this.request("knowledgeBase.getSource", {
177
+ params: { id: knowledgeBaseId, source_id: sourceId }
178
+ }),
179
+ presignFileDownload: (knowledgeBaseId, sourceId) => this.request("knowledgeBase.presignFileDownload", {
180
+ params: { id: knowledgeBaseId, source_id: sourceId }
181
+ })
182
+ };
183
+ contact = {
184
+ list: (params) => this.request("contact.list", { query: params }),
185
+ create: (input) => this.request("contact.create", { body: input })
186
+ };
187
+ agent = {
188
+ list: (params) => this.request("agent.list", { query: params })
189
+ };
190
+ calendar = {
191
+ listEvents: (params) => this.request("calendar.listEvents", { query: params }),
192
+ createEvent: (input) => this.request("calendar.createEvent", { body: input })
193
+ };
194
+ message = {
195
+ list: (params) => this.request("message.list", { query: params }),
196
+ sendSms: (input) => this.request("message.sendSms", { body: input }),
197
+ sendWhatsapp: (input) => this.request("message.sendWhatsapp", { body: input }),
198
+ sendEmail: (input) => this.request("message.sendEmail", { body: input })
199
+ };
200
+ tts = {
201
+ create: (input) => this.request("tts.create", { body: input }),
202
+ list: (params) => this.request("tts.list", { query: params }),
203
+ get: (id) => this.request("tts.get", { params: { id } })
204
+ };
205
+ async request(sdk, opts = {}) {
206
+ const route = ROUTE_BY_SDK.get(sdk);
207
+ if (!route) throw new Error(`Replicer: unknown route ${sdk}`);
208
+ const params = opts.params ?? {};
209
+ const path = route.path.replace(/:([A-Za-z_]+)/g, (_m, name) => {
210
+ const value = params[name];
211
+ if (typeof value !== "string" || value === "" || value === "." || value === "..") {
212
+ throw new ReplicerError({
213
+ status: 0,
214
+ code: "validation_error",
215
+ message: `Replicer: invalid \`${name}\` path parameter`,
216
+ path: route.path
217
+ });
218
+ }
219
+ return encodeURIComponent(value);
220
+ });
221
+ const qs = buildQuery(opts.query);
222
+ const url = `${this.baseURL}${path}${qs ? `?${qs}` : ""}`;
223
+ const headers = {
224
+ authorization: `Bearer ${this.apiKey}`,
225
+ accept: "application/json"
226
+ };
227
+ let body;
228
+ if (opts.body !== void 0) {
229
+ headers["content-type"] = "application/json";
230
+ body = JSON.stringify(opts.body);
231
+ }
232
+ let res;
233
+ try {
234
+ res = await this.fetchImpl(url, { method: route.method, headers, body });
235
+ } catch (cause) {
236
+ throw new ReplicerError({
237
+ status: 0,
238
+ code: "network_error",
239
+ message: `Request to ${route.method} ${path} failed: ${cause instanceof Error ? cause.message : String(cause)}`,
240
+ path,
241
+ cause
242
+ });
243
+ }
244
+ const requestId = res.headers.get("x-request-id") ?? void 0;
245
+ const text = await res.text();
246
+ let parsed;
247
+ let isJson = false;
248
+ if (text) {
249
+ try {
250
+ parsed = JSON.parse(text);
251
+ isJson = true;
252
+ } catch {
253
+ isJson = false;
254
+ }
255
+ }
256
+ if (!res.ok) {
257
+ const errBody = isJson && parsed && typeof parsed === "object" ? parsed : void 0;
258
+ const retryAfterRaw = res.headers.get("retry-after");
259
+ const retryAfter = retryAfterRaw !== null && retryAfterRaw.trim() !== "" && Number.isFinite(Number(retryAfterRaw)) ? Number(retryAfterRaw) : void 0;
260
+ throw new ReplicerError({
261
+ status: res.status,
262
+ code: typeof errBody?.code === "string" && errBody.code ? errBody.code : `http_${res.status}`,
263
+ message: typeof errBody?.error === "string" && errBody.error ? errBody.error : text || res.statusText || `HTTP ${res.status}`,
264
+ body: isJson ? parsed : text,
265
+ path,
266
+ requestId,
267
+ retryAfter
268
+ });
269
+ }
270
+ if (res.status === 204) return void 0;
271
+ if (!isJson) {
272
+ throw new ReplicerError({
273
+ status: res.status,
274
+ code: "invalid_response",
275
+ message: `Expected a JSON response from ${route.method} ${path}`,
276
+ body: text,
277
+ path,
278
+ requestId
279
+ });
280
+ }
281
+ return parsed;
282
+ }
283
+ };
284
+ function buildQuery(query) {
285
+ if (!query) return "";
286
+ const params = new URLSearchParams();
287
+ for (const [key, value] of Object.entries(query)) {
288
+ if (value === void 0 || value === null) continue;
289
+ params.set(key, String(value));
290
+ }
291
+ return params.toString();
292
+ }
293
+ // Annotate the CommonJS export names for ESM import in node:
294
+ 0 && (module.exports = {
295
+ DEFAULT_BASE_URL,
296
+ ROUTES,
297
+ Replicer,
298
+ ReplicerError
299
+ });