@distilled.cloud/typesense 1.0.0-rc.17 → 1.0.0-rc.18

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.
@@ -11,6 +11,19 @@ const __s: any[] = [];
11
11
 
12
12
  export type { TypesenseOpError, TypesenseOpContext };
13
13
 
14
+ /** Span facts shared by every operation (com.distilled.telemetry#service). */
15
+ const TELEMETRY = {
16
+ system: "typesense-api",
17
+ responseHeaders: [
18
+ { header: "x-request-id", name: "http.response.header.x-request-id", transform: "list" },
19
+ { header: "request-id", name: "http.response.header.request-id", transform: "list" },
20
+ ],
21
+ prefix: "Typesense",
22
+ service: "Typesense",
23
+ labels: "typesense",
24
+ propagate: "w3c",
25
+ } as const;
26
+
14
27
  export class BadRequest
15
28
  extends /*@__PURE__*/ T.applyErrorMatchers(
16
29
  /*@__PURE__*/ S.TaggedError<BadRequest>()("BadRequest", {
@@ -2304,6 +2317,8 @@ export const clearCache: API.OperationMethod<
2304
2317
  errors: [],
2305
2318
  protocol: TypesenseProtocol,
2306
2319
  retry: Retry.Retry,
2320
+ telemetry: TELEMETRY,
2321
+ span: "ClearCache",
2307
2322
  }));
2308
2323
 
2309
2324
  export type CompactDbError = TypesenseOpError;
@@ -2319,6 +2334,8 @@ export const compactDb: API.OperationMethod<
2319
2334
  errors: [],
2320
2335
  protocol: TypesenseProtocol,
2321
2336
  retry: Retry.Retry,
2337
+ telemetry: TELEMETRY,
2338
+ span: "CompactDb",
2322
2339
  }));
2323
2340
 
2324
2341
  export type CreateAnalyticsEventError = BadRequest | TypesenseOpError;
@@ -2334,6 +2351,8 @@ export const createAnalyticsEvent: API.OperationMethod<
2334
2351
  errors: [BadRequest],
2335
2352
  protocol: TypesenseProtocol,
2336
2353
  retry: Retry.Retry,
2354
+ telemetry: TELEMETRY,
2355
+ span: "CreateAnalyticsEvent",
2337
2356
  }));
2338
2357
 
2339
2358
  export type CreateAnalyticsRuleError = BadRequest | TypesenseOpError;
@@ -2349,6 +2368,8 @@ export const createAnalyticsRule: API.OperationMethod<
2349
2368
  errors: [BadRequest],
2350
2369
  protocol: TypesenseProtocol,
2351
2370
  retry: Retry.Retry,
2371
+ telemetry: TELEMETRY,
2372
+ span: "CreateAnalyticsRule",
2352
2373
  }));
2353
2374
 
2354
2375
  export type CreateCollectionError = BadRequest | Conflict | TypesenseOpError;
@@ -2364,6 +2385,8 @@ export const createCollection: API.OperationMethod<
2364
2385
  errors: [BadRequest, Conflict],
2365
2386
  protocol: TypesenseProtocol,
2366
2387
  retry: Retry.Retry,
2388
+ telemetry: TELEMETRY,
2389
+ span: "CreateCollection",
2367
2390
  }));
2368
2391
 
2369
2392
  export type CreateConversationModelError = BadRequest | TypesenseOpError;
@@ -2379,6 +2402,8 @@ export const createConversationModel: API.OperationMethod<
2379
2402
  errors: [BadRequest],
2380
2403
  protocol: TypesenseProtocol,
2381
2404
  retry: Retry.Retry,
2405
+ telemetry: TELEMETRY,
2406
+ span: "CreateConversationModel",
2382
2407
  }));
2383
2408
 
2384
2409
  export type CreateKeyError = BadRequest | Conflict | TypesenseOpError;
@@ -2394,6 +2419,8 @@ export const createKey: API.OperationMethod<
2394
2419
  errors: [BadRequest, Conflict],
2395
2420
  protocol: TypesenseProtocol,
2396
2421
  retry: Retry.Retry,
2422
+ telemetry: TELEMETRY,
2423
+ span: "CreateKey",
2397
2424
  }));
2398
2425
 
2399
2426
  export type CreateNLSearchModelError = BadRequest | TypesenseOpError;
@@ -2409,6 +2436,8 @@ export const createNLSearchModel: API.OperationMethod<
2409
2436
  errors: [BadRequest],
2410
2437
  protocol: TypesenseProtocol,
2411
2438
  retry: Retry.Retry,
2439
+ telemetry: TELEMETRY,
2440
+ span: "CreateNLSearchModel",
2412
2441
  }));
2413
2442
 
2414
2443
  export type DebugError = TypesenseOpError;
