@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.
- package/README.md +66 -55
- package/dist/nodes/Algolia/Algolia.node.js +1918 -1996
- package/dist/nodes/Algolia/specs/abtesting-v3.json +43 -155
- package/dist/nodes/Algolia/specs/abtesting.json +35 -122
- package/dist/nodes/Algolia/specs/advanced-personalization.json +64 -238
- package/dist/nodes/Algolia/specs/analytics.json +107 -366
- package/dist/nodes/Algolia/specs/composition.json +237 -716
- package/dist/nodes/Algolia/specs/crawler.json +181 -536
- package/dist/nodes/Algolia/specs/ingestion.json +245 -992
- package/dist/nodes/Algolia/specs/insights.json +56 -222
- package/dist/nodes/Algolia/specs/monitoring.json +17 -57
- package/dist/nodes/Algolia/specs/personalization.json +24 -74
- package/dist/nodes/Algolia/specs/query-suggestions.json +26 -79
- package/dist/nodes/Algolia/specs/recommend.json +219 -688
- package/dist/nodes/Algolia/specs/search.json +459 -1428
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"openapi": "3.0.2",
|
|
3
3
|
"info": {
|
|
4
4
|
"title": "Advanced Personalization API",
|
|
5
|
-
"description": "The Advanced Personalization API lets you access user profiles built based on the behavior of your users on your website or app.\n\n## Client libraries\n\nUse Algolia's API clients and libraries to reliably integrate Algolia's APIs with your apps.\nThe official API clients are covered by Algolia's [Service Level Agreement](https://www.algolia.com/policies/sla
|
|
5
|
+
"description": "The Advanced Personalization API lets you access user profiles built based on the behavior of your users on your website or app.\n\n## Client libraries\n\nUse Algolia's API clients and libraries to reliably integrate Algolia's APIs with your apps.\nThe official API clients are covered by Algolia's [Service Level Agreement](https://www.algolia.com/policies/sla).\n\nSee: [Algolia's ecosystem](https://www.algolia.com/doc/guides/getting-started/how-algolia-works/in-depth/ecosystem)\n\n## Base URLs\n\nThe Advanced Personalization API can be reached from multiple domains, each specific to a region.\n\n- `https://ai-personalization.eu.algolia.com`\n- `https://ai-personalization.us.algolia.com`\n\nUse the URL that matches your [analytics region](https://dashboard.algolia.com/account/infrastructure/analytics).\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 `search`, `browse` and `recommendation` ACL permissions.\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\nThe Advanced Personalization API returns JSON responses.\nSince JSON doesn't guarantee any specific ordering, don't rely on the order of attributes in the API response.\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\n## Rate limiting\n\nWhen making requests to the Advanced Personalization API, you are limited to 500 API calls per minute per application.\n\nThe following headers provide information about your current limit:\n\n- `x-ratelimit-limit`: The number of requests allowed every 60 seconds.\n- `x-ratelimit-remaining`: The number of requests remaining in the current 60 second period.\n- `x-ratelimit-reset`: [Unix timestamp](https://www.unixtimestamp.com) of the next time period.\n\n## Version\n\nThe current version of the Advanced Personalization API is version 2, as indicated by the `/2/` in each endpoint's URL.\n",
|
|
6
6
|
"version": "2.0.0"
|
|
7
7
|
},
|
|
8
8
|
"servers": [
|
|
@@ -11,10 +11,7 @@
|
|
|
11
11
|
"variables": {
|
|
12
12
|
"region": {
|
|
13
13
|
"description": "Use the URL that matches your [analytics region](https://dashboard.algolia.com/account/infrastructure/analytics).\n",
|
|
14
|
-
"enum": [
|
|
15
|
-
"eu",
|
|
16
|
-
"us"
|
|
17
|
-
],
|
|
14
|
+
"enum": ["eu", "us"],
|
|
18
15
|
"default": "eu"
|
|
19
16
|
}
|
|
20
17
|
}
|
|
@@ -37,13 +34,14 @@
|
|
|
37
34
|
"x-displayName": "Users",
|
|
38
35
|
"description": "Manage user profiles generated by Advanced Personalization.\n\nUser profiles contain the affinities each user has for the different facets in your index.\n",
|
|
39
36
|
"externalDocs": {
|
|
40
|
-
"url": "https://www.algolia.com/doc/guides/personalization/ai-personalization/what-is-ai-personalization/concepts/user-profiles
|
|
41
|
-
"description": "
|
|
37
|
+
"url": "https://www.algolia.com/doc/guides/personalization/ai-personalization/what-is-ai-personalization/concepts/user-profiles",
|
|
38
|
+
"description": "User profiles."
|
|
42
39
|
}
|
|
43
40
|
}
|
|
44
41
|
],
|
|
45
42
|
"externalDocs": {
|
|
46
|
-
"url": "https://www.algolia.com/doc/guides/personalization/ai-personalization/what-is-ai-personalization
|
|
43
|
+
"url": "https://www.algolia.com/doc/guides/personalization/ai-personalization/what-is-ai-personalization",
|
|
44
|
+
"description": "What is Advanced Personalization."
|
|
47
45
|
},
|
|
48
46
|
"paths": {
|
|
49
47
|
"/{path}": {
|
|
@@ -218,15 +216,9 @@
|
|
|
218
216
|
},
|
|
219
217
|
"/2/config": {
|
|
220
218
|
"get": {
|
|
221
|
-
"tags": [
|
|
222
|
-
"config"
|
|
223
|
-
],
|
|
219
|
+
"tags": ["config"],
|
|
224
220
|
"operationId": "getConfig",
|
|
225
|
-
"x-acl": [
|
|
226
|
-
"search",
|
|
227
|
-
"browse",
|
|
228
|
-
"recommendation"
|
|
229
|
-
],
|
|
221
|
+
"x-acl": ["search", "browse", "recommendation"],
|
|
230
222
|
"summary": "Retrieve the configuration",
|
|
231
223
|
"description": "Retrieves a list of configuration objects for each index.",
|
|
232
224
|
"responses": {
|
|
@@ -249,15 +241,9 @@
|
|
|
249
241
|
}
|
|
250
242
|
},
|
|
251
243
|
"put": {
|
|
252
|
-
"tags": [
|
|
253
|
-
"config"
|
|
254
|
-
],
|
|
244
|
+
"tags": ["config"],
|
|
255
245
|
"operationId": "putConfig",
|
|
256
|
-
"x-acl": [
|
|
257
|
-
"search",
|
|
258
|
-
"browse",
|
|
259
|
-
"recommendation"
|
|
260
|
-
],
|
|
246
|
+
"x-acl": ["search", "browse", "recommendation"],
|
|
261
247
|
"summary": "Update the configuration",
|
|
262
248
|
"description": "Updates the configuration.\n\nThe configuration is a list of configuration objects for each index. To configure Advanced Personalization for an index, create a new configuration object for the index.\n",
|
|
263
249
|
"requestBody": {
|
|
@@ -294,17 +280,11 @@
|
|
|
294
280
|
"$ref": "#/components/schemas/events"
|
|
295
281
|
}
|
|
296
282
|
},
|
|
297
|
-
"required": [
|
|
298
|
-
"type"
|
|
299
|
-
]
|
|
283
|
+
"required": ["type"]
|
|
300
284
|
}
|
|
301
285
|
}
|
|
302
286
|
},
|
|
303
|
-
"required": [
|
|
304
|
-
"index",
|
|
305
|
-
"affinities",
|
|
306
|
-
"source"
|
|
307
|
-
]
|
|
287
|
+
"required": ["index", "affinities", "source"]
|
|
308
288
|
},
|
|
309
289
|
"personalizationReRanking": {
|
|
310
290
|
"$ref": "#/components/schemas/personalizationReRanking"
|
|
@@ -316,12 +296,7 @@
|
|
|
316
296
|
"$ref": "#/components/schemas/features"
|
|
317
297
|
}
|
|
318
298
|
},
|
|
319
|
-
"required": [
|
|
320
|
-
"indices",
|
|
321
|
-
"personalizationReRanking",
|
|
322
|
-
"profileType",
|
|
323
|
-
"features"
|
|
324
|
-
]
|
|
299
|
+
"required": ["indices", "personalizationReRanking", "profileType", "features"]
|
|
325
300
|
}
|
|
326
301
|
}
|
|
327
302
|
}
|
|
@@ -354,12 +329,7 @@
|
|
|
354
329
|
"type": "string"
|
|
355
330
|
}
|
|
356
331
|
},
|
|
357
|
-
"required": [
|
|
358
|
-
"status",
|
|
359
|
-
"errors",
|
|
360
|
-
"warnings",
|
|
361
|
-
"message"
|
|
362
|
-
]
|
|
332
|
+
"required": ["status", "errors", "warnings", "message"]
|
|
363
333
|
}
|
|
364
334
|
}
|
|
365
335
|
}
|
|
@@ -381,15 +351,9 @@
|
|
|
381
351
|
},
|
|
382
352
|
"/2/users": {
|
|
383
353
|
"get": {
|
|
384
|
-
"tags": [
|
|
385
|
-
"users"
|
|
386
|
-
],
|
|
354
|
+
"tags": ["users"],
|
|
387
355
|
"operationId": "getUsers",
|
|
388
|
-
"x-acl": [
|
|
389
|
-
"search",
|
|
390
|
-
"browse",
|
|
391
|
-
"recommendation"
|
|
392
|
-
],
|
|
356
|
+
"x-acl": ["search", "browse", "recommendation"],
|
|
393
357
|
"summary": "Get a list of user profiles",
|
|
394
358
|
"description": "Retrieves a list of user profiles in [lexicographical order](https://www.educative.io/answers/what-is-a-lexicographic-order).",
|
|
395
359
|
"parameters": [
|
|
@@ -437,9 +401,7 @@
|
|
|
437
401
|
"type": "string"
|
|
438
402
|
}
|
|
439
403
|
},
|
|
440
|
-
"required": [
|
|
441
|
-
"users"
|
|
442
|
-
]
|
|
404
|
+
"required": ["users"]
|
|
443
405
|
}
|
|
444
406
|
}
|
|
445
407
|
}
|
|
@@ -458,15 +420,9 @@
|
|
|
458
420
|
},
|
|
459
421
|
"/2/users/{userID}": {
|
|
460
422
|
"get": {
|
|
461
|
-
"tags": [
|
|
462
|
-
"users"
|
|
463
|
-
],
|
|
423
|
+
"tags": ["users"],
|
|
464
424
|
"operationId": "getUser",
|
|
465
|
-
"x-acl": [
|
|
466
|
-
"search",
|
|
467
|
-
"browse",
|
|
468
|
-
"recommendation"
|
|
469
|
-
],
|
|
425
|
+
"x-acl": ["search", "browse", "recommendation"],
|
|
470
426
|
"summary": "Get a user profile",
|
|
471
427
|
"description": "Retrieves a user profile.",
|
|
472
428
|
"parameters": [
|
|
@@ -503,15 +459,9 @@
|
|
|
503
459
|
}
|
|
504
460
|
},
|
|
505
461
|
"delete": {
|
|
506
|
-
"tags": [
|
|
507
|
-
"users"
|
|
508
|
-
],
|
|
462
|
+
"tags": ["users"],
|
|
509
463
|
"operationId": "deleteUser",
|
|
510
|
-
"x-acl": [
|
|
511
|
-
"search",
|
|
512
|
-
"browse",
|
|
513
|
-
"recommendation"
|
|
514
|
-
],
|
|
464
|
+
"x-acl": ["search", "browse", "recommendation"],
|
|
515
465
|
"summary": "Delete a user profile",
|
|
516
466
|
"description": "Deletes a user profile.",
|
|
517
467
|
"parameters": [
|
|
@@ -565,13 +515,9 @@
|
|
|
565
515
|
},
|
|
566
516
|
"/2/realtime/users/{userToken}": {
|
|
567
517
|
"get": {
|
|
568
|
-
"tags": [
|
|
569
|
-
"users"
|
|
570
|
-
],
|
|
518
|
+
"tags": ["users"],
|
|
571
519
|
"operationId": "getRealtimeUser",
|
|
572
|
-
"x-acl": [
|
|
573
|
-
"recommendation"
|
|
574
|
-
],
|
|
520
|
+
"x-acl": ["recommendation"],
|
|
575
521
|
"summary": "Retrieve the real-time user's personalization profile",
|
|
576
522
|
"description": "Retrieves the real-time user's personalization profiles containing search filters.",
|
|
577
523
|
"parameters": [
|
|
@@ -607,13 +553,9 @@
|
|
|
607
553
|
},
|
|
608
554
|
"/2/realtime/users/{userToken}/compute": {
|
|
609
555
|
"post": {
|
|
610
|
-
"tags": [
|
|
611
|
-
"users"
|
|
612
|
-
],
|
|
556
|
+
"tags": ["users"],
|
|
613
557
|
"operationId": "computeRealtimeUser",
|
|
614
|
-
"x-acl": [
|
|
615
|
-
"recommendation"
|
|
616
|
-
],
|
|
558
|
+
"x-acl": ["recommendation"],
|
|
617
559
|
"summary": "Compute the real-time user's personalization profile",
|
|
618
560
|
"description": "Sends a request to compute the real-time user's personalization profile.",
|
|
619
561
|
"deprecated": true,
|
|
@@ -651,9 +593,7 @@
|
|
|
651
593
|
"get": {
|
|
652
594
|
"x-helper": true,
|
|
653
595
|
"x-asynchronous-helper": false,
|
|
654
|
-
"tags": [
|
|
655
|
-
"Api Key"
|
|
656
|
-
],
|
|
596
|
+
"tags": ["Api Key"],
|
|
657
597
|
"operationId": "setClientApiKey",
|
|
658
598
|
"summary": "Switch the API key used to authenticate requests",
|
|
659
599
|
"description": "Switch the API key used to authenticate requests.\n",
|
|
@@ -741,16 +681,11 @@
|
|
|
741
681
|
},
|
|
742
682
|
"examples": {
|
|
743
683
|
"singleIndex": {
|
|
744
|
-
"value": [
|
|
745
|
-
"products_EN"
|
|
746
|
-
],
|
|
684
|
+
"value": ["products_EN"],
|
|
747
685
|
"summary": "Filter by single index"
|
|
748
686
|
},
|
|
749
687
|
"multipleIndices": {
|
|
750
|
-
"value": [
|
|
751
|
-
"products_EN",
|
|
752
|
-
"products_FR"
|
|
753
|
-
],
|
|
688
|
+
"value": ["products_EN", "products_FR"],
|
|
754
689
|
"summary": "Filter by multiple indices"
|
|
755
690
|
}
|
|
756
691
|
},
|
|
@@ -848,24 +783,15 @@
|
|
|
848
783
|
"sourceType": {
|
|
849
784
|
"title": "type",
|
|
850
785
|
"type": "string",
|
|
851
|
-
"enum": [
|
|
852
|
-
"insights"
|
|
853
|
-
]
|
|
786
|
+
"enum": ["insights"]
|
|
854
787
|
},
|
|
855
788
|
"eventType": {
|
|
856
789
|
"type": "string",
|
|
857
|
-
"enum": [
|
|
858
|
-
"view",
|
|
859
|
-
"click",
|
|
860
|
-
"conversion"
|
|
861
|
-
]
|
|
790
|
+
"enum": ["view", "click", "conversion"]
|
|
862
791
|
},
|
|
863
792
|
"subtype": {
|
|
864
793
|
"type": "string",
|
|
865
|
-
"enum": [
|
|
866
|
-
"addToCart",
|
|
867
|
-
"purchase"
|
|
868
|
-
]
|
|
794
|
+
"enum": ["addToCart", "purchase"]
|
|
869
795
|
},
|
|
870
796
|
"event": {
|
|
871
797
|
"type": "object",
|
|
@@ -880,10 +806,7 @@
|
|
|
880
806
|
"type": "string"
|
|
881
807
|
}
|
|
882
808
|
},
|
|
883
|
-
"required": [
|
|
884
|
-
"type",
|
|
885
|
-
"name"
|
|
886
|
-
]
|
|
809
|
+
"required": ["type", "name"]
|
|
887
810
|
},
|
|
888
811
|
"events": {
|
|
889
812
|
"type": "object",
|
|
@@ -913,12 +836,7 @@
|
|
|
913
836
|
}
|
|
914
837
|
}
|
|
915
838
|
},
|
|
916
|
-
"required": [
|
|
917
|
-
"viewDetails",
|
|
918
|
-
"viewListing",
|
|
919
|
-
"addToCart",
|
|
920
|
-
"purchase"
|
|
921
|
-
]
|
|
839
|
+
"required": ["viewDetails", "viewListing", "addToCart", "purchase"]
|
|
922
840
|
},
|
|
923
841
|
"issue": {
|
|
924
842
|
"type": "object",
|
|
@@ -934,38 +852,22 @@
|
|
|
934
852
|
"type": "string"
|
|
935
853
|
}
|
|
936
854
|
},
|
|
937
|
-
"required": [
|
|
938
|
-
"code",
|
|
939
|
-
"index",
|
|
940
|
-
"message"
|
|
941
|
-
]
|
|
855
|
+
"required": ["code", "index", "message"]
|
|
942
856
|
},
|
|
943
857
|
"personalizationReRanking": {
|
|
944
858
|
"type": "string",
|
|
945
859
|
"description": "The impact that personalization has on the re-ranking of search results.",
|
|
946
|
-
"enum": [
|
|
947
|
-
"none",
|
|
948
|
-
"low",
|
|
949
|
-
"medium",
|
|
950
|
-
"high",
|
|
951
|
-
"maximum"
|
|
952
|
-
]
|
|
860
|
+
"enum": ["none", "low", "medium", "high", "maximum"]
|
|
953
861
|
},
|
|
954
862
|
"profileType": {
|
|
955
863
|
"type": "string",
|
|
956
|
-
"enum": [
|
|
957
|
-
"basic"
|
|
958
|
-
],
|
|
864
|
+
"enum": ["basic"],
|
|
959
865
|
"description": "The type of user profiles to generate.\n\nBasic profiles are based on past behaviors, ensuring search results align with previous interests.\n"
|
|
960
866
|
},
|
|
961
867
|
"status": {
|
|
962
868
|
"title": "status",
|
|
963
869
|
"type": "string",
|
|
964
|
-
"enum": [
|
|
965
|
-
"pending",
|
|
966
|
-
"active",
|
|
967
|
-
"paused"
|
|
968
|
-
]
|
|
870
|
+
"enum": ["pending", "active", "paused"]
|
|
969
871
|
},
|
|
970
872
|
"errorCodes": {
|
|
971
873
|
"title": "errorCodes",
|
|
@@ -1062,14 +964,7 @@
|
|
|
1062
964
|
"type": "string"
|
|
1063
965
|
}
|
|
1064
966
|
},
|
|
1065
|
-
"required": [
|
|
1066
|
-
"index",
|
|
1067
|
-
"affinities",
|
|
1068
|
-
"source",
|
|
1069
|
-
"errors",
|
|
1070
|
-
"warnings",
|
|
1071
|
-
"lastUpdatedAt"
|
|
1072
|
-
]
|
|
967
|
+
"required": ["index", "affinities", "source", "errors", "warnings", "lastUpdatedAt"]
|
|
1073
968
|
}
|
|
1074
969
|
},
|
|
1075
970
|
"personalizationReRanking": {
|
|
@@ -1085,27 +980,17 @@
|
|
|
1085
980
|
"$ref": "#/components/schemas/features"
|
|
1086
981
|
}
|
|
1087
982
|
},
|
|
1088
|
-
"required": [
|
|
1089
|
-
"indices",
|
|
1090
|
-
"personalzationReRanking",
|
|
1091
|
-
"profileType",
|
|
1092
|
-
"status",
|
|
1093
|
-
"features"
|
|
1094
|
-
]
|
|
983
|
+
"required": ["indices", "personalzationReRanking", "profileType", "status", "features"]
|
|
1095
984
|
},
|
|
1096
985
|
"unauthorized": {
|
|
1097
986
|
"type": "integer",
|
|
1098
987
|
"description": "HTTP status code for an authorization error.",
|
|
1099
|
-
"enum": [
|
|
1100
|
-
401
|
|
1101
|
-
]
|
|
988
|
+
"enum": [401]
|
|
1102
989
|
},
|
|
1103
990
|
"ErrorMessages_unauthorized": {
|
|
1104
991
|
"type": "string",
|
|
1105
992
|
"description": "Details about the response, such as error messages.",
|
|
1106
|
-
"enum": [
|
|
1107
|
-
"Unauthorized"
|
|
1108
|
-
]
|
|
993
|
+
"enum": ["Unauthorized"]
|
|
1109
994
|
},
|
|
1110
995
|
"ErrorResponses_unauthorized": {
|
|
1111
996
|
"type": "object",
|
|
@@ -1121,16 +1006,12 @@
|
|
|
1121
1006
|
"internalServerError": {
|
|
1122
1007
|
"type": "integer",
|
|
1123
1008
|
"description": "HTTP status code for an internal server error.",
|
|
1124
|
-
"enum": [
|
|
1125
|
-
500
|
|
1126
|
-
]
|
|
1009
|
+
"enum": [500]
|
|
1127
1010
|
},
|
|
1128
1011
|
"ErrorMessages_internalServerError": {
|
|
1129
1012
|
"type": "string",
|
|
1130
1013
|
"description": "Details about the response, such as error messages.",
|
|
1131
|
-
"enum": [
|
|
1132
|
-
"Internal Server Error"
|
|
1133
|
-
]
|
|
1014
|
+
"enum": ["Internal Server Error"]
|
|
1134
1015
|
},
|
|
1135
1016
|
"ErrorResponses_internalServerError": {
|
|
1136
1017
|
"type": "object",
|
|
@@ -1146,16 +1027,12 @@
|
|
|
1146
1027
|
"badRequest": {
|
|
1147
1028
|
"type": "integer",
|
|
1148
1029
|
"description": "HTTP status code for a bad request error.",
|
|
1149
|
-
"enum": [
|
|
1150
|
-
400
|
|
1151
|
-
]
|
|
1030
|
+
"enum": [400]
|
|
1152
1031
|
},
|
|
1153
1032
|
"ErrorMessages_badRequest": {
|
|
1154
1033
|
"type": "string",
|
|
1155
1034
|
"description": "Details about the response, such as error messages.",
|
|
1156
|
-
"enum": [
|
|
1157
|
-
"Invalid request body"
|
|
1158
|
-
]
|
|
1035
|
+
"enum": ["Invalid request body"]
|
|
1159
1036
|
},
|
|
1160
1037
|
"ErrorResponses_badRequest": {
|
|
1161
1038
|
"type": "object",
|
|
@@ -1171,9 +1048,7 @@
|
|
|
1171
1048
|
"paymentRequired": {
|
|
1172
1049
|
"type": "integer",
|
|
1173
1050
|
"description": "HTTP status code for a payment required error.",
|
|
1174
|
-
"enum": [
|
|
1175
|
-
402
|
|
1176
|
-
]
|
|
1051
|
+
"enum": [402]
|
|
1177
1052
|
},
|
|
1178
1053
|
"featureNotEnabled": {
|
|
1179
1054
|
"type": "string",
|
|
@@ -1228,38 +1103,24 @@
|
|
|
1228
1103
|
"type": "string"
|
|
1229
1104
|
}
|
|
1230
1105
|
},
|
|
1231
|
-
"required": [
|
|
1232
|
-
"name",
|
|
1233
|
-
"indices",
|
|
1234
|
-
"value",
|
|
1235
|
-
"score",
|
|
1236
|
-
"lastUpdatedAt"
|
|
1237
|
-
]
|
|
1106
|
+
"required": ["name", "indices", "value", "score", "lastUpdatedAt"]
|
|
1238
1107
|
}
|
|
1239
1108
|
},
|
|
1240
1109
|
"lastUpdatedAt": {
|
|
1241
1110
|
"type": "string"
|
|
1242
1111
|
}
|
|
1243
1112
|
},
|
|
1244
|
-
"required": [
|
|
1245
|
-
"userID",
|
|
1246
|
-
"affinities",
|
|
1247
|
-
"lastUpdatedAt"
|
|
1248
|
-
]
|
|
1113
|
+
"required": ["userID", "affinities", "lastUpdatedAt"]
|
|
1249
1114
|
},
|
|
1250
1115
|
"unprocessableEntity": {
|
|
1251
1116
|
"type": "integer",
|
|
1252
1117
|
"description": "HTTP status code for an unprocessable entity error.",
|
|
1253
|
-
"enum": [
|
|
1254
|
-
422
|
|
1255
|
-
]
|
|
1118
|
+
"enum": [422]
|
|
1256
1119
|
},
|
|
1257
1120
|
"genericUnprocessableEntity": {
|
|
1258
1121
|
"type": "string",
|
|
1259
1122
|
"description": "Details about the response, such as error messages.",
|
|
1260
|
-
"enum": [
|
|
1261
|
-
"Unprocessable Entity"
|
|
1262
|
-
]
|
|
1123
|
+
"enum": ["Unprocessable Entity"]
|
|
1263
1124
|
},
|
|
1264
1125
|
"ErrorResponses_genericUnprocessableEntity": {
|
|
1265
1126
|
"type": "object",
|
|
@@ -1275,9 +1136,7 @@
|
|
|
1275
1136
|
"badUserID": {
|
|
1276
1137
|
"type": "string",
|
|
1277
1138
|
"description": "Details about the response, such as error messages.",
|
|
1278
|
-
"enum": [
|
|
1279
|
-
"Invalid userID format"
|
|
1280
|
-
]
|
|
1139
|
+
"enum": ["Invalid userID format"]
|
|
1281
1140
|
},
|
|
1282
1141
|
"ErrorResponses_badUserID": {
|
|
1283
1142
|
"type": "object",
|
|
@@ -1293,16 +1152,12 @@
|
|
|
1293
1152
|
"notFound": {
|
|
1294
1153
|
"type": "integer",
|
|
1295
1154
|
"description": "HTTP status code for a not found error.",
|
|
1296
|
-
"enum": [
|
|
1297
|
-
404
|
|
1298
|
-
]
|
|
1155
|
+
"enum": [404]
|
|
1299
1156
|
},
|
|
1300
1157
|
"genericNotFound": {
|
|
1301
1158
|
"type": "string",
|
|
1302
1159
|
"description": "Details about the response, such as error messages.",
|
|
1303
|
-
"enum": [
|
|
1304
|
-
"Not Found"
|
|
1305
|
-
]
|
|
1160
|
+
"enum": ["Not Found"]
|
|
1306
1161
|
},
|
|
1307
1162
|
"ErrorResponses_genericNotFound": {
|
|
1308
1163
|
"type": "object",
|
|
@@ -1341,19 +1196,13 @@
|
|
|
1341
1196
|
},
|
|
1342
1197
|
"userToken": {
|
|
1343
1198
|
"type": "string",
|
|
1344
|
-
"description": "Unique pseudonymous or anonymous user identifier.\n\nThis helps with analytics and click and conversion events.\nFor more information, see [user token](https://www.algolia.com/doc/guides/sending-events/concepts/usertoken
|
|
1199
|
+
"description": "Unique pseudonymous or anonymous user identifier.\n\nThis helps with analytics and click and conversion events.\nFor more information, see [user token](https://www.algolia.com/doc/guides/sending-events/concepts/usertoken).\n",
|
|
1345
1200
|
"example": "test-user-123",
|
|
1346
|
-
"x-categories": [
|
|
1347
|
-
"Personalization"
|
|
1348
|
-
]
|
|
1201
|
+
"x-categories": ["Personalization"]
|
|
1349
1202
|
},
|
|
1350
1203
|
"strategy": {
|
|
1351
1204
|
"type": "string",
|
|
1352
|
-
"enum": [
|
|
1353
|
-
"session",
|
|
1354
|
-
"historical",
|
|
1355
|
-
"hybrid"
|
|
1356
|
-
],
|
|
1205
|
+
"enum": ["session", "historical", "hybrid"],
|
|
1357
1206
|
"example": "session"
|
|
1358
1207
|
},
|
|
1359
1208
|
"searchFilter": {
|
|
@@ -1365,9 +1214,7 @@
|
|
|
1365
1214
|
"items": {
|
|
1366
1215
|
"type": "string"
|
|
1367
1216
|
},
|
|
1368
|
-
"example": [
|
|
1369
|
-
"brand:Dyson<score=12>"
|
|
1370
|
-
]
|
|
1217
|
+
"example": ["brand:Dyson<score=12>"]
|
|
1371
1218
|
}
|
|
1372
1219
|
}
|
|
1373
1220
|
},
|
|
@@ -1380,11 +1227,7 @@
|
|
|
1380
1227
|
"items": {
|
|
1381
1228
|
"type": "string"
|
|
1382
1229
|
},
|
|
1383
|
-
"example": [
|
|
1384
|
-
"storefront",
|
|
1385
|
-
"storefront_price_asc",
|
|
1386
|
-
"storefront_price_desc"
|
|
1387
|
-
]
|
|
1230
|
+
"example": ["storefront", "storefront_price_asc", "storefront_price_desc"]
|
|
1388
1231
|
},
|
|
1389
1232
|
"strategy": {
|
|
1390
1233
|
"$ref": "#/components/schemas/strategy"
|
|
@@ -1398,12 +1241,7 @@
|
|
|
1398
1241
|
"title": "RealtimeUser",
|
|
1399
1242
|
"type": "object",
|
|
1400
1243
|
"additionalProperties": false,
|
|
1401
|
-
"required": [
|
|
1402
|
-
"version",
|
|
1403
|
-
"userID",
|
|
1404
|
-
"lastUpdatedAt",
|
|
1405
|
-
"search"
|
|
1406
|
-
],
|
|
1244
|
+
"required": ["version", "userID", "lastUpdatedAt", "search"],
|
|
1407
1245
|
"properties": {
|
|
1408
1246
|
"version": {
|
|
1409
1247
|
"type": "string",
|
|
@@ -1557,10 +1395,7 @@
|
|
|
1557
1395
|
"title": "tooManyRequestsResponse",
|
|
1558
1396
|
"type": "object",
|
|
1559
1397
|
"additionalProperties": false,
|
|
1560
|
-
"required": [
|
|
1561
|
-
"status",
|
|
1562
|
-
"message"
|
|
1563
|
-
],
|
|
1398
|
+
"required": ["status", "message"],
|
|
1564
1399
|
"properties": {
|
|
1565
1400
|
"status": {
|
|
1566
1401
|
"type": "integer",
|
|
@@ -1595,10 +1430,7 @@
|
|
|
1595
1430
|
"title": "acceptedResponse",
|
|
1596
1431
|
"type": "object",
|
|
1597
1432
|
"additionalProperties": false,
|
|
1598
|
-
"required": [
|
|
1599
|
-
"status",
|
|
1600
|
-
"message"
|
|
1601
|
-
],
|
|
1433
|
+
"required": ["status", "message"],
|
|
1602
1434
|
"properties": {
|
|
1603
1435
|
"status": {
|
|
1604
1436
|
"type": "integer",
|
|
@@ -1623,10 +1455,7 @@
|
|
|
1623
1455
|
"title": "conflictResponse",
|
|
1624
1456
|
"type": "object",
|
|
1625
1457
|
"additionalProperties": false,
|
|
1626
|
-
"required": [
|
|
1627
|
-
"status",
|
|
1628
|
-
"message"
|
|
1629
|
-
],
|
|
1458
|
+
"required": ["status", "message"],
|
|
1630
1459
|
"properties": {
|
|
1631
1460
|
"status": {
|
|
1632
1461
|
"type": "integer",
|
|
@@ -1658,10 +1487,7 @@
|
|
|
1658
1487
|
"x-tagGroups": [
|
|
1659
1488
|
{
|
|
1660
1489
|
"name": "Advanced Personalization",
|
|
1661
|
-
"tags": [
|
|
1662
|
-
"config",
|
|
1663
|
-
"users"
|
|
1664
|
-
]
|
|
1490
|
+
"tags": ["config", "users"]
|
|
1665
1491
|
}
|
|
1666
1492
|
]
|
|
1667
|
-
}
|
|
1493
|
+
}
|