@getlatedev/node 0.2.1397 → 0.2.1399
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/README.md +4 -0
- package/dist/index.d.mts +231 -48
- package/dist/index.d.ts +231 -48
- package/dist/index.js +29 -1
- package/dist/index.mjs +29 -1
- package/package.json +1 -1
- package/src/client.ts +8 -0
- package/src/generated/sdk.gen.ts +110 -14
- package/src/generated/types.gen.ts +238 -47
|
@@ -4471,7 +4471,7 @@ export type CampaignSubmission = {
|
|
|
4471
4471
|
* The creator account the post was published from.
|
|
4472
4472
|
*/
|
|
4473
4473
|
accountId: string;
|
|
4474
|
-
platform: 'tiktok' | 'instagram' | 'youtube';
|
|
4474
|
+
platform: 'tiktok' | 'instagram' | 'youtube' | 'threads' | 'pinterest' | 'facebook' | 'twitter';
|
|
4475
4475
|
platformPostId: string;
|
|
4476
4476
|
platformPostUrl: (string) | null;
|
|
4477
4477
|
/**
|
|
@@ -4494,7 +4494,7 @@ export type CampaignSubmission = {
|
|
|
4494
4494
|
reviewedBy: (string) | null;
|
|
4495
4495
|
reviewedAt: (string) | null;
|
|
4496
4496
|
/**
|
|
4497
|
-
* Views when the post was submitted
|
|
4497
|
+
* Views when the post was submitted. They count toward earnings like every later view.
|
|
4498
4498
|
*/
|
|
4499
4499
|
viewsAtSubmission: (number) | null;
|
|
4500
4500
|
/**
|
|
@@ -4502,7 +4502,7 @@ export type CampaignSubmission = {
|
|
|
4502
4502
|
*/
|
|
4503
4503
|
viewsLatest: (number) | null;
|
|
4504
4504
|
/**
|
|
4505
|
-
* Views
|
|
4505
|
+
* Views that count toward earnings: every view the platform reports for the post, including those before submission, read at the tracking window end at the latest: once the window completes or is cancelled, the last read at or before its end is final and this value stops moving.
|
|
4506
4506
|
*/
|
|
4507
4507
|
viewsEligible: (number) | null;
|
|
4508
4508
|
lastAccruedViews: number;
|
|
@@ -4562,7 +4562,7 @@ export type CampaignSubmission = {
|
|
|
4562
4562
|
};
|
|
4563
4563
|
};
|
|
4564
4564
|
|
|
4565
|
-
export type platform4 = 'tiktok' | 'instagram' | 'youtube';
|
|
4565
|
+
export type platform4 = 'tiktok' | 'instagram' | 'youtube' | 'threads' | 'pinterest' | 'facebook' | 'twitter';
|
|
4566
4566
|
|
|
4567
4567
|
export type status15 = 'received' | 'tracking' | 'pending_review' | 'approved' | 'rejected' | 'expired' | 'withdrawn';
|
|
4568
4568
|
|
|
@@ -4594,12 +4594,12 @@ export type CampaignSubmissionDetail = CampaignSubmission & {
|
|
|
4594
4594
|
};
|
|
4595
4595
|
|
|
4596
4596
|
export type CampaignSubmissionFlag = {
|
|
4597
|
-
code: 'duplicate_media' | 'duplicate_post' | 'view_spike' | 'linked_accounts' | 'cross_operator' | 'unreachable' | 'post_deleted' | 'account_restricted' | 'low_authenticity';
|
|
4597
|
+
code: 'duplicate_media' | 'duplicate_post' | 'view_spike' | 'linked_accounts' | 'cross_operator' | 'unreachable' | 'post_deleted' | 'account_restricted' | 'low_authenticity' | 'x_read_cap';
|
|
4598
4598
|
detail: string;
|
|
4599
4599
|
raisedAt: string;
|
|
4600
4600
|
};
|
|
4601
4601
|
|
|
4602
|
-
export type code = 'duplicate_media' | 'duplicate_post' | 'view_spike' | 'linked_accounts' | 'cross_operator' | 'unreachable' | 'post_deleted' | 'account_restricted' | 'low_authenticity';
|
|
4602
|
+
export type code = 'duplicate_media' | 'duplicate_post' | 'view_spike' | 'linked_accounts' | 'cross_operator' | 'unreachable' | 'post_deleted' | 'account_restricted' | 'low_authenticity' | 'x_read_cap';
|
|
4603
4603
|
|
|
4604
4604
|
/**
|
|
4605
4605
|
* Actions taken on the matched comment itself (comment trigger only; ignored on the
|
|
@@ -6140,15 +6140,18 @@ export type CreateCreatorCampaignRequest = {
|
|
|
6140
6140
|
*/
|
|
6141
6141
|
caps?: (CreatorCampaignCaps);
|
|
6142
6142
|
/**
|
|
6143
|
-
* Platforms creators may post on. At least one is needed to activate.
|
|
6143
|
+
* Platforms creators may post on. At least one is needed to activate. `twitter` (X) needs usage-based billing: X reads are billed at cost, up to `caps.maxXReadSpendCents`, and X views are the post's impressions. `facebook` takes Page reels and videos only.
|
|
6144
6144
|
*/
|
|
6145
|
-
platforms?: Array<('tiktok' | 'instagram' | 'youtube')>;
|
|
6145
|
+
platforms?: Array<('tiktok' | 'instagram' | 'youtube' | 'threads' | 'pinterest' | 'facebook' | 'twitter')>;
|
|
6146
6146
|
contentRules?: (string) | null;
|
|
6147
6147
|
startsAt?: (string) | null;
|
|
6148
6148
|
endsAt?: (string) | null;
|
|
6149
6149
|
trackingDays?: number;
|
|
6150
6150
|
holdDays?: number;
|
|
6151
|
-
|
|
6151
|
+
/**
|
|
6152
|
+
* Optional maximum age in minutes of a post when it is submitted. Null or omitted (the default) accepts any age. Posts published before the campaign started are always refused.
|
|
6153
|
+
*/
|
|
6154
|
+
maxPostAgeMinutes?: (number) | null;
|
|
6152
6155
|
settlement?: 'none' | 'external' | 'treasury';
|
|
6153
6156
|
branding?: (CreatorCampaignBranding | null);
|
|
6154
6157
|
};
|
|
@@ -6340,7 +6343,7 @@ export type CreatorCampaign = {
|
|
|
6340
6343
|
*/
|
|
6341
6344
|
type: 'cpm' | 'per_post' | 'pool';
|
|
6342
6345
|
currency: string;
|
|
6343
|
-
platforms: Array<('tiktok' | 'instagram' | 'youtube')>;
|
|
6346
|
+
platforms: Array<('tiktok' | 'instagram' | 'youtube' | 'threads' | 'pinterest' | 'facebook' | 'twitter')>;
|
|
6344
6347
|
/**
|
|
6345
6348
|
* Free-text rules shown to creators on the join page.
|
|
6346
6349
|
*/
|
|
@@ -6359,9 +6362,13 @@ export type CreatorCampaign = {
|
|
|
6359
6362
|
*/
|
|
6360
6363
|
holdDays: number;
|
|
6361
6364
|
/**
|
|
6362
|
-
* A post older than this when submitted is refused.
|
|
6365
|
+
* A post older than this many minutes when submitted is refused. Null (the default) accepts any age. Either way, a post published before the campaign started (`startsAt`, or `activatedAt` without one) is refused.
|
|
6366
|
+
*/
|
|
6367
|
+
maxPostAgeMinutes: (number) | null;
|
|
6368
|
+
/**
|
|
6369
|
+
* When the campaign was first activated. Without `startsAt`, posts must be published after this moment.
|
|
6363
6370
|
*/
|
|
6364
|
-
|
|
6371
|
+
activatedAt: (string) | null;
|
|
6365
6372
|
/**
|
|
6366
6373
|
* none: settle records a payout made elsewhere. external: you pay from your own rails on campaign_payout.payable and settle with your reference. treasury: settle moves the money from your Zernio balance to the creator's Stripe account, and the creator sets up payouts from their campaign page.
|
|
6367
6374
|
*/
|
|
@@ -6387,6 +6394,10 @@ export type CreatorCampaign = {
|
|
|
6387
6394
|
consumedCents: number;
|
|
6388
6395
|
participantCount: number;
|
|
6389
6396
|
submissionCounts: CampaignSubmissionCounts;
|
|
6397
|
+
/**
|
|
6398
|
+
* What the campaign's creators can be paid now, summed over every participant's payable balance.
|
|
6399
|
+
*/
|
|
6400
|
+
payableCents: number;
|
|
6390
6401
|
};
|
|
6391
6402
|
|
|
6392
6403
|
/**
|
|
@@ -6424,6 +6435,15 @@ export type CreatorCampaignCaps = {
|
|
|
6424
6435
|
* Accounts a participant can use in this campaign. Connecting a new account past it answers 400; only the first accounts connected, up to this count, can submit posts.
|
|
6425
6436
|
*/
|
|
6426
6437
|
maxAccountsPerParticipant?: number;
|
|
6438
|
+
/**
|
|
6439
|
+
* X campaigns only: what tracking X posts may cost in X reads, in cents. Unset means 5000 ($50).
|
|
6440
|
+
*
|
|
6441
|
+
* X bills one read per tracked post per UTC day, and you pay it at cost through usage-based billing.
|
|
6442
|
+
*
|
|
6443
|
+
* When it is spent, open X posts stop counting views and are flagged `x_read_cap`, and new X posts answer 409.
|
|
6444
|
+
*
|
|
6445
|
+
*/
|
|
6446
|
+
maxXReadSpendCents?: number;
|
|
6427
6447
|
/**
|
|
6428
6448
|
* A submission whose authenticity score falls below this is flagged `low_authenticity`. It is never rejected automatically. Defaults to 40 on create.
|
|
6429
6449
|
*/
|
|
@@ -6488,9 +6508,9 @@ export type CreatorPortalCampaign = {
|
|
|
6488
6508
|
currency: string;
|
|
6489
6509
|
economics: CreatorPortalEconomics;
|
|
6490
6510
|
/**
|
|
6491
|
-
* A post must be submitted within this many minutes of publishing.
|
|
6511
|
+
* A post must be submitted within this many minutes of publishing. Null means any age. Either way, only posts published after the campaign started are accepted.
|
|
6492
6512
|
*/
|
|
6493
|
-
maxPostAgeMinutes: number;
|
|
6513
|
+
maxPostAgeMinutes: (number) | null;
|
|
6494
6514
|
/**
|
|
6495
6515
|
* Days approved earnings stay owed before they become payable.
|
|
6496
6516
|
*/
|
|
@@ -12566,7 +12586,7 @@ export type PayoutBatch = {
|
|
|
12566
12586
|
id: string;
|
|
12567
12587
|
campaignId: (string) | null;
|
|
12568
12588
|
/**
|
|
12569
|
-
* `awaiting_payment` until the card
|
|
12589
|
+
* `awaiting_payment` until the card charge succeeds (3D Secure included); `paying` while transfers go out; then `paid`, `partially_failed` (some items failed or were skipped), `failed` (the card was declined, or none paid) or `expired` (the payment was cancelled unpaid, every amount is payable again).
|
|
12570
12590
|
*/
|
|
12571
12591
|
status: 'awaiting_payment' | 'paying' | 'paid' | 'partially_failed' | 'failed' | 'expired';
|
|
12572
12592
|
method: 'card';
|
|
@@ -12589,7 +12609,7 @@ export type PayoutBatch = {
|
|
|
12589
12609
|
};
|
|
12590
12610
|
|
|
12591
12611
|
/**
|
|
12592
|
-
* `awaiting_payment` until the card
|
|
12612
|
+
* `awaiting_payment` until the card charge succeeds (3D Secure included); `paying` while transfers go out; then `paid`, `partially_failed` (some items failed or were skipped), `failed` (the card was declined, or none paid) or `expired` (the payment was cancelled unpaid, every amount is payable again).
|
|
12593
12613
|
*/
|
|
12594
12614
|
export type status36 = 'awaiting_payment' | 'paying' | 'paid' | 'partially_failed' | 'failed' | 'expired';
|
|
12595
12615
|
|
|
@@ -15648,6 +15668,9 @@ export type TreasuryTopup = {
|
|
|
15648
15668
|
* Amount credited to your balance: gross minus the Stripe fee, or the whole charge when Zernio covers the fee; null until Stripe reports it
|
|
15649
15669
|
*/
|
|
15650
15670
|
netCents?: (number) | null;
|
|
15671
|
+
/**
|
|
15672
|
+
* `pending` until the card is charged (or 3D Secure is finished) and credited. `expired` means it ended unpaid: cancelled, or 3D Secure left unfinished for 30 minutes. Only `pending` counts toward pendingTopupCents.
|
|
15673
|
+
*/
|
|
15651
15674
|
status?: 'pending' | 'succeeded' | 'failed' | 'expired';
|
|
15652
15675
|
createdAt?: string;
|
|
15653
15676
|
succeededAt?: (string) | null;
|
|
@@ -15660,6 +15683,9 @@ export type method4 = 'card' | 'bank_transfer';
|
|
|
15660
15683
|
*/
|
|
15661
15684
|
export type purpose = 'balance' | 'payout_batch';
|
|
15662
15685
|
|
|
15686
|
+
/**
|
|
15687
|
+
* `pending` until the card is charged (or 3D Secure is finished) and credited. `expired` means it ended unpaid: cancelled, or 3D Secure left unfinished for 30 minutes. Only `pending` counts toward pendingTopupCents.
|
|
15688
|
+
*/
|
|
15663
15689
|
export type status46 = 'pending' | 'succeeded' | 'failed' | 'expired';
|
|
15664
15690
|
|
|
15665
15691
|
export type TreasuryTransfer = {
|
|
@@ -15802,13 +15828,16 @@ export type replySettings = 'following' | 'mentionedUsers' | 'subscribers' | 've
|
|
|
15802
15828
|
export type UpdateCreatorCampaignRequest = {
|
|
15803
15829
|
name?: string;
|
|
15804
15830
|
brandName?: string;
|
|
15805
|
-
platforms?: Array<('tiktok' | 'instagram' | 'youtube')>;
|
|
15831
|
+
platforms?: Array<('tiktok' | 'instagram' | 'youtube' | 'threads' | 'pinterest' | 'facebook' | 'twitter')>;
|
|
15806
15832
|
contentRules?: (string) | null;
|
|
15807
15833
|
startsAt?: (string) | null;
|
|
15808
15834
|
endsAt?: (string) | null;
|
|
15809
15835
|
trackingDays?: number;
|
|
15810
15836
|
holdDays?: number;
|
|
15811
|
-
|
|
15837
|
+
/**
|
|
15838
|
+
* Null removes the limit.
|
|
15839
|
+
*/
|
|
15840
|
+
maxPostAgeMinutes?: (number) | null;
|
|
15812
15841
|
settlement?: 'none' | 'external' | 'treasury';
|
|
15813
15842
|
economics?: CreatorCampaignEconomics;
|
|
15814
15843
|
caps?: CreatorCampaignCaps;
|
|
@@ -23223,15 +23252,31 @@ export type ListLedgerEntriesError = (ErrorResponse | {
|
|
|
23223
23252
|
|
|
23224
23253
|
export type GetBalanceResponse = ({
|
|
23225
23254
|
/**
|
|
23226
|
-
*
|
|
23255
|
+
* Your balance, including card top-ups paid in the last 7 days (see payoutLockedCents). Negative after a dispute or refund of a top-up that was already spent; transfers are refused while it is negative.
|
|
23227
23256
|
*/
|
|
23228
23257
|
availableCents?: number;
|
|
23229
23258
|
/**
|
|
23230
|
-
*
|
|
23259
|
+
* Part of availableCents from card top-ups charged in the last 7 days, net of refunds and disputes. Transfers to payees cannot use it yet; a transfer that needs it answers 409 `payout_funds_locked` with the day it can be sent.
|
|
23260
|
+
*/
|
|
23261
|
+
payoutLockedCents?: number;
|
|
23262
|
+
/**
|
|
23263
|
+
* The card top-ups behind payoutLockedCents, soonest first.
|
|
23264
|
+
*/
|
|
23265
|
+
payoutLocks?: Array<{
|
|
23266
|
+
topupId: string;
|
|
23267
|
+
amountCents: number;
|
|
23268
|
+
chargedAt: string;
|
|
23269
|
+
/**
|
|
23270
|
+
* From this time transfers can use it: 7 days after the charge.
|
|
23271
|
+
*/
|
|
23272
|
+
unlocksAt: string;
|
|
23273
|
+
}>;
|
|
23274
|
+
/**
|
|
23275
|
+
* Card top-ups paid before 2026-10-29 that were held and are moving to availableCents (within the hour). Always 0 after that.
|
|
23231
23276
|
*/
|
|
23232
23277
|
pendingCents?: number;
|
|
23233
23278
|
/**
|
|
23234
|
-
*
|
|
23279
|
+
* The held card top-ups behind pendingCents.
|
|
23235
23280
|
*/
|
|
23236
23281
|
pendingReleases?: Array<{
|
|
23237
23282
|
topupId: string;
|
|
@@ -23323,6 +23368,10 @@ export type CreateTopupData = {
|
|
|
23323
23368
|
* Only card is available. bank_transfer returns 400 "Bank transfers are not available yet."
|
|
23324
23369
|
*/
|
|
23325
23370
|
method: 'card' | 'bank_transfer';
|
|
23371
|
+
/**
|
|
23372
|
+
* A saved card of the billing owner's (`pm_...`). Defaults to the default payment method.
|
|
23373
|
+
*/
|
|
23374
|
+
paymentMethodId?: string;
|
|
23326
23375
|
};
|
|
23327
23376
|
headers?: {
|
|
23328
23377
|
/**
|
|
@@ -23340,14 +23389,30 @@ export type CreateTopupData = {
|
|
|
23340
23389
|
};
|
|
23341
23390
|
|
|
23342
23391
|
export type CreateTopupResponse = ({
|
|
23343
|
-
topupId
|
|
23392
|
+
topupId: string;
|
|
23393
|
+
status: 'succeeded' | 'processing' | 'requires_action';
|
|
23344
23394
|
/**
|
|
23345
|
-
* Stripe
|
|
23395
|
+
* PaymentIntent client secret for Stripe.js handleNextAction; set only when status is requires_action
|
|
23346
23396
|
*/
|
|
23347
|
-
|
|
23397
|
+
clientSecret: (string) | null;
|
|
23348
23398
|
});
|
|
23349
23399
|
|
|
23350
23400
|
export type CreateTopupError = (ErrorResponse | {
|
|
23401
|
+
error?: string;
|
|
23402
|
+
} | unknown);
|
|
23403
|
+
|
|
23404
|
+
export type ListTopupsData = {
|
|
23405
|
+
query?: {
|
|
23406
|
+
limit?: number;
|
|
23407
|
+
skip?: number;
|
|
23408
|
+
};
|
|
23409
|
+
};
|
|
23410
|
+
|
|
23411
|
+
export type ListTopupsResponse = ({
|
|
23412
|
+
topups?: Array<TreasuryTopup>;
|
|
23413
|
+
});
|
|
23414
|
+
|
|
23415
|
+
export type ListTopupsError = (ErrorResponse | {
|
|
23351
23416
|
/**
|
|
23352
23417
|
* Human-readable error message suitable for end-user display.
|
|
23353
23418
|
*/
|
|
@@ -23402,20 +23467,27 @@ export type CreateTopupError = (ErrorResponse | {
|
|
|
23402
23467
|
*/
|
|
23403
23468
|
effective_account_limit?: number;
|
|
23404
23469
|
};
|
|
23405
|
-
} |
|
|
23470
|
+
} | {
|
|
23471
|
+
error?: string;
|
|
23472
|
+
code?: 'insufficient_permissions' | 'unclassified_resource';
|
|
23473
|
+
/**
|
|
23474
|
+
* The resource group the key needs for this operation. Absent on admin-plane and unclassified-path denials.
|
|
23475
|
+
*/
|
|
23476
|
+
required_group?: 'publishing' | 'engagement' | 'messages' | 'contacts' | 'analytics' | 'ads' | 'telephony' | 'accounts' | 'billing' | 'webhooks' | 'commerce' | 'creator_campaigns' | 'money' | 'calendar' | 'files';
|
|
23477
|
+
});
|
|
23406
23478
|
|
|
23407
|
-
export type
|
|
23408
|
-
|
|
23409
|
-
|
|
23410
|
-
skip?: number;
|
|
23479
|
+
export type GetTopupReceiptData = {
|
|
23480
|
+
path: {
|
|
23481
|
+
topupId: string;
|
|
23411
23482
|
};
|
|
23412
23483
|
};
|
|
23413
23484
|
|
|
23414
|
-
export type
|
|
23415
|
-
|
|
23485
|
+
export type GetTopupReceiptResponse = ({
|
|
23486
|
+
url: string;
|
|
23487
|
+
format: 'pdf' | 'page';
|
|
23416
23488
|
});
|
|
23417
23489
|
|
|
23418
|
-
export type
|
|
23490
|
+
export type GetTopupReceiptError = (ErrorResponse | {
|
|
23419
23491
|
/**
|
|
23420
23492
|
* Human-readable error message suitable for end-user display.
|
|
23421
23493
|
*/
|
|
@@ -23477,20 +23549,19 @@ export type ListTopupsError = (ErrorResponse | {
|
|
|
23477
23549
|
* The resource group the key needs for this operation. Absent on admin-plane and unclassified-path denials.
|
|
23478
23550
|
*/
|
|
23479
23551
|
required_group?: 'publishing' | 'engagement' | 'messages' | 'contacts' | 'analytics' | 'ads' | 'telephony' | 'accounts' | 'billing' | 'webhooks' | 'commerce' | 'creator_campaigns' | 'money' | 'calendar' | 'files';
|
|
23552
|
+
} | {
|
|
23553
|
+
error?: string;
|
|
23480
23554
|
});
|
|
23481
23555
|
|
|
23482
|
-
export type
|
|
23556
|
+
export type ConfirmTopupData = {
|
|
23483
23557
|
path: {
|
|
23484
23558
|
topupId: string;
|
|
23485
23559
|
};
|
|
23486
23560
|
};
|
|
23487
23561
|
|
|
23488
|
-
export type
|
|
23489
|
-
url: string;
|
|
23490
|
-
format: 'pdf' | 'page';
|
|
23491
|
-
});
|
|
23562
|
+
export type ConfirmTopupResponse = (TreasuryTopup);
|
|
23492
23563
|
|
|
23493
|
-
export type
|
|
23564
|
+
export type ConfirmTopupError = (ErrorResponse | {
|
|
23494
23565
|
/**
|
|
23495
23566
|
* Human-readable error message suitable for end-user display.
|
|
23496
23567
|
*/
|
|
@@ -23547,11 +23618,71 @@ export type GetTopupReceiptError = (ErrorResponse | {
|
|
|
23547
23618
|
};
|
|
23548
23619
|
} | {
|
|
23549
23620
|
error?: string;
|
|
23550
|
-
|
|
23621
|
+
});
|
|
23622
|
+
|
|
23623
|
+
export type CancelTopupData = {
|
|
23624
|
+
path: {
|
|
23625
|
+
topupId: string;
|
|
23626
|
+
};
|
|
23627
|
+
};
|
|
23628
|
+
|
|
23629
|
+
export type CancelTopupResponse = (TreasuryTopup);
|
|
23630
|
+
|
|
23631
|
+
export type CancelTopupError = (ErrorResponse | {
|
|
23551
23632
|
/**
|
|
23552
|
-
*
|
|
23633
|
+
* Human-readable error message suitable for end-user display.
|
|
23553
23634
|
*/
|
|
23554
|
-
|
|
23635
|
+
error: string;
|
|
23636
|
+
/**
|
|
23637
|
+
* Machine-readable error code. Stable across versions.
|
|
23638
|
+
*/
|
|
23639
|
+
code: 'PAYMENT_REQUIRED';
|
|
23640
|
+
/**
|
|
23641
|
+
* Discriminator for which gate fired.
|
|
23642
|
+
*/
|
|
23643
|
+
reason: 'free_tier_exceeded' | 'twitter_passthrough' | 'enterprise_required' | 'card_verification_required';
|
|
23644
|
+
/**
|
|
23645
|
+
* Link to the relevant documentation page.
|
|
23646
|
+
*/
|
|
23647
|
+
documentation_url?: string;
|
|
23648
|
+
/**
|
|
23649
|
+
* Deep-link to send the end-user to. For
|
|
23650
|
+
* `free_tier_exceeded` and `twitter_passthrough` this opens
|
|
23651
|
+
* the add-payment-method drawer on the Zernio billing page.
|
|
23652
|
+
* For `enterprise_required` this is the Zernio enterprise
|
|
23653
|
+
* contact page.
|
|
23654
|
+
*
|
|
23655
|
+
*/
|
|
23656
|
+
dashboard_url?: string;
|
|
23657
|
+
/**
|
|
23658
|
+
* Structured context for SDK clients that want to render their own UX. Keys vary by `reason`.
|
|
23659
|
+
*/
|
|
23660
|
+
details?: {
|
|
23661
|
+
/**
|
|
23662
|
+
* How many accounts the free tier allows. Only set when reason=free_tier_exceeded.
|
|
23663
|
+
*/
|
|
23664
|
+
free_tier_account_limit?: number;
|
|
23665
|
+
/**
|
|
23666
|
+
* How many accounts the team currently has connected. Set when reason=free_tier_exceeded or reason=enterprise_required.
|
|
23667
|
+
*/
|
|
23668
|
+
current_account_count?: number;
|
|
23669
|
+
/**
|
|
23670
|
+
* Whether the team currently has a card on file in Stripe. Set when reason=free_tier_exceeded or reason=twitter_passthrough.
|
|
23671
|
+
*/
|
|
23672
|
+
has_payment_method?: boolean;
|
|
23673
|
+
/**
|
|
23674
|
+
* One-time card verification charge in USD cents, credited to usage. Only set when reason=card_verification_required.
|
|
23675
|
+
*/
|
|
23676
|
+
verification_amount_cents?: number;
|
|
23677
|
+
/**
|
|
23678
|
+
* The negotiated connected-account cap from the
|
|
23679
|
+
* team's enterprise contract. Self-service teams
|
|
23680
|
+
* have no cap and never receive this reason. Only
|
|
23681
|
+
* set when reason=enterprise_required.
|
|
23682
|
+
*
|
|
23683
|
+
*/
|
|
23684
|
+
effective_account_limit?: number;
|
|
23685
|
+
};
|
|
23555
23686
|
} | {
|
|
23556
23687
|
error?: string;
|
|
23557
23688
|
});
|
|
@@ -24122,6 +24253,23 @@ export type GetPayoutBatchResponse = ({
|
|
|
24122
24253
|
|
|
24123
24254
|
export type GetPayoutBatchError = (ErrorResponse);
|
|
24124
24255
|
|
|
24256
|
+
export type ConfirmPayoutBatchData = {
|
|
24257
|
+
path: {
|
|
24258
|
+
/**
|
|
24259
|
+
* Payout batch ID.
|
|
24260
|
+
*/
|
|
24261
|
+
batchId: string;
|
|
24262
|
+
};
|
|
24263
|
+
};
|
|
24264
|
+
|
|
24265
|
+
export type ConfirmPayoutBatchResponse = ({
|
|
24266
|
+
batch: PayoutBatch;
|
|
24267
|
+
});
|
|
24268
|
+
|
|
24269
|
+
export type ConfirmPayoutBatchError = (ErrorResponse | {
|
|
24270
|
+
error?: string;
|
|
24271
|
+
});
|
|
24272
|
+
|
|
24125
24273
|
export type CancelPayoutBatchData = {
|
|
24126
24274
|
path: {
|
|
24127
24275
|
/**
|
|
@@ -35922,6 +36070,10 @@ export type ListInboxConversationsData = {
|
|
|
35922
36070
|
* Filter by conversation status
|
|
35923
36071
|
*/
|
|
35924
36072
|
status?: 'active' | 'archived';
|
|
36073
|
+
/**
|
|
36074
|
+
* Comma-separated contact tags. Returns only conversations whose contact has any of them. Cannot be combined with folder=requests.
|
|
36075
|
+
*/
|
|
36076
|
+
tags?: string;
|
|
35925
36077
|
};
|
|
35926
36078
|
};
|
|
35927
36079
|
|
|
@@ -67709,6 +67861,38 @@ export type RemoveCampaignParticipantResponse = ({
|
|
|
67709
67861
|
|
|
67710
67862
|
export type RemoveCampaignParticipantError = (ErrorResponse);
|
|
67711
67863
|
|
|
67864
|
+
export type ResendCampaignParticipantInviteData = {
|
|
67865
|
+
headers?: {
|
|
67866
|
+
/**
|
|
67867
|
+
* Optional client-generated unique key (e.g. a UUID) that makes retries safe.
|
|
67868
|
+
*
|
|
67869
|
+
* - Same key + same body: replays the original response.
|
|
67870
|
+
* - Same key + different body: 422.
|
|
67871
|
+
* - Key still processing: 409.
|
|
67872
|
+
*
|
|
67873
|
+
* A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
|
|
67874
|
+
*
|
|
67875
|
+
*/
|
|
67876
|
+
'Idempotency-Key'?: string;
|
|
67877
|
+
};
|
|
67878
|
+
path: {
|
|
67879
|
+
/**
|
|
67880
|
+
* Campaign ID.
|
|
67881
|
+
*/
|
|
67882
|
+
campaignId: string;
|
|
67883
|
+
/**
|
|
67884
|
+
* Participant ID.
|
|
67885
|
+
*/
|
|
67886
|
+
participantId: string;
|
|
67887
|
+
};
|
|
67888
|
+
};
|
|
67889
|
+
|
|
67890
|
+
export type ResendCampaignParticipantInviteResponse = ({
|
|
67891
|
+
participant: CampaignParticipant;
|
|
67892
|
+
});
|
|
67893
|
+
|
|
67894
|
+
export type ResendCampaignParticipantInviteError = (ErrorResponse);
|
|
67895
|
+
|
|
67712
67896
|
export type SettleCampaignParticipantData = {
|
|
67713
67897
|
body: {
|
|
67714
67898
|
/**
|
|
@@ -67765,6 +67949,10 @@ export type CreateCampaignPayoutBatchData = {
|
|
|
67765
67949
|
* Leave these participants out.
|
|
67766
67950
|
*/
|
|
67767
67951
|
excludeParticipantIds?: Array<(string)>;
|
|
67952
|
+
/**
|
|
67953
|
+
* A saved card of the billing owner's (`pm_...`). Defaults to the default payment method.
|
|
67954
|
+
*/
|
|
67955
|
+
paymentMethodId?: string;
|
|
67768
67956
|
};
|
|
67769
67957
|
headers?: {
|
|
67770
67958
|
/**
|
|
@@ -67789,10 +67977,13 @@ export type CreateCampaignPayoutBatchData = {
|
|
|
67789
67977
|
|
|
67790
67978
|
export type CreateCampaignPayoutBatchResponse = ({
|
|
67791
67979
|
batch: PayoutBatch;
|
|
67792
|
-
|
|
67793
|
-
|
|
67794
|
-
|
|
67795
|
-
|
|
67980
|
+
payment: {
|
|
67981
|
+
status: 'succeeded' | 'processing' | 'requires_action';
|
|
67982
|
+
/**
|
|
67983
|
+
* PaymentIntent client secret for Stripe.js handleNextAction; set only when status is requires_action
|
|
67984
|
+
*/
|
|
67985
|
+
clientSecret: (string) | null;
|
|
67986
|
+
};
|
|
67796
67987
|
});
|
|
67797
67988
|
|
|
67798
67989
|
export type CreateCampaignPayoutBatchError = (ErrorResponse);
|
|
@@ -67840,13 +68031,13 @@ export type ListCampaignSubmissionsData = {
|
|
|
67840
68031
|
campaignId: string;
|
|
67841
68032
|
};
|
|
67842
68033
|
query?: {
|
|
67843
|
-
flag?: 'duplicate_media' | 'duplicate_post' | 'view_spike' | 'linked_accounts' | 'cross_operator' | 'unreachable' | 'post_deleted' | 'account_restricted' | 'low_authenticity';
|
|
68034
|
+
flag?: 'duplicate_media' | 'duplicate_post' | 'view_spike' | 'linked_accounts' | 'cross_operator' | 'unreachable' | 'post_deleted' | 'account_restricted' | 'low_authenticity' | 'x_read_cap';
|
|
67844
68035
|
limit?: number;
|
|
67845
68036
|
maxScore?: number;
|
|
67846
68037
|
minScore?: number;
|
|
67847
68038
|
order?: 'asc' | 'desc';
|
|
67848
68039
|
participantId?: string;
|
|
67849
|
-
platform?: 'tiktok' | 'instagram' | 'youtube';
|
|
68040
|
+
platform?: 'tiktok' | 'instagram' | 'youtube' | 'threads' | 'pinterest' | 'facebook' | 'twitter';
|
|
67850
68041
|
/**
|
|
67851
68042
|
* Only submissions whose creator name or post link contains this text, ignoring case.
|
|
67852
68043
|
*/
|