@@ -2424,6 +2453,8 @@ export const debug: API.OperationMethod<
2424
2453
  errors: [],
2425
2454
  protocol: TypesenseProtocol,
2426
2455
  retry: Retry.Retry,
2456
+ telemetry: TELEMETRY,
2457
+ span: "Debug",
2427
2458
  }));
2428
2459
 
2429
2460
  export type DeleteAliasError = NotFound | TypesenseOpError;
@@ -2439,6 +2470,8 @@ export const deleteAlias: API.OperationMethod<
2439
2470
  errors: [NotFound],
2440
2471
  protocol: TypesenseProtocol,
2441
2472
  retry: Retry.Retry,
2473
+ telemetry: TELEMETRY,
2474
+ span: "DeleteAlias",
2442
2475
  }));
2443
2476
 
2444
2477
  export type DeleteAnalyticsRuleError = NotFound | TypesenseOpError;
@@ -2454,6 +2487,8 @@ export const deleteAnalyticsRule: API.OperationMethod<
2454
2487
  errors: [NotFound],
2455
2488
  protocol: TypesenseProtocol,
2456
2489
  retry: Retry.Retry,
2490
+ telemetry: TELEMETRY,
2491
+ span: "DeleteAnalyticsRule",
2457
2492
  }));
2458
2493
 
2459
2494
  export type DeleteCollectionError = NotFound | TypesenseOpError;
@@ -2469,6 +2504,8 @@ export const deleteCollection: API.OperationMethod<
2469
2504
  errors: [NotFound],
2470
2505
  protocol: TypesenseProtocol,
2471
2506
  retry: Retry.Retry,
2507
+ telemetry: TELEMETRY,
2508
+ span: "DeleteCollection",
2472
2509
  }));
2473
2510
 
2474
2511
  export type DeleteConversationModelError = NotFound | TypesenseOpError;
@@ -2484,6 +2521,8 @@ export const deleteConversationModel: API.OperationMethod<
2484
2521
  errors: [NotFound],
2485
2522
  protocol: TypesenseProtocol,
2486
2523
  retry: Retry.Retry,
2524
+ telemetry: TELEMETRY,
2525
+ span: "DeleteConversationModel",
2487
2526
  }));
2488
2527
 
2489
2528
  export type DeleteCurationSetError = NotFound | TypesenseOpError;
@@ -2499,6 +2538,8 @@ export const deleteCurationSet: API.OperationMethod<
2499
2538
  errors: [NotFound],
2500
2539
  protocol: TypesenseProtocol,
2501
2540
  retry: Retry.Retry,
2541
+ telemetry: TELEMETRY,
2542
+ span: "DeleteCurationSet",
2502
2543
  }));
2503
2544
 
2504
2545
  export type DeleteCurationSetItemError = NotFound | TypesenseOpError;
@@ -2514,6 +2555,8 @@ export const deleteCurationSetItem: API.OperationMethod<
2514
2555
  errors: [NotFound],
2515
2556
  protocol: TypesenseProtocol,
2516
2557
  retry: Retry.Retry,
2558
+ telemetry: TELEMETRY,
2559
+ span: "DeleteCurationSetItem",
2517
2560
  }));
2518
2561
 
2519
2562
  export type DeleteDocumentError = NotFound | TypesenseOpError;
@@ -2529,6 +2572,8 @@ export const deleteDocument: API.OperationMethod<
2529
2572
  errors: [NotFound],
2530
2573
  protocol: TypesenseProtocol,
2531
2574
  retry: Retry.Retry,
2575
+ telemetry: TELEMETRY,
2576
+ span: "DeleteDocument",
2532
2577
  }));
2533
2578
 
2534
2579
  export type DeleteDocumentsError = NotFound | TypesenseOpError;
@@ -2544,6 +2589,8 @@ export const deleteDocuments: API.OperationMethod<
2544
2589
  errors: [NotFound],
2545
2590
  protocol: TypesenseProtocol,
2546
2591
  retry: Retry.Retry,
2592
+ telemetry: TELEMETRY,
2593
+ span: "DeleteDocuments",
2547
2594
  }));
2548
2595
 
2549
2596
  export type DeleteKeyError = BadRequest | NotFound | TypesenseOpError;
@@ -2559,6 +2606,8 @@ export const deleteKey: API.OperationMethod<
2559
2606
  errors: [BadRequest, NotFound],
2560
2607
  protocol: TypesenseProtocol,
2561
2608
  retry: Retry.Retry,
2609
+ telemetry: TELEMETRY,
2610
+ span: "DeleteKey",
2562
2611
  }));
2563
2612
 
2564
2613
  export type DeleteNLSearchModelError = NotFound | TypesenseOpError;
