@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.js CHANGED
@@ -25,6 +25,7 @@ __export(index_exports, {
25
25
  AgentImportSchema: () => AgentImportSchema,
26
26
  AgentTestInputSchema: () => AgentTestInputSchema,
27
27
  AgentUpdateSchema: () => AgentUpdateSchema,
28
+ AgentVersionError: () => AgentVersionError,
28
29
  AiSearchAdvancedSchema: () => AiSearchAdvancedSchema,
29
30
  ApiKeyAllocateSchema: () => ApiKeyAllocateSchema,
30
31
  ApiKeyCreateSchema: () => ApiKeyCreateSchema,
@@ -48,6 +49,7 @@ __export(index_exports, {
48
49
  GptClient: () => GptClient,
49
50
  GptCoreError: () => GptCoreError,
50
51
  InsecureConnectionError: () => InsecureConnectionError,
52
+ InvalidFieldTypeError: () => InvalidFieldTypeError,
51
53
  InvitationCreateSchema: () => InvitationCreateSchema,
52
54
  LOG_LEVELS: () => LOG_LEVELS,
53
55
  LoginRequestSchema: () => LoginRequestSchema,
@@ -55,6 +57,7 @@ __export(index_exports, {
55
57
  MessageCreateSchema: () => MessageCreateSchema,
56
58
  MessageSendSchema: () => MessageSendSchema,
57
59
  MessageStreamSchema: () => MessageStreamSchema,
60
+ MissingFieldNameError: () => MissingFieldNameError,
58
61
  NetworkError: () => NetworkError,
59
62
  NotFoundError: () => NotFoundError,
60
63
  NotificationMethodCreateSchema: () => NotificationMethodCreateSchema,
@@ -67,9 +70,11 @@ __export(index_exports, {
67
70
  RateLimitError: () => RateLimitError,
68
71
  RegisterRequestSchema: () => RegisterRequestSchema,
69
72
  RequestBuilder: () => RequestBuilder,
73
+ ReservedFieldError: () => ReservedFieldError,
70
74
  RetryTimeoutError: () => RetryTimeoutError,
71
75
  SDK_VERSION: () => SDK_VERSION,
72
76
  SavedSearchCreateSchema: () => SavedSearchCreateSchema,
77
+ SchemaDefinitionInvalidError: () => SchemaDefinitionInvalidError,
73
78
  SdkEventEmitter: () => SdkEventEmitter,
74
79
  SearchRequestSchema: () => SearchRequestSchema,
75
80
  ServerError: () => ServerError,
@@ -79,6 +84,9 @@ __export(index_exports, {
79
84
  TimeoutError: () => TimeoutError,
80
85
  UserProfileUpdateSchema: () => UserProfileUpdateSchema,
81
86
  ValidationError: () => ValidationError,
87
+ VersionAlreadyUsedError: () => VersionAlreadyUsedError,
88
+ VersionInUseCannotDeleteError: () => VersionInUseCannotDeleteError,
89
+ VersionNotFoundError: () => VersionNotFoundError,
82
90
  WalletAddonsSchema: () => WalletAddonsSchema,
83
91
  WalletAutoTopUpSchema: () => WalletAutoTopUpSchema,
84
92
  WalletCreditsUpdateSchema: () => WalletCreditsUpdateSchema,
@@ -1007,6 +1015,83 @@ var ConflictError = class extends GptCoreError {
1007
1015
  super(message, { statusCode: 409, code: "conflict_error", ...options });
1008
1016
  }
1009
1017
  };
1018
+ var AgentVersionError = class extends GptCoreError {
1019
+ constructor(message, options) {
1020
+ super(message, options);
1021
+ this.pointer = options?.pointer;
1022
+ this.versionId = options?.versionId;
1023
+ this.agentId = options?.agentId;
1024
+ }
1025
+ };
1026
+ var VersionAlreadyUsedError = class extends AgentVersionError {
1027
+ constructor(message = "Schema version has been used for extraction", options) {
1028
+ super(message, {
1029
+ statusCode: 400,
1030
+ code: "version_already_used",
1031
+ ...options
1032
+ });
1033
+ }
1034
+ };
1035
+ var VersionInUseCannotDeleteError = class extends AgentVersionError {
1036
+ constructor(message = "Schema version cannot be deleted", options) {
1037
+ super(message, {
1038
+ statusCode: 400,
1039
+ code: "version_in_use_cannot_delete",
1040
+ ...options
1041
+ });
1042
+ }
1043
+ };
1044
+ var VersionNotFoundError = class extends AgentVersionError {
1045
+ constructor(message = "Schema version not found", options) {
1046
+ super(message, { statusCode: 404, code: "version_not_found", ...options });
1047
+ }
1048
+ };
1049
+ var ReservedFieldError = class extends AgentVersionError {
1050
+ constructor(message = "Field name is reserved", options) {
1051
+ super(message, {
1052
+ statusCode: 400,
1053
+ code: options?.code ?? "field_name_reserved",
1054
+ ...options
1055
+ });
1056
+ }
1057
+ };
1058
+ var InvalidFieldTypeError = class extends AgentVersionError {
1059
+ constructor(message = "Field type is invalid", options) {
1060
+ super(message, {
1061
+ statusCode: 400,
1062
+ code: "field_type_invalid",
1063
+ ...options
1064
+ });
1065
+ }
1066
+ };
1067
+ var MissingFieldNameError = class extends AgentVersionError {
1068
+ constructor(message = "Field name is required", options) {
1069
+ super(message, {
1070
+ statusCode: 400,
1071
+ code: "field_name_required",
1072
+ ...options
1073
+ });
1074
+ }
1075
+ };
1076
+ var SchemaDefinitionInvalidError = class extends AgentVersionError {
1077
+ constructor(message = "Schema definition is not a valid JSON Schema", options) {
1078
+ super(message, {
1079
+ statusCode: 400,
1080
+ code: "schema_definition_invalid",
1081
+ ...options
1082
+ });
1083
+ }
1084
+ };
1085
+ var AGENT_VERSION_ERROR_BY_CODE = {
1086
+ version_already_used: VersionAlreadyUsedError,
1087
+ version_in_use_cannot_delete: VersionInUseCannotDeleteError,
1088
+ version_not_found: VersionNotFoundError,
1089
+ field_name_reserved: ReservedFieldError,
1090
+ field_name_suffix_conflict: ReservedFieldError,
1091
+ field_type_invalid: InvalidFieldTypeError,
1092
+ field_name_required: MissingFieldNameError,
1093
+ schema_definition_invalid: SchemaDefinitionInvalidError
1094
+ };
1010
1095
  function handleApiError(error) {
1011
1096
  if (typeof error !== "object" || error === null) {
1012
1097
  throw new NetworkError(
@@ -1021,6 +1106,11 @@ function handleApiError(error) {
1021
1106
  const body = response.body || response.data || err.body || err.data || err;
1022
1107
  let message = "An error occurred";
1023
1108
  let errors;
1109
+ let jsonApiCode;
1110
+ let jsonApiPointer;
1111
+ let metaVersionId;
1112
+ let metaAgentId;
1113
+ let metaRequestId;
1024
1114
  if (typeof body === "object" && body !== null && "errors" in body && Array.isArray(body.errors)) {
1025
1115
  const bodyErrors = body.errors;
1026
1116
  const firstError = bodyErrors[0];
@@ -1029,6 +1119,14 @@ function handleApiError(error) {
1029
1119
  field: err2.source?.pointer?.split("/").pop(),
1030
1120
  message: err2.detail || err2.title || "Unknown error"
1031
1121
  }));
1122
+ if (firstError) {
1123
+ jsonApiCode = firstError.code;
1124
+ jsonApiPointer = firstError.source?.pointer;
1125
+ const meta = firstError.meta;
1126
+ metaVersionId = meta?.version_id;
1127
+ metaAgentId = meta?.agent_id;
1128
+ metaRequestId = meta?.request_id;
1129
+ }
1032
1130
  } else if (typeof body === "object" && body !== null && "message" in body && typeof body.message === "string") {
1033
1131
  message = body.message;
1034
1132
  } else if (typeof body === "string") {
@@ -1063,11 +1161,27 @@ function handleApiError(error) {
1063
1161
  };
1064
1162
  const errorOptions = {
1065
1163
  statusCode,
1066
- requestId,
1164
+ // Prefer the JSON:API meta.request_id when present; fall back to the
1165
+ // x-request-id header.
1166
+ requestId: metaRequestId ?? requestId,
1067
1167
  headers: filterSensitiveHeaders(headers),
1068
1168
  body,
1069
- cause: error instanceof Error ? error : void 0
1169
+ cause: error instanceof Error ? error : void 0,
1170
+ // When the JSON:API body carries an errors[0].code, thread it through so
1171
+ // any error class thrown below reports the server's code rather than the
1172
+ // default status-code-derived one.
1173
+ ...jsonApiCode ? { code: jsonApiCode } : {}
1070
1174
  };
1175
+ const AgentVersionCtor = jsonApiCode ? AGENT_VERSION_ERROR_BY_CODE[jsonApiCode] : void 0;
1176
+ if (jsonApiCode && AgentVersionCtor) {
1177
+ throw new AgentVersionCtor(message, {
1178
+ ...errorOptions,
1179
+ code: jsonApiCode,
1180
+ pointer: jsonApiPointer,
1181
+ versionId: metaVersionId,
1182
+ agentId: metaAgentId
1183
+ });
1184
+ }
1071
1185
  switch (statusCode) {
1072
1186
  case 401:
1073
1187
  throw new AuthenticationError(message, errorOptions);
@@ -1095,7 +1209,7 @@ function handleApiError(error) {
1095
1209
  throw new ServerError(message, errorOptions);
1096
1210
  default:
1097
1211
  if (statusCode && statusCode >= 400) {
1098
- throw new GptCoreError(message, errorOptions);
1212
+ throw new GptCoreError(message, { ...errorOptions, code: jsonApiCode });
1099
1213
  }
1100
1214
  throw new NetworkError(message, errorOptions);
1101
1215
  }
@@ -1331,7 +1445,7 @@ function buildUserAgent(sdkVersion, appInfo) {
1331
1445
 
1332
1446
  // src/base-client.ts
1333
1447
  var DEFAULT_API_VERSION = "2025-12-03";
1334
- var SDK_VERSION = "0.11.1";
1448
+ var SDK_VERSION = "0.12.0";
1335
1449
  function generateUUID() {
1336
1450
  if (typeof crypto !== "undefined" && typeof crypto.randomUUID === "function") {
1337
1451
  return crypto.randomUUID();
@@ -1609,18 +1723,11 @@ var client = createClient(
1609
1723
 
1610
1724
  // src/_internal/sdk.gen.ts
1611
1725
  var getNotificationLogs = (options) => (options.client ?? client).get({
1612
- querySerializer: {
1613
- parameters: {
1614
- filter: { object: { style: "form" } },
1615
- fields: { object: { style: "form" } }
1616
- }
1617
- },
1618
1726
  security: [{ scheme: "bearer", type: "http" }],
1619
1727
  url: "/notification-logs",
1620
1728
  ...options
1621
1729
  });
1622
1730
  var postAiSearchAdvanced = (options) => (options.client ?? client).post({
1623
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1624
1731
  security: [{ scheme: "bearer", type: "http" }],
1625
1732
  url: "/ai/search/advanced",
1626
1733
  ...options,
@@ -1630,31 +1737,21 @@ var postAiSearchAdvanced = (options) => (options.client ?? client).post({
1630
1737
  }
1631
1738
  });
1632
1739
  var deleteExtractionDocumentsById = (options) => (options.client ?? client).delete({
1633
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1634
1740
  security: [{ scheme: "bearer", type: "http" }],
1635
1741
  url: "/extraction/documents/{id}",
1636
1742
  ...options
1637
1743
  });
1638
1744
  var getExtractionDocumentsById = (options) => (options.client ?? client).get({
1639
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1640
1745
  security: [{ scheme: "bearer", type: "http" }],
1641
1746
  url: "/extraction/documents/{id}",
1642
1747
  ...options
1643
1748
  });
1644
1749
  var getThreads = (options) => (options.client ?? client).get({
1645
- querySerializer: {
1646
- parameters: {
1647
- filter: { object: { style: "form" } },
1648
- page: { object: { style: "form" } },
1649
- fields: { object: { style: "form" } }
1650
- }
1651
- },
1652
1750
  security: [{ scheme: "bearer", type: "http" }],
1653
1751
  url: "/threads",
1654
1752
  ...options
1655
1753
  });
1656
1754
  var postThreads = (options) => (options.client ?? client).post({
1657
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1658
1755
  security: [{ scheme: "bearer", type: "http" }],
1659
1756
  url: "/threads",
1660
1757
  ...options,
@@ -1664,7 +1761,6 @@ var postThreads = (options) => (options.client ?? client).post({
1664
1761
  }
1665
1762
  });
1666
1763
  var patchExtractionDocumentsByIdCancel = (options) => (options.client ?? client).patch({
1667
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1668
1764
  security: [{ scheme: "bearer", type: "http" }],
1669
1765
  url: "/extraction/documents/{id}/cancel",
1670
1766
  ...options,
@@ -1674,13 +1770,11 @@ var patchExtractionDocumentsByIdCancel = (options) => (options.client ?? client)
1674
1770
  }
1675
1771
  });
1676
1772
  var getAgentVersionsById = (options) => (options.client ?? client).get({
1677
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1678
1773
  security: [{ scheme: "bearer", type: "http" }],
1679
1774
  url: "/agent-versions/{id}",
1680
1775
  ...options
1681
1776
  });
1682
1777
  var patchApiKeysByIdRevoke = (options) => (options.client ?? client).patch({
1683
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1684
1778
  security: [{ scheme: "bearer", type: "http" }],
1685
1779
  url: "/api-keys/{id}/revoke",
1686
1780
  ...options,
@@ -1690,7 +1784,6 @@ var patchApiKeysByIdRevoke = (options) => (options.client ?? client).patch({
1690
1784
  }
1691
1785
  });
1692
1786
  var patchWalletCredits = (options) => (options.client ?? client).patch({
1693
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1694
1787
  security: [{ scheme: "bearer", type: "http" }],
1695
1788
  url: "/wallet/credits",
1696
1789
  ...options,
@@ -1700,7 +1793,6 @@ var patchWalletCredits = (options) => (options.client ?? client).patch({
1700
1793
  }
1701
1794
  });
1702
1795
  var patchApiKeysByIdRotate = (options) => (options.client ?? client).patch({
1703
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1704
1796
  security: [{ scheme: "bearer", type: "http" }],
1705
1797
  url: "/api-keys/{id}/rotate",
1706
1798
  ...options,
@@ -1715,18 +1807,11 @@ var getApplicationsCurrent = (options) => (options.client ?? client).get({
1715
1807
  ...options
1716
1808
  });
1717
1809
  var getWorkspaces = (options) => (options.client ?? client).get({
1718
- querySerializer: {
1719
- parameters: {
1720
- filter: { object: { style: "form" } },
1721
- fields: { object: { style: "form" } }
1722
- }
1723
- },
1724
1810
  security: [{ scheme: "bearer", type: "http" }],
1725
1811
  url: "/workspaces",
1726
1812
  ...options
1727
1813
  });
1728
1814
  var postWorkspaces = (options) => (options.client ?? client).post({
1729
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1730
1815
  security: [{ scheme: "bearer", type: "http" }],
1731
1816
  url: "/workspaces",
1732
1817
  ...options,
@@ -1736,19 +1821,11 @@ var postWorkspaces = (options) => (options.client ?? client).post({
1736
1821
  }
1737
1822
  });
1738
1823
  var getPaymentMethods = (options) => (options.client ?? client).get({
1739
- querySerializer: {
1740
- parameters: {
1741
- filter: { object: { style: "form" } },
1742
- page: { object: { style: "form" } },
1743
- fields: { object: { style: "form" } }
1744
- }
1745
- },
1746
1824
  security: [{ scheme: "bearer", type: "http" }],
1747
1825
  url: "/payment-methods",
1748
1826
  ...options
1749
1827
  });
1750
1828
  var postPaymentMethods = (options) => (options.client ?? client).post({
1751
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1752
1829
  security: [{ scheme: "bearer", type: "http" }],
1753
1830
  url: "/payment-methods",
1754
1831
  ...options,
@@ -1763,19 +1840,16 @@ var getAgentVersionsByIdMetrics = (options) => (options.client ?? client).get({
1763
1840
  ...options
1764
1841
  });
1765
1842
  var getAgentsByIdStats = (options) => (options.client ?? client).get({
1766
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1767
1843
  security: [{ scheme: "bearer", type: "http" }],
1768
1844
  url: "/agents/{id}/stats",
1769
1845
  ...options
1770
1846
  });
1771
1847
  var getDocumentsStats = (options) => (options.client ?? client).get({
1772
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1773
1848
  security: [{ scheme: "bearer", type: "http" }],
1774
1849
  url: "/documents/stats",
1775
1850
  ...options
1776
1851
  });
1777
1852
  var postObjectsRegister = (options) => (options.client ?? client).post({
1778
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1779
1853
  security: [{ scheme: "bearer", type: "http" }],
1780
1854
  url: "/objects/register",
1781
1855
  ...options,
@@ -1785,18 +1859,11 @@ var postObjectsRegister = (options) => (options.client ?? client).post({
1785
1859
  }
1786
1860
  });
1787
1861
  var getSearchIndexes = (options) => (options.client ?? client).get({
1788
- querySerializer: {
1789
- parameters: {
1790
- filter: { object: { style: "form" } },
1791
- fields: { object: { style: "form" } }
1792
- }
1793
- },
1794
1862
  security: [{ scheme: "bearer", type: "http" }],
1795
1863
  url: "/search/indexes",
1796
1864
  ...options
1797
1865
  });
1798
1866
  var postWebhookConfigsByIdTest = (options) => (options.client ?? client).post({
1799
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1800
1867
  security: [{ scheme: "bearer", type: "http" }],
1801
1868
  url: "/webhook-configs/{id}/test",
1802
1869
  ...options,
@@ -1806,7 +1873,6 @@ var postWebhookConfigsByIdTest = (options) => (options.client ?? client).post({
1806
1873
  }
1807
1874
  });
1808
1875
  var postStorageSignDownload = (options) => (options.client ?? client).post({
1809
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1810
1876
  security: [{ scheme: "bearer", type: "http" }],
1811
1877
  url: "/storage/sign-download",
1812
1878
  ...options,
@@ -1816,7 +1882,6 @@ var postStorageSignDownload = (options) => (options.client ?? client).post({
1816
1882
  }
1817
1883
  });
1818
1884
  var patchUsersAuthPasswordChange = (options) => (options.client ?? client).patch({
1819
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1820
1885
  security: [{ scheme: "bearer", type: "http" }],
1821
1886
  url: "/users/auth/password/change",
1822
1887
  ...options,
@@ -1826,7 +1891,6 @@ var patchUsersAuthPasswordChange = (options) => (options.client ?? client).patch
1826
1891
  }
1827
1892
  });
1828
1893
  var postExtractionBatches = (options) => (options.client ?? client).post({
1829
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1830
1894
  security: [{ scheme: "bearer", type: "http" }],
1831
1895
  url: "/extraction/batches",
1832
1896
  ...options,
@@ -1836,7 +1900,6 @@ var postExtractionBatches = (options) => (options.client ?? client).post({
1836
1900
  }
1837
1901
  });
1838
1902
  var postAgentsImport = (options) => (options.client ?? client).post({
1839
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1840
1903
  security: [{ scheme: "bearer", type: "http" }],
1841
1904
  url: "/agents/import",
1842
1905
  ...options,
@@ -1846,7 +1909,6 @@ var postAgentsImport = (options) => (options.client ?? client).post({
1846
1909
  }
1847
1910
  });
1848
1911
  var patchUserProfilesByIdAcceptTos = (options) => (options.client ?? client).patch({
1849
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1850
1912
  security: [{ scheme: "bearer", type: "http" }],
1851
1913
  url: "/user-profiles/{id}/accept-tos",
1852
1914
  ...options,
@@ -1856,7 +1918,6 @@ var patchUserProfilesByIdAcceptTos = (options) => (options.client ?? client).pat
1856
1918
  }
1857
1919
  });
1858
1920
  var postWebhookDeliveriesByIdRetry = (options) => (options.client ?? client).post({
1859
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1860
1921
  security: [{ scheme: "bearer", type: "http" }],
1861
1922
  url: "/webhook-deliveries/{id}/retry",
1862
1923
  ...options,
@@ -1871,7 +1932,6 @@ var getAgentsByIdTrainingExamples = (options) => (options.client ?? client).get(
1871
1932
  ...options
1872
1933
  });
1873
1934
  var getExtractionDocumentsByIdStatus = (options) => (options.client ?? client).get({
1874
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1875
1935
  security: [{ scheme: "bearer", type: "http" }],
1876
1936
  url: "/extraction/documents/{id}/status",
1877
1937
  ...options
@@ -1882,7 +1942,6 @@ var getUsersMeDashboard = (options) => (options.client ?? client).get({
1882
1942
  ...options
1883
1943
  });
1884
1944
  var patchWorkspacesByIdAllocate = (options) => (options.client ?? client).patch({
1885
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1886
1945
  security: [{ scheme: "bearer", type: "http" }],
1887
1946
  url: "/workspaces/{id}/allocate",
1888
1947
  ...options,
@@ -1892,7 +1951,6 @@ var patchWorkspacesByIdAllocate = (options) => (options.client ?? client).patch(
1892
1951
  }
1893
1952
  });
1894
1953
  var patchInvitationsByIdRevoke = (options) => (options.client ?? client).patch({
1895
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1896
1954
  security: [{ scheme: "bearer", type: "http" }],
1897
1955
  url: "/invitations/{id}/revoke",
1898
1956
  ...options,
@@ -1902,19 +1960,16 @@ var patchInvitationsByIdRevoke = (options) => (options.client ?? client).patch({
1902
1960
  }
1903
1961
  });
1904
1962
  var deleteWebhookConfigsById = (options) => (options.client ?? client).delete({
1905
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1906
1963
  security: [{ scheme: "bearer", type: "http" }],
1907
1964
  url: "/webhook-configs/{id}",
1908
1965
  ...options
1909
1966
  });
1910
1967
  var getWebhookConfigsById = (options) => (options.client ?? client).get({
1911
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1912
1968
  security: [{ scheme: "bearer", type: "http" }],
1913
1969
  url: "/webhook-configs/{id}",
1914
1970
  ...options
1915
1971
  });
1916
1972
  var patchWebhookConfigsById = (options) => (options.client ?? client).patch({
1917
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1918
1973
  security: [{ scheme: "bearer", type: "http" }],
1919
1974
  url: "/webhook-configs/{id}",
1920
1975
  ...options,
@@ -1924,7 +1979,6 @@ var patchWebhookConfigsById = (options) => (options.client ?? client).patch({
1924
1979
  }
1925
1980
  });
1926
1981
  var postExtractionDocumentsFindOrBeginUpload = (options) => (options.client ?? client).post({
1927
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1928
1982
  security: [{ scheme: "bearer", type: "http" }],
1929
1983
  url: "/extraction/documents/find-or-begin-upload",
1930
1984
  ...options,
@@ -1943,7 +1997,6 @@ var postAgentsByIdRestoreVersion = (options) => (options.client ?? client).post(
1943
1997
  }
1944
1998
  });
1945
1999
  var patchWalletAutoTopUp = (options) => (options.client ?? client).patch({
1946
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1947
2000
  security: [{ scheme: "bearer", type: "http" }],
1948
2001
  url: "/wallet/auto-top-up",
1949
2002
  ...options,
@@ -1953,7 +2006,6 @@ var patchWalletAutoTopUp = (options) => (options.client ?? client).patch({
1953
2006
  }
1954
2007
  });
1955
2008
  var postAgentsByIdPublishVersion = (options) => (options.client ?? client).post({
1956
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1957
2009
  security: [{ scheme: "bearer", type: "http" }],
1958
2010
  url: "/agents/{id}/publish-version",
1959
2011
  ...options,
@@ -1963,13 +2015,11 @@ var postAgentsByIdPublishVersion = (options) => (options.client ?? client).post(
1963
2015
  }
1964
2016
  });
1965
2017
  var deleteSearchSavedById = (options) => (options.client ?? client).delete({
1966
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1967
2018
  security: [{ scheme: "bearer", type: "http" }],
1968
2019
  url: "/search/saved/{id}",
1969
2020
  ...options
1970
2021
  });
1971
2022
  var postUsersAuthMagicLinkLogin = (options) => (options.client ?? client).post({
1972
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1973
2023
  security: [{ scheme: "bearer", type: "http" }],
1974
2024
  url: "/users/auth/magic-link/login",
1975
2025
  ...options,
@@ -1979,13 +2029,11 @@ var postUsersAuthMagicLinkLogin = (options) => (options.client ?? client).post({
1979
2029
  }
1980
2030
  });
1981
2031
  var getApiKeysById = (options) => (options.client ?? client).get({
1982
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1983
2032
  security: [{ scheme: "bearer", type: "http" }],
1984
2033
  url: "/api-keys/{id}",
1985
2034
  ...options
1986
2035
  });
1987
2036
  var patchUsersAuthResetPassword = (options) => (options.client ?? client).patch({
1988
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1989
2037
  security: [{ scheme: "bearer", type: "http" }],
1990
2038
  url: "/users/auth/reset-password",
1991
2039
  ...options,
@@ -1995,24 +2043,16 @@ var patchUsersAuthResetPassword = (options) => (options.client ?? client).patch(
1995
2043
  }
1996
2044
  });
1997
2045
  var getBucketsByIdStats = (options) => (options.client ?? client).get({
1998
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1999
2046
  security: [{ scheme: "bearer", type: "http" }],
2000
2047
  url: "/buckets/{id}/stats",
2001
2048
  ...options
2002
2049
  });
2003
2050
  var getAgentsUsage = (options) => (options.client ?? client).get({
2004
- querySerializer: {
2005
- parameters: {
2006
- filter: { object: { style: "form" } },
2007
- fields: { object: { style: "form" } }
2008
- }
2009
- },
2010
2051
  security: [{ scheme: "bearer", type: "http" }],
2011
2052
  url: "/agents/usage",
2012
2053
  ...options
2013
2054
  });
2014
2055
  var patchNotificationMethodsByIdVerify = (options) => (options.client ?? client).patch({
2015
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2016
2056
  security: [{ scheme: "bearer", type: "http" }],
2017
2057
  url: "/notification-methods/{id}/verify",
2018
2058
  ...options,
@@ -2022,13 +2062,11 @@ var patchNotificationMethodsByIdVerify = (options) => (options.client ?? client)
2022
2062
  }
2023
2063
  });
2024
2064
  var getBucketsByIdObjects = (options) => (options.client ?? client).get({
2025
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2026
2065
  security: [{ scheme: "bearer", type: "http" }],
2027
2066
  url: "/buckets/{id}/objects",
2028
2067
  ...options
2029
2068
  });
2030
2069
  var postExtractionDocumentsBeginUpload = (options) => (options.client ?? client).post({
2031
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2032
2070
  security: [{ scheme: "bearer", type: "http" }],
2033
2071
  url: "/extraction/documents/begin-upload",
2034
2072
  ...options,
@@ -2038,7 +2076,6 @@ var postExtractionDocumentsBeginUpload = (options) => (options.client ?? client)
2038
2076
  }
2039
2077
  });
2040
2078
  var patchInvitationsByIdResend = (options) => (options.client ?? client).patch({
2041
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2042
2079
  security: [{ scheme: "bearer", type: "http" }],
2043
2080
  url: "/invitations/{id}/resend",
2044
2081
  ...options,
@@ -2048,18 +2085,11 @@ var patchInvitationsByIdResend = (options) => (options.client ?? client).patch({
2048
2085
  }
2049
2086
  });
2050
2087
  var getSearchSaved = (options) => (options.client ?? client).get({
2051
- querySerializer: {
2052
- parameters: {
2053
- filter: { object: { style: "form" } },
2054
- fields: { object: { style: "form" } }
2055
- }
2056
- },
2057
2088
  security: [{ scheme: "bearer", type: "http" }],
2058
2089
  url: "/search/saved",
2059
2090
  ...options
2060
2091
  });
2061
2092
  var postSearchSaved = (options) => (options.client ?? client).post({
2062
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2063
2093
  security: [{ scheme: "bearer", type: "http" }],
2064
2094
  url: "/search/saved",
2065
2095
  ...options,
@@ -2069,7 +2099,6 @@ var postSearchSaved = (options) => (options.client ?? client).post({
2069
2099
  }
2070
2100
  });
2071
2101
  var patchNotificationMethodsByIdSetPrimary = (options) => (options.client ?? client).patch({
2072
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2073
2102
  security: [{ scheme: "bearer", type: "http" }],
2074
2103
  url: "/notification-methods/{id}/set-primary",
2075
2104
  ...options,
@@ -2084,19 +2113,16 @@ var getWebhookConfigsStats = (options) => (options.client ?? client).get({
2084
2113
  ...options
2085
2114
  });
2086
2115
  var deleteNotificationMethodsById = (options) => (options.client ?? client).delete({
2087
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2088
2116
  security: [{ scheme: "bearer", type: "http" }],
2089
2117
  url: "/notification-methods/{id}",
2090
2118
  ...options
2091
2119
  });
2092
2120
  var getNotificationMethodsById = (options) => (options.client ?? client).get({
2093
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2094
2121
  security: [{ scheme: "bearer", type: "http" }],
2095
2122
  url: "/notification-methods/{id}",
2096
2123
  ...options
2097
2124
  });
2098
2125
  var patchNotificationMethodsById = (options) => (options.client ?? client).patch({
2099
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2100
2126
  security: [{ scheme: "bearer", type: "http" }],
2101
2127
  url: "/notification-methods/{id}",
2102
2128
  ...options,
@@ -2106,30 +2132,21 @@ var patchNotificationMethodsById = (options) => (options.client ?? client).patch
2106
2132
  }
2107
2133
  });
2108
2134
  var getSearchSuggest = (options) => (options.client ?? client).get({
2109
- querySerializer: {
2110
- parameters: {
2111
- filter: { object: { style: "form" } },
2112
- fields: { object: { style: "form" } }
2113
- }
2114
- },
2115
2135
  security: [{ scheme: "bearer", type: "http" }],
2116
2136
  url: "/search/suggest",
2117
2137
  ...options
2118
2138
  });
2119
2139
  var deleteAiMessagesById = (options) => (options.client ?? client).delete({
2120
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2121
2140
  security: [{ scheme: "bearer", type: "http" }],
2122
2141
  url: "/ai/messages/{id}",
2123
2142
  ...options
2124
2143
  });
2125
2144
  var getThreadsByIdMessages = (options) => (options.client ?? client).get({
2126
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2127
2145
  security: [{ scheme: "bearer", type: "http" }],
2128
2146
  url: "/threads/{id}/messages",
2129
2147
  ...options
2130
2148
  });
2131
2149
  var postThreadsByIdMessages = (options) => (options.client ?? client).post({
2132
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2133
2150
  security: [{ scheme: "bearer", type: "http" }],
2134
2151
  url: "/threads/{id}/messages",
2135
2152
  ...options,
@@ -2139,7 +2156,6 @@ var postThreadsByIdMessages = (options) => (options.client ?? client).post({
2139
2156
  }
2140
2157
  });
2141
2158
  var patchInvitationsByIdAccept = (options) => (options.client ?? client).patch({
2142
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2143
2159
  security: [{ scheme: "bearer", type: "http" }],
2144
2160
  url: "/invitations/{id}/accept",
2145
2161
  ...options,
@@ -2149,42 +2165,26 @@ var patchInvitationsByIdAccept = (options) => (options.client ?? client).patch({
2149
2165
  }
2150
2166
  });
2151
2167
  var getCreditPackagesById = (options) => (options.client ?? client).get({
2152
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2153
2168
  security: [{ scheme: "bearer", type: "http" }],
2154
2169
  url: "/credit-packages/{id}",
2155
2170
  ...options
2156
2171
  });
2157
2172
  var getWebhookDeliveries = (options) => (options.client ?? client).get({
2158
- querySerializer: {
2159
- parameters: {
2160
- filter: { object: { style: "form" } },
2161
- page: { object: { style: "form" } },
2162
- fields: { object: { style: "form" } }
2163
- }
2164
- },
2165
2173
  security: [{ scheme: "bearer", type: "http" }],
2166
2174
  url: "/webhook-deliveries",
2167
2175
  ...options
2168
2176
  });
2169
2177
  var getAgentVersions = (options) => (options.client ?? client).get({
2170
- querySerializer: {
2171
- parameters: {
2172
- filter: { object: { style: "form" } },
2173
- fields: { object: { style: "form" } }
2174
- }
2175
- },
2176
2178
  security: [{ scheme: "bearer", type: "http" }],
2177
2179
  url: "/agent-versions",
2178
2180
  ...options
2179
2181
  });
2180
2182
  var getExtractionResultsById = (options) => (options.client ?? client).get({
2181
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2182
2183
  security: [{ scheme: "bearer", type: "http" }],
2183
2184
  url: "/extraction/results/{id}",
2184
2185
  ...options
2185
2186
  });
2186
2187
  var postAgentsByIdValidate = (options) => (options.client ?? client).post({
2187
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2188
2188
  security: [{ scheme: "bearer", type: "http" }],
2189
2189
  url: "/agents/{id}/validate",
2190
2190
  ...options,
@@ -2194,13 +2194,11 @@ var postAgentsByIdValidate = (options) => (options.client ?? client).post({
2194
2194
  }
2195
2195
  });
2196
2196
  var getUsersMe = (options) => (options.client ?? client).get({
2197
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2198
2197
  security: [{ scheme: "bearer", type: "http" }],
2199
2198
  url: "/users/me",
2200
2199
  ...options
2201
2200
  });
2202
2201
  var getTransactionsById = (options) => (options.client ?? client).get({
2203
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2204
2202
  security: [{ scheme: "bearer", type: "http" }],
2205
2203
  url: "/transactions/{id}",
2206
2204
  ...options
@@ -2211,7 +2209,6 @@ var getUsersMeTenants = (options) => (options.client ?? client).get({
2211
2209
  ...options
2212
2210
  });
2213
2211
  var getWebhookDeliveriesById = (options) => (options.client ?? client).get({
2214
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2215
2212
  security: [{ scheme: "bearer", type: "http" }],
2216
2213
  url: "/webhook-deliveries/{id}",
2217
2214
  ...options
@@ -2227,13 +2224,11 @@ var getWebhookDeliveriesStats = (options) => (options.client ?? client).get({
2227
2224
  ...options
2228
2225
  });
2229
2226
  var getNotificationLogsById = (options) => (options.client ?? client).get({
2230
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2231
2227
  security: [{ scheme: "bearer", type: "http" }],
2232
2228
  url: "/notification-logs/{id}",
2233
2229
  ...options
2234
2230
  });
2235
2231
  var patchExtractionDocumentsByIdFinishUpload = (options) => (options.client ?? client).patch({
2236
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2237
2232
  security: [{ scheme: "bearer", type: "http" }],
2238
2233
  url: "/extraction/documents/{id}/finish-upload",
2239
2234
  ...options,
@@ -2243,40 +2238,21 @@ var patchExtractionDocumentsByIdFinishUpload = (options) => (options.client ?? c
2243
2238
  }
2244
2239
  });
2245
2240
  var getApiKeysStats = (options) => (options.client ?? client).get({
2246
- querySerializer: {
2247
- parameters: {
2248
- filter: { object: { style: "form" } },
2249
- fields: { object: { style: "form" } }
2250
- }
2251
- },
2252
2241
  security: [{ scheme: "bearer", type: "http" }],
2253
2242
  url: "/api-keys/stats",
2254
2243
  ...options
2255
2244
  });
2256
2245
  var getSearch = (options) => (options.client ?? client).get({
2257
- querySerializer: {
2258
- parameters: {
2259
- filter: { object: { style: "form" } },
2260
- fields: { object: { style: "form" } }
2261
- }
2262
- },
2263
2246
  security: [{ scheme: "bearer", type: "http" }],
2264
2247
  url: "/search",
2265
2248
  ...options
2266
2249
  });
2267
2250
  var getInvitations = (options) => (options.client ?? client).get({
2268
- querySerializer: {
2269
- parameters: {
2270
- filter: { object: { style: "form" } },
2271
- fields: { object: { style: "form" } }
2272
- }
2273
- },
2274
2251
  security: [{ scheme: "bearer", type: "http" }],
2275
2252
  url: "/invitations",
2276
2253
  ...options
2277
2254
  });
2278
2255
  var postInvitations = (options) => (options.client ?? client).post({
2279
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2280
2256
  security: [{ scheme: "bearer", type: "http" }],
2281
2257
  url: "/invitations",
2282
2258
  ...options,
@@ -2286,7 +2262,6 @@ var postInvitations = (options) => (options.client ?? client).post({
2286
2262
  }
2287
2263
  });
2288
2264
  var patchThreadsByIdArchive = (options) => (options.client ?? client).patch({
2289
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2290
2265
  security: [{ scheme: "bearer", type: "http" }],
2291
2266
  url: "/threads/{id}/archive",
2292
2267
  ...options,
@@ -2296,36 +2271,21 @@ var patchThreadsByIdArchive = (options) => (options.client ?? client).patch({
2296
2271
  }
2297
2272
  });
2298
2273
  var getSearchSemantic = (options) => (options.client ?? client).get({
2299
- querySerializer: {
2300
- parameters: {
2301
- filter: { object: { style: "form" } },
2302
- fields: { object: { style: "form" } }
2303
- }
2304
- },
2305
2274
  security: [{ scheme: "bearer", type: "http" }],
2306
2275
  url: "/search/semantic",
2307
2276
  ...options
2308
2277
  });
2309
2278
  var getThreadsStats = (options) => (options.client ?? client).get({
2310
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2311
2279
  security: [{ scheme: "bearer", type: "http" }],
2312
2280
  url: "/threads/stats",
2313
2281
  ...options
2314
2282
  });
2315
2283
  var getApplications = (options) => (options.client ?? client).get({
2316
- querySerializer: {
2317
- parameters: {
2318
- filter: { object: { style: "form" } },
2319
- page: { object: { style: "form" } },
2320
- fields: { object: { style: "form" } }
2321
- }
2322
- },
2323
2284
  security: [{ scheme: "bearer", type: "http" }],
2324
2285
  url: "/applications",
2325
2286
  ...options
2326
2287
  });
2327
2288
  var postApplications = (options) => (options.client ?? client).post({
2328
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2329
2289
  security: [{ scheme: "bearer", type: "http" }],
2330
2290
  url: "/applications",
2331
2291
  ...options,
@@ -2335,19 +2295,11 @@ var postApplications = (options) => (options.client ?? client).post({
2335
2295
  }
2336
2296
  });
2337
2297
  var getNotificationPreferences = (options) => (options.client ?? client).get({
2338
- querySerializer: {
2339
- parameters: {
2340
- filter: { object: { style: "form" } },
2341
- page: { object: { style: "form" } },
2342
- fields: { object: { style: "form" } }
2343
- }
2344
- },
2345
2298
  security: [{ scheme: "bearer", type: "http" }],
2346
2299
  url: "/notification-preferences",
2347
2300
  ...options
2348
2301
  });
2349
2302
  var postNotificationPreferences = (options) => (options.client ?? client).post({
2350
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2351
2303
  security: [{ scheme: "bearer", type: "http" }],
2352
2304
  url: "/notification-preferences",
2353
2305
  ...options,
@@ -2357,7 +2309,6 @@ var postNotificationPreferences = (options) => (options.client ?? client).post({
2357
2309
  }
2358
2310
  });
2359
2311
  var patchExtractionDocumentsByIdReprocess = (options) => (options.client ?? client).patch({
2360
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2361
2312
  security: [{ scheme: "bearer", type: "http" }],
2362
2313
  url: "/extraction/documents/{id}/reprocess",
2363
2314
  ...options,
@@ -2367,19 +2318,16 @@ var patchExtractionDocumentsByIdReprocess = (options) => (options.client ?? clie
2367
2318
  }
2368
2319
  });
2369
2320
  var deleteThreadsById = (options) => (options.client ?? client).delete({
2370
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2371
2321
  security: [{ scheme: "bearer", type: "http" }],
2372
2322
  url: "/threads/{id}",
2373
2323
  ...options
2374
2324
  });
2375
2325
  var getThreadsById = (options) => (options.client ?? client).get({
2376
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2377
2326
  security: [{ scheme: "bearer", type: "http" }],
2378
2327
  url: "/threads/{id}",
2379
2328
  ...options
2380
2329
  });
2381
2330
  var patchThreadsById = (options) => (options.client ?? client).patch({
2382
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2383
2331
  security: [{ scheme: "bearer", type: "http" }],
2384
2332
  url: "/threads/{id}",
2385
2333
  ...options,
@@ -2389,30 +2337,21 @@ var patchThreadsById = (options) => (options.client ?? client).patch({
2389
2337
  }
2390
2338
  });
2391
2339
  var getWorkspacesByIdMembers = (options) => (options.client ?? client).get({
2392
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2393
2340
  security: [{ scheme: "bearer", type: "http" }],
2394
2341
  url: "/workspaces/{id}/members",
2395
2342
  ...options
2396
2343
  });
2397
2344
  var getBucketsAll = (options) => (options.client ?? client).get({
2398
- querySerializer: {
2399
- parameters: {
2400
- filter: { object: { style: "form" } },
2401
- fields: { object: { style: "form" } }
2402
- }
2403
- },
2404
2345
  security: [{ scheme: "bearer", type: "http" }],
2405
2346
  url: "/buckets/all",
2406
2347
  ...options
2407
2348
  });
2408
2349
  var getNotificationPreferencesById = (options) => (options.client ?? client).get({
2409
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2410
2350
  security: [{ scheme: "bearer", type: "http" }],
2411
2351
  url: "/notification-preferences/{id}",
2412
2352
  ...options
2413
2353
  });
2414
2354
  var patchNotificationPreferencesById = (options) => (options.client ?? client).patch({
2415
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2416
2355
  security: [{ scheme: "bearer", type: "http" }],
2417
2356
  url: "/notification-preferences/{id}",
2418
2357
  ...options,
@@ -2422,13 +2361,6 @@ var patchNotificationPreferencesById = (options) => (options.client ?? client).p
2422
2361
  }
2423
2362
  });
2424
2363
  var getRoles = (options) => (options.client ?? client).get({
2425
- querySerializer: {
2426
- parameters: {
2427
- filter: { object: { style: "form" } },
2428
- page: { object: { style: "form" } },
2429
- fields: { object: { style: "form" } }
2430
- }
2431
- },
2432
2364
  security: [{ scheme: "bearer", type: "http" }],
2433
2365
  url: "/roles",
2434
2366
  ...options
@@ -2443,7 +2375,6 @@ var postThreadsByIdExport = (options) => (options.client ?? client).post({
2443
2375
  }
2444
2376
  });
2445
2377
  var patchInvitationsByIdDecline = (options) => (options.client ?? client).patch({
2446
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2447
2378
  security: [{ scheme: "bearer", type: "http" }],
2448
2379
  url: "/invitations/{id}/decline",
2449
2380
  ...options,
@@ -2453,7 +2384,6 @@ var patchInvitationsByIdDecline = (options) => (options.client ?? client).patch(
2453
2384
  }
2454
2385
  });
2455
2386
  var postExtractionDocumentsUpload = (options) => (options.client ?? client).post({
2456
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2457
2387
  security: [{ scheme: "bearer", type: "http" }],
2458
2388
  url: "/extraction/documents/upload",
2459
2389
  ...options,
@@ -2463,25 +2393,21 @@ var postExtractionDocumentsUpload = (options) => (options.client ?? client).post
2463
2393
  }
2464
2394
  });
2465
2395
  var getExtractionResultsDocumentByDocumentId = (options) => (options.client ?? client).get({
2466
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2467
2396
  security: [{ scheme: "bearer", type: "http" }],
2468
2397
  url: "/extraction/results/document/{document_id}",
2469
2398
  ...options
2470
2399
  });
2471
2400
  var deleteWorkspacesById = (options) => (options.client ?? client).delete({
2472
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2473
2401
  security: [{ scheme: "bearer", type: "http" }],
2474
2402
  url: "/workspaces/{id}",
2475
2403
  ...options
2476
2404
  });
2477
2405
  var getWorkspacesById = (options) => (options.client ?? client).get({
2478
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2479
2406
  security: [{ scheme: "bearer", type: "http" }],
2480
2407
  url: "/workspaces/{id}",
2481
2408
  ...options
2482
2409
  });
2483
2410
  var patchWorkspacesById = (options) => (options.client ?? client).patch({
2484
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2485
2411
  security: [{ scheme: "bearer", type: "http" }],
2486
2412
  url: "/workspaces/{id}",
2487
2413
  ...options,
@@ -2491,42 +2417,21 @@ var patchWorkspacesById = (options) => (options.client ?? client).patch({
2491
2417
  }
2492
2418
  });
2493
2419
  var getTenants = (options) => (options.client ?? client).get({
2494
- querySerializer: {
2495
- parameters: {
2496
- filter: { object: { style: "form" } },
2497
- page: { object: { style: "form" } },
2498
- fields: { object: { style: "form" } }
2499
- }
2500
- },
2501
2420
  security: [{ scheme: "bearer", type: "http" }],
2502
2421
  url: "/tenants",
2503
2422
  ...options
2504
2423
  });
2505
2424
  var getWalletInvoices = (options) => (options.client ?? client).get({
2506
- querySerializer: {
2507
- parameters: {
2508
- filter: { object: { style: "form" } },
2509
- fields: { object: { style: "form" } }
2510
- }
2511
- },
2512
2425
  security: [{ scheme: "bearer", type: "http" }],
2513
2426
  url: "/wallet/invoices",
2514
2427
  ...options
2515
2428
  });
2516
2429
  var getNotificationMethods = (options) => (options.client ?? client).get({
2517
- querySerializer: {
2518
- parameters: {
2519
- filter: { object: { style: "form" } },
2520
- page: { object: { style: "form" } },
2521
- fields: { object: { style: "form" } }
2522
- }
2523
- },
2524
2430
  security: [{ scheme: "bearer", type: "http" }],
2525
2431
  url: "/notification-methods",
2526
2432
  ...options
2527
2433
  });
2528
2434
  var postNotificationMethods = (options) => (options.client ?? client).post({
2529
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2530
2435
  security: [{ scheme: "bearer", type: "http" }],
2531
2436
  url: "/notification-methods",
2532
2437
  ...options,
@@ -2536,24 +2441,16 @@ var postNotificationMethods = (options) => (options.client ?? client).post({
2536
2441
  }
2537
2442
  });
2538
2443
  var getExtractionDocumentsByIdView = (options) => (options.client ?? client).get({
2539
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2540
2444
  security: [{ scheme: "bearer", type: "http" }],
2541
2445
  url: "/extraction/documents/{id}/view",
2542
2446
  ...options
2543
2447
  });
2544
2448
  var getBuckets = (options) => (options.client ?? client).get({
2545
- querySerializer: {
2546
- parameters: {
2547
- filter: { object: { style: "form" } },
2548
- fields: { object: { style: "form" } }
2549
- }
2550
- },
2551
2449
  security: [{ scheme: "bearer", type: "http" }],
2552
2450
  url: "/buckets",
2553
2451
  ...options
2554
2452
  });
2555
2453
  var postBuckets = (options) => (options.client ?? client).post({
2556
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2557
2454
  security: [{ scheme: "bearer", type: "http" }],
2558
2455
  url: "/buckets",
2559
2456
  ...options,
@@ -2563,13 +2460,11 @@ var postBuckets = (options) => (options.client ?? client).post({
2563
2460
  }
2564
2461
  });
2565
2462
  var getUserProfilesMe = (options) => (options.client ?? client).get({
2566
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2567
2463
  security: [{ scheme: "bearer", type: "http" }],
2568
2464
  url: "/user-profiles/me",
2569
2465
  ...options
2570
2466
  });
2571
2467
  var postDocumentsBulkDelete = (options) => (options.client ?? client).post({
2572
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2573
2468
  security: [{ scheme: "bearer", type: "http" }],
2574
2469
  url: "/documents/bulk-delete",
2575
2470
  ...options,
@@ -2584,13 +2479,11 @@ var getUsersMeActivity = (options) => (options.client ?? client).get({
2584
2479
  ...options
2585
2480
  });
2586
2481
  var getPlansById = (options) => (options.client ?? client).get({
2587
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2588
2482
  security: [{ scheme: "bearer", type: "http" }],
2589
2483
  url: "/plans/{id}",
2590
2484
  ...options
2591
2485
  });
2592
2486
  var patchUserProfilesById = (options) => (options.client ?? client).patch({
2593
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2594
2487
  security: [{ scheme: "bearer", type: "http" }],
2595
2488
  url: "/user-profiles/{id}",
2596
2489
  ...options,
@@ -2600,13 +2493,11 @@ var patchUserProfilesById = (options) => (options.client ?? client).patch({
2600
2493
  }
2601
2494
  });
2602
2495
  var getTenantsByTenantIdStats = (options) => (options.client ?? client).get({
2603
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2604
2496
  security: [{ scheme: "bearer", type: "http" }],
2605
2497
  url: "/tenants/{tenant_id}/stats",
2606
2498
  ...options
2607
2499
  });
2608
2500
  var patchWebhookConfigsByIdRotateSecret = (options) => (options.client ?? client).patch({
2609
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2610
2501
  security: [{ scheme: "bearer", type: "http" }],
2611
2502
  url: "/webhook-configs/{id}/rotate-secret",
2612
2503
  ...options,
@@ -2616,7 +2507,6 @@ var patchWebhookConfigsByIdRotateSecret = (options) => (options.client ?? client
2616
2507
  }
2617
2508
  });
2618
2509
  var patchWalletAddons = (options) => (options.client ?? client).patch({
2619
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2620
2510
  security: [{ scheme: "bearer", type: "http" }],
2621
2511
  url: "/wallet/addons",
2622
2512
  ...options,
@@ -2626,7 +2516,6 @@ var patchWalletAddons = (options) => (options.client ?? client).patch({
2626
2516
  }
2627
2517
  });
2628
2518
  var patchApiKeysByIdAllocate = (options) => (options.client ?? client).patch({
2629
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2630
2519
  security: [{ scheme: "bearer", type: "http" }],
2631
2520
  url: "/api-keys/{id}/allocate",
2632
2521
  ...options,
@@ -2636,19 +2525,16 @@ var patchApiKeysByIdAllocate = (options) => (options.client ?? client).patch({
2636
2525
  }
2637
2526
  });
2638
2527
  var deleteAgentsById = (options) => (options.client ?? client).delete({
2639
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2640
2528
  security: [{ scheme: "bearer", type: "http" }],
2641
2529
  url: "/agents/{id}",
2642
2530
  ...options
2643
2531
  });
2644
2532
  var getAgentsById = (options) => (options.client ?? client).get({
2645
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2646
2533
  security: [{ scheme: "bearer", type: "http" }],
2647
2534
  url: "/agents/{id}",
2648
2535
  ...options
2649
2536
  });
2650
2537
  var patchAgentsById = (options) => (options.client ?? client).patch({
2651
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2652
2538
  security: [{ scheme: "bearer", type: "http" }],
2653
2539
  url: "/agents/{id}",
2654
2540
  ...options,
@@ -2658,7 +2544,6 @@ var patchAgentsById = (options) => (options.client ?? client).patch({
2658
2544
  }
2659
2545
  });
2660
2546
  var patchThreadsByIdUnarchive = (options) => (options.client ?? client).patch({
2661
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2662
2547
  security: [{ scheme: "bearer", type: "http" }],
2663
2548
  url: "/threads/{id}/unarchive",
2664
2549
  ...options,
@@ -2668,7 +2553,6 @@ var patchThreadsByIdUnarchive = (options) => (options.client ?? client).patch({
2668
2553
  }
2669
2554
  });
2670
2555
  var postStorageSignUpload = (options) => (options.client ?? client).post({
2671
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2672
2556
  security: [{ scheme: "bearer", type: "http" }],
2673
2557
  url: "/storage/sign-upload",
2674
2558
  ...options,
@@ -2678,25 +2562,16 @@ var postStorageSignUpload = (options) => (options.client ?? client).post({
2678
2562
  }
2679
2563
  });
2680
2564
  var getAgentsByIdUsage = (options) => (options.client ?? client).get({
2681
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2682
2565
  security: [{ scheme: "bearer", type: "http" }],
2683
2566
  url: "/agents/{id}/usage",
2684
2567
  ...options
2685
2568
  });
2686
2569
  var getAiConversations = (options) => (options.client ?? client).get({
2687
- querySerializer: {
2688
- parameters: {
2689
- filter: { object: { style: "form" } },
2690
- page: { object: { style: "form" } },
2691
- fields: { object: { style: "form" } }
2692
- }
2693
- },
2694
2570
  security: [{ scheme: "bearer", type: "http" }],
2695
2571
  url: "/ai/conversations",
2696
2572
  ...options
2697
2573
  });
2698
2574
  var postAiConversations = (options) => (options.client ?? client).post({
2699
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2700
2575
  security: [{ scheme: "bearer", type: "http" }],
2701
2576
  url: "/ai/conversations",
2702
2577
  ...options,
@@ -2706,7 +2581,6 @@ var postAiConversations = (options) => (options.client ?? client).post({
2706
2581
  }
2707
2582
  });
2708
2583
  var postAiSearch = (options) => (options.client ?? client).post({
2709
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2710
2584
  security: [{ scheme: "bearer", type: "http" }],
2711
2585
  url: "/ai/search",
2712
2586
  ...options,
@@ -2716,30 +2590,21 @@ var postAiSearch = (options) => (options.client ?? client).post({
2716
2590
  }
2717
2591
  });
2718
2592
  var getWorkspacesShared = (options) => (options.client ?? client).get({
2719
- querySerializer: {
2720
- parameters: {
2721
- filter: { object: { style: "form" } },
2722
- fields: { object: { style: "form" } }
2723
- }
2724
- },
2725
2593
  security: [{ scheme: "bearer", type: "http" }],
2726
2594
  url: "/workspaces/shared",
2727
2595
  ...options
2728
2596
  });
2729
2597
  var deleteApplicationsById = (options) => (options.client ?? client).delete({
2730
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2731
2598
  security: [{ scheme: "bearer", type: "http" }],
2732
2599
  url: "/applications/{id}",
2733
2600
  ...options
2734
2601
  });
2735
2602
  var getApplicationsById = (options) => (options.client ?? client).get({
2736
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2737
2603
  security: [{ scheme: "bearer", type: "http" }],
2738
2604
  url: "/applications/{id}",
2739
2605
  ...options
2740
2606
  });
2741
2607
  var patchApplicationsById = (options) => (options.client ?? client).patch({
2742
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2743
2608
  security: [{ scheme: "bearer", type: "http" }],
2744
2609
  url: "/applications/{id}",
2745
2610
  ...options,
@@ -2749,18 +2614,11 @@ var patchApplicationsById = (options) => (options.client ?? client).patch({
2749
2614
  }
2750
2615
  });
2751
2616
  var getSearchHealth = (options) => (options.client ?? client).get({
2752
- querySerializer: {
2753
- parameters: {
2754
- filter: { object: { style: "form" } },
2755
- fields: { object: { style: "form" } }
2756
- }
2757
- },
2758
2617
  security: [{ scheme: "bearer", type: "http" }],
2759
2618
  url: "/search/health",
2760
2619
  ...options
2761
2620
  });
2762
2621
  var postThreadsByIdFork = (options) => (options.client ?? client).post({
2763
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2764
2622
  security: [{ scheme: "bearer", type: "http" }],
2765
2623
  url: "/threads/{id}/fork",
2766
2624
  ...options,
@@ -2770,24 +2628,16 @@ var postThreadsByIdFork = (options) => (options.client ?? client).post({
2770
2628
  }
2771
2629
  });
2772
2630
  var getTransactions = (options) => (options.client ?? client).get({
2773
- querySerializer: {
2774
- parameters: {
2775
- filter: { object: { style: "form" } },
2776
- fields: { object: { style: "form" } }
2777
- }
2778
- },
2779
2631
  security: [{ scheme: "bearer", type: "http" }],
2780
2632
  url: "/transactions",
2781
2633
  ...options
2782
2634
  });
2783
2635
  var getThreadsSearch = (options) => (options.client ?? client).get({
2784
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2785
2636
  security: [{ scheme: "bearer", type: "http" }],
2786
2637
  url: "/threads/search",
2787
2638
  ...options
2788
2639
  });
2789
2640
  var postSearchSavedByIdRun = (options) => (options.client ?? client).post({
2790
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2791
2641
  security: [{ scheme: "bearer", type: "http" }],
2792
2642
  url: "/search/saved/{id}/run",
2793
2643
  ...options,
@@ -2797,7 +2647,6 @@ var postSearchSavedByIdRun = (options) => (options.client ?? client).post({
2797
2647
  }
2798
2648
  });
2799
2649
  var patchWalletPlan = (options) => (options.client ?? client).patch({
2800
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2801
2650
  security: [{ scheme: "bearer", type: "http" }],
2802
2651
  url: "/wallet/plan",
2803
2652
  ...options,
@@ -2807,30 +2656,21 @@ var patchWalletPlan = (options) => (options.client ?? client).patch({
2807
2656
  }
2808
2657
  });
2809
2658
  var getPlansSlugBySlug = (options) => (options.client ?? client).get({
2810
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2811
2659
  security: [{ scheme: "bearer", type: "http" }],
2812
2660
  url: "/plans/slug/{slug}",
2813
2661
  ...options
2814
2662
  });
2815
2663
  var getSearchStatus = (options) => (options.client ?? client).get({
2816
- querySerializer: {
2817
- parameters: {
2818
- filter: { object: { style: "form" } },
2819
- fields: { object: { style: "form" } }
2820
- }
2821
- },
2822
2664
  security: [{ scheme: "bearer", type: "http" }],
2823
2665
  url: "/search/status",
2824
2666
  ...options
2825
2667
  });
2826
2668
  var getAgentsByIdTrainingStats = (options) => (options.client ?? client).get({
2827
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2828
2669
  security: [{ scheme: "bearer", type: "http" }],
2829
2670
  url: "/agents/{id}/training-stats",
2830
2671
  ...options
2831
2672
  });
2832
2673
  var postUsersAuthLogin = (options) => (options.client ?? client).post({
2833
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2834
2674
  security: [{ scheme: "bearer", type: "http" }],
2835
2675
  url: "/users/auth/login",
2836
2676
  ...options,
@@ -2840,7 +2680,6 @@ var postUsersAuthLogin = (options) => (options.client ?? client).post({
2840
2680
  }
2841
2681
  });
2842
2682
  var postAiEmbed = (options) => (options.client ?? client).post({
2843
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2844
2683
  security: [{ scheme: "bearer", type: "http" }],
2845
2684
  url: "/ai/embed",
2846
2685
  ...options,
@@ -2850,18 +2689,11 @@ var postAiEmbed = (options) => (options.client ?? client).post({
2850
2689
  }
2851
2690
  });
2852
2691
  var getWorkspacesMine = (options) => (options.client ?? client).get({
2853
- querySerializer: {
2854
- parameters: {
2855
- filter: { object: { style: "form" } },
2856
- fields: { object: { style: "form" } }
2857
- }
2858
- },
2859
2692
  security: [{ scheme: "bearer", type: "http" }],
2860
2693
  url: "/workspaces/mine",
2861
2694
  ...options
2862
2695
  });
2863
2696
  var postSearchReindex = (options) => (options.client ?? client).post({
2864
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2865
2697
  security: [{ scheme: "bearer", type: "http" }],
2866
2698
  url: "/search/reindex",
2867
2699
  ...options,
@@ -2871,7 +2703,6 @@ var postSearchReindex = (options) => (options.client ?? client).post({
2871
2703
  }
2872
2704
  });
2873
2705
  var postUsersAuthConfirm = (options) => (options.client ?? client).post({
2874
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2875
2706
  security: [{ scheme: "bearer", type: "http" }],
2876
2707
  url: "/users/auth/confirm",
2877
2708
  ...options,
@@ -2881,30 +2712,16 @@ var postUsersAuthConfirm = (options) => (options.client ?? client).post({
2881
2712
  }
2882
2713
  });
2883
2714
  var getStorageStats = (options) => (options.client ?? client).get({
2884
- querySerializer: {
2885
- parameters: {
2886
- filter: { object: { style: "form" } },
2887
- fields: { object: { style: "form" } }
2888
- }
2889
- },
2890
2715
  security: [{ scheme: "bearer", type: "http" }],
2891
2716
  url: "/storage/stats",
2892
2717
  ...options
2893
2718
  });
2894
2719
  var getWorkspaceMemberships = (options) => (options.client ?? client).get({
2895
- querySerializer: {
2896
- parameters: {
2897
- filter: { object: { style: "form" } },
2898
- page: { object: { style: "form" } },
2899
- fields: { object: { style: "form" } }
2900
- }
2901
- },
2902
2720
  security: [{ scheme: "bearer", type: "http" }],
2903
2721
  url: "/workspace-memberships",
2904
2722
  ...options
2905
2723
  });
2906
2724
  var postWorkspaceMemberships = (options) => (options.client ?? client).post({
2907
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2908
2725
  security: [{ scheme: "bearer", type: "http" }],
2909
2726
  url: "/workspace-memberships",
2910
2727
  ...options,
@@ -2914,19 +2731,11 @@ var postWorkspaceMemberships = (options) => (options.client ?? client).post({
2914
2731
  }
2915
2732
  });
2916
2733
  var getSearchAnalytics = (options) => (options.client ?? client).get({
2917
- querySerializer: {
2918
- parameters: {
2919
- filter: { object: { style: "form" } },
2920
- page: { object: { style: "form" } },
2921
- fields: { object: { style: "form" } }
2922
- }
2923
- },
2924
2734
  security: [{ scheme: "bearer", type: "http" }],
2925
2735
  url: "/search/analytics",
2926
2736
  ...options
2927
2737
  });
2928
2738
  var postUsersAuthRegister = (options) => (options.client ?? client).post({
2929
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2930
2739
  security: [{ scheme: "bearer", type: "http" }],
2931
2740
  url: "/users/auth/register",
2932
2741
  ...options,
@@ -2936,31 +2745,26 @@ var postUsersAuthRegister = (options) => (options.client ?? client).post({
2936
2745
  }
2937
2746
  });
2938
2747
  var deletePaymentMethodsById = (options) => (options.client ?? client).delete({
2939
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2940
2748
  security: [{ scheme: "bearer", type: "http" }],
2941
2749
  url: "/payment-methods/{id}",
2942
2750
  ...options
2943
2751
  });
2944
2752
  var getPaymentMethodsById = (options) => (options.client ?? client).get({
2945
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2946
2753
  security: [{ scheme: "bearer", type: "http" }],
2947
2754
  url: "/payment-methods/{id}",
2948
2755
  ...options
2949
2756
  });
2950
2757
  var deleteBucketsById = (options) => (options.client ?? client).delete({
2951
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2952
2758
  security: [{ scheme: "bearer", type: "http" }],
2953
2759
  url: "/buckets/{id}",
2954
2760
  ...options
2955
2761
  });
2956
2762
  var getBucketsById = (options) => (options.client ?? client).get({
2957
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2958
2763
  security: [{ scheme: "bearer", type: "http" }],
2959
2764
  url: "/buckets/{id}",
2960
2765
  ...options
2961
2766
  });
2962
2767
  var patchBucketsById = (options) => (options.client ?? client).patch({
2963
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2964
2768
  security: [{ scheme: "bearer", type: "http" }],
2965
2769
  url: "/buckets/{id}",
2966
2770
  ...options,
@@ -2970,7 +2774,6 @@ var patchBucketsById = (options) => (options.client ?? client).patch({
2970
2774
  }
2971
2775
  });
2972
2776
  var patchApiKeysByIdSetBudget = (options) => (options.client ?? client).patch({
2973
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2974
2777
  security: [{ scheme: "bearer", type: "http" }],
2975
2778
  url: "/api-keys/{id}/set-budget",
2976
2779
  ...options,
@@ -2980,7 +2783,6 @@ var patchApiKeysByIdSetBudget = (options) => (options.client ?? client).patch({
2980
2783
  }
2981
2784
  });
2982
2785
  var postUsersAuthMagicLinkRequest = (options) => (options.client ?? client).post({
2983
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2984
2786
  security: [{ scheme: "bearer", type: "http" }],
2985
2787
  url: "/users/auth/magic-link/request",
2986
2788
  ...options,
@@ -2990,35 +2792,21 @@ var postUsersAuthMagicLinkRequest = (options) => (options.client ?? client).post
2990
2792
  }
2991
2793
  });
2992
2794
  var getSearchAnalyticsSummary = (options) => (options.client ?? client).get({
2993
- querySerializer: {
2994
- parameters: {
2995
- filter: { object: { style: "form" } },
2996
- fields: { object: { style: "form" } }
2997
- }
2998
- },
2999
2795
  security: [{ scheme: "bearer", type: "http" }],
3000
2796
  url: "/search/analytics/summary",
3001
2797
  ...options
3002
2798
  });
3003
2799
  var getTenantsById = (options) => (options.client ?? client).get({
3004
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
3005
2800
  security: [{ scheme: "bearer", type: "http" }],
3006
2801
  url: "/tenants/{id}",
3007
2802
  ...options
3008
2803
  });
3009
2804
  var getPlans = (options) => (options.client ?? client).get({
3010
- querySerializer: {
3011
- parameters: {
3012
- filter: { object: { style: "form" } },
3013
- fields: { object: { style: "form" } }
3014
- }
3015
- },
3016
2805
  security: [{ scheme: "bearer", type: "http" }],
3017
2806
  url: "/plans",
3018
2807
  ...options
3019
2808
  });
3020
2809
  var postAgentsByIdTest = (options) => (options.client ?? client).post({
3021
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
3022
2810
  security: [{ scheme: "bearer", type: "http" }],
3023
2811
  url: "/agents/{id}/test",
3024
2812
  ...options,
@@ -3028,29 +2816,16 @@ var postAgentsByIdTest = (options) => (options.client ?? client).post({
3028
2816
  }
3029
2817
  });
3030
2818
  var getExtractionDocuments = (options) => (options.client ?? client).get({
3031
- querySerializer: {
3032
- parameters: {
3033
- filter: { object: { style: "form" } },
3034
- fields: { object: { style: "form" } }
3035
- }
3036
- },
3037
2819
  security: [{ scheme: "bearer", type: "http" }],
3038
2820
  url: "/extraction/documents",
3039
2821
  ...options
3040
2822
  });
3041
2823
  var getApiKeysActive = (options) => (options.client ?? client).get({
3042
- querySerializer: {
3043
- parameters: {
3044
- filter: { object: { style: "form" } },
3045
- fields: { object: { style: "form" } }
3046
- }
3047
- },
3048
2824
  security: [{ scheme: "bearer", type: "http" }],
3049
2825
  url: "/api-keys/active",
3050
2826
  ...options
3051
2827
  });
3052
2828
  var postUsersAuthResendConfirmation = (options) => (options.client ?? client).post({
3053
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
3054
2829
  security: [{ scheme: "bearer", type: "http" }],
3055
2830
  url: "/users/auth/resend-confirmation",
3056
2831
  ...options,
@@ -3060,19 +2835,11 @@ var postUsersAuthResendConfirmation = (options) => (options.client ?? client).po
3060
2835
  }
3061
2836
  });
3062
2837
  var getAiMessages = (options) => (options.client ?? client).get({
3063
- querySerializer: {
3064
- parameters: {
3065
- filter: { object: { style: "form" } },
3066
- page: { object: { style: "form" } },
3067
- fields: { object: { style: "form" } }
3068
- }
3069
- },
3070
2838
  security: [{ scheme: "bearer", type: "http" }],
3071
2839
  url: "/ai/messages",
3072
2840
  ...options
3073
2841
  });
3074
2842
  var postAiMessages = (options) => (options.client ?? client).post({
3075
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
3076
2843
  security: [{ scheme: "bearer", type: "http" }],
3077
2844
  url: "/ai/messages",
3078
2845
  ...options,
@@ -3082,7 +2849,6 @@ var postAiMessages = (options) => (options.client ?? client).post({
3082
2849
  }
3083
2850
  });
3084
2851
  var getWalletPlanPreview = (options) => (options.client ?? client).get({
3085
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
3086
2852
  security: [{ scheme: "bearer", type: "http" }],
3087
2853
  url: "/wallet/plan/preview",
3088
2854
  ...options
@@ -3093,7 +2859,6 @@ var getNotificationLogsStats = (options) => (options.client ?? client).get({
3093
2859
  ...options
3094
2860
  });
3095
2861
  var postThreadsByIdSummarize = (options) => (options.client ?? client).post({
3096
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
3097
2862
  security: [{ scheme: "bearer", type: "http" }],
3098
2863
  url: "/threads/{id}/summarize",
3099
2864
  ...options,
@@ -3103,18 +2868,11 @@ var postThreadsByIdSummarize = (options) => (options.client ?? client).post({
3103
2868
  }
3104
2869
  });
3105
2870
  var getExtractionResults = (options) => (options.client ?? client).get({
3106
- querySerializer: {
3107
- parameters: {
3108
- filter: { object: { style: "form" } },
3109
- fields: { object: { style: "form" } }
3110
- }
3111
- },
3112
2871
  security: [{ scheme: "bearer", type: "http" }],
3113
2872
  url: "/extraction/results",
3114
2873
  ...options
3115
2874
  });
3116
2875
  var postAgentsByIdClone = (options) => (options.client ?? client).post({
3117
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
3118
2876
  security: [{ scheme: "bearer", type: "http" }],
3119
2877
  url: "/agents/{id}/clone",
3120
2878
  ...options,
@@ -3124,19 +2882,16 @@ var postAgentsByIdClone = (options) => (options.client ?? client).post({
3124
2882
  }
3125
2883
  });
3126
2884
  var deleteAiConversationsById = (options) => (options.client ?? client).delete({
3127
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
3128
2885
  security: [{ scheme: "bearer", type: "http" }],
3129
2886
  url: "/ai/conversations/{id}",
3130
2887
  ...options
3131
2888
  });
3132
2889
  var getAiConversationsById = (options) => (options.client ?? client).get({
3133
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
3134
2890
  security: [{ scheme: "bearer", type: "http" }],
3135
2891
  url: "/ai/conversations/{id}",
3136
2892
  ...options
3137
2893
  });
3138
2894
  var patchAiConversationsById = (options) => (options.client ?? client).patch({
3139
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
3140
2895
  security: [{ scheme: "bearer", type: "http" }],
3141
2896
  url: "/ai/conversations/{id}",
3142
2897
  ...options,
@@ -3146,18 +2901,11 @@ var patchAiConversationsById = (options) => (options.client ?? client).patch({
3146
2901
  }
3147
2902
  });
3148
2903
  var getInvitationsMe = (options) => (options.client ?? client).get({
3149
- querySerializer: {
3150
- parameters: {
3151
- filter: { object: { style: "form" } },
3152
- fields: { object: { style: "form" } }
3153
- }
3154
- },
3155
2904
  security: [{ scheme: "bearer", type: "http" }],
3156
2905
  url: "/invitations/me",
3157
2906
  ...options
3158
2907
  });
3159
2908
  var postSearchBatch = (options) => (options.client ?? client).post({
3160
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
3161
2909
  security: [{ scheme: "bearer", type: "http" }],
3162
2910
  url: "/search/batch",
3163
2911
  ...options,
@@ -3167,19 +2915,11 @@ var postSearchBatch = (options) => (options.client ?? client).post({
3167
2915
  }
3168
2916
  });
3169
2917
  var getApiKeys = (options) => (options.client ?? client).get({
3170
- querySerializer: {
3171
- parameters: {
3172
- filter: { object: { style: "form" } },
3173
- page: { object: { style: "form" } },
3174
- fields: { object: { style: "form" } }
3175
- }
3176
- },
3177
2918
  security: [{ scheme: "bearer", type: "http" }],
3178
2919
  url: "/api-keys",
3179
2920
  ...options
3180
2921
  });
3181
2922
  var postApiKeys = (options) => (options.client ?? client).post({
3182
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
3183
2923
  security: [{ scheme: "bearer", type: "http" }],
3184
2924
  url: "/api-keys",
3185
2925
  ...options,
@@ -3189,19 +2929,16 @@ var postApiKeys = (options) => (options.client ?? client).post({
3189
2929
  }
3190
2930
  });
3191
2931
  var deleteObjectsById = (options) => (options.client ?? client).delete({
3192
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
3193
2932
  security: [{ scheme: "bearer", type: "http" }],
3194
2933
  url: "/objects/{id}",
3195
2934
  ...options
3196
2935
  });
3197
2936
  var getObjectsById = (options) => (options.client ?? client).get({
3198
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
3199
2937
  security: [{ scheme: "bearer", type: "http" }],
3200
2938
  url: "/objects/{id}",
3201
2939
  ...options
3202
2940
  });
3203
2941
  var postExtractionDocumentsBulkReprocess = (options) => (options.client ?? client).post({
3204
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
3205
2942
  security: [{ scheme: "bearer", type: "http" }],
3206
2943
  url: "/extraction/documents/bulk-reprocess",
3207
2944
  ...options,
@@ -3211,25 +2948,16 @@ var postExtractionDocumentsBulkReprocess = (options) => (options.client ?? clien
3211
2948
  }
3212
2949
  });
3213
2950
  var getApplicationsBySlugBySlug = (options) => (options.client ?? client).get({
3214
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
3215
2951
  security: [{ scheme: "bearer", type: "http" }],
3216
2952
  url: "/applications/by-slug/{slug}",
3217
2953
  ...options
3218
2954
  });
3219
2955
  var getWebhookConfigs = (options) => (options.client ?? client).get({
3220
- querySerializer: {
3221
- parameters: {
3222
- filter: { object: { style: "form" } },
3223
- page: { object: { style: "form" } },
3224
- fields: { object: { style: "form" } }
3225
- }
3226
- },
3227
2956
  security: [{ scheme: "bearer", type: "http" }],
3228
2957
  url: "/webhook-configs",
3229
2958
  ...options
3230
2959
  });
3231
2960
  var postWebhookConfigs = (options) => (options.client ?? client).post({
3232
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
3233
2961
  security: [{ scheme: "bearer", type: "http" }],
3234
2962
  url: "/webhook-configs",
3235
2963
  ...options,
@@ -3239,36 +2967,21 @@ var postWebhookConfigs = (options) => (options.client ?? client).post({
3239
2967
  }
3240
2968
  });
3241
2969
  var getWallet = (options) => (options.client ?? client).get({
3242
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
3243
2970
  security: [{ scheme: "bearer", type: "http" }],
3244
2971
  url: "/wallet",
3245
2972
  ...options
3246
2973
  });
3247
2974
  var getSearchStats = (options) => (options.client ?? client).get({
3248
- querySerializer: {
3249
- parameters: {
3250
- filter: { object: { style: "form" } },
3251
- fields: { object: { style: "form" } }
3252
- }
3253
- },
3254
2975
  security: [{ scheme: "bearer", type: "http" }],
3255
2976
  url: "/search/stats",
3256
2977
  ...options
3257
2978
  });
3258
2979
  var getAgents = (options) => (options.client ?? client).get({
3259
- querySerializer: {
3260
- parameters: {
3261
- filter: { object: { style: "form" } },
3262
- page: { object: { style: "form" } },
3263
- fields: { object: { style: "form" } }
3264
- }
3265
- },
3266
2980
  security: [{ scheme: "bearer", type: "http" }],
3267
2981
  url: "/agents",
3268
2982
  ...options
3269
2983
  });
3270
2984
  var postAgents = (options) => (options.client ?? client).post({
3271
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
3272
2985
  security: [{ scheme: "bearer", type: "http" }],
3273
2986
  url: "/agents",
3274
2987
  ...options,
@@ -3278,7 +2991,6 @@ var postAgents = (options) => (options.client ?? client).post({
3278
2991
  }
3279
2992
  });
3280
2993
  var patchPaymentMethodsByIdDefault = (options) => (options.client ?? client).patch({
3281
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
3282
2994
  security: [{ scheme: "bearer", type: "http" }],
3283
2995
  url: "/payment-methods/{id}/default",
3284
2996
  ...options,
@@ -3293,25 +3005,16 @@ var postAgentsByIdExport = (options) => (options.client ?? client).post({
3293
3005
  ...options
3294
3006
  });
3295
3007
  var getExtractionBatchesById = (options) => (options.client ?? client).get({
3296
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
3297
3008
  security: [{ scheme: "bearer", type: "http" }],
3298
3009
  url: "/extraction/batches/{id}",
3299
3010
  ...options
3300
3011
  });
3301
3012
  var getWorkspacesByWorkspaceIdExtractionExports = (options) => (options.client ?? client).get({
3302
- querySerializer: {
3303
- parameters: {
3304
- filter: { object: { style: "form" } },
3305
- page: { object: { style: "form" } },
3306
- fields: { object: { style: "form" } }
3307
- }
3308
- },
3309
3013
  security: [{ scheme: "bearer", type: "http" }],
3310
3014
  url: "/workspaces/{workspace_id}/extraction/exports",
3311
3015
  ...options
3312
3016
  });
3313
3017
  var postWorkspacesByWorkspaceIdExtractionExports = (options) => (options.client ?? client).post({
3314
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
3315
3018
  security: [{ scheme: "bearer", type: "http" }],
3316
3019
  url: "/workspaces/{workspace_id}/extraction/exports",
3317
3020
  ...options,
@@ -3321,24 +3024,11 @@ var postWorkspacesByWorkspaceIdExtractionExports = (options) => (options.client
3321
3024
  }
3322
3025
  });
3323
3026
  var getCreditPackages = (options) => (options.client ?? client).get({
3324
- querySerializer: {
3325
- parameters: {
3326
- filter: { object: { style: "form" } },
3327
- fields: { object: { style: "form" } }
3328
- }
3329
- },
3330
3027
  security: [{ scheme: "bearer", type: "http" }],
3331
3028
  url: "/credit-packages",
3332
3029
  ...options
3333
3030
  });
3334
3031
  var getObjects = (options) => (options.client ?? client).get({
3335
- querySerializer: {
3336
- parameters: {
3337
- filter: { object: { style: "form" } },
3338
- page: { object: { style: "form" } },
3339
- fields: { object: { style: "form" } }
3340
- }
3341
- },
3342
3032
  security: [{ scheme: "bearer", type: "http" }],
3343
3033
  url: "/objects",
3344
3034
  ...options
@@ -6465,6 +6155,7 @@ var Webhooks = class _Webhooks {
6465
6155
  AgentImportSchema,
6466
6156
  AgentTestInputSchema,
6467
6157
  AgentUpdateSchema,
6158
+ AgentVersionError,
6468
6159
  AiSearchAdvancedSchema,
6469
6160
  ApiKeyAllocateSchema,
6470
6161
  ApiKeyCreateSchema,
@@ -6488,6 +6179,7 @@ var Webhooks = class _Webhooks {
6488
6179
  GptClient,
6489
6180
  GptCoreError,
6490
6181
  InsecureConnectionError,
6182
+ InvalidFieldTypeError,
6491
6183
  InvitationCreateSchema,
6492
6184
  LOG_LEVELS,
6493
6185
  LoginRequestSchema,
@@ -6495,6 +6187,7 @@ var Webhooks = class _Webhooks {
6495
6187
  MessageCreateSchema,
6496
6188
  MessageSendSchema,
6497
6189
  MessageStreamSchema,
6190
+ MissingFieldNameError,
6498
6191
  NetworkError,
6499
6192
  NotFoundError,
6500
6193
  NotificationMethodCreateSchema,
@@ -6507,9 +6200,11 @@ var Webhooks = class _Webhooks {
6507
6200
  RateLimitError,
6508
6201
  RegisterRequestSchema,
6509
6202
  RequestBuilder,
6203
+ ReservedFieldError,
6510
6204
  RetryTimeoutError,
6511
6205
  SDK_VERSION,
6512
6206
  SavedSearchCreateSchema,
6207
+ SchemaDefinitionInvalidError,
6513
6208
  SdkEventEmitter,
6514
6209
  SearchRequestSchema,
6515
6210
  ServerError,
@@ -6519,6 +6214,9 @@ var Webhooks = class _Webhooks {
6519
6214
  TimeoutError,
6520
6215
  UserProfileUpdateSchema,
6521
6216
  ValidationError,
6217
+ VersionAlreadyUsedError,
6218
+ VersionInUseCannotDeleteError,
6219
+ VersionNotFoundError,
6522
6220
  WalletAddonsSchema,
6523
6221
  WalletAutoTopUpSchema,
6524
6222
  WalletCreditsUpdateSchema,