@gtmi/ramp-site-client 0.0.1

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.
@@ -0,0 +1,1934 @@
1
+ // This file is auto-generated by @hey-api/openapi-ts
2
+
3
+ import type { Client, ClientMeta, Options as Options2, RequestResult, TDataShape } from './client';
4
+ import { client } from './client.gen';
5
+ import type {
6
+ DeleteApiConversationalIntelligenceOperatorData,
7
+ DeleteApiConversationalIntelligenceOperatorErrors,
8
+ DeleteApiConversationalIntelligenceOperatorResponses,
9
+ DeleteApiConversationMemoryConversationSummariesData,
10
+ DeleteApiConversationMemoryConversationSummariesErrors,
11
+ DeleteApiConversationMemoryConversationSummariesResponses,
12
+ DeleteApiConversationMemoryIdentifiersData,
13
+ DeleteApiConversationMemoryIdentifiersErrors,
14
+ DeleteApiConversationMemoryIdentifiersResponses,
15
+ DeleteApiConversationMemoryObservationsData,
16
+ DeleteApiConversationMemoryObservationsErrors,
17
+ DeleteApiConversationMemoryObservationsResponses,
18
+ DeleteApiConversationMemoryProfilesData,
19
+ DeleteApiConversationMemoryProfilesErrors,
20
+ DeleteApiConversationMemoryProfilesResponses,
21
+ DeleteApiConversationMemoryResetData,
22
+ DeleteApiConversationMemoryResetErrors,
23
+ DeleteApiConversationMemoryResetResponses,
24
+ DeleteApiConversationsDeleteData,
25
+ DeleteApiConversationsDeleteErrors,
26
+ DeleteApiConversationsDeleteResponses,
27
+ DeleteApiLeadGenData,
28
+ DeleteApiLeadGenErrors,
29
+ DeleteApiLeadGenResponses,
30
+ DeleteApiLinkShortenerData,
31
+ DeleteApiLinkShortenerErrors,
32
+ DeleteApiLinkShortenerResponses,
33
+ DeleteApiLiveNumbersData,
34
+ DeleteApiLiveNumbersErrors,
35
+ DeleteApiLiveNumbersResponses,
36
+ DeleteApiTemplateData,
37
+ DeleteApiTemplateErrors,
38
+ DeleteApiTemplateResponses,
39
+ GetApiCampaignData,
40
+ GetApiCampaignErrors,
41
+ GetApiCampaignResponses,
42
+ GetApiConversationalIntelligenceOperatorData,
43
+ GetApiConversationalIntelligenceOperatorErrors,
44
+ GetApiConversationalIntelligenceOperatorResponses,
45
+ GetApiConversationMemoryConversationSummariesData,
46
+ GetApiConversationMemoryConversationSummariesErrors,
47
+ GetApiConversationMemoryConversationSummariesResponses,
48
+ GetApiConversationMemoryIdentifiersData,
49
+ GetApiConversationMemoryIdentifiersErrors,
50
+ GetApiConversationMemoryIdentifiersResponses,
51
+ GetApiConversationMemoryObservationsData,
52
+ GetApiConversationMemoryObservationsErrors,
53
+ GetApiConversationMemoryObservationsResponses,
54
+ GetApiConversationMemoryProfilesData,
55
+ GetApiConversationMemoryProfilesErrors,
56
+ GetApiConversationMemoryProfilesResponses,
57
+ GetApiConversationMemoryTraitGroupsData,
58
+ GetApiConversationMemoryTraitGroupsErrors,
59
+ GetApiConversationMemoryTraitGroupsResponses,
60
+ GetApiConversationMemoryTraitsData,
61
+ GetApiConversationMemoryTraitsErrors,
62
+ GetApiConversationMemoryTraitsResponses,
63
+ GetApiCountryConfigsData,
64
+ GetApiCountryConfigsErrors,
65
+ GetApiCountryConfigsResponses,
66
+ GetApiIntelligenceConfigurationData,
67
+ GetApiIntelligenceConfigurationErrors,
68
+ GetApiIntelligenceConfigurationResponses,
69
+ GetApiInternalNavData,
70
+ GetApiInternalNavErrors,
71
+ GetApiInternalNavResponses,
72
+ GetApiIsvLogoData,
73
+ GetApiIsvLogoErrors,
74
+ GetApiIsvLogoResponses,
75
+ GetApiLeadGenData,
76
+ GetApiLeadGenErrors,
77
+ GetApiLeadGenResponses,
78
+ GetApiLinkShortenerData,
79
+ GetApiLinkShortenerErrors,
80
+ GetApiLinkShortenerResponses,
81
+ GetApiLiveNumbersData,
82
+ GetApiLiveNumbersErrors,
83
+ GetApiLiveNumbersResponses,
84
+ GetApiPhoneLogsByPhoneNumberData,
85
+ GetApiPhoneLogsByPhoneNumberErrors,
86
+ GetApiPhoneLogsByPhoneNumberResponses,
87
+ GetApiRecentlyActiveNumbersData,
88
+ GetApiRecentlyActiveNumbersErrors,
89
+ GetApiRecentlyActiveNumbersResponses,
90
+ GetApiSessionData,
91
+ GetApiSessionErrors,
92
+ GetApiSessionResponses,
93
+ GetApiSupportedRegionsData,
94
+ GetApiSupportedRegionsErrors,
95
+ GetApiSupportedRegionsResponses,
96
+ PatchApiConversationMemoryConversationSummariesData,
97
+ PatchApiConversationMemoryConversationSummariesErrors,
98
+ PatchApiConversationMemoryConversationSummariesResponses,
99
+ PatchApiConversationMemoryIdentifiersData,
100
+ PatchApiConversationMemoryIdentifiersErrors,
101
+ PatchApiConversationMemoryIdentifiersResponses,
102
+ PatchApiConversationMemoryObservationsData,
103
+ PatchApiConversationMemoryObservationsErrors,
104
+ PatchApiConversationMemoryObservationsResponses,
105
+ PatchApiConversationMemoryProfilesData,
106
+ PatchApiConversationMemoryProfilesErrors,
107
+ PatchApiConversationMemoryProfilesResponses,
108
+ PatchApiConversationMemoryTraitGroupsData,
109
+ PatchApiConversationMemoryTraitGroupsErrors,
110
+ PatchApiConversationMemoryTraitGroupsResponses,
111
+ PatchApiLeadGenData,
112
+ PatchApiLeadGenErrors,
113
+ PatchApiLeadGenResponses,
114
+ PatchApiLinkShortenerData,
115
+ PatchApiLinkShortenerErrors,
116
+ PatchApiLinkShortenerResponses,
117
+ PostApiAlgoliaSecuredKeyData,
118
+ PostApiAlgoliaSecuredKeyErrors,
119
+ PostApiAlgoliaSecuredKeyResponses,
120
+ PostApiConversationalIntelligenceOperatorData,
121
+ PostApiConversationalIntelligenceOperatorErrors,
122
+ PostApiConversationalIntelligenceOperatorResponses,
123
+ PostApiConversationMemoryConversationSummariesData,
124
+ PostApiConversationMemoryConversationSummariesErrors,
125
+ PostApiConversationMemoryConversationSummariesResponses,
126
+ PostApiConversationMemoryIdentifiersData,
127
+ PostApiConversationMemoryIdentifiersErrors,
128
+ PostApiConversationMemoryIdentifiersResponses,
129
+ PostApiConversationMemoryObservationsData,
130
+ PostApiConversationMemoryObservationsErrors,
131
+ PostApiConversationMemoryObservationsResponses,
132
+ PostApiConversationMemoryProfilesData,
133
+ PostApiConversationMemoryProfilesErrors,
134
+ PostApiConversationMemoryProfilesLookupData,
135
+ PostApiConversationMemoryProfilesLookupErrors,
136
+ PostApiConversationMemoryProfilesLookupResponses,
137
+ PostApiConversationMemoryProfilesResponses,
138
+ PostApiConversationMemoryRecallData,
139
+ PostApiConversationMemoryRecallErrors,
140
+ PostApiConversationMemoryRecallResponses,
141
+ PostApiConversationMemoryTraitGroupsData,
142
+ PostApiConversationMemoryTraitGroupsErrors,
143
+ PostApiConversationMemoryTraitGroupsResponses,
144
+ PostApiConversationsSaveData,
145
+ PostApiConversationsSaveErrors,
146
+ PostApiConversationsSaveResponses,
147
+ PostApiConversationsShareData,
148
+ PostApiConversationsShareErrors,
149
+ PostApiConversationsShareResponses,
150
+ PostApiCreateExternalFlexConnectionData,
151
+ PostApiCreateExternalFlexConnectionErrors,
152
+ PostApiCreateExternalFlexConnectionResponses,
153
+ PostApiEnhancePromptData,
154
+ PostApiEnhancePromptErrors,
155
+ PostApiEnhancePromptResponses,
156
+ PostApiGenerateTagsData,
157
+ PostApiGenerateTagsErrors,
158
+ PostApiGenerateTagsResponses,
159
+ PostApiIncrementViewCountData,
160
+ PostApiIncrementViewCountErrors,
161
+ PostApiIncrementViewCountResponses,
162
+ PostApiIntelligenceConfigurationData,
163
+ PostApiIntelligenceConfigurationErrors,
164
+ PostApiIntelligenceConfigurationResponses,
165
+ PostApiLeadGenData,
166
+ PostApiLeadGenErrors,
167
+ PostApiLeadGenResponses,
168
+ PostApiLinkShortenerData,
169
+ PostApiLinkShortenerErrors,
170
+ PostApiLinkShortenerResponses,
171
+ PostApiOutboundCallData,
172
+ PostApiOutboundCallErrors,
173
+ PostApiOutboundCallResponses,
174
+ PostApiOutboundCommunicationTextData,
175
+ PostApiOutboundCommunicationTextErrors,
176
+ PostApiOutboundCommunicationTextResponses,
177
+ PostApiSegmentIdentifyData,
178
+ PostApiSegmentIdentifyErrors,
179
+ PostApiSegmentIdentifyResponses,
180
+ PostApiSegmentProfileData,
181
+ PostApiSegmentProfileErrors,
182
+ PostApiSegmentProfileResponses,
183
+ PostApiTagsData,
184
+ PostApiTagsErrors,
185
+ PostApiTagsResponses,
186
+ PostApiTelemetryData,
187
+ PostApiTelemetryErrors,
188
+ PostApiTelemetryResponses,
189
+ PostApiTemplateAutogenData,
190
+ PostApiTemplateAutogenErrors,
191
+ PostApiTemplateAutogenResponses,
192
+ PostApiVerifyCheckData,
193
+ PostApiVerifyCheckErrors,
194
+ PostApiVerifyCheckResponses,
195
+ PostApiVerifySendData,
196
+ PostApiVerifySendErrors,
197
+ PostApiVerifySendResponses,
198
+ PutApiConversationalIntelligenceOperatorData,
199
+ PutApiConversationalIntelligenceOperatorErrors,
200
+ PutApiConversationalIntelligenceOperatorResponses,
201
+ PutApiIntelligenceConfigurationData,
202
+ PutApiIntelligenceConfigurationErrors,
203
+ PutApiIntelligenceConfigurationResponses,
204
+ } from './types.gen';
205
+
206
+ export type Options<
207
+ TData extends TDataShape = TDataShape,
208
+ ThrowOnError extends boolean = boolean,
209
+ TResponse = unknown,
210
+ > = Options2<TData, ThrowOnError, TResponse> & {
211
+ /**
212
+ * You can provide a client instance returned by `createClient()` instead of
213
+ * individual options. This might be also useful if you want to implement a
214
+ * custom client.
215
+ */
216
+ client?: Client;
217
+ /**
218
+ * You can pass arbitrary values through the `meta` object. This can be
219
+ * used to access values that aren't defined as part of the SDK function.
220
+ */
221
+ meta?: keyof ClientMeta extends never ? Record<string, unknown> : ClientMeta;
222
+ };
223
+
224
+ /**
225
+ * POST algolia-secured-key
226
+ */
227
+ export const postApiAlgoliaSecuredKey = <ThrowOnError extends boolean = false>(
228
+ options?: Options<PostApiAlgoliaSecuredKeyData, ThrowOnError>,
229
+ ): RequestResult<PostApiAlgoliaSecuredKeyResponses, PostApiAlgoliaSecuredKeyErrors, ThrowOnError> =>
230
+ (options?.client ?? client).post<
231
+ PostApiAlgoliaSecuredKeyResponses,
232
+ PostApiAlgoliaSecuredKeyErrors,
233
+ ThrowOnError
234
+ >({
235
+ security: [
236
+ {
237
+ in: 'cookie',
238
+ name: 'next-auth.session-token',
239
+ type: 'apiKey',
240
+ },
241
+ ],
242
+ url: '/api/algolia-secured-key',
243
+ ...options,
244
+ });
245
+
246
+ /**
247
+ * GET campaign
248
+ */
249
+ export const getApiCampaign = <ThrowOnError extends boolean = false>(
250
+ options?: Options<GetApiCampaignData, ThrowOnError>,
251
+ ): RequestResult<GetApiCampaignResponses, GetApiCampaignErrors, ThrowOnError> =>
252
+ (options?.client ?? client).get<GetApiCampaignResponses, GetApiCampaignErrors, ThrowOnError>({
253
+ security: [
254
+ {
255
+ in: 'cookie',
256
+ name: 'next-auth.session-token',
257
+ type: 'apiKey',
258
+ },
259
+ ],
260
+ url: '/api/campaign',
261
+ ...options,
262
+ });
263
+
264
+ /**
265
+ * DELETE conversation-memory / conversation-summaries
266
+ */
267
+ export const deleteApiConversationMemoryConversationSummaries = <
268
+ ThrowOnError extends boolean = false,
269
+ >(
270
+ options: Options<DeleteApiConversationMemoryConversationSummariesData, ThrowOnError>,
271
+ ): RequestResult<
272
+ DeleteApiConversationMemoryConversationSummariesResponses,
273
+ DeleteApiConversationMemoryConversationSummariesErrors,
274
+ ThrowOnError
275
+ > =>
276
+ (options.client ?? client).delete<
277
+ DeleteApiConversationMemoryConversationSummariesResponses,
278
+ DeleteApiConversationMemoryConversationSummariesErrors,
279
+ ThrowOnError
280
+ >({
281
+ security: [
282
+ {
283
+ in: 'cookie',
284
+ name: 'next-auth.session-token',
285
+ type: 'apiKey',
286
+ },
287
+ ],
288
+ url: '/api/conversation-memory/conversation-summaries',
289
+ ...options,
290
+ });
291
+
292
+ /**
293
+ * GET conversation-memory / conversation-summaries
294
+ */
295
+ export const getApiConversationMemoryConversationSummaries = <ThrowOnError extends boolean = false>(
296
+ options: Options<GetApiConversationMemoryConversationSummariesData, ThrowOnError>,
297
+ ): RequestResult<
298
+ GetApiConversationMemoryConversationSummariesResponses,
299
+ GetApiConversationMemoryConversationSummariesErrors,
300
+ ThrowOnError
301
+ > =>
302
+ (options.client ?? client).get<
303
+ GetApiConversationMemoryConversationSummariesResponses,
304
+ GetApiConversationMemoryConversationSummariesErrors,
305
+ ThrowOnError
306
+ >({
307
+ security: [
308
+ {
309
+ in: 'cookie',
310
+ name: 'next-auth.session-token',
311
+ type: 'apiKey',
312
+ },
313
+ ],
314
+ url: '/api/conversation-memory/conversation-summaries',
315
+ ...options,
316
+ });
317
+
318
+ /**
319
+ * PATCH conversation-memory / conversation-summaries
320
+ */
321
+ export const patchApiConversationMemoryConversationSummaries = <
322
+ ThrowOnError extends boolean = false,
323
+ >(
324
+ options: Options<PatchApiConversationMemoryConversationSummariesData, ThrowOnError>,
325
+ ): RequestResult<
326
+ PatchApiConversationMemoryConversationSummariesResponses,
327
+ PatchApiConversationMemoryConversationSummariesErrors,
328
+ ThrowOnError
329
+ > =>
330
+ (options.client ?? client).patch<
331
+ PatchApiConversationMemoryConversationSummariesResponses,
332
+ PatchApiConversationMemoryConversationSummariesErrors,
333
+ ThrowOnError
334
+ >({
335
+ security: [
336
+ {
337
+ in: 'cookie',
338
+ name: 'next-auth.session-token',
339
+ type: 'apiKey',
340
+ },
341
+ ],
342
+ url: '/api/conversation-memory/conversation-summaries',
343
+ ...options,
344
+ headers: {
345
+ 'Content-Type': 'application/json',
346
+ ...options.headers,
347
+ },
348
+ });
349
+
350
+ /**
351
+ * POST conversation-memory / conversation-summaries
352
+ */
353
+ export const postApiConversationMemoryConversationSummaries = <
354
+ ThrowOnError extends boolean = false,
355
+ >(
356
+ options: Options<PostApiConversationMemoryConversationSummariesData, ThrowOnError>,
357
+ ): RequestResult<
358
+ PostApiConversationMemoryConversationSummariesResponses,
359
+ PostApiConversationMemoryConversationSummariesErrors,
360
+ ThrowOnError
361
+ > =>
362
+ (options.client ?? client).post<
363
+ PostApiConversationMemoryConversationSummariesResponses,
364
+ PostApiConversationMemoryConversationSummariesErrors,
365
+ ThrowOnError
366
+ >({
367
+ security: [
368
+ {
369
+ in: 'cookie',
370
+ name: 'next-auth.session-token',
371
+ type: 'apiKey',
372
+ },
373
+ ],
374
+ url: '/api/conversation-memory/conversation-summaries',
375
+ ...options,
376
+ headers: {
377
+ 'Content-Type': 'application/json',
378
+ ...options.headers,
379
+ },
380
+ });
381
+
382
+ /**
383
+ * DELETE conversation-memory / identifiers
384
+ */
385
+ export const deleteApiConversationMemoryIdentifiers = <ThrowOnError extends boolean = false>(
386
+ options: Options<DeleteApiConversationMemoryIdentifiersData, ThrowOnError>,
387
+ ): RequestResult<
388
+ DeleteApiConversationMemoryIdentifiersResponses,
389
+ DeleteApiConversationMemoryIdentifiersErrors,
390
+ ThrowOnError
391
+ > =>
392
+ (options.client ?? client).delete<
393
+ DeleteApiConversationMemoryIdentifiersResponses,
394
+ DeleteApiConversationMemoryIdentifiersErrors,
395
+ ThrowOnError
396
+ >({
397
+ security: [
398
+ {
399
+ in: 'cookie',
400
+ name: 'next-auth.session-token',
401
+ type: 'apiKey',
402
+ },
403
+ ],
404
+ url: '/api/conversation-memory/identifiers',
405
+ ...options,
406
+ });
407
+
408
+ /**
409
+ * GET conversation-memory / identifiers
410
+ */
411
+ export const getApiConversationMemoryIdentifiers = <ThrowOnError extends boolean = false>(
412
+ options: Options<GetApiConversationMemoryIdentifiersData, ThrowOnError>,
413
+ ): RequestResult<
414
+ GetApiConversationMemoryIdentifiersResponses,
415
+ GetApiConversationMemoryIdentifiersErrors,
416
+ ThrowOnError
417
+ > =>
418
+ (options.client ?? client).get<
419
+ GetApiConversationMemoryIdentifiersResponses,
420
+ GetApiConversationMemoryIdentifiersErrors,
421
+ ThrowOnError
422
+ >({
423
+ security: [
424
+ {
425
+ in: 'cookie',
426
+ name: 'next-auth.session-token',
427
+ type: 'apiKey',
428
+ },
429
+ ],
430
+ url: '/api/conversation-memory/identifiers',
431
+ ...options,
432
+ });
433
+
434
+ /**
435
+ * PATCH conversation-memory / identifiers
436
+ */
437
+ export const patchApiConversationMemoryIdentifiers = <ThrowOnError extends boolean = false>(
438
+ options: Options<PatchApiConversationMemoryIdentifiersData, ThrowOnError>,
439
+ ): RequestResult<
440
+ PatchApiConversationMemoryIdentifiersResponses,
441
+ PatchApiConversationMemoryIdentifiersErrors,
442
+ ThrowOnError
443
+ > =>
444
+ (options.client ?? client).patch<
445
+ PatchApiConversationMemoryIdentifiersResponses,
446
+ PatchApiConversationMemoryIdentifiersErrors,
447
+ ThrowOnError
448
+ >({
449
+ security: [
450
+ {
451
+ in: 'cookie',
452
+ name: 'next-auth.session-token',
453
+ type: 'apiKey',
454
+ },
455
+ ],
456
+ url: '/api/conversation-memory/identifiers',
457
+ ...options,
458
+ headers: {
459
+ 'Content-Type': 'application/json',
460
+ ...options.headers,
461
+ },
462
+ });
463
+
464
+ /**
465
+ * POST conversation-memory / identifiers
466
+ */
467
+ export const postApiConversationMemoryIdentifiers = <ThrowOnError extends boolean = false>(
468
+ options: Options<PostApiConversationMemoryIdentifiersData, ThrowOnError>,
469
+ ): RequestResult<
470
+ PostApiConversationMemoryIdentifiersResponses,
471
+ PostApiConversationMemoryIdentifiersErrors,
472
+ ThrowOnError
473
+ > =>
474
+ (options.client ?? client).post<
475
+ PostApiConversationMemoryIdentifiersResponses,
476
+ PostApiConversationMemoryIdentifiersErrors,
477
+ ThrowOnError
478
+ >({
479
+ security: [
480
+ {
481
+ in: 'cookie',
482
+ name: 'next-auth.session-token',
483
+ type: 'apiKey',
484
+ },
485
+ ],
486
+ url: '/api/conversation-memory/identifiers',
487
+ ...options,
488
+ headers: {
489
+ 'Content-Type': 'application/json',
490
+ ...options.headers,
491
+ },
492
+ });
493
+
494
+ /**
495
+ * DELETE conversation-memory / observations
496
+ */
497
+ export const deleteApiConversationMemoryObservations = <ThrowOnError extends boolean = false>(
498
+ options: Options<DeleteApiConversationMemoryObservationsData, ThrowOnError>,
499
+ ): RequestResult<
500
+ DeleteApiConversationMemoryObservationsResponses,
501
+ DeleteApiConversationMemoryObservationsErrors,
502
+ ThrowOnError
503
+ > =>
504
+ (options.client ?? client).delete<
505
+ DeleteApiConversationMemoryObservationsResponses,
506
+ DeleteApiConversationMemoryObservationsErrors,
507
+ ThrowOnError
508
+ >({
509
+ security: [
510
+ {
511
+ in: 'cookie',
512
+ name: 'next-auth.session-token',
513
+ type: 'apiKey',
514
+ },
515
+ ],
516
+ url: '/api/conversation-memory/observations',
517
+ ...options,
518
+ });
519
+
520
+ /**
521
+ * GET conversation-memory / observations
522
+ */
523
+ export const getApiConversationMemoryObservations = <ThrowOnError extends boolean = false>(
524
+ options: Options<GetApiConversationMemoryObservationsData, ThrowOnError>,
525
+ ): RequestResult<
526
+ GetApiConversationMemoryObservationsResponses,
527
+ GetApiConversationMemoryObservationsErrors,
528
+ ThrowOnError
529
+ > =>
530
+ (options.client ?? client).get<
531
+ GetApiConversationMemoryObservationsResponses,
532
+ GetApiConversationMemoryObservationsErrors,
533
+ ThrowOnError
534
+ >({
535
+ security: [
536
+ {
537
+ in: 'cookie',
538
+ name: 'next-auth.session-token',
539
+ type: 'apiKey',
540
+ },
541
+ ],
542
+ url: '/api/conversation-memory/observations',
543
+ ...options,
544
+ });
545
+
546
+ /**
547
+ * PATCH conversation-memory / observations
548
+ */
549
+ export const patchApiConversationMemoryObservations = <ThrowOnError extends boolean = false>(
550
+ options: Options<PatchApiConversationMemoryObservationsData, ThrowOnError>,
551
+ ): RequestResult<
552
+ PatchApiConversationMemoryObservationsResponses,
553
+ PatchApiConversationMemoryObservationsErrors,
554
+ ThrowOnError
555
+ > =>
556
+ (options.client ?? client).patch<
557
+ PatchApiConversationMemoryObservationsResponses,
558
+ PatchApiConversationMemoryObservationsErrors,
559
+ ThrowOnError
560
+ >({
561
+ security: [
562
+ {
563
+ in: 'cookie',
564
+ name: 'next-auth.session-token',
565
+ type: 'apiKey',
566
+ },
567
+ ],
568
+ url: '/api/conversation-memory/observations',
569
+ ...options,
570
+ headers: {
571
+ 'Content-Type': 'application/json',
572
+ ...options.headers,
573
+ },
574
+ });
575
+
576
+ /**
577
+ * POST conversation-memory / observations
578
+ */
579
+ export const postApiConversationMemoryObservations = <ThrowOnError extends boolean = false>(
580
+ options: Options<PostApiConversationMemoryObservationsData, ThrowOnError>,
581
+ ): RequestResult<
582
+ PostApiConversationMemoryObservationsResponses,
583
+ PostApiConversationMemoryObservationsErrors,
584
+ ThrowOnError
585
+ > =>
586
+ (options.client ?? client).post<
587
+ PostApiConversationMemoryObservationsResponses,
588
+ PostApiConversationMemoryObservationsErrors,
589
+ ThrowOnError
590
+ >({
591
+ security: [
592
+ {
593
+ in: 'cookie',
594
+ name: 'next-auth.session-token',
595
+ type: 'apiKey',
596
+ },
597
+ ],
598
+ url: '/api/conversation-memory/observations',
599
+ ...options,
600
+ headers: {
601
+ 'Content-Type': 'application/json',
602
+ ...options.headers,
603
+ },
604
+ });
605
+
606
+ /**
607
+ * DELETE conversation-memory / profiles
608
+ */
609
+ export const deleteApiConversationMemoryProfiles = <ThrowOnError extends boolean = false>(
610
+ options: Options<DeleteApiConversationMemoryProfilesData, ThrowOnError>,
611
+ ): RequestResult<
612
+ DeleteApiConversationMemoryProfilesResponses,
613
+ DeleteApiConversationMemoryProfilesErrors,
614
+ ThrowOnError
615
+ > =>
616
+ (options.client ?? client).delete<
617
+ DeleteApiConversationMemoryProfilesResponses,
618
+ DeleteApiConversationMemoryProfilesErrors,
619
+ ThrowOnError
620
+ >({
621
+ security: [
622
+ {
623
+ in: 'cookie',
624
+ name: 'next-auth.session-token',
625
+ type: 'apiKey',
626
+ },
627
+ ],
628
+ url: '/api/conversation-memory/profiles',
629
+ ...options,
630
+ });
631
+
632
+ /**
633
+ * GET conversation-memory / profiles
634
+ */
635
+ export const getApiConversationMemoryProfiles = <ThrowOnError extends boolean = false>(
636
+ options?: Options<GetApiConversationMemoryProfilesData, ThrowOnError>,
637
+ ): RequestResult<
638
+ GetApiConversationMemoryProfilesResponses,
639
+ GetApiConversationMemoryProfilesErrors,
640
+ ThrowOnError
641
+ > =>
642
+ (options?.client ?? client).get<
643
+ GetApiConversationMemoryProfilesResponses,
644
+ GetApiConversationMemoryProfilesErrors,
645
+ ThrowOnError
646
+ >({
647
+ security: [
648
+ {
649
+ in: 'cookie',
650
+ name: 'next-auth.session-token',
651
+ type: 'apiKey',
652
+ },
653
+ ],
654
+ url: '/api/conversation-memory/profiles',
655
+ ...options,
656
+ });
657
+
658
+ /**
659
+ * PATCH conversation-memory / profiles
660
+ */
661
+ export const patchApiConversationMemoryProfiles = <ThrowOnError extends boolean = false>(
662
+ options: Options<PatchApiConversationMemoryProfilesData, ThrowOnError>,
663
+ ): RequestResult<
664
+ PatchApiConversationMemoryProfilesResponses,
665
+ PatchApiConversationMemoryProfilesErrors,
666
+ ThrowOnError
667
+ > =>
668
+ (options.client ?? client).patch<
669
+ PatchApiConversationMemoryProfilesResponses,
670
+ PatchApiConversationMemoryProfilesErrors,
671
+ ThrowOnError
672
+ >({
673
+ security: [
674
+ {
675
+ in: 'cookie',
676
+ name: 'next-auth.session-token',
677
+ type: 'apiKey',
678
+ },
679
+ ],
680
+ url: '/api/conversation-memory/profiles',
681
+ ...options,
682
+ headers: {
683
+ 'Content-Type': 'application/json',
684
+ ...options.headers,
685
+ },
686
+ });
687
+
688
+ /**
689
+ * POST conversation-memory / profiles
690
+ */
691
+ export const postApiConversationMemoryProfiles = <ThrowOnError extends boolean = false>(
692
+ options: Options<PostApiConversationMemoryProfilesData, ThrowOnError>,
693
+ ): RequestResult<
694
+ PostApiConversationMemoryProfilesResponses,
695
+ PostApiConversationMemoryProfilesErrors,
696
+ ThrowOnError
697
+ > =>
698
+ (options.client ?? client).post<
699
+ PostApiConversationMemoryProfilesResponses,
700
+ PostApiConversationMemoryProfilesErrors,
701
+ ThrowOnError
702
+ >({
703
+ security: [
704
+ {
705
+ in: 'cookie',
706
+ name: 'next-auth.session-token',
707
+ type: 'apiKey',
708
+ },
709
+ ],
710
+ url: '/api/conversation-memory/profiles',
711
+ ...options,
712
+ headers: {
713
+ 'Content-Type': 'application/json',
714
+ ...options.headers,
715
+ },
716
+ });
717
+
718
+ /**
719
+ * POST conversation-memory / profiles-lookup
720
+ */
721
+ export const postApiConversationMemoryProfilesLookup = <ThrowOnError extends boolean = false>(
722
+ options: Options<PostApiConversationMemoryProfilesLookupData, ThrowOnError>,
723
+ ): RequestResult<
724
+ PostApiConversationMemoryProfilesLookupResponses,
725
+ PostApiConversationMemoryProfilesLookupErrors,
726
+ ThrowOnError
727
+ > =>
728
+ (options.client ?? client).post<
729
+ PostApiConversationMemoryProfilesLookupResponses,
730
+ PostApiConversationMemoryProfilesLookupErrors,
731
+ ThrowOnError
732
+ >({
733
+ security: [
734
+ {
735
+ in: 'cookie',
736
+ name: 'next-auth.session-token',
737
+ type: 'apiKey',
738
+ },
739
+ ],
740
+ url: '/api/conversation-memory/profiles-lookup',
741
+ ...options,
742
+ headers: {
743
+ 'Content-Type': 'application/json',
744
+ ...options.headers,
745
+ },
746
+ });
747
+
748
+ /**
749
+ * POST conversation-memory / recall
750
+ */
751
+ export const postApiConversationMemoryRecall = <ThrowOnError extends boolean = false>(
752
+ options: Options<PostApiConversationMemoryRecallData, ThrowOnError>,
753
+ ): RequestResult<
754
+ PostApiConversationMemoryRecallResponses,
755
+ PostApiConversationMemoryRecallErrors,
756
+ ThrowOnError
757
+ > =>
758
+ (options.client ?? client).post<
759
+ PostApiConversationMemoryRecallResponses,
760
+ PostApiConversationMemoryRecallErrors,
761
+ ThrowOnError
762
+ >({
763
+ security: [
764
+ {
765
+ in: 'cookie',
766
+ name: 'next-auth.session-token',
767
+ type: 'apiKey',
768
+ },
769
+ ],
770
+ url: '/api/conversation-memory/recall',
771
+ ...options,
772
+ headers: {
773
+ 'Content-Type': 'application/json',
774
+ ...options.headers,
775
+ },
776
+ });
777
+
778
+ /**
779
+ * DELETE conversation-memory / reset
780
+ */
781
+ export const deleteApiConversationMemoryReset = <ThrowOnError extends boolean = false>(
782
+ options: Options<DeleteApiConversationMemoryResetData, ThrowOnError>,
783
+ ): RequestResult<
784
+ DeleteApiConversationMemoryResetResponses,
785
+ DeleteApiConversationMemoryResetErrors,
786
+ ThrowOnError
787
+ > =>
788
+ (options.client ?? client).delete<
789
+ DeleteApiConversationMemoryResetResponses,
790
+ DeleteApiConversationMemoryResetErrors,
791
+ ThrowOnError
792
+ >({
793
+ security: [
794
+ {
795
+ in: 'cookie',
796
+ name: 'next-auth.session-token',
797
+ type: 'apiKey',
798
+ },
799
+ ],
800
+ url: '/api/conversation-memory/reset',
801
+ ...options,
802
+ });
803
+
804
+ /**
805
+ * GET conversation-memory / trait-groups
806
+ */
807
+ export const getApiConversationMemoryTraitGroups = <ThrowOnError extends boolean = false>(
808
+ options?: Options<GetApiConversationMemoryTraitGroupsData, ThrowOnError>,
809
+ ): RequestResult<
810
+ GetApiConversationMemoryTraitGroupsResponses,
811
+ GetApiConversationMemoryTraitGroupsErrors,
812
+ ThrowOnError
813
+ > =>
814
+ (options?.client ?? client).get<
815
+ GetApiConversationMemoryTraitGroupsResponses,
816
+ GetApiConversationMemoryTraitGroupsErrors,
817
+ ThrowOnError
818
+ >({
819
+ security: [
820
+ {
821
+ in: 'cookie',
822
+ name: 'next-auth.session-token',
823
+ type: 'apiKey',
824
+ },
825
+ ],
826
+ url: '/api/conversation-memory/trait-groups',
827
+ ...options,
828
+ });
829
+
830
+ /**
831
+ * PATCH conversation-memory / trait-groups
832
+ */
833
+ export const patchApiConversationMemoryTraitGroups = <ThrowOnError extends boolean = false>(
834
+ options: Options<PatchApiConversationMemoryTraitGroupsData, ThrowOnError>,
835
+ ): RequestResult<
836
+ PatchApiConversationMemoryTraitGroupsResponses,
837
+ PatchApiConversationMemoryTraitGroupsErrors,
838
+ ThrowOnError
839
+ > =>
840
+ (options.client ?? client).patch<
841
+ PatchApiConversationMemoryTraitGroupsResponses,
842
+ PatchApiConversationMemoryTraitGroupsErrors,
843
+ ThrowOnError
844
+ >({
845
+ security: [
846
+ {
847
+ in: 'cookie',
848
+ name: 'next-auth.session-token',
849
+ type: 'apiKey',
850
+ },
851
+ ],
852
+ url: '/api/conversation-memory/trait-groups',
853
+ ...options,
854
+ headers: {
855
+ 'Content-Type': 'application/json',
856
+ ...options.headers,
857
+ },
858
+ });
859
+
860
+ /**
861
+ * POST conversation-memory / trait-groups
862
+ */
863
+ export const postApiConversationMemoryTraitGroups = <ThrowOnError extends boolean = false>(
864
+ options: Options<PostApiConversationMemoryTraitGroupsData, ThrowOnError>,
865
+ ): RequestResult<
866
+ PostApiConversationMemoryTraitGroupsResponses,
867
+ PostApiConversationMemoryTraitGroupsErrors,
868
+ ThrowOnError
869
+ > =>
870
+ (options.client ?? client).post<
871
+ PostApiConversationMemoryTraitGroupsResponses,
872
+ PostApiConversationMemoryTraitGroupsErrors,
873
+ ThrowOnError
874
+ >({
875
+ security: [
876
+ {
877
+ in: 'cookie',
878
+ name: 'next-auth.session-token',
879
+ type: 'apiKey',
880
+ },
881
+ ],
882
+ url: '/api/conversation-memory/trait-groups',
883
+ ...options,
884
+ headers: {
885
+ 'Content-Type': 'application/json',
886
+ ...options.headers,
887
+ },
888
+ });
889
+
890
+ /**
891
+ * GET conversation-memory / traits
892
+ */
893
+ export const getApiConversationMemoryTraits = <ThrowOnError extends boolean = false>(
894
+ options: Options<GetApiConversationMemoryTraitsData, ThrowOnError>,
895
+ ): RequestResult<
896
+ GetApiConversationMemoryTraitsResponses,
897
+ GetApiConversationMemoryTraitsErrors,
898
+ ThrowOnError
899
+ > =>
900
+ (options.client ?? client).get<
901
+ GetApiConversationMemoryTraitsResponses,
902
+ GetApiConversationMemoryTraitsErrors,
903
+ ThrowOnError
904
+ >({
905
+ security: [
906
+ {
907
+ in: 'cookie',
908
+ name: 'next-auth.session-token',
909
+ type: 'apiKey',
910
+ },
911
+ ],
912
+ url: '/api/conversation-memory/traits',
913
+ ...options,
914
+ });
915
+
916
+ /**
917
+ * DELETE conversational-intelligence-operator
918
+ */
919
+ export const deleteApiConversationalIntelligenceOperator = <ThrowOnError extends boolean = false>(
920
+ options: Options<DeleteApiConversationalIntelligenceOperatorData, ThrowOnError>,
921
+ ): RequestResult<
922
+ DeleteApiConversationalIntelligenceOperatorResponses,
923
+ DeleteApiConversationalIntelligenceOperatorErrors,
924
+ ThrowOnError
925
+ > =>
926
+ (options.client ?? client).delete<
927
+ DeleteApiConversationalIntelligenceOperatorResponses,
928
+ DeleteApiConversationalIntelligenceOperatorErrors,
929
+ ThrowOnError
930
+ >({
931
+ security: [
932
+ {
933
+ in: 'cookie',
934
+ name: 'next-auth.session-token',
935
+ type: 'apiKey',
936
+ },
937
+ ],
938
+ url: '/api/conversational-intelligence-operator',
939
+ ...options,
940
+ });
941
+
942
+ /**
943
+ * GET conversational-intelligence-operator
944
+ */
945
+ export const getApiConversationalIntelligenceOperator = <ThrowOnError extends boolean = false>(
946
+ options?: Options<GetApiConversationalIntelligenceOperatorData, ThrowOnError>,
947
+ ): RequestResult<
948
+ GetApiConversationalIntelligenceOperatorResponses,
949
+ GetApiConversationalIntelligenceOperatorErrors,
950
+ ThrowOnError
951
+ > =>
952
+ (options?.client ?? client).get<
953
+ GetApiConversationalIntelligenceOperatorResponses,
954
+ GetApiConversationalIntelligenceOperatorErrors,
955
+ ThrowOnError
956
+ >({
957
+ security: [
958
+ {
959
+ in: 'cookie',
960
+ name: 'next-auth.session-token',
961
+ type: 'apiKey',
962
+ },
963
+ ],
964
+ url: '/api/conversational-intelligence-operator',
965
+ ...options,
966
+ });
967
+
968
+ /**
969
+ * POST conversational-intelligence-operator
970
+ */
971
+ export const postApiConversationalIntelligenceOperator = <ThrowOnError extends boolean = false>(
972
+ options: Options<PostApiConversationalIntelligenceOperatorData, ThrowOnError>,
973
+ ): RequestResult<
974
+ PostApiConversationalIntelligenceOperatorResponses,
975
+ PostApiConversationalIntelligenceOperatorErrors,
976
+ ThrowOnError
977
+ > =>
978
+ (options.client ?? client).post<
979
+ PostApiConversationalIntelligenceOperatorResponses,
980
+ PostApiConversationalIntelligenceOperatorErrors,
981
+ ThrowOnError
982
+ >({
983
+ security: [
984
+ {
985
+ in: 'cookie',
986
+ name: 'next-auth.session-token',
987
+ type: 'apiKey',
988
+ },
989
+ ],
990
+ url: '/api/conversational-intelligence-operator',
991
+ ...options,
992
+ headers: {
993
+ 'Content-Type': 'application/json',
994
+ ...options.headers,
995
+ },
996
+ });
997
+
998
+ /**
999
+ * PUT conversational-intelligence-operator
1000
+ */
1001
+ export const putApiConversationalIntelligenceOperator = <ThrowOnError extends boolean = false>(
1002
+ options: Options<PutApiConversationalIntelligenceOperatorData, ThrowOnError>,
1003
+ ): RequestResult<
1004
+ PutApiConversationalIntelligenceOperatorResponses,
1005
+ PutApiConversationalIntelligenceOperatorErrors,
1006
+ ThrowOnError
1007
+ > =>
1008
+ (options.client ?? client).put<
1009
+ PutApiConversationalIntelligenceOperatorResponses,
1010
+ PutApiConversationalIntelligenceOperatorErrors,
1011
+ ThrowOnError
1012
+ >({
1013
+ security: [
1014
+ {
1015
+ in: 'cookie',
1016
+ name: 'next-auth.session-token',
1017
+ type: 'apiKey',
1018
+ },
1019
+ ],
1020
+ url: '/api/conversational-intelligence-operator',
1021
+ ...options,
1022
+ headers: {
1023
+ 'Content-Type': 'application/json',
1024
+ ...options.headers,
1025
+ },
1026
+ });
1027
+
1028
+ /**
1029
+ * DELETE conversations / delete
1030
+ */
1031
+ export const deleteApiConversationsDelete = <ThrowOnError extends boolean = false>(
1032
+ options?: Options<DeleteApiConversationsDeleteData, ThrowOnError>,
1033
+ ): RequestResult<
1034
+ DeleteApiConversationsDeleteResponses,
1035
+ DeleteApiConversationsDeleteErrors,
1036
+ ThrowOnError
1037
+ > =>
1038
+ (options?.client ?? client).delete<
1039
+ DeleteApiConversationsDeleteResponses,
1040
+ DeleteApiConversationsDeleteErrors,
1041
+ ThrowOnError
1042
+ >({
1043
+ security: [
1044
+ {
1045
+ in: 'cookie',
1046
+ name: 'next-auth.session-token',
1047
+ type: 'apiKey',
1048
+ },
1049
+ ],
1050
+ url: '/api/conversations/delete',
1051
+ ...options,
1052
+ });
1053
+
1054
+ /**
1055
+ * POST conversations / save
1056
+ */
1057
+ export const postApiConversationsSave = <ThrowOnError extends boolean = false>(
1058
+ options: Options<PostApiConversationsSaveData, ThrowOnError>,
1059
+ ): RequestResult<PostApiConversationsSaveResponses, PostApiConversationsSaveErrors, ThrowOnError> =>
1060
+ (options.client ?? client).post<
1061
+ PostApiConversationsSaveResponses,
1062
+ PostApiConversationsSaveErrors,
1063
+ ThrowOnError
1064
+ >({
1065
+ security: [
1066
+ {
1067
+ in: 'cookie',
1068
+ name: 'next-auth.session-token',
1069
+ type: 'apiKey',
1070
+ },
1071
+ ],
1072
+ url: '/api/conversations/save',
1073
+ ...options,
1074
+ headers: {
1075
+ 'Content-Type': 'application/json',
1076
+ ...options.headers,
1077
+ },
1078
+ });
1079
+
1080
+ /**
1081
+ * POST conversations / share
1082
+ */
1083
+ export const postApiConversationsShare = <ThrowOnError extends boolean = false>(
1084
+ options: Options<PostApiConversationsShareData, ThrowOnError>,
1085
+ ): RequestResult<
1086
+ PostApiConversationsShareResponses,
1087
+ PostApiConversationsShareErrors,
1088
+ ThrowOnError
1089
+ > =>
1090
+ (options.client ?? client).post<
1091
+ PostApiConversationsShareResponses,
1092
+ PostApiConversationsShareErrors,
1093
+ ThrowOnError
1094
+ >({
1095
+ security: [
1096
+ {
1097
+ in: 'cookie',
1098
+ name: 'next-auth.session-token',
1099
+ type: 'apiKey',
1100
+ },
1101
+ ],
1102
+ url: '/api/conversations/share',
1103
+ ...options,
1104
+ headers: {
1105
+ 'Content-Type': 'application/json',
1106
+ ...options.headers,
1107
+ },
1108
+ });
1109
+
1110
+ /**
1111
+ * GET country-configs
1112
+ */
1113
+ export const getApiCountryConfigs = <ThrowOnError extends boolean = false>(
1114
+ options?: Options<GetApiCountryConfigsData, ThrowOnError>,
1115
+ ): RequestResult<GetApiCountryConfigsResponses, GetApiCountryConfigsErrors, ThrowOnError> =>
1116
+ (options?.client ?? client).get<
1117
+ GetApiCountryConfigsResponses,
1118
+ GetApiCountryConfigsErrors,
1119
+ ThrowOnError
1120
+ >({
1121
+ security: [
1122
+ {
1123
+ in: 'cookie',
1124
+ name: 'next-auth.session-token',
1125
+ type: 'apiKey',
1126
+ },
1127
+ ],
1128
+ url: '/api/country-configs',
1129
+ ...options,
1130
+ });
1131
+
1132
+ /**
1133
+ * POST create-external-flex-connection
1134
+ */
1135
+ export const postApiCreateExternalFlexConnection = <ThrowOnError extends boolean = false>(
1136
+ options: Options<PostApiCreateExternalFlexConnectionData, ThrowOnError>,
1137
+ ): RequestResult<
1138
+ PostApiCreateExternalFlexConnectionResponses,
1139
+ PostApiCreateExternalFlexConnectionErrors,
1140
+ ThrowOnError
1141
+ > =>
1142
+ (options.client ?? client).post<
1143
+ PostApiCreateExternalFlexConnectionResponses,
1144
+ PostApiCreateExternalFlexConnectionErrors,
1145
+ ThrowOnError
1146
+ >({
1147
+ security: [
1148
+ {
1149
+ in: 'cookie',
1150
+ name: 'next-auth.session-token',
1151
+ type: 'apiKey',
1152
+ },
1153
+ ],
1154
+ url: '/api/create-external-flex-connection',
1155
+ ...options,
1156
+ headers: {
1157
+ 'Content-Type': 'application/json',
1158
+ ...options.headers,
1159
+ },
1160
+ });
1161
+
1162
+ /**
1163
+ * POST enhance-prompt
1164
+ */
1165
+ export const postApiEnhancePrompt = <ThrowOnError extends boolean = false>(
1166
+ options: Options<PostApiEnhancePromptData, ThrowOnError>,
1167
+ ): RequestResult<PostApiEnhancePromptResponses, PostApiEnhancePromptErrors, ThrowOnError> =>
1168
+ (options.client ?? client).post<
1169
+ PostApiEnhancePromptResponses,
1170
+ PostApiEnhancePromptErrors,
1171
+ ThrowOnError
1172
+ >({
1173
+ security: [
1174
+ {
1175
+ in: 'cookie',
1176
+ name: 'next-auth.session-token',
1177
+ type: 'apiKey',
1178
+ },
1179
+ ],
1180
+ url: '/api/enhance-prompt',
1181
+ ...options,
1182
+ headers: {
1183
+ 'Content-Type': 'application/json',
1184
+ ...options.headers,
1185
+ },
1186
+ });
1187
+
1188
+ /**
1189
+ * POST generate-tags
1190
+ */
1191
+ export const postApiGenerateTags = <ThrowOnError extends boolean = false>(
1192
+ options: Options<PostApiGenerateTagsData, ThrowOnError>,
1193
+ ): RequestResult<PostApiGenerateTagsResponses, PostApiGenerateTagsErrors, ThrowOnError> =>
1194
+ (options.client ?? client).post<
1195
+ PostApiGenerateTagsResponses,
1196
+ PostApiGenerateTagsErrors,
1197
+ ThrowOnError
1198
+ >({
1199
+ security: [
1200
+ {
1201
+ in: 'cookie',
1202
+ name: 'next-auth.session-token',
1203
+ type: 'apiKey',
1204
+ },
1205
+ ],
1206
+ url: '/api/generate-tags',
1207
+ ...options,
1208
+ headers: {
1209
+ 'Content-Type': 'application/json',
1210
+ ...options.headers,
1211
+ },
1212
+ });
1213
+
1214
+ /**
1215
+ * POST increment-view-count
1216
+ */
1217
+ export const postApiIncrementViewCount = <ThrowOnError extends boolean = false>(
1218
+ options: Options<PostApiIncrementViewCountData, ThrowOnError>,
1219
+ ): RequestResult<
1220
+ PostApiIncrementViewCountResponses,
1221
+ PostApiIncrementViewCountErrors,
1222
+ ThrowOnError
1223
+ > =>
1224
+ (options.client ?? client).post<
1225
+ PostApiIncrementViewCountResponses,
1226
+ PostApiIncrementViewCountErrors,
1227
+ ThrowOnError
1228
+ >({
1229
+ security: [
1230
+ {
1231
+ in: 'cookie',
1232
+ name: 'next-auth.session-token',
1233
+ type: 'apiKey',
1234
+ },
1235
+ ],
1236
+ url: '/api/increment-view-count',
1237
+ ...options,
1238
+ headers: {
1239
+ 'Content-Type': 'application/json',
1240
+ ...options.headers,
1241
+ },
1242
+ });
1243
+
1244
+ /**
1245
+ * GET intelligence-configuration
1246
+ */
1247
+ export const getApiIntelligenceConfiguration = <ThrowOnError extends boolean = false>(
1248
+ options?: Options<GetApiIntelligenceConfigurationData, ThrowOnError>,
1249
+ ): RequestResult<
1250
+ GetApiIntelligenceConfigurationResponses,
1251
+ GetApiIntelligenceConfigurationErrors,
1252
+ ThrowOnError
1253
+ > =>
1254
+ (options?.client ?? client).get<
1255
+ GetApiIntelligenceConfigurationResponses,
1256
+ GetApiIntelligenceConfigurationErrors,
1257
+ ThrowOnError
1258
+ >({
1259
+ security: [
1260
+ {
1261
+ in: 'cookie',
1262
+ name: 'next-auth.session-token',
1263
+ type: 'apiKey',
1264
+ },
1265
+ ],
1266
+ url: '/api/intelligence-configuration',
1267
+ ...options,
1268
+ });
1269
+
1270
+ /**
1271
+ * POST intelligence-configuration
1272
+ */
1273
+ export const postApiIntelligenceConfiguration = <ThrowOnError extends boolean = false>(
1274
+ options: Options<PostApiIntelligenceConfigurationData, ThrowOnError>,
1275
+ ): RequestResult<
1276
+ PostApiIntelligenceConfigurationResponses,
1277
+ PostApiIntelligenceConfigurationErrors,
1278
+ ThrowOnError
1279
+ > =>
1280
+ (options.client ?? client).post<
1281
+ PostApiIntelligenceConfigurationResponses,
1282
+ PostApiIntelligenceConfigurationErrors,
1283
+ ThrowOnError
1284
+ >({
1285
+ security: [
1286
+ {
1287
+ in: 'cookie',
1288
+ name: 'next-auth.session-token',
1289
+ type: 'apiKey',
1290
+ },
1291
+ ],
1292
+ url: '/api/intelligence-configuration',
1293
+ ...options,
1294
+ headers: {
1295
+ 'Content-Type': 'application/json',
1296
+ ...options.headers,
1297
+ },
1298
+ });
1299
+
1300
+ /**
1301
+ * PUT intelligence-configuration
1302
+ */
1303
+ export const putApiIntelligenceConfiguration = <ThrowOnError extends boolean = false>(
1304
+ options: Options<PutApiIntelligenceConfigurationData, ThrowOnError>,
1305
+ ): RequestResult<
1306
+ PutApiIntelligenceConfigurationResponses,
1307
+ PutApiIntelligenceConfigurationErrors,
1308
+ ThrowOnError
1309
+ > =>
1310
+ (options.client ?? client).put<
1311
+ PutApiIntelligenceConfigurationResponses,
1312
+ PutApiIntelligenceConfigurationErrors,
1313
+ ThrowOnError
1314
+ >({
1315
+ security: [
1316
+ {
1317
+ in: 'cookie',
1318
+ name: 'next-auth.session-token',
1319
+ type: 'apiKey',
1320
+ },
1321
+ ],
1322
+ url: '/api/intelligence-configuration',
1323
+ ...options,
1324
+ headers: {
1325
+ 'Content-Type': 'application/json',
1326
+ ...options.headers,
1327
+ },
1328
+ });
1329
+
1330
+ /**
1331
+ * GET internal-nav
1332
+ */
1333
+ export const getApiInternalNav = <ThrowOnError extends boolean = false>(
1334
+ options?: Options<GetApiInternalNavData, ThrowOnError>,
1335
+ ): RequestResult<GetApiInternalNavResponses, GetApiInternalNavErrors, ThrowOnError> =>
1336
+ (options?.client ?? client).get<
1337
+ GetApiInternalNavResponses,
1338
+ GetApiInternalNavErrors,
1339
+ ThrowOnError
1340
+ >({
1341
+ security: [
1342
+ {
1343
+ in: 'cookie',
1344
+ name: 'next-auth.session-token',
1345
+ type: 'apiKey',
1346
+ },
1347
+ ],
1348
+ url: '/api/internal-nav',
1349
+ ...options,
1350
+ });
1351
+
1352
+ /**
1353
+ * GET isv / logo
1354
+ */
1355
+ export const getApiIsvLogo = <ThrowOnError extends boolean = false>(
1356
+ options: Options<GetApiIsvLogoData, ThrowOnError>,
1357
+ ): RequestResult<GetApiIsvLogoResponses, GetApiIsvLogoErrors, ThrowOnError> =>
1358
+ (options.client ?? client).get<GetApiIsvLogoResponses, GetApiIsvLogoErrors, ThrowOnError>({
1359
+ security: [
1360
+ {
1361
+ in: 'cookie',
1362
+ name: 'next-auth.session-token',
1363
+ type: 'apiKey',
1364
+ },
1365
+ ],
1366
+ url: '/api/isv/logo',
1367
+ ...options,
1368
+ });
1369
+
1370
+ /**
1371
+ * DELETE lead-gen
1372
+ */
1373
+ export const deleteApiLeadGen = <ThrowOnError extends boolean = false>(
1374
+ options?: Options<DeleteApiLeadGenData, ThrowOnError>,
1375
+ ): RequestResult<DeleteApiLeadGenResponses, DeleteApiLeadGenErrors, ThrowOnError> =>
1376
+ (options?.client ?? client).delete<
1377
+ DeleteApiLeadGenResponses,
1378
+ DeleteApiLeadGenErrors,
1379
+ ThrowOnError
1380
+ >({
1381
+ security: [
1382
+ {
1383
+ in: 'cookie',
1384
+ name: 'next-auth.session-token',
1385
+ type: 'apiKey',
1386
+ },
1387
+ ],
1388
+ url: '/api/lead-gen',
1389
+ ...options,
1390
+ });
1391
+
1392
+ /**
1393
+ * GET lead-gen
1394
+ */
1395
+ export const getApiLeadGen = <ThrowOnError extends boolean = false>(
1396
+ options: Options<GetApiLeadGenData, ThrowOnError>,
1397
+ ): RequestResult<GetApiLeadGenResponses, GetApiLeadGenErrors, ThrowOnError> =>
1398
+ (options.client ?? client).get<GetApiLeadGenResponses, GetApiLeadGenErrors, ThrowOnError>({
1399
+ security: [
1400
+ {
1401
+ in: 'cookie',
1402
+ name: 'next-auth.session-token',
1403
+ type: 'apiKey',
1404
+ },
1405
+ ],
1406
+ url: '/api/lead-gen',
1407
+ ...options,
1408
+ });
1409
+
1410
+ /**
1411
+ * PATCH lead-gen
1412
+ */
1413
+ export const patchApiLeadGen = <ThrowOnError extends boolean = false>(
1414
+ options: Options<PatchApiLeadGenData, ThrowOnError>,
1415
+ ): RequestResult<PatchApiLeadGenResponses, PatchApiLeadGenErrors, ThrowOnError> =>
1416
+ (options.client ?? client).patch<PatchApiLeadGenResponses, PatchApiLeadGenErrors, ThrowOnError>({
1417
+ security: [
1418
+ {
1419
+ in: 'cookie',
1420
+ name: 'next-auth.session-token',
1421
+ type: 'apiKey',
1422
+ },
1423
+ ],
1424
+ url: '/api/lead-gen',
1425
+ ...options,
1426
+ headers: {
1427
+ 'Content-Type': 'application/json',
1428
+ ...options.headers,
1429
+ },
1430
+ });
1431
+
1432
+ /**
1433
+ * POST lead-gen
1434
+ */
1435
+ export const postApiLeadGen = <ThrowOnError extends boolean = false>(
1436
+ options: Options<PostApiLeadGenData, ThrowOnError>,
1437
+ ): RequestResult<PostApiLeadGenResponses, PostApiLeadGenErrors, ThrowOnError> =>
1438
+ (options.client ?? client).post<PostApiLeadGenResponses, PostApiLeadGenErrors, ThrowOnError>({
1439
+ security: [
1440
+ {
1441
+ in: 'cookie',
1442
+ name: 'next-auth.session-token',
1443
+ type: 'apiKey',
1444
+ },
1445
+ ],
1446
+ url: '/api/lead-gen',
1447
+ ...options,
1448
+ headers: {
1449
+ 'Content-Type': 'application/json',
1450
+ ...options.headers,
1451
+ },
1452
+ });
1453
+
1454
+ /**
1455
+ * DELETE link-shortener
1456
+ */
1457
+ export const deleteApiLinkShortener = <ThrowOnError extends boolean = false>(
1458
+ options: Options<DeleteApiLinkShortenerData, ThrowOnError>,
1459
+ ): RequestResult<DeleteApiLinkShortenerResponses, DeleteApiLinkShortenerErrors, ThrowOnError> =>
1460
+ (options.client ?? client).delete<
1461
+ DeleteApiLinkShortenerResponses,
1462
+ DeleteApiLinkShortenerErrors,
1463
+ ThrowOnError
1464
+ >({
1465
+ security: [
1466
+ {
1467
+ in: 'cookie',
1468
+ name: 'next-auth.session-token',
1469
+ type: 'apiKey',
1470
+ },
1471
+ ],
1472
+ url: '/api/link-shortener',
1473
+ ...options,
1474
+ });
1475
+
1476
+ /**
1477
+ * GET link-shortener
1478
+ */
1479
+ export const getApiLinkShortener = <ThrowOnError extends boolean = false>(
1480
+ options?: Options<GetApiLinkShortenerData, ThrowOnError>,
1481
+ ): RequestResult<GetApiLinkShortenerResponses, GetApiLinkShortenerErrors, ThrowOnError> =>
1482
+ (options?.client ?? client).get<
1483
+ GetApiLinkShortenerResponses,
1484
+ GetApiLinkShortenerErrors,
1485
+ ThrowOnError
1486
+ >({
1487
+ security: [
1488
+ {
1489
+ in: 'cookie',
1490
+ name: 'next-auth.session-token',
1491
+ type: 'apiKey',
1492
+ },
1493
+ ],
1494
+ url: '/api/link-shortener',
1495
+ ...options,
1496
+ });
1497
+
1498
+ /**
1499
+ * PATCH link-shortener
1500
+ */
1501
+ export const patchApiLinkShortener = <ThrowOnError extends boolean = false>(
1502
+ options: Options<PatchApiLinkShortenerData, ThrowOnError>,
1503
+ ): RequestResult<PatchApiLinkShortenerResponses, PatchApiLinkShortenerErrors, ThrowOnError> =>
1504
+ (options.client ?? client).patch<
1505
+ PatchApiLinkShortenerResponses,
1506
+ PatchApiLinkShortenerErrors,
1507
+ ThrowOnError
1508
+ >({
1509
+ security: [
1510
+ {
1511
+ in: 'cookie',
1512
+ name: 'next-auth.session-token',
1513
+ type: 'apiKey',
1514
+ },
1515
+ ],
1516
+ url: '/api/link-shortener',
1517
+ ...options,
1518
+ headers: {
1519
+ 'Content-Type': 'application/json',
1520
+ ...options.headers,
1521
+ },
1522
+ });
1523
+
1524
+ /**
1525
+ * POST link-shortener
1526
+ */
1527
+ export const postApiLinkShortener = <ThrowOnError extends boolean = false>(
1528
+ options: Options<PostApiLinkShortenerData, ThrowOnError>,
1529
+ ): RequestResult<PostApiLinkShortenerResponses, PostApiLinkShortenerErrors, ThrowOnError> =>
1530
+ (options.client ?? client).post<
1531
+ PostApiLinkShortenerResponses,
1532
+ PostApiLinkShortenerErrors,
1533
+ ThrowOnError
1534
+ >({
1535
+ security: [
1536
+ {
1537
+ in: 'cookie',
1538
+ name: 'next-auth.session-token',
1539
+ type: 'apiKey',
1540
+ },
1541
+ ],
1542
+ url: '/api/link-shortener',
1543
+ ...options,
1544
+ headers: {
1545
+ 'Content-Type': 'application/json',
1546
+ ...options.headers,
1547
+ },
1548
+ });
1549
+
1550
+ /**
1551
+ * DELETE live-numbers
1552
+ */
1553
+ export const deleteApiLiveNumbers = <ThrowOnError extends boolean = false>(
1554
+ options?: Options<DeleteApiLiveNumbersData, ThrowOnError>,
1555
+ ): RequestResult<DeleteApiLiveNumbersResponses, DeleteApiLiveNumbersErrors, ThrowOnError> =>
1556
+ (options?.client ?? client).delete<
1557
+ DeleteApiLiveNumbersResponses,
1558
+ DeleteApiLiveNumbersErrors,
1559
+ ThrowOnError
1560
+ >({
1561
+ security: [
1562
+ {
1563
+ in: 'cookie',
1564
+ name: 'next-auth.session-token',
1565
+ type: 'apiKey',
1566
+ },
1567
+ ],
1568
+ url: '/api/live-numbers',
1569
+ ...options,
1570
+ });
1571
+
1572
+ /**
1573
+ * GET live-numbers
1574
+ */
1575
+ export const getApiLiveNumbers = <ThrowOnError extends boolean = false>(
1576
+ options?: Options<GetApiLiveNumbersData, ThrowOnError>,
1577
+ ): RequestResult<GetApiLiveNumbersResponses, GetApiLiveNumbersErrors, ThrowOnError> =>
1578
+ (options?.client ?? client).get<
1579
+ GetApiLiveNumbersResponses,
1580
+ GetApiLiveNumbersErrors,
1581
+ ThrowOnError
1582
+ >({
1583
+ security: [
1584
+ {
1585
+ in: 'cookie',
1586
+ name: 'next-auth.session-token',
1587
+ type: 'apiKey',
1588
+ },
1589
+ ],
1590
+ url: '/api/live-numbers',
1591
+ ...options,
1592
+ });
1593
+
1594
+ /**
1595
+ * POST outbound-call
1596
+ */
1597
+ export const postApiOutboundCall = <ThrowOnError extends boolean = false>(
1598
+ options: Options<PostApiOutboundCallData, ThrowOnError>,
1599
+ ): RequestResult<PostApiOutboundCallResponses, PostApiOutboundCallErrors, ThrowOnError> =>
1600
+ (options.client ?? client).post<
1601
+ PostApiOutboundCallResponses,
1602
+ PostApiOutboundCallErrors,
1603
+ ThrowOnError
1604
+ >({
1605
+ security: [
1606
+ {
1607
+ in: 'cookie',
1608
+ name: 'next-auth.session-token',
1609
+ type: 'apiKey',
1610
+ },
1611
+ ],
1612
+ url: '/api/outbound-call',
1613
+ ...options,
1614
+ headers: {
1615
+ 'Content-Type': 'application/json',
1616
+ ...options.headers,
1617
+ },
1618
+ });
1619
+
1620
+ /**
1621
+ * POST outbound-communication-text
1622
+ */
1623
+ export const postApiOutboundCommunicationText = <ThrowOnError extends boolean = false>(
1624
+ options: Options<PostApiOutboundCommunicationTextData, ThrowOnError>,
1625
+ ): RequestResult<
1626
+ PostApiOutboundCommunicationTextResponses,
1627
+ PostApiOutboundCommunicationTextErrors,
1628
+ ThrowOnError
1629
+ > =>
1630
+ (options.client ?? client).post<
1631
+ PostApiOutboundCommunicationTextResponses,
1632
+ PostApiOutboundCommunicationTextErrors,
1633
+ ThrowOnError
1634
+ >({
1635
+ security: [
1636
+ {
1637
+ in: 'cookie',
1638
+ name: 'next-auth.session-token',
1639
+ type: 'apiKey',
1640
+ },
1641
+ ],
1642
+ url: '/api/outbound-communication-text',
1643
+ ...options,
1644
+ headers: {
1645
+ 'Content-Type': 'application/json',
1646
+ ...options.headers,
1647
+ },
1648
+ });
1649
+
1650
+ /**
1651
+ * GET phone-logs / {phoneNumber}
1652
+ */
1653
+ export const getApiPhoneLogsByPhoneNumber = <ThrowOnError extends boolean = false>(
1654
+ options: Options<GetApiPhoneLogsByPhoneNumberData, ThrowOnError>,
1655
+ ): RequestResult<
1656
+ GetApiPhoneLogsByPhoneNumberResponses,
1657
+ GetApiPhoneLogsByPhoneNumberErrors,
1658
+ ThrowOnError
1659
+ > =>
1660
+ (options.client ?? client).get<
1661
+ GetApiPhoneLogsByPhoneNumberResponses,
1662
+ GetApiPhoneLogsByPhoneNumberErrors,
1663
+ ThrowOnError
1664
+ >({
1665
+ security: [
1666
+ {
1667
+ in: 'cookie',
1668
+ name: 'next-auth.session-token',
1669
+ type: 'apiKey',
1670
+ },
1671
+ ],
1672
+ url: '/api/phone-logs/{phoneNumber}',
1673
+ ...options,
1674
+ });
1675
+
1676
+ /**
1677
+ * GET recently-active-numbers
1678
+ */
1679
+ export const getApiRecentlyActiveNumbers = <ThrowOnError extends boolean = false>(
1680
+ options?: Options<GetApiRecentlyActiveNumbersData, ThrowOnError>,
1681
+ ): RequestResult<
1682
+ GetApiRecentlyActiveNumbersResponses,
1683
+ GetApiRecentlyActiveNumbersErrors,
1684
+ ThrowOnError
1685
+ > =>
1686
+ (options?.client ?? client).get<
1687
+ GetApiRecentlyActiveNumbersResponses,
1688
+ GetApiRecentlyActiveNumbersErrors,
1689
+ ThrowOnError
1690
+ >({
1691
+ security: [
1692
+ {
1693
+ in: 'cookie',
1694
+ name: 'next-auth.session-token',
1695
+ type: 'apiKey',
1696
+ },
1697
+ ],
1698
+ url: '/api/recently-active-numbers',
1699
+ ...options,
1700
+ });
1701
+
1702
+ /**
1703
+ * POST segment / identify
1704
+ */
1705
+ export const postApiSegmentIdentify = <ThrowOnError extends boolean = false>(
1706
+ options: Options<PostApiSegmentIdentifyData, ThrowOnError>,
1707
+ ): RequestResult<PostApiSegmentIdentifyResponses, PostApiSegmentIdentifyErrors, ThrowOnError> =>
1708
+ (options.client ?? client).post<
1709
+ PostApiSegmentIdentifyResponses,
1710
+ PostApiSegmentIdentifyErrors,
1711
+ ThrowOnError
1712
+ >({
1713
+ security: [
1714
+ {
1715
+ in: 'cookie',
1716
+ name: 'next-auth.session-token',
1717
+ type: 'apiKey',
1718
+ },
1719
+ ],
1720
+ url: '/api/segment/identify',
1721
+ ...options,
1722
+ headers: {
1723
+ 'Content-Type': 'application/json',
1724
+ ...options.headers,
1725
+ },
1726
+ });
1727
+
1728
+ /**
1729
+ * POST segment / profile
1730
+ */
1731
+ export const postApiSegmentProfile = <ThrowOnError extends boolean = false>(
1732
+ options: Options<PostApiSegmentProfileData, ThrowOnError>,
1733
+ ): RequestResult<PostApiSegmentProfileResponses, PostApiSegmentProfileErrors, ThrowOnError> =>
1734
+ (options.client ?? client).post<
1735
+ PostApiSegmentProfileResponses,
1736
+ PostApiSegmentProfileErrors,
1737
+ ThrowOnError
1738
+ >({
1739
+ security: [
1740
+ {
1741
+ in: 'cookie',
1742
+ name: 'next-auth.session-token',
1743
+ type: 'apiKey',
1744
+ },
1745
+ ],
1746
+ url: '/api/segment/profile',
1747
+ ...options,
1748
+ headers: {
1749
+ 'Content-Type': 'application/json',
1750
+ ...options.headers,
1751
+ },
1752
+ });
1753
+
1754
+ /**
1755
+ * GET session
1756
+ */
1757
+ export const getApiSession = <ThrowOnError extends boolean = false>(
1758
+ options?: Options<GetApiSessionData, ThrowOnError>,
1759
+ ): RequestResult<GetApiSessionResponses, GetApiSessionErrors, ThrowOnError> =>
1760
+ (options?.client ?? client).get<GetApiSessionResponses, GetApiSessionErrors, ThrowOnError>({
1761
+ security: [
1762
+ {
1763
+ in: 'cookie',
1764
+ name: 'next-auth.session-token',
1765
+ type: 'apiKey',
1766
+ },
1767
+ ],
1768
+ url: '/api/session',
1769
+ ...options,
1770
+ });
1771
+
1772
+ /**
1773
+ * GET supported-regions
1774
+ */
1775
+ export const getApiSupportedRegions = <ThrowOnError extends boolean = false>(
1776
+ options?: Options<GetApiSupportedRegionsData, ThrowOnError>,
1777
+ ): RequestResult<GetApiSupportedRegionsResponses, GetApiSupportedRegionsErrors, ThrowOnError> =>
1778
+ (options?.client ?? client).get<
1779
+ GetApiSupportedRegionsResponses,
1780
+ GetApiSupportedRegionsErrors,
1781
+ ThrowOnError
1782
+ >({
1783
+ security: [
1784
+ {
1785
+ in: 'cookie',
1786
+ name: 'next-auth.session-token',
1787
+ type: 'apiKey',
1788
+ },
1789
+ ],
1790
+ url: '/api/supported-regions',
1791
+ ...options,
1792
+ });
1793
+
1794
+ /**
1795
+ * POST tags
1796
+ */
1797
+ export const postApiTags = <ThrowOnError extends boolean = false>(
1798
+ options: Options<PostApiTagsData, ThrowOnError>,
1799
+ ): RequestResult<PostApiTagsResponses, PostApiTagsErrors, ThrowOnError> =>
1800
+ (options.client ?? client).post<PostApiTagsResponses, PostApiTagsErrors, ThrowOnError>({
1801
+ security: [
1802
+ {
1803
+ in: 'cookie',
1804
+ name: 'next-auth.session-token',
1805
+ type: 'apiKey',
1806
+ },
1807
+ ],
1808
+ url: '/api/tags',
1809
+ ...options,
1810
+ headers: {
1811
+ 'Content-Type': 'application/json',
1812
+ ...options.headers,
1813
+ },
1814
+ });
1815
+
1816
+ /**
1817
+ * POST telemetry
1818
+ */
1819
+ export const postApiTelemetry = <ThrowOnError extends boolean = false>(
1820
+ options?: Options<PostApiTelemetryData, ThrowOnError>,
1821
+ ): RequestResult<PostApiTelemetryResponses, PostApiTelemetryErrors, ThrowOnError> =>
1822
+ (options?.client ?? client).post<PostApiTelemetryResponses, PostApiTelemetryErrors, ThrowOnError>(
1823
+ {
1824
+ security: [
1825
+ {
1826
+ in: 'cookie',
1827
+ name: 'next-auth.session-token',
1828
+ type: 'apiKey',
1829
+ },
1830
+ ],
1831
+ url: '/api/telemetry',
1832
+ ...options,
1833
+ },
1834
+ );
1835
+
1836
+ /**
1837
+ * DELETE template
1838
+ */
1839
+ export const deleteApiTemplate = <ThrowOnError extends boolean = false>(
1840
+ options?: Options<DeleteApiTemplateData, ThrowOnError>,
1841
+ ): RequestResult<DeleteApiTemplateResponses, DeleteApiTemplateErrors, ThrowOnError> =>
1842
+ (options?.client ?? client).delete<
1843
+ DeleteApiTemplateResponses,
1844
+ DeleteApiTemplateErrors,
1845
+ ThrowOnError
1846
+ >({
1847
+ security: [
1848
+ {
1849
+ in: 'cookie',
1850
+ name: 'next-auth.session-token',
1851
+ type: 'apiKey',
1852
+ },
1853
+ ],
1854
+ url: '/api/template',
1855
+ ...options,
1856
+ });
1857
+
1858
+ /**
1859
+ * POST template-autogen
1860
+ */
1861
+ export const postApiTemplateAutogen = <ThrowOnError extends boolean = false>(
1862
+ options: Options<PostApiTemplateAutogenData, ThrowOnError>,
1863
+ ): RequestResult<PostApiTemplateAutogenResponses, PostApiTemplateAutogenErrors, ThrowOnError> =>
1864
+ (options.client ?? client).post<
1865
+ PostApiTemplateAutogenResponses,
1866
+ PostApiTemplateAutogenErrors,
1867
+ ThrowOnError
1868
+ >({
1869
+ security: [
1870
+ {
1871
+ in: 'cookie',
1872
+ name: 'next-auth.session-token',
1873
+ type: 'apiKey',
1874
+ },
1875
+ ],
1876
+ url: '/api/template-autogen',
1877
+ ...options,
1878
+ headers: {
1879
+ 'Content-Type': 'application/json',
1880
+ ...options.headers,
1881
+ },
1882
+ });
1883
+
1884
+ /**
1885
+ * POST verify / check
1886
+ */
1887
+ export const postApiVerifyCheck = <ThrowOnError extends boolean = false>(
1888
+ options: Options<PostApiVerifyCheckData, ThrowOnError>,
1889
+ ): RequestResult<PostApiVerifyCheckResponses, PostApiVerifyCheckErrors, ThrowOnError> =>
1890
+ (options.client ?? client).post<
1891
+ PostApiVerifyCheckResponses,
1892
+ PostApiVerifyCheckErrors,
1893
+ ThrowOnError
1894
+ >({
1895
+ security: [
1896
+ {
1897
+ in: 'cookie',
1898
+ name: 'next-auth.session-token',
1899
+ type: 'apiKey',
1900
+ },
1901
+ ],
1902
+ url: '/api/verify/check',
1903
+ ...options,
1904
+ headers: {
1905
+ 'Content-Type': 'application/json',
1906
+ ...options.headers,
1907
+ },
1908
+ });
1909
+
1910
+ /**
1911
+ * POST verify / send
1912
+ */
1913
+ export const postApiVerifySend = <ThrowOnError extends boolean = false>(
1914
+ options: Options<PostApiVerifySendData, ThrowOnError>,
1915
+ ): RequestResult<PostApiVerifySendResponses, PostApiVerifySendErrors, ThrowOnError> =>
1916
+ (options.client ?? client).post<
1917
+ PostApiVerifySendResponses,
1918
+ PostApiVerifySendErrors,
1919
+ ThrowOnError
1920
+ >({
1921
+ security: [
1922
+ {
1923
+ in: 'cookie',
1924
+ name: 'next-auth.session-token',
1925
+ type: 'apiKey',
1926
+ },
1927
+ ],
1928
+ url: '/api/verify/send',
1929
+ ...options,
1930
+ headers: {
1931
+ 'Content-Type': 'application/json',
1932
+ ...options.headers,
1933
+ },
1934
+ });