@algolia/n8n-nodes-algolia 0.6.0 → 0.7.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.
@@ -2,7 +2,7 @@
2
2
  "openapi": "3.0.2",
3
3
  "info": {
4
4
  "title": "Insights API",
5
- "description": "The Insights API lets you collect events related to your search and discovery experience.\nEvents represent user interactions with your app or website.\nThey unlock powerful features, such as recommendations, personalization, smarter search results,\nand analytics that help you optimize your user experience.\n\n## Client libraries\n\nUse Algolia's API clients, libraries, and integrations to collect events from your UI and send them to the Insights API.\nSee: [Algolia's ecosystem](https://www.algolia.com/doc/guides/getting-started/how-algolia-works/in-depth/ecosystem/).\n\n## Base URLs\n\nThe base URLs for making requests to the Insights API are:\n\n- `https://insights.us.algolia.io`\n- `https://insights.de.algolia.io`\n- `https//insights.algolia.io` (routes requests to the closest of the above servers, based on your geographical location)\n\n**All requests must use HTTPS.**\n\n## Authentication\n\nTo authenticate your API requests, add these headers:\n\n- `x-algolia-application-id`. Your Algolia application ID.\n- `x-algolia-api-key`. An API key with the necessary permissions to make the request.\n The required access control list (ACL) to make a request is listed in each endpoint's reference.\n\nYou can find your application ID and API key in the [Algolia dashboard](https://dashboard.algolia.com/account).\n\n## Request format\n\nRequest bodies must be JSON objects.\n\n## Response status and errors\n\nResponse bodies are JSON objects.\nDeleting a user token returns an empty response body with rate-limiting information as headers.\n\nSuccessful responses return a `2xx` status. Client errors return a `4xx` status. Server errors are indicated by a `5xx` status.\nError responses have a `message` property with more information.\n\nThe Insights API doesn't validate if the event parameters such as `indexName`, `objectIDs`, or `userToken`,\ncorrespond to anything in the Search API. It just checks if they're formatted correctly.\nCheck the [Events](https://dashboard.algolia.com/events/health) health section,\nwhether your events can be used for Algolia features such as Analytics, or Dynamic Re-Ranking.\n\n## Version\n\nThe current version of the Insights API is version 1, as indicated by the `/1/` in each endpoint's URL.\n",
5
+ "description": "The Insights API lets you collect events related to your search and discovery experience.\nEvents represent user interactions with your app or website.\nThey unlock powerful features, such as recommendations, personalization, smarter search results,\nand analytics that help you optimize your user experience.\n\n## Client libraries\n\nUse Algolia's API clients, libraries, and integrations to collect events from your UI and send them to the Insights API.\nSee: [Algolia's ecosystem](https://www.algolia.com/doc/guides/getting-started/how-algolia-works/in-depth/ecosystem).\n\n## Base URLs\n\nThe base URLs for making requests to the Insights API are:\n\n- `https://insights.us.algolia.io`\n- `https://insights.de.algolia.io`\n- `https//insights.algolia.io` (routes requests to the closest of the above servers, based on your geographical location)\n\n**All requests must use HTTPS.**\n\n## Authentication\n\nTo authenticate your API requests, add these headers:\n\n- `x-algolia-application-id`. Your Algolia application ID.\n- `x-algolia-api-key`. An API key with the necessary permissions to make the request.\n The required access control list (ACL) to make a request is listed in each endpoint's reference.\n\nYou can find your application ID and API key in the [Algolia dashboard](https://dashboard.algolia.com/account).\n\n## Request format\n\nRequest bodies must be JSON objects.\n\n## Response status and errors\n\nResponse bodies are JSON objects.\nDeleting a user token returns an empty response body with rate-limiting information as headers.\n\nSuccessful responses return a `2xx` status. Client errors return a `4xx` status. Server errors are indicated by a `5xx` status.\nError responses have a `message` property with more information.\n\nThe Insights API doesn't validate if the event parameters such as `indexName`, `objectIDs`, or `userToken`,\ncorrespond to anything in the Search API. It just checks if they're formatted correctly.\nCheck the [Events](https://dashboard.algolia.com/events/health) health section,\nwhether your events can be used for Algolia features such as Analytics, or Dynamic Re-Ranking.\n\n## Version\n\nThe current version of the Insights API is version 1, as indicated by the `/1/` in each endpoint's URL.\n",
6
6
  "version": "1.0.0"
7
7
  },
