extend-ai 1.1.0 → 1.3.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 (158) hide show
  1. package/BaseClient.js +2 -2
  2. package/Client.d.ts +70 -8
  3. package/Client.js +78 -12
  4. package/api/client/requests/ClassifyRequest.d.ts +16 -1
  5. package/api/client/requests/EditRequest.d.ts +7 -1
  6. package/api/client/requests/ExtractRequest.d.ts +20 -1
  7. package/api/client/requests/ParseRequest.d.ts +2 -1
  8. package/api/client/requests/SplitRequest.d.ts +16 -1
  9. package/api/resources/batchProcessorRun/client/Client.d.ts +1 -1
  10. package/api/resources/batchProcessorRun/client/Client.js +1 -1
  11. package/api/resources/classifierVersions/client/Client.d.ts +2 -1
  12. package/api/resources/classifierVersions/client/Client.js +2 -1
  13. package/api/resources/classifierVersions/client/requests/ClassifierVersionsCreateRequest.d.ts +2 -1
  14. package/api/resources/classifiers/client/Client.d.ts +19 -2
  15. package/api/resources/classifiers/client/Client.js +19 -2
  16. package/api/resources/classifiers/client/requests/ClassifiersCreateRequest.d.ts +16 -1
  17. package/api/resources/classifiers/client/requests/ClassifiersUpdateRequest.d.ts +3 -1
  18. package/api/resources/classifyRuns/client/Client.d.ts +4 -1
  19. package/api/resources/classifyRuns/client/Client.js +4 -1
  20. package/api/resources/classifyRuns/client/requests/ClassifyRunsCreateRequest.d.ts +4 -1
  21. package/api/resources/editRuns/client/Client.d.ts +7 -1
  22. package/api/resources/editRuns/client/Client.js +7 -1
  23. package/api/resources/editRuns/client/requests/EditRunsCreateRequest.d.ts +7 -1
  24. package/api/resources/evaluationSetItems/client/Client.d.ts +16 -4
  25. package/api/resources/evaluationSetItems/client/Client.js +16 -4
  26. package/api/resources/evaluationSetItems/client/requests/EvaluationSetItemsCreateRequest.d.ts +8 -2
  27. package/api/resources/evaluationSetItems/client/requests/EvaluationSetItemsUpdateRequest.d.ts +7 -1
  28. package/api/resources/evaluationSets/client/Client.d.ts +4 -3
  29. package/api/resources/evaluationSets/client/Client.js +4 -3
  30. package/api/resources/evaluationSets/client/requests/EvaluationSetsCreateRequest.d.ts +3 -2
  31. package/api/resources/extractRuns/client/Client.d.ts +4 -1
  32. package/api/resources/extractRuns/client/Client.js +4 -1
  33. package/api/resources/extractRuns/client/requests/ExtractRunsCreateRequest.d.ts +4 -1
  34. package/api/resources/extractorVersions/client/Client.d.ts +2 -1
  35. package/api/resources/extractorVersions/client/Client.js +2 -1
  36. package/api/resources/extractorVersions/client/requests/ExtractorVersionsCreateRequest.d.ts +2 -1
  37. package/api/resources/extractors/client/Client.d.ts +23 -2
  38. package/api/resources/extractors/client/Client.js +23 -2
  39. package/api/resources/extractors/client/requests/ExtractorsCreateRequest.d.ts +20 -1
  40. package/api/resources/extractors/client/requests/ExtractorsUpdateRequest.d.ts +3 -1
  41. package/api/resources/files/client/Client.d.ts +1 -1
  42. package/api/resources/files/client/Client.js +1 -1
  43. package/api/resources/index.d.ts +6 -0
  44. package/api/resources/index.js +7 -1
  45. package/api/resources/parseRuns/client/Client.d.ts +2 -1
  46. package/api/resources/parseRuns/client/Client.js +2 -1
  47. package/api/resources/parseRuns/client/requests/ParseRunsCreateRequest.d.ts +2 -1
  48. package/api/resources/processorRun/client/Client.d.ts +3 -3
  49. package/api/resources/processorRun/client/Client.js +3 -3
  50. package/api/resources/processorRun/client/requests/ProcessorRunCreateRequest.d.ts +1 -1
  51. package/api/resources/splitRuns/client/Client.d.ts +4 -1
  52. package/api/resources/splitRuns/client/Client.js +4 -1
  53. package/api/resources/splitRuns/client/requests/SplitRunsCreateRequest.d.ts +4 -1
  54. package/api/resources/splitterVersions/client/Client.d.ts +2 -1
  55. package/api/resources/splitterVersions/client/Client.js +2 -1
  56. package/api/resources/splitterVersions/client/requests/SplitterVersionsCreateRequest.d.ts +2 -1
  57. package/api/resources/splitters/client/Client.d.ts +19 -2
  58. package/api/resources/splitters/client/Client.js +19 -2
  59. package/api/resources/splitters/client/requests/SplittersCreateRequest.d.ts +16 -1
  60. package/api/resources/splitters/client/requests/SplittersUpdateRequest.d.ts +3 -1
  61. package/api/resources/webhookEndpoints/client/Client.d.ts +133 -0
  62. package/api/resources/webhookEndpoints/client/Client.js +440 -0
  63. package/api/resources/webhookEndpoints/client/index.d.ts +1 -0
  64. package/api/resources/webhookEndpoints/client/index.js +17 -0
  65. package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsCreateRequest.d.ts +21 -0
  66. package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsCreateRequest.js +3 -0
  67. package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsListRequest.d.ts +14 -0
  68. package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsListRequest.js +3 -0
  69. package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsUpdateRequest.d.ts +15 -0
  70. package/api/resources/webhookEndpoints/client/requests/WebhookEndpointsUpdateRequest.js +3 -0
  71. package/api/resources/webhookEndpoints/client/requests/index.d.ts +3 -0
  72. package/api/resources/webhookEndpoints/client/requests/index.js +2 -0
  73. package/api/resources/webhookEndpoints/index.d.ts +2 -0
  74. package/api/resources/webhookEndpoints/index.js +18 -0
  75. package/api/resources/webhookEndpoints/types/WebhookEndpointsDeleteResponse.d.ts +4 -0
  76. package/api/resources/webhookEndpoints/types/WebhookEndpointsDeleteResponse.js +3 -0
  77. package/api/resources/webhookEndpoints/types/WebhookEndpointsListResponse.d.ts +6 -0
  78. package/api/resources/webhookEndpoints/types/WebhookEndpointsListResponse.js +3 -0
  79. package/api/resources/webhookEndpoints/types/index.d.ts +2 -0
  80. package/api/resources/webhookEndpoints/types/index.js +18 -0
  81. package/api/resources/webhookSubscriptions/client/Client.d.ts +133 -0
  82. package/api/resources/webhookSubscriptions/client/Client.js +444 -0
  83. package/api/resources/webhookSubscriptions/client/index.d.ts +1 -0
  84. package/api/resources/webhookSubscriptions/client/index.js +17 -0
  85. package/api/resources/webhookSubscriptions/client/requests/WebhookSubscriptionsCreateRequest.d.ts +19 -0
  86. package/api/resources/webhookSubscriptions/client/requests/WebhookSubscriptionsCreateRequest.js +3 -0
  87. package/api/resources/webhookSubscriptions/client/requests/WebhookSubscriptionsListRequest.d.ts +16 -0
  88. package/api/resources/webhookSubscriptions/client/requests/WebhookSubscriptionsListRequest.js +3 -0
  89. package/api/resources/webhookSubscriptions/client/requests/WebhookSubscriptionsUpdateRequest.d.ts +11 -0
  90. package/api/resources/webhookSubscriptions/client/requests/WebhookSubscriptionsUpdateRequest.js +3 -0
  91. package/api/resources/webhookSubscriptions/client/requests/index.d.ts +3 -0
  92. package/api/resources/webhookSubscriptions/client/requests/index.js +2 -0
  93. package/api/resources/webhookSubscriptions/index.d.ts +2 -0
  94. package/api/resources/webhookSubscriptions/index.js +18 -0
  95. package/api/resources/webhookSubscriptions/types/WebhookSubscriptionsDeleteResponse.d.ts +4 -0
  96. package/api/resources/webhookSubscriptions/types/WebhookSubscriptionsDeleteResponse.js +3 -0
  97. package/api/resources/webhookSubscriptions/types/WebhookSubscriptionsListResponse.d.ts +6 -0
  98. package/api/resources/webhookSubscriptions/types/WebhookSubscriptionsListResponse.js +3 -0
  99. package/api/resources/webhookSubscriptions/types/index.d.ts +2 -0
  100. package/api/resources/webhookSubscriptions/types/index.js +18 -0
  101. package/api/resources/workflowRuns/client/Client.d.ts +22 -6
  102. package/api/resources/workflowRuns/client/Client.js +22 -6
  103. package/api/resources/workflowRuns/client/requests/WorkflowRunsCreateBatchRequest.d.ts +12 -2
  104. package/api/resources/workflowRuns/client/requests/WorkflowRunsCreateRequest.d.ts +3 -3
  105. package/api/resources/workflowRuns/client/requests/WorkflowRunsListRequest.d.ts +1 -1
  106. package/api/resources/workflowRuns/client/requests/WorkflowRunsUpdateRequest.d.ts +7 -1
  107. package/api/resources/workflowRuns/types/WorkflowRunsCreateRequestFile.d.ts +1 -1
  108. package/api/types/ExtractAdvancedOptions.d.ts +1 -1
  109. package/api/types/ExtractAdvancedOptionsReviewAgent.d.ts +1 -1
  110. package/api/types/ExtractConfigJson.d.ts +1 -1
  111. package/api/types/ExtractOutputMetadataValue.d.ts +1 -1
  112. package/api/types/ExtractOverrideConfigJson.d.ts +1 -1
  113. package/api/types/ExtractRun.d.ts +10 -2
  114. package/api/types/ExtractorVersion.d.ts +6 -1
  115. package/api/types/LegacyClassificationAdvancedOptions.d.ts +1 -1
  116. package/api/types/LegacyClassificationConfig.d.ts +2 -2
  117. package/api/types/LegacyClassificationConfigBaseProcessor.d.ts +1 -1
  118. package/api/types/LegacyClassificationConfigBaseProcessor.js +1 -1
  119. package/api/types/LegacyDocumentProcessorRunCredits.d.ts +2 -2
  120. package/api/types/LegacyExtractionAdvancedOptions.d.ts +2 -2
  121. package/api/types/LegacyExtractionAdvancedOptionsReviewAgent.d.ts +1 -1
  122. package/api/types/LegacyExtractionConfig.d.ts +3 -3
  123. package/api/types/LegacyExtractionConfigBaseProcessor.d.ts +1 -1
  124. package/api/types/LegacyExtractionConfigBaseProcessor.js +1 -1
  125. package/api/types/LegacyJsonOutputMetadataValue.d.ts +1 -1
  126. package/api/types/LegacySplitterAdvancedOptions.d.ts +1 -1
  127. package/api/types/LegacySplitterConfig.d.ts +2 -2
  128. package/api/types/LegacySplitterConfigBaseProcessor.d.ts +1 -1
  129. package/api/types/LegacySplitterConfigBaseProcessor.js +1 -1
  130. package/api/types/ParseConfig.d.ts +3 -1
  131. package/api/types/ParseConfigTarget.d.ts +1 -1
  132. package/api/types/ParseConfigTarget.js +1 -1
  133. package/api/types/WebhookAdvancedOptions.d.ts +9 -0
  134. package/api/types/WebhookAdvancedOptions.js +3 -0
  135. package/api/types/WebhookEndpoint.d.ts +18 -0
  136. package/api/types/WebhookEndpoint.js +3 -0
  137. package/api/types/WebhookEndpointCreate.d.ts +27 -0
  138. package/api/types/WebhookEndpointCreate.js +3 -0
  139. package/api/types/WebhookEndpointEventType.d.ts +32 -0
  140. package/api/types/WebhookEndpointEventType.js +35 -0
  141. package/api/types/WebhookEndpointStatus.d.ts +6 -0
  142. package/api/types/WebhookEndpointStatus.js +9 -0
  143. package/api/types/WebhookPayloadFormat.d.ts +11 -0
  144. package/api/types/WebhookPayloadFormat.js +14 -0
  145. package/api/types/WebhookPayloadOptions.d.ts +9 -0
  146. package/api/types/WebhookPayloadOptions.js +3 -0
  147. package/api/types/WebhookSubscription.d.ts +15 -0
  148. package/api/types/WebhookSubscription.js +3 -0
  149. package/api/types/WebhookSubscriptionEventType.d.ts +23 -0
  150. package/api/types/WebhookSubscriptionEventType.js +26 -0
  151. package/api/types/WebhookSubscriptionResourceType.d.ts +8 -0
  152. package/api/types/WebhookSubscriptionResourceType.js +11 -0
  153. package/api/types/index.d.ts +10 -0
  154. package/api/types/index.js +10 -0
  155. package/package.json +1 -1
  156. package/reference.md +897 -40
  157. package/version.d.ts +1 -1
  158. package/version.js +1 -1