@@ -2574,6 +2623,8 @@ export const deleteNLSearchModel: API.OperationMethod<
2574
2623
  errors: [NotFound],
2575
2624
  protocol: TypesenseProtocol,
2576
2625
  retry: Retry.Retry,
2626
+ telemetry: TELEMETRY,
2627
+ span: "DeleteNLSearchModel",
2577
2628
  }));
2578
2629
 
2579
2630
  export type DeletePresetError = NotFound | TypesenseOpError;
@@ -2589,6 +2640,8 @@ export const deletePreset: API.OperationMethod<
2589
2640
  errors: [NotFound],
2590
2641
  protocol: TypesenseProtocol,
2591
2642
  retry: Retry.Retry,
2643
+ telemetry: TELEMETRY,
2644
+ span: "DeletePreset",
2592
2645
  }));
2593
2646
 
2594
2647
  export type DeleteStopwordsSetError = NotFound | TypesenseOpError;
@@ -2604,6 +2657,8 @@ export const deleteStopwordsSet: API.OperationMethod<
2604
2657
  errors: [NotFound],
2605
2658
  protocol: TypesenseProtocol,
2606
2659
  retry: Retry.Retry,
2660
+ telemetry: TELEMETRY,
2661
+ span: "DeleteStopwordsSet",
2607
2662
  }));
2608
2663
 
2609
2664
  export type DeleteSynonymSetError = NotFound | TypesenseOpError;
@@ -2619,6 +2674,8 @@ export const deleteSynonymSet: API.OperationMethod<
2619
2674
  errors: [NotFound],
2620
2675
  protocol: TypesenseProtocol,
2621
2676
  retry: Retry.Retry,
2677
+ telemetry: TELEMETRY,
2678
+ span: "DeleteSynonymSet",
2622
2679
  }));
2623
2680
 
2624
2681
  export type DeleteSynonymSetItemError = NotFound | TypesenseOpError;
@@ -2634,6 +2691,8 @@ export const deleteSynonymSetItem: API.OperationMethod<
2634
2691
  errors: [NotFound],
2635
2692
  protocol: TypesenseProtocol,
2636
2693
  retry: Retry.Retry,
2694
+ telemetry: TELEMETRY,
2695
+ span: "DeleteSynonymSetItem",
2637
2696
  }));
2638
2697
 
2639
2698
  export type ExportDocumentsError = NotFound | TypesenseOpError;
@@ -2649,6 +2708,8 @@ export const exportDocuments: API.OperationMethod<
2649
2708
  errors: [NotFound],
2650
2709
  protocol: TypesenseProtocol,
2651
2710
  retry: Retry.Retry,
2711
+ telemetry: TELEMETRY,
2712
+ span: "ExportDocuments",
2652
2713
  }));
2653
2714
 
2654
2715
  export type FlushAnalyticsError = TypesenseOpError;
@@ -2664,6 +2725,8 @@ export const flushAnalytics: API.OperationMethod<
2664
2725
  errors: [],
2665
2726
  protocol: TypesenseProtocol,
2666
2727
  retry: Retry.Retry,
2728
+ telemetry: TELEMETRY,
2729
+ span: "FlushAnalytics",
2667
2730
  }));
2668
2731
 
2669
2732
  export type GetAliasError = NotFound | TypesenseOpError;
@@ -2679,6 +2742,8 @@ export const getAlias: API.OperationMethod<
2679
2742
  errors: [NotFound],
2680
2743
  protocol: TypesenseProtocol,
2681
2744
  retry: Retry.Retry,
2745
+ telemetry: TELEMETRY,
2746
+ span: "GetAlias",
2682
2747
  }));
2683
2748
 
2684
2749
  export type GetAliasesError = TypesenseOpError;
@@ -2694,6 +2759,8 @@ export const getAliases: API.OperationMethod<
2694
2759
  errors: [],
2695
2760
  protocol: TypesenseProtocol,
2696
2761
  retry: Retry.Retry,
2762
+ telemetry: TELEMETRY,
2763
+ span: "GetAliases",
2697
2764
  }));
2698
2765
 
2699
2766
  export type GetAllConversationModelsError = TypesenseOpError;
@@ -2709,6 +2776,8 @@ export const getAllConversationModels: API.OperationMethod<
2709
2776
  errors: [],
2710
2777
  protocol: TypesenseProtocol,
2711
2778
  retry: Retry.Retry,
2779
+ telemetry: TELEMETRY,
2780
+ span: "GetAllConversationModels",
2712
2781
  }));
2713
2782
 
2714
2783
  export type GetAllNLSearchModelsError = TypesenseOpError;
@@ -2724,6 +2793,8 @@ export const getAllNLSearchModels: API.OperationMethod<
2724
2793
  errors: [],