8
8
  "servers": [
@@ -11,10 +11,7 @@
11
11
  "variables": {
12
12
  "region": {
13
13
  "description": "The region where your Algolia application is hosted.",
14
- "enum": [
15
- "us",
16
- "de"
17
- ],
14
+ "enum": ["us", "de"],
18
15
  "default": "us"
19
16
  }
20
17
  }
@@ -42,7 +39,7 @@
42
39
  }
43
40
  ],
44
41
  "externalDocs": {
45
- "url": "https://www.algolia.com/doc/guides/sending-events/getting-started/",
42
+ "url": "https://www.algolia.com/doc/guides/sending-events/getting-started",
46
43
  "description": "Events"
47
44
  },
48
45
  "paths": {
@@ -218,14 +215,10 @@
218
215
  },
219
216
  "/1/events": {
220
217
  "post": {
221
- "tags": [
222
- "events"
223
- ],
218
+ "tags": ["events"],
224
219
  "operationId": "pushEvents",
225
220
  "summary": "Send events",
226
- "x-acl": [
227
- "search"
228
- ],
221
+ "x-acl": ["search"],
229
222
  "description": "Sends a list of events to the Insights API.\n\nYou can include up to 1,000 events in a single request,\nbut the request body must be smaller than 2 MB.\n",
230
223
  "requestBody": {
231
224
  "required": true,
@@ -235,9 +228,7 @@
235
228
  "title": "insightsEvents",
236
229
  "type": "object",
237
230
  "additionalProperties": false,
238
- "required": [
239
- "events"
240
- ],
231
+ "required": ["events"],
241
232
  "properties": {
242
233
  "events": {
243
234
  "type": "array",
@@ -261,12 +252,8 @@
261
252
  "index": "test-index",
262
253
  "userToken": "anonymous-user-1",
263
254
  "authenticatedUserToken": "user-1",
264
- "objectIDs": [
265
- "object-1"
266
- ],
267
- "positions": [
268
- 1
269
- ],
255
+ "objectIDs": ["object-1"],
256
+ "positions": [1],
270
257
  "queryID": "7dfe2ada7bca48bdd0629649df0bee07"
271
258
  }
272
259
  ]
@@ -282,9 +269,7 @@
282
269
  "index": "test-index",
283
270
  "userToken": "anonymous-user-1",
284
271
  "authenticatedUserToken": "user-1",
285
- "objectIDs": [
286
- "article-1"
287
- ],
272
+ "objectIDs": ["article-1"],
288
273
  "queryID": "7dfe2ada7bca48bdd0629649df0bee07"
289
274
  }
290
275
  ]
@@ -301,9 +286,7 @@
301
286
  "index": "test-index",
302
287
  "userToken": "anonymous-user-1",
303
288
  "authenticatedUserToken": "user-1",
304
- "objectIDs": [
305
- "product-1"
306
- ],
289
+ "objectIDs": ["product-1"],
307
290
  "objectData": [
308
291
  {
309
292
  "price": 50,
@@ -327,10 +310,7 @@
327
310
  "index": "test-index",
328
311
  "userToken": "anonymous-user-1",
329
312
  "authenticatedUserToken": "user-1",
330
- "objectIDs": [
331
- "product-1",
332
- "product-2"
333
- ],
313
+ "objectIDs": ["product-1", "product-2"],
334
314
  "objectData": [
335
315
  {
336
316
  "price": 49.99,
@@ -361,9 +341,7 @@
361
341
  "index": "test-index",
362
342
  "userToken": "anonymous-user-1",
363
343
  "authenticatedUserToken": "user-1",
364
- "objectIDs": [
365
- "object-1"
366
- ]
344
+ "objectIDs": ["object-1"]
367
345
  }
368
346
  ]
369
347
  }
@@ -378,9 +356,7 @@
378
356
  "index": "test-index",
379
357
  "userToken": "anonymous-user-1",
380
358
  "authenticatedUserToken": "user-1",
381
- "objectIDs": [
382
- "object-1"
383
- ]
359
+ "objectIDs": ["object-1"]
384
360
  }
385
361
  ]
