@airweave/sdk 0.1.46 → 0.1.48

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.
Files changed (132) hide show
  1. package/dist/cjs/Client.js +2 -2
  2. package/dist/cjs/api/resources/collections/client/Client.d.ts +6 -0
  3. package/dist/cjs/api/resources/collections/client/Client.js +19 -1
  4. package/dist/cjs/api/resources/collections/client/requests/SearchCollectionCollectionsReadableIdSearchGetRequest.d.ts +16 -0
  5. package/dist/cjs/api/resources/sourceConnections/client/Client.d.ts +3 -0
  6. package/dist/cjs/api/resources/sourceConnections/client/Client.js +3 -0
  7. package/dist/cjs/api/resources/sources/client/Client.d.ts +3 -0
  8. package/dist/cjs/api/resources/sources/client/Client.js +3 -0
  9. package/dist/cjs/api/resources/whiteLabels/client/Client.d.ts +7 -4
  10. package/dist/cjs/api/resources/whiteLabels/client/Client.js +8 -5
  11. package/dist/cjs/api/resources/whiteLabels/client/requests/{BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePost.d.ts → BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodeOptions.d.ts} +1 -1
  12. package/dist/cjs/api/resources/whiteLabels/client/requests/index.d.ts +1 -1
  13. package/dist/cjs/api/types/DatetimeRange.d.ts +34 -0
  14. package/dist/cjs/api/types/DatetimeRange.js +5 -0
  15. package/dist/cjs/api/types/FieldCondition.d.ts +33 -0
  16. package/dist/cjs/api/types/FieldCondition.js +5 -0
  17. package/dist/cjs/api/types/Filter.d.ts +28 -0
  18. package/dist/cjs/api/types/Filter.js +5 -0
  19. package/dist/cjs/api/types/GeoBoundingBox.d.ts +13 -0
  20. package/dist/cjs/api/types/GeoBoundingBox.js +5 -0
  21. package/dist/cjs/api/types/GeoLineString.d.ts +11 -0
  22. package/dist/cjs/api/types/GeoLineString.js +5 -0
  23. package/dist/cjs/api/types/GeoPoint.d.ts +12 -0
  24. package/dist/cjs/api/types/GeoPoint.js +5 -0
  25. package/dist/cjs/api/types/GeoPolygon.d.ts +13 -0
  26. package/dist/cjs/api/types/GeoPolygon.js +5 -0
  27. package/dist/cjs/api/types/GeoRadius.d.ts +13 -0
  28. package/dist/cjs/api/types/GeoRadius.js +5 -0
  29. package/dist/cjs/api/types/HasIdCondition.d.ts +16 -0
  30. package/dist/cjs/api/types/HasIdCondition.js +5 -0
  31. package/dist/cjs/api/types/HasVectorCondition.d.ts +10 -0
  32. package/dist/cjs/api/types/HasVectorCondition.js +5 -0
  33. package/dist/cjs/api/types/IsEmptyCondition.d.ts +11 -0
  34. package/dist/cjs/api/types/IsEmptyCondition.js +5 -0
  35. package/dist/cjs/api/types/IsNullCondition.d.ts +11 -0
  36. package/dist/cjs/api/types/IsNullCondition.js +5 -0
  37. package/dist/cjs/api/types/MatchAny.d.ts +16 -0
  38. package/dist/cjs/api/types/MatchAny.js +5 -0
  39. package/dist/cjs/api/types/MatchExcept.d.ts +16 -0
  40. package/dist/cjs/api/types/MatchExcept.js +5 -0
  41. package/dist/cjs/api/types/MatchText.d.ts +10 -0
  42. package/dist/cjs/api/types/MatchText.js +5 -0
  43. package/dist/cjs/api/types/MatchValue.d.ts +16 -0
  44. package/dist/cjs/api/types/MatchValue.js +5 -0
  45. package/dist/cjs/api/types/MinShould.d.ts +16 -0
  46. package/dist/cjs/api/types/MinShould.js +5 -0
  47. package/dist/cjs/api/types/Nested.d.ts +13 -0
  48. package/dist/cjs/api/types/Nested.js +5 -0
  49. package/dist/cjs/api/types/NestedCondition.d.ts +8 -0
  50. package/dist/cjs/api/types/NestedCondition.js +5 -0
  51. package/dist/cjs/api/types/PayloadField.d.ts +10 -0
  52. package/dist/cjs/api/types/PayloadField.js +5 -0
  53. package/dist/cjs/api/types/QueryExpansionStrategy.d.ts +12 -0
  54. package/dist/cjs/api/types/QueryExpansionStrategy.js +11 -0
  55. package/dist/cjs/api/types/Range.d.ts +16 -0
  56. package/dist/cjs/api/types/Range.js +5 -0
  57. package/dist/cjs/api/types/SearchRequest.d.ts +29 -0
  58. package/dist/cjs/api/types/SearchRequest.js +5 -0
  59. package/dist/cjs/api/types/ValuesCount.d.ts +16 -0
  60. package/dist/cjs/api/types/ValuesCount.js +5 -0
  61. package/dist/cjs/api/types/index.d.ts +24 -0
  62. package/dist/cjs/api/types/index.js +24 -0
  63. package/dist/cjs/version.d.ts +1 -1
  64. package/dist/cjs/version.js +1 -1
  65. package/dist/esm/Client.mjs +2 -2
  66. package/dist/esm/api/resources/collections/client/Client.d.mts +6 -0
  67. package/dist/esm/api/resources/collections/client/Client.mjs +19 -1
  68. package/dist/esm/api/resources/collections/client/requests/SearchCollectionCollectionsReadableIdSearchGetRequest.d.mts +16 -0
  69. package/dist/esm/api/resources/sourceConnections/client/Client.d.mts +3 -0
  70. package/dist/esm/api/resources/sourceConnections/client/Client.mjs +3 -0
  71. package/dist/esm/api/resources/sources/client/Client.d.mts +3 -0
  72. package/dist/esm/api/resources/sources/client/Client.mjs +3 -0
  73. package/dist/esm/api/resources/whiteLabels/client/Client.d.mts +7 -4
  74. package/dist/esm/api/resources/whiteLabels/client/Client.mjs +8 -5
  75. package/dist/esm/api/resources/whiteLabels/client/requests/{BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePost.d.mts → BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodeOptions.d.mts} +1 -1
  76. package/dist/esm/api/resources/whiteLabels/client/requests/index.d.mts +1 -1
  77. package/dist/esm/api/types/DatetimeRange.d.mts +34 -0
  78. package/dist/esm/api/types/DatetimeRange.mjs +4 -0
  79. package/dist/esm/api/types/FieldCondition.d.mts +33 -0
  80. package/dist/esm/api/types/FieldCondition.mjs +4 -0
  81. package/dist/esm/api/types/Filter.d.mts +28 -0
  82. package/dist/esm/api/types/Filter.mjs +4 -0
  83. package/dist/esm/api/types/GeoBoundingBox.d.mts +13 -0
  84. package/dist/esm/api/types/GeoBoundingBox.mjs +4 -0
  85. package/dist/esm/api/types/GeoLineString.d.mts +11 -0
  86. package/dist/esm/api/types/GeoLineString.mjs +4 -0
  87. package/dist/esm/api/types/GeoPoint.d.mts +12 -0
  88. package/dist/esm/api/types/GeoPoint.mjs +4 -0
  89. package/dist/esm/api/types/GeoPolygon.d.mts +13 -0
  90. package/dist/esm/api/types/GeoPolygon.mjs +4 -0
  91. package/dist/esm/api/types/GeoRadius.d.mts +13 -0
  92. package/dist/esm/api/types/GeoRadius.mjs +4 -0
  93. package/dist/esm/api/types/HasIdCondition.d.mts +16 -0
  94. package/dist/esm/api/types/HasIdCondition.mjs +4 -0
  95. package/dist/esm/api/types/HasVectorCondition.d.mts +10 -0
  96. package/dist/esm/api/types/HasVectorCondition.mjs +4 -0
  97. package/dist/esm/api/types/IsEmptyCondition.d.mts +11 -0
  98. package/dist/esm/api/types/IsEmptyCondition.mjs +4 -0
  99. package/dist/esm/api/types/IsNullCondition.d.mts +11 -0
  100. package/dist/esm/api/types/IsNullCondition.mjs +4 -0
  101. package/dist/esm/api/types/MatchAny.d.mts +16 -0
  102. package/dist/esm/api/types/MatchAny.mjs +4 -0
  103. package/dist/esm/api/types/MatchExcept.d.mts +16 -0
  104. package/dist/esm/api/types/MatchExcept.mjs +4 -0
  105. package/dist/esm/api/types/MatchText.d.mts +10 -0
  106. package/dist/esm/api/types/MatchText.mjs +4 -0
  107. package/dist/esm/api/types/MatchValue.d.mts +16 -0
  108. package/dist/esm/api/types/MatchValue.mjs +4 -0
  109. package/dist/esm/api/types/MinShould.d.mts +16 -0
  110. package/dist/esm/api/types/MinShould.mjs +4 -0
  111. package/dist/esm/api/types/Nested.d.mts +13 -0
  112. package/dist/esm/api/types/Nested.mjs +4 -0
  113. package/dist/esm/api/types/NestedCondition.d.mts +8 -0
  114. package/dist/esm/api/types/NestedCondition.mjs +4 -0
  115. package/dist/esm/api/types/PayloadField.d.mts +10 -0
  116. package/dist/esm/api/types/PayloadField.mjs +4 -0
  117. package/dist/esm/api/types/QueryExpansionStrategy.d.mts +12 -0
  118. package/dist/esm/api/types/QueryExpansionStrategy.mjs +8 -0
  119. package/dist/esm/api/types/Range.d.mts +16 -0
  120. package/dist/esm/api/types/Range.mjs +4 -0
  121. package/dist/esm/api/types/SearchRequest.d.mts +29 -0
  122. package/dist/esm/api/types/SearchRequest.mjs +4 -0
  123. package/dist/esm/api/types/ValuesCount.d.mts +16 -0
  124. package/dist/esm/api/types/ValuesCount.mjs +4 -0
  125. package/dist/esm/api/types/index.d.mts +24 -0
  126. package/dist/esm/api/types/index.mjs +24 -0
  127. package/dist/esm/version.d.mts +1 -1
  128. package/dist/esm/version.mjs +1 -1
  129. package/package.json +1 -1
  130. package/reference.md +10 -7
  131. /package/dist/cjs/api/resources/whiteLabels/client/requests/{BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePost.js → BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodeOptions.js} +0 -0
  132. /package/dist/esm/api/resources/whiteLabels/client/requests/{BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePost.mjs → BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodeOptions.mjs} +0 -0
