@airweave/sdk 0.1.25 → 0.1.26

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 (86) hide show
  1. package/Client.d.ts +0 -3
  2. package/Client.js +0 -5
  3. package/api/resources/connections/client/Client.js +12 -12
  4. package/api/resources/dag/client/Client.js +4 -4
  5. package/api/resources/destinations/client/Client.js +2 -2
  6. package/api/resources/embeddingModels/client/Client.js +2 -2
  7. package/api/resources/entities/client/Client.js +7 -7
  8. package/api/resources/index.d.ts +0 -1
  9. package/api/resources/index.js +1 -2
  10. package/api/resources/sources/client/Client.js +2 -2
  11. package/api/resources/sync/client/Client.js +10 -10
  12. package/api/resources/transformers/client/Client.js +3 -3
  13. package/api/resources/users/client/Client.js +1 -1
  14. package/api/resources/whiteLabels/client/Client.js +8 -8
  15. package/api/types/Destination.d.ts +1 -0
  16. package/api/types/DestinationWithConfigFields.d.ts +1 -0
  17. package/api/types/Source.d.ts +1 -0
  18. package/api/types/SourceWithConfigFields.d.ts +1 -0
  19. package/dist/Client.d.ts +0 -3
  20. package/dist/Client.js +0 -5
  21. package/dist/api/resources/connections/client/Client.js +12 -12
  22. package/dist/api/resources/dag/client/Client.js +4 -4
  23. package/dist/api/resources/destinations/client/Client.js +2 -2
  24. package/dist/api/resources/embeddingModels/client/Client.js +2 -2
  25. package/dist/api/resources/entities/client/Client.js +7 -7
  26. package/dist/api/resources/index.d.ts +0 -1
  27. package/dist/api/resources/index.js +1 -2
  28. package/dist/api/resources/sources/client/Client.js +2 -2
  29. package/dist/api/resources/sync/client/Client.js +10 -10
  30. package/dist/api/resources/transformers/client/Client.js +3 -3
  31. package/dist/api/resources/users/client/Client.js +1 -1
  32. package/dist/api/resources/whiteLabels/client/Client.js +8 -8
  33. package/dist/api/types/Destination.d.ts +1 -0
  34. package/dist/api/types/DestinationWithConfigFields.d.ts +1 -0
  35. package/dist/api/types/Source.d.ts +1 -0
  36. package/dist/api/types/SourceWithConfigFields.d.ts +1 -0
  37. package/dist/serialization/resources/index.d.ts +0 -1
  38. package/dist/serialization/resources/index.js +1 -2
  39. package/dist/serialization/types/Destination.d.ts +1 -0
  40. package/dist/serialization/types/Destination.js +1 -0
  41. package/dist/serialization/types/DestinationWithConfigFields.d.ts +1 -0
  42. package/dist/serialization/types/DestinationWithConfigFields.js +1 -0
  43. package/dist/serialization/types/Source.d.ts +1 -0
  44. package/dist/serialization/types/Source.js +1 -0
  45. package/dist/serialization/types/SourceWithConfigFields.d.ts +1 -0
  46. package/dist/serialization/types/SourceWithConfigFields.js +1 -0
  47. package/dist/version.d.ts +1 -1
  48. package/dist/version.js +1 -1
  49. package/package.json +1 -1
  50. package/reference.md +0 -153
  51. package/serialization/resources/index.d.ts +0 -1
  52. package/serialization/resources/index.js +1 -2
  53. package/serialization/types/Destination.d.ts +1 -0
  54. package/serialization/types/Destination.js +1 -0
  55. package/serialization/types/DestinationWithConfigFields.d.ts +1 -0
  56. package/serialization/types/DestinationWithConfigFields.js +1 -0
  57. package/serialization/types/Source.d.ts +1 -0
  58. package/serialization/types/Source.js +1 -0
  59. package/serialization/types/SourceWithConfigFields.d.ts +1 -0
  60. package/serialization/types/SourceWithConfigFields.js +1 -0
  61. package/version.d.ts +1 -1
  62. package/version.js +1 -1
  63. package/api/resources/cursorDevelopment/client/Client.d.ts +0 -78
  64. package/api/resources/cursorDevelopment/client/Client.js +0 -218
  65. package/api/resources/cursorDevelopment/client/index.d.ts +0 -1
  66. package/api/resources/cursorDevelopment/client/index.js +0 -2
  67. package/api/resources/cursorDevelopment/index.d.ts +0 -1
  68. package/api/resources/cursorDevelopment/index.js +0 -17
  69. package/dist/api/resources/cursorDevelopment/client/Client.d.ts +0 -78
  70. package/dist/api/resources/cursorDevelopment/client/Client.js +0 -218
  71. package/dist/api/resources/cursorDevelopment/client/index.d.ts +0 -1
  72. package/dist/api/resources/cursorDevelopment/client/index.js +0 -2
  73. package/dist/api/resources/cursorDevelopment/index.d.ts +0 -1
  74. package/dist/api/resources/cursorDevelopment/index.js +0 -17
  75. package/dist/serialization/resources/cursorDevelopment/client/checkConnectionStatus.d.ts +0 -11
  76. package/dist/serialization/resources/cursorDevelopment/client/checkConnectionStatus.js +0 -42
  77. package/dist/serialization/resources/cursorDevelopment/client/index.d.ts +0 -1
  78. package/dist/serialization/resources/cursorDevelopment/client/index.js +0 -37
  79. package/dist/serialization/resources/cursorDevelopment/index.d.ts +0 -1
  80. package/dist/serialization/resources/cursorDevelopment/index.js +0 -17
  81. package/serialization/resources/cursorDevelopment/client/checkConnectionStatus.d.ts +0 -11
  82. package/serialization/resources/cursorDevelopment/client/checkConnectionStatus.js +0 -42
  83. package/serialization/resources/cursorDevelopment/client/index.d.ts +0 -1
  84. package/serialization/resources/cursorDevelopment/client/index.js +0 -37
  85. package/serialization/resources/cursorDevelopment/index.d.ts +0 -1
  86. package/serialization/resources/cursorDevelopment/index.js +0 -17