386
362
  }
@@ -396,9 +372,7 @@
396
372
  "index": "test-index",
397
373
  "userToken": "anonymous-user-1",
398
374
  "authenticatedUserToken": "user-1",
399
- "objectIDs": [
400
- "product-1"
401
- ],
375
+ "objectIDs": ["product-1"],
402
376
  "objectData": [
403
377
  {
404
378
  "price": 19.99,
@@ -421,10 +395,7 @@
421
395
  "index": "test-index",
422
396
  "userToken": "anonymous-user-1",
423
397
  "authenticatedUserToken": "user-1",
424
- "objectIDs": [
425
- "product-1",
426
- "product-2"
427
- ],
398
+ "objectIDs": ["product-1", "product-2"],
428
399
  "objectData": [
429
400
  {
430
401
  "price": 49.99,
@@ -451,9 +422,7 @@
451
422
  "index": "test-index",
452
423
  "userToken": "anonymous-user-1",
453
424
  "authenticatedUserToken": "user-1",
454
- "filters": [
455
- "category:books"
456
- ]
425
+ "filters": ["category:books"]
457
426
  }
458
427
  ]
459
428
  }
@@ -468,9 +437,7 @@
468
437
  "index": "test-index",
469
438
  "userToken": "anonymous-user-1",
470
439
  "authenticatedUserToken": "user-1",
471
- "filters": [
472
- "category:books"
473
- ]
440
+ "filters": ["category:books"]
474
441
  }
475
442
  ]
476
443
  }
@@ -485,9 +452,7 @@
485
452
  "index": "test-index",
486
453
  "userToken": "anonymous-user-1",
487
454
  "authenticatedUserToken": "user-1",
488
- "objectIDs": [
489
- "object-1"
490
- ]
455
+ "objectIDs": ["object-1"]
491
456
  }
492
457
  ]
493
458
  }
@@ -502,9 +467,7 @@
502
467
  "index": "test-index",
503
468
  "userToken": "anonymous-user-1",
504
469
  "authenticatedUserToken": "user-1",
505
- "filters": [
506
- "category:books"
507
- ]
470
+ "filters": ["category:books"]
508
471
  }
509
472
  ]
510
473
  }
@@ -585,7 +548,7 @@
585
548
  "description": "Check that you're using the correct URL.",
586
549
  "value": {
587
550
  "status": 404,
588
- "message": "Path not supported by Insights REST API. Please have a look at [https://www.algolia.com/doc/rest-api/insights/](https://www.algolia.com/doc/rest-api/insights/) for the list of valid commands."
551
+ "message": "Path not supported by Insights REST API. Please have a look at [https://www.algolia.com/doc/rest-api/insights/](https://www.algolia.com/doc/rest-api/insights) for the list of valid commands."
589
552
  }
590
553
  }
591
554
  }
@@ -796,15 +759,11 @@
796
759
  },
