@airweave/sdk 0.8.76 → 0.8.77
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/Client.js +2 -2
- package/dist/cjs/api/resources/webhooks/client/requests/CreateSubscriptionRequest.d.ts +1 -1
- package/dist/cjs/api/types/EventType.d.ts +11 -1
- package/dist/cjs/api/types/EventType.js +6 -0
- package/dist/cjs/api/types/SourceConnection.d.ts +2 -0
- package/dist/cjs/api/types/WebhookMessage.d.ts +2 -3
- package/dist/cjs/api/types/WebhookMessageWithAttempts.d.ts +2 -2
- package/dist/cjs/api/types/WebhookSubscription.d.ts +1 -1
- package/dist/cjs/api/types/index.d.ts +0 -1
- package/dist/cjs/api/types/index.js +0 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.mjs +2 -2
- package/dist/esm/api/resources/webhooks/client/requests/CreateSubscriptionRequest.d.mts +1 -1
- package/dist/esm/api/types/EventType.d.mts +11 -1
- package/dist/esm/api/types/EventType.mjs +6 -0
- package/dist/esm/api/types/SourceConnection.d.mts +2 -0
- package/dist/esm/api/types/WebhookMessage.d.mts +2 -3
- package/dist/esm/api/types/WebhookMessageWithAttempts.d.mts +2 -2
- package/dist/esm/api/types/WebhookSubscription.d.mts +1 -1
- package/dist/esm/api/types/index.d.mts +0 -1
- package/dist/esm/api/types/index.mjs +0 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/dist/cjs/api/types/SyncEventPayload.d.ts +0 -15
- package/dist/cjs/api/types/SyncEventPayload.js +0 -5
- package/dist/esm/api/types/SyncEventPayload.d.mts +0 -15
- package/dist/esm/api/types/SyncEventPayload.mjs +0 -4
package/dist/cjs/Client.js
CHANGED
|
@@ -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.
|
|
52
|
-
"User-Agent": "@airweave/sdk/v0.8.
|
|
51
|
+
"X-Fern-SDK-Version": "v0.8.77",
|
|
52
|
+
"User-Agent": "@airweave/sdk/v0.8.77",
|
|
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) });
|
|
@@ -12,7 +12,7 @@ import * as AirweaveSDK from "../../../../index.js";
|
|
|
12
12
|
export interface CreateSubscriptionRequest {
|
|
13
13
|
/** The HTTPS URL where webhook events will be delivered. Must be a publicly accessible endpoint that returns a 2xx status code. */
|
|
14
14
|
url: string;
|
|
15
|
-
/** List of event types to subscribe to. Events not in this list will not be delivered to this subscription. Available types: `sync.pending`, `sync.running`, `sync.completed`, `sync.failed`, `sync.cancelled`. */
|
|
15
|
+
/** List of event types to subscribe to. Events not in this list will not be delivered to this subscription. Available types: `sync.pending`, `sync.running`, `sync.completed`, `sync.failed`, `sync.cancelled`, `source_connection.created`, `source_connection.auth_completed`, `source_connection.deleted`, `collection.created`, `collection.updated`, `collection.deleted`. */
|
|
16
16
|
event_types: AirweaveSDK.EventType[];
|
|
17
17
|
/** Optional custom signing secret for webhook signature verification. If not provided, a secure secret will be auto-generated. Must be at least 24 characters if specified. */
|
|
18
18
|
secret?: string;
|
|
@@ -3,12 +3,22 @@
|
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* Webhook event types.
|
|
6
|
+
*
|
|
7
|
+
* All available event types that webhook subscribers can filter on.
|
|
8
|
+
* Convention: {domain}.{action} — matches the event_type string
|
|
9
|
+
* on the corresponding domain event class.
|
|
6
10
|
*/
|
|
7
|
-
export type EventType = "sync.pending" | "sync.running" | "sync.completed" | "sync.failed" | "sync.cancelled";
|
|
11
|
+
export type EventType = "sync.pending" | "sync.running" | "sync.completed" | "sync.failed" | "sync.cancelled" | "source_connection.created" | "source_connection.auth_completed" | "source_connection.deleted" | "collection.created" | "collection.updated" | "collection.deleted";
|
|
8
12
|
export declare const EventType: {
|
|
9
13
|
readonly SyncPending: "sync.pending";
|
|
10
14
|
readonly SyncRunning: "sync.running";
|
|
11
15
|
readonly SyncCompleted: "sync.completed";
|
|
12
16
|
readonly SyncFailed: "sync.failed";
|
|
13
17
|
readonly SyncCancelled: "sync.cancelled";
|
|
18
|
+
readonly SourceConnectionCreated: "source_connection.created";
|
|
19
|
+
readonly SourceConnectionAuthCompleted: "source_connection.auth_completed";
|
|
20
|
+
readonly SourceConnectionDeleted: "source_connection.deleted";
|
|
21
|
+
readonly CollectionCreated: "collection.created";
|
|
22
|
+
readonly CollectionUpdated: "collection.updated";
|
|
23
|
+
readonly CollectionDeleted: "collection.deleted";
|
|
14
24
|
};
|
|
@@ -10,4 +10,10 @@ exports.EventType = {
|
|
|
10
10
|
SyncCompleted: "sync.completed",
|
|
11
11
|
SyncFailed: "sync.failed",
|
|
12
12
|
SyncCancelled: "sync.cancelled",
|
|
13
|
+
SourceConnectionCreated: "source_connection.created",
|
|
14
|
+
SourceConnectionAuthCompleted: "source_connection.auth_completed",
|
|
15
|
+
SourceConnectionDeleted: "source_connection.deleted",
|
|
16
|
+
CollectionCreated: "collection.created",
|
|
17
|
+
CollectionUpdated: "collection.updated",
|
|
18
|
+
CollectionDeleted: "collection.deleted",
|
|
13
19
|
};
|
|
@@ -11,6 +11,8 @@ import * as AirweaveSDK from "../index.js";
|
|
|
11
11
|
export interface SourceConnection {
|
|
12
12
|
/** Unique identifier of the source connection */
|
|
13
13
|
id: string;
|
|
14
|
+
/** Organization this connection belongs to */
|
|
15
|
+
organization_id: string;
|
|
14
16
|
/** Display name of the connection */
|
|
15
17
|
name: string;
|
|
16
18
|
/** Optional description of the connection's purpose */
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as AirweaveSDK from "../index.js";
|
|
5
4
|
/**
|
|
6
5
|
* A webhook message that was sent (or attempted) to webhook subscribers.
|
|
7
6
|
*
|
|
@@ -12,8 +11,8 @@ export interface WebhookMessage {
|
|
|
12
11
|
id: string;
|
|
13
12
|
/** The type of event (e.g., 'sync.completed', 'sync.failed') */
|
|
14
13
|
event_type: string;
|
|
15
|
-
/** The event payload data, matching what is delivered to webhooks */
|
|
16
|
-
payload:
|
|
14
|
+
/** The event payload data, matching what is delivered to webhooks. Structure varies by event_type. */
|
|
15
|
+
payload: Record<string, unknown>;
|
|
17
16
|
/** When this message was created (ISO 8601 format, UTC) */
|
|
18
17
|
timestamp: string;
|
|
19
18
|
/** Channels this message was sent to (typically matches the event type) */
|
|
@@ -10,8 +10,8 @@ export interface WebhookMessageWithAttempts {
|
|
|
10
10
|
id: string;
|
|
11
11
|
/** The type of event (e.g., 'sync.completed', 'sync.failed') */
|
|
12
12
|
event_type: string;
|
|
13
|
-
/** The event payload data, matching what is delivered to webhooks */
|
|
14
|
-
payload:
|
|
13
|
+
/** The event payload data, matching what is delivered to webhooks. Structure varies by event_type. */
|
|
14
|
+
payload: Record<string, unknown>;
|
|
15
15
|
/** When this message was created (ISO 8601 format, UTC) */
|
|
16
16
|
timestamp: string;
|
|
17
17
|
/** Channels this message was sent to (typically matches the event type) */
|
|
@@ -10,7 +10,7 @@ export interface WebhookSubscription {
|
|
|
10
10
|
id: string;
|
|
11
11
|
/** The URL where webhook events are delivered */
|
|
12
12
|
url: string;
|
|
13
|
-
/** Event types this subscription is filtered to receive.
|
|
13
|
+
/** Event types this subscription is filtered to receive. See EventType enum for all available types. */
|
|
14
14
|
filter_types?: string[];
|
|
15
15
|
/** Whether this subscription is currently disabled. Disabled subscriptions do not receive event deliveries. */
|
|
16
16
|
disabled?: boolean;
|
|
@@ -97,7 +97,6 @@ export * from "./Sync.js";
|
|
|
97
97
|
export * from "./SyncConfig.js";
|
|
98
98
|
export * from "./SyncCreate.js";
|
|
99
99
|
export * from "./SyncDetails.js";
|
|
100
|
-
export * from "./SyncEventPayload.js";
|
|
101
100
|
export * from "./SyncJob.js";
|
|
102
101
|
export * from "./SyncJobDetails.js";
|
|
103
102
|
export * from "./SyncJobStatus.js";
|
|
@@ -113,7 +113,6 @@ __exportStar(require("./Sync.js"), exports);
|
|
|
113
113
|
__exportStar(require("./SyncConfig.js"), exports);
|
|
114
114
|
__exportStar(require("./SyncCreate.js"), exports);
|
|
115
115
|
__exportStar(require("./SyncDetails.js"), exports);
|
|
116
|
-
__exportStar(require("./SyncEventPayload.js"), exports);
|
|
117
116
|
__exportStar(require("./SyncJob.js"), exports);
|
|
118
117
|
__exportStar(require("./SyncJobDetails.js"), exports);
|
|
119
118
|
__exportStar(require("./SyncJobStatus.js"), exports);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "v0.8.
|
|
1
|
+
export declare const SDK_VERSION = "v0.8.77";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/Client.mjs
CHANGED
|
@@ -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.
|
|
16
|
-
"User-Agent": "@airweave/sdk/v0.8.
|
|
15
|
+
"X-Fern-SDK-Version": "v0.8.77",
|
|
16
|
+
"User-Agent": "@airweave/sdk/v0.8.77",
|
|
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) });
|
|
@@ -12,7 +12,7 @@ import * as AirweaveSDK from "../../../../index.mjs";
|
|
|
12
12
|
export interface CreateSubscriptionRequest {
|
|
13
13
|
/** The HTTPS URL where webhook events will be delivered. Must be a publicly accessible endpoint that returns a 2xx status code. */
|
|
14
14
|
url: string;
|
|
15
|
-
/** List of event types to subscribe to. Events not in this list will not be delivered to this subscription. Available types: `sync.pending`, `sync.running`, `sync.completed`, `sync.failed`, `sync.cancelled`. */
|
|
15
|
+
/** List of event types to subscribe to. Events not in this list will not be delivered to this subscription. Available types: `sync.pending`, `sync.running`, `sync.completed`, `sync.failed`, `sync.cancelled`, `source_connection.created`, `source_connection.auth_completed`, `source_connection.deleted`, `collection.created`, `collection.updated`, `collection.deleted`. */
|
|
16
16
|
event_types: AirweaveSDK.EventType[];
|
|
17
17
|
/** Optional custom signing secret for webhook signature verification. If not provided, a secure secret will be auto-generated. Must be at least 24 characters if specified. */
|
|
18
18
|
secret?: string;
|
|
@@ -3,12 +3,22 @@
|
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* Webhook event types.
|
|
6
|
+
*
|
|
7
|
+
* All available event types that webhook subscribers can filter on.
|
|
8
|
+
* Convention: {domain}.{action} — matches the event_type string
|
|
9
|
+
* on the corresponding domain event class.
|
|
6
10
|
*/
|
|
7
|
-
export type EventType = "sync.pending" | "sync.running" | "sync.completed" | "sync.failed" | "sync.cancelled";
|
|
11
|
+
export type EventType = "sync.pending" | "sync.running" | "sync.completed" | "sync.failed" | "sync.cancelled" | "source_connection.created" | "source_connection.auth_completed" | "source_connection.deleted" | "collection.created" | "collection.updated" | "collection.deleted";
|
|
8
12
|
export declare const EventType: {
|
|
9
13
|
readonly SyncPending: "sync.pending";
|
|
10
14
|
readonly SyncRunning: "sync.running";
|
|
11
15
|
readonly SyncCompleted: "sync.completed";
|
|
12
16
|
readonly SyncFailed: "sync.failed";
|
|
13
17
|
readonly SyncCancelled: "sync.cancelled";
|
|
18
|
+
readonly SourceConnectionCreated: "source_connection.created";
|
|
19
|
+
readonly SourceConnectionAuthCompleted: "source_connection.auth_completed";
|
|
20
|
+
readonly SourceConnectionDeleted: "source_connection.deleted";
|
|
21
|
+
readonly CollectionCreated: "collection.created";
|
|
22
|
+
readonly CollectionUpdated: "collection.updated";
|
|
23
|
+
readonly CollectionDeleted: "collection.deleted";
|
|
14
24
|
};
|
|
@@ -7,4 +7,10 @@ export const EventType = {
|
|
|
7
7
|
SyncCompleted: "sync.completed",
|
|
8
8
|
SyncFailed: "sync.failed",
|
|
9
9
|
SyncCancelled: "sync.cancelled",
|
|
10
|
+
SourceConnectionCreated: "source_connection.created",
|
|
11
|
+
SourceConnectionAuthCompleted: "source_connection.auth_completed",
|
|
12
|
+
SourceConnectionDeleted: "source_connection.deleted",
|
|
13
|
+
CollectionCreated: "collection.created",
|
|
14
|
+
CollectionUpdated: "collection.updated",
|
|
15
|
+
CollectionDeleted: "collection.deleted",
|
|
10
16
|
};
|
|
@@ -11,6 +11,8 @@ import * as AirweaveSDK from "../index.mjs";
|
|
|
11
11
|
export interface SourceConnection {
|
|
12
12
|
/** Unique identifier of the source connection */
|
|
13
13
|
id: string;
|
|
14
|
+
/** Organization this connection belongs to */
|
|
15
|
+
organization_id: string;
|
|
14
16
|
/** Display name of the connection */
|
|
15
17
|
name: string;
|
|
16
18
|
/** Optional description of the connection's purpose */
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as AirweaveSDK from "../index.mjs";
|
|
5
4
|
/**
|
|
6
5
|
* A webhook message that was sent (or attempted) to webhook subscribers.
|
|
7
6
|
*
|
|
@@ -12,8 +11,8 @@ export interface WebhookMessage {
|
|
|
12
11
|
id: string;
|
|
13
12
|
/** The type of event (e.g., 'sync.completed', 'sync.failed') */
|
|
14
13
|
event_type: string;
|
|
15
|
-
/** The event payload data, matching what is delivered to webhooks */
|
|
16
|
-
payload:
|
|
14
|
+
/** The event payload data, matching what is delivered to webhooks. Structure varies by event_type. */
|
|
15
|
+
payload: Record<string, unknown>;
|
|
17
16
|
/** When this message was created (ISO 8601 format, UTC) */
|
|
18
17
|
timestamp: string;
|
|
19
18
|
/** Channels this message was sent to (typically matches the event type) */
|
|
@@ -10,8 +10,8 @@ export interface WebhookMessageWithAttempts {
|
|
|
10
10
|
id: string;
|
|
11
11
|
/** The type of event (e.g., 'sync.completed', 'sync.failed') */
|
|
12
12
|
event_type: string;
|
|
13
|
-
/** The event payload data, matching what is delivered to webhooks */
|
|
14
|
-
payload:
|
|
13
|
+
/** The event payload data, matching what is delivered to webhooks. Structure varies by event_type. */
|
|
14
|
+
payload: Record<string, unknown>;
|
|
15
15
|
/** When this message was created (ISO 8601 format, UTC) */
|
|
16
16
|
timestamp: string;
|
|
17
17
|
/** Channels this message was sent to (typically matches the event type) */
|
|
@@ -10,7 +10,7 @@ export interface WebhookSubscription {
|
|
|
10
10
|
id: string;
|
|
11
11
|
/** The URL where webhook events are delivered */
|
|
12
12
|
url: string;
|
|
13
|
-
/** Event types this subscription is filtered to receive.
|
|
13
|
+
/** Event types this subscription is filtered to receive. See EventType enum for all available types. */
|
|
14
14
|
filter_types?: string[];
|
|
15
15
|
/** Whether this subscription is currently disabled. Disabled subscriptions do not receive event deliveries. */
|
|
16
16
|
disabled?: boolean;
|
|
@@ -97,7 +97,6 @@ export * from "./Sync.mjs";
|
|
|
97
97
|
export * from "./SyncConfig.mjs";
|
|
98
98
|
export * from "./SyncCreate.mjs";
|
|
99
99
|
export * from "./SyncDetails.mjs";
|
|
100
|
-
export * from "./SyncEventPayload.mjs";
|
|
101
100
|
export * from "./SyncJob.mjs";
|
|
102
101
|
export * from "./SyncJobDetails.mjs";
|
|
103
102
|
export * from "./SyncJobStatus.mjs";
|
|
@@ -97,7 +97,6 @@ export * from "./Sync.mjs";
|
|
|
97
97
|
export * from "./SyncConfig.mjs";
|
|
98
98
|
export * from "./SyncCreate.mjs";
|
|
99
99
|
export * from "./SyncDetails.mjs";
|
|
100
|
-
export * from "./SyncEventPayload.mjs";
|
|
101
100
|
export * from "./SyncJob.mjs";
|
|
102
101
|
export * from "./SyncJobDetails.mjs";
|
|
103
102
|
export * from "./SyncJobStatus.mjs";
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "v0.8.
|
|
1
|
+
export declare const SDK_VERSION = "v0.8.77";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "v0.8.
|
|
1
|
+
export const SDK_VERSION = "v0.8.77";
|
package/package.json
CHANGED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as AirweaveSDK from "../index.js";
|
|
5
|
-
export interface SyncEventPayload {
|
|
6
|
-
event_type: AirweaveSDK.EventType;
|
|
7
|
-
job_id: string;
|
|
8
|
-
collection_readable_id: string;
|
|
9
|
-
collection_name: string;
|
|
10
|
-
source_type: string;
|
|
11
|
-
status: string;
|
|
12
|
-
timestamp: string;
|
|
13
|
-
source_connection_id?: string;
|
|
14
|
-
error?: string;
|
|
15
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as AirweaveSDK from "../index.mjs";
|
|
5
|
-
export interface SyncEventPayload {
|
|
6
|
-
event_type: AirweaveSDK.EventType;
|
|
7
|
-
job_id: string;
|
|
8
|
-
collection_readable_id: string;
|
|
9
|
-
collection_name: string;
|
|
10
|
-
source_type: string;
|
|
11
|
-
status: string;
|
|
12
|
-
timestamp: string;
|
|
13
|
-
source_connection_id?: string;
|
|
14
|
-
error?: string;
|
|
15
|
-
}
|