weflayr 0.22.0 → 0.22.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.
Files changed (77) hide show
  1. package/.prettierignore +2 -0
  2. package/dist/api/caseConversion.d.ts +16 -0
  3. package/dist/api/caseConversion.js +45 -0
  4. package/dist/api/generated/client/client.gen.d.ts +2 -0
  5. package/dist/api/generated/client/client.gen.js +220 -0
  6. package/dist/api/generated/client/index.d.ts +10 -0
  7. package/dist/api/generated/client/index.js +17 -0
  8. package/dist/api/generated/client/types.gen.d.ts +120 -0
  9. package/dist/api/generated/client/types.gen.js +3 -0
  10. package/dist/api/generated/client/utils.gen.d.ts +37 -0
  11. package/dist/api/generated/client/utils.gen.js +239 -0
  12. package/dist/api/generated/client.gen.d.ts +12 -0
  13. package/dist/api/generated/client.gen.js +6 -0
  14. package/dist/api/generated/core/auth.gen.d.ts +25 -0
  15. package/dist/api/generated/core/auth.gen.js +18 -0
  16. package/dist/api/generated/core/bodySerializer.gen.d.ts +25 -0
  17. package/dist/api/generated/core/bodySerializer.gen.js +60 -0
  18. package/dist/api/generated/core/params.gen.d.ts +43 -0
  19. package/dist/api/generated/core/params.gen.js +112 -0
  20. package/dist/api/generated/core/pathSerializer.gen.d.ts +33 -0
  21. package/dist/api/generated/core/pathSerializer.gen.js +115 -0
  22. package/dist/api/generated/core/queryKeySerializer.gen.d.ts +18 -0
  23. package/dist/api/generated/core/queryKeySerializer.gen.js +98 -0
  24. package/dist/api/generated/core/serverSentEvents.gen.d.ts +71 -0
  25. package/dist/api/generated/core/serverSentEvents.gen.js +135 -0
  26. package/dist/api/generated/core/types.gen.d.ts +83 -0
  27. package/dist/api/generated/core/types.gen.js +3 -0
  28. package/dist/api/generated/core/utils.gen.d.ts +19 -0
  29. package/dist/api/generated/core/utils.gen.js +93 -0
  30. package/dist/api/generated/facade.gen.d.ts +208 -0
  31. package/dist/api/generated/facade.gen.js +52 -0
  32. package/dist/api/generated/index.d.ts +2 -0
  33. package/dist/api/generated/index.js +17 -0
  34. package/dist/api/generated/sdk.gen.d.ts +63 -0
  35. package/dist/api/generated/sdk.gen.js +125 -0
  36. package/dist/api/generated/types.gen.d.ts +711 -0
  37. package/dist/api/generated/types.gen.js +3 -0
  38. package/dist/api/index.d.ts +27 -0
  39. package/dist/api/index.js +48 -0
  40. package/dist/api/makeEndpoint.d.ts +27 -0
  41. package/dist/api/makeEndpoint.js +37 -0
  42. package/index.d.ts +24 -15
  43. package/openapi-ts.config.mjs +9 -0
  44. package/package.json +9 -2
  45. package/scripts/generate_facade.mjs +86 -0
  46. package/src/api/caseConversion.ts +58 -0
  47. package/src/api/generated/client/client.gen.ts +277 -0
  48. package/src/api/generated/client/index.ts +27 -0
  49. package/src/api/generated/client/types.gen.ts +218 -0
  50. package/src/api/generated/client/utils.gen.ts +316 -0
  51. package/src/api/generated/client.gen.ts +16 -0
  52. package/src/api/generated/core/auth.gen.ts +48 -0
  53. package/src/api/generated/core/bodySerializer.gen.ts +82 -0
  54. package/src/api/generated/core/params.gen.ts +178 -0
  55. package/src/api/generated/core/pathSerializer.gen.ts +171 -0
  56. package/src/api/generated/core/queryKeySerializer.gen.ts +117 -0
  57. package/src/api/generated/core/serverSentEvents.gen.ts +242 -0
  58. package/src/api/generated/core/types.gen.ts +110 -0
  59. package/src/api/generated/core/utils.gen.ts +140 -0
  60. package/src/api/generated/facade.gen.ts +80 -0
  61. package/src/api/generated/index.ts +4 -0
  62. package/src/api/generated/sdk.gen.ts +139 -0
  63. package/src/api/generated/types.gen.ts +792 -0
  64. package/src/api/index.ts +45 -0
  65. package/src/api/makeEndpoint.ts +54 -0
  66. package/src/auto-instrument.js +19 -6
  67. package/src/index.js +5 -0
  68. package/src/instrumentation/google/get_provider_name.js +2 -1
  69. package/src/instrumentation/vercel/full_instrumentation.js +44 -0
  70. package/src/otel/propagation.js +21 -12
  71. package/src/otel/span-processor.js +11 -1
  72. package/src/otel/vercel-ai-sdk-span-filter.js +79 -0
  73. package/tests/api/index.test.js +330 -0
  74. package/tests/index.test.js +48 -15
  75. package/tests/instrumentation/vercel/full_instrumentation.test.js +16 -0
  76. package/tests/otel/vercel-ai-sdk-span-filter.test.js +159 -0
  77. package/tsconfig.json +18 -0