2725
2794
  protocol: TypesenseProtocol,
2726
2795
  retry: Retry.Retry,
2796
+ telemetry: TELEMETRY,
2797
+ span: "GetAllNLSearchModels",
2727
2798
  }));
2728
2799
 
2729
2800
  export type GetAllPresetsError = TypesenseOpError;
@@ -2739,6 +2810,8 @@ export const getAllPresets: API.OperationMethod<
2739
2810
  errors: [],
2740
2811
  protocol: TypesenseProtocol,
2741
2812
  retry: Retry.Retry,
2813
+ telemetry: TELEMETRY,
2814
+ span: "GetAllPresets",
2742
2815
  }));
2743
2816
 
2744
2817
  export type GetAnalyticsEventsError = BadRequest | TypesenseOpError;
@@ -2754,6 +2827,8 @@ export const getAnalyticsEvents: API.OperationMethod<
2754
2827
  errors: [BadRequest],
2755
2828
  protocol: TypesenseProtocol,
2756
2829
  retry: Retry.Retry,
2830
+ telemetry: TELEMETRY,
2831
+ span: "GetAnalyticsEvents",
2757
2832
  }));
2758
2833
 
2759
2834
  export type GetAnalyticsRuleError = NotFound | TypesenseOpError;
@@ -2769,6 +2844,8 @@ export const getAnalyticsRule: API.OperationMethod<
2769
2844
  errors: [NotFound],
2770
2845
  protocol: TypesenseProtocol,
2771
2846
  retry: Retry.Retry,
2847
+ telemetry: TELEMETRY,
2848
+ span: "GetAnalyticsRule",
2772
2849
  }));
2773
2850
 
2774
2851
  export type GetAnalyticsRulesError = TypesenseOpError;
@@ -2784,6 +2861,8 @@ export const getAnalyticsRules: API.OperationMethod<
2784
2861
  errors: [],
2785
2862
  protocol: TypesenseProtocol,
2786
2863
  retry: Retry.Retry,
2864
+ telemetry: TELEMETRY,
2865
+ span: "GetAnalyticsRules",
2787
2866
  }));
2788
2867
 
2789
2868
  export type GetAnalyticsStatusError = TypesenseOpError;
@@ -2799,6 +2878,8 @@ export const getAnalyticsStatus: API.OperationMethod<
2799
2878
  errors: [],
2800
2879
  protocol: TypesenseProtocol,
2801
2880
  retry: Retry.Retry,
2881
+ telemetry: TELEMETRY,
2882
+ span: "GetAnalyticsStatus",
2802
2883
  }));
2803
2884
 
2804
2885
  export type GetAPIStatsError = TypesenseOpError;
@@ -2814,6 +2895,8 @@ export const getAPIStats: API.OperationMethod<
2814
2895
  errors: [],
2815
2896
  protocol: TypesenseProtocol,
2816
2897
  retry: Retry.Retry,
2898
+ telemetry: TELEMETRY,
2899
+ span: "GetAPIStats",
2817
2900
  }));
2818
2901
 
2819
2902
  export type GetCollectionError = NotFound | TypesenseOpError;
@@ -2829,6 +2912,8 @@ export const getCollection: API.OperationMethod<
2829
2912
  errors: [NotFound],
2830
2913
  protocol: TypesenseProtocol,
2831
2914
  retry: Retry.Retry,
2915
+ telemetry: TELEMETRY,
2916
+ span: "GetCollection",
2832
2917
  }));
2833
2918
 
2834
2919
  export type GetCollectionsError = TypesenseOpError;
@@ -2844,6 +2929,8 @@ export const getCollections: API.OperationMethod<
2844
2929
  errors: [],
2845
2930
  protocol: TypesenseProtocol,
2846
2931
  retry: Retry.Retry,
2932
+ telemetry: TELEMETRY,
2933
+ span: "GetCollections",
2847
2934
  }));
2848
2935
 
2849
2936
  export type GetConversationModelError = NotFound | TypesenseOpError;
@@ -2859,6 +2946,8 @@ export const getConversationModel: API.OperationMethod<
2859
2946
  errors: [NotFound],
2860
2947
  protocol: TypesenseProtocol,
2861
2948
  retry: Retry.Retry,
2949
+ telemetry: TELEMETRY,
2950
+ span: "GetConversationModel",
2862
2951
  }));
2863
2952
 
2864
2953
  export type GetCurationSetError = NotFound | TypesenseOpError;
@@ -2874,6 +2963,8 @@ export const getCurationSet: API.OperationMethod<
2874
2963
  errors: [NotFound],
2875
2964
  protocol: TypesenseProtocol,
2876
2965
  retry: Retry.Retry,
