@complyforce/api 1.5.0 → 1.6.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.
package/cjs/sdk.gen.js CHANGED
@@ -71,7 +71,8 @@ class ComplyforceApi extends HeyApiClient {
71
71
  * "uuid": "d5c0c97f-4f80-4a27-8c1c-0e5a4d4ad00",
72
72
  * "scanType": "single",
73
73
  * "scanFeaturesRequested": [
74
- * "browseAgentVisionAi"
74
+ * "browseAgentVisionAi",
75
+ * "orderPreparationUrlsEnrichment"
75
76
  * ],
76
77
  * "scanDomain": "shop.example.com",
77
78
  * "scanUrlsRequested": [
@@ -123,7 +124,8 @@ class ComplyforceApi extends HeyApiClient {
123
124
  * "scanType": "multiple",
124
125
  * "scanFeaturesRequested": [
125
126
  * "browseAgentVisionAi",
126
- * "informationObligationAgentLlmAi"
127
+ * "informationObligationAgentLlmAi",
128
+ * "orderPreparationUrlsEnrichment"
127
129
  * ],
128
130
  * "scanDomain": "shop.example.com",
129
131
  * "scanUrlsRequested": [
@@ -174,7 +176,8 @@ class ComplyforceApi extends HeyApiClient {
174
176
  * "uuid": "d5c0c97f-4f82-4a27-8c1c-0e5a4d4ad02",
175
177
  * "scanType": "mostRelevant",
176
178
  * "scanFeaturesRequested": [
177
- * "informationObligationAgentLlmAi"
179
+ * "informationObligationAgentLlmAi",
180
+ * "orderPreparationUrlsEnrichment"
178
181
  * ],
179
182
  * "scanDomain": "newsroom.example.com",
180
183
  * "scanUrlsRequested": [],
@@ -198,7 +201,9 @@ class ComplyforceApi extends HeyApiClient {
198
201
  *
199
202
  * <details>
200
203
  * <summary>All pages scan</summary>
201
- * <p>Finds all pages of one website based on the website's sitemap and scans them. Provides a complete view of the website.</p>
204
+ * <p>Finds all pages of one website based on the website's sitemap and scans them. Provides a complete view of the website. Fallbacks to home page menu extraction and search index data (if additional feature is allowed to use), if no sitemap exists.
205
+ *
206
+ * `scanUrlsLimit` define the maximum pages to scan (default: `500`). You can overwrite the limit to up to `10000`. If the number of pages found is exceeded, the order will be canceled and scanning will not be billed (costs for additional features may still apply).</p>
202
207
  *
203
208
  * **Request**
204
209
  * ```json
@@ -208,6 +213,7 @@ class ComplyforceApi extends HeyApiClient {
208
213
  * "scanUrlsRequested": [
209
214
  * "careers.example.com"
210
215
  * ],
216
+ * "scanUrlsLimit": 1000,
211
217
  * "channel": {
212
218
  * "uuid": "b5c03f6a-8fa8-4c24-8ec8-2d0f3388f4f1"
213
219
  * }
@@ -224,10 +230,12 @@ class ComplyforceApi extends HeyApiClient {
224
230
  * "scanFeaturesRequested": [
225
231
  * "browseAgentVisionAi",
226
232
  * "consentComplianceAgent",
227
- * "archivingAgent"
233
+ * "archivingAgent",
234
+ * "orderPreparationUrlsEnrichment"
228
235
  * ],
229
236
  * "scanDomain": "careers.example.com",
230
237
  * "scanUrlsRequested": [],
238
+ * "scanUrlsLimit": 1000,
231
239
  * "scanPriority": 50,
232
240
  * "status": "created",
233
241
  * "createdAt": "2025-01-01T12:03:00.000Z",
@@ -248,7 +256,7 @@ class ComplyforceApi extends HeyApiClient {
248
256
  */
249
257
  postOrder(options) {
250
258
  var _a;
251
- return ((_a = options.client) !== null && _a !== void 0 ? _a : this.client).post(Object.assign(Object.assign({ security: [{ name: 'x-api-key', type: 'apiKey' }], url: '/order' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options.headers) }));
259
+ return ((_a = options.client) !== null && _a !== void 0 ? _a : this.client).post(Object.assign(Object.assign({ security: [{ name: 'x-api-key', type: 'apiKey' }, { name: 'x-api-key', type: 'apiKey' }], url: '/order' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options.headers) }));
252
260
  }
253
261
  /**
254
262
  * Get order progress
package/esm/sdk.gen.js CHANGED
@@ -68,7 +68,8 @@ export class ComplyforceApi extends HeyApiClient {
68
68
  * "uuid": "d5c0c97f-4f80-4a27-8c1c-0e5a4d4ad00",
69
69
  * "scanType": "single",
70
70
  * "scanFeaturesRequested": [
71
- * "browseAgentVisionAi"
71
+ * "browseAgentVisionAi",
72
+ * "orderPreparationUrlsEnrichment"
72
73
  * ],
73
74
  * "scanDomain": "shop.example.com",
74
75
  * "scanUrlsRequested": [
@@ -120,7 +121,8 @@ export class ComplyforceApi extends HeyApiClient {
120
121
  * "scanType": "multiple",
121
122
  * "scanFeaturesRequested": [
122
123
  * "browseAgentVisionAi",
123
- * "informationObligationAgentLlmAi"
124
+ * "informationObligationAgentLlmAi",
125
+ * "orderPreparationUrlsEnrichment"
124
126
  * ],
125
127
  * "scanDomain": "shop.example.com",
126
128
  * "scanUrlsRequested": [
@@ -171,7 +173,8 @@ export class ComplyforceApi extends HeyApiClient {
171
173
  * "uuid": "d5c0c97f-4f82-4a27-8c1c-0e5a4d4ad02",
172
174
  * "scanType": "mostRelevant",
173
175
  * "scanFeaturesRequested": [
174
- * "informationObligationAgentLlmAi"
176
+ * "informationObligationAgentLlmAi",
177
+ * "orderPreparationUrlsEnrichment"
175
178
  * ],
176
179
  * "scanDomain": "newsroom.example.com",
177
180
  * "scanUrlsRequested": [],
@@ -195,7 +198,9 @@ export class ComplyforceApi extends HeyApiClient {
195
198
  *
196
199
  * <details>
197
200
  * <summary>All pages scan</summary>
198
- * <p>Finds all pages of one website based on the website's sitemap and scans them. Provides a complete view of the website.</p>
201
+ * <p>Finds all pages of one website based on the website's sitemap and scans them. Provides a complete view of the website. Fallbacks to home page menu extraction and search index data (if additional feature is allowed to use), if no sitemap exists.
202
+ *
203
+ * `scanUrlsLimit` define the maximum pages to scan (default: `500`). You can overwrite the limit to up to `10000`. If the number of pages found is exceeded, the order will be canceled and scanning will not be billed (costs for additional features may still apply).</p>
199
204
  *
200
205
  * **Request**
201
206
  * ```json
@@ -205,6 +210,7 @@ export class ComplyforceApi extends HeyApiClient {
205
210
  * "scanUrlsRequested": [
206
211
  * "careers.example.com"
207
212
  * ],
213
+ * "scanUrlsLimit": 1000,
208
214
  * "channel": {
209
215
  * "uuid": "b5c03f6a-8fa8-4c24-8ec8-2d0f3388f4f1"
210
216
  * }
@@ -221,10 +227,12 @@ export class ComplyforceApi extends HeyApiClient {
221
227
  * "scanFeaturesRequested": [
222
228
  * "browseAgentVisionAi",
223
229
  * "consentComplianceAgent",
224
- * "archivingAgent"
230
+ * "archivingAgent",
231
+ * "orderPreparationUrlsEnrichment"
225
232
  * ],
226
233
  * "scanDomain": "careers.example.com",
227
234
  * "scanUrlsRequested": [],
235
+ * "scanUrlsLimit": 1000,
228
236
  * "scanPriority": 50,
229
237
  * "status": "created",
230
238
  * "createdAt": "2025-01-01T12:03:00.000Z",
@@ -245,7 +253,7 @@ export class ComplyforceApi extends HeyApiClient {
245
253
  */
246
254
  postOrder(options) {
247
255
  var _a;
248
- return ((_a = options.client) !== null && _a !== void 0 ? _a : this.client).post(Object.assign(Object.assign({ security: [{ name: 'x-api-key', type: 'apiKey' }], url: '/order' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options.headers) }));
256
+ return ((_a = options.client) !== null && _a !== void 0 ? _a : this.client).post(Object.assign(Object.assign({ security: [{ name: 'x-api-key', type: 'apiKey' }, { name: 'x-api-key', type: 'apiKey' }], url: '/order' }, options), { headers: Object.assign({ 'Content-Type': 'application/json' }, options.headers) }));
249
257
  }
250
258
  /**
251
259
  * Get order progress
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@complyforce/api",
3
- "version": "1.5.0",
3
+ "version": "1.6.0",
4
4
  "description": "TypeScript client for the Complyforce API",
5
- "digestMd5": "8efa162e0743b59282437e38e5dba3c5",
5
+ "digestMd5": "3365fcce1c1cd9a13ed02d345612f8f3",
6
6
  "type": "module",
7
7
  "main": "cjs/index.cjs.js",
8
8
  "module": "esm/index.js",
@@ -69,7 +69,8 @@ export declare class ComplyforceApi extends HeyApiClient {
69
69
  * "uuid": "d5c0c97f-4f80-4a27-8c1c-0e5a4d4ad00",
70
70
  * "scanType": "single",
71
71
  * "scanFeaturesRequested": [
72
- * "browseAgentVisionAi"
72
+ * "browseAgentVisionAi",
73
+ * "orderPreparationUrlsEnrichment"
73
74
  * ],
74
75
  * "scanDomain": "shop.example.com",
75
76
  * "scanUrlsRequested": [
@@ -121,7 +122,8 @@ export declare class ComplyforceApi extends HeyApiClient {
121
122
  * "scanType": "multiple",
122
123
  * "scanFeaturesRequested": [
123
124
  * "browseAgentVisionAi",
124
- * "informationObligationAgentLlmAi"
125
+ * "informationObligationAgentLlmAi",
126
+ * "orderPreparationUrlsEnrichment"
125
127
  * ],
126
128
  * "scanDomain": "shop.example.com",
127
129
  * "scanUrlsRequested": [
@@ -172,7 +174,8 @@ export declare class ComplyforceApi extends HeyApiClient {
172
174
  * "uuid": "d5c0c97f-4f82-4a27-8c1c-0e5a4d4ad02",
173
175
  * "scanType": "mostRelevant",
174
176
  * "scanFeaturesRequested": [
175
- * "informationObligationAgentLlmAi"
177
+ * "informationObligationAgentLlmAi",
178
+ * "orderPreparationUrlsEnrichment"
176
179
  * ],
177
180
  * "scanDomain": "newsroom.example.com",
178
181
  * "scanUrlsRequested": [],
@@ -196,7 +199,9 @@ export declare class ComplyforceApi extends HeyApiClient {
196
199
  *
197
200
  * <details>
198
201
  * <summary>All pages scan</summary>
199
- * <p>Finds all pages of one website based on the website's sitemap and scans them. Provides a complete view of the website.</p>
202
+ * <p>Finds all pages of one website based on the website's sitemap and scans them. Provides a complete view of the website. Fallbacks to home page menu extraction and search index data (if additional feature is allowed to use), if no sitemap exists.
203
+ *
204
+ * `scanUrlsLimit` define the maximum pages to scan (default: `500`). You can overwrite the limit to up to `10000`. If the number of pages found is exceeded, the order will be canceled and scanning will not be billed (costs for additional features may still apply).</p>
200
205
  *
201
206
  * **Request**
202
207
  * ```json
@@ -206,6 +211,7 @@ export declare class ComplyforceApi extends HeyApiClient {
206
211
  * "scanUrlsRequested": [
207
212
  * "careers.example.com"
208
213
  * ],
214
+ * "scanUrlsLimit": 1000,
209
215
  * "channel": {
210
216
  * "uuid": "b5c03f6a-8fa8-4c24-8ec8-2d0f3388f4f1"
211
217
  * }
@@ -222,10 +228,12 @@ export declare class ComplyforceApi extends HeyApiClient {
222
228
  * "scanFeaturesRequested": [
223
229
  * "browseAgentVisionAi",
224
230
  * "consentComplianceAgent",
225
- * "archivingAgent"
231
+ * "archivingAgent",
232
+ * "orderPreparationUrlsEnrichment"
226
233
  * ],
227
234
  * "scanDomain": "careers.example.com",
228
235
  * "scanUrlsRequested": [],
236
+ * "scanUrlsLimit": 1000,
229
237
  * "scanPriority": 50,
230
238
  * "status": "created",
231
239
  * "createdAt": "2025-01-01T12:03:00.000Z",
@@ -7,14 +7,18 @@ export type ClientOptions = {
7
7
  export type OrderGetResponse = {
8
8
  uuid: string;
9
9
  scanType: 'single' | 'multiple' | 'mostRelevant' | 'all';
10
- scanFeaturesRequested: Array<'browseAgentVisionAi' | 'informationObligationAgentLlmAi' | 'consentComplianceAgent' | 'archivingAgent'>;
10
+ scanFeaturesRequested: Array<'orderPreparationUrlsEnrichment' | 'browseAgentVisionAi' | 'informationObligationAgentLlmAi' | 'consentComplianceAgent' | 'archivingAgent'>;
11
11
  scanDomain: string;
12
12
  /**
13
13
  * Array of URLs to scan. Duplicate URLs are automatically removed when multiple URLs are provided.
14
14
  */
15
15
  scanUrlsRequested: Array<string>;
16
+ /**
17
+ * Maximum number of URLs/pages to scan for all-pages scans (default: 500, max: 10000).
18
+ */
19
+ scanUrlsLimit?: number;
16
20
  scanPriority: number;
17
- scanFeaturesExecuted?: Array<'browseAgentVisionAi' | 'informationObligationAgentLlmAi' | 'consentComplianceAgent' | 'archivingAgent'>;
21
+ scanFeaturesExecuted?: Array<'orderPreparationUrlsEnrichment' | 'browseAgentVisionAi' | 'informationObligationAgentLlmAi' | 'consentComplianceAgent' | 'archivingAgent'>;
18
22
  scanUrlsExecuted?: Array<string>;
19
23
  status: 'created' | 'preparing' | 'prepared' | 'queued' | 'crawling' | 'crawled' | 'processing' | 'processed' | 'reportGenerating' | 'reportGenerated' | 'reportDeliveryToWebookQueued' | 'completed' | 'completedPartially' | 'error';
20
24
  reportAvailability: 'pending' | 'available' | 'deleted';
@@ -71,12 +75,16 @@ export type OrderGetResponse = {
71
75
  export type OrderPosted = {
72
76
  uuid: string;
73
77
  scanType: 'single' | 'multiple' | 'mostRelevant' | 'all';
74
- scanFeaturesRequested: Array<'browseAgentVisionAi' | 'informationObligationAgentLlmAi' | 'consentComplianceAgent' | 'archivingAgent'>;
78
+ scanFeaturesRequested: Array<'orderPreparationUrlsEnrichment' | 'browseAgentVisionAi' | 'informationObligationAgentLlmAi' | 'consentComplianceAgent' | 'archivingAgent'>;
75
79
  scanDomain: string;
76
80
  /**
77
81
  * Array of URLs to scan. Duplicate URLs are automatically removed when multiple URLs are provided.
78
82
  */
79
83
  scanUrlsRequested: Array<string>;
84
+ /**
85
+ * Maximum number of URLs/pages to scan for all-pages scans (default: 500, max: 10000).
86
+ */
87
+ scanUrlsLimit?: number;
80
88
  scanPriority: number;
81
89
  status: 'created' | 'preparing' | 'prepared' | 'queued' | 'crawling' | 'crawled' | 'processing' | 'processed' | 'reportGenerating' | 'reportGenerated' | 'reportDeliveryToWebookQueued' | 'completed' | 'completedPartially' | 'error';
82
90
  createdAt?: string;
@@ -99,6 +107,10 @@ export type OrderCreate = {
99
107
  * Array of URLs to scan. Duplicate URLs are automatically removed when multiple URLs are provided.
100
108
  */
101
109
  scanUrlsRequested: Array<string>;
110
+ /**
111
+ * Maximum number of URLs/pages to scan for all-pages scans (default: 500, max: 10000).
112
+ */
113
+ scanUrlsLimit?: number;
102
114
  channel: {
103
115
  uuid: string;
104
116
  };
@@ -203,8 +215,40 @@ export type PostOrderData = {
203
215
  url: '/order';
204
216
  };
205
217
  export type PostOrderErrors = {
206
- 401: null;
207
- 403: null;
218
+ /**
219
+ * API key is invalid
220
+ */
221
+ 401: Array<{
222
+ code: string;
223
+ message: string;
224
+ description?: string;
225
+ entityName?: string;
226
+ fieldName?: string;
227
+ index?: number;
228
+ data?: {
229
+ [key: string]: unknown;
230
+ };
231
+ } | {
232
+ code: 'InvalidApiKey';
233
+ message: string;
234
+ }>;
235
+ /**
236
+ * Vendor has no signed main contract
237
+ */
238
+ 403: Array<{
239
+ code: string;
240
+ message: string;
241
+ description?: string;
242
+ entityName?: string;
243
+ fieldName?: string;
244
+ index?: number;
245
+ data?: {
246
+ [key: string]: unknown;
247
+ };
248
+ } | {
249
+ code: 'VendorMainContractNotSigned';
250
+ message: string;
251
+ }>;
208
252
  default: Array<{
209
253
  code: string;
210
254
  message: string;
@@ -263,8 +307,20 @@ export type DeleteOrderReportData = {
263
307
  url: '/order/report';
264
308
  };
265
309
  export type DeleteOrderReportErrors = {
266
- 401: null;
267
- 403: null;
310
+ 401: Array<{
311
+ code: string;
312
+ message: string;
313
+ description?: string;
314
+ entityName?: string;
315
+ fieldName?: string;
316
+ index?: number;
317
+ data?: {
318
+ [key: string]: unknown;
319
+ };
320
+ } | {
321
+ code: 'InvalidApiKey';
322
+ message: string;
323
+ }>;
268
324
  default: Array<{
269
325
  code: string;
270
326
  message: string;
@@ -323,8 +379,20 @@ export type GetVendorApiKeyValidateData = {
323
379
  url: '/vendor/api-key/validate';
324
380
  };
325
381
  export type GetVendorApiKeyValidateErrors = {
326
- 401: null;
327
- 403: null;
382
+ 401: Array<{
383
+ code: string;
384
+ message: string;
385
+ description?: string;
386
+ entityName?: string;
387
+ fieldName?: string;
388
+ index?: number;
389
+ data?: {
390
+ [key: string]: unknown;
391
+ };
392
+ } | {
393
+ code: 'InvalidApiKey';
394
+ message: string;
395
+ }>;
328
396
  default: Array<{
329
397
  code: string;
330
398
  message: string;