@@ -86,7 +86,7 @@ class WhiteLabels {
86
86
  method: "GET",
87
87
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
88
88
  ? yield core.Supplier.get(this._options.apiKey)
89
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.25", "User-Agent": "@airweave/sdk/0.1.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
89
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.26", "User-Agent": "@airweave/sdk/0.1.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
90
90
  contentType: "application/json",
91
91
  requestType: "json",
92
92
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -167,7 +167,7 @@ class WhiteLabels {
167
167
  method: "POST",
168
168
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
169
169
  ? yield core.Supplier.get(this._options.apiKey)
170
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.25", "User-Agent": "@airweave/sdk/0.1.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
170
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.26", "User-Agent": "@airweave/sdk/0.1.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
171
171
  contentType: "application/json",
172
172
  requestType: "json",
173
173
  body: serializers.WhiteLabelCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -243,7 +243,7 @@ class WhiteLabels {
243
243
  method: "GET",
244
244
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
245
245
  ? yield core.Supplier.get(this._options.apiKey)
246
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.25", "User-Agent": "@airweave/sdk/0.1.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
246
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.26", "User-Agent": "@airweave/sdk/0.1.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
247
247
  contentType: "application/json",
248
248
  requestType: "json",
249
249
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -320,7 +320,7 @@ class WhiteLabels {
320
320
  method: "PUT",
321
321
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
322
322
  ? yield core.Supplier.get(this._options.apiKey)
323
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.25", "User-Agent": "@airweave/sdk/0.1.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
323
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.26", "User-Agent": "@airweave/sdk/0.1.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
324
324
  contentType: "application/json",
325
325
  requestType: "json",
326
326
  body: serializers.WhiteLabelUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -396,7 +396,7 @@ class WhiteLabels {
396
396
  method: "DELETE",
397
397
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
398
398
  ? yield core.Supplier.get(this._options.apiKey)
399
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.25", "User-Agent": "@airweave/sdk/0.1.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
399
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.26", "User-Agent": "@airweave/sdk/0.1.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
400
400
  contentType: "application/json",
401
401
  requestType: "json",
402
402
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -471,7 +471,7 @@ class WhiteLabels {
471
471
  method: "GET",
472
472
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
473
473
  ? yield core.Supplier.get(this._options.apiKey)
474
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.25", "User-Agent": "@airweave/sdk/0.1.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
474
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.26", "User-Agent": "@airweave/sdk/0.1.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
475
475
  contentType: "application/json",
476
476
  requestType: "json",
477
477
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -548,7 +548,7 @@ class WhiteLabels {
548
548
  method: "POST",
549
549
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
550
550
  ? yield core.Supplier.get(this._options.apiKey)
551
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.25", "User-Agent": "@airweave/sdk/0.1.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
551
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.26", "User-Agent": "@airweave/sdk/0.1.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
552
552
  contentType: "application/json",
553
553
  requestType: "json",
554
554
  body: serializers.whiteLabels.exchangeWhiteLabelOauth2Code.Request.jsonOrThrow(request, {
@@ -626,7 +626,7 @@ class WhiteLabels {
626
626
  method: "GET",
627
627
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
628
628
  ? yield core.Supplier.get(this._options.apiKey)
629
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.25", "User-Agent": "@airweave/sdk/0.1.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
629
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.26", "User-Agent": "@airweave/sdk/0.1.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
630
630
  contentType: "application/json",
631
631
  requestType: "json",
632
632
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -15,6 +15,7 @@ export interface Destination {
15
15
  inputEntityDefinitionIds?: string[];
16
16
  organizationId?: string;
17
17
  configSchema?: Record<string, unknown>;
18
+ labels?: string[];
18
19
  id: string;
19
20
  createdAt: Date;
20
21
  modifiedAt: Date;
@@ -15,6 +15,7 @@ export interface DestinationWithConfigFields {
15
15
  inputEntityDefinitionIds?: string[];
16
16
  organizationId?: string;
17
17
  configSchema?: Record<string, unknown>;
18
+ labels?: string[];
18
19
  id: string;
19
20
  createdAt: Date;
20
21
  modifiedAt: Date;
@@ -15,6 +15,7 @@ export interface Source {
15
15
  outputEntityDefinitionIds?: string[];
16
16
  organizationId?: string;
17
17
  configSchema?: Record<string, unknown>;
18
+ labels?: string[];
18
19
  id: string;
19
20
  createdAt: Date;
20
21
  modifiedAt: Date;
@@ -15,6 +15,7 @@ export interface SourceWithConfigFields {
15
15
  outputEntityDefinitionIds?: string[];
16
16
  organizationId?: string;
17
17
  configSchema?: Record<string, unknown>;
18
+ labels?: string[];
18
19
  id: string;
19
20
  createdAt: Date;
20
21
  modifiedAt: Date;
@@ -8,7 +8,6 @@ export * as embeddingModels from "./embeddingModels";
8
8
  export * as connections from "./connections";
9
9
  export * as whiteLabels from "./whiteLabels";
10
10
  export * as transformers from "./transformers";
11
- export * as cursorDevelopment from "./cursorDevelopment";
12
11
  export * from "./connections/client/requests";
13
12
  export * from "./sync/client/requests";
14
13
  export * from "./whiteLabels/client/requests";
@@ -36,7 +36,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.dag = exports.cursorDevelopment = exports.transformers = exports.whiteLabels = exports.connections = exports.embeddingModels = exports.destinations = exports.sources = exports.entities = exports.sync = void 0;
39
+ exports.dag = exports.transformers = exports.whiteLabels = exports.connections = exports.embeddingModels = exports.destinations = exports.sources = exports.entities = exports.sync = void 0;
40
40
  exports.sync = __importStar(require("./sync"));
41
41
  __exportStar(require("./sync/types"), exports);
42
42
  exports.entities = __importStar(require("./entities"));
@@ -47,7 +47,6 @@ exports.embeddingModels = __importStar(require("./embeddingModels"));
47
47
  exports.connections = __importStar(require("./connections"));
48
48
  exports.whiteLabels = __importStar(require("./whiteLabels"));
49
49
  exports.transformers = __importStar(require("./transformers"));
50
- exports.cursorDevelopment = __importStar(require("./cursorDevelopment"));
51
50
  __exportStar(require("./connections/client/requests"), exports);
52
51
  __exportStar(require("./sync/client/requests"), exports);
53
52
  __exportStar(require("./whiteLabels/client/requests"), exports);
@@ -17,6 +17,7 @@ export declare namespace Destination {
17
17
  input_entity_definition_ids?: string[] | null;
18
18
  organization_id?: string | null;
19
19
  config_schema?: Record<string, unknown> | null;
20
+ labels?: string[] | null;
20
21
  id: string;
21
22
  created_at: string;
22
23
  modified_at: string;
@@ -49,6 +49,7 @@ exports.Destination = core.serialization.object({
49
49
  inputEntityDefinitionIds: core.serialization.property("input_entity_definition_ids", core.serialization.list(core.serialization.string()).optional()),
50
50
  organizationId: core.serialization.property("organization_id", core.serialization.string().optional()),
51
51
  configSchema: core.serialization.property("config_schema", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
52
+ labels: core.serialization.list(core.serialization.string()).optional(),
52
53
  id: core.serialization.string(),
53
54
  createdAt: core.serialization.property("created_at", core.serialization.date()),
54
55
  modifiedAt: core.serialization.property("modified_at", core.serialization.date()),
@@ -18,6 +18,7 @@ export declare namespace DestinationWithConfigFields {
18
18
  input_entity_definition_ids?: string[] | null;
19
19
  organization_id?: string | null;
20
20
  config_schema?: Record<string, unknown> | null;
21
+ labels?: string[] | null;
21
22
  id: string;
22
23
  created_at: string;
23
24
  modified_at: string;
@@ -50,6 +50,7 @@ exports.DestinationWithConfigFields = core.serialization.object({
50
50
  inputEntityDefinitionIds: core.serialization.property("input_entity_definition_ids", core.serialization.list(core.serialization.string()).optional()),
51
51
  organizationId: core.serialization.property("organization_id", core.serialization.string().optional()),
52
52
  configSchema: core.serialization.property("config_schema", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
53
+ labels: core.serialization.list(core.serialization.string()).optional(),
53
54
  id: core.serialization.string(),
54
55
  createdAt: core.serialization.property("created_at", core.serialization.date()),
55
56
  modifiedAt: core.serialization.property("modified_at", core.serialization.date()),
@@ -17,6 +17,7 @@ export declare namespace Source {
17
17
  output_entity_definition_ids?: string[] | null;
18
18
  organization_id?: string | null;
19
19
  config_schema?: Record<string, unknown> | null;
20
+ labels?: string[] | null;
20
21
  id: string;
21
22
  created_at: string;
22
23
  modified_at: string;
@@ -49,6 +49,7 @@ exports.Source = core.serialization.object({
49
49
  outputEntityDefinitionIds: core.serialization.property("output_entity_definition_ids", core.serialization.list(core.serialization.string()).optional()),
50
50
  organizationId: core.serialization.property("organization_id", core.serialization.string().optional()),
51
51
  configSchema: core.serialization.property("config_schema", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
52
+ labels: core.serialization.list(core.serialization.string()).optional(),
52
53
  id: core.serialization.string(),
53
54
  createdAt: core.serialization.property("created_at", core.serialization.date()),
54
55
  modifiedAt: core.serialization.property("modified_at", core.serialization.date()),
@@ -18,6 +18,7 @@ export declare namespace SourceWithConfigFields {
18
18
  output_entity_definition_ids?: string[] | null;
19
19
  organization_id?: string | null;
20
20
  config_schema?: Record<string, unknown> | null;
21
+ labels?: string[] | null;
21
22
  id: string;
22
23
  created_at: string;
23
24
  modified_at: string;
@@ -50,6 +50,7 @@ exports.SourceWithConfigFields = core.serialization.object({
50
50
  outputEntityDefinitionIds: core.serialization.property("output_entity_definition_ids", core.serialization.list(core.serialization.string()).optional()),
51
51
  organizationId: core.serialization.property("organization_id", core.serialization.string().optional()),
52
52
  configSchema: core.serialization.property("config_schema", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
53
+ labels: core.serialization.list(core.serialization.string()).optional(),
53
54
  id: core.serialization.string(),
54
55
  createdAt: core.serialization.property("created_at", core.serialization.date()),
55
56
  modifiedAt: core.serialization.property("modified_at", core.serialization.date()),
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.25";
1
+ export declare const SDK_VERSION = "0.1.26";
package/dist/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "0.1.25";
4
+ exports.SDK_VERSION = "0.1.26";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@airweave/sdk",
3
- "version": "0.1.25",
3
+ "version": "0.1.26",
4
4
  "private": false,
5
5
  "repository": "https://github.com/airweave-ai/typescript-sdk",
6
6
  "main": "./index.js",
package/reference.md CHANGED
@@ -3724,156 +3724,3 @@ await client.transformers.updateTransformer("transformer_id", {
3724
3724
  </dd>
3725
3725
  </dl>
3726
3726
  </details>
3727
-
3728
- ## CursorDevelopment
3729
-
3730
- <details><summary><code>client.cursorDevelopment.<a href="/src/api/resources/cursorDevelopment/client/Client.ts">checkConnectionStatus</a>(shortName) -> AirweaveSDK.Connection[]</code></summary>
3731
- <dl>
3732
- <dd>
3733
-
3734
- #### 📝 Description
3735
-
3736
- <dl>
3737
- <dd>
3738
-
3739
- <dl>
3740
- <dd>
3741
-
3742
- Check if a source connection exists for the given short_name.
3743
-
3744
- ## Args:
3745
-
3746
- db: The database session
3747
- short_name: The short name of the source to check
3748
- user: The admin user
3749
-
3750
- ## Returns:
3751
-
3752
- List[schemas.Connection]: List of source connections for the given short_name
3753
-
3754
- </dd>
3755
- </dl>
3756
- </dd>
3757
- </dl>
3758
-
3759
- #### 🔌 Usage
3760
-
3761
- <dl>
3762
- <dd>
3763
-
3764
- <dl>
3765
- <dd>
3766
-
3767
- ```typescript
3768
- await client.cursorDevelopment.checkConnectionStatus("short_name");
3769
- ```
3770
-
3771
- </dd>
3772
- </dl>
3773
- </dd>
3774
- </dl>
3775
-
3776
- #### ⚙️ Parameters
3777
-
3778
- <dl>
3779
- <dd>
3780
-
3781
- <dl>
3782
- <dd>
3783
-
3784
- **shortName:** `string`
3785
-
3786
- </dd>
3787
- </dl>
3788
-
3789
- <dl>
3790
- <dd>
3791
-
3792
- **requestOptions:** `CursorDevelopment.RequestOptions`
3793
-
3794
- </dd>
3795
- </dl>
3796
- </dd>
3797
- </dl>
3798
-
3799
- </dd>
3800
- </dl>
3801
- </details>
3802
-
3803
- <details><summary><code>client.cursorDevelopment.<a href="/src/api/resources/cursorDevelopment/client/Client.ts">testSync</a>(shortName) -> AirweaveSDK.SyncJob</code></summary>
3804
- <dl>
3805
- <dd>
3806
-
3807
- #### 📝 Description
3808
-
3809
- <dl>
3810
- <dd>
3811
-
3812
- <dl>
3813
- <dd>
3814
-
3815
- Run a sync for a specific source by short_name.
3816
-
3817
- This endpoint is used for testing source integrations during development.
3818
- It finds the first available source connection for the given short_name and
3819
- runs a sync on it.
3820
-
3821
- ## Args:
3822
-
3823
- db: The database session
3824
- short_name: The short name of the source to sync
3825
- background_tasks: The background tasks
3826
- user: The admin user
3827
-
3828
- ## Returns:
3829
-
3830
- schemas.SyncJob: The created sync job
3831
-
3832
- </dd>
3833
- </dl>
3834
- </dd>
3835
- </dl>
3836
-
3837
- #### 🔌 Usage
3838
-
3839
- <dl>
3840
- <dd>
3841
-
3842
- <dl>
3843
- <dd>
3844
-
3845
- ```typescript
3846
- await client.cursorDevelopment.testSync("short_name");
3847
- ```
3848
-
3849
- </dd>
3850
- </dl>
3851
- </dd>
3852
- </dl>
3853
-
3854
- #### ⚙️ Parameters
3855
-
3856
- <dl>
3857
- <dd>
3858
-
3859
- <dl>
3860
- <dd>
3861
-
3862
- **shortName:** `string`
3863
-
3864
- </dd>
3865
- </dl>
3866
-
3867
- <dl>
3868
- <dd>
3869
-
3870
- **requestOptions:** `CursorDevelopment.RequestOptions`
3871
-
3872
- </dd>
3873
- </dl>
3874
- </dd>
3875
- </dl>
3876
-
3877
- </dd>
3878
- </dl>
3879
- </details>
@@ -8,7 +8,6 @@ export * as embeddingModels from "./embeddingModels";
8
8
  export * as connections from "./connections";
9
9
  export * as whiteLabels from "./whiteLabels";
10
10
  export * as transformers from "./transformers";
11
- export * as cursorDevelopment from "./cursorDevelopment";
12
11
  export * from "./connections/client/requests";
13
12
  export * from "./sync/client/requests";
14
13
  export * from "./whiteLabels/client/requests";
@@ -36,7 +36,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.dag = exports.cursorDevelopment = exports.transformers = exports.whiteLabels = exports.connections = exports.embeddingModels = exports.destinations = exports.sources = exports.entities = exports.sync = void 0;
39
+ exports.dag = exports.transformers = exports.whiteLabels = exports.connections = exports.embeddingModels = exports.destinations = exports.sources = exports.entities = exports.sync = void 0;
40
40
  exports.sync = __importStar(require("./sync"));
41
41
  __exportStar(require("./sync/types"), exports);
42
42
  exports.entities = __importStar(require("./entities"));
@@ -47,7 +47,6 @@ exports.embeddingModels = __importStar(require("./embeddingModels"));
47
47
  exports.connections = __importStar(require("./connections"));
48
48
  exports.whiteLabels = __importStar(require("./whiteLabels"));
49
49
  exports.transformers = __importStar(require("./transformers"));
50
- exports.cursorDevelopment = __importStar(require("./cursorDevelopment"));
51
50
  __exportStar(require("./connections/client/requests"), exports);
52
51
  __exportStar(require("./sync/client/requests"), exports);
53
52
  __exportStar(require("./whiteLabels/client/requests"), exports);
@@ -17,6 +17,7 @@ export declare namespace Destination {
17
17
  input_entity_definition_ids?: string[] | null;
18
18
  organization_id?: string | null;
19
19
  config_schema?: Record<string, unknown> | null;
20
+ labels?: string[] | null;
20
21
  id: string;
21
22
  created_at: string;
22
23
  modified_at: string;
@@ -49,6 +49,7 @@ exports.Destination = core.serialization.object({
49
49
  inputEntityDefinitionIds: core.serialization.property("input_entity_definition_ids", core.serialization.list(core.serialization.string()).optional()),
50
50
  organizationId: core.serialization.property("organization_id", core.serialization.string().optional()),
51
51
  configSchema: core.serialization.property("config_schema", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
52
+ labels: core.serialization.list(core.serialization.string()).optional(),
52
53
  id: core.serialization.string(),
53
54
  createdAt: core.serialization.property("created_at", core.serialization.date()),
54
55
  modifiedAt: core.serialization.property("modified_at", core.serialization.date()),
@@ -18,6 +18,7 @@ export declare namespace DestinationWithConfigFields {
18
18
  input_entity_definition_ids?: string[] | null;
19
19
  organization_id?: string | null;
20
20
  config_schema?: Record<string, unknown> | null;
21
+ labels?: string[] | null;
21
22
  id: string;
22
23
  created_at: string;
23
24
  modified_at: string;
@@ -50,6 +50,7 @@ exports.DestinationWithConfigFields = core.serialization.object({
50
50
  inputEntityDefinitionIds: core.serialization.property("input_entity_definition_ids", core.serialization.list(core.serialization.string()).optional()),
51
51
  organizationId: core.serialization.property("organization_id", core.serialization.string().optional()),
52
52
  configSchema: core.serialization.property("config_schema", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
53
+ labels: core.serialization.list(core.serialization.string()).optional(),
53
54
  id: core.serialization.string(),
54
55
  createdAt: core.serialization.property("created_at", core.serialization.date()),
55
56
  modifiedAt: core.serialization.property("modified_at", core.serialization.date()),
@@ -17,6 +17,7 @@ export declare namespace Source {
17
17
  output_entity_definition_ids?: string[] | null;
18
18
  organization_id?: string | null;
19
19
  config_schema?: Record<string, unknown> | null;
20
+ labels?: string[] | null;
20
21
  id: string;
21
22
  created_at: string;
22
23
  modified_at: string;
@@ -49,6 +49,7 @@ exports.Source = core.serialization.object({
49
49
  outputEntityDefinitionIds: core.serialization.property("output_entity_definition_ids", core.serialization.list(core.serialization.string()).optional()),
50
50
  organizationId: core.serialization.property("organization_id", core.serialization.string().optional()),
51
51
  configSchema: core.serialization.property("config_schema", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
52
+ labels: core.serialization.list(core.serialization.string()).optional(),
52
53
  id: core.serialization.string(),
53
54
  createdAt: core.serialization.property("created_at", core.serialization.date()),
54
55
  modifiedAt: core.serialization.property("modified_at", core.serialization.date()),
@@ -18,6 +18,7 @@ export declare namespace SourceWithConfigFields {
18
18
  output_entity_definition_ids?: string[] | null;
19
19
  organization_id?: string | null;
20
20
  config_schema?: Record<string, unknown> | null;
21
+ labels?: string[] | null;
21
22
  id: string;
22
23
  created_at: string;
23
24
  modified_at: string;
@@ -50,6 +50,7 @@ exports.SourceWithConfigFields = core.serialization.object({
50
50
  outputEntityDefinitionIds: core.serialization.property("output_entity_definition_ids", core.serialization.list(core.serialization.string()).optional()),
51
51
  organizationId: core.serialization.property("organization_id", core.serialization.string().optional()),
52
52
  configSchema: core.serialization.property("config_schema", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
53
+ labels: core.serialization.list(core.serialization.string()).optional(),
53
54
  id: core.serialization.string(),
54
55
  createdAt: core.serialization.property("created_at", core.serialization.date()),
55
56
  modifiedAt: core.serialization.property("modified_at", core.serialization.date()),
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.25";
1
+ export declare const SDK_VERSION = "0.1.26";
package/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "0.1.25";
4
+ exports.SDK_VERSION = "0.1.26";
@@ -1,78 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as environments from "../../../../environments";
5
- import * as core from "../../../../core";
6
- import * as AirweaveSDK from "../../../index";
7
- export declare namespace CursorDevelopment {
8
- interface Options {
9
- environment?: core.Supplier<environments.AirweaveSDKEnvironment | string>;
10
- /** Override the x-api-key header */
11
- apiKey?: core.Supplier<string | undefined>;
12
- }
13
- interface RequestOptions {
14
- /** The maximum time to wait for a response in seconds. */
15
- timeoutInSeconds?: number;
16
- /** The number of times to retry the request. Defaults to 2. */
17
- maxRetries?: number;
18
- /** A hook to abort the request. */
19
- abortSignal?: AbortSignal;
20
- /** Override the x-api-key header */
21
- apiKey?: string | undefined;
22
- /** Additional headers to include in the request. */
23
- headers?: Record<string, string>;
24
- }
25
- }
26
- export declare class CursorDevelopment {
27
- protected readonly _options: CursorDevelopment.Options;
28
- constructor(_options?: CursorDevelopment.Options);
29
- /**
30
- * Check if a source connection exists for the given short_name.
31
- *
32
- * Args:
33
- * -----
34
- * db: The database session
35
- * short_name: The short name of the source to check
36
- * user: The admin user
37
- *
38
- * Returns:
39
- * --------
40
- * List[schemas.Connection]: List of source connections for the given short_name
41
- *
42
- * @param {string} shortName
43
- * @param {CursorDevelopment.RequestOptions} requestOptions - Request-specific configuration.
44
- *
45
- * @throws {@link AirweaveSDK.UnprocessableEntityError}
46
- *
47
- * @example
48
- * await client.cursorDevelopment.checkConnectionStatus("short_name")
49
- */
50
- checkConnectionStatus(shortName: string, requestOptions?: CursorDevelopment.RequestOptions): Promise<AirweaveSDK.Connection[]>;
51
- /**
52
- * Run a sync for a specific source by short_name.
53
- *
54
- * This endpoint is used for testing source integrations during development.
55
- * It finds the first available source connection for the given short_name and
56
- * runs a sync on it.
57
- *
58
- * Args:
59
- * -----
60
- * db: The database session
61
- * short_name: The short name of the source to sync
62
- * background_tasks: The background tasks
63
- * user: The admin user
64
- *
65
- * Returns:
66
- * --------
67
- * schemas.SyncJob: The created sync job
68
- *
69
- * @param {string} shortName
70
- * @param {CursorDevelopment.RequestOptions} requestOptions - Request-specific configuration.
71
- *
72
- * @throws {@link AirweaveSDK.UnprocessableEntityError}
73
- *
74
- * @example
75
- * await client.cursorDevelopment.testSync("short_name")
76
- */
77
- testSync(shortName: string, requestOptions?: CursorDevelopment.RequestOptions): Promise<AirweaveSDK.SyncJob>;
78
- }