2966
+ telemetry: TELEMETRY,
2967
+ span: "GetCurationSet",
2877
2968
  }));
2878
2969
 
2879
2970
  export type GetCurationSetItemError = NotFound | TypesenseOpError;
@@ -2889,6 +2980,8 @@ export const getCurationSetItem: API.OperationMethod<
2889
2980
  errors: [NotFound],
2890
2981
  protocol: TypesenseProtocol,
2891
2982
  retry: Retry.Retry,
2983
+ telemetry: TELEMETRY,
2984
+ span: "GetCurationSetItem",
2892
2985
  }));
2893
2986
 
2894
2987
  export type GetCurationSetItemsError = NotFound | TypesenseOpError;
@@ -2904,6 +2997,8 @@ export const getCurationSetItems: API.OperationMethod<
2904
2997
  errors: [NotFound],
2905
2998
  protocol: TypesenseProtocol,
2906
2999
  retry: Retry.Retry,
3000
+ telemetry: TELEMETRY,
3001
+ span: "GetCurationSetItems",
2907
3002
  }));
2908
3003
 
2909
3004
  export type GetCurationSetsError = TypesenseOpError;
@@ -2919,6 +3014,8 @@ export const getCurationSets: API.OperationMethod<
2919
3014
  errors: [],
2920
3015
  protocol: TypesenseProtocol,
2921
3016
  retry: Retry.Retry,
3017
+ telemetry: TELEMETRY,
3018
+ span: "GetCurationSets",
2922
3019
  }));
2923
3020
 
2924
3021
  export type GetDocumentError = NotFound | TypesenseOpError;
@@ -2934,6 +3031,8 @@ export const getDocument: API.OperationMethod<
2934
3031
  errors: [NotFound],
2935
3032
  protocol: TypesenseProtocol,
2936
3033
  retry: Retry.Retry,
3034
+ telemetry: TELEMETRY,
3035
+ span: "GetDocument",
2937
3036
  }));
2938
3037
 
2939
3038
  export type GetKeyError = NotFound | TypesenseOpError;
@@ -2949,6 +3048,8 @@ export const getKey: API.OperationMethod<
2949
3048
  errors: [NotFound],
2950
3049
  protocol: TypesenseProtocol,
2951
3050
  retry: Retry.Retry,
3051
+ telemetry: TELEMETRY,
3052
+ span: "GetKey",
2952
3053
  }));
2953
3054
 
2954
3055
  export type GetKeysError = TypesenseOpError;
@@ -2964,6 +3065,8 @@ export const getKeys: API.OperationMethod<
2964
3065
  errors: [],
2965
3066
  protocol: TypesenseProtocol,
2966
3067
  retry: Retry.Retry,
3068
+ telemetry: TELEMETRY,
3069
+ span: "GetKeys",
2967
3070
  }));
2968
3071
 
2969
3072
  export type GetMetricsError = TypesenseOpError;
@@ -2979,6 +3082,8 @@ export const getMetrics: API.OperationMethod<
2979
3082
  errors: [],
2980
3083
  protocol: TypesenseProtocol,
2981
3084
  retry: Retry.Retry,
3085
+ telemetry: TELEMETRY,
3086
+ span: "GetMetrics",
2982
3087
  }));
2983
3088
 
2984
3089
  export type GetNLSearchModelError = NotFound | TypesenseOpError;
@@ -2994,6 +3099,8 @@ export const getNLSearchModel: API.OperationMethod<
2994
3099
  errors: [NotFound],
2995
3100
  protocol: TypesenseProtocol,
2996
3101
  retry: Retry.Retry,
3102
+ telemetry: TELEMETRY,
3103
+ span: "GetNLSearchModel",
2997
3104
  }));
2998
3105
 
2999
3106
  export type GetPresetError = NotFound | TypesenseOpError;
@@ -3009,6 +3116,8 @@ export const getPreset: API.OperationMethod<
3009
3116
  errors: [NotFound],
3010
3117
  protocol: TypesenseProtocol,
3011
3118
  retry: Retry.Retry,
3119
+ telemetry: TELEMETRY,
3120
+ span: "GetPreset",
3012
3121
  }));
3013
3122
 
3014
3123
  export type GetSchemaChangesError = TypesenseOpError;
@@ -3024,6 +3133,8 @@ export const getSchemaChanges: API.OperationMethod<
3024
3133
  errors: [],
3025
3134
  protocol: TypesenseProtocol,
3026
3135
  retry: Retry.Retry,
3136
+ telemetry: TELEMETRY,
3137
+ span: "GetSchemaChanges",
3027
3138
  }));
3028
3139
 
3029
3140
  export type GetStemmingDictionaryError = NotFound | TypesenseOpError;