@@ -0,0 +1,792 @@
1
+ // This file is auto-generated by @hey-api/openapi-ts
2
+
3
+ export type ClientOptions = {
4
+ baseUrl: 'https://app.weflayr.com/api' | (string & {});
5
+ };
6
+
7
+ /**
8
+ * AllCustomerTagsOutput
9
+ *
10
+ * The customer-tags GET response: every known customer of the project.
11
+ */
12
+ export type AllCustomerTagsOutput = {
13
+ /**
14
+ * Customers
15
+ */
16
+ customers: Array<CustomerTagsOutput>;
17
+ /**
18
+ * Next Cursor
19
+ */
20
+ next_cursor: string | null;
21
+ /**
22
+ * Has More
23
+ */
24
+ has_more: boolean;
25
+ };
26
+
27
+ /**
28
+ * ApiErrorOutput
29
+ *
30
+ * A refusal with a single human-readable message (401 and 404 bodies).
31
+ */
32
+ export type ApiErrorOutput = {
33
+ /**
34
+ * Error
35
+ */
36
+ error: string;
37
+ };
38
+
39
+ /**
40
+ * CustomerTags
41
+ *
42
+ * One customer's tag updates: a string value sets the tag, null deletes it.
43
+ */
44
+ export type CustomerTags = {
45
+ /**
46
+ * Customer Name
47
+ */
48
+ customer_name: string;
49
+ /**
50
+ * Tags
51
+ */
52
+ tags: {
53
+ [key: string]: string | null;
54
+ };
55
+ };
56
+
57
+ /**
58
+ * CustomerTagsOutput
59
+ *
60
+ * One customer with its tags (possibly empty).
61
+ */
62
+ export type CustomerTagsOutput = {
63
+ /**
64
+ * Customer Name
65
+ */
66
+ customer_name: string;
67
+ /**
68
+ * Tags
69
+ */
70
+ tags: {
71
+ [key: string]: string;
72
+ };
73
+ };
74
+
75
+ /**
76
+ * CustomersUpdatedOutput
77
+ *
78
+ * A successful tags upsert: how many customers were touched.
79
+ */
80
+ export type CustomersUpdatedOutput = {
81
+ /**
82
+ * Ok
83
+ */
84
+ ok: boolean;
85
+ /**
86
+ * Customers Updated
87
+ */
88
+ customers_updated: number;
89
+ };
90
+
91
+ /**
92
+ * InvalidFieldDetail
93
+ *
94
+ * One offending field of a rejected payload.
95
+ */
96
+ export type InvalidFieldDetail = {
97
+ /**
98
+ * Field
99
+ */
100
+ field: string;
101
+ /**
102
+ * Error
103
+ */
104
+ error: string;
105
+ };
106
+
107
+ /**
108
+ * InvalidPayloadOutput
109
+ *
110
+ * The all-or-nothing 422 body: every offending field, nothing written.
111
+ */
112
+ export type InvalidPayloadOutput = {
113
+ /**
114
+ * Error
115
+ */
116
+ error: string;
117
+ /**
118
+ * Detail
119
+ */
120
+ detail: Array<InvalidFieldDetail>;
121
+ };
122
+
123
+ /**
124
+ * KeyMetricOutput
125
+ *
126
+ * A key-metric GET response: one row per booked value.
127
+ */
128
+ export type KeyMetricOutput = {
129
+ /**
130
+ * Rows
131
+ */
132
+ rows: Array<KeyMetricRowOutput>;
133
+ /**
134
+ * Next Cursor
135
+ */
136
+ next_cursor: string | null;
137
+ /**
138
+ * Has More
139
+ */
140
+ has_more: boolean;
141
+ };
142
+
143
+ /**
144
+ * KeyMetricRow
145
+ *
146
+ * One booked key-metric value: the user, the metric, the amount, and
147
+ * either its month or the month_start/month_end period it should be split
148
+ * across.
149
+ */
150
+ export type KeyMetricRow = {
151
+ /**
152
+ * User Defined Id
153
+ *
154
+ * Your own id for this value. Omit it to book a new value; reuse a previous one to update it (needs "upsert": true, see the "upsert" field).
155
+ */
156
+ user_defined_id?: string | null;
157
+ /**
158
+ * User Name
159
+ */
160
+ user_name: string;
161
+ /**
162
+ * Metric Name
163
+ */
164
+ metric_name: string;
165
+ /**
166
+ * Amount
167
+ */
168
+ amount: number | string;
169
+ /**
170
+ * Month
171
+ */
172
+ month?: string | null;
173
+ /**
174
+ * Month Start
175
+ */
176
+ month_start?: string | null;
177
+ /**
178
+ * Month End
179
+ */
180
+ month_end?: string | null;
181
+ };
182
+
183
+ /**
184
+ * KeyMetricRowOutput
185
+ *
186
+ * One booked key-metric value.
187
+ */
188
+ export type KeyMetricRowOutput = {
189
+ /**
190
+ * User Defined Id
191
+ */
192
+ user_defined_id: string;
193
+ /**
194
+ * Metric Name
195
+ */
196
+ metric_name: string;
197
+ /**
198
+ * Month
199
+ */
200
+ month: string;
201
+ /**
202
+ * Amount
203
+ */
204
+ amount: string;
205
+ /**
206
+ * Source
207
+ */
208
+ source: string;
209
+ /**
210
+ * User Name
211
+ */
212
+ user_name: string;
213
+ };
214
+
215
+ /**
216
+ * RevenueOrKeyMetricDeletedRowOutput
217
+ *
218
+ * A successful values deletion: how many rows were removed.
219
+ */
220
+ export type RevenueOrKeyMetricDeletedRowOutput = {
221
+ /**
222
+ * Ok
223
+ */
224
+ ok: boolean;
225
+ /**
226
+ * Rows Deleted
227
+ */
228
+ rows_deleted: number;
229
+ };
230
+
231
+ /**
232
+ * RevenueOrKeyMetricImportedRowOutput
233
+ *
234
+ * A successful values upsert: how many rows were imported.
235
+ */
236
+ export type RevenueOrKeyMetricImportedRowOutput = {
237
+ /**
238
+ * Ok
239
+ */
240
+ ok: boolean;
241
+ /**
242
+ * Rows Inserted
243
+ */
244
+ rows_inserted: number;
245
+ };
246
+
247
+ /**
248
+ * RevenueOutput
249
+ *
250
+ * A revenue GET response: one row per booked value.
251
+ */
252
+ export type RevenueOutput = {
253
+ /**
254
+ * Rows
255
+ */
256
+ rows: Array<RevenueRowOutput>;
257
+ /**
258
+ * Next Cursor
259
+ */
260
+ next_cursor: string | null;
261
+ /**
262
+ * Has More
263
+ */
264
+ has_more: boolean;
265
+ };
266
+
267
+ /**
268
+ * RevenueRow
269
+ *
270
+ * One booked revenue value: the customer, the amount, and either its
271
+ * month or the month_start/month_end period it should be split across.
272
+ */
273
+ export type RevenueRow = {
274
+ /**
275
+ * User Defined Id
276
+ *
277
+ * Your own id for this value. Omit it to book a new value; reuse a previous one to update it (needs "upsert": true, see the "upsert" field).
278
+ */
279
+ user_defined_id?: string | null;
280
+ /**
281
+ * Customer Name
282
+ */
283
+ customer_name: string;
284
+ /**
285
+ * Amount
286
+ */
287
+ amount: number | string;
288
+ /**
289
+ * Month
290
+ */
291
+ month?: string | null;
292
+ /**
293
+ * Month Start
294
+ */
295
+ month_start?: string | null;
296
+ /**
297
+ * Month End
298
+ */
299
+ month_end?: string | null;
300
+ };
301
+
302
+ /**
303
+ * RevenueRowOutput
304
+ *
305
+ * One booked revenue value.
306
+ */
307
+ export type RevenueRowOutput = {
308
+ /**
309
+ * User Defined Id
310
+ */
311
+ user_defined_id: string;
312
+ /**
313
+ * Metric Name
314
+ */
315
+ metric_name: string;
316
+ /**
317
+ * Month
318
+ */
319
+ month: string;
320
+ /**
321
+ * Amount
322
+ */
323
+ amount: string;
324
+ /**
325
+ * Source
326
+ */
327
+ source: string;
328
+ /**
329
+ * Customer Name
330
+ */
331
+ customer_name: string;
332
+ };
333
+
334
+ /**
335
+ * SetCustomerTagsInput
336
+ *
337
+ * The tag updates posted to the public API, one entry per customer.
338
+ */
339
+ export type SetCustomerTagsInput = {
340
+ /**
341
+ * Customers
342
+ */
343
+ customers: Array<CustomerTags>;
344
+ /**
345
+ * Upsert
346
+ *
347
+ * If a customer's tag key already exists, overwrite it instead of rejecting the request.
348
+ */
349
+ upsert?: boolean;
350
+ };
351
+
352
+ /**
353
+ * SetKeyMetricsInput
354
+ *
355
+ * The key-metric values posted to the public API. A user may have
356
+ * several lines of the same metric in the same month; rows are only ever
357
+ * matched against each other by user_defined_id, never by (user, metric,
358
+ * month).
359
+ */
360
+ export type SetKeyMetricsInput = {
361
+ /**
362
+ * Rows
363
+ */
364
+ rows: Array<KeyMetricRow>;
365
+ /**
366
+ * Upsert
367
+ *
368
+ * If a row's user_defined_id already exists, overwrite it instead of rejecting the request.
369
+ */
370
+ upsert?: boolean;
371
+ };
372
+
373
+ /**
374
+ * SetRevenueInput
375
+ *
376
+ * The revenue values posted to the public API. A customer may have several
377
+ * revenue lines in the same month (e.g. one per product or contract); rows
378
+ * are only ever matched against each other by user_defined_id, never by
379
+ * (customer, month).
380
+ */
381
+ export type SetRevenueInput = {
382
+ /**
383
+ * Rows
384
+ */
385
+ rows: Array<RevenueRow>;
386
+ /**
387
+ * Upsert
388
+ *
389
+ * If a row's user_defined_id already exists, overwrite it instead of rejecting the request.
390
+ */
391
+ upsert?: boolean;
392
+ };
393
+
394
+ /**
395
+ * TagsDeletedOutput
396
+ *
397
+ * A successful tags deletion: how many tags were removed.
398
+ */
399
+ export type TagsDeletedOutput = {
400
+ /**
401
+ * Ok
402
+ */
403
+ ok: boolean;
404
+ /**
405
+ * Tags Deleted
406
+ */
407
+ tags_deleted: number;
408
+ };
409
+
410
+ export type GetAllRevenueData = {
411
+ body?: never;
412
+ path?: never;
413
+ query?: {
414
+ /**
415
+ * Opaque cursor from a previous page's next_cursor.
416
+ */
417
+ cursor?: string;
418
+ limit?: number;
419
+ };
420
+ url: '/revenue/';
421
+ };
422
+
423
+ export type GetAllRevenueErrors = {
424
+ /**
425
+ * Missing or invalid API key.
426
+ */
427
+ 401: ApiErrorOutput;
428
+ };
429
+
430
+ export type GetAllRevenueError = GetAllRevenueErrors[keyof GetAllRevenueErrors];
431
+
432
+ export type GetAllRevenueResponses = {
433
+ /**
434
+ * Success.
435
+ */
436
+ 200: RevenueOutput;
437
+ };
438
+
439
+ export type GetAllRevenueResponse = GetAllRevenueResponses[keyof GetAllRevenueResponses];
440
+
441
+ export type SetRevenueData = {
442
+ body: SetRevenueInput;
443
+ path?: never;
444
+ query?: never;
445
+ url: '/revenue/';
446
+ };
447
+
448
+ export type SetRevenueErrors = {
449
+ /**
450
+ * Missing or invalid API key.
451
+ */
452
+ 401: ApiErrorOutput;
453
+ /**
454
+ * Invalid payload: every offending field is listed and nothing was written.
455
+ */
456
+ 422: InvalidPayloadOutput;
457
+ };
458
+
459
+ export type SetRevenueError = SetRevenueErrors[keyof SetRevenueErrors];
460
+
461
+ export type SetRevenueResponses = {
462
+ /**
463
+ * Success.
464
+ */
465
+ 200: RevenueOrKeyMetricImportedRowOutput;
466
+ };
467
+
468
+ export type SetRevenueResponse = SetRevenueResponses[keyof SetRevenueResponses];
469
+
470
+ export type DeleteCustomerRevenueData = {
471
+ body?: never;
472
+ path: {
473
+ customer_name: string;
474
+ };
475
+ query?: {
476
+ /**
477
+ * First month to delete (inclusive). Omit both bounds to delete every matching API-booked value.
478
+ */
479
+ month_start?: string;
480
+ /**
481
+ * Last month to delete (inclusive).
482
+ */
483
+ month_end?: string;
484
+ };
485
+ url: '/revenue/{customer_name}/';
486
+ };
487
+
488
+ export type DeleteCustomerRevenueErrors = {
489
+ /**
490
+ * Missing or invalid API key.
491
+ */
492
+ 401: ApiErrorOutput;
493
+ /**
494
+ * Invalid payload: every offending field is listed and nothing was written.
495
+ */
496
+ 422: InvalidPayloadOutput;
497
+ };
498
+
499
+ export type DeleteCustomerRevenueError = DeleteCustomerRevenueErrors[keyof DeleteCustomerRevenueErrors];
500
+
501
+ export type DeleteCustomerRevenueResponses = {
502
+ /**
503
+ * Success.
504
+ */
505
+ 200: RevenueOrKeyMetricDeletedRowOutput;
506
+ };
507
+
508
+ export type DeleteCustomerRevenueResponse = DeleteCustomerRevenueResponses[keyof DeleteCustomerRevenueResponses];
509
+
510
+ export type GetCustomerRevenueData = {
511
+ body?: never;
512
+ path: {
513
+ customer_name: string;
514
+ };
515
+ query?: never;
516
+ url: '/revenue/{customer_name}/';
517
+ };
518
+
519
+ export type GetCustomerRevenueErrors = {
520
+ /**
521
+ * Missing or invalid API key.
522
+ */
523
+ 401: ApiErrorOutput;
524
+ /**
525
+ * Nothing exists for this customer.
526
+ */
527
+ 404: ApiErrorOutput;
528
+ };
529
+
530
+ export type GetCustomerRevenueError = GetCustomerRevenueErrors[keyof GetCustomerRevenueErrors];
531
+
532
+ export type GetCustomerRevenueResponses = {
533
+ /**
534
+ * Success.
535
+ */
536
+ 200: RevenueOutput;
537
+ };
538
+
539
+ export type GetCustomerRevenueResponse = GetCustomerRevenueResponses[keyof GetCustomerRevenueResponses];
540
+
541
+ export type GetAllKeyMetricsData = {
542
+ body?: never;
543
+ path?: never;
544
+ query?: {
545
+ /**
546
+ * Opaque cursor from a previous page's next_cursor.
547
+ */
548
+ cursor?: string;
549
+ limit?: number;
550
+ };
551
+ url: '/key-metrics/';
552
+ };
553
+
554
+ export type GetAllKeyMetricsErrors = {
555
+ /**
556
+ * Missing or invalid API key.
557
+ */
558
+ 401: ApiErrorOutput;
559
+ };
560
+
561
+ export type GetAllKeyMetricsError = GetAllKeyMetricsErrors[keyof GetAllKeyMetricsErrors];
562
+
563
+ export type GetAllKeyMetricsResponses = {
564
+ /**
565
+ * Success.
566
+ */
567
+ 200: KeyMetricOutput;
568
+ };
569
+
570
+ export type GetAllKeyMetricsResponse = GetAllKeyMetricsResponses[keyof GetAllKeyMetricsResponses];
571
+
572
+ export type SetKeyMetricsData = {
573
+ body: SetKeyMetricsInput;
574
+ path?: never;
575
+ query?: never;
576
+ url: '/key-metrics/';
577
+ };
578
+
579
+ export type SetKeyMetricsErrors = {
580
+ /**
581
+ * Missing or invalid API key.
582
+ */
583
+ 401: ApiErrorOutput;
584
+ /**
585
+ * Invalid payload: every offending field is listed and nothing was written.
586
+ */
587
+ 422: InvalidPayloadOutput;
588
+ };
589
+
590
+ export type SetKeyMetricsError = SetKeyMetricsErrors[keyof SetKeyMetricsErrors];
591
+
592
+ export type SetKeyMetricsResponses = {
593
+ /**
594
+ * Success.
595
+ */
596
+ 200: RevenueOrKeyMetricImportedRowOutput;
597
+ };
598
+
599
+ export type SetKeyMetricsResponse = SetKeyMetricsResponses[keyof SetKeyMetricsResponses];
600
+
601
+ export type DeleteUserKeyMetricsData = {
602
+ body?: never;
603
+ path: {
604
+ user_name: string;
605
+ };
606
+ query?: {
607
+ /**
608
+ * First month to delete (inclusive). Omit both bounds to delete every matching API-booked value.
609
+ */
610
+ month_start?: string;
611
+ /**
612
+ * Last month to delete (inclusive).
613
+ */
614
+ month_end?: string;
615
+ };
616
+ url: '/key-metrics/{user_name}/';
617
+ };
618
+
619
+ export type DeleteUserKeyMetricsErrors = {
620
+ /**
621
+ * Missing or invalid API key.
622
+ */
623
+ 401: ApiErrorOutput;
624
+ /**
625
+ * Invalid payload: every offending field is listed and nothing was written.
626
+ */
627
+ 422: InvalidPayloadOutput;
628
+ };
629
+
630
+ export type DeleteUserKeyMetricsError = DeleteUserKeyMetricsErrors[keyof DeleteUserKeyMetricsErrors];
631
+
632
+ export type DeleteUserKeyMetricsResponses = {
633
+ /**
634
+ * Success.
635
+ */
636
+ 200: RevenueOrKeyMetricDeletedRowOutput;
637
+ };
638
+
639
+ export type DeleteUserKeyMetricsResponse = DeleteUserKeyMetricsResponses[keyof DeleteUserKeyMetricsResponses];
640
+
641
+ export type GetUserKeyMetricsData = {
642
+ body?: never;
643
+ path: {
644
+ user_name: string;
645
+ };
646
+ query?: never;
647
+ url: '/key-metrics/{user_name}/';
648
+ };
649
+
650
+ export type GetUserKeyMetricsErrors = {
651
+ /**
652
+ * Missing or invalid API key.
653
+ */
654
+ 401: ApiErrorOutput;
655
+ /**
656
+ * Nothing exists for this customer.
657
+ */
658
+ 404: ApiErrorOutput;
659
+ };
660
+
661
+ export type GetUserKeyMetricsError = GetUserKeyMetricsErrors[keyof GetUserKeyMetricsErrors];
662
+
663
+ export type GetUserKeyMetricsResponses = {
664
+ /**
665
+ * Success.
666
+ */
667
+ 200: KeyMetricOutput;
668
+ };
669
+
670
+ export type GetUserKeyMetricsResponse = GetUserKeyMetricsResponses[keyof GetUserKeyMetricsResponses];
671
+
672
+ export type GetAllCustomersTagsData = {
673
+ body?: never;
674
+ path?: never;
675
+ query?: {
676
+ /**
677
+ * Opaque cursor from a previous page's next_cursor.
678
+ */
679
+ cursor?: string;
680
+ limit?: number;
681
+ };
682
+ url: '/customer-tags/';
683
+ };
684
+
685
+ export type GetAllCustomersTagsErrors = {
686
+ /**
687
+ * Missing or invalid API key.
688
+ */
689
+ 401: ApiErrorOutput;
690
+ };
691
+
692
+ export type GetAllCustomersTagsError = GetAllCustomersTagsErrors[keyof GetAllCustomersTagsErrors];
693
+
694
+ export type GetAllCustomersTagsResponses = {
695
+ /**
696
+ * Success.
697
+ */
698
+ 200: AllCustomerTagsOutput;
699
+ };
700
+
701
+ export type GetAllCustomersTagsResponse = GetAllCustomersTagsResponses[keyof GetAllCustomersTagsResponses];
702
+
703
+ export type SetCustomersTagsData = {
704
+ body: SetCustomerTagsInput;
705
+ path?: never;
706
+ query?: never;
707
+ url: '/customer-tags/';
708
+ };
709
+
710
+ export type SetCustomersTagsErrors = {
711
+ /**
712
+ * Missing or invalid API key.
713
+ */
714
+ 401: ApiErrorOutput;
715
+ /**
716
+ * Invalid payload: every offending field is listed and nothing was written.
717
+ */
718
+ 422: InvalidPayloadOutput;
719
+ };
720
+
721
+ export type SetCustomersTagsError = SetCustomersTagsErrors[keyof SetCustomersTagsErrors];
722
+
723
+ export type SetCustomersTagsResponses = {
724
+ /**
725
+ * Success.
726
+ */
727
+ 200: CustomersUpdatedOutput;
728
+ };
729
+
730
+ export type SetCustomersTagsResponse = SetCustomersTagsResponses[keyof SetCustomersTagsResponses];
731
+
732
+ export type DeleteCustomerTagsData = {
733
+ body?: never;
734
+ path: {
735
+ customer_name: string;
736
+ };
737
+ query?: never;
738
+ url: '/customer-tags/{customer_name}/';
739
+ };
740
+
741
+ export type DeleteCustomerTagsErrors = {
742
+ /**
743
+ * Missing or invalid API key.
744
+ */
745
+ 401: ApiErrorOutput;
746
+ /**
747
+ * Nothing exists for this customer.
748
+ */
749
+ 404: ApiErrorOutput;
750
+ };
751
+
752
+ export type DeleteCustomerTagsError = DeleteCustomerTagsErrors[keyof DeleteCustomerTagsErrors];
753
+
754
+ export type DeleteCustomerTagsResponses = {
755
+ /**
756
+ * Success.
757
+ */
758
+ 200: TagsDeletedOutput;
759
+ };
760
+
761
+ export type DeleteCustomerTagsResponse = DeleteCustomerTagsResponses[keyof DeleteCustomerTagsResponses];
762
+
763
+ export type GetCustomerTagsData = {
764
+ body?: never;
765
+ path: {
766
+ customer_name: string;
767
+ };
768
+ query?: never;
769
+ url: '/customer-tags/{customer_name}/';
770
+ };
771
+
772
+ export type GetCustomerTagsErrors = {
773
+ /**
774
+ * Missing or invalid API key.
775
+ */
776
+ 401: ApiErrorOutput;
777
+ /**
778
+ * Nothing exists for this customer.
779
+ */
780
+ 404: ApiErrorOutput;
781
+ };
782
+
783
+ export type GetCustomerTagsError = GetCustomerTagsErrors[keyof GetCustomerTagsErrors];
784
+
785
+ export type GetCustomerTagsResponses = {
786
+ /**
787
+ * Success.
788
+ */
789
+ 200: CustomerTagsOutput;
790
+ };
791
+
792
+ export type GetCustomerTagsResponse = GetCustomerTagsResponses[keyof GetCustomerTagsResponses];