@pdfvector/client 0.1.0 → 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/CHANGELOG.md +6 -0
- package/dist/contract.cjs +155 -6
- package/dist/contract.d.cts +145 -1
- package/dist/contract.d.mts +145 -1
- package/dist/contract.mjs +155 -6
- package/dist/index.cjs +54 -17
- package/dist/index.d.cts +145 -1
- package/dist/index.d.mts +145 -1
- package/dist/index.mjs +54 -17
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -1544,6 +1544,56 @@ declare const similarPapers: ContractProcedureBuilderWithInputOutput<z.ZodObject
|
|
|
1544
1544
|
declare namespace index_d_exports$8 {
|
|
1545
1545
|
export { fetch, findCitations, paperGraph, parse$4 as parse, search, searchGrants, similarPapers };
|
|
1546
1546
|
}
|
|
1547
|
+
declare const deleteRetainedInputs: ContractProcedureBuilderWithInputOutput<z.ZodUnion<readonly [z.ZodObject<{
|
|
1548
|
+
usageKind: z.ZodEnum<{
|
|
1549
|
+
api: "api";
|
|
1550
|
+
free: "free";
|
|
1551
|
+
}>;
|
|
1552
|
+
usageId: z.ZodNumber;
|
|
1553
|
+
workspaceId: z.ZodOptional<z.ZodNumber>;
|
|
1554
|
+
actor: z.ZodObject<{
|
|
1555
|
+
type: z.ZodEnum<{
|
|
1556
|
+
account_deletion: "account_deletion";
|
|
1557
|
+
admin: "admin";
|
|
1558
|
+
workspace_owner: "workspace_owner";
|
|
1559
|
+
}>;
|
|
1560
|
+
userId: z.ZodString;
|
|
1561
|
+
email: z.ZodOptional<z.ZodString>;
|
|
1562
|
+
}, z.core.$strip>;
|
|
1563
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1564
|
+
workspaceId: z.ZodNumber;
|
|
1565
|
+
actor: z.ZodObject<{
|
|
1566
|
+
type: z.ZodEnum<{
|
|
1567
|
+
account_deletion: "account_deletion";
|
|
1568
|
+
admin: "admin";
|
|
1569
|
+
workspace_owner: "workspace_owner";
|
|
1570
|
+
}>;
|
|
1571
|
+
userId: z.ZodString;
|
|
1572
|
+
email: z.ZodOptional<z.ZodString>;
|
|
1573
|
+
}, z.core.$strip>;
|
|
1574
|
+
}, z.core.$strip>]>, z.ZodObject<{
|
|
1575
|
+
deleted: z.ZodNumber;
|
|
1576
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1577
|
+
declare const downloadRetainedInput: ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1578
|
+
usageKind: z.ZodEnum<{
|
|
1579
|
+
api: "api";
|
|
1580
|
+
free: "free";
|
|
1581
|
+
}>;
|
|
1582
|
+
usageId: z.ZodNumber;
|
|
1583
|
+
actor: z.ZodObject<{
|
|
1584
|
+
type: z.ZodEnum<{
|
|
1585
|
+
account_deletion: "account_deletion";
|
|
1586
|
+
admin: "admin";
|
|
1587
|
+
workspace_owner: "workspace_owner";
|
|
1588
|
+
}>;
|
|
1589
|
+
userId: z.ZodString;
|
|
1590
|
+
email: z.ZodOptional<z.ZodString>;
|
|
1591
|
+
}, z.core.$strip>;
|
|
1592
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1593
|
+
file: z.ZodInstanceOf<any>;
|
|
1594
|
+
url: z.ZodNullable<z.ZodString>;
|
|
1595
|
+
responseHeaders: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1596
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1547
1597
|
declare const getEnvironment: ContractProcedureBuilderWithOutput<Schema$1<unknown, unknown>, z.ZodObject<{
|
|
1548
1598
|
environment: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1549
1599
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
@@ -1629,6 +1679,100 @@ declare const getProviderUsageRecords: ContractProcedureBuilderWithInputOutput<z
|
|
|
1629
1679
|
}, z.core.$strip>>;
|
|
1630
1680
|
hasMore: z.ZodBoolean;
|
|
1631
1681
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1682
|
+
declare const getRetainedInputs: ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1683
|
+
usageKind: z.ZodEnum<{
|
|
1684
|
+
api: "api";
|
|
1685
|
+
free: "free";
|
|
1686
|
+
}>;
|
|
1687
|
+
usageIds: z.ZodArray<z.ZodNumber>;
|
|
1688
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1689
|
+
enabled: z.ZodBoolean;
|
|
1690
|
+
records: z.ZodArray<z.ZodObject<{
|
|
1691
|
+
usageKind: z.ZodEnum<{
|
|
1692
|
+
api: "api";
|
|
1693
|
+
free: "free";
|
|
1694
|
+
}>;
|
|
1695
|
+
usageId: z.ZodNumber;
|
|
1696
|
+
workspaceId: z.ZodNullable<z.ZodNumber>;
|
|
1697
|
+
operation: z.ZodString;
|
|
1698
|
+
reason: z.ZodEnum<{
|
|
1699
|
+
fallback_success: "fallback_success";
|
|
1700
|
+
system_error: "system_error";
|
|
1701
|
+
user_error: "user_error";
|
|
1702
|
+
}>;
|
|
1703
|
+
fileStatus: z.ZodEnum<{
|
|
1704
|
+
deleted: "deleted";
|
|
1705
|
+
evicted: "evicted";
|
|
1706
|
+
expired: "expired";
|
|
1707
|
+
kept: "kept";
|
|
1708
|
+
skipped: "skipped";
|
|
1709
|
+
}>;
|
|
1710
|
+
skipReason: z.ZodNullable<z.ZodEnum<{
|
|
1711
|
+
input_not_read: "input_not_read";
|
|
1712
|
+
not_eligible: "not_eligible";
|
|
1713
|
+
password_protected: "password_protected";
|
|
1714
|
+
storage_error: "storage_error";
|
|
1715
|
+
storage_full: "storage_full";
|
|
1716
|
+
too_large: "too_large";
|
|
1717
|
+
}>>;
|
|
1718
|
+
inputBytes: z.ZodNullable<z.ZodNumber>;
|
|
1719
|
+
expiresAt: z.ZodNullable<z.ZodNumber>;
|
|
1720
|
+
deletedAt: z.ZodNullable<z.ZodNumber>;
|
|
1721
|
+
diagnostics: z.ZodObject<{
|
|
1722
|
+
errorCode: z.ZodNullable<z.ZodString>;
|
|
1723
|
+
errorStage: z.ZodNullable<z.ZodString>;
|
|
1724
|
+
errorStatus: z.ZodNullable<z.ZodString>;
|
|
1725
|
+
providerChain: z.ZodArray<z.ZodObject<{
|
|
1726
|
+
provider: z.ZodString;
|
|
1727
|
+
service: z.ZodString;
|
|
1728
|
+
model: z.ZodNullable<z.ZodString>;
|
|
1729
|
+
status: z.ZodString;
|
|
1730
|
+
error: z.ZodNullable<z.ZodString>;
|
|
1731
|
+
}, z.core.$strip>>;
|
|
1732
|
+
inputSource: z.ZodNullable<z.ZodString>;
|
|
1733
|
+
declaredMime: z.ZodNullable<z.ZodString>;
|
|
1734
|
+
detectedMime: z.ZodNullable<z.ZodString>;
|
|
1735
|
+
detectedExtension: z.ZodNullable<z.ZodString>;
|
|
1736
|
+
extension: z.ZodNullable<z.ZodString>;
|
|
1737
|
+
documentType: z.ZodNullable<z.ZodString>;
|
|
1738
|
+
sizeBytes: z.ZodNullable<z.ZodNumber>;
|
|
1739
|
+
sha256: z.ZodNullable<z.ZodString>;
|
|
1740
|
+
pageCount: z.ZodNullable<z.ZodNumber>;
|
|
1741
|
+
pdf: z.ZodNullable<z.ZodObject<{
|
|
1742
|
+
version: z.ZodNullable<z.ZodString>;
|
|
1743
|
+
producer: z.ZodNullable<z.ZodString>;
|
|
1744
|
+
creator: z.ZodNullable<z.ZodString>;
|
|
1745
|
+
encrypted: z.ZodBoolean;
|
|
1746
|
+
hasForms: z.ZodNullable<z.ZodBoolean>;
|
|
1747
|
+
hasAttachments: z.ZodNullable<z.ZodBoolean>;
|
|
1748
|
+
pagesSampled: z.ZodNumber;
|
|
1749
|
+
pagesWithoutText: z.ZodNumber;
|
|
1750
|
+
scannedRatio: z.ZodNullable<z.ZodNumber>;
|
|
1751
|
+
openError: z.ZodNullable<z.ZodString>;
|
|
1752
|
+
}, z.core.$strip>>;
|
|
1753
|
+
image: z.ZodNullable<z.ZodObject<{
|
|
1754
|
+
width: z.ZodNullable<z.ZodNumber>;
|
|
1755
|
+
height: z.ZodNullable<z.ZodNumber>;
|
|
1756
|
+
type: z.ZodNullable<z.ZodString>;
|
|
1757
|
+
}, z.core.$strip>>;
|
|
1758
|
+
}, z.core.$strip>;
|
|
1759
|
+
audit: z.ZodArray<z.ZodObject<{
|
|
1760
|
+
action: z.ZodEnum<{
|
|
1761
|
+
delete: "delete";
|
|
1762
|
+
download: "download";
|
|
1763
|
+
}>;
|
|
1764
|
+
actorType: z.ZodEnum<{
|
|
1765
|
+
account_deletion: "account_deletion";
|
|
1766
|
+
admin: "admin";
|
|
1767
|
+
workspace_owner: "workspace_owner";
|
|
1768
|
+
}>;
|
|
1769
|
+
actorId: z.ZodString;
|
|
1770
|
+
actorEmail: z.ZodNullable<z.ZodString>;
|
|
1771
|
+
createdAt: z.ZodNumber;
|
|
1772
|
+
}, z.core.$strip>>;
|
|
1773
|
+
createdAt: z.ZodNumber;
|
|
1774
|
+
}, z.core.$strip>>;
|
|
1775
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1632
1776
|
declare const getUsageRecords: ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1633
1777
|
cursor: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1634
1778
|
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -1696,7 +1840,7 @@ declare const setVersion: ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
|
1696
1840
|
message: z.ZodString;
|
|
1697
1841
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1698
1842
|
declare namespace index_d_exports$7 {
|
|
1699
|
-
export { getEnvironment, getFreeUsageRecords, getProviderUsageRecords, getUsageRecords, healthCheck, setDomain, setEnvironment, setVersion };
|
|
1843
|
+
export { deleteRetainedInputs, downloadRetainedInput, getEnvironment, getFreeUsageRecords, getProviderUsageRecords, getRetainedInputs, getUsageRecords, healthCheck, setDomain, setEnvironment, setVersion };
|
|
1700
1844
|
}
|
|
1701
1845
|
declare const validateCredential: ContractProcedureBuilderWithInputOutput<z.ZodOptional<z.ZodObject<{}, z.core.$strip>>, z.ZodObject<{
|
|
1702
1846
|
status: z.ZodString;
|
package/dist/index.mjs
CHANGED
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
Array.isArray;
|
|
2
|
-
// ../../node_modules/.bun/@orpc+shared@1.
|
|
2
|
+
// ../../node_modules/.bun/@orpc+shared@1.16.2+e40b0dfdd726a224/node_modules/@orpc/shared/dist/index.mjs
|
|
3
3
|
function resolveMaybeOptionalOptions(rest) {
|
|
4
4
|
return rest[0] ?? {};
|
|
5
5
|
}
|
|
6
6
|
function toArray(value) {
|
|
7
7
|
return Array.isArray(value) ? value : value === void 0 || value === null ? [] : [value];
|
|
8
8
|
}
|
|
9
|
+
const DEFAULT_MAX_BIGINT_DIGITS = 4300;
|
|
10
|
+
const BIGINT_PATTERN = /^-?(?:0|[1-9]\d*)$/;
|
|
11
|
+
function parseBigIntString(value, maxDigits) {
|
|
12
|
+
if ((value.startsWith("-") ? value.length - 1 : value.length) > maxDigits || !BIGINT_PATTERN.test(value)) return;
|
|
13
|
+
return BigInt(value);
|
|
14
|
+
}
|
|
9
15
|
const ORPC_NAME = "orpc";
|
|
10
16
|
const ORPC_SHARED_PACKAGE_NAME = "@orpc/shared";
|
|
11
|
-
const ORPC_SHARED_PACKAGE_VERSION = "1.
|
|
17
|
+
const ORPC_SHARED_PACKAGE_VERSION = "1.16.2";
|
|
12
18
|
var AbortError = class extends Error {
|
|
13
19
|
constructor(...rest) {
|
|
14
20
|
super(...rest);
|
|
@@ -214,6 +220,25 @@ function isObject(value) {
|
|
|
214
220
|
function isTypescriptObject(value) {
|
|
215
221
|
return !!value && (typeof value === "object" || typeof value === "function");
|
|
216
222
|
}
|
|
223
|
+
function setOwn(object, key, value) {
|
|
224
|
+
if (key === "__proto__") Object.defineProperty(object, key, {
|
|
225
|
+
value,
|
|
226
|
+
writable: true,
|
|
227
|
+
enumerable: true,
|
|
228
|
+
configurable: true
|
|
229
|
+
});
|
|
230
|
+
else object[key] = value;
|
|
231
|
+
}
|
|
232
|
+
function copyOnWrite(parent, key, original) {
|
|
233
|
+
const value = parent[key];
|
|
234
|
+
if (value !== original) return value;
|
|
235
|
+
let copy;
|
|
236
|
+
if (Array.isArray(value)) copy = value.slice();
|
|
237
|
+
else if (isObject(value)) copy = { ...value };
|
|
238
|
+
else return value;
|
|
239
|
+
setOwn(parent, key, copy);
|
|
240
|
+
return copy;
|
|
241
|
+
}
|
|
217
242
|
function value(value2, ...args) {
|
|
218
243
|
if (typeof value2 === "function") return value2(...args);
|
|
219
244
|
return value2;
|
|
@@ -285,9 +310,9 @@ function tryDecodeURIComponent(value) {
|
|
|
285
310
|
return value;
|
|
286
311
|
}
|
|
287
312
|
}
|
|
288
|
-
// ../../node_modules/.bun/@orpc+client@1.
|
|
313
|
+
// ../../node_modules/.bun/@orpc+client@1.16.2+e40b0dfdd726a224/node_modules/@orpc/client/dist/shared/client.DeR0HTYb.mjs
|
|
289
314
|
const ORPC_CLIENT_PACKAGE_NAME = "@orpc/client";
|
|
290
|
-
const ORPC_CLIENT_PACKAGE_VERSION = "1.
|
|
315
|
+
const ORPC_CLIENT_PACKAGE_VERSION = "1.16.2";
|
|
291
316
|
const RECURSIVE_CLIENT_UNWRAP_KEYS = /* @__PURE__ */ new Set([
|
|
292
317
|
"bind",
|
|
293
318
|
"valueOf",
|
|
@@ -456,7 +481,7 @@ function createORPCErrorFromJson(json, options = {}) {
|
|
|
456
481
|
...json
|
|
457
482
|
});
|
|
458
483
|
}
|
|
459
|
-
// ../../node_modules/.bun/@orpc+standard-server@1.
|
|
484
|
+
// ../../node_modules/.bun/@orpc+standard-server@1.16.2+e40b0dfdd726a224/node_modules/@orpc/standard-server/dist/index.mjs
|
|
460
485
|
var EventEncoderError = class extends TypeError {};
|
|
461
486
|
var EventDecoderError = class extends TypeError {};
|
|
462
487
|
var ErrorEvent = class extends Error {
|
|
@@ -657,7 +682,7 @@ function mergeStandardHeaders(a, b) {
|
|
|
657
682
|
}
|
|
658
683
|
return merged;
|
|
659
684
|
}
|
|
660
|
-
// ../../node_modules/.bun/@orpc+client@1.
|
|
685
|
+
// ../../node_modules/.bun/@orpc+client@1.16.2+e40b0dfdd726a224/node_modules/@orpc/client/dist/shared/client.BLtwTQUg.mjs
|
|
661
686
|
function mapEventIterator(iterator, maps) {
|
|
662
687
|
const mapError = async (error) => {
|
|
663
688
|
let mappedError = await maps.error(error);
|
|
@@ -692,7 +717,7 @@ function mapEventIterator(iterator, maps) {
|
|
|
692
717
|
}
|
|
693
718
|
});
|
|
694
719
|
}
|
|
695
|
-
// ../../node_modules/.bun/@orpc+client@1.
|
|
720
|
+
// ../../node_modules/.bun/@orpc+client@1.16.2+e40b0dfdd726a224/node_modules/@orpc/client/dist/index.mjs
|
|
696
721
|
function resolveFriendlyClientOptions(options) {
|
|
697
722
|
return {
|
|
698
723
|
...options,
|
|
@@ -712,7 +737,7 @@ function createORPCClient(link, options = {}) {
|
|
|
712
737
|
});
|
|
713
738
|
} }));
|
|
714
739
|
}
|
|
715
|
-
// ../../node_modules/.bun/@orpc+standard-server-fetch@1.
|
|
740
|
+
// ../../node_modules/.bun/@orpc+standard-server-fetch@1.16.2+e40b0dfdd726a224/node_modules/@orpc/standard-server-fetch/dist/index.mjs
|
|
716
741
|
function toEventIterator(stream, options = {}) {
|
|
717
742
|
const reader = (stream?.pipeThrough(new TextDecoderStream()).pipeThrough(new EventDecoderStream()))?.getReader();
|
|
718
743
|
let span;
|
|
@@ -733,7 +758,7 @@ function toEventIterator(stream, options = {}) {
|
|
|
733
758
|
value: void 0
|
|
734
759
|
};
|
|
735
760
|
}
|
|
736
|
-
switch (value.event) {
|
|
761
|
+
switch (value.event ?? (value.data !== void 0 ? "message" : void 0)) {
|
|
737
762
|
case "message": {
|
|
738
763
|
let message = parseEmptyableJSON(value.data);
|
|
739
764
|
if (isTypescriptObject(message)) message = withEventMeta(message, value);
|
|
@@ -749,7 +774,8 @@ function toEventIterator(stream, options = {}) {
|
|
|
749
774
|
span?.addEvent("error");
|
|
750
775
|
throw error;
|
|
751
776
|
}
|
|
752
|
-
case "done":
|
|
777
|
+
case "done":
|
|
778
|
+
case "close": {
|
|
753
779
|
let done2 = parseEmptyableJSON(value.data);
|
|
754
780
|
if (isTypescriptObject(done2)) done2 = withEventMeta(done2, value);
|
|
755
781
|
span?.addEvent("done");
|
|
@@ -938,7 +964,7 @@ function toStandardLazyResponse(response, options = {}) {
|
|
|
938
964
|
}
|
|
939
965
|
};
|
|
940
966
|
}
|
|
941
|
-
// ../../node_modules/.bun/@orpc+client@1.
|
|
967
|
+
// ../../node_modules/.bun/@orpc+client@1.16.2+e40b0dfdd726a224/node_modules/@orpc/client/dist/shared/client.BmCiDGqJ.mjs
|
|
942
968
|
var CompositeStandardLinkPlugin = class {
|
|
943
969
|
plugins;
|
|
944
970
|
constructor(plugins = []) {
|
|
@@ -1146,24 +1172,31 @@ var StandardRPCJsonSerializer = class {
|
|
|
1146
1172
|
}
|
|
1147
1173
|
deserialize(json, meta, maps, getBlob) {
|
|
1148
1174
|
const ref = { data: json };
|
|
1175
|
+
const input = { data: json };
|
|
1149
1176
|
if (maps && getBlob) maps.forEach((segments, i) => {
|
|
1177
|
+
const blob = getBlob(i);
|
|
1178
|
+
if (!(blob instanceof Blob)) throw invalidSerializedData(`blob ${i} is not a Blob.`);
|
|
1179
|
+
let original = input;
|
|
1150
1180
|
let currentRef = ref;
|
|
1151
1181
|
let preSegment = "data";
|
|
1152
1182
|
segments.forEach((segment) => {
|
|
1153
|
-
|
|
1183
|
+
original = original[preSegment];
|
|
1184
|
+
currentRef = copyOnWrite(currentRef, preSegment, original);
|
|
1154
1185
|
preSegment = segment;
|
|
1155
1186
|
if (!Object.hasOwn(currentRef, preSegment)) throw invalidSerializedData(`segment "${preSegment}" does not exist.`);
|
|
1156
1187
|
});
|
|
1157
|
-
currentRef[preSegment] =
|
|
1188
|
+
currentRef[preSegment] = blob;
|
|
1158
1189
|
});
|
|
1159
1190
|
for (const item of meta) {
|
|
1160
1191
|
const type = item[0];
|
|
1161
1192
|
const custom = this.customSerializers.find((custom2) => custom2.type === type);
|
|
1162
1193
|
if (custom === void 0 && !BUILT_IN_TYPES.has(type)) continue;
|
|
1194
|
+
let original = input;
|
|
1163
1195
|
let currentRef = ref;
|
|
1164
1196
|
let preSegment = "data";
|
|
1165
1197
|
for (let i = 1; i < item.length; i++) {
|
|
1166
|
-
|
|
1198
|
+
original = original[preSegment];
|
|
1199
|
+
currentRef = copyOnWrite(currentRef, preSegment, original);
|
|
1167
1200
|
preSegment = item[i];
|
|
1168
1201
|
if (!Object.hasOwn(currentRef, preSegment)) throw invalidSerializedData(`segment "${preSegment}" does not exist.`);
|
|
1169
1202
|
}
|
|
@@ -1173,10 +1206,13 @@ var StandardRPCJsonSerializer = class {
|
|
|
1173
1206
|
}
|
|
1174
1207
|
const serialized = currentRef[preSegment];
|
|
1175
1208
|
switch (type) {
|
|
1176
|
-
case STANDARD_RPC_JSON_SERIALIZER_BUILT_IN_TYPES.BIGINT:
|
|
1209
|
+
case STANDARD_RPC_JSON_SERIALIZER_BUILT_IN_TYPES.BIGINT: {
|
|
1177
1210
|
if (typeof serialized !== "string") throw invalidSerializedType(type, "bigint", "a string");
|
|
1178
|
-
|
|
1211
|
+
const value = parseBigIntString(serialized, DEFAULT_MAX_BIGINT_DIGITS);
|
|
1212
|
+
if (value === void 0) throw invalidSerializedType(type, "bigint", `a decimal integer string of at most ${DEFAULT_MAX_BIGINT_DIGITS} digits`);
|
|
1213
|
+
currentRef[preSegment] = value;
|
|
1179
1214
|
break;
|
|
1215
|
+
}
|
|
1180
1216
|
case STANDARD_RPC_JSON_SERIALIZER_BUILT_IN_TYPES.DATE:
|
|
1181
1217
|
if (typeof serialized !== "string" && serialized !== null) throw invalidSerializedType(type, "date", "a string or null");
|
|
1182
1218
|
currentRef[preSegment] = new Date(serialized ?? NaN);
|
|
@@ -1265,6 +1301,7 @@ var StandardRPCLinkCodec = class {
|
|
|
1265
1301
|
};
|
|
1266
1302
|
}
|
|
1267
1303
|
async decode(response) {
|
|
1304
|
+
if (response.status >= 300 && response.status < 400) throw new Error(`Unexpected redirect response (status ${response.status}): RPCLink does not follow redirects.`);
|
|
1268
1305
|
const isOk = !isORPCErrorStatus(response.status);
|
|
1269
1306
|
const deserialized = await (async () => {
|
|
1270
1307
|
let isBodyOk = false;
|
|
@@ -1352,7 +1389,7 @@ var StandardRPCLink = class extends StandardLink {
|
|
|
1352
1389
|
super(linkCodec, linkClient, options);
|
|
1353
1390
|
}
|
|
1354
1391
|
};
|
|
1355
|
-
// ../../node_modules/.bun/@orpc+client@1.
|
|
1392
|
+
// ../../node_modules/.bun/@orpc+client@1.16.2+e40b0dfdd726a224/node_modules/@orpc/client/dist/adapters/fetch/index.mjs
|
|
1356
1393
|
var CompositeLinkFetchPlugin = class extends CompositeStandardLinkPlugin {
|
|
1357
1394
|
initRuntimeAdapter(options) {
|
|
1358
1395
|
for (const plugin of this.plugins) plugin.initRuntimeAdapter?.(options);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pdfvector/client",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Official TypeScript/JavaScript SDK for PDF Vector API",
|
|
6
6
|
"license": "MIT",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"node": ">=18"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"zod": "^4.6.
|
|
53
|
+
"zod": "^4.6.7"
|
|
54
54
|
},
|
|
55
55
|
"module": "./dist/index.mjs",
|
|
56
56
|
"types": "./dist/index.d.cts",
|