@@ -3039,6 +3150,8 @@ export const getStemmingDictionary: API.OperationMethod<
3039
3150
  errors: [NotFound],
3040
3151
  protocol: TypesenseProtocol,
3041
3152
  retry: Retry.Retry,
3153
+ telemetry: TELEMETRY,
3154
+ span: "GetStemmingDictionary",
3042
3155
  }));
3043
3156
 
3044
3157
  export type GetStopwordsSetError = NotFound | TypesenseOpError;
@@ -3054,6 +3167,8 @@ export const getStopwordsSet: API.OperationMethod<
3054
3167
  errors: [NotFound],
3055
3168
  protocol: TypesenseProtocol,
3056
3169
  retry: Retry.Retry,
3170
+ telemetry: TELEMETRY,
3171
+ span: "GetStopwordsSet",
3057
3172
  }));
3058
3173
 
3059
3174
  export type GetStopwordsSetsError = TypesenseOpError;
@@ -3069,6 +3184,8 @@ export const getStopwordsSets: API.OperationMethod<
3069
3184
  errors: [],
3070
3185
  protocol: TypesenseProtocol,
3071
3186
  retry: Retry.Retry,
3187
+ telemetry: TELEMETRY,
3188
+ span: "GetStopwordsSets",
3072
3189
  }));
3073
3190
 
3074
3191
  export type GetSynonymSetError = NotFound | TypesenseOpError;
@@ -3084,6 +3201,8 @@ export const getSynonymSet: API.OperationMethod<
3084
3201
  errors: [NotFound],
3085
3202
  protocol: TypesenseProtocol,
3086
3203
  retry: Retry.Retry,
3204
+ telemetry: TELEMETRY,
3205
+ span: "GetSynonymSet",
3087
3206
  }));
3088
3207
 
3089
3208
  export type GetSynonymSetItemError = NotFound | TypesenseOpError;
@@ -3099,6 +3218,8 @@ export const getSynonymSetItem: API.OperationMethod<
3099
3218
  errors: [NotFound],
3100
3219
  protocol: TypesenseProtocol,
3101
3220
  retry: Retry.Retry,
3221
+ telemetry: TELEMETRY,
3222
+ span: "GetSynonymSetItem",
3102
3223
  }));
3103
3224
 
3104
3225
  export type GetSynonymSetItemsError = NotFound | TypesenseOpError;
@@ -3114,6 +3235,8 @@ export const getSynonymSetItems: API.OperationMethod<
3114
3235
  errors: [NotFound],
3115
3236
  protocol: TypesenseProtocol,
3116
3237
  retry: Retry.Retry,
3238
+ telemetry: TELEMETRY,
3239
+ span: "GetSynonymSetItems",
3117
3240
  }));
3118
3241
 
3119
3242
  export type GetSynonymSetsError = TypesenseOpError;
@@ -3129,6 +3252,8 @@ export const getSynonymSets: API.OperationMethod<
3129
3252
  errors: [],
3130
3253
  protocol: TypesenseProtocol,
3131
3254
  retry: Retry.Retry,
3255
+ telemetry: TELEMETRY,
3256
+ span: "GetSynonymSets",
3132
3257
  }));
3133
3258
 
3134
3259
  export type HealthError = TypesenseOpError;
@@ -3144,6 +3269,8 @@ export const health: API.OperationMethod<
3144
3269
  errors: [],
3145
3270
  protocol: TypesenseProtocol,
3146
3271
  retry: Retry.Retry,
3272
+ telemetry: TELEMETRY,
3273
+ span: "Health",
3147
3274
  }));
3148
3275
 
3149
3276
  export type ImportDocumentsError = BadRequest | NotFound | TypesenseOpError;
@@ -3159,6 +3286,8 @@ export const importDocuments: API.OperationMethod<
3159
3286
  errors: [BadRequest, NotFound],
3160
3287
  protocol: TypesenseProtocol,
3161
3288
  retry: Retry.Retry,
3289
+ telemetry: TELEMETRY,
3290
+ span: "ImportDocuments",
3162
3291
  }));
3163
3292
 
3164
3293
  export type ImportStemmingDictionaryError = BadRequest | TypesenseOpError;
@@ -3174,6 +3303,8 @@ export const importStemmingDictionary: API.OperationMethod<
3174
3303
  errors: [BadRequest],
3175
3304
  protocol: TypesenseProtocol,
3176
3305
  retry: Retry.Retry,
3306
+ telemetry: TELEMETRY,
3307
+ span: "ImportStemmingDictionary",
3177
3308
  }));
3178
3309
 
3179
3310
  export type IndexDocumentError = NotFound | TypesenseOpError;
@@ -3189,6 +3320,8 @@ export const indexDocument: API.OperationMethod<
3189
3320
  errors: [NotFound],
