@purveyors/sdk 0.24.0 → 0.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1280 -91
- package/dist/index.js +21 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -115,6 +115,690 @@ interface paths {
|
|
|
115
115
|
patch?: never;
|
|
116
116
|
trace?: never;
|
|
117
117
|
};
|
|
118
|
+
"/v1/account-deletion": {
|
|
119
|
+
parameters: {
|
|
120
|
+
query?: never;
|
|
121
|
+
header?: never;
|
|
122
|
+
path?: never;
|
|
123
|
+
cookie?: never;
|
|
124
|
+
};
|
|
125
|
+
get?: never;
|
|
126
|
+
put?: never;
|
|
127
|
+
/**
|
|
128
|
+
* Request deletion of the authenticated user's account
|
|
129
|
+
* @description Idempotently creates or returns the durable deletion operation and quiesces owner writes. This destructive session-only route is dark-launched.
|
|
130
|
+
*/
|
|
131
|
+
post: {
|
|
132
|
+
parameters: {
|
|
133
|
+
query?: never;
|
|
134
|
+
header?: never;
|
|
135
|
+
path?: never;
|
|
136
|
+
cookie?: never;
|
|
137
|
+
};
|
|
138
|
+
requestBody?: never;
|
|
139
|
+
responses: {
|
|
140
|
+
/** @description Durable deletion operation */
|
|
141
|
+
200: {
|
|
142
|
+
headers: {
|
|
143
|
+
/** @description Sensitive lifecycle responses are never cached */
|
|
144
|
+
"Cache-Control"?: string;
|
|
145
|
+
[name: string]: unknown;
|
|
146
|
+
};
|
|
147
|
+
content: {
|
|
148
|
+
"application/json": components["schemas"]["AccountDeletionOperation"];
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
/** @description A valid Supabase user session is required */
|
|
152
|
+
401: {
|
|
153
|
+
headers: {
|
|
154
|
+
[name: string]: unknown;
|
|
155
|
+
};
|
|
156
|
+
content: {
|
|
157
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
/** @description Account deletion is blocked by account or billing state */
|
|
161
|
+
409: {
|
|
162
|
+
headers: {
|
|
163
|
+
[name: string]: unknown;
|
|
164
|
+
};
|
|
165
|
+
content: {
|
|
166
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
167
|
+
};
|
|
168
|
+
};
|
|
169
|
+
/** @description The owner mutation throttle was exceeded */
|
|
170
|
+
429: {
|
|
171
|
+
headers: {
|
|
172
|
+
[name: string]: unknown;
|
|
173
|
+
};
|
|
174
|
+
content: {
|
|
175
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
176
|
+
};
|
|
177
|
+
};
|
|
178
|
+
/** @description The lifecycle is disabled or storage is unavailable */
|
|
179
|
+
503: {
|
|
180
|
+
headers: {
|
|
181
|
+
[name: string]: unknown;
|
|
182
|
+
};
|
|
183
|
+
content: {
|
|
184
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
185
|
+
};
|
|
186
|
+
};
|
|
187
|
+
};
|
|
188
|
+
};
|
|
189
|
+
delete?: never;
|
|
190
|
+
options?: never;
|
|
191
|
+
head?: never;
|
|
192
|
+
patch?: never;
|
|
193
|
+
trace?: never;
|
|
194
|
+
};
|
|
195
|
+
"/v1/checkout-admissions": {
|
|
196
|
+
parameters: {
|
|
197
|
+
query?: never;
|
|
198
|
+
header?: never;
|
|
199
|
+
path?: never;
|
|
200
|
+
cookie?: never;
|
|
201
|
+
};
|
|
202
|
+
get?: never;
|
|
203
|
+
put?: never;
|
|
204
|
+
/**
|
|
205
|
+
* Acquire a durable Stripe Checkout admission
|
|
206
|
+
* @description Session-only dark-launch boundary. Acquire before creating Stripe state; replay the same request id after an ambiguous client failure and use admissionId as the Stripe idempotency key.
|
|
207
|
+
*/
|
|
208
|
+
post: {
|
|
209
|
+
parameters: {
|
|
210
|
+
query?: never;
|
|
211
|
+
header?: never;
|
|
212
|
+
path?: never;
|
|
213
|
+
cookie?: never;
|
|
214
|
+
};
|
|
215
|
+
requestBody: {
|
|
216
|
+
content: {
|
|
217
|
+
"application/json": {
|
|
218
|
+
/** Format: uuid */
|
|
219
|
+
requestId: string;
|
|
220
|
+
};
|
|
221
|
+
};
|
|
222
|
+
};
|
|
223
|
+
responses: {
|
|
224
|
+
/** @description Durable owner-bound Checkout admission */
|
|
225
|
+
200: {
|
|
226
|
+
headers: {
|
|
227
|
+
[name: string]: unknown;
|
|
228
|
+
};
|
|
229
|
+
content: {
|
|
230
|
+
"application/json": components["schemas"]["CheckoutAdmission"];
|
|
231
|
+
};
|
|
232
|
+
};
|
|
233
|
+
/** @description Malformed request */
|
|
234
|
+
400: {
|
|
235
|
+
headers: {
|
|
236
|
+
[name: string]: unknown;
|
|
237
|
+
};
|
|
238
|
+
content: {
|
|
239
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
240
|
+
};
|
|
241
|
+
};
|
|
242
|
+
/** @description A valid Supabase user session is required */
|
|
243
|
+
401: {
|
|
244
|
+
headers: {
|
|
245
|
+
[name: string]: unknown;
|
|
246
|
+
};
|
|
247
|
+
content: {
|
|
248
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
249
|
+
};
|
|
250
|
+
};
|
|
251
|
+
/** @description Checkout is fenced by account deletion */
|
|
252
|
+
409: {
|
|
253
|
+
headers: {
|
|
254
|
+
[name: string]: unknown;
|
|
255
|
+
};
|
|
256
|
+
content: {
|
|
257
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
258
|
+
};
|
|
259
|
+
};
|
|
260
|
+
/** @description The owner mutation throttle was exceeded */
|
|
261
|
+
429: {
|
|
262
|
+
headers: {
|
|
263
|
+
[name: string]: unknown;
|
|
264
|
+
};
|
|
265
|
+
content: {
|
|
266
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
267
|
+
};
|
|
268
|
+
};
|
|
269
|
+
/** @description Checkout admission storage is unavailable */
|
|
270
|
+
503: {
|
|
271
|
+
headers: {
|
|
272
|
+
[name: string]: unknown;
|
|
273
|
+
};
|
|
274
|
+
content: {
|
|
275
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
276
|
+
};
|
|
277
|
+
};
|
|
278
|
+
};
|
|
279
|
+
};
|
|
280
|
+
delete?: never;
|
|
281
|
+
options?: never;
|
|
282
|
+
head?: never;
|
|
283
|
+
patch?: never;
|
|
284
|
+
trace?: never;
|
|
285
|
+
};
|
|
286
|
+
"/v1/checkout-admissions/{admissionId}/publish": {
|
|
287
|
+
parameters: {
|
|
288
|
+
query?: never;
|
|
289
|
+
header?: never;
|
|
290
|
+
path?: never;
|
|
291
|
+
cookie?: never;
|
|
292
|
+
};
|
|
293
|
+
get?: never;
|
|
294
|
+
put?: never;
|
|
295
|
+
/**
|
|
296
|
+
* Publish the Stripe session created for an admission
|
|
297
|
+
* @description Dark-launch trusted coffee BFF boundary. Requires the owner session plus provider credential so an owner cannot attach an arbitrary Stripe Checkout Session to the admission ledger. Publication is idempotent for the same admission and Stripe session.
|
|
298
|
+
*/
|
|
299
|
+
post: {
|
|
300
|
+
parameters: {
|
|
301
|
+
query?: never;
|
|
302
|
+
header: {
|
|
303
|
+
"x-account-deletion-provider-credential": string;
|
|
304
|
+
};
|
|
305
|
+
path: {
|
|
306
|
+
admissionId: string;
|
|
307
|
+
};
|
|
308
|
+
cookie?: never;
|
|
309
|
+
};
|
|
310
|
+
requestBody: {
|
|
311
|
+
content: {
|
|
312
|
+
"application/json": {
|
|
313
|
+
stripeSessionId: string;
|
|
314
|
+
};
|
|
315
|
+
};
|
|
316
|
+
};
|
|
317
|
+
responses: {
|
|
318
|
+
/** @description Published Checkout admission */
|
|
319
|
+
200: {
|
|
320
|
+
headers: {
|
|
321
|
+
[name: string]: unknown;
|
|
322
|
+
};
|
|
323
|
+
content: {
|
|
324
|
+
"application/json": components["schemas"]["CheckoutAdmission"];
|
|
325
|
+
};
|
|
326
|
+
};
|
|
327
|
+
/** @description Malformed request */
|
|
328
|
+
400: {
|
|
329
|
+
headers: {
|
|
330
|
+
[name: string]: unknown;
|
|
331
|
+
};
|
|
332
|
+
content: {
|
|
333
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
334
|
+
};
|
|
335
|
+
};
|
|
336
|
+
/** @description A valid Supabase user session is required */
|
|
337
|
+
401: {
|
|
338
|
+
headers: {
|
|
339
|
+
[name: string]: unknown;
|
|
340
|
+
};
|
|
341
|
+
content: {
|
|
342
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
343
|
+
};
|
|
344
|
+
};
|
|
345
|
+
/** @description Trusted provider authorization is required */
|
|
346
|
+
403: {
|
|
347
|
+
headers: {
|
|
348
|
+
[name: string]: unknown;
|
|
349
|
+
};
|
|
350
|
+
content: {
|
|
351
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
352
|
+
};
|
|
353
|
+
};
|
|
354
|
+
/** @description Admission not found */
|
|
355
|
+
404: {
|
|
356
|
+
headers: {
|
|
357
|
+
[name: string]: unknown;
|
|
358
|
+
};
|
|
359
|
+
content: {
|
|
360
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
361
|
+
};
|
|
362
|
+
};
|
|
363
|
+
/** @description Checkout is fenced by account deletion */
|
|
364
|
+
409: {
|
|
365
|
+
headers: {
|
|
366
|
+
[name: string]: unknown;
|
|
367
|
+
};
|
|
368
|
+
content: {
|
|
369
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
370
|
+
};
|
|
371
|
+
};
|
|
372
|
+
/** @description The owner mutation throttle was exceeded */
|
|
373
|
+
429: {
|
|
374
|
+
headers: {
|
|
375
|
+
[name: string]: unknown;
|
|
376
|
+
};
|
|
377
|
+
content: {
|
|
378
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
379
|
+
};
|
|
380
|
+
};
|
|
381
|
+
/** @description Checkout admission storage is unavailable */
|
|
382
|
+
503: {
|
|
383
|
+
headers: {
|
|
384
|
+
[name: string]: unknown;
|
|
385
|
+
};
|
|
386
|
+
content: {
|
|
387
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
388
|
+
};
|
|
389
|
+
};
|
|
390
|
+
};
|
|
391
|
+
};
|
|
392
|
+
delete?: never;
|
|
393
|
+
options?: never;
|
|
394
|
+
head?: never;
|
|
395
|
+
patch?: never;
|
|
396
|
+
trace?: never;
|
|
397
|
+
};
|
|
398
|
+
"/v1/checkout-admissions/{admissionId}/abandon": {
|
|
399
|
+
parameters: {
|
|
400
|
+
query?: never;
|
|
401
|
+
header?: never;
|
|
402
|
+
path?: never;
|
|
403
|
+
cookie?: never;
|
|
404
|
+
};
|
|
405
|
+
get?: never;
|
|
406
|
+
put?: never;
|
|
407
|
+
/**
|
|
408
|
+
* Resolve a Checkout admission with definite no-session evidence
|
|
409
|
+
* @description Dark-launch trusted coffee BFF boundary. Requires the owner session plus provider credential. Call only after Stripe authoritatively proves no Checkout Session exists for the admission idempotency key; an ordinary user session cannot erase creating-state ambiguity.
|
|
410
|
+
*/
|
|
411
|
+
post: {
|
|
412
|
+
parameters: {
|
|
413
|
+
query?: never;
|
|
414
|
+
header: {
|
|
415
|
+
"x-account-deletion-provider-credential": string;
|
|
416
|
+
};
|
|
417
|
+
path: {
|
|
418
|
+
admissionId: string;
|
|
419
|
+
};
|
|
420
|
+
cookie?: never;
|
|
421
|
+
};
|
|
422
|
+
requestBody: {
|
|
423
|
+
content: {
|
|
424
|
+
"application/json": {
|
|
425
|
+
/** @enum {string} */
|
|
426
|
+
evidence: "stripe_creation_definitively_absent";
|
|
427
|
+
};
|
|
428
|
+
};
|
|
429
|
+
};
|
|
430
|
+
responses: {
|
|
431
|
+
/** @description Closed Checkout admission */
|
|
432
|
+
200: {
|
|
433
|
+
headers: {
|
|
434
|
+
[name: string]: unknown;
|
|
435
|
+
};
|
|
436
|
+
content: {
|
|
437
|
+
"application/json": components["schemas"]["CheckoutAdmission"];
|
|
438
|
+
};
|
|
439
|
+
};
|
|
440
|
+
/** @description Malformed request or evidence */
|
|
441
|
+
400: {
|
|
442
|
+
headers: {
|
|
443
|
+
[name: string]: unknown;
|
|
444
|
+
};
|
|
445
|
+
content: {
|
|
446
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
447
|
+
};
|
|
448
|
+
};
|
|
449
|
+
/** @description A valid Supabase user session is required */
|
|
450
|
+
401: {
|
|
451
|
+
headers: {
|
|
452
|
+
[name: string]: unknown;
|
|
453
|
+
};
|
|
454
|
+
content: {
|
|
455
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
456
|
+
};
|
|
457
|
+
};
|
|
458
|
+
/** @description Trusted provider authorization is required */
|
|
459
|
+
403: {
|
|
460
|
+
headers: {
|
|
461
|
+
[name: string]: unknown;
|
|
462
|
+
};
|
|
463
|
+
content: {
|
|
464
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
465
|
+
};
|
|
466
|
+
};
|
|
467
|
+
/** @description Creating admission not found */
|
|
468
|
+
404: {
|
|
469
|
+
headers: {
|
|
470
|
+
[name: string]: unknown;
|
|
471
|
+
};
|
|
472
|
+
content: {
|
|
473
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
474
|
+
};
|
|
475
|
+
};
|
|
476
|
+
/** @description The owner mutation throttle was exceeded */
|
|
477
|
+
429: {
|
|
478
|
+
headers: {
|
|
479
|
+
[name: string]: unknown;
|
|
480
|
+
};
|
|
481
|
+
content: {
|
|
482
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
483
|
+
};
|
|
484
|
+
};
|
|
485
|
+
/** @description Checkout admission storage is unavailable */
|
|
486
|
+
503: {
|
|
487
|
+
headers: {
|
|
488
|
+
[name: string]: unknown;
|
|
489
|
+
};
|
|
490
|
+
content: {
|
|
491
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
492
|
+
};
|
|
493
|
+
};
|
|
494
|
+
};
|
|
495
|
+
};
|
|
496
|
+
delete?: never;
|
|
497
|
+
options?: never;
|
|
498
|
+
head?: never;
|
|
499
|
+
patch?: never;
|
|
500
|
+
trace?: never;
|
|
501
|
+
};
|
|
502
|
+
"/v1/checkout-admissions/provider-eligibility": {
|
|
503
|
+
parameters: {
|
|
504
|
+
query?: never;
|
|
505
|
+
header?: never;
|
|
506
|
+
path?: never;
|
|
507
|
+
cookie?: never;
|
|
508
|
+
};
|
|
509
|
+
get?: never;
|
|
510
|
+
put?: never;
|
|
511
|
+
/**
|
|
512
|
+
* Check whether provider writes remain eligible
|
|
513
|
+
* @description Dark-launch internal webhook boundary. Requires the shared provider-finalization credential and returns false for missing, closed, cross-owner, or deletion-fenced admissions.
|
|
514
|
+
*/
|
|
515
|
+
post: {
|
|
516
|
+
parameters: {
|
|
517
|
+
query?: never;
|
|
518
|
+
header: {
|
|
519
|
+
"x-account-deletion-provider-credential": string;
|
|
520
|
+
};
|
|
521
|
+
path?: never;
|
|
522
|
+
cookie?: never;
|
|
523
|
+
};
|
|
524
|
+
requestBody: {
|
|
525
|
+
content: {
|
|
526
|
+
"application/json": {
|
|
527
|
+
/** Format: uuid */
|
|
528
|
+
ownerId: string;
|
|
529
|
+
/** Format: uuid */
|
|
530
|
+
admissionId: string;
|
|
531
|
+
stripeSessionId: string;
|
|
532
|
+
};
|
|
533
|
+
};
|
|
534
|
+
};
|
|
535
|
+
responses: {
|
|
536
|
+
/** @description Provider write eligibility */
|
|
537
|
+
200: {
|
|
538
|
+
headers: {
|
|
539
|
+
[name: string]: unknown;
|
|
540
|
+
};
|
|
541
|
+
content: {
|
|
542
|
+
"application/json": {
|
|
543
|
+
eligible: boolean;
|
|
544
|
+
};
|
|
545
|
+
};
|
|
546
|
+
};
|
|
547
|
+
/** @description Malformed request */
|
|
548
|
+
400: {
|
|
549
|
+
headers: {
|
|
550
|
+
[name: string]: unknown;
|
|
551
|
+
};
|
|
552
|
+
content: {
|
|
553
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
554
|
+
};
|
|
555
|
+
};
|
|
556
|
+
/** @description Trusted provider authorization is required */
|
|
557
|
+
403: {
|
|
558
|
+
headers: {
|
|
559
|
+
[name: string]: unknown;
|
|
560
|
+
};
|
|
561
|
+
content: {
|
|
562
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
563
|
+
};
|
|
564
|
+
};
|
|
565
|
+
/** @description Eligibility storage is unavailable */
|
|
566
|
+
503: {
|
|
567
|
+
headers: {
|
|
568
|
+
[name: string]: unknown;
|
|
569
|
+
};
|
|
570
|
+
content: {
|
|
571
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
572
|
+
};
|
|
573
|
+
};
|
|
574
|
+
};
|
|
575
|
+
};
|
|
576
|
+
delete?: never;
|
|
577
|
+
options?: never;
|
|
578
|
+
head?: never;
|
|
579
|
+
patch?: never;
|
|
580
|
+
trace?: never;
|
|
581
|
+
};
|
|
582
|
+
"/v1/checkout-admissions/provider-terminalization": {
|
|
583
|
+
parameters: {
|
|
584
|
+
query?: never;
|
|
585
|
+
header?: never;
|
|
586
|
+
path?: never;
|
|
587
|
+
cookie?: never;
|
|
588
|
+
};
|
|
589
|
+
get?: never;
|
|
590
|
+
put?: never;
|
|
591
|
+
/**
|
|
592
|
+
* Close a provider-terminal Checkout admission
|
|
593
|
+
* @description Dark-launch trusted webhook boundary for an expired Checkout Session. Completed or paid sessions remain published until account deletion verifies their authoritative Stripe billing state.
|
|
594
|
+
*/
|
|
595
|
+
post: {
|
|
596
|
+
parameters: {
|
|
597
|
+
query?: never;
|
|
598
|
+
header: {
|
|
599
|
+
"x-account-deletion-provider-credential": string;
|
|
600
|
+
};
|
|
601
|
+
path?: never;
|
|
602
|
+
cookie?: never;
|
|
603
|
+
};
|
|
604
|
+
requestBody: {
|
|
605
|
+
content: {
|
|
606
|
+
"application/json": {
|
|
607
|
+
/** Format: uuid */
|
|
608
|
+
ownerId: string;
|
|
609
|
+
/** Format: uuid */
|
|
610
|
+
admissionId: string;
|
|
611
|
+
stripeSessionId: string;
|
|
612
|
+
/** @enum {string} */
|
|
613
|
+
terminalStatus: "expired";
|
|
614
|
+
};
|
|
615
|
+
};
|
|
616
|
+
};
|
|
617
|
+
responses: {
|
|
618
|
+
/** @description Closed provider-terminal Checkout admission */
|
|
619
|
+
200: {
|
|
620
|
+
headers: {
|
|
621
|
+
[name: string]: unknown;
|
|
622
|
+
};
|
|
623
|
+
content: {
|
|
624
|
+
"application/json": components["schemas"]["CheckoutAdmission"];
|
|
625
|
+
};
|
|
626
|
+
};
|
|
627
|
+
/** @description Malformed request */
|
|
628
|
+
400: {
|
|
629
|
+
headers: {
|
|
630
|
+
[name: string]: unknown;
|
|
631
|
+
};
|
|
632
|
+
content: {
|
|
633
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
634
|
+
};
|
|
635
|
+
};
|
|
636
|
+
/** @description Trusted provider authorization is required */
|
|
637
|
+
403: {
|
|
638
|
+
headers: {
|
|
639
|
+
[name: string]: unknown;
|
|
640
|
+
};
|
|
641
|
+
content: {
|
|
642
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
643
|
+
};
|
|
644
|
+
};
|
|
645
|
+
/** @description Published admission not found */
|
|
646
|
+
404: {
|
|
647
|
+
headers: {
|
|
648
|
+
[name: string]: unknown;
|
|
649
|
+
};
|
|
650
|
+
content: {
|
|
651
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
652
|
+
};
|
|
653
|
+
};
|
|
654
|
+
/** @description Account deletion owns Checkout reconciliation */
|
|
655
|
+
409: {
|
|
656
|
+
headers: {
|
|
657
|
+
[name: string]: unknown;
|
|
658
|
+
};
|
|
659
|
+
content: {
|
|
660
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
661
|
+
};
|
|
662
|
+
};
|
|
663
|
+
/** @description The owner mutation throttle was exceeded */
|
|
664
|
+
429: {
|
|
665
|
+
headers: {
|
|
666
|
+
[name: string]: unknown;
|
|
667
|
+
};
|
|
668
|
+
content: {
|
|
669
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
670
|
+
};
|
|
671
|
+
};
|
|
672
|
+
/** @description Checkout admission storage is unavailable */
|
|
673
|
+
503: {
|
|
674
|
+
headers: {
|
|
675
|
+
[name: string]: unknown;
|
|
676
|
+
};
|
|
677
|
+
content: {
|
|
678
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
679
|
+
};
|
|
680
|
+
};
|
|
681
|
+
};
|
|
682
|
+
};
|
|
683
|
+
delete?: never;
|
|
684
|
+
options?: never;
|
|
685
|
+
head?: never;
|
|
686
|
+
patch?: never;
|
|
687
|
+
trace?: never;
|
|
688
|
+
};
|
|
689
|
+
"/v1/account-deletion/provider-finalization": {
|
|
690
|
+
parameters: {
|
|
691
|
+
query?: never;
|
|
692
|
+
header?: never;
|
|
693
|
+
path?: never;
|
|
694
|
+
cookie?: never;
|
|
695
|
+
};
|
|
696
|
+
get?: never;
|
|
697
|
+
put?: never;
|
|
698
|
+
/**
|
|
699
|
+
* Publish provider-finalized account deletion work
|
|
700
|
+
* @description Internal coffee-app BFF boundary. Requires the owner's Supabase session and a separately configured server credential. Missing and cross-owner operation ids are indistinguishable.
|
|
701
|
+
*/
|
|
702
|
+
post: {
|
|
703
|
+
parameters: {
|
|
704
|
+
query?: never;
|
|
705
|
+
header: {
|
|
706
|
+
"x-account-deletion-provider-credential": string;
|
|
707
|
+
};
|
|
708
|
+
path?: never;
|
|
709
|
+
cookie?: never;
|
|
710
|
+
};
|
|
711
|
+
requestBody: {
|
|
712
|
+
content: {
|
|
713
|
+
"application/json": {
|
|
714
|
+
/** Format: uuid */
|
|
715
|
+
operationId: string;
|
|
716
|
+
};
|
|
717
|
+
};
|
|
718
|
+
};
|
|
719
|
+
responses: {
|
|
720
|
+
/** @description Owner-bound operation after provider finalization */
|
|
721
|
+
200: {
|
|
722
|
+
headers: {
|
|
723
|
+
/** @description Sensitive lifecycle responses are never cached */
|
|
724
|
+
"Cache-Control"?: string;
|
|
725
|
+
[name: string]: unknown;
|
|
726
|
+
};
|
|
727
|
+
content: {
|
|
728
|
+
"application/json": components["schemas"]["AccountDeletionOperation"];
|
|
729
|
+
};
|
|
730
|
+
};
|
|
731
|
+
/** @description The operation id is malformed */
|
|
732
|
+
400: {
|
|
733
|
+
headers: {
|
|
734
|
+
[name: string]: unknown;
|
|
735
|
+
};
|
|
736
|
+
content: {
|
|
737
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
738
|
+
};
|
|
739
|
+
};
|
|
740
|
+
/** @description A valid Supabase user session is required */
|
|
741
|
+
401: {
|
|
742
|
+
headers: {
|
|
743
|
+
[name: string]: unknown;
|
|
744
|
+
};
|
|
745
|
+
content: {
|
|
746
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
747
|
+
};
|
|
748
|
+
};
|
|
749
|
+
/** @description Trusted provider authorization is required */
|
|
750
|
+
403: {
|
|
751
|
+
headers: {
|
|
752
|
+
[name: string]: unknown;
|
|
753
|
+
};
|
|
754
|
+
content: {
|
|
755
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
756
|
+
};
|
|
757
|
+
};
|
|
758
|
+
/** @description The owner-bound deletion operation was not found */
|
|
759
|
+
404: {
|
|
760
|
+
headers: {
|
|
761
|
+
[name: string]: unknown;
|
|
762
|
+
};
|
|
763
|
+
content: {
|
|
764
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
765
|
+
};
|
|
766
|
+
};
|
|
767
|
+
/** @description Account deletion is blocked by dependent account state */
|
|
768
|
+
409: {
|
|
769
|
+
headers: {
|
|
770
|
+
[name: string]: unknown;
|
|
771
|
+
};
|
|
772
|
+
content: {
|
|
773
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
774
|
+
};
|
|
775
|
+
};
|
|
776
|
+
/** @description The owner mutation throttle was exceeded */
|
|
777
|
+
429: {
|
|
778
|
+
headers: {
|
|
779
|
+
[name: string]: unknown;
|
|
780
|
+
};
|
|
781
|
+
content: {
|
|
782
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
783
|
+
};
|
|
784
|
+
};
|
|
785
|
+
/** @description The lifecycle is disabled or storage is unavailable */
|
|
786
|
+
503: {
|
|
787
|
+
headers: {
|
|
788
|
+
[name: string]: unknown;
|
|
789
|
+
};
|
|
790
|
+
content: {
|
|
791
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
792
|
+
};
|
|
793
|
+
};
|
|
794
|
+
};
|
|
795
|
+
};
|
|
796
|
+
delete?: never;
|
|
797
|
+
options?: never;
|
|
798
|
+
head?: never;
|
|
799
|
+
patch?: never;
|
|
800
|
+
trace?: never;
|
|
801
|
+
};
|
|
118
802
|
"/v1/api-keys": {
|
|
119
803
|
parameters: {
|
|
120
804
|
query?: never;
|
|
@@ -4284,8 +4968,85 @@ interface paths {
|
|
|
4284
4968
|
"application/json": components["schemas"]["ErrorResponse"];
|
|
4285
4969
|
};
|
|
4286
4970
|
};
|
|
4287
|
-
/** @description Classification provider is unavailable or not configured */
|
|
4288
|
-
503: {
|
|
4971
|
+
/** @description Classification provider is unavailable or not configured */
|
|
4972
|
+
503: {
|
|
4973
|
+
headers: {
|
|
4974
|
+
[name: string]: unknown;
|
|
4975
|
+
};
|
|
4976
|
+
content: {
|
|
4977
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
4978
|
+
};
|
|
4979
|
+
};
|
|
4980
|
+
};
|
|
4981
|
+
};
|
|
4982
|
+
delete?: never;
|
|
4983
|
+
options?: never;
|
|
4984
|
+
head?: never;
|
|
4985
|
+
patch?: never;
|
|
4986
|
+
trace?: never;
|
|
4987
|
+
};
|
|
4988
|
+
"/v1/roasts/{id}/chart-data": {
|
|
4989
|
+
parameters: {
|
|
4990
|
+
query?: never;
|
|
4991
|
+
header?: never;
|
|
4992
|
+
path?: never;
|
|
4993
|
+
cookie?: never;
|
|
4994
|
+
};
|
|
4995
|
+
/**
|
|
4996
|
+
* Get sampled roast chart data
|
|
4997
|
+
* @description Fetch a chart-ready, adaptively sampled temperature/event curve and metadata for one of the authenticated principal's roast profiles. Requires an authenticated session, or an owner-bound API key carrying the roast:read scope on an uncapped API plan.
|
|
4998
|
+
*/
|
|
4999
|
+
get: {
|
|
5000
|
+
parameters: {
|
|
5001
|
+
query?: {
|
|
5002
|
+
target_points?: number;
|
|
5003
|
+
};
|
|
5004
|
+
header?: never;
|
|
5005
|
+
path: {
|
|
5006
|
+
id: string;
|
|
5007
|
+
};
|
|
5008
|
+
cookie?: never;
|
|
5009
|
+
};
|
|
5010
|
+
requestBody?: never;
|
|
5011
|
+
responses: {
|
|
5012
|
+
/** @description Sampled chart points and chart metadata */
|
|
5013
|
+
200: {
|
|
5014
|
+
headers: {
|
|
5015
|
+
[name: string]: unknown;
|
|
5016
|
+
};
|
|
5017
|
+
content: {
|
|
5018
|
+
"application/json": components["schemas"]["RoastChartDataResponse"];
|
|
5019
|
+
};
|
|
5020
|
+
};
|
|
5021
|
+
/** @description Invalid query parameter */
|
|
5022
|
+
400: {
|
|
5023
|
+
headers: {
|
|
5024
|
+
[name: string]: unknown;
|
|
5025
|
+
};
|
|
5026
|
+
content: {
|
|
5027
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
5028
|
+
};
|
|
5029
|
+
};
|
|
5030
|
+
/** @description Authentication required */
|
|
5031
|
+
401: {
|
|
5032
|
+
headers: {
|
|
5033
|
+
[name: string]: unknown;
|
|
5034
|
+
};
|
|
5035
|
+
content: {
|
|
5036
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
5037
|
+
};
|
|
5038
|
+
};
|
|
5039
|
+
/** @description Insufficient entitlement (plan or role) */
|
|
5040
|
+
403: {
|
|
5041
|
+
headers: {
|
|
5042
|
+
[name: string]: unknown;
|
|
5043
|
+
};
|
|
5044
|
+
content: {
|
|
5045
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
5046
|
+
};
|
|
5047
|
+
};
|
|
5048
|
+
/** @description No such roast for this principal */
|
|
5049
|
+
404: {
|
|
4289
5050
|
headers: {
|
|
4290
5051
|
[name: string]: unknown;
|
|
4291
5052
|
};
|
|
@@ -4295,6 +5056,8 @@ interface paths {
|
|
|
4295
5056
|
};
|
|
4296
5057
|
};
|
|
4297
5058
|
};
|
|
5059
|
+
put?: never;
|
|
5060
|
+
post?: never;
|
|
4298
5061
|
delete?: never;
|
|
4299
5062
|
options?: never;
|
|
4300
5063
|
head?: never;
|
|
@@ -4915,6 +5678,25 @@ interface components {
|
|
|
4915
5678
|
ppiAccess: boolean;
|
|
4916
5679
|
apiScopes: string[];
|
|
4917
5680
|
};
|
|
5681
|
+
AccountDeletionOperation: {
|
|
5682
|
+
/** Format: uuid */
|
|
5683
|
+
operationId: string;
|
|
5684
|
+
/** @enum {string} */
|
|
5685
|
+
status: "fencing_checkout" | "awaiting_provider_finalization" | "ready" | "processing" | "retryable" | "completed";
|
|
5686
|
+
};
|
|
5687
|
+
ErrorResponse: {
|
|
5688
|
+
error: {
|
|
5689
|
+
code: string;
|
|
5690
|
+
message: string;
|
|
5691
|
+
};
|
|
5692
|
+
};
|
|
5693
|
+
CheckoutAdmission: {
|
|
5694
|
+
/** Format: uuid */
|
|
5695
|
+
admissionId: string;
|
|
5696
|
+
/** @enum {string} */
|
|
5697
|
+
status: "creating" | "published" | "closed";
|
|
5698
|
+
stripeSessionId: string | null;
|
|
5699
|
+
};
|
|
4918
5700
|
ApiKeyRecord: {
|
|
4919
5701
|
/** Format: uuid */
|
|
4920
5702
|
id: string;
|
|
@@ -4929,12 +5711,6 @@ interface components {
|
|
|
4929
5711
|
ApiKeyListResponse: {
|
|
4930
5712
|
data: components["schemas"]["ApiKeyRecord"][];
|
|
4931
5713
|
};
|
|
4932
|
-
ErrorResponse: {
|
|
4933
|
-
error: {
|
|
4934
|
-
code: string;
|
|
4935
|
-
message: string;
|
|
4936
|
-
};
|
|
4937
|
-
};
|
|
4938
5714
|
OwnerApiUsageDailySummary: {
|
|
4939
5715
|
/** Format: date */
|
|
4940
5716
|
date: string;
|
|
@@ -7152,6 +7928,53 @@ interface components {
|
|
|
7152
7928
|
};
|
|
7153
7929
|
};
|
|
7154
7930
|
};
|
|
7931
|
+
RoastChartPoint: {
|
|
7932
|
+
data_type: string;
|
|
7933
|
+
time_milliseconds: number;
|
|
7934
|
+
field_name: string;
|
|
7935
|
+
value_numeric: number;
|
|
7936
|
+
event_string: string;
|
|
7937
|
+
category: string;
|
|
7938
|
+
subcategory: string;
|
|
7939
|
+
};
|
|
7940
|
+
RoastChartMetadata: {
|
|
7941
|
+
total_data_points: number;
|
|
7942
|
+
/** @description Number of temperature rows returned by the sampling RPC; event points are not included. */
|
|
7943
|
+
sampled_data_points: number;
|
|
7944
|
+
roast_duration_minutes: number | null;
|
|
7945
|
+
time_min_ms: number | null;
|
|
7946
|
+
time_max_ms: number | null;
|
|
7947
|
+
temp_min: number | null;
|
|
7948
|
+
temp_max: number | null;
|
|
7949
|
+
ror_min: number | null;
|
|
7950
|
+
ror_max: number | null;
|
|
7951
|
+
charge_time_ms: number | null;
|
|
7952
|
+
target_points: number;
|
|
7953
|
+
/** @description Largest time gap between consecutive sampled temperature rows, or null when fewer than two rows were sampled. */
|
|
7954
|
+
sample_gap_max_ms: number | null;
|
|
7955
|
+
};
|
|
7956
|
+
RoastChartDataResponse: {
|
|
7957
|
+
data: {
|
|
7958
|
+
points: components["schemas"]["RoastChartPoint"][];
|
|
7959
|
+
metadata: components["schemas"]["RoastChartMetadata"];
|
|
7960
|
+
};
|
|
7961
|
+
meta: {
|
|
7962
|
+
/** @enum {string} */
|
|
7963
|
+
resource: "roast-chart-data";
|
|
7964
|
+
/** @enum {string} */
|
|
7965
|
+
namespace: "/v1/roasts";
|
|
7966
|
+
/** @enum {string} */
|
|
7967
|
+
version: "v1";
|
|
7968
|
+
auth: {
|
|
7969
|
+
/** @enum {string} */
|
|
7970
|
+
kind: "session" | "api-key";
|
|
7971
|
+
/** @enum {string|null} */
|
|
7972
|
+
role: "admin" | "member" | "viewer" | null;
|
|
7973
|
+
/** @enum {string|null} */
|
|
7974
|
+
apiPlan: "viewer" | "member" | "enterprise" | null;
|
|
7975
|
+
};
|
|
7976
|
+
};
|
|
7977
|
+
};
|
|
7155
7978
|
SaleResource: {
|
|
7156
7979
|
id: number;
|
|
7157
7980
|
green_coffee_inv_id: number;
|
|
@@ -7469,6 +8292,8 @@ type InventoryUpdateRequest = NonNullable<paths["/v1/inventory/{id}"]["patch"]["
|
|
|
7469
8292
|
type RoastListQuery = NonNullable<paths["/v1/roasts"]["get"]["parameters"]["query"]>;
|
|
7470
8293
|
/** Query parameters for {@link ParchmentClient.roasts.get}. */
|
|
7471
8294
|
type RoastGetQuery = NonNullable<paths["/v1/roasts/{id}"]["get"]["parameters"]["query"]>;
|
|
8295
|
+
/** Query parameters for {@link ParchmentClient.roasts.chartData}. */
|
|
8296
|
+
type RoastChartDataQuery = NonNullable<paths["/v1/roasts/{id}/chart-data"]["get"]["parameters"]["query"]>;
|
|
7472
8297
|
/** Request body for {@link ParchmentClient.roasts.classify}. */
|
|
7473
8298
|
type RoastClassificationRequest = NonNullable<paths["/v1/roasts/classify"]["post"]["requestBody"]>["content"]["application/json"];
|
|
7474
8299
|
/** Request body for {@link ParchmentClient.roasts.create}. */
|
|
@@ -7501,6 +8326,16 @@ type OwnerApiUsageQuery = NonNullable<paths["/v1/api-usage"]["get"]["parameters"
|
|
|
7501
8326
|
type OwnerApiUsage = components["schemas"]["OwnerApiUsageResponse"];
|
|
7502
8327
|
/** Request body for {@link ParchmentClient.emailSubscriptions.setMarketRead}. */
|
|
7503
8328
|
type MarketReadPreferenceRequest = NonNullable<paths["/v1/email-subscriptions/market-read"]["put"]["requestBody"]>["content"]["application/json"];
|
|
8329
|
+
/** Durable state returned by an account-deletion request. */
|
|
8330
|
+
type AccountDeletionOperation = components["schemas"]["AccountDeletionOperation"];
|
|
8331
|
+
/** Idempotency input for acquiring a durable Stripe Checkout admission. */
|
|
8332
|
+
type CheckoutAdmissionAcquireRequest = NonNullable<paths["/v1/checkout-admissions"]["post"]["requestBody"]>["content"]["application/json"];
|
|
8333
|
+
/** Stripe publication input for an acquired Checkout admission. */
|
|
8334
|
+
type CheckoutAdmissionPublishRequest = NonNullable<paths["/v1/checkout-admissions/{admissionId}/publish"]["post"]["requestBody"]>["content"]["application/json"];
|
|
8335
|
+
/** Trusted provider header required when publishing a Checkout admission. */
|
|
8336
|
+
type CheckoutAdmissionPublishHeaders = NonNullable<paths["/v1/checkout-admissions/{admissionId}/publish"]["post"]["parameters"]["header"]>;
|
|
8337
|
+
/** Durable state returned by Checkout admission mutations. */
|
|
8338
|
+
type CheckoutAdmission = components["schemas"]["CheckoutAdmission"];
|
|
7504
8339
|
type CliAuthRequestCreate = NonNullable<paths["/v1/cli-auth/requests"]["post"]["requestBody"]>["content"]["application/json"];
|
|
7505
8340
|
type CliAuthInspectRequest = NonNullable<paths["/v1/cli-auth/inspect"]["post"]["requestBody"]>["content"]["application/json"];
|
|
7506
8341
|
type CliAuthApproveRequest = NonNullable<paths["/v1/cli-auth/approve"]["post"]["requestBody"]>["content"]["application/json"];
|
|
@@ -7598,7 +8433,12 @@ declare function createParchmentClient(options: ParchmentClientOptions): {
|
|
|
7598
8433
|
parameters: {
|
|
7599
8434
|
query?: never;
|
|
7600
8435
|
header?: never;
|
|
7601
|
-
path
|
|
8436
|
+
path? /**
|
|
8437
|
+
* Replace the Artisan import data on one of the caller's existing roasts,
|
|
8438
|
+
* re-deriving its curve, events, and computed metrics while preserving the
|
|
8439
|
+
* roast's identity. Pass `ifMatch` (the roast's `last_updated`) to enable
|
|
8440
|
+
* optimistic concurrency (409 on mismatch).
|
|
8441
|
+
*/: never;
|
|
7602
8442
|
cookie?: never;
|
|
7603
8443
|
};
|
|
7604
8444
|
requestBody?: never;
|
|
@@ -7656,7 +8496,12 @@ declare function createParchmentClient(options: ParchmentClientOptions): {
|
|
|
7656
8496
|
parameters: {
|
|
7657
8497
|
query?: never;
|
|
7658
8498
|
header?: never;
|
|
7659
|
-
path
|
|
8499
|
+
path? /**
|
|
8500
|
+
* Replace the Artisan import data on one of the caller's existing roasts,
|
|
8501
|
+
* re-deriving its curve, events, and computed metrics while preserving the
|
|
8502
|
+
* roast's identity. Pass `ifMatch` (the roast's `last_updated`) to enable
|
|
8503
|
+
* optimistic concurrency (409 on mismatch).
|
|
8504
|
+
*/: never;
|
|
7660
8505
|
cookie?: never;
|
|
7661
8506
|
};
|
|
7662
8507
|
requestBody?: never;
|
|
@@ -7800,10 +8645,222 @@ declare function createParchmentClient(options: ParchmentClientOptions): {
|
|
|
7800
8645
|
[name: string]: unknown;
|
|
7801
8646
|
};
|
|
7802
8647
|
content: {
|
|
7803
|
-
"application/json": components["schemas"]["ApiKeyMutationResponse"];
|
|
8648
|
+
"application/json": components["schemas"]["ApiKeyMutationResponse"];
|
|
8649
|
+
};
|
|
8650
|
+
};
|
|
8651
|
+
400: {
|
|
8652
|
+
headers: {
|
|
8653
|
+
[name: string]: unknown;
|
|
8654
|
+
};
|
|
8655
|
+
content: {
|
|
8656
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
8657
|
+
};
|
|
8658
|
+
};
|
|
8659
|
+
401: {
|
|
8660
|
+
headers: {
|
|
8661
|
+
[name: string]: unknown;
|
|
8662
|
+
};
|
|
8663
|
+
content: {
|
|
8664
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
8665
|
+
};
|
|
8666
|
+
};
|
|
8667
|
+
403: {
|
|
8668
|
+
headers: {
|
|
8669
|
+
[name: string]: unknown;
|
|
8670
|
+
};
|
|
8671
|
+
content: {
|
|
8672
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
8673
|
+
};
|
|
8674
|
+
};
|
|
8675
|
+
404: {
|
|
8676
|
+
headers: {
|
|
8677
|
+
[name: string]: unknown;
|
|
8678
|
+
};
|
|
8679
|
+
content: {
|
|
8680
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
8681
|
+
};
|
|
8682
|
+
};
|
|
8683
|
+
503: {
|
|
8684
|
+
headers: {
|
|
8685
|
+
[name: string]: unknown;
|
|
8686
|
+
};
|
|
8687
|
+
content: {
|
|
8688
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
8689
|
+
};
|
|
8690
|
+
};
|
|
8691
|
+
};
|
|
8692
|
+
}, {
|
|
8693
|
+
params: {
|
|
8694
|
+
path: {
|
|
8695
|
+
id: string;
|
|
8696
|
+
};
|
|
8697
|
+
};
|
|
8698
|
+
}, `${string}/${string}`>>;
|
|
8699
|
+
/** Rotate an API key and return the replacement secret once. */
|
|
8700
|
+
rotate: (id: string) => Promise<openapi_fetch.FetchResponse<{
|
|
8701
|
+
parameters: {
|
|
8702
|
+
query?: never;
|
|
8703
|
+
header?: never;
|
|
8704
|
+
path: {
|
|
8705
|
+
id: string;
|
|
8706
|
+
};
|
|
8707
|
+
cookie?: never;
|
|
8708
|
+
};
|
|
8709
|
+
requestBody?: never;
|
|
8710
|
+
responses: {
|
|
8711
|
+
201: {
|
|
8712
|
+
headers: {
|
|
8713
|
+
[name: string]: unknown;
|
|
8714
|
+
};
|
|
8715
|
+
content: {
|
|
8716
|
+
"application/json": components["schemas"]["ApiKeyCreateResponse"];
|
|
8717
|
+
};
|
|
8718
|
+
};
|
|
8719
|
+
400: {
|
|
8720
|
+
headers: {
|
|
8721
|
+
[name: string]: unknown;
|
|
8722
|
+
};
|
|
8723
|
+
content: {
|
|
8724
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
8725
|
+
};
|
|
8726
|
+
};
|
|
8727
|
+
401: {
|
|
8728
|
+
headers: {
|
|
8729
|
+
[name: string]: unknown;
|
|
8730
|
+
};
|
|
8731
|
+
content: {
|
|
8732
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
8733
|
+
};
|
|
8734
|
+
};
|
|
8735
|
+
403: {
|
|
8736
|
+
headers: {
|
|
8737
|
+
[name: string]: unknown;
|
|
8738
|
+
};
|
|
8739
|
+
content: {
|
|
8740
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
8741
|
+
};
|
|
8742
|
+
};
|
|
8743
|
+
404: {
|
|
8744
|
+
headers: {
|
|
8745
|
+
[name: string]: unknown;
|
|
8746
|
+
};
|
|
8747
|
+
content: {
|
|
8748
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
8749
|
+
};
|
|
8750
|
+
};
|
|
8751
|
+
503: {
|
|
8752
|
+
headers: {
|
|
8753
|
+
[name: string]: unknown;
|
|
8754
|
+
};
|
|
8755
|
+
content: {
|
|
8756
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
8757
|
+
};
|
|
8758
|
+
};
|
|
8759
|
+
};
|
|
8760
|
+
}, {
|
|
8761
|
+
params: {
|
|
8762
|
+
path: {
|
|
8763
|
+
id: string;
|
|
8764
|
+
};
|
|
8765
|
+
};
|
|
8766
|
+
}, `${string}/${string}`>>;
|
|
8767
|
+
};
|
|
8768
|
+
apiUsage: {
|
|
8769
|
+
/**
|
|
8770
|
+
* Read bounded API-key traffic analytics for the authenticated session
|
|
8771
|
+
* owner. Headline monthly/hourly counts are exact; daily/per-key series
|
|
8772
|
+
* carry explicit truncation metadata.
|
|
8773
|
+
*/
|
|
8774
|
+
get: (query?: OwnerApiUsageQuery) => Promise<openapi_fetch.FetchResponse<{
|
|
8775
|
+
parameters: {
|
|
8776
|
+
query?: {
|
|
8777
|
+
days?: number;
|
|
8778
|
+
recentPerKey?: number;
|
|
8779
|
+
};
|
|
8780
|
+
header?: never;
|
|
8781
|
+
path?: never;
|
|
8782
|
+
cookie?: never;
|
|
8783
|
+
};
|
|
8784
|
+
requestBody?: never;
|
|
8785
|
+
responses: {
|
|
8786
|
+
200: {
|
|
8787
|
+
headers: {
|
|
8788
|
+
[name: string]: unknown;
|
|
8789
|
+
};
|
|
8790
|
+
content: {
|
|
8791
|
+
"application/json": components["schemas"]["OwnerApiUsageResponse"];
|
|
8792
|
+
};
|
|
8793
|
+
};
|
|
8794
|
+
400: {
|
|
8795
|
+
headers: {
|
|
8796
|
+
[name: string]: unknown;
|
|
8797
|
+
};
|
|
8798
|
+
content: {
|
|
8799
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
8800
|
+
};
|
|
8801
|
+
};
|
|
8802
|
+
401: {
|
|
8803
|
+
headers: {
|
|
8804
|
+
[name: string]: unknown;
|
|
8805
|
+
};
|
|
8806
|
+
content: {
|
|
8807
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
8808
|
+
};
|
|
8809
|
+
};
|
|
8810
|
+
403: {
|
|
8811
|
+
headers: {
|
|
8812
|
+
[name: string]: unknown;
|
|
8813
|
+
};
|
|
8814
|
+
content: {
|
|
8815
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
8816
|
+
};
|
|
8817
|
+
};
|
|
8818
|
+
503: {
|
|
8819
|
+
headers: {
|
|
8820
|
+
[name: string]: unknown;
|
|
8821
|
+
};
|
|
8822
|
+
content: {
|
|
8823
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
8824
|
+
};
|
|
8825
|
+
};
|
|
8826
|
+
};
|
|
8827
|
+
}, {
|
|
8828
|
+
params: {
|
|
8829
|
+
query: {
|
|
8830
|
+
days?: number;
|
|
8831
|
+
recentPerKey?: number;
|
|
8832
|
+
} | undefined;
|
|
8833
|
+
};
|
|
8834
|
+
}, `${string}/${string}`>>;
|
|
8835
|
+
};
|
|
8836
|
+
emailSubscriptions: {
|
|
8837
|
+
/** Get the authenticated session user's Market Read preference. */
|
|
8838
|
+
get: () => Promise<openapi_fetch.FetchResponse<{
|
|
8839
|
+
parameters: {
|
|
8840
|
+
query?: never;
|
|
8841
|
+
header?: never;
|
|
8842
|
+
path?: never;
|
|
8843
|
+
cookie?: never;
|
|
8844
|
+
};
|
|
8845
|
+
requestBody?: never;
|
|
8846
|
+
responses: {
|
|
8847
|
+
200: {
|
|
8848
|
+
headers: {
|
|
8849
|
+
[name: string]: unknown;
|
|
8850
|
+
};
|
|
8851
|
+
content: {
|
|
8852
|
+
"application/json": components["schemas"]["EmailSubscriptionResponse"];
|
|
8853
|
+
};
|
|
8854
|
+
};
|
|
8855
|
+
401: {
|
|
8856
|
+
headers: {
|
|
8857
|
+
[name: string]: unknown;
|
|
8858
|
+
};
|
|
8859
|
+
content: {
|
|
8860
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
7804
8861
|
};
|
|
7805
8862
|
};
|
|
7806
|
-
|
|
8863
|
+
403: {
|
|
7807
8864
|
headers: {
|
|
7808
8865
|
[name: string]: unknown;
|
|
7809
8866
|
};
|
|
@@ -7811,7 +8868,7 @@ declare function createParchmentClient(options: ParchmentClientOptions): {
|
|
|
7811
8868
|
"application/json": components["schemas"]["ErrorResponse"];
|
|
7812
8869
|
};
|
|
7813
8870
|
};
|
|
7814
|
-
|
|
8871
|
+
503: {
|
|
7815
8872
|
headers: {
|
|
7816
8873
|
[name: string]: unknown;
|
|
7817
8874
|
};
|
|
@@ -7819,7 +8876,25 @@ declare function createParchmentClient(options: ParchmentClientOptions): {
|
|
|
7819
8876
|
"application/json": components["schemas"]["ErrorResponse"];
|
|
7820
8877
|
};
|
|
7821
8878
|
};
|
|
7822
|
-
|
|
8879
|
+
};
|
|
8880
|
+
}, openapi_fetch.FetchOptions<{
|
|
8881
|
+
parameters: {
|
|
8882
|
+
query?: never;
|
|
8883
|
+
header?: never;
|
|
8884
|
+
path?: never;
|
|
8885
|
+
cookie?: never;
|
|
8886
|
+
};
|
|
8887
|
+
requestBody?: never;
|
|
8888
|
+
responses: {
|
|
8889
|
+
200: {
|
|
8890
|
+
headers: {
|
|
8891
|
+
[name: string]: unknown;
|
|
8892
|
+
};
|
|
8893
|
+
content: {
|
|
8894
|
+
"application/json": components["schemas"]["EmailSubscriptionResponse"];
|
|
8895
|
+
};
|
|
8896
|
+
};
|
|
8897
|
+
401: {
|
|
7823
8898
|
headers: {
|
|
7824
8899
|
[name: string]: unknown;
|
|
7825
8900
|
};
|
|
@@ -7827,7 +8902,7 @@ declare function createParchmentClient(options: ParchmentClientOptions): {
|
|
|
7827
8902
|
"application/json": components["schemas"]["ErrorResponse"];
|
|
7828
8903
|
};
|
|
7829
8904
|
};
|
|
7830
|
-
|
|
8905
|
+
403: {
|
|
7831
8906
|
headers: {
|
|
7832
8907
|
[name: string]: unknown;
|
|
7833
8908
|
};
|
|
@@ -7844,34 +8919,27 @@ declare function createParchmentClient(options: ParchmentClientOptions): {
|
|
|
7844
8919
|
};
|
|
7845
8920
|
};
|
|
7846
8921
|
};
|
|
7847
|
-
}, {
|
|
7848
|
-
|
|
7849
|
-
|
|
7850
|
-
id: string;
|
|
7851
|
-
};
|
|
7852
|
-
};
|
|
7853
|
-
}, `${string}/${string}`>>;
|
|
7854
|
-
/** Rotate an API key and return the replacement secret once. */
|
|
7855
|
-
rotate: (id: string) => Promise<openapi_fetch.FetchResponse<{
|
|
8922
|
+
}> | undefined, `${string}/${string}`>>;
|
|
8923
|
+
/** Idempotently set the authenticated session user's Market Read preference. */
|
|
8924
|
+
setMarketRead: (body: MarketReadPreferenceRequest) => Promise<openapi_fetch.FetchResponse<{
|
|
7856
8925
|
parameters: {
|
|
7857
8926
|
query?: never;
|
|
7858
8927
|
header?: never;
|
|
7859
|
-
path
|
|
7860
|
-
id: string;
|
|
7861
|
-
};
|
|
8928
|
+
path?: never;
|
|
7862
8929
|
cookie?: never;
|
|
7863
8930
|
};
|
|
7864
|
-
requestBody
|
|
8931
|
+
requestBody: {
|
|
8932
|
+
content: {
|
|
8933
|
+
"application/json": components["schemas"]["MarketReadPreferenceInput"];
|
|
8934
|
+
};
|
|
8935
|
+
};
|
|
7865
8936
|
responses: {
|
|
7866
|
-
|
|
8937
|
+
200: {
|
|
7867
8938
|
headers: {
|
|
7868
8939
|
[name: string]: unknown;
|
|
7869
8940
|
};
|
|
7870
8941
|
content: {
|
|
7871
|
-
"application/json": components["schemas"]
|
|
7872
|
-
* Catalog filter metadata and counted facets. Pass `headers` to send the
|
|
7873
|
-
* `Prefer: handling=lenient|strict` override (see {@link CatalogFacetsHeaders}).
|
|
7874
|
-
*/["ApiKeyCreateResponse"];
|
|
8942
|
+
"application/json": components["schemas"]["EmailSubscriptionResponse"];
|
|
7875
8943
|
};
|
|
7876
8944
|
};
|
|
7877
8945
|
400: {
|
|
@@ -7898,14 +8966,6 @@ declare function createParchmentClient(options: ParchmentClientOptions): {
|
|
|
7898
8966
|
"application/json": components["schemas"]["ErrorResponse"];
|
|
7899
8967
|
};
|
|
7900
8968
|
};
|
|
7901
|
-
404: {
|
|
7902
|
-
headers: {
|
|
7903
|
-
[name: string]: unknown;
|
|
7904
|
-
};
|
|
7905
|
-
content: {
|
|
7906
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
7907
|
-
};
|
|
7908
|
-
};
|
|
7909
8969
|
503: {
|
|
7910
8970
|
headers: {
|
|
7911
8971
|
[name: string]: unknown;
|
|
@@ -7916,25 +8976,23 @@ declare function createParchmentClient(options: ParchmentClientOptions): {
|
|
|
7916
8976
|
};
|
|
7917
8977
|
};
|
|
7918
8978
|
}, {
|
|
7919
|
-
|
|
7920
|
-
|
|
7921
|
-
|
|
7922
|
-
|
|
8979
|
+
body: {
|
|
8980
|
+
subscribed: true;
|
|
8981
|
+
consentSource: "account_settings" | "signup";
|
|
8982
|
+
} | {
|
|
8983
|
+
subscribed: false;
|
|
7923
8984
|
};
|
|
7924
8985
|
}, `${string}/${string}`>>;
|
|
7925
8986
|
};
|
|
7926
|
-
|
|
8987
|
+
accountDeletion: {
|
|
7927
8988
|
/**
|
|
7928
|
-
*
|
|
7929
|
-
*
|
|
7930
|
-
*
|
|
8989
|
+
* Idempotently request deletion for the authenticated session owner.
|
|
8990
|
+
* Provider finalization is intentionally available only through `raw`
|
|
8991
|
+
* because it also requires a trusted BFF server credential.
|
|
7931
8992
|
*/
|
|
7932
|
-
|
|
8993
|
+
request: () => Promise<openapi_fetch.FetchResponse<{
|
|
7933
8994
|
parameters: {
|
|
7934
|
-
query?:
|
|
7935
|
-
days?: number;
|
|
7936
|
-
recentPerKey?: number;
|
|
7937
|
-
};
|
|
8995
|
+
query?: never;
|
|
7938
8996
|
header?: never;
|
|
7939
8997
|
path?: never;
|
|
7940
8998
|
cookie?: never;
|
|
@@ -7943,13 +9001,14 @@ declare function createParchmentClient(options: ParchmentClientOptions): {
|
|
|
7943
9001
|
responses: {
|
|
7944
9002
|
200: {
|
|
7945
9003
|
headers: {
|
|
9004
|
+
"Cache-Control"?: string;
|
|
7946
9005
|
[name: string]: unknown;
|
|
7947
9006
|
};
|
|
7948
9007
|
content: {
|
|
7949
|
-
"application/json": components["schemas"]["
|
|
9008
|
+
"application/json": components["schemas"]["AccountDeletionOperation"];
|
|
7950
9009
|
};
|
|
7951
9010
|
};
|
|
7952
|
-
|
|
9011
|
+
401: {
|
|
7953
9012
|
headers: {
|
|
7954
9013
|
[name: string]: unknown;
|
|
7955
9014
|
};
|
|
@@ -7957,7 +9016,7 @@ declare function createParchmentClient(options: ParchmentClientOptions): {
|
|
|
7957
9016
|
"application/json": components["schemas"]["ErrorResponse"];
|
|
7958
9017
|
};
|
|
7959
9018
|
};
|
|
7960
|
-
|
|
9019
|
+
409: {
|
|
7961
9020
|
headers: {
|
|
7962
9021
|
[name: string]: unknown;
|
|
7963
9022
|
};
|
|
@@ -7965,7 +9024,7 @@ declare function createParchmentClient(options: ParchmentClientOptions): {
|
|
|
7965
9024
|
"application/json": components["schemas"]["ErrorResponse"];
|
|
7966
9025
|
};
|
|
7967
9026
|
};
|
|
7968
|
-
|
|
9027
|
+
429: {
|
|
7969
9028
|
headers: {
|
|
7970
9029
|
[name: string]: unknown;
|
|
7971
9030
|
};
|
|
@@ -7982,18 +9041,7 @@ declare function createParchmentClient(options: ParchmentClientOptions): {
|
|
|
7982
9041
|
};
|
|
7983
9042
|
};
|
|
7984
9043
|
};
|
|
7985
|
-
}, {
|
|
7986
|
-
params: {
|
|
7987
|
-
query: {
|
|
7988
|
-
days?: number;
|
|
7989
|
-
recentPerKey?: number;
|
|
7990
|
-
} | undefined;
|
|
7991
|
-
};
|
|
7992
|
-
}, `${string}/${string}`>>;
|
|
7993
|
-
};
|
|
7994
|
-
emailSubscriptions: {
|
|
7995
|
-
/** Get the authenticated session user's Market Read preference. */
|
|
7996
|
-
get: () => Promise<openapi_fetch.FetchResponse<{
|
|
9044
|
+
}, openapi_fetch.FetchOptions<{
|
|
7997
9045
|
parameters: {
|
|
7998
9046
|
query?: never;
|
|
7999
9047
|
header?: never;
|
|
@@ -8004,10 +9052,11 @@ declare function createParchmentClient(options: ParchmentClientOptions): {
|
|
|
8004
9052
|
responses: {
|
|
8005
9053
|
200: {
|
|
8006
9054
|
headers: {
|
|
9055
|
+
"Cache-Control"?: string;
|
|
8007
9056
|
[name: string]: unknown;
|
|
8008
9057
|
};
|
|
8009
9058
|
content: {
|
|
8010
|
-
"application/json": components["schemas"]["
|
|
9059
|
+
"application/json": components["schemas"]["AccountDeletionOperation"];
|
|
8011
9060
|
};
|
|
8012
9061
|
};
|
|
8013
9062
|
401: {
|
|
@@ -8018,7 +9067,15 @@ declare function createParchmentClient(options: ParchmentClientOptions): {
|
|
|
8018
9067
|
"application/json": components["schemas"]["ErrorResponse"];
|
|
8019
9068
|
};
|
|
8020
9069
|
};
|
|
8021
|
-
|
|
9070
|
+
409: {
|
|
9071
|
+
headers: {
|
|
9072
|
+
[name: string]: unknown;
|
|
9073
|
+
};
|
|
9074
|
+
content: {
|
|
9075
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
9076
|
+
};
|
|
9077
|
+
};
|
|
9078
|
+
429: {
|
|
8022
9079
|
headers: {
|
|
8023
9080
|
[name: string]: unknown;
|
|
8024
9081
|
};
|
|
@@ -8035,21 +9092,41 @@ declare function createParchmentClient(options: ParchmentClientOptions): {
|
|
|
8035
9092
|
};
|
|
8036
9093
|
};
|
|
8037
9094
|
};
|
|
8038
|
-
},
|
|
9095
|
+
}> | undefined, `${string}/${string}`>>;
|
|
9096
|
+
};
|
|
9097
|
+
checkoutAdmissions: {
|
|
9098
|
+
/** Acquire or replay an owner-bound admission before creating Stripe state. */
|
|
9099
|
+
acquire: (body: CheckoutAdmissionAcquireRequest) => Promise<openapi_fetch.FetchResponse<{
|
|
8039
9100
|
parameters: {
|
|
8040
9101
|
query?: never;
|
|
8041
9102
|
header?: never;
|
|
8042
9103
|
path?: never;
|
|
8043
9104
|
cookie?: never;
|
|
8044
9105
|
};
|
|
8045
|
-
requestBody
|
|
9106
|
+
requestBody: {
|
|
9107
|
+
content: {
|
|
9108
|
+
"application/json": {
|
|
9109
|
+
requestId: string;
|
|
9110
|
+
};
|
|
9111
|
+
};
|
|
9112
|
+
};
|
|
8046
9113
|
responses: {
|
|
8047
9114
|
200: {
|
|
8048
9115
|
headers: {
|
|
8049
9116
|
[name: string]: unknown;
|
|
8050
9117
|
};
|
|
8051
9118
|
content: {
|
|
8052
|
-
"application/json":
|
|
9119
|
+
"application/json":
|
|
9120
|
+
/** Query parameters for {@link ParchmentClient.roasts.get}. */
|
|
9121
|
+
components["schemas"]["CheckoutAdmission"];
|
|
9122
|
+
};
|
|
9123
|
+
};
|
|
9124
|
+
400: {
|
|
9125
|
+
headers: {
|
|
9126
|
+
[name: string]: unknown;
|
|
9127
|
+
};
|
|
9128
|
+
content: {
|
|
9129
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
8053
9130
|
};
|
|
8054
9131
|
};
|
|
8055
9132
|
401: {
|
|
@@ -8060,7 +9137,15 @@ declare function createParchmentClient(options: ParchmentClientOptions): {
|
|
|
8060
9137
|
"application/json": components["schemas"]["ErrorResponse"];
|
|
8061
9138
|
};
|
|
8062
9139
|
};
|
|
8063
|
-
|
|
9140
|
+
409: {
|
|
9141
|
+
headers: {
|
|
9142
|
+
[name: string]: unknown;
|
|
9143
|
+
};
|
|
9144
|
+
content: {
|
|
9145
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
9146
|
+
};
|
|
9147
|
+
};
|
|
9148
|
+
429: {
|
|
8064
9149
|
headers: {
|
|
8065
9150
|
[name: string]: unknown;
|
|
8066
9151
|
};
|
|
@@ -8077,18 +9162,28 @@ declare function createParchmentClient(options: ParchmentClientOptions): {
|
|
|
8077
9162
|
};
|
|
8078
9163
|
};
|
|
8079
9164
|
};
|
|
8080
|
-
}
|
|
8081
|
-
|
|
8082
|
-
|
|
9165
|
+
}, {
|
|
9166
|
+
body: {
|
|
9167
|
+
requestId: string;
|
|
9168
|
+
};
|
|
9169
|
+
}, `${string}/${string}`>>;
|
|
9170
|
+
/** Publish a provider-verified Stripe Checkout Session for an admission. */
|
|
9171
|
+
publish: (admissionId: string, body: CheckoutAdmissionPublishRequest, headers: CheckoutAdmissionPublishHeaders) => Promise<openapi_fetch.FetchResponse<{
|
|
8083
9172
|
parameters: {
|
|
8084
9173
|
query?: never;
|
|
8085
|
-
header
|
|
8086
|
-
|
|
9174
|
+
header: {
|
|
9175
|
+
"x-account-deletion-provider-credential": string;
|
|
9176
|
+
};
|
|
9177
|
+
path: {
|
|
9178
|
+
admissionId: string;
|
|
9179
|
+
};
|
|
8087
9180
|
cookie?: never;
|
|
8088
9181
|
};
|
|
8089
9182
|
requestBody: {
|
|
8090
9183
|
content: {
|
|
8091
|
-
"application/json":
|
|
9184
|
+
"application/json": {
|
|
9185
|
+
stripeSessionId: string;
|
|
9186
|
+
};
|
|
8092
9187
|
};
|
|
8093
9188
|
};
|
|
8094
9189
|
responses: {
|
|
@@ -8097,7 +9192,7 @@ declare function createParchmentClient(options: ParchmentClientOptions): {
|
|
|
8097
9192
|
[name: string]: unknown;
|
|
8098
9193
|
};
|
|
8099
9194
|
content: {
|
|
8100
|
-
"application/json": components["schemas"]["
|
|
9195
|
+
"application/json": components["schemas"]["CheckoutAdmission"];
|
|
8101
9196
|
};
|
|
8102
9197
|
};
|
|
8103
9198
|
400: {
|
|
@@ -8113,7 +9208,7 @@ declare function createParchmentClient(options: ParchmentClientOptions): {
|
|
|
8113
9208
|
[name: string]: unknown;
|
|
8114
9209
|
};
|
|
8115
9210
|
content: {
|
|
8116
|
-
"application/json": components["schemas"]
|
|
9211
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
8117
9212
|
};
|
|
8118
9213
|
};
|
|
8119
9214
|
403: {
|
|
@@ -8124,6 +9219,30 @@ declare function createParchmentClient(options: ParchmentClientOptions): {
|
|
|
8124
9219
|
"application/json": components["schemas"]["ErrorResponse"];
|
|
8125
9220
|
};
|
|
8126
9221
|
};
|
|
9222
|
+
404: {
|
|
9223
|
+
headers: {
|
|
9224
|
+
[name: string]: unknown;
|
|
9225
|
+
};
|
|
9226
|
+
content: {
|
|
9227
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
9228
|
+
};
|
|
9229
|
+
};
|
|
9230
|
+
409: {
|
|
9231
|
+
headers: {
|
|
9232
|
+
[name: string]: unknown;
|
|
9233
|
+
};
|
|
9234
|
+
content: {
|
|
9235
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
9236
|
+
};
|
|
9237
|
+
};
|
|
9238
|
+
429: {
|
|
9239
|
+
headers: {
|
|
9240
|
+
[name: string]: unknown;
|
|
9241
|
+
};
|
|
9242
|
+
content: {
|
|
9243
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
9244
|
+
};
|
|
9245
|
+
};
|
|
8127
9246
|
503: {
|
|
8128
9247
|
headers: {
|
|
8129
9248
|
[name: string]: unknown;
|
|
@@ -8134,11 +9253,16 @@ declare function createParchmentClient(options: ParchmentClientOptions): {
|
|
|
8134
9253
|
};
|
|
8135
9254
|
};
|
|
8136
9255
|
}, {
|
|
9256
|
+
params: {
|
|
9257
|
+
path: {
|
|
9258
|
+
admissionId: string;
|
|
9259
|
+
};
|
|
9260
|
+
header: {
|
|
9261
|
+
"x-account-deletion-provider-credential": string;
|
|
9262
|
+
};
|
|
9263
|
+
};
|
|
8137
9264
|
body: {
|
|
8138
|
-
|
|
8139
|
-
consentSource: "account_settings" | "signup";
|
|
8140
|
-
} | {
|
|
8141
|
-
subscribed: false;
|
|
9265
|
+
stripeSessionId: string;
|
|
8142
9266
|
};
|
|
8143
9267
|
}, `${string}/${string}`>>;
|
|
8144
9268
|
};
|
|
@@ -8203,7 +9327,7 @@ declare function createParchmentClient(options: ParchmentClientOptions): {
|
|
|
8203
9327
|
[name: string]: unknown;
|
|
8204
9328
|
};
|
|
8205
9329
|
content: {
|
|
8206
|
-
"application/json": components["schemas"]
|
|
9330
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
8207
9331
|
};
|
|
8208
9332
|
};
|
|
8209
9333
|
};
|
|
@@ -8284,7 +9408,7 @@ declare function createParchmentClient(options: ParchmentClientOptions): {
|
|
|
8284
9408
|
approve: (body: CliAuthApproveRequest) => Promise<openapi_fetch.FetchResponse<{
|
|
8285
9409
|
parameters: {
|
|
8286
9410
|
query?: never;
|
|
8287
|
-
header
|
|
9411
|
+
header?: never;
|
|
8288
9412
|
path?: never;
|
|
8289
9413
|
cookie?: never;
|
|
8290
9414
|
};
|
|
@@ -11128,6 +12252,71 @@ declare function createParchmentClient(options: ParchmentClientOptions): {
|
|
|
11128
12252
|
} | undefined;
|
|
11129
12253
|
};
|
|
11130
12254
|
}, `${string}/${string}`>>;
|
|
12255
|
+
/** Fetch an owner roast's adaptively sampled chart curve and metadata. */
|
|
12256
|
+
chartData: (id: string, query?: RoastChartDataQuery) => Promise<openapi_fetch.FetchResponse<{
|
|
12257
|
+
parameters: {
|
|
12258
|
+
query?: {
|
|
12259
|
+
target_points?: number;
|
|
12260
|
+
};
|
|
12261
|
+
header?: never;
|
|
12262
|
+
path: {
|
|
12263
|
+
id: string;
|
|
12264
|
+
};
|
|
12265
|
+
cookie?: never;
|
|
12266
|
+
};
|
|
12267
|
+
requestBody?: never;
|
|
12268
|
+
responses: {
|
|
12269
|
+
200: {
|
|
12270
|
+
headers: {
|
|
12271
|
+
[name: string]: unknown;
|
|
12272
|
+
};
|
|
12273
|
+
content: {
|
|
12274
|
+
"application/json": components["schemas"]["RoastChartDataResponse"];
|
|
12275
|
+
};
|
|
12276
|
+
};
|
|
12277
|
+
400: {
|
|
12278
|
+
headers: {
|
|
12279
|
+
[name: string]: unknown;
|
|
12280
|
+
};
|
|
12281
|
+
content: {
|
|
12282
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
12283
|
+
};
|
|
12284
|
+
};
|
|
12285
|
+
401: {
|
|
12286
|
+
headers: {
|
|
12287
|
+
[name: string]: unknown;
|
|
12288
|
+
};
|
|
12289
|
+
content: {
|
|
12290
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
12291
|
+
};
|
|
12292
|
+
};
|
|
12293
|
+
403: {
|
|
12294
|
+
headers: {
|
|
12295
|
+
[name: string]: unknown;
|
|
12296
|
+
};
|
|
12297
|
+
content: {
|
|
12298
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
12299
|
+
};
|
|
12300
|
+
};
|
|
12301
|
+
404: {
|
|
12302
|
+
headers: {
|
|
12303
|
+
[name: string]: unknown;
|
|
12304
|
+
};
|
|
12305
|
+
content: {
|
|
12306
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
12307
|
+
};
|
|
12308
|
+
};
|
|
12309
|
+
};
|
|
12310
|
+
}, {
|
|
12311
|
+
params: {
|
|
12312
|
+
path: {
|
|
12313
|
+
id: string;
|
|
12314
|
+
};
|
|
12315
|
+
query: {
|
|
12316
|
+
target_points?: number;
|
|
12317
|
+
} | undefined;
|
|
12318
|
+
};
|
|
12319
|
+
}, `${string}/${string}`>>;
|
|
11131
12320
|
/**
|
|
11132
12321
|
* Create an owner roast profile, optionally with nested temperature/event
|
|
11133
12322
|
* rows. Requires a session or an owner-bound API key carrying the exact
|
|
@@ -12300,4 +13489,4 @@ declare function createParchmentClient(options: ParchmentClientOptions): {
|
|
|
12300
13489
|
};
|
|
12301
13490
|
type ParchmentClient = ReturnType<typeof createParchmentClient>;
|
|
12302
13491
|
|
|
12303
|
-
export { type BriefMatchesQuery, type CatalogItem, type CatalogListQuery, type CatalogProofSummary, type CatalogSimilarQuery, type InventoryCreateRequest, type InventoryUpdateRequest, type MarketSignalsQuery, type MetadataIndexQuery, type OwnerApiUsage, type OwnerApiUsageQuery, type ParchmentClient, type ParchmentClientOptions, type PriceIndexQuery, type PriceIndexStatsQuery, type ProfitItem, type ProfitListQuery, type SalesCreateRequest, type SalesListQuery, type SalesUpdateRequest, type SourcingBriefCreateRequest, type TrackedLotMutation, type TrackedLotSummary, type TrackedLotsListQuery, type components, createParchmentClient, type paths };
|
|
13492
|
+
export { type AccountDeletionOperation, type BriefMatchesQuery, type CatalogItem, type CatalogListQuery, type CatalogProofSummary, type CatalogSimilarQuery, type CheckoutAdmission, type CheckoutAdmissionAcquireRequest, type CheckoutAdmissionPublishRequest, type InventoryCreateRequest, type InventoryUpdateRequest, type MarketSignalsQuery, type MetadataIndexQuery, type OwnerApiUsage, type OwnerApiUsageQuery, type ParchmentClient, type ParchmentClientOptions, type PriceIndexQuery, type PriceIndexStatsQuery, type ProfitItem, type ProfitListQuery, type RoastChartDataQuery, type SalesCreateRequest, type SalesListQuery, type SalesUpdateRequest, type SourcingBriefCreateRequest, type TrackedLotMutation, type TrackedLotSummary, type TrackedLotsListQuery, type components, createParchmentClient, type paths };
|