@whop/sdk 0.0.5 → 0.0.7

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 (95) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/README.md +0 -4
  3. package/client.d.mts +12 -6
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +12 -6
  6. package/client.d.ts.map +1 -1
  7. package/client.js +8 -5
  8. package/client.js.map +1 -1
  9. package/client.mjs +8 -5
  10. package/client.mjs.map +1 -1
  11. package/lib/verify-user-token.d.mts.map +1 -1
  12. package/lib/verify-user-token.d.ts.map +1 -1
  13. package/lib/verify-user-token.js +6 -3
  14. package/lib/verify-user-token.js.map +1 -1
  15. package/lib/verify-user-token.mjs +6 -3
  16. package/lib/verify-user-token.mjs.map +1 -1
  17. package/package.json +1 -1
  18. package/resources/access-tokens.d.mts +48 -26
  19. package/resources/access-tokens.d.mts.map +1 -1
  20. package/resources/access-tokens.d.ts +48 -26
  21. package/resources/access-tokens.d.ts.map +1 -1
  22. package/resources/access-tokens.js +5 -5
  23. package/resources/access-tokens.mjs +5 -5
  24. package/resources/checkout-configurations.d.mts +4 -4
  25. package/resources/checkout-configurations.d.mts.map +1 -1
  26. package/resources/checkout-configurations.d.ts +4 -4
  27. package/resources/checkout-configurations.d.ts.map +1 -1
  28. package/resources/disputes.d.mts +704 -0
  29. package/resources/disputes.d.mts.map +1 -0
  30. package/resources/disputes.d.ts +704 -0
  31. package/resources/disputes.d.ts.map +1 -0
  32. package/resources/disputes.js +77 -0
  33. package/resources/disputes.js.map +1 -0
  34. package/resources/disputes.mjs +73 -0
  35. package/resources/disputes.mjs.map +1 -0
  36. package/resources/forum-posts.d.mts +8 -0
  37. package/resources/forum-posts.d.mts.map +1 -1
  38. package/resources/forum-posts.d.ts +8 -0
  39. package/resources/forum-posts.d.ts.map +1 -1
  40. package/resources/index.d.mts +3 -1
  41. package/resources/index.d.mts.map +1 -1
  42. package/resources/index.d.ts +3 -1
  43. package/resources/index.d.ts.map +1 -1
  44. package/resources/index.js +5 -1
  45. package/resources/index.js.map +1 -1
  46. package/resources/index.mjs +2 -0
  47. package/resources/index.mjs.map +1 -1
  48. package/resources/ledger-accounts.d.mts +1 -1
  49. package/resources/ledger-accounts.d.mts.map +1 -1
  50. package/resources/ledger-accounts.d.ts +1 -1
  51. package/resources/ledger-accounts.d.ts.map +1 -1
  52. package/resources/notifications.d.mts +105 -0
  53. package/resources/notifications.d.mts.map +1 -0
  54. package/resources/notifications.d.ts +105 -0
  55. package/resources/notifications.d.ts.map +1 -0
  56. package/resources/notifications.js +24 -0
  57. package/resources/notifications.js.map +1 -0
  58. package/resources/notifications.mjs +20 -0
  59. package/resources/notifications.mjs.map +1 -0
  60. package/resources/payments.d.mts +1 -1
  61. package/resources/payments.d.mts.map +1 -1
  62. package/resources/payments.d.ts +1 -1
  63. package/resources/payments.d.ts.map +1 -1
  64. package/resources/shared.d.mts +3 -3
  65. package/resources/shared.d.mts.map +1 -1
  66. package/resources/shared.d.ts +3 -3
  67. package/resources/shared.d.ts.map +1 -1
  68. package/resources/shipments.d.mts +1 -1
  69. package/resources/shipments.d.mts.map +1 -1
  70. package/resources/shipments.d.ts +1 -1
  71. package/resources/shipments.d.ts.map +1 -1
  72. package/resources/webhooks.d.mts +47 -2
  73. package/resources/webhooks.d.mts.map +1 -1
  74. package/resources/webhooks.d.ts +47 -2
  75. package/resources/webhooks.d.ts.map +1 -1
  76. package/resources/webhooks.js.map +1 -1
  77. package/resources/webhooks.mjs.map +1 -1
  78. package/src/client.ts +43 -10
  79. package/src/lib/verify-user-token.ts +6 -3
  80. package/src/resources/access-tokens.ts +53 -26
  81. package/src/resources/checkout-configurations.ts +4 -4
  82. package/src/resources/disputes.ts +873 -0
  83. package/src/resources/forum-posts.ts +10 -0
  84. package/src/resources/index.ts +16 -0
  85. package/src/resources/ledger-accounts.ts +1 -0
  86. package/src/resources/notifications.ts +131 -0
  87. package/src/resources/payments.ts +1 -0
  88. package/src/resources/shared.ts +13 -3
  89. package/src/resources/shipments.ts +1 -1
  90. package/src/resources/webhooks.ts +60 -1
  91. package/src/version.ts +1 -1
  92. package/version.d.mts +1 -1
  93. package/version.d.ts +1 -1
  94. package/version.js +1 -1
  95. package/version.mjs +1 -1