797
760
  "/1/usertokens/{userToken}": {
798
761
  "delete": {
799
- "tags": [
800
- "usertokens"
801
- ],
762
+ "tags": ["usertokens"],
802
763
  "operationId": "deleteUserToken",
803
764
  "summary": "Delete user token",
804
765
  "description": "Deletes all events related to the specified user token from events metrics and analytics.\nThe deletion is asynchronous, and processed within 48 hours.\nTo delete a personalization user profile, see `Delete a user profile` in the Personalization API.\n",
805
- "x-acl": [
806
- "deleteObject"
807
- ],
766
+ "x-acl": ["deleteObject"],
808
767
  "parameters": [
809
768
  {
810
769
  "name": "userToken",
@@ -858,9 +817,7 @@
858
817
  "get": {
859
818
  "x-helper": true,
860
819
  "x-asynchronous-helper": false,
861
- "tags": [
862
- "Api Key"
863
- ],
820
+ "tags": ["Api Key"],
864
821
  "operationId": "setClientApiKey",
865
822
  "summary": "Switch the API key used to authenticate requests",
866
823
  "description": "Switch the API key used to authenticate requests.\n",
@@ -941,9 +898,7 @@
941
898
  },
942
899
  "ClickEvent": {
943
900
  "type": "string",
944
- "enum": [
945
- "click"
946
- ]
901
+ "enum": ["click"]
947
902
  },
948
903
  "index": {
949
904
  "type": "string",
@@ -958,11 +913,7 @@
958
913
  },
959
914
  "minItems": 1,
960
915
  "maxItems": 20,
961
- "example": [
962
- "object-1",
963
- "object-2",
964
- "object-3"
965
- ]
916
+ "example": ["object-1", "object-2", "object-3"]
966
917
  },
967
918
  "positions": {
968
919
  "type": "array",
@@ -973,11 +924,7 @@
973
924
  "minItems": 1,
974
925
  "maxItems": 20,
975
926
  "description": "Position of the clicked item the search results.\n\nYou must provide 1 `position` for each `objectID`.\n",
976
- "example": [
977
- 1,
978
- 2,
979
- 5
980
- ]
927
+ "example": [1, 2, 5]
981
928
  },
982
929
  "queryID": {
983
930
  "type": "string",
@@ -992,7 +939,7 @@
992
939
  "minLength": 1,
993
940
  "maxLength": 129,
994
941
  "pattern": "[a-zA-Z0-9_=/+-]{1,129}",
995
- "description": "Anonymous or pseudonymous user identifier.\n\nDon't use personally identifiable information in user tokens.\nFor more information, see [User token](https://www.algolia.com/doc/guides/sending-events/concepts/usertoken/).\n",
942
+ "description": "Anonymous or pseudonymous user identifier.\n\nDon't use personally identifiable information in user tokens.\nFor more information, see [User token](https://www.algolia.com/doc/guides/sending-events/concepts/usertoken).\n",
996
943
  "example": "test-user-1"
997
944
  },
998
945
  "authenticatedUserToken": {
@@ -1000,7 +947,7 @@
1000
947
  "minLength": 1,
1001
948
  "maxLength": 129,
1002
949
  "pattern": "[a-zA-Z0-9_=/+-]{1,129}",
1003
- "description": "Identifier for authenticated users.\n\nWhen the user signs in, you can get an identifier from your system and send it as `authenticatedUserToken`.\nThis lets you keep using the `userToken` from before the user signed in, while providing a reliable way to identify users across sessions.\nDon't use personally identifiable information in user tokens.\nFor more information, see [User token](https://www.algolia.com/doc/guides/sending-events/concepts/usertoken/).\n",
950
+ "description": "Identifier for authenticated users.\n\nWhen the user signs in, you can get an identifier from your system and send it as `authenticatedUserToken`.\nThis lets you keep using the `userToken` from before the user signed in, while providing a reliable way to identify users across sessions.\nDon't use personally identifiable information in user tokens.\nFor more information, see [User token](https://www.algolia.com/doc/guides/sending-events/concepts/usertoken).\n",
1004
951
  "example": "c6a52c02-d0c7-4b53-8ce3-2b8fd202f3f9"
1005
952
  },
1006
953
  "timestamp": {
@@ -1052,23 +999,15 @@
1052
999
  "queryID",
1053
1000
  "userToken"
1054
1001
  ],
1055
- "x-discriminator-fields": [
1056
- "positions",
1057
- "queryID",
1058
- "eventType"
1059
- ]
1002
+ "x-discriminator-fields": ["positions", "queryID", "eventType"]
1060
1003
  },
1061
1004
  "ConversionEvent": {
1062
1005
  "type": "string",
1063
- "enum": [
1064
- "conversion"
1065
- ]
1006
+ "enum": ["conversion"]
1066
1007
  },
1067
1008
  "AddToCartEvent": {
1068
1009
  "type": "string",
1069
- "enum": [
1070
- "addToCart"
1071
- ]
1010
+ "enum": ["addToCart"]
1072
1011
  },
1073
1012
  "currency": {
1074
1013
  "type": "string",
@@ -1207,18 +1146,11 @@
1207
1146
  "objectIDs",
1208
1147
  "userToken"
1209
1148
  ],
1210
- "x-discriminator-fields": [
1211
- "eventType",
1212
- "eventSubtype",
1213
- "queryID",
1214
- "objectIDs"
1215
- ]
1149
+ "x-discriminator-fields": ["eventType", "eventSubtype", "queryID", "objectIDs"]
1216
1150
  },
1217
1151
  "PurchaseEvent": {
1218
1152
  "type": "string",
1219
- "enum": [
1220
- "purchase"
1221
- ]
1153
+ "enum": ["purchase"]
1222
1154
  },
1223
1155
  "PurchasedObjectIDsAfterSearch": {
1224
1156
  "type": "object",
@@ -1269,12 +1201,7 @@
1269
1201
  "userToken",
1270
1202
  "objectData"
1271
1203
  ],
1272
- "x-discriminator-fields": [
1273
- "eventType",
1274
- "eventSubtype",
1275
- "objectIDs",
1276
- "objectData"
1277
- ]
1204
+ "x-discriminator-fields": ["eventType", "eventSubtype", "objectIDs", "objectData"]
1278
1205
  },
