@gpt-core/client 0.11.1 → 0.12.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/dist/index.mjs CHANGED
@@ -901,6 +901,83 @@ var ConflictError = class extends GptCoreError {
901
901
  super(message, { statusCode: 409, code: "conflict_error", ...options });
902
902
  }
903
903
  };
904
+ var AgentVersionError = class extends GptCoreError {
905
+ constructor(message, options) {
906
+ super(message, options);
907
+ this.pointer = options?.pointer;
908
+ this.versionId = options?.versionId;
909
+ this.agentId = options?.agentId;
910
+ }
911
+ };
912
+ var VersionAlreadyUsedError = class extends AgentVersionError {
913
+ constructor(message = "Schema version has been used for extraction", options) {
914
+ super(message, {
915
+ statusCode: 400,
916
+ code: "version_already_used",
917
+ ...options
918
+ });
919
+ }
920
+ };
921
+ var VersionInUseCannotDeleteError = class extends AgentVersionError {
922
+ constructor(message = "Schema version cannot be deleted", options) {
923
+ super(message, {
924
+ statusCode: 400,
925
+ code: "version_in_use_cannot_delete",
926
+ ...options
927
+ });
928
+ }
929
+ };
930
+ var VersionNotFoundError = class extends AgentVersionError {
931
+ constructor(message = "Schema version not found", options) {
932
+ super(message, { statusCode: 404, code: "version_not_found", ...options });
933
+ }
934
+ };
935
+ var ReservedFieldError = class extends AgentVersionError {
936
+ constructor(message = "Field name is reserved", options) {
937
+ super(message, {
938
+ statusCode: 400,
939
+ code: options?.code ?? "field_name_reserved",
940
+ ...options
941
+ });
942
+ }
943
+ };
944
+ var InvalidFieldTypeError = class extends AgentVersionError {
945
+ constructor(message = "Field type is invalid", options) {
946
+ super(message, {
947
+ statusCode: 400,
948
+ code: "field_type_invalid",
949
+ ...options
950
+ });
951
+ }
952
+ };
953
+ var MissingFieldNameError = class extends AgentVersionError {
954
+ constructor(message = "Field name is required", options) {
955
+ super(message, {
956
+ statusCode: 400,
957
+ code: "field_name_required",
958
+ ...options
959
+ });
960
+ }
961
+ };
962
+ var SchemaDefinitionInvalidError = class extends AgentVersionError {
963
+ constructor(message = "Schema definition is not a valid JSON Schema", options) {
964
+ super(message, {
965
+ statusCode: 400,
966
+ code: "schema_definition_invalid",
967
+ ...options
968
+ });
969
+ }
970
+ };
971
+ var AGENT_VERSION_ERROR_BY_CODE = {
972
+ version_already_used: VersionAlreadyUsedError,
973
+ version_in_use_cannot_delete: VersionInUseCannotDeleteError,
974
+ version_not_found: VersionNotFoundError,
975
+ field_name_reserved: ReservedFieldError,
976
+ field_name_suffix_conflict: ReservedFieldError,
977
+ field_type_invalid: InvalidFieldTypeError,
978
+ field_name_required: MissingFieldNameError,
979
+ schema_definition_invalid: SchemaDefinitionInvalidError
980
+ };
904
981
  function handleApiError(error) {
905
982
  if (typeof error !== "object" || error === null) {
906
983
  throw new NetworkError(
@@ -915,6 +992,11 @@ function handleApiError(error) {
915
992
  const body = response.body || response.data || err.body || err.data || err;
916
993
  let message = "An error occurred";
917
994
  let errors;
995
+ let jsonApiCode;
996
+ let jsonApiPointer;
997
+ let metaVersionId;
998
+ let metaAgentId;
999
+ let metaRequestId;
918
1000
  if (typeof body === "object" && body !== null && "errors" in body && Array.isArray(body.errors)) {
919
1001
  const bodyErrors = body.errors;
920
1002
  const firstError = bodyErrors[0];
@@ -923,6 +1005,14 @@ function handleApiError(error) {
923
1005
  field: err2.source?.pointer?.split("/").pop(),
924
1006
  message: err2.detail || err2.title || "Unknown error"
925
1007
  }));
1008
+ if (firstError) {
1009
+ jsonApiCode = firstError.code;
1010
+ jsonApiPointer = firstError.source?.pointer;
1011
+ const meta = firstError.meta;
1012
+ metaVersionId = meta?.version_id;
1013
+ metaAgentId = meta?.agent_id;
1014
+ metaRequestId = meta?.request_id;
1015
+ }
926
1016
  } else if (typeof body === "object" && body !== null && "message" in body && typeof body.message === "string") {
927
1017
  message = body.message;
928
1018
  } else if (typeof body === "string") {
@@ -957,11 +1047,27 @@ function handleApiError(error) {
957
1047
  };
958
1048
  const errorOptions = {
959
1049
  statusCode,
960
- requestId,
1050
+ // Prefer the JSON:API meta.request_id when present; fall back to the
1051
+ // x-request-id header.
1052
+ requestId: metaRequestId ?? requestId,
961
1053
  headers: filterSensitiveHeaders(headers),
962
1054
  body,
963
- cause: error instanceof Error ? error : void 0
1055
+ cause: error instanceof Error ? error : void 0,
1056
+ // When the JSON:API body carries an errors[0].code, thread it through so
1057
+ // any error class thrown below reports the server's code rather than the
1058
+ // default status-code-derived one.
1059
+ ...jsonApiCode ? { code: jsonApiCode } : {}
964
1060
  };
1061
+ const AgentVersionCtor = jsonApiCode ? AGENT_VERSION_ERROR_BY_CODE[jsonApiCode] : void 0;
1062
+ if (jsonApiCode && AgentVersionCtor) {
1063
+ throw new AgentVersionCtor(message, {
1064
+ ...errorOptions,
1065
+ code: jsonApiCode,
1066
+ pointer: jsonApiPointer,
1067
+ versionId: metaVersionId,
1068
+ agentId: metaAgentId
1069
+ });
1070
+ }
965
1071
  switch (statusCode) {
966
1072
  case 401:
967
1073
  throw new AuthenticationError(message, errorOptions);
@@ -989,7 +1095,7 @@ function handleApiError(error) {
989
1095
  throw new ServerError(message, errorOptions);
990
1096
  default:
991
1097
  if (statusCode && statusCode >= 400) {
992
- throw new GptCoreError(message, errorOptions);
1098
+ throw new GptCoreError(message, { ...errorOptions, code: jsonApiCode });
993
1099
  }
994
1100
  throw new NetworkError(message, errorOptions);
995
1101
  }
@@ -1225,7 +1331,7 @@ function buildUserAgent(sdkVersion, appInfo) {
1225
1331
 
1226
1332
  // src/base-client.ts
1227
1333
  var DEFAULT_API_VERSION = "2025-12-03";
1228
- var SDK_VERSION = "0.11.1";
1334
+ var SDK_VERSION = "0.12.0";
1229
1335
  function generateUUID() {
1230
1336
  if (typeof crypto !== "undefined" && typeof crypto.randomUUID === "function") {
1231
1337
  return crypto.randomUUID();
@@ -1503,18 +1609,11 @@ var client = createClient(
1503
1609
 
1504
1610
  // src/_internal/sdk.gen.ts
1505
1611
  var getNotificationLogs = (options) => (options.client ?? client).get({
1506
- querySerializer: {
1507
- parameters: {
1508
- filter: { object: { style: "form" } },
1509
- fields: { object: { style: "form" } }
1510
- }
1511
- },
1512
1612
  security: [{ scheme: "bearer", type: "http" }],
1513
1613
  url: "/notification-logs",
1514
1614
  ...options
1515
1615
  });
1516
1616
  var postAiSearchAdvanced = (options) => (options.client ?? client).post({
1517
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1518
1617
  security: [{ scheme: "bearer", type: "http" }],
1519
1618
  url: "/ai/search/advanced",
1520
1619
  ...options,
@@ -1524,31 +1623,21 @@ var postAiSearchAdvanced = (options) => (options.client ?? client).post({
1524
1623
  }
1525
1624
  });
1526
1625
  var deleteExtractionDocumentsById = (options) => (options.client ?? client).delete({
1527
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1528
1626
  security: [{ scheme: "bearer", type: "http" }],
1529
1627
  url: "/extraction/documents/{id}",
1530
1628
  ...options
1531
1629
  });
1532
1630
  var getExtractionDocumentsById = (options) => (options.client ?? client).get({
1533
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1534
1631
  security: [{ scheme: "bearer", type: "http" }],
1535
1632
  url: "/extraction/documents/{id}",
1536
1633
  ...options
1537
1634
  });
1538
1635
  var getThreads = (options) => (options.client ?? client).get({
1539
- querySerializer: {
1540
- parameters: {
1541
- filter: { object: { style: "form" } },
1542
- page: { object: { style: "form" } },
1543
- fields: { object: { style: "form" } }
1544
- }
1545
- },
1546
1636
  security: [{ scheme: "bearer", type: "http" }],
1547
1637
  url: "/threads",
1548
1638
  ...options
1549
1639
  });
1550
1640
  var postThreads = (options) => (options.client ?? client).post({
1551
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1552
1641
  security: [{ scheme: "bearer", type: "http" }],
1553
1642
  url: "/threads",
1554
1643
  ...options,
@@ -1558,7 +1647,6 @@ var postThreads = (options) => (options.client ?? client).post({
1558
1647
  }
1559
1648
  });
1560
1649
  var patchExtractionDocumentsByIdCancel = (options) => (options.client ?? client).patch({
1561
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1562
1650
  security: [{ scheme: "bearer", type: "http" }],
1563
1651
  url: "/extraction/documents/{id}/cancel",
1564
1652
  ...options,
@@ -1568,13 +1656,11 @@ var patchExtractionDocumentsByIdCancel = (options) => (options.client ?? client)
1568
1656
  }
1569
1657
  });
1570
1658
  var getAgentVersionsById = (options) => (options.client ?? client).get({
1571
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1572
1659
  security: [{ scheme: "bearer", type: "http" }],
1573
1660
  url: "/agent-versions/{id}",
1574
1661
  ...options
1575
1662
  });
1576
1663
  var patchApiKeysByIdRevoke = (options) => (options.client ?? client).patch({
1577
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1578
1664
  security: [{ scheme: "bearer", type: "http" }],
1579
1665
  url: "/api-keys/{id}/revoke",
1580
1666
  ...options,
@@ -1584,7 +1670,6 @@ var patchApiKeysByIdRevoke = (options) => (options.client ?? client).patch({
1584
1670
  }
1585
1671
  });
1586
1672
  var patchWalletCredits = (options) => (options.client ?? client).patch({
1587
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1588
1673
  security: [{ scheme: "bearer", type: "http" }],
1589
1674
  url: "/wallet/credits",
1590
1675
  ...options,
@@ -1594,7 +1679,6 @@ var patchWalletCredits = (options) => (options.client ?? client).patch({
1594
1679
  }
1595
1680
  });
1596
1681
  var patchApiKeysByIdRotate = (options) => (options.client ?? client).patch({
1597
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1598
1682
  security: [{ scheme: "bearer", type: "http" }],
1599
1683
  url: "/api-keys/{id}/rotate",
1600
1684
  ...options,
@@ -1609,18 +1693,11 @@ var getApplicationsCurrent = (options) => (options.client ?? client).get({
1609
1693
  ...options
1610
1694
  });
1611
1695
  var getWorkspaces = (options) => (options.client ?? client).get({
1612
- querySerializer: {
1613
- parameters: {
1614
- filter: { object: { style: "form" } },
1615
- fields: { object: { style: "form" } }
1616
- }
1617
- },
1618
1696
  security: [{ scheme: "bearer", type: "http" }],
1619
1697
  url: "/workspaces",
1620
1698
  ...options
1621
1699
  });
1622
1700
  var postWorkspaces = (options) => (options.client ?? client).post({
1623
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1624
1701
  security: [{ scheme: "bearer", type: "http" }],
1625
1702
  url: "/workspaces",
1626
1703
  ...options,
@@ -1630,19 +1707,11 @@ var postWorkspaces = (options) => (options.client ?? client).post({
1630
1707
  }
1631
1708
  });
1632
1709
  var getPaymentMethods = (options) => (options.client ?? client).get({
1633
- querySerializer: {
1634
- parameters: {
1635
- filter: { object: { style: "form" } },
1636
- page: { object: { style: "form" } },
1637
- fields: { object: { style: "form" } }
1638
- }
1639
- },
1640
1710
  security: [{ scheme: "bearer", type: "http" }],
1641
1711
  url: "/payment-methods",
1642
1712
  ...options
1643
1713
  });
1644
1714
  var postPaymentMethods = (options) => (options.client ?? client).post({
1645
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1646
1715
  security: [{ scheme: "bearer", type: "http" }],
1647
1716
  url: "/payment-methods",
1648
1717
  ...options,
@@ -1657,19 +1726,16 @@ var getAgentVersionsByIdMetrics = (options) => (options.client ?? client).get({
1657
1726
  ...options
1658
1727
  });
1659
1728
  var getAgentsByIdStats = (options) => (options.client ?? client).get({
1660
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1661
1729
  security: [{ scheme: "bearer", type: "http" }],
1662
1730
  url: "/agents/{id}/stats",
1663
1731
  ...options
1664
1732
  });
1665
1733
  var getDocumentsStats = (options) => (options.client ?? client).get({
1666
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1667
1734
  security: [{ scheme: "bearer", type: "http" }],
1668
1735
  url: "/documents/stats",
1669
1736
  ...options
1670
1737
  });
1671
1738
  var postObjectsRegister = (options) => (options.client ?? client).post({
1672
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1673
1739
  security: [{ scheme: "bearer", type: "http" }],
1674
1740
  url: "/objects/register",
1675
1741
  ...options,
@@ -1679,18 +1745,11 @@ var postObjectsRegister = (options) => (options.client ?? client).post({
1679
1745
  }
1680
1746
  });
1681
1747
  var getSearchIndexes = (options) => (options.client ?? client).get({
1682
- querySerializer: {
1683
- parameters: {
1684
- filter: { object: { style: "form" } },
1685
- fields: { object: { style: "form" } }
1686
- }
1687
- },
1688
1748
  security: [{ scheme: "bearer", type: "http" }],
1689
1749
  url: "/search/indexes",
1690
1750
  ...options
1691
1751
  });
1692
1752
  var postWebhookConfigsByIdTest = (options) => (options.client ?? client).post({
1693
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1694
1753
  security: [{ scheme: "bearer", type: "http" }],
1695
1754
  url: "/webhook-configs/{id}/test",
1696
1755
  ...options,
@@ -1700,7 +1759,6 @@ var postWebhookConfigsByIdTest = (options) => (options.client ?? client).post({
1700
1759
  }
1701
1760
  });
1702
1761
  var postStorageSignDownload = (options) => (options.client ?? client).post({
1703
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1704
1762
  security: [{ scheme: "bearer", type: "http" }],
1705
1763
  url: "/storage/sign-download",
1706
1764
  ...options,
@@ -1710,7 +1768,6 @@ var postStorageSignDownload = (options) => (options.client ?? client).post({
1710
1768
  }
1711
1769
  });
1712
1770
  var patchUsersAuthPasswordChange = (options) => (options.client ?? client).patch({
1713
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1714
1771
  security: [{ scheme: "bearer", type: "http" }],
1715
1772
  url: "/users/auth/password/change",
1716
1773
  ...options,
@@ -1720,7 +1777,6 @@ var patchUsersAuthPasswordChange = (options) => (options.client ?? client).patch
1720
1777
  }
1721
1778
  });
1722
1779
  var postExtractionBatches = (options) => (options.client ?? client).post({
1723
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1724
1780
  security: [{ scheme: "bearer", type: "http" }],
1725
1781
  url: "/extraction/batches",
1726
1782
  ...options,
@@ -1730,7 +1786,6 @@ var postExtractionBatches = (options) => (options.client ?? client).post({
1730
1786
  }
1731
1787
  });
1732
1788
  var postAgentsImport = (options) => (options.client ?? client).post({
1733
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1734
1789
  security: [{ scheme: "bearer", type: "http" }],
1735
1790
  url: "/agents/import",
1736
1791
  ...options,
@@ -1740,7 +1795,6 @@ var postAgentsImport = (options) => (options.client ?? client).post({
1740
1795
  }
1741
1796
  });
1742
1797
  var patchUserProfilesByIdAcceptTos = (options) => (options.client ?? client).patch({
1743
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1744
1798
  security: [{ scheme: "bearer", type: "http" }],
1745
1799
  url: "/user-profiles/{id}/accept-tos",
1746
1800
  ...options,
@@ -1750,7 +1804,6 @@ var patchUserProfilesByIdAcceptTos = (options) => (options.client ?? client).pat
1750
1804
  }
1751
1805
  });
1752
1806
  var postWebhookDeliveriesByIdRetry = (options) => (options.client ?? client).post({
1753
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1754
1807
  security: [{ scheme: "bearer", type: "http" }],
1755
1808
  url: "/webhook-deliveries/{id}/retry",
1756
1809
  ...options,
@@ -1765,7 +1818,6 @@ var getAgentsByIdTrainingExamples = (options) => (options.client ?? client).get(
1765
1818
  ...options
1766
1819
  });
1767
1820
  var getExtractionDocumentsByIdStatus = (options) => (options.client ?? client).get({
1768
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1769
1821
  security: [{ scheme: "bearer", type: "http" }],
1770
1822
  url: "/extraction/documents/{id}/status",
1771
1823
  ...options
@@ -1776,7 +1828,6 @@ var getUsersMeDashboard = (options) => (options.client ?? client).get({
1776
1828
  ...options
1777
1829
  });
1778
1830
  var patchWorkspacesByIdAllocate = (options) => (options.client ?? client).patch({
1779
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1780
1831
  security: [{ scheme: "bearer", type: "http" }],
1781
1832
  url: "/workspaces/{id}/allocate",
1782
1833
  ...options,
@@ -1786,7 +1837,6 @@ var patchWorkspacesByIdAllocate = (options) => (options.client ?? client).patch(
1786
1837
  }
1787
1838
  });
1788
1839
  var patchInvitationsByIdRevoke = (options) => (options.client ?? client).patch({
1789
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1790
1840
  security: [{ scheme: "bearer", type: "http" }],
1791
1841
  url: "/invitations/{id}/revoke",
1792
1842
  ...options,
@@ -1796,19 +1846,16 @@ var patchInvitationsByIdRevoke = (options) => (options.client ?? client).patch({
1796
1846
  }
1797
1847
  });
1798
1848
  var deleteWebhookConfigsById = (options) => (options.client ?? client).delete({
1799
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1800
1849
  security: [{ scheme: "bearer", type: "http" }],
1801
1850
  url: "/webhook-configs/{id}",
1802
1851
  ...options
1803
1852
  });
1804
1853
  var getWebhookConfigsById = (options) => (options.client ?? client).get({
1805
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1806
1854
  security: [{ scheme: "bearer", type: "http" }],
1807
1855
  url: "/webhook-configs/{id}",
1808
1856
  ...options
1809
1857
  });
1810
1858
  var patchWebhookConfigsById = (options) => (options.client ?? client).patch({
1811
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1812
1859
  security: [{ scheme: "bearer", type: "http" }],
1813
1860
  url: "/webhook-configs/{id}",
1814
1861
  ...options,
@@ -1818,7 +1865,6 @@ var patchWebhookConfigsById = (options) => (options.client ?? client).patch({
1818
1865
  }
1819
1866
  });
1820
1867
  var postExtractionDocumentsFindOrBeginUpload = (options) => (options.client ?? client).post({
1821
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1822
1868
  security: [{ scheme: "bearer", type: "http" }],
1823
1869
  url: "/extraction/documents/find-or-begin-upload",
1824
1870
  ...options,
@@ -1837,7 +1883,6 @@ var postAgentsByIdRestoreVersion = (options) => (options.client ?? client).post(
1837
1883
  }
1838
1884
  });
1839
1885
  var patchWalletAutoTopUp = (options) => (options.client ?? client).patch({
1840
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1841
1886
  security: [{ scheme: "bearer", type: "http" }],
1842
1887
  url: "/wallet/auto-top-up",
1843
1888
  ...options,
@@ -1847,7 +1892,6 @@ var patchWalletAutoTopUp = (options) => (options.client ?? client).patch({
1847
1892
  }
1848
1893
  });
1849
1894
  var postAgentsByIdPublishVersion = (options) => (options.client ?? client).post({
1850
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1851
1895
  security: [{ scheme: "bearer", type: "http" }],
1852
1896
  url: "/agents/{id}/publish-version",
1853
1897
  ...options,
@@ -1857,13 +1901,11 @@ var postAgentsByIdPublishVersion = (options) => (options.client ?? client).post(
1857
1901
  }
1858
1902
  });
1859
1903
  var deleteSearchSavedById = (options) => (options.client ?? client).delete({
1860
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1861
1904
  security: [{ scheme: "bearer", type: "http" }],
1862
1905
  url: "/search/saved/{id}",
1863
1906
  ...options
1864
1907
  });
1865
1908
  var postUsersAuthMagicLinkLogin = (options) => (options.client ?? client).post({
1866
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1867
1909
  security: [{ scheme: "bearer", type: "http" }],
1868
1910
  url: "/users/auth/magic-link/login",
1869
1911
  ...options,
@@ -1873,13 +1915,11 @@ var postUsersAuthMagicLinkLogin = (options) => (options.client ?? client).post({
1873
1915
  }
1874
1916
  });
1875
1917
  var getApiKeysById = (options) => (options.client ?? client).get({
1876
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1877
1918
  security: [{ scheme: "bearer", type: "http" }],
1878
1919
  url: "/api-keys/{id}",
1879
1920
  ...options
1880
1921
  });
1881
1922
  var patchUsersAuthResetPassword = (options) => (options.client ?? client).patch({
1882
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1883
1923
  security: [{ scheme: "bearer", type: "http" }],
1884
1924
  url: "/users/auth/reset-password",
1885
1925
  ...options,
@@ -1889,24 +1929,16 @@ var patchUsersAuthResetPassword = (options) => (options.client ?? client).patch(
1889
1929
  }
1890
1930
  });
1891
1931
  var getBucketsByIdStats = (options) => (options.client ?? client).get({
1892
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1893
1932
  security: [{ scheme: "bearer", type: "http" }],
1894
1933
  url: "/buckets/{id}/stats",
1895
1934
  ...options
1896
1935
  });
1897
1936
  var getAgentsUsage = (options) => (options.client ?? client).get({
1898
- querySerializer: {
1899
- parameters: {
1900
- filter: { object: { style: "form" } },
1901
- fields: { object: { style: "form" } }
1902
- }
1903
- },
1904
1937
  security: [{ scheme: "bearer", type: "http" }],
1905
1938
  url: "/agents/usage",
1906
1939
  ...options
1907
1940
  });
1908
1941
  var patchNotificationMethodsByIdVerify = (options) => (options.client ?? client).patch({
1909
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1910
1942
  security: [{ scheme: "bearer", type: "http" }],
1911
1943
  url: "/notification-methods/{id}/verify",
1912
1944
  ...options,
@@ -1916,13 +1948,11 @@ var patchNotificationMethodsByIdVerify = (options) => (options.client ?? client)
1916
1948
  }
1917
1949
  });
1918
1950
  var getBucketsByIdObjects = (options) => (options.client ?? client).get({
1919
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1920
1951
  security: [{ scheme: "bearer", type: "http" }],
1921
1952
  url: "/buckets/{id}/objects",
1922
1953
  ...options
1923
1954
  });
1924
1955
  var postExtractionDocumentsBeginUpload = (options) => (options.client ?? client).post({
1925
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1926
1956
  security: [{ scheme: "bearer", type: "http" }],
1927
1957
  url: "/extraction/documents/begin-upload",
1928
1958
  ...options,
@@ -1932,7 +1962,6 @@ var postExtractionDocumentsBeginUpload = (options) => (options.client ?? client)
1932
1962
  }
1933
1963
  });
1934
1964
  var patchInvitationsByIdResend = (options) => (options.client ?? client).patch({
1935
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1936
1965
  security: [{ scheme: "bearer", type: "http" }],
1937
1966
  url: "/invitations/{id}/resend",
1938
1967
  ...options,
@@ -1942,18 +1971,11 @@ var patchInvitationsByIdResend = (options) => (options.client ?? client).patch({
1942
1971
  }
1943
1972
  });
1944
1973
  var getSearchSaved = (options) => (options.client ?? client).get({
1945
- querySerializer: {
1946
- parameters: {
1947
- filter: { object: { style: "form" } },
1948
- fields: { object: { style: "form" } }
1949
- }
1950
- },
1951
1974
  security: [{ scheme: "bearer", type: "http" }],
1952
1975
  url: "/search/saved",
1953
1976
  ...options
1954
1977
  });
1955
1978
  var postSearchSaved = (options) => (options.client ?? client).post({
1956
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1957
1979
  security: [{ scheme: "bearer", type: "http" }],
1958
1980
  url: "/search/saved",
1959
1981
  ...options,
@@ -1963,7 +1985,6 @@ var postSearchSaved = (options) => (options.client ?? client).post({
1963
1985
  }
1964
1986
  });
1965
1987
  var patchNotificationMethodsByIdSetPrimary = (options) => (options.client ?? client).patch({
1966
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1967
1988
  security: [{ scheme: "bearer", type: "http" }],
1968
1989
  url: "/notification-methods/{id}/set-primary",
1969
1990
  ...options,
@@ -1978,19 +1999,16 @@ var getWebhookConfigsStats = (options) => (options.client ?? client).get({
1978
1999
  ...options
1979
2000
  });
1980
2001
  var deleteNotificationMethodsById = (options) => (options.client ?? client).delete({
1981
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1982
2002
  security: [{ scheme: "bearer", type: "http" }],
1983
2003
  url: "/notification-methods/{id}",
1984
2004
  ...options
1985
2005
  });
1986
2006
  var getNotificationMethodsById = (options) => (options.client ?? client).get({
1987
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1988
2007
  security: [{ scheme: "bearer", type: "http" }],
1989
2008
  url: "/notification-methods/{id}",
1990
2009
  ...options
1991
2010
  });
1992
2011
  var patchNotificationMethodsById = (options) => (options.client ?? client).patch({
1993
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1994
2012
  security: [{ scheme: "bearer", type: "http" }],
1995
2013
  url: "/notification-methods/{id}",
1996
2014
  ...options,
@@ -2000,30 +2018,21 @@ var patchNotificationMethodsById = (options) => (options.client ?? client).patch
2000
2018
  }
2001
2019
  });
2002
2020
  var getSearchSuggest = (options) => (options.client ?? client).get({
2003
- querySerializer: {
2004
- parameters: {
2005
- filter: { object: { style: "form" } },
2006
- fields: { object: { style: "form" } }
2007
- }
2008
- },
2009
2021
  security: [{ scheme: "bearer", type: "http" }],
2010
2022
  url: "/search/suggest",
2011
2023
  ...options
2012
2024
  });
2013
2025
  var deleteAiMessagesById = (options) => (options.client ?? client).delete({
2014
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2015
2026
  security: [{ scheme: "bearer", type: "http" }],
2016
2027
  url: "/ai/messages/{id}",
2017
2028
  ...options
2018
2029
  });
2019
2030
  var getThreadsByIdMessages = (options) => (options.client ?? client).get({
2020
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2021
2031
  security: [{ scheme: "bearer", type: "http" }],
2022
2032
  url: "/threads/{id}/messages",
2023
2033
  ...options
2024
2034
  });
2025
2035
  var postThreadsByIdMessages = (options) => (options.client ?? client).post({
2026
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2027
2036
  security: [{ scheme: "bearer", type: "http" }],
2028
2037
  url: "/threads/{id}/messages",
2029
2038
  ...options,
@@ -2033,7 +2042,6 @@ var postThreadsByIdMessages = (options) => (options.client ?? client).post({
2033
2042
  }
2034
2043
  });
2035
2044
  var patchInvitationsByIdAccept = (options) => (options.client ?? client).patch({
2036
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2037
2045
  security: [{ scheme: "bearer", type: "http" }],
2038
2046
  url: "/invitations/{id}/accept",
2039
2047
  ...options,
@@ -2043,42 +2051,26 @@ var patchInvitationsByIdAccept = (options) => (options.client ?? client).patch({
2043
2051
  }
2044
2052
  });
2045
2053
  var getCreditPackagesById = (options) => (options.client ?? client).get({
2046
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2047
2054
  security: [{ scheme: "bearer", type: "http" }],
2048
2055
  url: "/credit-packages/{id}",
2049
2056
  ...options
2050
2057
  });
2051
2058
  var getWebhookDeliveries = (options) => (options.client ?? client).get({
2052
- querySerializer: {
2053
- parameters: {
2054
- filter: { object: { style: "form" } },
2055
- page: { object: { style: "form" } },
2056
- fields: { object: { style: "form" } }
2057
- }
2058
- },
2059
2059
  security: [{ scheme: "bearer", type: "http" }],
2060
2060
  url: "/webhook-deliveries",
2061
2061
  ...options
2062
2062
  });
2063
2063
  var getAgentVersions = (options) => (options.client ?? client).get({
2064
- querySerializer: {
2065
- parameters: {
2066
- filter: { object: { style: "form" } },
2067
- fields: { object: { style: "form" } }
2068
- }
2069
- },
2070
2064
  security: [{ scheme: "bearer", type: "http" }],
2071
2065
  url: "/agent-versions",
2072
2066
  ...options
2073
2067
  });
2074
2068
  var getExtractionResultsById = (options) => (options.client ?? client).get({
2075
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2076
2069
  security: [{ scheme: "bearer", type: "http" }],
2077
2070
  url: "/extraction/results/{id}",
2078
2071
  ...options
2079
2072
  });
2080
2073
  var postAgentsByIdValidate = (options) => (options.client ?? client).post({
2081
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2082
2074
  security: [{ scheme: "bearer", type: "http" }],
2083
2075
  url: "/agents/{id}/validate",
2084
2076
  ...options,
@@ -2088,13 +2080,11 @@ var postAgentsByIdValidate = (options) => (options.client ?? client).post({
2088
2080
  }
2089
2081
  });
2090
2082
  var getUsersMe = (options) => (options.client ?? client).get({
2091
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2092
2083
  security: [{ scheme: "bearer", type: "http" }],
2093
2084
  url: "/users/me",
2094
2085
  ...options
2095
2086
  });
2096
2087
  var getTransactionsById = (options) => (options.client ?? client).get({
2097
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2098
2088
  security: [{ scheme: "bearer", type: "http" }],
2099
2089
  url: "/transactions/{id}",
2100
2090
  ...options
@@ -2105,7 +2095,6 @@ var getUsersMeTenants = (options) => (options.client ?? client).get({
2105
2095
  ...options
2106
2096
  });
2107
2097
  var getWebhookDeliveriesById = (options) => (options.client ?? client).get({
2108
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2109
2098
  security: [{ scheme: "bearer", type: "http" }],
2110
2099
  url: "/webhook-deliveries/{id}",
2111
2100
  ...options
@@ -2121,13 +2110,11 @@ var getWebhookDeliveriesStats = (options) => (options.client ?? client).get({
2121
2110
  ...options
2122
2111
  });
2123
2112
  var getNotificationLogsById = (options) => (options.client ?? client).get({
2124
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2125
2113
  security: [{ scheme: "bearer", type: "http" }],
2126
2114
  url: "/notification-logs/{id}",
2127
2115
  ...options
2128
2116
  });
2129
2117
  var patchExtractionDocumentsByIdFinishUpload = (options) => (options.client ?? client).patch({
2130
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2131
2118
  security: [{ scheme: "bearer", type: "http" }],
2132
2119
  url: "/extraction/documents/{id}/finish-upload",
2133
2120
  ...options,
@@ -2137,40 +2124,21 @@ var patchExtractionDocumentsByIdFinishUpload = (options) => (options.client ?? c
2137
2124
  }
2138
2125
  });
2139
2126
  var getApiKeysStats = (options) => (options.client ?? client).get({
2140
- querySerializer: {
2141
- parameters: {
2142
- filter: { object: { style: "form" } },
2143
- fields: { object: { style: "form" } }
2144
- }
2145
- },
2146
2127
  security: [{ scheme: "bearer", type: "http" }],
2147
2128
  url: "/api-keys/stats",
2148
2129
  ...options
2149
2130
  });
2150
2131
  var getSearch = (options) => (options.client ?? client).get({
2151
- querySerializer: {
2152
- parameters: {
2153
- filter: { object: { style: "form" } },
2154
- fields: { object: { style: "form" } }
2155
- }
2156
- },
2157
2132
  security: [{ scheme: "bearer", type: "http" }],
2158
2133
  url: "/search",
2159
2134
  ...options
2160
2135
  });
2161
2136
  var getInvitations = (options) => (options.client ?? client).get({
2162
- querySerializer: {
2163
- parameters: {
2164
- filter: { object: { style: "form" } },
2165
- fields: { object: { style: "form" } }
2166
- }
2167
- },
2168
2137
  security: [{ scheme: "bearer", type: "http" }],
2169
2138
  url: "/invitations",
2170
2139
  ...options
2171
2140
  });
2172
2141
  var postInvitations = (options) => (options.client ?? client).post({
2173
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2174
2142
  security: [{ scheme: "bearer", type: "http" }],
2175
2143
  url: "/invitations",
2176
2144
  ...options,
@@ -2180,7 +2148,6 @@ var postInvitations = (options) => (options.client ?? client).post({
2180
2148
  }
2181
2149
  });
2182
2150
  var patchThreadsByIdArchive = (options) => (options.client ?? client).patch({
2183
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2184
2151
  security: [{ scheme: "bearer", type: "http" }],
2185
2152
  url: "/threads/{id}/archive",
2186
2153
  ...options,
@@ -2190,36 +2157,21 @@ var patchThreadsByIdArchive = (options) => (options.client ?? client).patch({
2190
2157
  }
2191
2158
  });
2192
2159
  var getSearchSemantic = (options) => (options.client ?? client).get({
2193
- querySerializer: {
2194
- parameters: {
2195
- filter: { object: { style: "form" } },
2196
- fields: { object: { style: "form" } }
2197
- }
2198
- },
2199
2160
  security: [{ scheme: "bearer", type: "http" }],
2200
2161
  url: "/search/semantic",
2201
2162
  ...options
2202
2163
  });
2203
2164
  var getThreadsStats = (options) => (options.client ?? client).get({
2204
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2205
2165
  security: [{ scheme: "bearer", type: "http" }],
2206
2166
  url: "/threads/stats",
2207
2167
  ...options
2208
2168
  });
2209
2169
  var getApplications = (options) => (options.client ?? client).get({
2210
- querySerializer: {
2211
- parameters: {
2212
- filter: { object: { style: "form" } },
2213
- page: { object: { style: "form" } },
2214
- fields: { object: { style: "form" } }
2215
- }
2216
- },
2217
2170
  security: [{ scheme: "bearer", type: "http" }],
2218
2171
  url: "/applications",
2219
2172
  ...options
2220
2173
  });
2221
2174
  var postApplications = (options) => (options.client ?? client).post({
2222
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2223
2175
  security: [{ scheme: "bearer", type: "http" }],
2224
2176
  url: "/applications",
2225
2177
  ...options,
@@ -2229,19 +2181,11 @@ var postApplications = (options) => (options.client ?? client).post({
2229
2181
  }
2230
2182
  });
2231
2183
  var getNotificationPreferences = (options) => (options.client ?? client).get({
2232
- querySerializer: {
2233
- parameters: {
2234
- filter: { object: { style: "form" } },
2235
- page: { object: { style: "form" } },
2236
- fields: { object: { style: "form" } }
2237
- }
2238
- },
2239
2184
  security: [{ scheme: "bearer", type: "http" }],
2240
2185
  url: "/notification-preferences",
2241
2186
  ...options
2242
2187
  });
2243
2188
  var postNotificationPreferences = (options) => (options.client ?? client).post({
2244
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2245
2189
  security: [{ scheme: "bearer", type: "http" }],
2246
2190
  url: "/notification-preferences",
2247
2191
  ...options,
@@ -2251,7 +2195,6 @@ var postNotificationPreferences = (options) => (options.client ?? client).post({
2251
2195
  }
2252
2196
  });
2253
2197
  var patchExtractionDocumentsByIdReprocess = (options) => (options.client ?? client).patch({
2254
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2255
2198
  security: [{ scheme: "bearer", type: "http" }],
2256
2199
  url: "/extraction/documents/{id}/reprocess",
2257
2200
  ...options,
@@ -2261,19 +2204,16 @@ var patchExtractionDocumentsByIdReprocess = (options) => (options.client ?? clie
2261
2204
  }
2262
2205
  });
2263
2206
  var deleteThreadsById = (options) => (options.client ?? client).delete({
2264
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2265
2207
  security: [{ scheme: "bearer", type: "http" }],
2266
2208
  url: "/threads/{id}",
2267
2209
  ...options
2268
2210
  });
2269
2211
  var getThreadsById = (options) => (options.client ?? client).get({
2270
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2271
2212
  security: [{ scheme: "bearer", type: "http" }],
2272
2213
  url: "/threads/{id}",
2273
2214
  ...options
2274
2215
  });
2275
2216
  var patchThreadsById = (options) => (options.client ?? client).patch({
2276
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2277
2217
  security: [{ scheme: "bearer", type: "http" }],
2278
2218
  url: "/threads/{id}",
2279
2219
  ...options,
@@ -2283,30 +2223,21 @@ var patchThreadsById = (options) => (options.client ?? client).patch({
2283
2223
  }
2284
2224
  });
2285
2225
  var getWorkspacesByIdMembers = (options) => (options.client ?? client).get({
2286
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2287
2226
  security: [{ scheme: "bearer", type: "http" }],
2288
2227
  url: "/workspaces/{id}/members",
2289
2228
  ...options
2290
2229
  });
2291
2230
  var getBucketsAll = (options) => (options.client ?? client).get({
2292
- querySerializer: {
2293
- parameters: {
2294
- filter: { object: { style: "form" } },
2295
- fields: { object: { style: "form" } }
2296
- }
2297
- },
2298
2231
  security: [{ scheme: "bearer", type: "http" }],
2299
2232
  url: "/buckets/all",
2300
2233
  ...options
2301
2234
  });
2302
2235
  var getNotificationPreferencesById = (options) => (options.client ?? client).get({
2303
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2304
2236
  security: [{ scheme: "bearer", type: "http" }],
2305
2237
  url: "/notification-preferences/{id}",
2306
2238
  ...options
2307
2239
  });
2308
2240
  var patchNotificationPreferencesById = (options) => (options.client ?? client).patch({
2309
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2310
2241
  security: [{ scheme: "bearer", type: "http" }],
2311
2242
  url: "/notification-preferences/{id}",
2312
2243
  ...options,
@@ -2316,13 +2247,6 @@ var patchNotificationPreferencesById = (options) => (options.client ?? client).p
2316
2247
  }
2317
2248
  });
2318
2249
  var getRoles = (options) => (options.client ?? client).get({
2319
- querySerializer: {
2320
- parameters: {
2321
- filter: { object: { style: "form" } },
2322
- page: { object: { style: "form" } },
2323
- fields: { object: { style: "form" } }
2324
- }
2325
- },
2326
2250
  security: [{ scheme: "bearer", type: "http" }],
2327
2251
  url: "/roles",
2328
2252
  ...options
@@ -2337,7 +2261,6 @@ var postThreadsByIdExport = (options) => (options.client ?? client).post({
2337
2261
  }
2338
2262
  });
2339
2263
  var patchInvitationsByIdDecline = (options) => (options.client ?? client).patch({
2340
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2341
2264
  security: [{ scheme: "bearer", type: "http" }],
2342
2265
  url: "/invitations/{id}/decline",
2343
2266
  ...options,
@@ -2347,7 +2270,6 @@ var patchInvitationsByIdDecline = (options) => (options.client ?? client).patch(
2347
2270
  }
2348
2271
  });
2349
2272
  var postExtractionDocumentsUpload = (options) => (options.client ?? client).post({
2350
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2351
2273
  security: [{ scheme: "bearer", type: "http" }],
2352
2274
  url: "/extraction/documents/upload",
2353
2275
  ...options,
@@ -2357,25 +2279,21 @@ var postExtractionDocumentsUpload = (options) => (options.client ?? client).post
2357
2279
  }
2358
2280
  });
2359
2281
  var getExtractionResultsDocumentByDocumentId = (options) => (options.client ?? client).get({
2360
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2361
2282
  security: [{ scheme: "bearer", type: "http" }],
2362
2283
  url: "/extraction/results/document/{document_id}",
2363
2284
  ...options
2364
2285
  });
2365
2286
  var deleteWorkspacesById = (options) => (options.client ?? client).delete({
2366
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2367
2287
  security: [{ scheme: "bearer", type: "http" }],
2368
2288
  url: "/workspaces/{id}",
2369
2289
  ...options
2370
2290
  });
2371
2291
  var getWorkspacesById = (options) => (options.client ?? client).get({
2372
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2373
2292
  security: [{ scheme: "bearer", type: "http" }],
2374
2293
  url: "/workspaces/{id}",
2375
2294
  ...options
2376
2295
  });
2377
2296
  var patchWorkspacesById = (options) => (options.client ?? client).patch({
2378
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2379
2297
  security: [{ scheme: "bearer", type: "http" }],
2380
2298
  url: "/workspaces/{id}",
2381
2299
  ...options,
@@ -2385,42 +2303,21 @@ var patchWorkspacesById = (options) => (options.client ?? client).patch({
2385
2303
  }
2386
2304
  });
2387
2305
  var getTenants = (options) => (options.client ?? client).get({
2388
- querySerializer: {
2389
- parameters: {
2390
- filter: { object: { style: "form" } },
2391
- page: { object: { style: "form" } },
2392
- fields: { object: { style: "form" } }
2393
- }
2394
- },
2395
2306
  security: [{ scheme: "bearer", type: "http" }],
2396
2307
  url: "/tenants",
2397
2308
  ...options
2398
2309
  });
2399
2310
  var getWalletInvoices = (options) => (options.client ?? client).get({
2400
- querySerializer: {
2401
- parameters: {
2402
- filter: { object: { style: "form" } },
2403
- fields: { object: { style: "form" } }
2404
- }
2405
- },
2406
2311
  security: [{ scheme: "bearer", type: "http" }],
2407
2312
  url: "/wallet/invoices",
2408
2313
  ...options
2409
2314
  });
2410
2315
  var getNotificationMethods = (options) => (options.client ?? client).get({
2411
- querySerializer: {
2412
- parameters: {
2413
- filter: { object: { style: "form" } },
2414
- page: { object: { style: "form" } },
2415
- fields: { object: { style: "form" } }
2416
- }
2417
- },
2418
2316
  security: [{ scheme: "bearer", type: "http" }],
2419
2317
  url: "/notification-methods",
2420
2318
  ...options
2421
2319
  });
2422
2320
  var postNotificationMethods = (options) => (options.client ?? client).post({
2423
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2424
2321
  security: [{ scheme: "bearer", type: "http" }],
2425
2322
  url: "/notification-methods",
2426
2323
  ...options,
@@ -2430,24 +2327,16 @@ var postNotificationMethods = (options) => (options.client ?? client).post({
2430
2327
  }
2431
2328
  });
2432
2329
  var getExtractionDocumentsByIdView = (options) => (options.client ?? client).get({
2433
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2434
2330
  security: [{ scheme: "bearer", type: "http" }],
2435
2331
  url: "/extraction/documents/{id}/view",
2436
2332
  ...options
2437
2333
  });
2438
2334
  var getBuckets = (options) => (options.client ?? client).get({
2439
- querySerializer: {
2440
- parameters: {
2441
- filter: { object: { style: "form" } },
2442
- fields: { object: { style: "form" } }
2443
- }
2444
- },
2445
2335
  security: [{ scheme: "bearer", type: "http" }],
2446
2336
  url: "/buckets",
2447
2337
  ...options
2448
2338
  });
2449
2339
  var postBuckets = (options) => (options.client ?? client).post({
2450
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2451
2340
  security: [{ scheme: "bearer", type: "http" }],
2452
2341
  url: "/buckets",
2453
2342
  ...options,
@@ -2457,13 +2346,11 @@ var postBuckets = (options) => (options.client ?? client).post({
2457
2346
  }
2458
2347
  });
2459
2348
  var getUserProfilesMe = (options) => (options.client ?? client).get({
2460
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2461
2349
  security: [{ scheme: "bearer", type: "http" }],
2462
2350
  url: "/user-profiles/me",
2463
2351
  ...options
2464
2352
  });
2465
2353
  var postDocumentsBulkDelete = (options) => (options.client ?? client).post({
2466
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2467
2354
  security: [{ scheme: "bearer", type: "http" }],
2468
2355
  url: "/documents/bulk-delete",
2469
2356
  ...options,
@@ -2478,13 +2365,11 @@ var getUsersMeActivity = (options) => (options.client ?? client).get({
2478
2365
  ...options
2479
2366
  });
2480
2367
  var getPlansById = (options) => (options.client ?? client).get({
2481
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2482
2368
  security: [{ scheme: "bearer", type: "http" }],
2483
2369
  url: "/plans/{id}",
2484
2370
  ...options
2485
2371
  });
2486
2372
  var patchUserProfilesById = (options) => (options.client ?? client).patch({
2487
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2488
2373
  security: [{ scheme: "bearer", type: "http" }],
2489
2374
  url: "/user-profiles/{id}",
2490
2375
  ...options,
@@ -2494,13 +2379,11 @@ var patchUserProfilesById = (options) => (options.client ?? client).patch({
2494
2379
  }
2495
2380
  });
2496
2381
  var getTenantsByTenantIdStats = (options) => (options.client ?? client).get({
2497
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2498
2382
  security: [{ scheme: "bearer", type: "http" }],
2499
2383
  url: "/tenants/{tenant_id}/stats",
2500
2384
  ...options
2501
2385
  });
2502
2386
  var patchWebhookConfigsByIdRotateSecret = (options) => (options.client ?? client).patch({
2503
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2504
2387
  security: [{ scheme: "bearer", type: "http" }],
2505
2388
  url: "/webhook-configs/{id}/rotate-secret",
2506
2389
  ...options,
@@ -2510,7 +2393,6 @@ var patchWebhookConfigsByIdRotateSecret = (options) => (options.client ?? client
2510
2393
  }
2511
2394
  });
2512
2395
  var patchWalletAddons = (options) => (options.client ?? client).patch({
2513
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2514
2396
  security: [{ scheme: "bearer", type: "http" }],
2515
2397
  url: "/wallet/addons",
2516
2398
  ...options,
@@ -2520,7 +2402,6 @@ var patchWalletAddons = (options) => (options.client ?? client).patch({
2520
2402
  }
2521
2403
  });
2522
2404
  var patchApiKeysByIdAllocate = (options) => (options.client ?? client).patch({
2523
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2524
2405
  security: [{ scheme: "bearer", type: "http" }],
2525
2406
  url: "/api-keys/{id}/allocate",
2526
2407
  ...options,
@@ -2530,19 +2411,16 @@ var patchApiKeysByIdAllocate = (options) => (options.client ?? client).patch({
2530
2411
  }
2531
2412
  });
2532
2413
  var deleteAgentsById = (options) => (options.client ?? client).delete({
2533
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2534
2414
  security: [{ scheme: "bearer", type: "http" }],
2535
2415
  url: "/agents/{id}",
2536
2416
  ...options
2537
2417
  });
2538
2418
  var getAgentsById = (options) => (options.client ?? client).get({
2539
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2540
2419
  security: [{ scheme: "bearer", type: "http" }],
2541
2420
  url: "/agents/{id}",
2542
2421
  ...options
2543
2422
  });
2544
2423
  var patchAgentsById = (options) => (options.client ?? client).patch({
2545
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2546
2424
  security: [{ scheme: "bearer", type: "http" }],
2547
2425
  url: "/agents/{id}",
2548
2426
  ...options,
@@ -2552,7 +2430,6 @@ var patchAgentsById = (options) => (options.client ?? client).patch({
2552
2430
  }
2553
2431
  });
2554
2432
  var patchThreadsByIdUnarchive = (options) => (options.client ?? client).patch({
2555
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2556
2433
  security: [{ scheme: "bearer", type: "http" }],
2557
2434
  url: "/threads/{id}/unarchive",
2558
2435
  ...options,
@@ -2562,7 +2439,6 @@ var patchThreadsByIdUnarchive = (options) => (options.client ?? client).patch({
2562
2439
  }
2563
2440
  });
2564
2441
  var postStorageSignUpload = (options) => (options.client ?? client).post({
2565
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2566
2442
  security: [{ scheme: "bearer", type: "http" }],
2567
2443
  url: "/storage/sign-upload",
2568
2444
  ...options,
@@ -2572,25 +2448,16 @@ var postStorageSignUpload = (options) => (options.client ?? client).post({
2572
2448
  }
2573
2449
  });
2574
2450
  var getAgentsByIdUsage = (options) => (options.client ?? client).get({
2575
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2576
2451
  security: [{ scheme: "bearer", type: "http" }],
2577
2452
  url: "/agents/{id}/usage",
2578
2453
  ...options
2579
2454
  });
2580
2455
  var getAiConversations = (options) => (options.client ?? client).get({
2581
- querySerializer: {
2582
- parameters: {
2583
- filter: { object: { style: "form" } },
2584
- page: { object: { style: "form" } },
2585
- fields: { object: { style: "form" } }
2586
- }
2587
- },
2588
2456
  security: [{ scheme: "bearer", type: "http" }],
2589
2457
  url: "/ai/conversations",
2590
2458
  ...options
2591
2459
  });
2592
2460
  var postAiConversations = (options) => (options.client ?? client).post({
2593
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2594
2461
  security: [{ scheme: "bearer", type: "http" }],
2595
2462
  url: "/ai/conversations",
2596
2463
  ...options,
@@ -2600,7 +2467,6 @@ var postAiConversations = (options) => (options.client ?? client).post({
2600
2467
  }
2601
2468
  });
2602
2469
  var postAiSearch = (options) => (options.client ?? client).post({
2603
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2604
2470
  security: [{ scheme: "bearer", type: "http" }],
2605
2471
  url: "/ai/search",
2606
2472
  ...options,
@@ -2610,30 +2476,21 @@ var postAiSearch = (options) => (options.client ?? client).post({
2610
2476
  }
2611
2477
  });
2612
2478
  var getWorkspacesShared = (options) => (options.client ?? client).get({
2613
- querySerializer: {
2614
- parameters: {
2615
- filter: { object: { style: "form" } },
2616
- fields: { object: { style: "form" } }
2617
- }
2618
- },
2619
2479
  security: [{ scheme: "bearer", type: "http" }],
2620
2480
  url: "/workspaces/shared",
2621
2481
  ...options
2622
2482
  });
2623
2483
  var deleteApplicationsById = (options) => (options.client ?? client).delete({
2624
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2625
2484
  security: [{ scheme: "bearer", type: "http" }],
2626
2485
  url: "/applications/{id}",
2627
2486
  ...options
2628
2487
  });
2629
2488
  var getApplicationsById = (options) => (options.client ?? client).get({
2630
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2631
2489
  security: [{ scheme: "bearer", type: "http" }],
2632
2490
  url: "/applications/{id}",
2633
2491
  ...options
2634
2492
  });
2635
2493
  var patchApplicationsById = (options) => (options.client ?? client).patch({
2636
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2637
2494
  security: [{ scheme: "bearer", type: "http" }],
2638
2495
  url: "/applications/{id}",
2639
2496
  ...options,
@@ -2643,18 +2500,11 @@ var patchApplicationsById = (options) => (options.client ?? client).patch({
2643
2500
  }
2644
2501
  });
2645
2502
  var getSearchHealth = (options) => (options.client ?? client).get({
2646
- querySerializer: {
2647
- parameters: {
2648
- filter: { object: { style: "form" } },
2649
- fields: { object: { style: "form" } }
2650
- }
2651
- },
2652
2503
  security: [{ scheme: "bearer", type: "http" }],
2653
2504
  url: "/search/health",
2654
2505
  ...options
2655
2506
  });
2656
2507
  var postThreadsByIdFork = (options) => (options.client ?? client).post({
2657
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2658
2508
  security: [{ scheme: "bearer", type: "http" }],
2659
2509
  url: "/threads/{id}/fork",
2660
2510
  ...options,
@@ -2664,24 +2514,16 @@ var postThreadsByIdFork = (options) => (options.client ?? client).post({
2664
2514
  }
2665
2515
  });
2666
2516
  var getTransactions = (options) => (options.client ?? client).get({
2667
- querySerializer: {
2668
- parameters: {
2669
- filter: { object: { style: "form" } },
2670
- fields: { object: { style: "form" } }
2671
- }
2672
- },
2673
2517
  security: [{ scheme: "bearer", type: "http" }],
2674
2518
  url: "/transactions",
2675
2519
  ...options
2676
2520
  });
2677
2521
  var getThreadsSearch = (options) => (options.client ?? client).get({
2678
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2679
2522
  security: [{ scheme: "bearer", type: "http" }],
2680
2523
  url: "/threads/search",
2681
2524
  ...options
2682
2525
  });
2683
2526
  var postSearchSavedByIdRun = (options) => (options.client ?? client).post({
2684
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2685
2527
  security: [{ scheme: "bearer", type: "http" }],
2686
2528
  url: "/search/saved/{id}/run",
2687
2529
  ...options,
@@ -2691,7 +2533,6 @@ var postSearchSavedByIdRun = (options) => (options.client ?? client).post({
2691
2533
  }
2692
2534
  });
2693
2535
  var patchWalletPlan = (options) => (options.client ?? client).patch({
2694
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2695
2536
  security: [{ scheme: "bearer", type: "http" }],
2696
2537
  url: "/wallet/plan",
2697
2538
  ...options,
@@ -2701,30 +2542,21 @@ var patchWalletPlan = (options) => (options.client ?? client).patch({
2701
2542
  }
2702
2543
  });
2703
2544
  var getPlansSlugBySlug = (options) => (options.client ?? client).get({
2704
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2705
2545
  security: [{ scheme: "bearer", type: "http" }],
2706
2546
  url: "/plans/slug/{slug}",
2707
2547
  ...options
2708
2548
  });
2709
2549
  var getSearchStatus = (options) => (options.client ?? client).get({
2710
- querySerializer: {
2711
- parameters: {
2712
- filter: { object: { style: "form" } },
2713
- fields: { object: { style: "form" } }
2714
- }
2715
- },
2716
2550
  security: [{ scheme: "bearer", type: "http" }],
2717
2551
  url: "/search/status",
2718
2552
  ...options
2719
2553
  });
2720
2554
  var getAgentsByIdTrainingStats = (options) => (options.client ?? client).get({
2721
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2722
2555
  security: [{ scheme: "bearer", type: "http" }],
2723
2556
  url: "/agents/{id}/training-stats",
2724
2557
  ...options
2725
2558
  });
2726
2559
  var postUsersAuthLogin = (options) => (options.client ?? client).post({
2727
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2728
2560
  security: [{ scheme: "bearer", type: "http" }],
2729
2561
  url: "/users/auth/login",
2730
2562
  ...options,
@@ -2734,7 +2566,6 @@ var postUsersAuthLogin = (options) => (options.client ?? client).post({
2734
2566
  }
2735
2567
  });
2736
2568
  var postAiEmbed = (options) => (options.client ?? client).post({
2737
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2738
2569
  security: [{ scheme: "bearer", type: "http" }],
2739
2570
  url: "/ai/embed",
2740
2571
  ...options,
@@ -2744,18 +2575,11 @@ var postAiEmbed = (options) => (options.client ?? client).post({
2744
2575
  }
2745
2576
  });
2746
2577
  var getWorkspacesMine = (options) => (options.client ?? client).get({
2747
- querySerializer: {
2748
- parameters: {
2749
- filter: { object: { style: "form" } },
2750
- fields: { object: { style: "form" } }
2751
- }
2752
- },
2753
2578
  security: [{ scheme: "bearer", type: "http" }],
2754
2579
  url: "/workspaces/mine",
2755
2580
  ...options
2756
2581
  });
2757
2582
  var postSearchReindex = (options) => (options.client ?? client).post({
2758
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2759
2583
  security: [{ scheme: "bearer", type: "http" }],
2760
2584
  url: "/search/reindex",
2761
2585
  ...options,
@@ -2765,7 +2589,6 @@ var postSearchReindex = (options) => (options.client ?? client).post({
2765
2589
  }
2766
2590
  });
2767
2591
  var postUsersAuthConfirm = (options) => (options.client ?? client).post({
2768
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2769
2592
  security: [{ scheme: "bearer", type: "http" }],
2770
2593
  url: "/users/auth/confirm",
2771
2594
  ...options,
@@ -2775,30 +2598,16 @@ var postUsersAuthConfirm = (options) => (options.client ?? client).post({
2775
2598
  }
2776
2599
  });
2777
2600
  var getStorageStats = (options) => (options.client ?? client).get({
2778
- querySerializer: {
2779
- parameters: {
2780
- filter: { object: { style: "form" } },
2781
- fields: { object: { style: "form" } }
2782
- }
2783
- },
2784
2601
  security: [{ scheme: "bearer", type: "http" }],
2785
2602
  url: "/storage/stats",
2786
2603
  ...options
2787
2604
  });
2788
2605
  var getWorkspaceMemberships = (options) => (options.client ?? client).get({
2789
- querySerializer: {
2790
- parameters: {
2791
- filter: { object: { style: "form" } },
2792
- page: { object: { style: "form" } },
2793
- fields: { object: { style: "form" } }
2794
- }
2795
- },
2796
2606
  security: [{ scheme: "bearer", type: "http" }],
2797
2607
  url: "/workspace-memberships",
2798
2608
  ...options
2799
2609
  });
2800
2610
  var postWorkspaceMemberships = (options) => (options.client ?? client).post({
2801
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2802
2611
  security: [{ scheme: "bearer", type: "http" }],
2803
2612
  url: "/workspace-memberships",
2804
2613
  ...options,
@@ -2808,19 +2617,11 @@ var postWorkspaceMemberships = (options) => (options.client ?? client).post({
2808
2617
  }
2809
2618
  });
2810
2619
  var getSearchAnalytics = (options) => (options.client ?? client).get({
2811
- querySerializer: {
2812
- parameters: {
2813
- filter: { object: { style: "form" } },
2814
- page: { object: { style: "form" } },
2815
- fields: { object: { style: "form" } }
2816
- }
2817
- },
2818
2620
  security: [{ scheme: "bearer", type: "http" }],
2819
2621
  url: "/search/analytics",
2820
2622
  ...options
2821
2623
  });
2822
2624
  var postUsersAuthRegister = (options) => (options.client ?? client).post({
2823
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2824
2625
  security: [{ scheme: "bearer", type: "http" }],
2825
2626
  url: "/users/auth/register",
2826
2627
  ...options,
@@ -2830,31 +2631,26 @@ var postUsersAuthRegister = (options) => (options.client ?? client).post({
2830
2631
  }
2831
2632
  });
2832
2633
  var deletePaymentMethodsById = (options) => (options.client ?? client).delete({
2833
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2834
2634
  security: [{ scheme: "bearer", type: "http" }],
2835
2635
  url: "/payment-methods/{id}",
2836
2636
  ...options
2837
2637
  });
2838
2638
  var getPaymentMethodsById = (options) => (options.client ?? client).get({
2839
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2840
2639
  security: [{ scheme: "bearer", type: "http" }],
2841
2640
  url: "/payment-methods/{id}",
2842
2641
  ...options
2843
2642
  });
2844
2643
  var deleteBucketsById = (options) => (options.client ?? client).delete({
2845
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2846
2644
  security: [{ scheme: "bearer", type: "http" }],
2847
2645
  url: "/buckets/{id}",
2848
2646
  ...options
2849
2647
  });
2850
2648
  var getBucketsById = (options) => (options.client ?? client).get({
2851
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2852
2649
  security: [{ scheme: "bearer", type: "http" }],
2853
2650
  url: "/buckets/{id}",
2854
2651
  ...options
2855
2652
  });
2856
2653
  var patchBucketsById = (options) => (options.client ?? client).patch({
2857
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2858
2654
  security: [{ scheme: "bearer", type: "http" }],
2859
2655
  url: "/buckets/{id}",
2860
2656
  ...options,
@@ -2864,7 +2660,6 @@ var patchBucketsById = (options) => (options.client ?? client).patch({
2864
2660
  }
2865
2661
  });
2866
2662
  var patchApiKeysByIdSetBudget = (options) => (options.client ?? client).patch({
2867
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2868
2663
  security: [{ scheme: "bearer", type: "http" }],
2869
2664
  url: "/api-keys/{id}/set-budget",
2870
2665
  ...options,
@@ -2874,7 +2669,6 @@ var patchApiKeysByIdSetBudget = (options) => (options.client ?? client).patch({
2874
2669
  }
2875
2670
  });
2876
2671
  var postUsersAuthMagicLinkRequest = (options) => (options.client ?? client).post({
2877
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2878
2672
  security: [{ scheme: "bearer", type: "http" }],
2879
2673
  url: "/users/auth/magic-link/request",
2880
2674
  ...options,
@@ -2884,35 +2678,21 @@ var postUsersAuthMagicLinkRequest = (options) => (options.client ?? client).post
2884
2678
  }
2885
2679
  });
2886
2680
  var getSearchAnalyticsSummary = (options) => (options.client ?? client).get({
2887
- querySerializer: {
2888
- parameters: {
2889
- filter: { object: { style: "form" } },
2890
- fields: { object: { style: "form" } }
2891
- }
2892
- },
2893
2681
  security: [{ scheme: "bearer", type: "http" }],
2894
2682
  url: "/search/analytics/summary",
2895
2683
  ...options
2896
2684
  });
2897
2685
  var getTenantsById = (options) => (options.client ?? client).get({
2898
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2899
2686
  security: [{ scheme: "bearer", type: "http" }],
2900
2687
  url: "/tenants/{id}",
2901
2688
  ...options
2902
2689
  });
2903
2690
  var getPlans = (options) => (options.client ?? client).get({
2904
- querySerializer: {
2905
- parameters: {
2906
- filter: { object: { style: "form" } },
2907
- fields: { object: { style: "form" } }
2908
- }
2909
- },
2910
2691
  security: [{ scheme: "bearer", type: "http" }],
2911
2692
  url: "/plans",
2912
2693
  ...options
2913
2694
  });
2914
2695
  var postAgentsByIdTest = (options) => (options.client ?? client).post({
2915
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2916
2696
  security: [{ scheme: "bearer", type: "http" }],
2917
2697
  url: "/agents/{id}/test",
2918
2698
  ...options,
@@ -2922,29 +2702,16 @@ var postAgentsByIdTest = (options) => (options.client ?? client).post({
2922
2702
  }
2923
2703
  });
2924
2704
  var getExtractionDocuments = (options) => (options.client ?? client).get({
2925
- querySerializer: {
2926
- parameters: {
2927
- filter: { object: { style: "form" } },
2928
- fields: { object: { style: "form" } }
2929
- }
2930
- },
2931
2705
  security: [{ scheme: "bearer", type: "http" }],
2932
2706
  url: "/extraction/documents",
2933
2707
  ...options
2934
2708
  });
2935
2709
  var getApiKeysActive = (options) => (options.client ?? client).get({
2936
- querySerializer: {
2937
- parameters: {
2938
- filter: { object: { style: "form" } },
2939
- fields: { object: { style: "form" } }
2940
- }
2941
- },
2942
2710
  security: [{ scheme: "bearer", type: "http" }],
2943
2711
  url: "/api-keys/active",
2944
2712
  ...options
2945
2713
  });
2946
2714
  var postUsersAuthResendConfirmation = (options) => (options.client ?? client).post({
2947
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2948
2715
  security: [{ scheme: "bearer", type: "http" }],
2949
2716
  url: "/users/auth/resend-confirmation",
2950
2717
  ...options,
@@ -2954,19 +2721,11 @@ var postUsersAuthResendConfirmation = (options) => (options.client ?? client).po
2954
2721
  }
2955
2722
  });
2956
2723
  var getAiMessages = (options) => (options.client ?? client).get({
2957
- querySerializer: {
2958
- parameters: {
2959
- filter: { object: { style: "form" } },
2960
- page: { object: { style: "form" } },
2961
- fields: { object: { style: "form" } }
2962
- }
2963
- },
2964
2724
  security: [{ scheme: "bearer", type: "http" }],
2965
2725
  url: "/ai/messages",
2966
2726
  ...options
2967
2727
  });
2968
2728
  var postAiMessages = (options) => (options.client ?? client).post({
2969
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2970
2729
  security: [{ scheme: "bearer", type: "http" }],
2971
2730
  url: "/ai/messages",
2972
2731
  ...options,
@@ -2976,7 +2735,6 @@ var postAiMessages = (options) => (options.client ?? client).post({
2976
2735
  }
2977
2736
  });
2978
2737
  var getWalletPlanPreview = (options) => (options.client ?? client).get({
2979
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2980
2738
  security: [{ scheme: "bearer", type: "http" }],
2981
2739
  url: "/wallet/plan/preview",
2982
2740
  ...options
@@ -2987,7 +2745,6 @@ var getNotificationLogsStats = (options) => (options.client ?? client).get({
2987
2745
  ...options
2988
2746
  });
2989
2747
  var postThreadsByIdSummarize = (options) => (options.client ?? client).post({
2990
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2991
2748
  security: [{ scheme: "bearer", type: "http" }],
2992
2749
  url: "/threads/{id}/summarize",
2993
2750
  ...options,
@@ -2997,18 +2754,11 @@ var postThreadsByIdSummarize = (options) => (options.client ?? client).post({
2997
2754
  }
2998
2755
  });
2999
2756
  var getExtractionResults = (options) => (options.client ?? client).get({
3000
- querySerializer: {
3001
- parameters: {
3002
- filter: { object: { style: "form" } },
3003
- fields: { object: { style: "form" } }
3004
- }
3005
- },
3006
2757
  security: [{ scheme: "bearer", type: "http" }],
3007
2758
  url: "/extraction/results",
3008
2759
  ...options
3009
2760
  });
3010
2761
  var postAgentsByIdClone = (options) => (options.client ?? client).post({
3011
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
3012
2762
  security: [{ scheme: "bearer", type: "http" }],
3013
2763
  url: "/agents/{id}/clone",
3014
2764
  ...options,
@@ -3018,19 +2768,16 @@ var postAgentsByIdClone = (options) => (options.client ?? client).post({
3018
2768
  }
3019
2769
  });
3020
2770
  var deleteAiConversationsById = (options) => (options.client ?? client).delete({
3021
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
3022
2771
  security: [{ scheme: "bearer", type: "http" }],
3023
2772
  url: "/ai/conversations/{id}",
3024
2773
  ...options
3025
2774
  });
3026
2775
  var getAiConversationsById = (options) => (options.client ?? client).get({
3027
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
3028
2776
  security: [{ scheme: "bearer", type: "http" }],
3029
2777
  url: "/ai/conversations/{id}",
3030
2778
  ...options
3031
2779
  });
3032
2780
  var patchAiConversationsById = (options) => (options.client ?? client).patch({
3033
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
3034
2781
  security: [{ scheme: "bearer", type: "http" }],
3035
2782
  url: "/ai/conversations/{id}",
3036
2783
  ...options,
@@ -3040,18 +2787,11 @@ var patchAiConversationsById = (options) => (options.client ?? client).patch({
3040
2787
  }
3041
2788
  });
3042
2789
  var getInvitationsMe = (options) => (options.client ?? client).get({
3043
- querySerializer: {
3044
- parameters: {
3045
- filter: { object: { style: "form" } },
3046
- fields: { object: { style: "form" } }
3047
- }
3048
- },
3049
2790
  security: [{ scheme: "bearer", type: "http" }],
3050
2791
  url: "/invitations/me",
3051
2792
  ...options
3052
2793
  });
3053
2794
  var postSearchBatch = (options) => (options.client ?? client).post({
3054
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
3055
2795
  security: [{ scheme: "bearer", type: "http" }],
3056
2796
  url: "/search/batch",
3057
2797
  ...options,
@@ -3061,19 +2801,11 @@ var postSearchBatch = (options) => (options.client ?? client).post({
3061
2801
  }
3062
2802
  });
3063
2803
  var getApiKeys = (options) => (options.client ?? client).get({
3064
- querySerializer: {
3065
- parameters: {
3066
- filter: { object: { style: "form" } },
3067
- page: { object: { style: "form" } },
3068
- fields: { object: { style: "form" } }
3069
- }
3070
- },
3071
2804
  security: [{ scheme: "bearer", type: "http" }],
3072
2805
  url: "/api-keys",
3073
2806
  ...options
3074
2807
  });
3075
2808
  var postApiKeys = (options) => (options.client ?? client).post({
3076
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
3077
2809
  security: [{ scheme: "bearer", type: "http" }],
3078
2810
  url: "/api-keys",
3079
2811
  ...options,
@@ -3083,19 +2815,16 @@ var postApiKeys = (options) => (options.client ?? client).post({
3083
2815
  }
3084
2816
  });
3085
2817
  var deleteObjectsById = (options) => (options.client ?? client).delete({
3086
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
3087
2818
  security: [{ scheme: "bearer", type: "http" }],
3088
2819
  url: "/objects/{id}",
3089
2820
  ...options
3090
2821
  });
3091
2822
  var getObjectsById = (options) => (options.client ?? client).get({
3092
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
3093
2823
  security: [{ scheme: "bearer", type: "http" }],
3094
2824
  url: "/objects/{id}",
3095
2825
  ...options
3096
2826
  });
3097
2827
  var postExtractionDocumentsBulkReprocess = (options) => (options.client ?? client).post({
3098
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
3099
2828
  security: [{ scheme: "bearer", type: "http" }],
3100
2829
  url: "/extraction/documents/bulk-reprocess",
3101
2830
  ...options,
@@ -3105,25 +2834,16 @@ var postExtractionDocumentsBulkReprocess = (options) => (options.client ?? clien
3105
2834
  }
3106
2835
  });
3107
2836
  var getApplicationsBySlugBySlug = (options) => (options.client ?? client).get({
3108
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
3109
2837
  security: [{ scheme: "bearer", type: "http" }],
3110
2838
  url: "/applications/by-slug/{slug}",
3111
2839
  ...options
3112
2840
  });
3113
2841
  var getWebhookConfigs = (options) => (options.client ?? client).get({
3114
- querySerializer: {
3115
- parameters: {
3116
- filter: { object: { style: "form" } },
3117
- page: { object: { style: "form" } },
3118
- fields: { object: { style: "form" } }
3119
- }
3120
- },
3121
2842
  security: [{ scheme: "bearer", type: "http" }],
3122
2843
  url: "/webhook-configs",
3123
2844
  ...options
3124
2845
  });
3125
2846
  var postWebhookConfigs = (options) => (options.client ?? client).post({
3126
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
3127
2847
  security: [{ scheme: "bearer", type: "http" }],
3128
2848
  url: "/webhook-configs",
3129
2849
  ...options,
@@ -3133,36 +2853,21 @@ var postWebhookConfigs = (options) => (options.client ?? client).post({
3133
2853
  }
3134
2854
  });
3135
2855
  var getWallet = (options) => (options.client ?? client).get({
3136
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
3137
2856
  security: [{ scheme: "bearer", type: "http" }],
3138
2857
  url: "/wallet",
3139
2858
  ...options
3140
2859
  });
3141
2860
  var getSearchStats = (options) => (options.client ?? client).get({
3142
- querySerializer: {
3143
- parameters: {
3144
- filter: { object: { style: "form" } },
3145
- fields: { object: { style: "form" } }
3146
- }
3147
- },
3148
2861
  security: [{ scheme: "bearer", type: "http" }],
3149
2862
  url: "/search/stats",
3150
2863
  ...options
3151
2864
  });
3152
2865
  var getAgents = (options) => (options.client ?? client).get({
3153
- querySerializer: {
3154
- parameters: {
3155
- filter: { object: { style: "form" } },
3156
- page: { object: { style: "form" } },
3157
- fields: { object: { style: "form" } }
3158
- }
3159
- },
3160
2866
  security: [{ scheme: "bearer", type: "http" }],
3161
2867
  url: "/agents",
3162
2868
  ...options
3163
2869
  });
3164
2870
  var postAgents = (options) => (options.client ?? client).post({
3165
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
3166
2871
  security: [{ scheme: "bearer", type: "http" }],
3167
2872
  url: "/agents",
3168
2873
  ...options,
@@ -3172,7 +2877,6 @@ var postAgents = (options) => (options.client ?? client).post({
3172
2877
  }
3173
2878
  });
3174
2879
  var patchPaymentMethodsByIdDefault = (options) => (options.client ?? client).patch({
3175
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
3176
2880
  security: [{ scheme: "bearer", type: "http" }],
3177
2881
  url: "/payment-methods/{id}/default",
3178
2882
  ...options,
@@ -3187,25 +2891,16 @@ var postAgentsByIdExport = (options) => (options.client ?? client).post({
3187
2891
  ...options
3188
2892
  });
3189
2893
  var getExtractionBatchesById = (options) => (options.client ?? client).get({
3190
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
3191
2894
  security: [{ scheme: "bearer", type: "http" }],
3192
2895
  url: "/extraction/batches/{id}",
3193
2896
  ...options
3194
2897
  });
3195
2898
  var getWorkspacesByWorkspaceIdExtractionExports = (options) => (options.client ?? client).get({
3196
- querySerializer: {
3197
- parameters: {
3198
- filter: { object: { style: "form" } },
3199
- page: { object: { style: "form" } },
3200
- fields: { object: { style: "form" } }
3201
- }
3202
- },
3203
2899
  security: [{ scheme: "bearer", type: "http" }],
3204
2900
  url: "/workspaces/{workspace_id}/extraction/exports",
3205
2901
  ...options
3206
2902
  });
3207
2903
  var postWorkspacesByWorkspaceIdExtractionExports = (options) => (options.client ?? client).post({
3208
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
3209
2904
  security: [{ scheme: "bearer", type: "http" }],
3210
2905
  url: "/workspaces/{workspace_id}/extraction/exports",
3211
2906
  ...options,
@@ -3215,24 +2910,11 @@ var postWorkspacesByWorkspaceIdExtractionExports = (options) => (options.client
3215
2910
  }
3216
2911
  });
3217
2912
  var getCreditPackages = (options) => (options.client ?? client).get({
3218
- querySerializer: {
3219
- parameters: {
3220
- filter: { object: { style: "form" } },
3221
- fields: { object: { style: "form" } }
3222
- }
3223
- },
3224
2913
  security: [{ scheme: "bearer", type: "http" }],
3225
2914
  url: "/credit-packages",
3226
2915
  ...options
3227
2916
  });
3228
2917
  var getObjects = (options) => (options.client ?? client).get({
3229
- querySerializer: {
3230
- parameters: {
3231
- filter: { object: { style: "form" } },
3232
- page: { object: { style: "form" } },
3233
- fields: { object: { style: "form" } }
3234
- }
3235
- },
3236
2918
  security: [{ scheme: "bearer", type: "http" }],
3237
2919
  url: "/objects",
3238
2920
  ...options
@@ -6358,6 +6040,7 @@ export {
6358
6040
  AgentImportSchema,
6359
6041
  AgentTestInputSchema,
6360
6042
  AgentUpdateSchema,
6043
+ AgentVersionError,
6361
6044
  AiSearchAdvancedSchema,
6362
6045
  ApiKeyAllocateSchema,
6363
6046
  ApiKeyCreateSchema,
@@ -6381,6 +6064,7 @@ export {
6381
6064
  GptClient,
6382
6065
  GptCoreError,
6383
6066
  InsecureConnectionError,
6067
+ InvalidFieldTypeError,
6384
6068
  InvitationCreateSchema,
6385
6069
  LOG_LEVELS,
6386
6070
  LoginRequestSchema,
@@ -6388,6 +6072,7 @@ export {
6388
6072
  MessageCreateSchema,
6389
6073
  MessageSendSchema,
6390
6074
  MessageStreamSchema,
6075
+ MissingFieldNameError,
6391
6076
  NetworkError,
6392
6077
  NotFoundError,
6393
6078
  NotificationMethodCreateSchema,
@@ -6400,9 +6085,11 @@ export {
6400
6085
  RateLimitError,
6401
6086
  RegisterRequestSchema,
6402
6087
  RequestBuilder,
6088
+ ReservedFieldError,
6403
6089
  RetryTimeoutError,
6404
6090
  SDK_VERSION,
6405
6091
  SavedSearchCreateSchema,
6092
+ SchemaDefinitionInvalidError,
6406
6093
  SdkEventEmitter,
6407
6094
  SearchRequestSchema,
6408
6095
  ServerError,
@@ -6412,6 +6099,9 @@ export {
6412
6099
  TimeoutError,
6413
6100
  UserProfileUpdateSchema,
6414
6101
  ValidationError,
6102
+ VersionAlreadyUsedError,
6103
+ VersionInUseCannotDeleteError,
6104
+ VersionNotFoundError,
6415
6105
  WalletAddonsSchema,
6416
6106
  WalletAutoTopUpSchema,
6417
6107
  WalletCreditsUpdateSchema,