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