1279
1206
  "ConvertedObjectIDsAfterSearch": {
1280
1207
  "type": "object",
@@ -1307,18 +1234,8 @@
1307
1234
  "$ref": "#/components/schemas/timestamp"
1308
1235
  }
1309
1236
  },
1310
- "required": [
1311
- "eventName",
1312
- "eventType",
1313
- "index",
1314
- "objectIDs",
1315
- "queryID",
1316
- "userToken"
1317
- ],
1318
- "x-discriminator-fields": [
1319
- "queryID",
1320
- "eventType"
1321
- ]
1237
+ "required": ["eventName", "eventType", "index", "objectIDs", "queryID", "userToken"],
1238
+ "x-discriminator-fields": ["queryID", "eventType"]
1322
1239
  },
1323
1240
  "ClickedObjectIDs": {
1324
1241
  "type": "object",
@@ -1348,17 +1265,8 @@
1348
1265
  "$ref": "#/components/schemas/timestamp"
1349
1266
  }
1350
1267
  },
1351
- "required": [
1352
- "eventName",
1353
- "eventType",
1354
- "index",
1355
- "objectIDs",
1356
- "userToken"
1357
- ],
1358
- "x-discriminator-fields": [
1359
- "eventType",
1360
- "objectIDs"
1361
- ]
1268
+ "required": ["eventName", "eventType", "index", "objectIDs", "userToken"],
1269
+ "x-discriminator-fields": ["eventType", "objectIDs"]
1362
1270
  },
1363
1271
  "objectData": {
1364
1272
  "type": "object",
@@ -1424,19 +1332,8 @@
1424
1332
  "$ref": "#/components/schemas/value"
1425
1333
  }
1426
1334
  },
1427
- "required": [
1428
- "eventName",
1429
- "eventType",
1430
- "eventSubtype",
1431
- "index",
1432
- "objectIDs",
1433
- "userToken"
1434
- ],
1435
- "x-discriminator-fields": [
1436
- "eventType",
1437
- "eventSubtype",
1438
- "objectIDs"
1439
- ]
1335
+ "required": ["eventName", "eventType", "eventSubtype", "index", "objectIDs", "userToken"],
1336
+ "x-discriminator-fields": ["eventType", "eventSubtype", "objectIDs"]
1440
1337
  },
1441
1338
  "AddedToCartObjectIDs": {
1442
1339
  "type": "object",
@@ -1478,19 +1375,8 @@
1478
1375
  "$ref": "#/components/schemas/value"
1479
1376
  }
1480
1377
  },
1481
- "required": [
1482
- "eventName",
1483
- "eventType",
1484
- "eventSubtype",
1485
- "index",
1486
- "objectIDs",
1487
- "userToken"
1488
- ],
1489
- "x-discriminator-fields": [
1490
- "eventType",
1491
- "eventSubtype",
1492
- "objectIDs"
1493
- ]
1378
+ "required": ["eventName", "eventType", "eventSubtype", "index", "objectIDs", "userToken"],
1379
+ "x-discriminator-fields": ["eventType", "eventSubtype", "objectIDs"]
1494
1380
  },
1495
1381
  "ConvertedObjectIDs": {
1496
1382
  "type": "object",
@@ -1520,17 +1406,8 @@
1520
1406
  "$ref": "#/components/schemas/timestamp"
1521
1407
  }
1522
1408
  },