3190
3321
  protocol: TypesenseProtocol,
3191
3322
  retry: Retry.Retry,
3323
+ telemetry: TELEMETRY,
3324
+ span: "IndexDocument",
3192
3325
  }));
3193
3326
 
3194
3327
  export type ListStemmingDictionariesError = TypesenseOpError;
@@ -3204,6 +3337,8 @@ export const listStemmingDictionaries: API.OperationMethod<
3204
3337
  errors: [],
3205
3338
  protocol: TypesenseProtocol,
3206
3339
  retry: Retry.Retry,
3340
+ telemetry: TELEMETRY,
3341
+ span: "ListStemmingDictionaries",
3207
3342
  }));
3208
3343
 
3209
3344
  export type SearchCollectionError = BadRequest | NotFound | TypesenseOpError;
@@ -3219,6 +3354,8 @@ export const searchCollection: API.OperationMethod<
3219
3354
  errors: [BadRequest, NotFound],
3220
3355
  protocol: TypesenseProtocol,
3221
3356
  retry: Retry.Retry,
3357
+ telemetry: TELEMETRY,
3358
+ span: "SearchCollection",
3222
3359
  }));
3223
3360
 
3224
3361
  export type SearchMultiError = BadRequest | TypesenseOpError;
@@ -3234,6 +3371,8 @@ export const searchMulti: API.OperationMethod<
3234
3371
  errors: [BadRequest],
3235
3372
  protocol: TypesenseProtocol,
3236
3373
  retry: Retry.Retry,
3374
+ telemetry: TELEMETRY,
3375
+ span: "SearchMulti",
3237
3376
  }));
3238
3377
 
3239
3378
  export type TakeSnapshotError = TypesenseOpError;
@@ -3249,6 +3388,8 @@ export const takeSnapshot: API.OperationMethod<
3249
3388
  errors: [],
3250
3389
  protocol: TypesenseProtocol,
3251
3390
  retry: Retry.Retry,
3391
+ telemetry: TELEMETRY,
3392
+ span: "TakeSnapshot",
3252
3393
  }));
3253
3394
 
3254
3395
  export type ToggleSlowRequestLogError = TypesenseOpError;
@@ -3264,6 +3405,8 @@ export const toggleSlowRequestLog: API.OperationMethod<
3264
3405
  errors: [],
3265
3406
  protocol: TypesenseProtocol,
3266
3407
  retry: Retry.Retry,
3408
+ telemetry: TELEMETRY,
3409
+ span: "ToggleSlowRequestLog",
3267
3410
  }));
3268
3411
 
3269
3412
  export type UpdateCollectionError = BadRequest | NotFound | TypesenseOpError;
@@ -3279,6 +3422,8 @@ export const updateCollection: API.OperationMethod<
3279
3422
  errors: [BadRequest, NotFound],
3280
3423
  protocol: TypesenseProtocol,
3281
3424
  retry: Retry.Retry,
3425
+ telemetry: TELEMETRY,
3426
+ span: "UpdateCollection",
3282
3427
  }));
3283
3428
 
3284
3429
  export type UpdateConversationModelError = BadRequest | NotFound | TypesenseOpError;
@@ -3294,6 +3439,8 @@ export const updateConversationModel: API.OperationMethod<
3294
3439
  errors: [BadRequest, NotFound],
3295
3440
  protocol: TypesenseProtocol,
3296
3441
  retry: Retry.Retry,
3442
+ telemetry: TELEMETRY,
3443
+ span: "UpdateConversationModel",
3297
3444
  }));
3298
3445
 
3299
3446
  export type UpdateDocumentError = NotFound | TypesenseOpError;
@@ -3309,6 +3456,8 @@ export const updateDocument: API.OperationMethod<
3309
3456
  errors: [NotFound],
3310
3457
  protocol: TypesenseProtocol,
3311
3458
  retry: Retry.Retry,
3459
+ telemetry: TELEMETRY,
3460
+ span: "UpdateDocument",
3312
3461
  }));
3313
3462
 
3314
3463
  export type UpdateDocumentsError = BadRequest | NotFound | TypesenseOpError;
@@ -3324,6 +3473,8 @@ export const updateDocuments: API.OperationMethod<
3324
3473
  errors: [BadRequest, NotFound],
3325
3474
  protocol: TypesenseProtocol,
3326
3475
  retry: Retry.Retry,
3476
+ telemetry: TELEMETRY,
3477
+ span: "UpdateDocuments",
3327
3478
  }));
3328
3479
 
3329
3480
  export type UpdateNLSearchModelError = BadRequest | NotFound | TypesenseOpError;
@@ -3339,6 +3490,8 @@ export const updateNLSearchModel: API.OperationMethod<
3339
3490
  errors: [BadRequest, NotFound],