@@ -15,7 +15,7 @@ exports.ParseConfigTarget = void 0;
15
15
  * * Prefer `markdown` for most documents, multi-column reading order, and retrieval use cases
16
16
  * * Prefer `spatial` for messy/scanned/handwritten or skewed documents, when you need near 1:1 layout fidelity, or for BOL-like logistics docs
17
17
  *
18
- * See “Markdown vs Spatial” in the [Parse guide](https://docs.extend.ai/2026-02-09/developers/guides/parse#markdown-vs-spatial) for details.
18
+ * See “Markdown vs Spatial” in the [Parse guide](https://docs.extend.ai/2026-02-09/product/parsing/configuration-options#target-format) for details.
19
19
  */
20
20
  exports.ParseConfigTarget = {
21
21
  Markdown: "markdown",
@@ -0,0 +1,9 @@
1
+ import type * as Extend from "../index";
2
+ /**
3
+ * Advanced configuration options for the webhook endpoint, including custom headers and payload delivery settings.
4
+ */
5
+ export interface WebhookAdvancedOptions {
6
+ /** Custom HTTP headers to include in webhook requests. */
7
+ headers?: Record<string, string>;
8
+ payload?: Extend.WebhookPayloadOptions;
9
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,18 @@
1
+ import type * as Extend from "../index";
2
+ export interface WebhookEndpoint {
3
+ object: "webhook_endpoint";
4
+ /** Unique identifier for the webhook endpoint. */
5
+ id: string;
6
+ /** The URL that webhook events are sent to. */
7
+ url: string;
8
+ /** A human-readable name for the webhook endpoint. */
9
+ name: string;
10
+ status: Extend.WebhookEndpointStatus;
11
+ /** The list of event types this endpoint is subscribed to at the global level. These are events that are not scoped to a specific resource. */
12
+ enabledEvents: Extend.WebhookEndpointEventType[];
13
+ apiVersion: Extend.ApiVersionEnum;
14
+ /** Advanced configuration options for the webhook endpoint, including custom headers and payload delivery settings. */
15
+ advancedOptions: Extend.WebhookAdvancedOptions | null;
16
+ /** The date and time the webhook endpoint was created. */
17
+ createdAt: string;
18
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,27 @@
1
+ import type * as Extend from "../index";
2
+ /**
3
+ * The response when creating a webhook endpoint. Includes the `signingSecret`, which is only returned on creation and cannot be retrieved again.
4
+ */
5
+ export interface WebhookEndpointCreate {
6
+ object: "webhook_endpoint";
7
+ /** Unique identifier for the webhook endpoint. */
8
+ id: string;
9
+ /** The URL that webhook events are sent to. */
10
+ url: string;
11
+ /** A human-readable name for the webhook endpoint. */
12
+ name: string;
13
+ status: Extend.WebhookEndpointStatus;
14
+ /** The list of event types this endpoint is subscribed to at the global level. These are events that are not scoped to a specific resource. */
15
+ enabledEvents: Extend.WebhookEndpointEventType[];
16
+ apiVersion: Extend.ApiVersionEnum;
17
+ /** Advanced configuration options for the webhook endpoint, including custom headers and payload delivery settings. */
18
+ advancedOptions: Extend.WebhookAdvancedOptions | null;
19
+ /**
20
+ * The signing secret used to verify webhook payloads. This is only returned when creating the endpoint and cannot be retrieved again.
21
+ *
22
+ * Store it securely — you will need it to verify webhook signatures.
23
+ */
24
+ signingSecret: string;
25
+ /** The date and time the webhook endpoint was created. */
26
+ createdAt: string;
27
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,32 @@
1
+ /** Event types available for webhook endpoints at the global level. Includes run events and resource lifecycle events. */
2
+ export declare const WebhookEndpointEventType: {
3
+ readonly ParseRunProcessed: "parse_run.processed";
4
+ readonly ParseRunFailed: "parse_run.failed";
5
+ readonly EditRunProcessed: "edit_run.processed";
6
+ readonly EditRunFailed: "edit_run.failed";
7
+ readonly ExtractRunProcessed: "extract_run.processed";
8
+ readonly ExtractRunFailed: "extract_run.failed";
9
+ readonly ClassifyRunProcessed: "classify_run.processed";
10
+ readonly ClassifyRunFailed: "classify_run.failed";
11
+ readonly SplitRunProcessed: "split_run.processed";
12
+ readonly SplitRunFailed: "split_run.failed";
13
+ readonly ExtractorCreated: "extractor.created";
14
+ readonly ExtractorUpdated: "extractor.updated";
15
+ readonly ExtractorDeleted: "extractor.deleted";
16
+ readonly ExtractorDraftUpdated: "extractor.draft.updated";
17
+ readonly ExtractorVersionPublished: "extractor.version.published";
18
+ readonly ClassifierCreated: "classifier.created";
19
+ readonly ClassifierUpdated: "classifier.updated";
20
+ readonly ClassifierDeleted: "classifier.deleted";
21
+ readonly ClassifierDraftUpdated: "classifier.draft.updated";
22
+ readonly ClassifierVersionPublished: "classifier.version.published";
23
+ readonly SplitterCreated: "splitter.created";
24
+ readonly SplitterUpdated: "splitter.updated";
25
+ readonly SplitterDeleted: "splitter.deleted";
26
+ readonly SplitterDraftUpdated: "splitter.draft.updated";
27
+ readonly SplitterVersionPublished: "splitter.version.published";
28
+ readonly WorkflowCreated: "workflow.created";
29
+ readonly WorkflowDeployed: "workflow.deployed";
30
+ readonly WorkflowDeleted: "workflow.deleted";
31
+ };
32
+ export type WebhookEndpointEventType = (typeof WebhookEndpointEventType)[keyof typeof WebhookEndpointEventType] | string;
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.WebhookEndpointEventType = void 0;
5
+ /** Event types available for webhook endpoints at the global level. Includes run events and resource lifecycle events. */
6
+ exports.WebhookEndpointEventType = {
7
+ ParseRunProcessed: "parse_run.processed",
8
+ ParseRunFailed: "parse_run.failed",
9
+ EditRunProcessed: "edit_run.processed",
10
+ EditRunFailed: "edit_run.failed",
11
+ ExtractRunProcessed: "extract_run.processed",
12
+ ExtractRunFailed: "extract_run.failed",
13
+ ClassifyRunProcessed: "classify_run.processed",
14
+ ClassifyRunFailed: "classify_run.failed",
15
+ SplitRunProcessed: "split_run.processed",
16
+ SplitRunFailed: "split_run.failed",
17
+ ExtractorCreated: "extractor.created",
18
+ ExtractorUpdated: "extractor.updated",
19
+ ExtractorDeleted: "extractor.deleted",
20
+ ExtractorDraftUpdated: "extractor.draft.updated",
21
+ ExtractorVersionPublished: "extractor.version.published",
22
+ ClassifierCreated: "classifier.created",
23
+ ClassifierUpdated: "classifier.updated",
24
+ ClassifierDeleted: "classifier.deleted",
25
+ ClassifierDraftUpdated: "classifier.draft.updated",
26
+ ClassifierVersionPublished: "classifier.version.published",
27
+ SplitterCreated: "splitter.created",
28
+ SplitterUpdated: "splitter.updated",
29
+ SplitterDeleted: "splitter.deleted",
30
+ SplitterDraftUpdated: "splitter.draft.updated",
31
+ SplitterVersionPublished: "splitter.version.published",
32
+ WorkflowCreated: "workflow.created",
33
+ WorkflowDeployed: "workflow.deployed",
34
+ WorkflowDeleted: "workflow.deleted",
35
+ };
@@ -0,0 +1,6 @@
1
+ /** The status of the webhook endpoint. */
2
+ export declare const WebhookEndpointStatus: {
3
+ readonly Enabled: "enabled";
4
+ readonly Disabled: "disabled";
5
+ };
6
+ export type WebhookEndpointStatus = (typeof WebhookEndpointStatus)[keyof typeof WebhookEndpointStatus] | string;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.WebhookEndpointStatus = void 0;
5
+ /** The status of the webhook endpoint. */
6
+ exports.WebhookEndpointStatus = {
7
+ Enabled: "enabled",
8
+ Disabled: "disabled",
9
+ };
@@ -0,0 +1,11 @@
1
+ /**
2
+ * The format used to deliver webhook payloads.
3
+ *
4
+ * - `json` — the full payload is sent inline in the webhook request body.
5
+ * - `url` — large payloads are replaced with a signed download URL.
6
+ */
7
+ export declare const WebhookPayloadFormat: {
8
+ readonly Json: "json";
9
+ readonly Url: "url";
10
+ };
11
+ export type WebhookPayloadFormat = (typeof WebhookPayloadFormat)[keyof typeof WebhookPayloadFormat] | string;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.WebhookPayloadFormat = void 0;
5
+ /**
6
+ * The format used to deliver webhook payloads.
7
+ *
8
+ * - `json` — the full payload is sent inline in the webhook request body.
9
+ * - `url` — large payloads are replaced with a signed download URL.
10
+ */
11
+ exports.WebhookPayloadFormat = {
12
+ Json: "json",
13
+ Url: "url",
14
+ };
@@ -0,0 +1,9 @@
1
+ import type * as Extend from "../index";
2
+ /**
3
+ * Configuration for how webhook payloads are delivered.
4
+ */
5
+ export interface WebhookPayloadOptions {
6
+ format: Extend.WebhookPayloadFormat;
7
+ /** When `format` is `url`, payloads larger than this threshold (in bytes) are delivered as a signed download URL instead of inline JSON. Only applicable when `format` is `url`. */
8
+ urlThresholdBytes?: number;
9
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,15 @@
1
+ import type * as Extend from "../index";
2
+ export interface WebhookSubscription {
3
+ object: "webhook_subscription";
4
+ /** Unique identifier for the webhook subscription. */
5
+ id: string;
6
+ /** The ID of the webhook endpoint this subscription belongs to. */
7
+ webhookEndpointId: string;
8
+ resourceType: Extend.WebhookSubscriptionResourceType;
9
+ /** The ID of the resource this subscription is scoped to (e.g., an extractor, classifier, splitter, or workflow). */
10
+ resourceId: string;
11
+ /** The list of event types this subscription is subscribed to. The valid event types depend on the `resourceType`. */
12
+ enabledEvents: Extend.WebhookSubscriptionEventType[];
13
+ /** The date and time the webhook subscription was created. */
14
+ createdAt: string;
15
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Event types available for resource-scoped webhook subscriptions. The valid subset depends on the `resourceType`:
3
+ *
4
+ * - **extractor**: `extract_run.processed`, `extract_run.failed`
5
+ * - **classifier**: `classify_run.processed`, `classify_run.failed`
6
+ * - **splitter**: `split_run.processed`, `split_run.failed`
7
+ * - **workflow**: `workflow_run.completed`, `workflow_run.failed`, `workflow_run.needs_review`, `workflow_run.rejected`, `workflow_run.cancelled`, `workflow_run.step_run.processed`
8
+ */
9
+ export declare const WebhookSubscriptionEventType: {
10
+ readonly ExtractRunProcessed: "extract_run.processed";
11
+ readonly ExtractRunFailed: "extract_run.failed";
12
+ readonly ClassifyRunProcessed: "classify_run.processed";
13
+ readonly ClassifyRunFailed: "classify_run.failed";
14
+ readonly SplitRunProcessed: "split_run.processed";
15
+ readonly SplitRunFailed: "split_run.failed";
16
+ readonly WorkflowRunCompleted: "workflow_run.completed";
17
+ readonly WorkflowRunFailed: "workflow_run.failed";
18
+ readonly WorkflowRunNeedsReview: "workflow_run.needs_review";
19
+ readonly WorkflowRunRejected: "workflow_run.rejected";
20
+ readonly WorkflowRunCancelled: "workflow_run.cancelled";
21
+ readonly WorkflowRunStepRunProcessed: "workflow_run.step_run.processed";
22
+ };
23
+ export type WebhookSubscriptionEventType = (typeof WebhookSubscriptionEventType)[keyof typeof WebhookSubscriptionEventType] | string;
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.WebhookSubscriptionEventType = void 0;
5
+ /**
6
+ * Event types available for resource-scoped webhook subscriptions. The valid subset depends on the `resourceType`:
7
+ *
8
+ * - **extractor**: `extract_run.processed`, `extract_run.failed`
9
+ * - **classifier**: `classify_run.processed`, `classify_run.failed`
10
+ * - **splitter**: `split_run.processed`, `split_run.failed`
11
+ * - **workflow**: `workflow_run.completed`, `workflow_run.failed`, `workflow_run.needs_review`, `workflow_run.rejected`, `workflow_run.cancelled`, `workflow_run.step_run.processed`
12
+ */
13
+ exports.WebhookSubscriptionEventType = {
14
+ ExtractRunProcessed: "extract_run.processed",
15
+ ExtractRunFailed: "extract_run.failed",
16
+ ClassifyRunProcessed: "classify_run.processed",
17
+ ClassifyRunFailed: "classify_run.failed",
18
+ SplitRunProcessed: "split_run.processed",
19
+ SplitRunFailed: "split_run.failed",
20
+ WorkflowRunCompleted: "workflow_run.completed",
21
+ WorkflowRunFailed: "workflow_run.failed",
22
+ WorkflowRunNeedsReview: "workflow_run.needs_review",
23
+ WorkflowRunRejected: "workflow_run.rejected",
24
+ WorkflowRunCancelled: "workflow_run.cancelled",
25
+ WorkflowRunStepRunProcessed: "workflow_run.step_run.processed",
26
+ };
@@ -0,0 +1,8 @@
1
+ /** The type of resource the webhook subscription is for. */
2
+ export declare const WebhookSubscriptionResourceType: {
3
+ readonly Extractor: "extractor";
4
+ readonly Classifier: "classifier";
5
+ readonly Splitter: "splitter";
6
+ readonly Workflow: "workflow";
7
+ };
8
+ export type WebhookSubscriptionResourceType = (typeof WebhookSubscriptionResourceType)[keyof typeof WebhookSubscriptionResourceType] | string;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.WebhookSubscriptionResourceType = void 0;
5
+ /** The type of resource the webhook subscription is for. */
6
+ exports.WebhookSubscriptionResourceType = {
7
+ Extractor: "extractor",
8
+ Classifier: "classifier",
9
+ Splitter: "splitter",
10
+ Workflow: "workflow",
11
+ };
@@ -312,7 +312,17 @@ export * from "./TableDetails";
312
312
  export * from "./TooManyRequestsErrorBody";
313
313
  export * from "./UpdatedAt";
314
314
  export * from "./VersionDescription";
315
+ export * from "./WebhookAdvancedOptions";
316
+ export * from "./WebhookEndpoint";
317
+ export * from "./WebhookEndpointCreate";
318
+ export * from "./WebhookEndpointEventType";
319
+ export * from "./WebhookEndpointStatus";
315
320
  export * from "./WebhookEvent";
321
+ export * from "./WebhookPayloadFormat";
322
+ export * from "./WebhookPayloadOptions";
323
+ export * from "./WebhookSubscription";
324
+ export * from "./WebhookSubscriptionEventType";
325
+ export * from "./WebhookSubscriptionResourceType";
316
326
  export * from "./Workflow";
317
327
  export * from "./WorkflowCreatedWebhookEvent";
318
328
  export * from "./WorkflowDeletedWebhookEvent";
@@ -328,7 +328,17 @@ __exportStar(require("./TableDetails"), exports);
328
328
  __exportStar(require("./TooManyRequestsErrorBody"), exports);
329
329
  __exportStar(require("./UpdatedAt"), exports);
330
330
  __exportStar(require("./VersionDescription"), exports);
331
+ __exportStar(require("./WebhookAdvancedOptions"), exports);
332
+ __exportStar(require("./WebhookEndpoint"), exports);
333
+ __exportStar(require("./WebhookEndpointCreate"), exports);
334
+ __exportStar(require("./WebhookEndpointEventType"), exports);
335
+ __exportStar(require("./WebhookEndpointStatus"), exports);
331
336
  __exportStar(require("./WebhookEvent"), exports);
337
+ __exportStar(require("./WebhookPayloadFormat"), exports);
338
+ __exportStar(require("./WebhookPayloadOptions"), exports);
339
+ __exportStar(require("./WebhookSubscription"), exports);
340
+ __exportStar(require("./WebhookSubscriptionEventType"), exports);
341
+ __exportStar(require("./WebhookSubscriptionResourceType"), exports);
332
342
  __exportStar(require("./Workflow"), exports);
333
343
  __exportStar(require("./WorkflowCreatedWebhookEvent"), exports);
334
344
  __exportStar(require("./WorkflowDeletedWebhookEvent"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "extend-ai",
3
- "version": "1.1.0",
3
+ "version": "1.3.0",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",