1523
- "required": [
1524
- "eventName",
1525
- "eventType",
1526
- "index",
1527
- "objectIDs",
1528
- "userToken"
1529
- ],
1530
- "x-discriminator-fields": [
1531
- "eventType",
1532
- "objectIDs"
1533
- ]
1409
+ "required": ["eventName", "eventType", "index", "objectIDs", "userToken"],
1410
+ "x-discriminator-fields": ["eventType", "objectIDs"]
1534
1411
  },
1535
1412
  "filters": {
1536
1413
  "type": "array",
@@ -1540,9 +1417,7 @@
1540
1417
  },
1541
1418
  "minItems": 1,
1542
1419
  "maxItems": 20,
1543
- "example": [
1544
- "brand:apple"
1545
- ]
1420
+ "example": ["brand:apple"]
1546
1421
  },
1547
1422
  "ClickedFilters": {
1548
1423
  "type": "object",
@@ -1572,17 +1447,8 @@
1572
1447
  "$ref": "#/components/schemas/timestamp"
1573
1448
  }
1574
1449
  },
1575
- "required": [
1576
- "eventName",
1577
- "eventType",
1578
- "index",
1579
- "filters",
1580
- "userToken"
1581
- ],
1582
- "x-discriminator-fields": [
1583
- "eventType",
1584
- "filters"
1585
- ]
1450
+ "required": ["eventName", "eventType", "index", "filters", "userToken"],
1451
+ "x-discriminator-fields": ["eventType", "filters"]
1586
1452
  },
1587
1453
  "ConvertedFilters": {
1588
1454
  "type": "object",
@@ -1611,23 +1477,12 @@
1611
1477
  "$ref": "#/components/schemas/timestamp"
1612
1478
  }
1613
1479
  },
1614
- "required": [
1615
- "eventName",
1616
- "eventType",
1617
- "index",
1618
- "filters",
1619
- "userToken"
1620
- ],
1621
- "x-discriminator-fields": [
1622
- "eventType",
1623
- "filters"
1624
- ]
1480
+ "required": ["eventName", "eventType", "index", "filters", "userToken"],
1481
+ "x-discriminator-fields": ["eventType", "filters"]
1625
1482
  },
1626
1483
  "ViewEvent": {
1627
1484
  "type": "string",
1628
- "enum": [
1629
- "view"
1630
- ]
1485
+ "enum": ["view"]
1631
1486
  },
1632
1487
  "ViewedObjectIDs": {
1633
1488
  "type": "object",
@@ -1657,17 +1512,8 @@
1657
1512
  "$ref": "#/components/schemas/timestamp"
1658
1513
  }
1659
1514
  },
1660
- "required": [
1661
- "eventName",
1662
- "eventType",
1663
- "index",
1664
- "objectIDs",
1665
- "userToken"
1666
- ],
1667
- "x-discriminator-fields": [
1668
- "eventType",
1669
- "objectIDs"
1670
- ]
1515
+ "required": ["eventName", "eventType", "index", "objectIDs", "userToken"],
1516
+ "x-discriminator-fields": ["eventType", "objectIDs"]
1671
1517
  },
1672
1518
  "ViewedFilters": {
1673
1519
  "type": "object",
@@ -1697,17 +1543,8 @@
1697
1543
  "$ref": "#/components/schemas/timestamp"
1698
1544
  }
1699
1545
  },
1700
- "required": [
1701
- "eventName",
1702
- "eventType",
1703
- "index",
1704
- "filters",
1705
- "userToken"
1706
- ],
1707
- "x-discriminator-fields": [
1708
- "eventType",
1709
- "filters"
1710
- ]
1546
+ "required": ["eventName", "eventType", "index", "filters", "userToken"],
1547
+ "x-discriminator-fields": ["eventType", "filters"]
1711
1548
  },
1712
1549
  "EventsItems": {
1713
1550
  "oneOf": [
@@ -1834,10 +1671,7 @@
1834
1671
  "x-tagGroups": [
1835
1672
  {
1836
1673
  "name": "General",
1837
- "tags": [
1838
- "events",
1839
- "usertokens"
1840
- ]
1674
+ "tags": ["events", "usertokens"]
1841
1675
  }
1842
1676
  ]
1843
- }
1677
+ }