3340
3491
  protocol: TypesenseProtocol,
3341
3492
  retry: Retry.Retry,
3493
+ telemetry: TELEMETRY,
3494
+ span: "UpdateNLSearchModel",
3342
3495
  }));
3343
3496
 
3344
3497
  export type UpsertAliasError = BadRequest | NotFound | TypesenseOpError;
@@ -3354,6 +3507,8 @@ export const upsertAlias: API.OperationMethod<
3354
3507
  errors: [BadRequest, NotFound],
3355
3508
  protocol: TypesenseProtocol,
3356
3509
  retry: Retry.Retry,
3510
+ telemetry: TELEMETRY,
3511
+ span: "UpsertAlias",
3357
3512
  }));
3358
3513
 
3359
3514
  export type UpsertAnalyticsRuleError = BadRequest | TypesenseOpError;
@@ -3369,6 +3524,8 @@ export const upsertAnalyticsRule: API.OperationMethod<
3369
3524
  errors: [BadRequest],
3370
3525
  protocol: TypesenseProtocol,
3371
3526
  retry: Retry.Retry,
3527
+ telemetry: TELEMETRY,
3528
+ span: "UpsertAnalyticsRule",
3372
3529
  }));
3373
3530
 
3374
3531
  export type UpsertCurationSetError = BadRequest | TypesenseOpError;
@@ -3384,6 +3541,8 @@ export const upsertCurationSet: API.OperationMethod<
3384
3541
  errors: [BadRequest],
3385
3542
  protocol: TypesenseProtocol,
3386
3543
  retry: Retry.Retry,
3544
+ telemetry: TELEMETRY,
3545
+ span: "UpsertCurationSet",
3387
3546
  }));
3388
3547
 
3389
3548
  export type UpsertCurationSetItemError = BadRequest | TypesenseOpError;
@@ -3399,6 +3558,8 @@ export const upsertCurationSetItem: API.OperationMethod<
3399
3558
  errors: [BadRequest],
3400
3559
  protocol: TypesenseProtocol,
3401
3560
  retry: Retry.Retry,
3561
+ telemetry: TELEMETRY,
3562
+ span: "UpsertCurationSetItem",
3402
3563
  }));
3403
3564
 
3404
3565
  export type UpsertPresetError = BadRequest | TypesenseOpError;
@@ -3414,6 +3575,8 @@ export const upsertPreset: API.OperationMethod<
3414
3575
  errors: [BadRequest],
3415
3576
  protocol: TypesenseProtocol,
3416
3577
  retry: Retry.Retry,
3578
+ telemetry: TELEMETRY,
3579
+ span: "UpsertPreset",
3417
3580
  }));
3418
3581
 
3419
3582
  export type UpsertStopwordsSetError = BadRequest | TypesenseOpError;
@@ -3429,6 +3592,8 @@ export const upsertStopwordsSet: API.OperationMethod<
3429
3592
  errors: [BadRequest],
3430
3593
  protocol: TypesenseProtocol,
3431
3594
  retry: Retry.Retry,
3595
+ telemetry: TELEMETRY,
3596
+ span: "UpsertStopwordsSet",
3432
3597
  }));
3433
3598
 
3434
3599
  export type UpsertSynonymSetError = BadRequest | TypesenseOpError;
@@ -3444,6 +3609,8 @@ export const upsertSynonymSet: API.OperationMethod<
3444
3609
  errors: [BadRequest],
3445
3610
  protocol: TypesenseProtocol,
3446
3611
  retry: Retry.Retry,
3612
+ telemetry: TELEMETRY,
3613
+ span: "UpsertSynonymSet",
3447
3614
  }));
3448
3615
 
3449
3616
  export type UpsertSynonymSetItemError = BadRequest | TypesenseOpError;
@@ -3459,6 +3626,8 @@ export const upsertSynonymSetItem: API.OperationMethod<
3459
3626
  errors: [BadRequest],
3460
3627
  protocol: TypesenseProtocol,
3461
3628
  retry: Retry.Retry,
3629
+ telemetry: TELEMETRY,
3630
+ span: "UpsertSynonymSetItem",
3462
3631
  }));
3463
3632
 
3464
3633
  export type VoteError = TypesenseOpError;
@@ -3470,6 +3639,8 @@ export const vote: API.OperationMethod<VoteRequest, SuccessStatus, VoteError, Ty
3470
3639
  errors: [],
3471
3640
  protocol: TypesenseProtocol,
3472
3641
  retry: Retry.Retry,
3642
+ telemetry: TELEMETRY,
3643
+ span: "Vote",
3473
3644
  }));
3474
3645
 
3475
3646
  // Schema builders: each runs one schema initializer, on that schema's first use.