@@ -0,0 +1,704 @@
1
+ import { APIResource } from "../core/resource.js";
2
+ import * as PaymentsAPI from "./payments.js";
3
+ import * as Shared from "./shared.js";
4
+ import { APIPromise } from "../core/api-promise.js";
5
+ import { CursorPage, type CursorPageParams, PagePromise } from "../core/pagination.js";
6
+ import { RequestOptions } from "../internal/request-options.js";
7
+ export declare class Disputes extends APIResource {
8
+ /**
9
+ * Retrieves a Dispute by ID
10
+ *
11
+ * Required permissions:
12
+ *
13
+ * - `payment:dispute:read`
14
+ * - `plan:basic:read`
15
+ * - `access_pass:basic:read`
16
+ * - `company:basic:read`
17
+ * - `payment:basic:read`
18
+ * - `member:email:read`
19
+ * - `member:basic:read`
20
+ * - `member:phone:read`
21
+ */
22
+ retrieve(id: string, options?: RequestOptions): APIPromise<Dispute>;
23
+ /**
24
+ * Lists disputes the current actor has access to
25
+ *
26
+ * Required permissions:
27
+ *
28
+ * - `payment:dispute:read`
29
+ * - `plan:basic:read`
30
+ * - `access_pass:basic:read`
31
+ * - `company:basic:read`
32
+ * - `payment:basic:read`
33
+ */
34
+ list(query: DisputeListParams, options?: RequestOptions): PagePromise<DisputeListResponsesCursorPage, DisputeListResponse>;
35
+ /**
36
+ * Submit a payment dispute to the payment processor for review. Once submitted, no
37
+ * further edits can be made.
38
+ *
39
+ * Required permissions:
40
+ *
41
+ * - `payment:dispute`
42
+ * - `plan:basic:read`
43
+ * - `access_pass:basic:read`
44
+ * - `company:basic:read`
45
+ * - `payment:basic:read`
46
+ * - `member:email:read`
47
+ * - `member:basic:read`
48
+ * - `member:phone:read`
49
+ */
50
+ submitEvidence(id: string, options?: RequestOptions): APIPromise<Dispute>;
51
+ /**
52
+ * Update a dispute with evidence data to attempt to win the dispute.
53
+ *
54
+ * Required permissions:
55
+ *
56
+ * - `payment:dispute`
57
+ * - `plan:basic:read`
58
+ * - `access_pass:basic:read`
59
+ * - `company:basic:read`
60
+ * - `payment:basic:read`
61
+ * - `member:email:read`
62
+ * - `member:basic:read`
63
+ * - `member:phone:read`
64
+ */
65
+ updateEvidence(id: string, body?: DisputeUpdateEvidenceParams | null | undefined, options?: RequestOptions): APIPromise<Dispute>;
66
+ }
67
+ export type DisputeListResponsesCursorPage = CursorPage<DisputeListResponse>;
68
+ /**
69
+ * An object representing a dispute against a company.
70
+ */
71
+ export interface Dispute {
72
+ /**
73
+ * The internal ID of the dispute.
74
+ */
75
+ id: string;
76
+ /**
77
+ * An IP access log for the user from Whop.
78
+ */
79
+ access_activity_log: string | null;
80
+ /**
81
+ * The amount of the dispute (formatted).
82
+ */
83
+ amount: number;
84
+ /**
85
+ * The billing address of the user from their payment details.
86
+ */
87
+ billing_address: string | null;
88
+ /**
89
+ * The cancellation policy for this dispute
90
+ */
91
+ cancellation_policy_attachment: Dispute.CancellationPolicyAttachment | null;
92
+ /**
93
+ * A cancellation policy disclosure from the company.
94
+ */
95
+ cancellation_policy_disclosure: string | null;
96
+ /**
97
+ * The company the dispute is against.
98
+ */
99
+ company: Dispute.Company | null;
100
+ /**
101
+ * When it was made.
102
+ */
103
+ created_at: string | null;
104
+ /**
105
+ * The currency of the dispute.
106
+ */
107
+ currency: Shared.Currency;
108
+ /**
109
+ * The customer communication for this dispute
110
+ */
111
+ customer_communication_attachment: Dispute.CustomerCommunicationAttachment | null;
112
+ /**
113
+ * The email of the customer from their payment details. This is submitted in the
114
+ * evidence packet to the payment processor. You can change it before submitting
115
+ * the dispute.
116
+ */
117
+ customer_email_address: string | null;
118
+ /**
119
+ * The name of the customer from their payment details. This is submitted in the
120
+ * evidence packet to the payment processor. You can change it before submitting
121
+ * the dispute.
122
+ */
123
+ customer_name: string | null;
124
+ /**
125
+ * Whether or not the dispute data can be edited.
126
+ */
127
+ editable: boolean | null;
128
+ /**
129
+ * The last date the dispute is allow to be submitted by.
130
+ */
131
+ needs_response_by: string | null;
132
+ /**
133
+ * Additional notes the company chooses to submit regarding the dispute.
134
+ */
135
+ notes: string | null;
136
+ /**
137
+ * The payment that got disputed
138
+ */
139
+ payment: Dispute.Payment | null;
140
+ /**
141
+ * The plan that got disputed
142
+ */
143
+ plan: Dispute.Plan | null;
144
+ /**
145
+ * The product that got disputed
146
+ */
147
+ product: Dispute.Product | null;
148
+ /**
149
+ * The description of the product from the company.
150
+ */
151
+ product_description: string | null;
152
+ /**
153
+ * The reason for the dispute
154
+ */
155
+ reason: string | null;
156
+ /**
157
+ * The refund policy for this dispute
158
+ */
159
+ refund_policy_attachment: Dispute.RefundPolicyAttachment | null;
160
+ /**
161
+ * A refund policy disclosure from the company.
162
+ */
163
+ refund_policy_disclosure: string | null;
164
+ /**
165
+ * A description on why the refund is being refused by the company.
166
+ */
167
+ refund_refusal_explanation: string | null;
168
+ /**
169
+ * When the product was delivered by the company.
170
+ */
171
+ service_date: string | null;
172
+ /**
173
+ * The status of the dispute (mimics stripe's dispute status).
174
+ */
175
+ status: DisputeStatuses;
176
+ /**
177
+ * An attachment that did not fit into the other categories
178
+ */
179
+ uncategorized_attachment: Dispute.UncategorizedAttachment | null;
180
+ /**
181
+ * Whether or not the dispute is a Visa Rapid Dispute Resolution.
182
+ */
183
+ visa_rdr: boolean;
184
+ }
185
+ export declare namespace Dispute {
186
+ /**
187
+ * The cancellation policy for this dispute
188
+ */
189
+ interface CancellationPolicyAttachment {
190
+ /**
191
+ * The ID of the attachment
192
+ */
193
+ id: string;
194
+ /**
195
+ * The attachment's content type (e.g., image/jpg, video/mp4)
196
+ */
197
+ content_type: string | null;
198
+ /**
199
+ * The name of the file
200
+ */
201
+ filename: string | null;
202
+ /**
203
+ * This is the URL you use to render optimized attachments on the client. This
204
+ * should be used for apps.
205
+ */
206
+ url: string | null;
207
+ }
208
+ /**
209
+ * The company the dispute is against.
210
+ */
211
+ interface Company {
212
+ /**
213
+ * The ID of the company
214
+ */
215
+ id: string;
216
+ /**
217
+ * The written name of the company.
218
+ */
219
+ title: string;
220
+ }
221
+ /**
222
+ * The customer communication for this dispute
223
+ */
224
+ interface CustomerCommunicationAttachment {
225
+ /**
226
+ * The ID of the attachment
227
+ */
228
+ id: string;
229
+ /**
230
+ * The attachment's content type (e.g., image/jpg, video/mp4)
231
+ */
232
+ content_type: string | null;
233
+ /**
234
+ * The name of the file
235
+ */
236
+ filename: string | null;
237
+ /**
238
+ * This is the URL you use to render optimized attachments on the client. This
239
+ * should be used for apps.
240
+ */
241
+ url: string | null;
242
+ }
243
+ /**
244
+ * The payment that got disputed
245
+ */
246
+ interface Payment {
247
+ /**
248
+ * The payment ID
249
+ */
250
+ id: string;
251
+ /**
252
+ * The reason why a specific payment was billed
253
+ */
254
+ billing_reason: PaymentsAPI.BillingReasons | null;
255
+ /**
256
+ * Possible card brands that a payment token can have
257
+ */
258
+ card_brand: PaymentsAPI.CardBrands | null;
259
+ /**
260
+ * The last 4 digits of the card used to make the payment.
261
+ */
262
+ card_last4: string | null;
263
+ /**
264
+ * The datetime the payment was created
265
+ */
266
+ created_at: string;
267
+ /**
268
+ * The available currencies on the platform
269
+ */
270
+ currency: Shared.Currency | null;
271
+ /**
272
+ * When an alert came in that this transaction will be disputed
273
+ */
274
+ dispute_alerted_at: string | null;
275
+ /**
276
+ * The member attached to this payment.
277
+ */
278
+ member: Payment.Member | null;
279
+ /**
280
+ * The membership attached to this payment.
281
+ */
282
+ membership: Payment.Membership | null;
283
+ /**
284
+ * The datetime the payment was paid
285
+ */
286
+ paid_at: string | null;
287
+ /**
288
+ * The different types of payment methods that can be used.
289
+ */
290
+ payment_method_type: PaymentsAPI.PaymentMethodTypes | null;
291
+ /**
292
+ * The subtotal to show to the creator (excluding buyer fees).
293
+ */
294
+ subtotal: number | null;
295
+ /**
296
+ * The total to show to the creator (excluding buyer fees).
297
+ */
298
+ total: number | null;
299
+ /**
300
+ * The total in USD to show to the creator (excluding buyer fees).
301
+ */
302
+ usd_total: number | null;
303
+ /**
304
+ * The user that made this payment.
305
+ */
306
+ user: Payment.User | null;
307
+ }
308
+ namespace Payment {
309
+ /**
310
+ * The member attached to this payment.
311
+ */
312
+ interface Member {
313
+ /**
314
+ * The ID of the member
315
+ */
316
+ id: string;
317
+ /**
318
+ * The phone number for the member, if available.
319
+ */
320
+ phone: string | null;
321
+ }
322
+ /**
323
+ * The membership attached to this payment.
324
+ */
325
+ interface Membership {
326
+ /**
327
+ * The internal ID of the membership.
328
+ */
329
+ id: string;
330
+ /**
331
+ * The state of the membership.
332
+ */
333
+ status: Shared.MembershipStatus;
334
+ }
335
+ /**
336
+ * The user that made this payment.
337
+ */
338
+ interface User {
339
+ /**
340
+ * The internal ID of the user.
341
+ */
342
+ id: string;
343
+ /**
344
+ * The email of the user
345
+ */
346
+ email: string | null;
347
+ /**
348
+ * The name of the user from their Whop account.
349
+ */
350
+ name: string | null;
351
+ /**
352
+ * The username of the user from their Whop account.
353
+ */
354
+ username: string;
355
+ }
356
+ }
357
+ /**
358
+ * The plan that got disputed
359
+ */
360
+ interface Plan {
361
+ /**
362
+ * The internal ID of the plan.
363
+ */
364
+ id: string;
365
+ }
366
+ /**
367
+ * The product that got disputed
368
+ */
369
+ interface Product {
370
+ /**
371
+ * The internal ID of the public product.
372
+ */
373
+ id: string;
374
+ /**
375
+ * The title of the product. Use for Whop 4.0.
376
+ */
377
+ title: string;
378
+ }
379
+ /**
380
+ * The refund policy for this dispute
381
+ */
382
+ interface RefundPolicyAttachment {
383
+ /**
384
+ * The ID of the attachment
385
+ */
386
+ id: string;
387
+ /**
388
+ * The attachment's content type (e.g., image/jpg, video/mp4)
389
+ */
390
+ content_type: string | null;
391
+ /**
392
+ * The name of the file
393
+ */
394
+ filename: string | null;
395
+ /**
396
+ * This is the URL you use to render optimized attachments on the client. This
397
+ * should be used for apps.
398
+ */
399
+ url: string | null;
400
+ }
401
+ /**
402
+ * An attachment that did not fit into the other categories
403
+ */
404
+ interface UncategorizedAttachment {
405
+ /**
406
+ * The ID of the attachment
407
+ */
408
+ id: string;
409
+ /**
410
+ * The attachment's content type (e.g., image/jpg, video/mp4)
411
+ */
412
+ content_type: string | null;
413
+ /**
414
+ * The name of the file
415
+ */
416
+ filename: string | null;
417
+ /**
418
+ * This is the URL you use to render optimized attachments on the client. This
419
+ * should be used for apps.
420
+ */
421
+ url: string | null;
422
+ }
423
+ }
424
+ /**
425
+ * The possible statuses of a dispute
426
+ */
427
+ export type DisputeStatuses = 'warning_needs_response' | 'warning_under_review' | 'warning_closed' | 'needs_response' | 'under_review' | 'won' | 'lost' | 'closed' | 'other';
428
+ /**
429
+ * An object representing a dispute against a company.
430
+ */
431
+ export interface DisputeListResponse {
432
+ /**
433
+ * The internal ID of the dispute.
434
+ */
435
+ id: string;
436
+ /**
437
+ * The amount of the dispute (formatted).
438
+ */
439
+ amount: number;
440
+ /**
441
+ * The company the dispute is against.
442
+ */
443
+ company: DisputeListResponse.Company | null;
444
+ /**
445
+ * When it was made.
446
+ */
447
+ created_at: string | null;
448
+ /**
449
+ * The currency of the dispute.
450
+ */
451
+ currency: Shared.Currency;
452
+ /**
453
+ * Whether or not the dispute data can be edited.
454
+ */
455
+ editable: boolean | null;
456
+ /**
457
+ * The last date the dispute is allow to be submitted by.
458
+ */
459
+ needs_response_by: string | null;
460
+ /**
461
+ * The payment that got disputed
462
+ */
463
+ payment: DisputeListResponse.Payment | null;
464
+ /**
465
+ * The plan that got disputed
466
+ */
467
+ plan: DisputeListResponse.Plan | null;
468
+ /**
469
+ * The product that got disputed
470
+ */
471
+ product: DisputeListResponse.Product | null;
472
+ /**
473
+ * The reason for the dispute
474
+ */
475
+ reason: string | null;
476
+ /**
477
+ * The status of the dispute (mimics stripe's dispute status).
478
+ */
479
+ status: DisputeStatuses;
480
+ /**
481
+ * Whether or not the dispute is a Visa Rapid Dispute Resolution.
482
+ */
483
+ visa_rdr: boolean;
484
+ }
485
+ export declare namespace DisputeListResponse {
486
+ /**
487
+ * The company the dispute is against.
488
+ */
489
+ interface Company {
490
+ /**
491
+ * The ID of the company
492
+ */
493
+ id: string;
494
+ /**
495
+ * The written name of the company.
496
+ */
497
+ title: string;
498
+ }
499
+ /**
500
+ * The payment that got disputed
501
+ */
502
+ interface Payment {
503
+ /**
504
+ * The payment ID
505
+ */
506
+ id: string;
507
+ }
508
+ /**
509
+ * The plan that got disputed
510
+ */
511
+ interface Plan {
512
+ /**
513
+ * The internal ID of the plan.
514
+ */
515
+ id: string;
516
+ }
517
+ /**
518
+ * The product that got disputed
519
+ */
520
+ interface Product {
521
+ /**
522
+ * The internal ID of the public product.
523
+ */
524
+ id: string;
525
+ /**
526
+ * The title of the product. Use for Whop 4.0.
527
+ */
528
+ title: string;
529
+ }
530
+ }
531
+ export interface DisputeListParams extends CursorPageParams {
532
+ /**
533
+ * The ID of the company to list disputes for
534
+ */
535
+ company_id: string;
536
+ /**
537
+ * Returns the elements in the list that come before the specified cursor.
538
+ */
539
+ before?: string | null;
540
+ /**
541
+ * The direction of the sort.
542
+ */
543
+ direction?: Shared.Direction | null;
544
+ /**
545
+ * Returns the first _n_ elements from the list.
546
+ */
547
+ first?: number | null;
548
+ /**
549
+ * Returns the last _n_ elements from the list.
550
+ */
551
+ last?: number | null;
552
+ }
553
+ export interface DisputeUpdateEvidenceParams {
554
+ /**
555
+ * An IP access log for the user from Whop.
556
+ */
557
+ access_activity_log?: string | null;
558
+ /**
559
+ * The billing address of the user from their payment details.
560
+ */
561
+ billing_address?: string | null;
562
+ /**
563
+ * A file containing the cancellation policy from the company.
564
+ */
565
+ cancellation_policy_attachment?: DisputeUpdateEvidenceParams.AttachmentInputWithDirectUploadID | DisputeUpdateEvidenceParams.AttachmentInputWithID | null;
566
+ /**
567
+ * A cancellation policy disclosure from the company.
568
+ */
569
+ cancellation_policy_disclosure?: string | null;
570
+ /**
571
+ * A file containing the customer communication from the company (An image).
572
+ */
573
+ customer_communication_attachment?: DisputeUpdateEvidenceParams.AttachmentInputWithDirectUploadID | DisputeUpdateEvidenceParams.AttachmentInputWithID | null;
574
+ /**
575
+ * The email of the customer from their payment details.
576
+ */
577
+ customer_email_address?: string | null;
578
+ /**
579
+ * The name of the customer from their payment details.
580
+ */
581
+ customer_name?: string | null;
582
+ /**
583
+ * Additional notes the company chooses to submit regarding the dispute.
584
+ */
585
+ notes?: string | null;
586
+ /**
587
+ * The description of the product from the company.
588
+ */
589
+ product_description?: string | null;
590
+ /**
591
+ * A file containing the refund policy from the company.
592
+ */
593
+ refund_policy_attachment?: DisputeUpdateEvidenceParams.AttachmentInputWithDirectUploadID | DisputeUpdateEvidenceParams.AttachmentInputWithID | null;
594
+ /**
595
+ * A refund policy disclosure from the company.
596
+ */
597
+ refund_policy_disclosure?: string | null;
598
+ /**
599
+ * A description on why the refund is being refused by the company.
600
+ */
601
+ refund_refusal_explanation?: string | null;
602
+ /**
603
+ * When the product was delivered by the company.
604
+ */
605
+ service_date?: string | null;
606
+ /**
607
+ * A file that does not fit in the other categories.
608
+ */
609
+ uncategorized_attachment?: DisputeUpdateEvidenceParams.AttachmentInputWithDirectUploadID | DisputeUpdateEvidenceParams.AttachmentInputWithID | null;
610
+ }
611
+ export declare namespace DisputeUpdateEvidenceParams {
612
+ /**
613
+ * Input for an attachment
614
+ */
615
+ interface AttachmentInputWithDirectUploadID {
616
+ /**
617
+ * This ID should be used the first time you upload an attachment. It is the ID of
618
+ * the direct upload that was created when uploading the file to S3 via the
619
+ * mediaDirectUpload mutation.
620
+ */
621
+ direct_upload_id: string;
622
+ }
623
+ /**
624
+ * Input for an attachment
625
+ */
626
+ interface AttachmentInputWithID {
627
+ /**
628
+ * The ID of an existing attachment object. Use this when updating a resource and
629
+ * keeping a subset of the attachments. Don't use this unless you know what you're
630
+ * doing.
631
+ */
632
+ id: string;
633
+ }
634
+ /**
635
+ * Input for an attachment
636
+ */
637
+ interface AttachmentInputWithDirectUploadID {
638
+ /**
639
+ * This ID should be used the first time you upload an attachment. It is the ID of
640
+ * the direct upload that was created when uploading the file to S3 via the
641
+ * mediaDirectUpload mutation.
642
+ */
643
+ direct_upload_id: string;
644
+ }
645
+ /**
646
+ * Input for an attachment
647
+ */
648
+ interface AttachmentInputWithID {
649
+ /**
650
+ * The ID of an existing attachment object. Use this when updating a resource and
651
+ * keeping a subset of the attachments. Don't use this unless you know what you're
652
+ * doing.
653
+ */
654
+ id: string;
655
+ }
656
+ /**
657
+ * Input for an attachment
658
+ */
659
+ interface AttachmentInputWithDirectUploadID {
660
+ /**
661
+ * This ID should be used the first time you upload an attachment. It is the ID of
662
+ * the direct upload that was created when uploading the file to S3 via the
663
+ * mediaDirectUpload mutation.
664
+ */
665
+ direct_upload_id: string;
666
+ }
667
+ /**
668
+ * Input for an attachment
669
+ */
670
+ interface AttachmentInputWithID {
671
+ /**
672
+ * The ID of an existing attachment object. Use this when updating a resource and
673
+ * keeping a subset of the attachments. Don't use this unless you know what you're
674
+ * doing.
675
+ */
676
+ id: string;
677
+ }
678
+ /**
679
+ * Input for an attachment
680
+ */
681
+ interface AttachmentInputWithDirectUploadID {
682
+ /**
683
+ * This ID should be used the first time you upload an attachment. It is the ID of
684
+ * the direct upload that was created when uploading the file to S3 via the
685
+ * mediaDirectUpload mutation.
686
+ */
687
+ direct_upload_id: string;
688
+ }
689
+ /**
690
+ * Input for an attachment
691
+ */
692
+ interface AttachmentInputWithID {
693
+ /**
694
+ * The ID of an existing attachment object. Use this when updating a resource and
695
+ * keeping a subset of the attachments. Don't use this unless you know what you're
696
+ * doing.
697
+ */
698
+ id: string;
699
+ }
700
+ }
701
+ export declare namespace Disputes {
702
+ export { type Dispute as Dispute, type DisputeStatuses as DisputeStatuses, type DisputeListResponse as DisputeListResponse, type DisputeListResponsesCursorPage as DisputeListResponsesCursorPage, type DisputeListParams as DisputeListParams, type DisputeUpdateEvidenceParams as DisputeUpdateEvidenceParams, };
703
+ }
704
+ //# sourceMappingURL=disputes.d.ts.map