@@ -48,8 +48,8 @@ class AirweaveSDKClient {
48
48
  this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
49
49
  "X-Fern-Language": "JavaScript",
50
50
  "X-Fern-SDK-Name": "@airweave/sdk",
51
- "X-Fern-SDK-Version": "v0.1.46",
52
- "User-Agent": "@airweave/sdk/v0.1.46",
51
+ "X-Fern-SDK-Version": "v0.1.48",
52
+ "User-Agent": "@airweave/sdk/v0.1.48",
53
53
  "X-Fern-Runtime": core.RUNTIME.type,
54
54
  "X-Fern-Runtime-Version": core.RUNTIME.version,
55
55
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -24,6 +24,9 @@ export declare namespace Collections {
24
24
  headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
25
25
  }
26
26
  }
27
+ /**
28
+ * API endpoints for managing collections - logical groups of data sources that provide unified search capabilities
29
+ */
27
30
  export declare class Collections {
28
31
  protected readonly _options: Collections.Options;
29
32
  constructor(_options: Collections.Options);
@@ -117,6 +120,9 @@ export declare class Collections {
117
120
  /**
118
121
  * Search across all data sources within the specified collection.
119
122
  *
123
+ * This GET endpoint provides basic search functionality. For advanced filtering
124
+ * and options, use the POST /search endpoint.
125
+ *
120
126
  * @param {string} readableId - The unique readable identifier of the collection to search
121
127
  * @param {AirweaveSDK.SearchCollectionCollectionsReadableIdSearchGetRequest} request
122
128
  * @param {Collections.RequestOptions} requestOptions - Request-specific configuration.
@@ -51,6 +51,9 @@ const core = __importStar(require("../../../../core/index.js"));
51
51
  const AirweaveSDK = __importStar(require("../../../index.js"));
52
52
  const headers_js_1 = require("../../../../core/headers.js");
53
53
  const errors = __importStar(require("../../../../errors/index.js"));
54
+ /**
55
+ * API endpoints for managing collections - logical groups of data sources that provide unified search capabilities
56
+ */
54
57
  class Collections {
55
58
  constructor(_options) {
56
59
  this._options = _options;
@@ -386,6 +389,9 @@ class Collections {
386
389
  /**
387
390
  * Search across all data sources within the specified collection.
388
391
  *
392
+ * This GET endpoint provides basic search functionality. For advanced filtering
393
+ * and options, use the POST /search endpoint.
394
+ *
389
395
  * @param {string} readableId - The unique readable identifier of the collection to search
390
396
  * @param {AirweaveSDK.SearchCollectionCollectionsReadableIdSearchGetRequest} request
391
397
  * @param {Collections.RequestOptions} requestOptions - Request-specific configuration.
@@ -403,12 +409,24 @@ class Collections {
403
409
  __searchCollection(readableId, request, requestOptions) {
404
410
  return __awaiter(this, void 0, void 0, function* () {
405
411
  var _a, _b, _c;
406
- const { query, response_type: responseType } = request;
412
+ const { query, response_type: responseType, limit, offset, score_threshold: scoreThreshold, expansion_strategy: expansionStrategy, } = request;
407
413
  const _queryParams = {};
408
414
  _queryParams["query"] = query;
409
415
  if (responseType != null) {
410
416
  _queryParams["response_type"] = responseType;
411
417
  }
418
+ if (limit != null) {
419
+ _queryParams["limit"] = limit.toString();
420
+ }
421
+ if (offset != null) {
422
+ _queryParams["offset"] = offset.toString();
423
+ }
424
+ if (scoreThreshold != null) {
425
+ _queryParams["score_threshold"] = scoreThreshold.toString();
426
+ }
427
+ if (expansionStrategy != null) {
428
+ _queryParams["expansion_strategy"] = expansionStrategy;
429
+ }
412
430
  const _response = yield core.fetcher({
413
431
  url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AirweaveSDKEnvironment.Production, `collections/${encodeURIComponent(readableId)}/search`),
414
432
  method: "GET",
@@ -17,4 +17,20 @@ export interface SearchCollectionCollectionsReadableIdSearchGetRequest {
17
17
  * Format of the response: 'raw' returns search results, 'completion' returns AI-generated answers
18
18
  */
19
19
  response_type?: AirweaveSDK.ResponseType;
20
+ /**
21
+ * Maximum number of results to return
22
+ */
23
+ limit?: number;
24
+ /**
25
+ * Number of results to skip for pagination
26
+ */
27
+ offset?: number;
28
+ /**
29
+ * Minimum similarity score threshold
30
+ */
31
+ score_threshold?: number;
32
+ /**
33
+ * Query expansion strategy (auto, llm, or no_expansion)
34
+ */
35
+ expansion_strategy?: AirweaveSDK.QueryExpansionStrategy;
20
36
  }
@@ -24,6 +24,9 @@ export declare namespace SourceConnections {
24
24
  headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
25
25
  }
26
26
  }
27
+ /**
28
+ * API endpoints for managing live connections to data sources. Source connections are the actual configured instances that Airweave uses to sync data from your apps and databases, transforming it into searchable, structured information within collections
29
+ */
27
30
  export declare class SourceConnections {
28
31
  protected readonly _options: SourceConnections.Options;
29
32
  constructor(_options: SourceConnections.Options);
@@ -51,6 +51,9 @@ const core = __importStar(require("../../../../core/index.js"));
51
51
  const AirweaveSDK = __importStar(require("../../../index.js"));
52
52
  const headers_js_1 = require("../../../../core/headers.js");
53
53
  const errors = __importStar(require("../../../../errors/index.js"));
54
+ /**
55
+ * API endpoints for managing live connections to data sources. Source connections are the actual configured instances that Airweave uses to sync data from your apps and databases, transforming it into searchable, structured information within collections
56
+ */
54
57
  class SourceConnections {
55
58
  constructor(_options) {
56
59
  this._options = _options;
@@ -24,6 +24,9 @@ export declare namespace Sources {
24
24
  headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
25
25
  }
26
26
  }
27
+ /**
28
+ * API endpoints for discovering available data source connectors and their configuration requirements
29
+ */
27
30
  export declare class Sources {
28
31
  protected readonly _options: Sources.Options;
29
32
  constructor(_options: Sources.Options);
@@ -51,6 +51,9 @@ const core = __importStar(require("../../../../core/index.js"));
51
51
  const AirweaveSDK = __importStar(require("../../../index.js"));
52
52
  const headers_js_1 = require("../../../../core/headers.js");
53
53
  const errors = __importStar(require("../../../../errors/index.js"));
54
+ /**
55
+ * API endpoints for discovering available data source connectors and their configuration requirements
56
+ */
54
57
  class Sources {
55
58
  constructor(_options) {
56
59
  this._options = _options;
@@ -24,6 +24,9 @@ export declare namespace WhiteLabels {
24
24
  headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
25
25
  }
26
26
  }
27
+ /**
28
+ * API endpoints for managing custom OAuth2 integrations with your own branding and credentials
29
+ */
27
30
  export declare class WhiteLabels {
28
31
  protected readonly _options: WhiteLabels.Options;
29
32
  constructor(_options: WhiteLabels.Options);
@@ -168,18 +171,18 @@ export declare class WhiteLabels {
168
171
  * tracking and branding purposes.
169
172
  *
170
173
  * @param {string} whiteLabelId - The unique identifier of the white label integration
171
- * @param {AirweaveSDK.BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePost} request
174
+ * @param {AirweaveSDK.BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodeOptions} request
172
175
  * @param {WhiteLabels.RequestOptions} requestOptions - Request-specific configuration.
173
176
  *
174
177
  * @throws {@link AirweaveSDK.UnprocessableEntityError}
175
178
  *
176
179
  * @example
177
- * await client.whiteLabels.exchangeWhiteLabelOauth2Code("white_label_id", {
180
+ * await client.whiteLabels.exchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodeOptions("white_label_id", {
178
181
  * code: "4/P7q7W91a-oMsCeLvIaQm6bTrgtp7"
179
182
  * })
180
183
  */
181
- exchangeWhiteLabelOauth2Code(whiteLabelId: string, request: AirweaveSDK.BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePost, requestOptions?: WhiteLabels.RequestOptions): core.HttpResponsePromise<AirweaveSDK.SourceConnection>;
182
- private __exchangeWhiteLabelOauth2Code;
184
+ exchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodeOptions(whiteLabelId: string, request: AirweaveSDK.BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodeOptions, requestOptions?: WhiteLabels.RequestOptions): core.HttpResponsePromise<AirweaveSDK.SourceConnection>;
185
+ private __exchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodeOptions;
183
186
  protected _getCustomAuthorizationHeaders(): Promise<{
184
187
  "x-api-key": string;
185
188
  }>;
@@ -51,6 +51,9 @@ const core = __importStar(require("../../../../core/index.js"));
51
51
  const AirweaveSDK = __importStar(require("../../../index.js"));
52
52
  const headers_js_1 = require("../../../../core/headers.js");
53
53
  const errors = __importStar(require("../../../../errors/index.js"));
54
+ /**
55
+ * API endpoints for managing custom OAuth2 integrations with your own branding and credentials
56
+ */
54
57
  class WhiteLabels {
55
58
  constructor(_options) {
56
59
  this._options = _options;
@@ -513,20 +516,20 @@ class WhiteLabels {
513
516
  * tracking and branding purposes.
514
517
  *
515
518
  * @param {string} whiteLabelId - The unique identifier of the white label integration
516
- * @param {AirweaveSDK.BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePost} request
519
+ * @param {AirweaveSDK.BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodeOptions} request
517
520
  * @param {WhiteLabels.RequestOptions} requestOptions - Request-specific configuration.
518
521
  *
519
522
  * @throws {@link AirweaveSDK.UnprocessableEntityError}
520
523
  *
521
524
  * @example
522
- * await client.whiteLabels.exchangeWhiteLabelOauth2Code("white_label_id", {
525
+ * await client.whiteLabels.exchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodeOptions("white_label_id", {
523
526
  * code: "4/P7q7W91a-oMsCeLvIaQm6bTrgtp7"
524
527
  * })
525
528
  */
526
- exchangeWhiteLabelOauth2Code(whiteLabelId, request, requestOptions) {
527
- return core.HttpResponsePromise.fromPromise(this.__exchangeWhiteLabelOauth2Code(whiteLabelId, request, requestOptions));
529
+ exchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodeOptions(whiteLabelId, request, requestOptions) {
530
+ return core.HttpResponsePromise.fromPromise(this.__exchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodeOptions(whiteLabelId, request, requestOptions));
528
531
  }
529
- __exchangeWhiteLabelOauth2Code(whiteLabelId, request, requestOptions) {
532
+ __exchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodeOptions(whiteLabelId, request, requestOptions) {
530
533
  return __awaiter(this, void 0, void 0, function* () {
531
534
  var _a, _b, _c;
532
535
  const _response = yield core.fetcher({
@@ -8,7 +8,7 @@ import * as AirweaveSDK from "../../../../index.js";
8
8
  * code: "4/P7q7W91a-oMsCeLvIaQm6bTrgtp7"
9
9
  * }
10
10
  */
11
- export interface BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePost {
11
+ export interface BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodeOptions {
12
12
  /** The OAuth2 authorization code received from the OAuth callback after customer authentication */
13
13
  code: string;
14
14
  /** Optional configuration for the source connection. If not provided, a source connection will be created automatically with default settings. The white label integration is automatically linked to the source connection. */
@@ -1,3 +1,3 @@
1
1
  export { type WhiteLabelCreate } from "./WhiteLabelCreate.js";
2
2
  export { type WhiteLabelUpdate } from "./WhiteLabelUpdate.js";
3
- export { type BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePost } from "./BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePost.js";
3
+ export { type BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodeOptions } from "./BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodeOptions.js";
@@ -0,0 +1,34 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Range filter request
6
+ */
7
+ export interface DatetimeRange {
8
+ /** point.key &lt; range.lt */
9
+ lt?: DatetimeRange.Lt;
10
+ /** point.key &gt; range.gt */
11
+ gt?: DatetimeRange.Gt;
12
+ /** point.key &gt;= range.gte */
13
+ gte?: DatetimeRange.Gte;
14
+ /** point.key &lt;= range.lte */
15
+ lte?: DatetimeRange.Lte;
16
+ }
17
+ export declare namespace DatetimeRange {
18
+ /**
19
+ * point.key &lt; range.lt
20
+ */
21
+ type Lt = string | string;
22
+ /**
23
+ * point.key &gt; range.gt
24
+ */
25
+ type Gt = string | string;
26
+ /**
27
+ * point.key &gt;= range.gte
28
+ */
29
+ type Gte = string | string;
30
+ /**
31
+ * point.key &lt;= range.lte
32
+ */
33
+ type Lte = string | string;
34
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,33 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as AirweaveSDK from "../index.js";
5
+ /**
6
+ * All possible payload filtering conditions
7
+ */
8
+ export interface FieldCondition {
9
+ /** Payload key */
10
+ key: string;
11
+ /** Check if point has field with a given value */
12
+ match?: FieldCondition.Match;
13
+ /** Check if points value lies in a given range */
14
+ range?: AirweaveSDK.Range;
15
+ /** Check if points geolocation lies in a given area */
16
+ geo_bounding_box?: AirweaveSDK.GeoBoundingBox;
17
+ /** Check if geo point is within a given radius */
18
+ geo_radius?: AirweaveSDK.GeoRadius;
19
+ /** Check if geo point is within a given polygon */
20
+ geo_polygon?: AirweaveSDK.GeoPolygon;
21
+ /** Check number of values of the field */
22
+ values_count?: AirweaveSDK.ValuesCount;
23
+ /** Check that the field is empty, alternative syntax for `is_empty: \&quot;field_name\&quot;` */
24
+ is_empty?: boolean;
25
+ /** Check that the field is null, alternative syntax for `is_null: \&quot;field_name\&quot;` */
26
+ is_null?: boolean;
27
+ }
28
+ export declare namespace FieldCondition {
29
+ /**
30
+ * Check if point has field with a given value
31
+ */
32
+ type Match = AirweaveSDK.MatchValue | AirweaveSDK.MatchText | AirweaveSDK.MatchAny | AirweaveSDK.MatchExcept;
33
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,28 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as AirweaveSDK from "../index.js";
5
+ export interface Filter {
6
+ /** At least one of those conditions should match */
7
+ should?: Filter.Should;
8
+ /** At least minimum amount of given conditions should match */
9
+ min_should?: AirweaveSDK.MinShould;
10
+ /** All conditions must match */
11
+ must?: Filter.Must;
12
+ /** All conditions must NOT match */
13
+ must_not?: Filter.MustNot;
14
+ }
15
+ export declare namespace Filter {
16
+ /**
17
+ * At least one of those conditions should match
18
+ */
19
+ type Should = (AirweaveSDK.FieldCondition | AirweaveSDK.IsEmptyCondition | AirweaveSDK.IsNullCondition | AirweaveSDK.HasIdCondition | AirweaveSDK.HasVectorCondition | AirweaveSDK.NestedCondition | AirweaveSDK.Filter)[] | AirweaveSDK.FieldCondition | AirweaveSDK.IsEmptyCondition | AirweaveSDK.IsNullCondition | AirweaveSDK.HasIdCondition | AirweaveSDK.HasVectorCondition | AirweaveSDK.NestedCondition | AirweaveSDK.Filter;
20
+ /**
21
+ * All conditions must match
22
+ */
23
+ type Must = (AirweaveSDK.FieldCondition | AirweaveSDK.IsEmptyCondition | AirweaveSDK.IsNullCondition | AirweaveSDK.HasIdCondition | AirweaveSDK.HasVectorCondition | AirweaveSDK.NestedCondition | AirweaveSDK.Filter)[] | AirweaveSDK.FieldCondition | AirweaveSDK.IsEmptyCondition | AirweaveSDK.IsNullCondition | AirweaveSDK.HasIdCondition | AirweaveSDK.HasVectorCondition | AirweaveSDK.NestedCondition | AirweaveSDK.Filter;
24
+ /**
25
+ * All conditions must NOT match
26
+ */
27
+ type MustNot = (AirweaveSDK.FieldCondition | AirweaveSDK.IsEmptyCondition | AirweaveSDK.IsNullCondition | AirweaveSDK.HasIdCondition | AirweaveSDK.HasVectorCondition | AirweaveSDK.NestedCondition | AirweaveSDK.Filter)[] | AirweaveSDK.FieldCondition | AirweaveSDK.IsEmptyCondition | AirweaveSDK.IsNullCondition | AirweaveSDK.HasIdCondition | AirweaveSDK.HasVectorCondition | AirweaveSDK.NestedCondition | AirweaveSDK.Filter;
28
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as AirweaveSDK from "../index.js";
5
+ /**
6
+ * Geo filter request Matches coordinates inside the rectangle, described by coordinates of lop-left and bottom-right edges
7
+ */
8
+ export interface GeoBoundingBox {
9
+ /** Geo filter request Matches coordinates inside the rectangle, described by coordinates of lop-left and bottom-right edges */
10
+ top_left: AirweaveSDK.GeoPoint;
11
+ /** Geo filter request Matches coordinates inside the rectangle, described by coordinates of lop-left and bottom-right edges */
12
+ bottom_right: AirweaveSDK.GeoPoint;
13
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as AirweaveSDK from "../index.js";
5
+ /**
6
+ * Ordered sequence of GeoPoints representing the line
7
+ */
8
+ export interface GeoLineString {
9
+ /** Ordered sequence of GeoPoints representing the line */
10
+ points: AirweaveSDK.GeoPoint[];
11
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Geo point payload schema
6
+ */
7
+ export interface GeoPoint {
8
+ /** Geo point payload schema */
9
+ lon: number;
10
+ /** Geo point payload schema */
11
+ lat: number;
12
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as AirweaveSDK from "../index.js";
5
+ /**
6
+ * Geo filter request Matches coordinates inside the polygon, defined by `exterior` and `interiors`
7
+ */
8
+ export interface GeoPolygon {
9
+ /** Geo filter request Matches coordinates inside the polygon, defined by `exterior` and `interiors` */
10
+ exterior: AirweaveSDK.GeoLineString;
11
+ /** Interior lines (if present) bound holes within the surface each GeoLineString must consist of a minimum of 4 points, and the first and last points must be the same. */
12
+ interiors?: AirweaveSDK.GeoLineString[];
13
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as AirweaveSDK from "../index.js";
5
+ /**
6
+ * Geo filter request Matches coordinates inside the circle of `radius` and center with coordinates `center`
7
+ */
8
+ export interface GeoRadius {
9
+ /** Geo filter request Matches coordinates inside the circle of `radius` and center with coordinates `center` */
10
+ center: AirweaveSDK.GeoPoint;
11
+ /** Radius of the area in meters */
12
+ radius: number;
13
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,16 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * ID-based filtering condition
6
+ */
7
+ export interface HasIdCondition {
8
+ /** ID-based filtering condition */
9
+ has_id: HasIdCondition.HasId.Item[];
10
+ }
11
+ export declare namespace HasIdCondition {
12
+ type HasId = HasId.Item[];
13
+ namespace HasId {
14
+ type Item = number | string;
15
+ }
16
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Filter points which have specific vector assigned
6
+ */
7
+ export interface HasVectorCondition {
8
+ /** Filter points which have specific vector assigned */
9
+ has_vector: string;
10
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as AirweaveSDK from "../index.js";
5
+ /**
6
+ * Select points with empty payload for a specified field
7
+ */
8
+ export interface IsEmptyCondition {
9
+ /** Select points with empty payload for a specified field */
10
+ is_empty: AirweaveSDK.PayloadField;
11
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as AirweaveSDK from "../index.js";
5
+ /**
6
+ * Select points with null payload for a specified field
7
+ */
8
+ export interface IsNullCondition {
9
+ /** Select points with null payload for a specified field */
10
+ is_null: AirweaveSDK.PayloadField;
11
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,16 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Exact match on any of the given values
6
+ */
7
+ export interface MatchAny {
8
+ /** Exact match on any of the given values */
9
+ any: MatchAny.Any;
10
+ }
11
+ export declare namespace MatchAny {
12
+ /**
13
+ * Exact match on any of the given values
14
+ */
15
+ type Any = string[] | number[];
16
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,16 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Should have at least one value not matching the any given values
6
+ */
7
+ export interface MatchExcept {
8
+ /** Should have at least one value not matching the any given values */
9
+ except: MatchExcept.Except;
10
+ }
11
+ export declare namespace MatchExcept {
12
+ /**
13
+ * Should have at least one value not matching the any given values
14
+ */
15
+ type Except = string[] | number[];
16
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Full-text match of the strings.
6
+ */
7
+ export interface MatchText {
8
+ /** Full-text match of the strings. */
9
+ text: string;
10
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,16 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Exact match of the given value
6
+ */
7
+ export interface MatchValue {
8
+ /** Exact match of the given value */
9
+ value: MatchValue.Value;
10
+ }
11
+ export declare namespace MatchValue {
12
+ /**
13
+ * Exact match of the given value
14
+ */
15
+ type Value = boolean | number | string;
16
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });