@airweave/sdk 0.8.97 → 0.9.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.
Files changed (41) hide show
  1. package/dist/cjs/Client.js +2 -2
  2. package/dist/cjs/api/types/Collection.d.ts +10 -7
  3. package/dist/cjs/api/types/index.d.ts +0 -7
  4. package/dist/cjs/api/types/index.js +0 -7
  5. package/dist/cjs/version.d.ts +1 -1
  6. package/dist/cjs/version.js +1 -1
  7. package/dist/esm/Client.mjs +2 -2
  8. package/dist/esm/api/types/Collection.d.mts +10 -7
  9. package/dist/esm/api/types/index.d.mts +0 -7
  10. package/dist/esm/api/types/index.mjs +0 -7
  11. package/dist/esm/version.d.mts +1 -1
  12. package/dist/esm/version.mjs +1 -1
  13. package/package.json +1 -1
  14. package/dist/cjs/api/types/BodyConnectSlackWithTokenConnectionsDirectTokenSlackPost.d.ts +0 -7
  15. package/dist/cjs/api/types/BodyConnectSlackWithTokenConnectionsDirectTokenSlackPost.js +0 -5
  16. package/dist/cjs/api/types/Connection.d.ts +0 -27
  17. package/dist/cjs/api/types/Connection.js +0 -5
  18. package/dist/cjs/api/types/ConnectionStatus.d.ts +0 -12
  19. package/dist/cjs/api/types/ConnectionStatus.js +0 -11
  20. package/dist/cjs/api/types/IntegrationCredentialInDb.d.ts +0 -19
  21. package/dist/cjs/api/types/IntegrationCredentialInDb.js +0 -5
  22. package/dist/cjs/api/types/IntegrationCredentialRawCreate.d.ts +0 -20
  23. package/dist/cjs/api/types/IntegrationCredentialRawCreate.js +0 -5
  24. package/dist/cjs/api/types/IntegrationType.d.ts +0 -12
  25. package/dist/cjs/api/types/IntegrationType.js +0 -11
  26. package/dist/cjs/api/types/OAuthType.d.ts +0 -13
  27. package/dist/cjs/api/types/OAuthType.js +0 -12
  28. package/dist/esm/api/types/BodyConnectSlackWithTokenConnectionsDirectTokenSlackPost.d.mts +0 -7
  29. package/dist/esm/api/types/BodyConnectSlackWithTokenConnectionsDirectTokenSlackPost.mjs +0 -4
  30. package/dist/esm/api/types/Connection.d.mts +0 -27
  31. package/dist/esm/api/types/Connection.mjs +0 -4
  32. package/dist/esm/api/types/ConnectionStatus.d.mts +0 -12
  33. package/dist/esm/api/types/ConnectionStatus.mjs +0 -8
  34. package/dist/esm/api/types/IntegrationCredentialInDb.d.mts +0 -19
  35. package/dist/esm/api/types/IntegrationCredentialInDb.mjs +0 -4
  36. package/dist/esm/api/types/IntegrationCredentialRawCreate.d.mts +0 -20
  37. package/dist/esm/api/types/IntegrationCredentialRawCreate.mjs +0 -4
  38. package/dist/esm/api/types/IntegrationType.d.mts +0 -12
  39. package/dist/esm/api/types/IntegrationType.mjs +0 -8
  40. package/dist/esm/api/types/OAuthType.d.mts +0 -13
  41. package/dist/esm/api/types/OAuthType.mjs +0 -9
@@ -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.8.97",
52
- "User-Agent": "@airweave/sdk/v0.8.97",
51
+ "X-Fern-SDK-Version": "v0.9.0",
52
+ "User-Agent": "@airweave/sdk/v0.9.0",
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) });
@@ -3,10 +3,13 @@
3
3
  */
4
4
  import * as AirweaveSDK from "../index.js";
5
5
  /**
6
- * Complete collection representation returned by the API.
6
+ * API-facing collection schema with embedding metadata.
7
7
  *
8
- * This schema includes all collection metadata plus computed status information
9
- * based on the health and state of associated source connections.
8
+ * Extends CollectionRecord with vector_size and embedding_model_name, which
9
+ * are resolved by the CollectionService from the deployment metadata and the
10
+ * dense embedder registry.
11
+ *
12
+ * Excludes vector_db_deployment_metadata_id (internal FK).
10
13
  */
11
14
  export interface Collection {
12
15
  /** Human-readable display name for the collection. */
@@ -15,10 +18,6 @@ export interface Collection {
15
18
  readable_id: string;
16
19
  /** Unique system identifier for the collection. This UUID is generated automatically and used for internal references. */
17
20
  id: string;
18
- /** Vector dimensions used by this collection. Determines which embedding model is used: 3072 (text-embedding-3-large), 1536 (text-embedding-3-small), 1024 (mistral-embed), or 384 (MiniLM-L6-v2). */
19
- vector_size: number;
20
- /** Name of the embedding model used for this collection (e.g., 'text-embedding-3-large', 'text-embedding-3-small', 'mistral-embed'). This ensures queries use the same model as the indexed data. */
21
- embedding_model_name: string;
22
21
  /** Default sync configuration for all syncs in this collection. Overridable at sync and job level. */
23
22
  sync_config?: AirweaveSDK.SyncConfig;
24
23
  /** Timestamp when the collection was created (ISO 8601 format). */
@@ -33,4 +32,8 @@ export interface Collection {
33
32
  modified_by_email?: string;
34
33
  /** Current operational status of the collection:<br/>• **NEEDS_SOURCE**: Collection has no authenticated connections, or connections exist but haven't synced yet<br/>• **ACTIVE**: At least one connection has completed a sync or is currently syncing<br/>• **ERROR**: All connections have failed their last sync */
35
34
  status?: AirweaveSDK.CollectionStatus;
35
+ /** Vector dimensions used by this collection (derived from deployment metadata). */
36
+ vector_size: number;
37
+ /** Name of the embedding model used for this collection (derived from deployment metadata). */
38
+ embedding_model_name: string;
36
39
  }
@@ -31,7 +31,6 @@ export * from "./BillingPeriodUsage.js";
31
31
  export * from "./BillingPlan.js";
32
32
  export * from "./BillingStatus.js";
33
33
  export * from "./BillingTransition.js";
34
- export * from "./BodyConnectSlackWithTokenConnectionsDirectTokenSlackPost.js";
35
34
  export * from "./BodyResyncWithExecutionConfigAdminResyncSyncIdPost.js";
36
35
  export * from "./CheckStatus.js";
37
36
  export * from "./CheckoutSessionRequest.js";
@@ -41,8 +40,6 @@ export * from "./CollectionStatus.js";
41
40
  export * from "./ConfigField.js";
42
41
  export * from "./ConfigValues.js";
43
42
  export * from "./ConflictErrorResponse.js";
44
- export * from "./Connection.js";
45
- export * from "./ConnectionStatus.js";
46
43
  export * from "./CursorConfig.js";
47
44
  export * from "./CustomerPortalRequest.js";
48
45
  export * from "./CustomerPortalResponse.js";
@@ -67,9 +64,6 @@ export * from "./Fields.js";
67
64
  export * from "./HttpValidationError.js";
68
65
  export * from "./HandlerConfig.js";
69
66
  export * from "./HealthStatus.js";
70
- export * from "./IntegrationCredentialInDb.js";
71
- export * from "./IntegrationCredentialRawCreate.js";
72
- export * from "./IntegrationType.js";
73
67
  export * from "./InvitationCreate.js";
74
68
  export * from "./InvitationResponse.js";
75
69
  export * from "./LegacySearchRequest.js";
@@ -81,7 +75,6 @@ export * from "./MinuteLevelScheduleConfig.js";
81
75
  export * from "./NotFoundErrorResponse.js";
82
76
  export * from "./OAuthBrowserAuthentication.js";
83
77
  export * from "./OAuthTokenAuthentication.js";
84
- export * from "./OAuthType.js";
85
78
  export * from "./Organization.js";
86
79
  export * from "./OrganizationBilling.js";
87
80
  export * from "./OrganizationCreate.js";
@@ -47,7 +47,6 @@ __exportStar(require("./BillingPeriodUsage.js"), exports);
47
47
  __exportStar(require("./BillingPlan.js"), exports);
48
48
  __exportStar(require("./BillingStatus.js"), exports);
49
49
  __exportStar(require("./BillingTransition.js"), exports);
50
- __exportStar(require("./BodyConnectSlackWithTokenConnectionsDirectTokenSlackPost.js"), exports);
51
50
  __exportStar(require("./BodyResyncWithExecutionConfigAdminResyncSyncIdPost.js"), exports);
52
51
  __exportStar(require("./CheckStatus.js"), exports);
53
52
  __exportStar(require("./CheckoutSessionRequest.js"), exports);
@@ -57,8 +56,6 @@ __exportStar(require("./CollectionStatus.js"), exports);
57
56
  __exportStar(require("./ConfigField.js"), exports);
58
57
  __exportStar(require("./ConfigValues.js"), exports);
59
58
  __exportStar(require("./ConflictErrorResponse.js"), exports);
60
- __exportStar(require("./Connection.js"), exports);
61
- __exportStar(require("./ConnectionStatus.js"), exports);
62
59
  __exportStar(require("./CursorConfig.js"), exports);
63
60
  __exportStar(require("./CustomerPortalRequest.js"), exports);
64
61
  __exportStar(require("./CustomerPortalResponse.js"), exports);
@@ -83,9 +80,6 @@ __exportStar(require("./Fields.js"), exports);
83
80
  __exportStar(require("./HttpValidationError.js"), exports);
84
81
  __exportStar(require("./HandlerConfig.js"), exports);
85
82
  __exportStar(require("./HealthStatus.js"), exports);
86
- __exportStar(require("./IntegrationCredentialInDb.js"), exports);
87
- __exportStar(require("./IntegrationCredentialRawCreate.js"), exports);
88
- __exportStar(require("./IntegrationType.js"), exports);
89
83
  __exportStar(require("./InvitationCreate.js"), exports);
90
84
  __exportStar(require("./InvitationResponse.js"), exports);
91
85
  __exportStar(require("./LegacySearchRequest.js"), exports);
@@ -97,7 +91,6 @@ __exportStar(require("./MinuteLevelScheduleConfig.js"), exports);
97
91
  __exportStar(require("./NotFoundErrorResponse.js"), exports);
98
92
  __exportStar(require("./OAuthBrowserAuthentication.js"), exports);
99
93
  __exportStar(require("./OAuthTokenAuthentication.js"), exports);
100
- __exportStar(require("./OAuthType.js"), exports);
101
94
  __exportStar(require("./Organization.js"), exports);
102
95
  __exportStar(require("./OrganizationBilling.js"), exports);
103
96
  __exportStar(require("./OrganizationCreate.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "v0.8.97";
1
+ export declare const SDK_VERSION = "v0.9.0";
@@ -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 = "v0.8.97";
4
+ exports.SDK_VERSION = "v0.9.0";
@@ -12,8 +12,8 @@ export class AirweaveSDKClient {
12
12
  this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
13
13
  "X-Fern-Language": "JavaScript",
14
14
  "X-Fern-SDK-Name": "@airweave/sdk",
15
- "X-Fern-SDK-Version": "v0.8.97",
16
- "User-Agent": "@airweave/sdk/v0.8.97",
15
+ "X-Fern-SDK-Version": "v0.9.0",
16
+ "User-Agent": "@airweave/sdk/v0.9.0",
17
17
  "X-Fern-Runtime": core.RUNTIME.type,
18
18
  "X-Fern-Runtime-Version": core.RUNTIME.version,
19
19
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -3,10 +3,13 @@
3
3
  */
4
4
  import * as AirweaveSDK from "../index.mjs";
5
5
  /**
6
- * Complete collection representation returned by the API.
6
+ * API-facing collection schema with embedding metadata.
7
7
  *
8
- * This schema includes all collection metadata plus computed status information
9
- * based on the health and state of associated source connections.
8
+ * Extends CollectionRecord with vector_size and embedding_model_name, which
9
+ * are resolved by the CollectionService from the deployment metadata and the
10
+ * dense embedder registry.
11
+ *
12
+ * Excludes vector_db_deployment_metadata_id (internal FK).
10
13
  */
11
14
  export interface Collection {
12
15
  /** Human-readable display name for the collection. */
@@ -15,10 +18,6 @@ export interface Collection {
15
18
  readable_id: string;
16
19
  /** Unique system identifier for the collection. This UUID is generated automatically and used for internal references. */
17
20
  id: string;
18
- /** Vector dimensions used by this collection. Determines which embedding model is used: 3072 (text-embedding-3-large), 1536 (text-embedding-3-small), 1024 (mistral-embed), or 384 (MiniLM-L6-v2). */
19
- vector_size: number;
20
- /** Name of the embedding model used for this collection (e.g., 'text-embedding-3-large', 'text-embedding-3-small', 'mistral-embed'). This ensures queries use the same model as the indexed data. */
21
- embedding_model_name: string;
22
21
  /** Default sync configuration for all syncs in this collection. Overridable at sync and job level. */
23
22
  sync_config?: AirweaveSDK.SyncConfig;
24
23
  /** Timestamp when the collection was created (ISO 8601 format). */
@@ -33,4 +32,8 @@ export interface Collection {
33
32
  modified_by_email?: string;
34
33
  /** Current operational status of the collection:<br/>• **NEEDS_SOURCE**: Collection has no authenticated connections, or connections exist but haven't synced yet<br/>• **ACTIVE**: At least one connection has completed a sync or is currently syncing<br/>• **ERROR**: All connections have failed their last sync */
35
34
  status?: AirweaveSDK.CollectionStatus;
35
+ /** Vector dimensions used by this collection (derived from deployment metadata). */
36
+ vector_size: number;
37
+ /** Name of the embedding model used for this collection (derived from deployment metadata). */
38
+ embedding_model_name: string;
36
39
  }
@@ -31,7 +31,6 @@ export * from "./BillingPeriodUsage.mjs";
31
31
  export * from "./BillingPlan.mjs";
32
32
  export * from "./BillingStatus.mjs";
33
33
  export * from "./BillingTransition.mjs";
34
- export * from "./BodyConnectSlackWithTokenConnectionsDirectTokenSlackPost.mjs";
35
34
  export * from "./BodyResyncWithExecutionConfigAdminResyncSyncIdPost.mjs";
36
35
  export * from "./CheckStatus.mjs";
37
36
  export * from "./CheckoutSessionRequest.mjs";
@@ -41,8 +40,6 @@ export * from "./CollectionStatus.mjs";
41
40
  export * from "./ConfigField.mjs";
42
41
  export * from "./ConfigValues.mjs";
43
42
  export * from "./ConflictErrorResponse.mjs";
44
- export * from "./Connection.mjs";
45
- export * from "./ConnectionStatus.mjs";
46
43
  export * from "./CursorConfig.mjs";
47
44
  export * from "./CustomerPortalRequest.mjs";
48
45
  export * from "./CustomerPortalResponse.mjs";
@@ -67,9 +64,6 @@ export * from "./Fields.mjs";
67
64
  export * from "./HttpValidationError.mjs";
68
65
  export * from "./HandlerConfig.mjs";
69
66
  export * from "./HealthStatus.mjs";
70
- export * from "./IntegrationCredentialInDb.mjs";
71
- export * from "./IntegrationCredentialRawCreate.mjs";
72
- export * from "./IntegrationType.mjs";
73
67
  export * from "./InvitationCreate.mjs";
74
68
  export * from "./InvitationResponse.mjs";
75
69
  export * from "./LegacySearchRequest.mjs";
@@ -81,7 +75,6 @@ export * from "./MinuteLevelScheduleConfig.mjs";
81
75
  export * from "./NotFoundErrorResponse.mjs";
82
76
  export * from "./OAuthBrowserAuthentication.mjs";
83
77
  export * from "./OAuthTokenAuthentication.mjs";
84
- export * from "./OAuthType.mjs";
85
78
  export * from "./Organization.mjs";
86
79
  export * from "./OrganizationBilling.mjs";
87
80
  export * from "./OrganizationCreate.mjs";
@@ -31,7 +31,6 @@ export * from "./BillingPeriodUsage.mjs";
31
31
  export * from "./BillingPlan.mjs";
32
32
  export * from "./BillingStatus.mjs";
33
33
  export * from "./BillingTransition.mjs";
34
- export * from "./BodyConnectSlackWithTokenConnectionsDirectTokenSlackPost.mjs";
35
34
  export * from "./BodyResyncWithExecutionConfigAdminResyncSyncIdPost.mjs";
36
35
  export * from "./CheckStatus.mjs";
37
36
  export * from "./CheckoutSessionRequest.mjs";
@@ -41,8 +40,6 @@ export * from "./CollectionStatus.mjs";
41
40
  export * from "./ConfigField.mjs";
42
41
  export * from "./ConfigValues.mjs";
43
42
  export * from "./ConflictErrorResponse.mjs";
44
- export * from "./Connection.mjs";
45
- export * from "./ConnectionStatus.mjs";
46
43
  export * from "./CursorConfig.mjs";
47
44
  export * from "./CustomerPortalRequest.mjs";
48
45
  export * from "./CustomerPortalResponse.mjs";
@@ -67,9 +64,6 @@ export * from "./Fields.mjs";
67
64
  export * from "./HttpValidationError.mjs";
68
65
  export * from "./HandlerConfig.mjs";
69
66
  export * from "./HealthStatus.mjs";
70
- export * from "./IntegrationCredentialInDb.mjs";
71
- export * from "./IntegrationCredentialRawCreate.mjs";
72
- export * from "./IntegrationType.mjs";
73
67
  export * from "./InvitationCreate.mjs";
74
68
  export * from "./InvitationResponse.mjs";
75
69
  export * from "./LegacySearchRequest.mjs";
@@ -81,7 +75,6 @@ export * from "./MinuteLevelScheduleConfig.mjs";
81
75
  export * from "./NotFoundErrorResponse.mjs";
82
76
  export * from "./OAuthBrowserAuthentication.mjs";
83
77
  export * from "./OAuthTokenAuthentication.mjs";
84
- export * from "./OAuthType.mjs";
85
78
  export * from "./Organization.mjs";
86
79
  export * from "./OrganizationBilling.mjs";
87
80
  export * from "./OrganizationCreate.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "v0.8.97";
1
+ export declare const SDK_VERSION = "v0.9.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "v0.8.97";
1
+ export const SDK_VERSION = "v0.9.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@airweave/sdk",
3
- "version": "v0.8.97",
3
+ "version": "v0.9.0",
4
4
  "private": false,
5
5
  "repository": "github:airweave-ai/typescript-sdk",
6
6
  "type": "commonjs",
@@ -1,7 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface BodyConnectSlackWithTokenConnectionsDirectTokenSlackPost {
5
- token: string;
6
- name?: string;
7
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,27 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as AirweaveSDK from "../index.js";
5
- /**
6
- * Schema for connection with config fields.
7
- */
8
- export interface Connection {
9
- /** Human-readable display name for the connection. */
10
- name: string;
11
- /** URL-safe unique identifier used in API endpoints. This becomes non-optional once the connection is created. */
12
- readable_id: string;
13
- description?: string;
14
- integration_type: AirweaveSDK.IntegrationType;
15
- integration_credential_id?: string;
16
- status: AirweaveSDK.ConnectionStatus;
17
- short_name: string;
18
- /** Unique system identifier for the connection. */
19
- id: string;
20
- /** Timestamp when the connection was created (ISO 8601 format). */
21
- created_at: string;
22
- /** Timestamp when the connection was last modified (ISO 8601 format). */
23
- modified_at: string;
24
- organization_id?: string;
25
- created_by_email?: string;
26
- modified_by_email?: string;
27
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,12 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- /**
5
- * Connection status enum.
6
- */
7
- export type ConnectionStatus = "active" | "inactive" | "error";
8
- export declare const ConnectionStatus: {
9
- readonly Active: "active";
10
- readonly Inactive: "inactive";
11
- readonly Error: "error";
12
- };
@@ -1,11 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.ConnectionStatus = void 0;
7
- exports.ConnectionStatus = {
8
- Active: "active",
9
- Inactive: "inactive",
10
- Error: "error",
11
- };
@@ -1,19 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as AirweaveSDK from "../index.js";
5
- /**
6
- * Integration credential in DB without decrypted data.
7
- */
8
- export interface IntegrationCredentialInDb {
9
- name: string;
10
- integration_short_name: string;
11
- description?: string;
12
- integration_type: AirweaveSDK.IntegrationType;
13
- authentication_method: AirweaveSDK.AuthenticationMethod;
14
- oauth_type?: AirweaveSDK.OAuthType;
15
- auth_config_class?: string;
16
- id: string;
17
- organization_id: string;
18
- encrypted_credentials: string;
19
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,20 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as AirweaveSDK from "../index.js";
5
- /**
6
- * Create class for integration credentials with raw auth fields.
7
- *
8
- * This schema is used when auth fields need to be validated and encrypted
9
- * before creating the credential.
10
- */
11
- export interface IntegrationCredentialRawCreate {
12
- name: string;
13
- integration_short_name: string;
14
- description?: string;
15
- integration_type: AirweaveSDK.IntegrationType;
16
- authentication_method: AirweaveSDK.AuthenticationMethod;
17
- oauth_type?: AirweaveSDK.OAuthType;
18
- auth_config_class?: string;
19
- auth_fields: Record<string, unknown>;
20
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,12 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- /**
5
- * Integration type enum.
6
- */
7
- export type IntegrationType = "source" | "destination" | "auth_provider";
8
- export declare const IntegrationType: {
9
- readonly Source: "source";
10
- readonly Destination: "destination";
11
- readonly AuthProvider: "auth_provider";
12
- };
@@ -1,11 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.IntegrationType = void 0;
7
- exports.IntegrationType = {
8
- Source: "source",
9
- Destination: "destination",
10
- AuthProvider: "auth_provider",
11
- };
@@ -1,13 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- /**
5
- * OAuth token types for sources.
6
- */
7
- export type OAuthType = "oauth1" | "access_only" | "with_refresh" | "with_rotating_refresh";
8
- export declare const OAuthType: {
9
- readonly Oauth1: "oauth1";
10
- readonly AccessOnly: "access_only";
11
- readonly WithRefresh: "with_refresh";
12
- readonly WithRotatingRefresh: "with_rotating_refresh";
13
- };
@@ -1,12 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.OAuthType = void 0;
7
- exports.OAuthType = {
8
- Oauth1: "oauth1",
9
- AccessOnly: "access_only",
10
- WithRefresh: "with_refresh",
11
- WithRotatingRefresh: "with_rotating_refresh",
12
- };
@@ -1,7 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface BodyConnectSlackWithTokenConnectionsDirectTokenSlackPost {
5
- token: string;
6
- name?: string;
7
- }
@@ -1,4 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export {};
@@ -1,27 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as AirweaveSDK from "../index.mjs";
5
- /**
6
- * Schema for connection with config fields.
7
- */
8
- export interface Connection {
9
- /** Human-readable display name for the connection. */
10
- name: string;
11
- /** URL-safe unique identifier used in API endpoints. This becomes non-optional once the connection is created. */
12
- readable_id: string;
13
- description?: string;
14
- integration_type: AirweaveSDK.IntegrationType;
15
- integration_credential_id?: string;
16
- status: AirweaveSDK.ConnectionStatus;
17
- short_name: string;
18
- /** Unique system identifier for the connection. */
19
- id: string;
20
- /** Timestamp when the connection was created (ISO 8601 format). */
21
- created_at: string;
22
- /** Timestamp when the connection was last modified (ISO 8601 format). */
23
- modified_at: string;
24
- organization_id?: string;
25
- created_by_email?: string;
26
- modified_by_email?: string;
27
- }
@@ -1,4 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export {};
@@ -1,12 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- /**
5
- * Connection status enum.
6
- */
7
- export type ConnectionStatus = "active" | "inactive" | "error";
8
- export declare const ConnectionStatus: {
9
- readonly Active: "active";
10
- readonly Inactive: "inactive";
11
- readonly Error: "error";
12
- };
@@ -1,8 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export const ConnectionStatus = {
5
- Active: "active",
6
- Inactive: "inactive",
7
- Error: "error",
8
- };
@@ -1,19 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as AirweaveSDK from "../index.mjs";
5
- /**
6
- * Integration credential in DB without decrypted data.
7
- */
8
- export interface IntegrationCredentialInDb {
9
- name: string;
10
- integration_short_name: string;
11
- description?: string;
12
- integration_type: AirweaveSDK.IntegrationType;
13
- authentication_method: AirweaveSDK.AuthenticationMethod;
14
- oauth_type?: AirweaveSDK.OAuthType;
15
- auth_config_class?: string;
16
- id: string;
17
- organization_id: string;
18
- encrypted_credentials: string;
19
- }
@@ -1,4 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export {};
@@ -1,20 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as AirweaveSDK from "../index.mjs";
5
- /**
6
- * Create class for integration credentials with raw auth fields.
7
- *
8
- * This schema is used when auth fields need to be validated and encrypted
9
- * before creating the credential.
10
- */
11
- export interface IntegrationCredentialRawCreate {
12
- name: string;
13
- integration_short_name: string;
14
- description?: string;
15
- integration_type: AirweaveSDK.IntegrationType;
16
- authentication_method: AirweaveSDK.AuthenticationMethod;
17
- oauth_type?: AirweaveSDK.OAuthType;
18
- auth_config_class?: string;
19
- auth_fields: Record<string, unknown>;
20
- }
@@ -1,4 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export {};
@@ -1,12 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- /**
5
- * Integration type enum.
6
- */
7
- export type IntegrationType = "source" | "destination" | "auth_provider";
8
- export declare const IntegrationType: {
9
- readonly Source: "source";
10
- readonly Destination: "destination";
11
- readonly AuthProvider: "auth_provider";
12
- };
@@ -1,8 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export const IntegrationType = {
5
- Source: "source",
6
- Destination: "destination",
7
- AuthProvider: "auth_provider",
8
- };
@@ -1,13 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- /**
5
- * OAuth token types for sources.
6
- */
7
- export type OAuthType = "oauth1" | "access_only" | "with_refresh" | "with_rotating_refresh";
8
- export declare const OAuthType: {
9
- readonly Oauth1: "oauth1";
10
- readonly AccessOnly: "access_only";
11
- readonly WithRefresh: "with_refresh";
12
- readonly WithRotatingRefresh: "with_rotating_refresh";
13
- };
@@ -1,9 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export const OAuthType = {
5
- Oauth1: "oauth1",
6
- AccessOnly: "access_only",
7
- WithRefresh: "with_refresh",
8
- WithRotatingRefresh: "with_rotating_refresh",
9
- };