@pubnio/sdk 0.2.13 → 0.4.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.cjs +318 -37
- package/dist/index.d.cts +1056 -52
- package/dist/index.d.ts +1056 -52
- package/dist/index.js +319 -38
- package/dist/internal.cjs +318 -37
- package/dist/internal.d.cts +1473 -272
- package/dist/internal.d.ts +1473 -272
- package/dist/internal.js +319 -38
- package/dist/solid.cjs +318 -37
- package/dist/solid.d.cts +1512 -319
- package/dist/solid.d.ts +1512 -319
- package/dist/solid.js +319 -38
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -155,6 +155,7 @@ export type BillingSubscriptionStatus = typeof BillingSubscriptionStatus.Type;
|
|
|
155
155
|
export declare const UsageMeter: Schema.Literals<readonly [
|
|
156
156
|
"confirmed_publish",
|
|
157
157
|
"x_passthrough",
|
|
158
|
+
"x_read",
|
|
158
159
|
"managed_ad",
|
|
159
160
|
"inbox_reply",
|
|
160
161
|
"automation_run"
|
|
@@ -180,6 +181,7 @@ export declare const BillingPlan: Schema.Struct<{
|
|
|
180
181
|
readonly meter: Schema.Literals<readonly [
|
|
181
182
|
"confirmed_publish",
|
|
182
183
|
"x_passthrough",
|
|
184
|
+
"x_read",
|
|
183
185
|
"managed_ad",
|
|
184
186
|
"inbox_reply",
|
|
185
187
|
"automation_run"
|
|
@@ -188,10 +190,15 @@ export declare const BillingPlan: Schema.Struct<{
|
|
|
188
190
|
readonly overageUnitPriceMicros: Schema.NullOr<Schema.Int>;
|
|
189
191
|
readonly unitLabel: Schema.String;
|
|
190
192
|
}>>;
|
|
193
|
+
readonly xReads: Schema.Boolean;
|
|
194
|
+
readonly includedXReadMicros: Schema.NullOr<Schema.Int>;
|
|
191
195
|
readonly seatsLimit: Schema.NullOr<Schema.Int>;
|
|
192
196
|
readonly analyticsRetentionDays: Schema.Int;
|
|
193
197
|
readonly whiteLabelOAuth: Schema.Boolean;
|
|
194
198
|
readonly ssoSaml: Schema.Boolean;
|
|
199
|
+
readonly priorityQueue: Schema.Boolean;
|
|
200
|
+
readonly adsInsights: Schema.Boolean;
|
|
201
|
+
readonly adsWrite: Schema.Boolean;
|
|
195
202
|
}>;
|
|
196
203
|
export type BillingPlan = typeof BillingPlan.Type;
|
|
197
204
|
export declare const BillingPlanList: Schema.Struct<{
|
|
@@ -215,6 +222,7 @@ export declare const BillingPlanList: Schema.Struct<{
|
|
|
215
222
|
readonly meter: Schema.Literals<readonly [
|
|
216
223
|
"confirmed_publish",
|
|
217
224
|
"x_passthrough",
|
|
225
|
+
"x_read",
|
|
218
226
|
"managed_ad",
|
|
219
227
|
"inbox_reply",
|
|
220
228
|
"automation_run"
|
|
@@ -223,10 +231,15 @@ export declare const BillingPlanList: Schema.Struct<{
|
|
|
223
231
|
readonly overageUnitPriceMicros: Schema.NullOr<Schema.Int>;
|
|
224
232
|
readonly unitLabel: Schema.String;
|
|
225
233
|
}>>;
|
|
234
|
+
readonly xReads: Schema.Boolean;
|
|
235
|
+
readonly includedXReadMicros: Schema.NullOr<Schema.Int>;
|
|
226
236
|
readonly seatsLimit: Schema.NullOr<Schema.Int>;
|
|
227
237
|
readonly analyticsRetentionDays: Schema.Int;
|
|
228
238
|
readonly whiteLabelOAuth: Schema.Boolean;
|
|
229
239
|
readonly ssoSaml: Schema.Boolean;
|
|
240
|
+
readonly priorityQueue: Schema.Boolean;
|
|
241
|
+
readonly adsInsights: Schema.Boolean;
|
|
242
|
+
readonly adsWrite: Schema.Boolean;
|
|
230
243
|
}>>;
|
|
231
244
|
}>;
|
|
232
245
|
export type BillingPlanList = typeof BillingPlanList.Type;
|
|
@@ -234,6 +247,7 @@ export declare const BillingMeterUsage: Schema.Struct<{
|
|
|
234
247
|
readonly meter: Schema.Literals<readonly [
|
|
235
248
|
"confirmed_publish",
|
|
236
249
|
"x_passthrough",
|
|
250
|
+
"x_read",
|
|
237
251
|
"managed_ad",
|
|
238
252
|
"inbox_reply",
|
|
239
253
|
"automation_run"
|
|
@@ -299,10 +313,13 @@ export declare const WorkspaceBilling: Schema.Struct<{
|
|
|
299
313
|
readonly version: Schema.Int;
|
|
300
314
|
}>;
|
|
301
315
|
readonly currentPeriod: Schema.Struct<{
|
|
316
|
+
readonly start: Schema.String;
|
|
317
|
+
readonly end: Schema.String;
|
|
302
318
|
readonly meters: Schema.$Array<Schema.Struct<{
|
|
303
319
|
readonly meter: Schema.Literals<readonly [
|
|
304
320
|
"confirmed_publish",
|
|
305
321
|
"x_passthrough",
|
|
322
|
+
"x_read",
|
|
306
323
|
"managed_ad",
|
|
307
324
|
"inbox_reply",
|
|
308
325
|
"automation_run"
|
|
@@ -324,6 +341,7 @@ export declare const BillingUsageQuery: Schema.Struct<{
|
|
|
324
341
|
readonly meter: Schema.optionalKey<Schema.Literals<readonly [
|
|
325
342
|
"confirmed_publish",
|
|
326
343
|
"x_passthrough",
|
|
344
|
+
"x_read",
|
|
327
345
|
"managed_ad",
|
|
328
346
|
"inbox_reply",
|
|
329
347
|
"automation_run"
|
|
@@ -357,6 +375,7 @@ export declare const BillingUsage: Schema.Struct<{
|
|
|
357
375
|
readonly meter: Schema.Literals<readonly [
|
|
358
376
|
"confirmed_publish",
|
|
359
377
|
"x_passthrough",
|
|
378
|
+
"x_read",
|
|
360
379
|
"managed_ad",
|
|
361
380
|
"inbox_reply",
|
|
362
381
|
"automation_run"
|
|
@@ -1241,19 +1260,19 @@ declare const ApiKeyRevocation: Schema.Struct<{
|
|
|
1241
1260
|
}>;
|
|
1242
1261
|
type ApiKeyRevocation = typeof ApiKeyRevocation.Type;
|
|
1243
1262
|
export declare const PublishInput: Schema.Struct<{
|
|
1244
|
-
readonly expectedRevision: Schema.Int
|
|
1263
|
+
readonly expectedRevision: Schema.optionalKey<Schema.Int>;
|
|
1245
1264
|
readonly scheduledAt: Schema.optionalKey<Schema.String>;
|
|
1246
|
-
readonly
|
|
1265
|
+
readonly accounts: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "AccountId">>>;
|
|
1247
1266
|
readonly targets: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
1248
1267
|
readonly accountId: Schema.brand<Schema.String, "AccountId">;
|
|
1249
|
-
readonly placement: Schema.Literals<readonly [
|
|
1268
|
+
readonly placement: Schema.optionalKey<Schema.Literals<readonly [
|
|
1250
1269
|
"feed",
|
|
1251
1270
|
"reel",
|
|
1252
1271
|
"story",
|
|
1253
1272
|
"carousel",
|
|
1254
1273
|
"video",
|
|
1255
1274
|
"pin"
|
|
1256
|
-
]
|
|
1275
|
+
]>>;
|
|
1257
1276
|
readonly scheduledAt: Schema.optionalKey<Schema.Union<readonly [
|
|
1258
1277
|
Schema.String,
|
|
1259
1278
|
Schema.Null
|
|
@@ -1470,6 +1489,8 @@ export declare const PublishAccepted: Schema.Struct<{
|
|
|
1470
1489
|
"tiktok_upload_required",
|
|
1471
1490
|
"tiktok_too_many_mentions",
|
|
1472
1491
|
"queue_and_time_conflict",
|
|
1492
|
+
"queue_not_found",
|
|
1493
|
+
"queue_unavailable",
|
|
1473
1494
|
"invalid_field",
|
|
1474
1495
|
"account_ambiguous",
|
|
1475
1496
|
"unsupported_placement",
|
|
@@ -1482,6 +1503,10 @@ export declare const PublishAccepted: Schema.Struct<{
|
|
|
1482
1503
|
Schema.Int
|
|
1483
1504
|
]>>;
|
|
1484
1505
|
readonly message: Schema.String;
|
|
1506
|
+
readonly candidates: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
1507
|
+
readonly accountId: Schema.brand<Schema.String, "AccountId">;
|
|
1508
|
+
readonly name: Schema.String;
|
|
1509
|
+
}>>>;
|
|
1485
1510
|
}>>;
|
|
1486
1511
|
readonly billing: Schema.optionalKey<Schema.Struct<{
|
|
1487
1512
|
readonly estimatedCostMicros: Schema.Int;
|
|
@@ -1548,7 +1573,10 @@ export declare const PublishStatus: Schema.Struct<{
|
|
|
1548
1573
|
"tiktok_settings_not_allowed",
|
|
1549
1574
|
"tiktok_processing_failed",
|
|
1550
1575
|
"submission_uncertain",
|
|
1551
|
-
"confirmation_unavailable"
|
|
1576
|
+
"confirmation_unavailable",
|
|
1577
|
+
"billing_inactive",
|
|
1578
|
+
"spend_cap_reached",
|
|
1579
|
+
"insufficient_credit"
|
|
1552
1580
|
]>>;
|
|
1553
1581
|
readonly canRetry: Schema.Boolean;
|
|
1554
1582
|
readonly canReconcile: Schema.Boolean;
|
|
@@ -1637,7 +1665,10 @@ export declare const PublishWait: Schema.Struct<{
|
|
|
1637
1665
|
"tiktok_settings_not_allowed",
|
|
1638
1666
|
"tiktok_processing_failed",
|
|
1639
1667
|
"submission_uncertain",
|
|
1640
|
-
"confirmation_unavailable"
|
|
1668
|
+
"confirmation_unavailable",
|
|
1669
|
+
"billing_inactive",
|
|
1670
|
+
"spend_cap_reached",
|
|
1671
|
+
"insufficient_credit"
|
|
1641
1672
|
]>>;
|
|
1642
1673
|
readonly canRetry: Schema.Boolean;
|
|
1643
1674
|
readonly canReconcile: Schema.Boolean;
|
|
@@ -1745,7 +1776,10 @@ export declare const DeliveryHistory: Schema.Struct<{
|
|
|
1745
1776
|
"tiktok_settings_not_allowed",
|
|
1746
1777
|
"tiktok_processing_failed",
|
|
1747
1778
|
"submission_uncertain",
|
|
1748
|
-
"confirmation_unavailable"
|
|
1779
|
+
"confirmation_unavailable",
|
|
1780
|
+
"billing_inactive",
|
|
1781
|
+
"spend_cap_reached",
|
|
1782
|
+
"insufficient_credit"
|
|
1749
1783
|
]>>;
|
|
1750
1784
|
readonly canRetry: Schema.Boolean;
|
|
1751
1785
|
readonly canReconcile: Schema.Boolean;
|
|
@@ -2171,6 +2205,38 @@ export declare const PublishCapabilities: Schema.Struct<{
|
|
|
2171
2205
|
"ad_account"
|
|
2172
2206
|
]>>;
|
|
2173
2207
|
readonly placements: Schema.$Array<Schema.Struct<{
|
|
2208
|
+
readonly settings: Schema.optionalKey<Schema.Struct<{
|
|
2209
|
+
readonly poll: Schema.Union<readonly [
|
|
2210
|
+
Schema.Struct<{
|
|
2211
|
+
readonly minDurationMinutes: Schema.Int;
|
|
2212
|
+
readonly maxDurationMinutes: Schema.Int;
|
|
2213
|
+
readonly minOptions: Schema.Int;
|
|
2214
|
+
readonly maxOptions: Schema.Int;
|
|
2215
|
+
readonly optionCharacters: Schema.Int;
|
|
2216
|
+
}>,
|
|
2217
|
+
Schema.Struct<{
|
|
2218
|
+
readonly questionCharacters: Schema.Int;
|
|
2219
|
+
readonly durations: Schema.$Array<Schema.Literals<readonly [
|
|
2220
|
+
"ONE_DAY",
|
|
2221
|
+
"THREE_DAYS",
|
|
2222
|
+
"SEVEN_DAYS",
|
|
2223
|
+
"FOURTEEN_DAYS"
|
|
2224
|
+
]>>;
|
|
2225
|
+
readonly minOptions: Schema.Int;
|
|
2226
|
+
readonly maxOptions: Schema.Int;
|
|
2227
|
+
readonly optionCharacters: Schema.Int;
|
|
2228
|
+
}>
|
|
2229
|
+
]>;
|
|
2230
|
+
readonly replySettings: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly [
|
|
2231
|
+
"following",
|
|
2232
|
+
"mentionedUsers",
|
|
2233
|
+
"subscribers",
|
|
2234
|
+
"verified"
|
|
2235
|
+
]>>>;
|
|
2236
|
+
readonly maxMediaTags: Schema.optionalKey<Schema.Int>;
|
|
2237
|
+
readonly placeId: Schema.optionalKey<Schema.Boolean>;
|
|
2238
|
+
readonly quotePostId: Schema.optionalKey<Schema.Boolean>;
|
|
2239
|
+
}>>;
|
|
2174
2240
|
readonly placement: Schema.Literals<readonly [
|
|
2175
2241
|
"feed",
|
|
2176
2242
|
"reel",
|
|
@@ -3081,6 +3147,34 @@ declare const SeatLimitReached_base: HttpApiError.ProblemClass<SeatLimitReached,
|
|
|
3081
3147
|
}, {}>;
|
|
3082
3148
|
declare class SeatLimitReached extends SeatLimitReached_base {
|
|
3083
3149
|
}
|
|
3150
|
+
declare const PlanRequired_base: HttpApiError.ProblemClass<PlanRequired, "PlanRequired", "urn:pubnio:problem:plan-required", 402, {
|
|
3151
|
+
readonly code: Schema.Literal<"plan_required">;
|
|
3152
|
+
readonly entitlement: Schema.Literals<readonly [
|
|
3153
|
+
"adsInsights",
|
|
3154
|
+
"adsWrite",
|
|
3155
|
+
"analyticsHistory"
|
|
3156
|
+
]>;
|
|
3157
|
+
readonly currentPlan: Schema.Literals<readonly [
|
|
3158
|
+
"payg",
|
|
3159
|
+
"pro",
|
|
3160
|
+
"platform",
|
|
3161
|
+
"enterprise"
|
|
3162
|
+
]>;
|
|
3163
|
+
readonly minimumPlan: Schema.Literals<readonly [
|
|
3164
|
+
"payg",
|
|
3165
|
+
"pro",
|
|
3166
|
+
"platform",
|
|
3167
|
+
"enterprise"
|
|
3168
|
+
]>;
|
|
3169
|
+
readonly fundingUrl: Schema.String;
|
|
3170
|
+
readonly canManageBilling: Schema.Boolean;
|
|
3171
|
+
readonly nextAction: Schema.String;
|
|
3172
|
+
readonly param: Schema.optionalKey<Schema.String>;
|
|
3173
|
+
/** The earliest date the current plan can read (analytics history only). */
|
|
3174
|
+
readonly earliestDate: Schema.optionalKey<Schema.String>;
|
|
3175
|
+
}, {}>;
|
|
3176
|
+
declare class PlanRequired extends PlanRequired_base {
|
|
3177
|
+
}
|
|
3084
3178
|
declare const AlreadyMember_base: HttpApiError.ProblemClass<AlreadyMember, "AlreadyMember", "urn:pubnio:problem:already-member", 409, {
|
|
3085
3179
|
readonly code: Schema.Literal<"already_member">;
|
|
3086
3180
|
readonly nextAction: Schema.String;
|
|
@@ -3164,6 +3258,8 @@ declare const InvalidPublication_base: HttpApiError.ProblemClass<InvalidPublicat
|
|
|
3164
3258
|
"tiktok_upload_required",
|
|
3165
3259
|
"tiktok_too_many_mentions",
|
|
3166
3260
|
"queue_and_time_conflict",
|
|
3261
|
+
"queue_not_found",
|
|
3262
|
+
"queue_unavailable",
|
|
3167
3263
|
"invalid_field",
|
|
3168
3264
|
"account_ambiguous",
|
|
3169
3265
|
"unsupported_placement",
|
|
@@ -3176,6 +3272,10 @@ declare const InvalidPublication_base: HttpApiError.ProblemClass<InvalidPublicat
|
|
|
3176
3272
|
Schema.Int
|
|
3177
3273
|
]>>;
|
|
3178
3274
|
readonly message: Schema.String;
|
|
3275
|
+
readonly candidates: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
3276
|
+
readonly accountId: Schema.brand<Schema.String, "AccountId">;
|
|
3277
|
+
readonly name: Schema.String;
|
|
3278
|
+
}>>>;
|
|
3179
3279
|
}>>;
|
|
3180
3280
|
readonly candidates: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
3181
3281
|
readonly accountId: Schema.brand<Schema.String, "AccountId">;
|
|
@@ -3345,6 +3445,13 @@ declare class MediaUploadConflict extends MediaUploadConflict_base {
|
|
|
3345
3445
|
declare const DestinationAlreadySubmitted_base: HttpApiError.ProblemClass<DestinationAlreadySubmitted, "DestinationAlreadySubmitted", "urn:pubnio:problem:destination-already-submitted", 409, {}, {}>;
|
|
3346
3446
|
declare class DestinationAlreadySubmitted extends DestinationAlreadySubmitted_base {
|
|
3347
3447
|
}
|
|
3448
|
+
declare const PostSubmitted_base: HttpApiError.ProblemClass<PostSubmitted, "PostSubmitted", "urn:pubnio:problem:post-submitted", 409, {
|
|
3449
|
+
readonly code: Schema.Literal<"post_submitted">;
|
|
3450
|
+
readonly targetIds: Schema.$Array<Schema.brand<Schema.String, "TargetId">>;
|
|
3451
|
+
readonly nextAction: Schema.String;
|
|
3452
|
+
}, {}>;
|
|
3453
|
+
declare class PostSubmitted extends PostSubmitted_base {
|
|
3454
|
+
}
|
|
3348
3455
|
declare const DeliveryNotRetryable_base: HttpApiError.ProblemClass<DeliveryNotRetryable, "DeliveryNotRetryable", "urn:pubnio:problem:delivery-not-retryable", 409, {}, {}>;
|
|
3349
3456
|
declare class DeliveryNotRetryable extends DeliveryNotRetryable_base {
|
|
3350
3457
|
}
|
|
@@ -3747,6 +3854,27 @@ declare const InboxUnsupportedContent_base: HttpApiError.ProblemClass<InboxUnsup
|
|
|
3747
3854
|
}, {}>;
|
|
3748
3855
|
declare class InboxUnsupportedContent extends InboxUnsupportedContent_base {
|
|
3749
3856
|
}
|
|
3857
|
+
declare const InboxUnavailable_base: HttpApiError.ProblemClass<InboxUnavailable, "InboxUnavailable", "urn:pubnio:problem:inbox-unavailable", 409, {
|
|
3858
|
+
readonly reason: Schema.Literals<readonly [
|
|
3859
|
+
"provider_subscription_limit",
|
|
3860
|
+
"missing_scopes",
|
|
3861
|
+
"webhook_invalid",
|
|
3862
|
+
"subscription_pending",
|
|
3863
|
+
"plan_required",
|
|
3864
|
+
"insufficient_credit",
|
|
3865
|
+
"spend_cap_reached"
|
|
3866
|
+
]>;
|
|
3867
|
+
readonly action: Schema.Literals<readonly [
|
|
3868
|
+
"contact_pubnio",
|
|
3869
|
+
"reconnect_account",
|
|
3870
|
+
"wait_for_repair",
|
|
3871
|
+
"upgrade_plan",
|
|
3872
|
+
"add_credit",
|
|
3873
|
+
"raise_spend_cap"
|
|
3874
|
+
]>;
|
|
3875
|
+
}, {}>;
|
|
3876
|
+
declare class InboxUnavailable extends InboxUnavailable_base {
|
|
3877
|
+
}
|
|
3750
3878
|
declare const AdAccountNotReady_base: HttpApiError.ProblemClass<AdAccountNotReady, "AdAccountNotReady", "urn:pubnio:problem:ad-account-not-ready", 409, {
|
|
3751
3879
|
readonly reason: Schema.Literals<readonly [
|
|
3752
3880
|
"unavailable",
|
|
@@ -4032,6 +4160,7 @@ export declare const KnownProblem: Schema.Union<readonly [
|
|
|
4032
4160
|
typeof AttemptChanged,
|
|
4033
4161
|
typeof IdempotencyConflict,
|
|
4034
4162
|
typeof DestinationAlreadySubmitted,
|
|
4163
|
+
typeof PostSubmitted,
|
|
4035
4164
|
typeof DeliveryNotRetryable,
|
|
4036
4165
|
typeof DeliveryNotReconcilable,
|
|
4037
4166
|
typeof DeliveryScheduleLocked,
|
|
@@ -4068,6 +4197,7 @@ export declare const KnownProblem: Schema.Union<readonly [
|
|
|
4068
4197
|
typeof LastOwnerRequired,
|
|
4069
4198
|
typeof InviteExpired,
|
|
4070
4199
|
typeof InviteEmailMismatch,
|
|
4200
|
+
typeof InboxUnavailable,
|
|
4071
4201
|
typeof InboxReplyWindowClosed,
|
|
4072
4202
|
typeof InboxTargetChanged,
|
|
4073
4203
|
typeof InboxSyncInProgress,
|
|
@@ -4094,6 +4224,7 @@ export declare const KnownProblem: Schema.Union<readonly [
|
|
|
4094
4224
|
typeof AdOperationNotRetryable,
|
|
4095
4225
|
typeof AdProviderRejected,
|
|
4096
4226
|
typeof InvalidAdRequest,
|
|
4227
|
+
typeof PlanRequired,
|
|
4097
4228
|
typeof InternalFailure,
|
|
4098
4229
|
typeof WebhookTestRateLimited,
|
|
4099
4230
|
typeof WebhookDeliveryNotReplayable,
|
|
@@ -4311,6 +4442,8 @@ declare const PostIssue: Schema.Struct<{
|
|
|
4311
4442
|
"tiktok_upload_required",
|
|
4312
4443
|
"tiktok_too_many_mentions",
|
|
4313
4444
|
"queue_and_time_conflict",
|
|
4445
|
+
"queue_not_found",
|
|
4446
|
+
"queue_unavailable",
|
|
4314
4447
|
"invalid_field",
|
|
4315
4448
|
"account_ambiguous",
|
|
4316
4449
|
"unsupported_placement",
|
|
@@ -4323,6 +4456,10 @@ declare const PostIssue: Schema.Struct<{
|
|
|
4323
4456
|
Schema.Int
|
|
4324
4457
|
]>>;
|
|
4325
4458
|
readonly message: Schema.String;
|
|
4459
|
+
readonly candidates: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
4460
|
+
readonly accountId: Schema.brand<Schema.String, "AccountId">;
|
|
4461
|
+
readonly name: Schema.String;
|
|
4462
|
+
}>>>;
|
|
4326
4463
|
}>;
|
|
4327
4464
|
type PostIssue = typeof PostIssue.Type;
|
|
4328
4465
|
export declare const FacebookFeedSettings: Schema.Struct<{
|
|
@@ -4779,6 +4916,16 @@ export declare const PublishTarget: Schema.Union<readonly [
|
|
|
4779
4916
|
}>,
|
|
4780
4917
|
Schema.Struct<{
|
|
4781
4918
|
readonly settings: Schema.optionalKey<Schema.Struct<{
|
|
4919
|
+
readonly poll: Schema.optionalKey<Schema.Struct<{
|
|
4920
|
+
readonly question: Schema.String;
|
|
4921
|
+
readonly options: Schema.$Array<Schema.String>;
|
|
4922
|
+
readonly duration: Schema.Literals<readonly [
|
|
4923
|
+
"ONE_DAY",
|
|
4924
|
+
"THREE_DAYS",
|
|
4925
|
+
"SEVEN_DAYS",
|
|
4926
|
+
"FOURTEEN_DAYS"
|
|
4927
|
+
]>;
|
|
4928
|
+
}>>;
|
|
4782
4929
|
readonly firstComment: Schema.optionalKey<Schema.String>;
|
|
4783
4930
|
readonly thread: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
4784
4931
|
readonly visibility: Schema.optionalKey<Schema.Literals<readonly [
|
|
@@ -4831,6 +4978,19 @@ export declare const PublishTarget: Schema.Union<readonly [
|
|
|
4831
4978
|
}>,
|
|
4832
4979
|
Schema.Struct<{
|
|
4833
4980
|
readonly settings: Schema.optionalKey<Schema.Struct<{
|
|
4981
|
+
readonly poll: Schema.optionalKey<Schema.Struct<{
|
|
4982
|
+
readonly options: Schema.$Array<Schema.String>;
|
|
4983
|
+
readonly durationMinutes: Schema.Number;
|
|
4984
|
+
}>>;
|
|
4985
|
+
readonly replySettings: Schema.optionalKey<Schema.Literals<readonly [
|
|
4986
|
+
"following",
|
|
4987
|
+
"mentionedUsers",
|
|
4988
|
+
"subscribers",
|
|
4989
|
+
"verified"
|
|
4990
|
+
]>>;
|
|
4991
|
+
readonly quotePostId: Schema.optionalKey<Schema.String>;
|
|
4992
|
+
readonly mediaTaggedUserIds: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
4993
|
+
readonly placeId: Schema.optionalKey<Schema.String>;
|
|
4834
4994
|
readonly firstComment: Schema.optionalKey<Schema.String>;
|
|
4835
4995
|
readonly thread: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
4836
4996
|
readonly article: Schema.optionalKey<Schema.Struct<{
|
|
@@ -4865,6 +5025,7 @@ export declare const PublishTarget: Schema.Union<readonly [
|
|
|
4865
5025
|
"unlisted",
|
|
4866
5026
|
"private"
|
|
4867
5027
|
]>;
|
|
5028
|
+
readonly firstComment: Schema.optionalKey<Schema.String>;
|
|
4868
5029
|
readonly tags: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
4869
5030
|
readonly categoryId: Schema.optionalKey<Schema.String>;
|
|
4870
5031
|
readonly madeForKids: Schema.optionalKey<Schema.Boolean>;
|
|
@@ -5043,7 +5204,28 @@ export declare const PublishTarget: Schema.Union<readonly [
|
|
|
5043
5204
|
readonly placement: Schema.Literal<"feed">;
|
|
5044
5205
|
}>,
|
|
5045
5206
|
Schema.Struct<{
|
|
5046
|
-
readonly settings: Schema.optionalKey<Schema.Struct<{
|
|
5207
|
+
readonly settings: Schema.optionalKey<Schema.Struct<{
|
|
5208
|
+
readonly topicType: Schema.optionalKey<Schema.Literals<readonly [
|
|
5209
|
+
"standard",
|
|
5210
|
+
"event",
|
|
5211
|
+
"offer"
|
|
5212
|
+
]>>;
|
|
5213
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
5214
|
+
readonly startsAt: Schema.optionalKey<Schema.String>;
|
|
5215
|
+
readonly endsAt: Schema.optionalKey<Schema.String>;
|
|
5216
|
+
readonly couponCode: Schema.optionalKey<Schema.String>;
|
|
5217
|
+
readonly redeemUrl: Schema.optionalKey<Schema.String>;
|
|
5218
|
+
readonly terms: Schema.optionalKey<Schema.String>;
|
|
5219
|
+
readonly callToAction: Schema.optionalKey<Schema.Literals<readonly [
|
|
5220
|
+
"book",
|
|
5221
|
+
"order",
|
|
5222
|
+
"shop",
|
|
5223
|
+
"learn_more",
|
|
5224
|
+
"sign_up",
|
|
5225
|
+
"call"
|
|
5226
|
+
]>>;
|
|
5227
|
+
readonly callToActionUrl: Schema.optionalKey<Schema.String>;
|
|
5228
|
+
}>>;
|
|
5047
5229
|
readonly text: Schema.optionalKey<Schema.String>;
|
|
5048
5230
|
readonly media: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [
|
|
5049
5231
|
Schema.Struct<{
|
|
@@ -5065,7 +5247,17 @@ export declare const PublishTarget: Schema.Union<readonly [
|
|
|
5065
5247
|
]>;
|
|
5066
5248
|
export type PublishTarget = typeof PublishTarget.Type;
|
|
5067
5249
|
export declare const CreatePost: Schema.Struct<{
|
|
5068
|
-
readonly
|
|
5250
|
+
readonly media: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [
|
|
5251
|
+
Schema.Struct<{
|
|
5252
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
5253
|
+
}>,
|
|
5254
|
+
Schema.Struct<{
|
|
5255
|
+
readonly url: Schema.String;
|
|
5256
|
+
}>
|
|
5257
|
+
]>>>;
|
|
5258
|
+
readonly scheduledAt: Schema.optionalKey<Schema.String>;
|
|
5259
|
+
readonly publishNow: Schema.optionalKey<Schema.Boolean>;
|
|
5260
|
+
readonly isDraft: Schema.optionalKey<Schema.Boolean>;
|
|
5069
5261
|
readonly platforms: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly [
|
|
5070
5262
|
"bluesky",
|
|
5071
5263
|
"facebook",
|
|
@@ -5120,7 +5312,7 @@ export declare const CreatePost: Schema.Struct<{
|
|
|
5120
5312
|
Schema.Null
|
|
5121
5313
|
]>>;
|
|
5122
5314
|
readonly queueId: Schema.optionalKey<Schema.String>;
|
|
5123
|
-
readonly settings: Schema.optionalKey<Schema.Union<readonly [
|
|
5315
|
+
readonly settings: Schema.optionalKey<Schema.middlewareDecoding<Schema.Union<readonly [
|
|
5124
5316
|
Schema.Struct<{
|
|
5125
5317
|
readonly firstComment: Schema.optionalKey<Schema.String>;
|
|
5126
5318
|
readonly thread: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
@@ -5229,6 +5421,16 @@ export declare const CreatePost: Schema.Struct<{
|
|
|
5229
5421
|
readonly isAiGenerated: Schema.optionalKey<Schema.Boolean>;
|
|
5230
5422
|
}>,
|
|
5231
5423
|
Schema.Struct<{
|
|
5424
|
+
readonly poll: Schema.optionalKey<Schema.Struct<{
|
|
5425
|
+
readonly question: Schema.String;
|
|
5426
|
+
readonly options: Schema.$Array<Schema.String>;
|
|
5427
|
+
readonly duration: Schema.Literals<readonly [
|
|
5428
|
+
"ONE_DAY",
|
|
5429
|
+
"THREE_DAYS",
|
|
5430
|
+
"SEVEN_DAYS",
|
|
5431
|
+
"FOURTEEN_DAYS"
|
|
5432
|
+
]>;
|
|
5433
|
+
}>>;
|
|
5232
5434
|
readonly firstComment: Schema.optionalKey<Schema.String>;
|
|
5233
5435
|
readonly thread: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
5234
5436
|
readonly visibility: Schema.optionalKey<Schema.Literals<readonly [
|
|
@@ -5266,6 +5468,19 @@ export declare const CreatePost: Schema.Struct<{
|
|
|
5266
5468
|
readonly thread: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
5267
5469
|
}>,
|
|
5268
5470
|
Schema.Struct<{
|
|
5471
|
+
readonly poll: Schema.optionalKey<Schema.Struct<{
|
|
5472
|
+
readonly options: Schema.$Array<Schema.String>;
|
|
5473
|
+
readonly durationMinutes: Schema.Number;
|
|
5474
|
+
}>>;
|
|
5475
|
+
readonly replySettings: Schema.optionalKey<Schema.Literals<readonly [
|
|
5476
|
+
"following",
|
|
5477
|
+
"mentionedUsers",
|
|
5478
|
+
"subscribers",
|
|
5479
|
+
"verified"
|
|
5480
|
+
]>>;
|
|
5481
|
+
readonly quotePostId: Schema.optionalKey<Schema.String>;
|
|
5482
|
+
readonly mediaTaggedUserIds: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
5483
|
+
readonly placeId: Schema.optionalKey<Schema.String>;
|
|
5269
5484
|
readonly firstComment: Schema.optionalKey<Schema.String>;
|
|
5270
5485
|
readonly thread: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
5271
5486
|
readonly article: Schema.optionalKey<Schema.Struct<{
|
|
@@ -5281,6 +5496,7 @@ export declare const CreatePost: Schema.Struct<{
|
|
|
5281
5496
|
"unlisted",
|
|
5282
5497
|
"private"
|
|
5283
5498
|
]>;
|
|
5499
|
+
readonly firstComment: Schema.optionalKey<Schema.String>;
|
|
5284
5500
|
readonly tags: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
5285
5501
|
readonly categoryId: Schema.optionalKey<Schema.String>;
|
|
5286
5502
|
readonly madeForKids: Schema.optionalKey<Schema.Boolean>;
|
|
@@ -5341,9 +5557,359 @@ export declare const CreatePost: Schema.Struct<{
|
|
|
5341
5557
|
readonly nativeDraft: Schema.optionalKey<Schema.Boolean>;
|
|
5342
5558
|
}>
|
|
5343
5559
|
]>,
|
|
5344
|
-
Schema.Struct<{
|
|
5560
|
+
Schema.Struct<{
|
|
5561
|
+
readonly topicType: Schema.optionalKey<Schema.Literals<readonly [
|
|
5562
|
+
"standard",
|
|
5563
|
+
"event",
|
|
5564
|
+
"offer"
|
|
5565
|
+
]>>;
|
|
5566
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
5567
|
+
readonly startsAt: Schema.optionalKey<Schema.String>;
|
|
5568
|
+
readonly endsAt: Schema.optionalKey<Schema.String>;
|
|
5569
|
+
readonly couponCode: Schema.optionalKey<Schema.String>;
|
|
5570
|
+
readonly redeemUrl: Schema.optionalKey<Schema.String>;
|
|
5571
|
+
readonly terms: Schema.optionalKey<Schema.String>;
|
|
5572
|
+
readonly callToAction: Schema.optionalKey<Schema.Literals<readonly [
|
|
5573
|
+
"book",
|
|
5574
|
+
"order",
|
|
5575
|
+
"shop",
|
|
5576
|
+
"learn_more",
|
|
5577
|
+
"sign_up",
|
|
5578
|
+
"call"
|
|
5579
|
+
]>>;
|
|
5580
|
+
readonly callToActionUrl: Schema.optionalKey<Schema.String>;
|
|
5581
|
+
}>
|
|
5582
|
+
]>, never>>;
|
|
5583
|
+
}>>>;
|
|
5584
|
+
readonly text: Schema.optionalKey<Schema.Trim>;
|
|
5585
|
+
}>;
|
|
5586
|
+
export type CreatePost = typeof CreatePost.Type;
|
|
5587
|
+
export declare const UpdatePost: Schema.Struct<{
|
|
5588
|
+
readonly targets: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
5589
|
+
readonly accountId: Schema.brand<Schema.String, "AccountId">;
|
|
5590
|
+
readonly provider: Schema.optionalKey<Schema.Literals<readonly [
|
|
5591
|
+
"bluesky",
|
|
5592
|
+
"facebook",
|
|
5593
|
+
"instagram",
|
|
5594
|
+
"linkedin",
|
|
5595
|
+
"pinterest",
|
|
5596
|
+
"reddit",
|
|
5597
|
+
"snapchat",
|
|
5598
|
+
"tiktok",
|
|
5599
|
+
"threads",
|
|
5600
|
+
"x",
|
|
5601
|
+
"youtube",
|
|
5602
|
+
"google_business"
|
|
5603
|
+
]>>;
|
|
5604
|
+
readonly placement: Schema.optionalKey<Schema.Literals<readonly [
|
|
5605
|
+
"feed",
|
|
5606
|
+
"reel",
|
|
5607
|
+
"story",
|
|
5608
|
+
"carousel",
|
|
5609
|
+
"video",
|
|
5610
|
+
"pin"
|
|
5345
5611
|
]>>;
|
|
5612
|
+
readonly text: Schema.optionalKey<Schema.String>;
|
|
5613
|
+
readonly thread: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
5614
|
+
readonly media: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [
|
|
5615
|
+
Schema.Struct<{
|
|
5616
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
5617
|
+
}>,
|
|
5618
|
+
Schema.Struct<{
|
|
5619
|
+
readonly url: Schema.String;
|
|
5620
|
+
}>
|
|
5621
|
+
]>>>;
|
|
5622
|
+
readonly scheduledAt: Schema.optionalKey<Schema.Union<readonly [
|
|
5623
|
+
Schema.String,
|
|
5624
|
+
Schema.Null
|
|
5625
|
+
]>>;
|
|
5626
|
+
readonly queueId: Schema.optionalKey<Schema.String>;
|
|
5627
|
+
readonly settings: Schema.optionalKey<Schema.middlewareDecoding<Schema.Union<readonly [
|
|
5628
|
+
Schema.Struct<{
|
|
5629
|
+
readonly firstComment: Schema.optionalKey<Schema.String>;
|
|
5630
|
+
readonly thread: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
5631
|
+
readonly altText: Schema.optionalKey<Schema.String>;
|
|
5632
|
+
}>,
|
|
5633
|
+
Schema.Struct<{
|
|
5634
|
+
readonly link: Schema.optionalKey<Schema.String>;
|
|
5635
|
+
readonly textFormatPresetId: Schema.optionalKey<Schema.String>;
|
|
5636
|
+
readonly albumId: Schema.optionalKey<Schema.String>;
|
|
5637
|
+
readonly firstComment: Schema.optionalKey<Schema.String>;
|
|
5638
|
+
readonly thread: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
5639
|
+
readonly nativeDraft: Schema.optionalKey<Schema.Boolean>;
|
|
5640
|
+
readonly countries: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
5641
|
+
}>,
|
|
5642
|
+
Schema.Struct<{
|
|
5643
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
5644
|
+
readonly isAiGenerated: Schema.optionalKey<Schema.Boolean>;
|
|
5645
|
+
readonly collaboratorPageIds: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
5646
|
+
readonly firstComment: Schema.optionalKey<Schema.String>;
|
|
5647
|
+
readonly thread: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
5648
|
+
readonly nativeDraft: Schema.optionalKey<Schema.Boolean>;
|
|
5649
|
+
readonly countries: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
5650
|
+
}>,
|
|
5651
|
+
Schema.Struct<{
|
|
5652
|
+
readonly isAiGenerated: Schema.optionalKey<Schema.Boolean>;
|
|
5653
|
+
}>,
|
|
5654
|
+
Schema.Struct<{
|
|
5655
|
+
readonly altText: Schema.optionalKey<Schema.String>;
|
|
5656
|
+
readonly userTags: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
5657
|
+
readonly username: Schema.String;
|
|
5658
|
+
readonly x: Schema.optionalKey<Schema.Number>;
|
|
5659
|
+
readonly y: Schema.optionalKey<Schema.Number>;
|
|
5660
|
+
}>>>;
|
|
5661
|
+
readonly firstComment: Schema.optionalKey<Schema.String>;
|
|
5662
|
+
readonly commentsEnabled: Schema.optionalKey<Schema.Boolean>;
|
|
5663
|
+
readonly collaborators: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
5664
|
+
readonly locationId: Schema.optionalKey<Schema.String>;
|
|
5665
|
+
readonly isPaidPartnership: Schema.optionalKey<Schema.Boolean>;
|
|
5666
|
+
readonly brandedContentSponsors: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [
|
|
5667
|
+
Schema.String,
|
|
5668
|
+
Schema.String
|
|
5669
|
+
]>>>;
|
|
5670
|
+
readonly isAiGenerated: Schema.optionalKey<Schema.Boolean>;
|
|
5671
|
+
}>,
|
|
5672
|
+
Schema.Struct<{
|
|
5673
|
+
readonly shareToFeed: Schema.optionalKey<Schema.Boolean>;
|
|
5674
|
+
readonly muteAudio: Schema.optionalKey<Schema.Boolean>;
|
|
5675
|
+
readonly audioConfiguration: Schema.optionalKey<Schema.Struct<{
|
|
5676
|
+
readonly audioId: Schema.String;
|
|
5677
|
+
readonly audioVolume: Schema.optionalKey<Schema.Int>;
|
|
5678
|
+
readonly videoVolume: Schema.optionalKey<Schema.Int>;
|
|
5679
|
+
}>>;
|
|
5680
|
+
readonly coverUrl: Schema.optionalKey<Schema.String>;
|
|
5681
|
+
readonly thumbOffset: Schema.optionalKey<Schema.Int>;
|
|
5682
|
+
readonly audioName: Schema.optionalKey<Schema.String>;
|
|
5683
|
+
readonly trial: Schema.optionalKey<Schema.Struct<{
|
|
5684
|
+
readonly graduationStrategy: Schema.Literals<readonly [
|
|
5685
|
+
"MANUAL",
|
|
5686
|
+
"SS_PERFORMANCE"
|
|
5687
|
+
]>;
|
|
5688
|
+
}>>;
|
|
5689
|
+
readonly userTags: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
5690
|
+
readonly username: Schema.String;
|
|
5691
|
+
readonly x: Schema.optionalKey<Schema.Number>;
|
|
5692
|
+
readonly y: Schema.optionalKey<Schema.Number>;
|
|
5693
|
+
}>>>;
|
|
5694
|
+
readonly firstComment: Schema.optionalKey<Schema.String>;
|
|
5695
|
+
readonly commentsEnabled: Schema.optionalKey<Schema.Boolean>;
|
|
5696
|
+
readonly collaborators: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
5697
|
+
readonly locationId: Schema.optionalKey<Schema.String>;
|
|
5698
|
+
readonly isPaidPartnership: Schema.optionalKey<Schema.Boolean>;
|
|
5699
|
+
readonly brandedContentSponsors: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [
|
|
5700
|
+
Schema.String,
|
|
5701
|
+
Schema.String
|
|
5702
|
+
]>>>;
|
|
5703
|
+
readonly isAiGenerated: Schema.optionalKey<Schema.Boolean>;
|
|
5704
|
+
}>,
|
|
5705
|
+
Schema.Struct<{
|
|
5706
|
+
readonly muteAudio: Schema.optionalKey<Schema.Boolean>;
|
|
5707
|
+
readonly slides: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
5708
|
+
readonly altText: Schema.optionalKey<Schema.String>;
|
|
5709
|
+
readonly userTags: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
5710
|
+
readonly username: Schema.String;
|
|
5711
|
+
readonly x: Schema.optionalKey<Schema.Number>;
|
|
5712
|
+
readonly y: Schema.optionalKey<Schema.Number>;
|
|
5713
|
+
}>>>;
|
|
5714
|
+
}>>>;
|
|
5715
|
+
readonly firstComment: Schema.optionalKey<Schema.String>;
|
|
5716
|
+
readonly commentsEnabled: Schema.optionalKey<Schema.Boolean>;
|
|
5717
|
+
readonly collaborators: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
5718
|
+
readonly locationId: Schema.optionalKey<Schema.String>;
|
|
5719
|
+
readonly isPaidPartnership: Schema.optionalKey<Schema.Boolean>;
|
|
5720
|
+
readonly brandedContentSponsors: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [
|
|
5721
|
+
Schema.String,
|
|
5722
|
+
Schema.String
|
|
5723
|
+
]>>>;
|
|
5724
|
+
readonly isAiGenerated: Schema.optionalKey<Schema.Boolean>;
|
|
5725
|
+
}>,
|
|
5726
|
+
Schema.Struct<{
|
|
5727
|
+
readonly muteAudio: Schema.optionalKey<Schema.Boolean>;
|
|
5728
|
+
readonly userTags: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
5729
|
+
readonly username: Schema.String;
|
|
5730
|
+
readonly x: Schema.optionalKey<Schema.Number>;
|
|
5731
|
+
readonly y: Schema.optionalKey<Schema.Number>;
|
|
5732
|
+
}>>>;
|
|
5733
|
+
readonly isAiGenerated: Schema.optionalKey<Schema.Boolean>;
|
|
5734
|
+
}>,
|
|
5735
|
+
Schema.Struct<{
|
|
5736
|
+
readonly poll: Schema.optionalKey<Schema.Struct<{
|
|
5737
|
+
readonly question: Schema.String;
|
|
5738
|
+
readonly options: Schema.$Array<Schema.String>;
|
|
5739
|
+
readonly duration: Schema.Literals<readonly [
|
|
5740
|
+
"ONE_DAY",
|
|
5741
|
+
"THREE_DAYS",
|
|
5742
|
+
"SEVEN_DAYS",
|
|
5743
|
+
"FOURTEEN_DAYS"
|
|
5744
|
+
]>;
|
|
5745
|
+
}>>;
|
|
5746
|
+
readonly firstComment: Schema.optionalKey<Schema.String>;
|
|
5747
|
+
readonly thread: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
5748
|
+
readonly visibility: Schema.optionalKey<Schema.Literals<readonly [
|
|
5749
|
+
"PUBLIC",
|
|
5750
|
+
"CONNECTIONS"
|
|
5751
|
+
]>>;
|
|
5752
|
+
readonly altText: Schema.optionalKey<Schema.String>;
|
|
5753
|
+
readonly documentTitle: Schema.optionalKey<Schema.Trim>;
|
|
5754
|
+
}>,
|
|
5755
|
+
Schema.Struct<{
|
|
5756
|
+
readonly subreddit: Schema.String;
|
|
5757
|
+
readonly title: Schema.String;
|
|
5758
|
+
readonly link: Schema.optionalKey<Schema.String>;
|
|
5759
|
+
readonly flairId: Schema.optionalKey<Schema.String>;
|
|
5760
|
+
readonly flairText: Schema.optionalKey<Schema.String>;
|
|
5761
|
+
readonly nsfw: Schema.optionalKey<Schema.Boolean>;
|
|
5762
|
+
readonly spoiler: Schema.optionalKey<Schema.Boolean>;
|
|
5763
|
+
readonly sendReplies: Schema.optionalKey<Schema.Boolean>;
|
|
5764
|
+
readonly thumbnailMediaId: Schema.optionalKey<Schema.brand<Schema.String, "MediaId">>;
|
|
5765
|
+
readonly firstComment: Schema.optionalKey<Schema.String>;
|
|
5766
|
+
}>,
|
|
5767
|
+
Schema.Struct<{
|
|
5768
|
+
readonly contentType: Schema.optionalKey<Schema.Literals<readonly [
|
|
5769
|
+
"story",
|
|
5770
|
+
"saved_story",
|
|
5771
|
+
"spotlight"
|
|
5772
|
+
]>>;
|
|
5773
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
5774
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
5775
|
+
readonly link: Schema.optionalKey<Schema.String>;
|
|
5776
|
+
readonly locale: Schema.optionalKey<Schema.String>;
|
|
5777
|
+
}>,
|
|
5778
|
+
Schema.Struct<{
|
|
5779
|
+
readonly firstComment: Schema.optionalKey<Schema.String>;
|
|
5780
|
+
readonly thread: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
5781
|
+
}>,
|
|
5782
|
+
Schema.Struct<{
|
|
5783
|
+
readonly poll: Schema.optionalKey<Schema.Struct<{
|
|
5784
|
+
readonly options: Schema.$Array<Schema.String>;
|
|
5785
|
+
readonly durationMinutes: Schema.Number;
|
|
5786
|
+
}>>;
|
|
5787
|
+
readonly replySettings: Schema.optionalKey<Schema.Literals<readonly [
|
|
5788
|
+
"following",
|
|
5789
|
+
"mentionedUsers",
|
|
5790
|
+
"subscribers",
|
|
5791
|
+
"verified"
|
|
5792
|
+
]>>;
|
|
5793
|
+
readonly quotePostId: Schema.optionalKey<Schema.String>;
|
|
5794
|
+
readonly mediaTaggedUserIds: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
5795
|
+
readonly placeId: Schema.optionalKey<Schema.String>;
|
|
5796
|
+
readonly firstComment: Schema.optionalKey<Schema.String>;
|
|
5797
|
+
readonly thread: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
5798
|
+
readonly article: Schema.optionalKey<Schema.Struct<{
|
|
5799
|
+
readonly title: Schema.String;
|
|
5800
|
+
readonly content: Schema.String;
|
|
5801
|
+
}>>;
|
|
5802
|
+
}>,
|
|
5803
|
+
Schema.Struct<{
|
|
5804
|
+
readonly title: Schema.String;
|
|
5805
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
5806
|
+
readonly privacyStatus: Schema.Literals<readonly [
|
|
5807
|
+
"public",
|
|
5808
|
+
"unlisted",
|
|
5809
|
+
"private"
|
|
5810
|
+
]>;
|
|
5811
|
+
readonly firstComment: Schema.optionalKey<Schema.String>;
|
|
5812
|
+
readonly tags: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
5813
|
+
readonly categoryId: Schema.optionalKey<Schema.String>;
|
|
5814
|
+
readonly madeForKids: Schema.optionalKey<Schema.Boolean>;
|
|
5815
|
+
readonly containsSyntheticMedia: Schema.optionalKey<Schema.Boolean>;
|
|
5816
|
+
readonly thumbnailMediaId: Schema.optionalKey<Schema.brand<Schema.String, "MediaId">>;
|
|
5817
|
+
readonly notifySubscribers: Schema.optionalKey<Schema.Boolean>;
|
|
5818
|
+
readonly license: Schema.optionalKey<Schema.Literals<readonly [
|
|
5819
|
+
"youtube",
|
|
5820
|
+
"creativeCommon"
|
|
5821
|
+
]>>;
|
|
5822
|
+
readonly embeddable: Schema.optionalKey<Schema.Boolean>;
|
|
5823
|
+
readonly publicStatsViewable: Schema.optionalKey<Schema.Boolean>;
|
|
5824
|
+
}>,
|
|
5825
|
+
Schema.Struct<{
|
|
5826
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
5827
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
5828
|
+
readonly link: Schema.optionalKey<Schema.String>;
|
|
5829
|
+
readonly altText: Schema.optionalKey<Schema.String>;
|
|
5830
|
+
}>,
|
|
5831
|
+
Schema.Union<readonly [
|
|
5832
|
+
Schema.Struct<{
|
|
5833
|
+
readonly format: Schema.optionalKey<Schema.Literal<"video">>;
|
|
5834
|
+
readonly disableDuet: Schema.optionalKey<Schema.Boolean>;
|
|
5835
|
+
readonly disableStitch: Schema.optionalKey<Schema.Boolean>;
|
|
5836
|
+
readonly privacy: Schema.Literals<readonly [
|
|
5837
|
+
"PUBLIC_TO_EVERYONE",
|
|
5838
|
+
"MUTUAL_FOLLOW_FRIENDS",
|
|
5839
|
+
"FOLLOWER_OF_CREATOR",
|
|
5840
|
+
"SELF_ONLY"
|
|
5841
|
+
]>;
|
|
5842
|
+
readonly commercialDisclosure: Schema.optionalKey<Schema.Literals<readonly [
|
|
5843
|
+
"none",
|
|
5844
|
+
"own_brand",
|
|
5845
|
+
"paid_partnership"
|
|
5846
|
+
]>>;
|
|
5847
|
+
readonly isAiGenerated: Schema.optionalKey<Schema.Boolean>;
|
|
5848
|
+
readonly disableComment: Schema.optionalKey<Schema.Boolean>;
|
|
5849
|
+
readonly nativeDraft: Schema.optionalKey<Schema.Boolean>;
|
|
5850
|
+
}>,
|
|
5851
|
+
Schema.Struct<{
|
|
5852
|
+
readonly format: Schema.Literal<"photo">;
|
|
5853
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
5854
|
+
readonly coverIndex: Schema.optionalKey<Schema.Int>;
|
|
5855
|
+
readonly autoAddMusic: Schema.optionalKey<Schema.Boolean>;
|
|
5856
|
+
readonly privacy: Schema.Literals<readonly [
|
|
5857
|
+
"PUBLIC_TO_EVERYONE",
|
|
5858
|
+
"MUTUAL_FOLLOW_FRIENDS",
|
|
5859
|
+
"FOLLOWER_OF_CREATOR",
|
|
5860
|
+
"SELF_ONLY"
|
|
5861
|
+
]>;
|
|
5862
|
+
readonly commercialDisclosure: Schema.optionalKey<Schema.Literals<readonly [
|
|
5863
|
+
"none",
|
|
5864
|
+
"own_brand",
|
|
5865
|
+
"paid_partnership"
|
|
5866
|
+
]>>;
|
|
5867
|
+
readonly isAiGenerated: Schema.optionalKey<Schema.Boolean>;
|
|
5868
|
+
readonly disableComment: Schema.optionalKey<Schema.Boolean>;
|
|
5869
|
+
readonly nativeDraft: Schema.optionalKey<Schema.Boolean>;
|
|
5870
|
+
}>
|
|
5871
|
+
]>,
|
|
5872
|
+
Schema.Struct<{
|
|
5873
|
+
readonly topicType: Schema.optionalKey<Schema.Literals<readonly [
|
|
5874
|
+
"standard",
|
|
5875
|
+
"event",
|
|
5876
|
+
"offer"
|
|
5877
|
+
]>>;
|
|
5878
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
5879
|
+
readonly startsAt: Schema.optionalKey<Schema.String>;
|
|
5880
|
+
readonly endsAt: Schema.optionalKey<Schema.String>;
|
|
5881
|
+
readonly couponCode: Schema.optionalKey<Schema.String>;
|
|
5882
|
+
readonly redeemUrl: Schema.optionalKey<Schema.String>;
|
|
5883
|
+
readonly terms: Schema.optionalKey<Schema.String>;
|
|
5884
|
+
readonly callToAction: Schema.optionalKey<Schema.Literals<readonly [
|
|
5885
|
+
"book",
|
|
5886
|
+
"order",
|
|
5887
|
+
"shop",
|
|
5888
|
+
"learn_more",
|
|
5889
|
+
"sign_up",
|
|
5890
|
+
"call"
|
|
5891
|
+
]>>;
|
|
5892
|
+
readonly callToActionUrl: Schema.optionalKey<Schema.String>;
|
|
5893
|
+
}>
|
|
5894
|
+
]>, never>>;
|
|
5346
5895
|
}>>>;
|
|
5896
|
+
readonly expectedRevision: Schema.optionalKey<Schema.Int>;
|
|
5897
|
+
readonly platforms: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly [
|
|
5898
|
+
"bluesky",
|
|
5899
|
+
"facebook",
|
|
5900
|
+
"instagram",
|
|
5901
|
+
"linkedin",
|
|
5902
|
+
"pinterest",
|
|
5903
|
+
"reddit",
|
|
5904
|
+
"snapchat",
|
|
5905
|
+
"tiktok",
|
|
5906
|
+
"threads",
|
|
5907
|
+
"x",
|
|
5908
|
+
"youtube",
|
|
5909
|
+
"google_business"
|
|
5910
|
+
]>>>;
|
|
5911
|
+
readonly accounts: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "AccountId">>>;
|
|
5912
|
+
readonly text: Schema.optionalKey<Schema.Trim>;
|
|
5347
5913
|
readonly media: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [
|
|
5348
5914
|
Schema.Struct<{
|
|
5349
5915
|
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
@@ -5352,15 +5918,27 @@ export declare const CreatePost: Schema.Struct<{
|
|
|
5352
5918
|
readonly url: Schema.String;
|
|
5353
5919
|
}>
|
|
5354
5920
|
]>>>;
|
|
5355
|
-
readonly scheduledAt: Schema.optionalKey<Schema.
|
|
5356
|
-
|
|
5357
|
-
|
|
5921
|
+
readonly scheduledAt: Schema.optionalKey<Schema.Union<readonly [
|
|
5922
|
+
Schema.String,
|
|
5923
|
+
Schema.Null
|
|
5924
|
+
]>>;
|
|
5358
5925
|
}>;
|
|
5359
|
-
export type
|
|
5360
|
-
|
|
5361
|
-
|
|
5362
|
-
readonly
|
|
5363
|
-
readonly
|
|
5926
|
+
export type UpdatePost = typeof UpdatePost.Type;
|
|
5927
|
+
/** One post or draft. Drafts have no deliveries yet. */
|
|
5928
|
+
export declare const Post: Schema.Struct<{
|
|
5929
|
+
readonly postId: Schema.brand<Schema.String, "PostId">;
|
|
5930
|
+
readonly isDraft: Schema.Boolean;
|
|
5931
|
+
readonly revision: Schema.Int;
|
|
5932
|
+
readonly text: Schema.Trim;
|
|
5933
|
+
readonly media: Schema.$Array<Schema.Union<readonly [
|
|
5934
|
+
Schema.Struct<{
|
|
5935
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
5936
|
+
}>,
|
|
5937
|
+
Schema.Struct<{
|
|
5938
|
+
readonly url: Schema.String;
|
|
5939
|
+
}>
|
|
5940
|
+
]>>;
|
|
5941
|
+
readonly targets: Schema.$Array<Schema.Union<readonly [
|
|
5364
5942
|
Schema.Struct<{
|
|
5365
5943
|
readonly settings: Schema.optionalKey<Schema.Struct<{
|
|
5366
5944
|
readonly firstComment: Schema.optionalKey<Schema.String>;
|
|
@@ -5622,6 +6200,16 @@ export declare const UpdatePost: Schema.Struct<{
|
|
|
5622
6200
|
}>,
|
|
5623
6201
|
Schema.Struct<{
|
|
5624
6202
|
readonly settings: Schema.optionalKey<Schema.Struct<{
|
|
6203
|
+
readonly poll: Schema.optionalKey<Schema.Struct<{
|
|
6204
|
+
readonly question: Schema.String;
|
|
6205
|
+
readonly options: Schema.$Array<Schema.String>;
|
|
6206
|
+
readonly duration: Schema.Literals<readonly [
|
|
6207
|
+
"ONE_DAY",
|
|
6208
|
+
"THREE_DAYS",
|
|
6209
|
+
"SEVEN_DAYS",
|
|
6210
|
+
"FOURTEEN_DAYS"
|
|
6211
|
+
]>;
|
|
6212
|
+
}>>;
|
|
5625
6213
|
readonly firstComment: Schema.optionalKey<Schema.String>;
|
|
5626
6214
|
readonly thread: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
5627
6215
|
readonly visibility: Schema.optionalKey<Schema.Literals<readonly [
|
|
@@ -5674,6 +6262,19 @@ export declare const UpdatePost: Schema.Struct<{
|
|
|
5674
6262
|
}>,
|
|
5675
6263
|
Schema.Struct<{
|
|
5676
6264
|
readonly settings: Schema.optionalKey<Schema.Struct<{
|
|
6265
|
+
readonly poll: Schema.optionalKey<Schema.Struct<{
|
|
6266
|
+
readonly options: Schema.$Array<Schema.String>;
|
|
6267
|
+
readonly durationMinutes: Schema.Number;
|
|
6268
|
+
}>>;
|
|
6269
|
+
readonly replySettings: Schema.optionalKey<Schema.Literals<readonly [
|
|
6270
|
+
"following",
|
|
6271
|
+
"mentionedUsers",
|
|
6272
|
+
"subscribers",
|
|
6273
|
+
"verified"
|
|
6274
|
+
]>>;
|
|
6275
|
+
readonly quotePostId: Schema.optionalKey<Schema.String>;
|
|
6276
|
+
readonly mediaTaggedUserIds: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
6277
|
+
readonly placeId: Schema.optionalKey<Schema.String>;
|
|
5677
6278
|
readonly firstComment: Schema.optionalKey<Schema.String>;
|
|
5678
6279
|
readonly thread: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
5679
6280
|
readonly article: Schema.optionalKey<Schema.Struct<{
|
|
@@ -5708,6 +6309,7 @@ export declare const UpdatePost: Schema.Struct<{
|
|
|
5708
6309
|
"unlisted",
|
|
5709
6310
|
"private"
|
|
5710
6311
|
]>;
|
|
6312
|
+
readonly firstComment: Schema.optionalKey<Schema.String>;
|
|
5711
6313
|
readonly tags: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
5712
6314
|
readonly categoryId: Schema.optionalKey<Schema.String>;
|
|
5713
6315
|
readonly madeForKids: Schema.optionalKey<Schema.Boolean>;
|
|
@@ -5886,7 +6488,28 @@ export declare const UpdatePost: Schema.Struct<{
|
|
|
5886
6488
|
readonly placement: Schema.Literal<"feed">;
|
|
5887
6489
|
}>,
|
|
5888
6490
|
Schema.Struct<{
|
|
5889
|
-
readonly settings: Schema.optionalKey<Schema.Struct<{
|
|
6491
|
+
readonly settings: Schema.optionalKey<Schema.Struct<{
|
|
6492
|
+
readonly topicType: Schema.optionalKey<Schema.Literals<readonly [
|
|
6493
|
+
"standard",
|
|
6494
|
+
"event",
|
|
6495
|
+
"offer"
|
|
6496
|
+
]>>;
|
|
6497
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
6498
|
+
readonly startsAt: Schema.optionalKey<Schema.String>;
|
|
6499
|
+
readonly endsAt: Schema.optionalKey<Schema.String>;
|
|
6500
|
+
readonly couponCode: Schema.optionalKey<Schema.String>;
|
|
6501
|
+
readonly redeemUrl: Schema.optionalKey<Schema.String>;
|
|
6502
|
+
readonly terms: Schema.optionalKey<Schema.String>;
|
|
6503
|
+
readonly callToAction: Schema.optionalKey<Schema.Literals<readonly [
|
|
6504
|
+
"book",
|
|
6505
|
+
"order",
|
|
6506
|
+
"shop",
|
|
6507
|
+
"learn_more",
|
|
6508
|
+
"sign_up",
|
|
6509
|
+
"call"
|
|
6510
|
+
]>>;
|
|
6511
|
+
readonly callToActionUrl: Schema.optionalKey<Schema.String>;
|
|
6512
|
+
}>>;
|
|
5890
6513
|
readonly text: Schema.optionalKey<Schema.String>;
|
|
5891
6514
|
readonly media: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [
|
|
5892
6515
|
Schema.Struct<{
|
|
@@ -5905,19 +6528,104 @@ export declare const UpdatePost: Schema.Struct<{
|
|
|
5905
6528
|
readonly provider: Schema.Literal<"google_business">;
|
|
5906
6529
|
readonly placement: Schema.Literal<"feed">;
|
|
5907
6530
|
}>
|
|
5908
|
-
]
|
|
5909
|
-
readonly
|
|
5910
|
-
|
|
5911
|
-
|
|
5912
|
-
|
|
5913
|
-
|
|
5914
|
-
|
|
5915
|
-
|
|
5916
|
-
|
|
6531
|
+
]>>;
|
|
6532
|
+
readonly scheduledAt: Schema.NullOr<Schema.String>;
|
|
6533
|
+
readonly deliveries: Schema.$Array<Schema.Struct<{
|
|
6534
|
+
readonly status: Schema.Literals<readonly [
|
|
6535
|
+
"scheduled",
|
|
6536
|
+
"queued",
|
|
6537
|
+
"submitting",
|
|
6538
|
+
"confirming",
|
|
6539
|
+
"published",
|
|
6540
|
+
"provider_draft",
|
|
6541
|
+
"failed",
|
|
6542
|
+
"unresolved",
|
|
6543
|
+
"cancelled"
|
|
6544
|
+
]>;
|
|
6545
|
+
readonly providerRef: Schema.optionalKey<Schema.Struct<{
|
|
6546
|
+
readonly id: Schema.String;
|
|
6547
|
+
readonly kind: Schema.String;
|
|
6548
|
+
}>>;
|
|
6549
|
+
readonly url: Schema.optionalKey<Schema.String>;
|
|
6550
|
+
readonly issue: Schema.optionalKey<Schema.Literals<readonly [
|
|
6551
|
+
"authorization_changed",
|
|
6552
|
+
"account_not_ready",
|
|
6553
|
+
"credential_unavailable",
|
|
6554
|
+
"media_preparation_failed",
|
|
6555
|
+
"video_compression_failed",
|
|
6556
|
+
"audio_unavailable",
|
|
6557
|
+
"provider_rejected",
|
|
6558
|
+
"tiktok_settings_unavailable",
|
|
6559
|
+
"tiktok_settings_not_allowed",
|
|
6560
|
+
"tiktok_processing_failed",
|
|
6561
|
+
"submission_uncertain",
|
|
6562
|
+
"confirmation_unavailable",
|
|
6563
|
+
"billing_inactive",
|
|
6564
|
+
"spend_cap_reached",
|
|
6565
|
+
"insufficient_credit"
|
|
6566
|
+
]>>;
|
|
6567
|
+
readonly canRetry: Schema.Boolean;
|
|
6568
|
+
readonly canReconcile: Schema.Boolean;
|
|
6569
|
+
readonly nextAction: Schema.optionalKey<Schema.String>;
|
|
6570
|
+
readonly revision: Schema.Int;
|
|
6571
|
+
readonly provider: Schema.Literals<readonly [
|
|
6572
|
+
"bluesky",
|
|
6573
|
+
"facebook",
|
|
6574
|
+
"instagram",
|
|
6575
|
+
"linkedin",
|
|
6576
|
+
"pinterest",
|
|
6577
|
+
"reddit",
|
|
6578
|
+
"snapchat",
|
|
6579
|
+
"tiktok",
|
|
6580
|
+
"threads",
|
|
6581
|
+
"x",
|
|
6582
|
+
"youtube",
|
|
6583
|
+
"google_business"
|
|
6584
|
+
]>;
|
|
6585
|
+
readonly placement: Schema.Literals<readonly [
|
|
6586
|
+
"feed",
|
|
6587
|
+
"reel",
|
|
6588
|
+
"story",
|
|
6589
|
+
"carousel",
|
|
6590
|
+
"video",
|
|
6591
|
+
"pin"
|
|
6592
|
+
]>;
|
|
6593
|
+
readonly queueId: Schema.optionalKey<Schema.String>;
|
|
6594
|
+
readonly slotId: Schema.optionalKey<Schema.String>;
|
|
6595
|
+
readonly assignmentId: Schema.optionalKey<Schema.String>;
|
|
6596
|
+
readonly occurrenceDate: Schema.optionalKey<Schema.String>;
|
|
6597
|
+
readonly localDate: Schema.optionalKey<Schema.String>;
|
|
6598
|
+
readonly localTime: Schema.optionalKey<Schema.String>;
|
|
6599
|
+
readonly timezone: Schema.optionalKey<Schema.String>;
|
|
6600
|
+
readonly targetId: Schema.brand<Schema.String, "TargetId">;
|
|
6601
|
+
readonly attemptId: Schema.brand<Schema.String, "AttemptId">;
|
|
6602
|
+
readonly accountId: Schema.brand<Schema.String, "AccountId">;
|
|
6603
|
+
readonly scheduledAt: Schema.optionalKey<Schema.String>;
|
|
6604
|
+
}>>;
|
|
6605
|
+
readonly status: Schema.Union<readonly [
|
|
6606
|
+
Schema.Literal<"draft">,
|
|
6607
|
+
Schema.Literals<readonly [
|
|
6608
|
+
"scheduled",
|
|
6609
|
+
"queued",
|
|
6610
|
+
"submitting",
|
|
6611
|
+
"confirming",
|
|
6612
|
+
"published",
|
|
6613
|
+
"provider_draft",
|
|
6614
|
+
"failed",
|
|
6615
|
+
"unresolved",
|
|
6616
|
+
"cancelled"
|
|
6617
|
+
]>
|
|
6618
|
+
]>;
|
|
6619
|
+
readonly createdAt: Schema.String;
|
|
6620
|
+
readonly updatedAt: Schema.String;
|
|
5917
6621
|
}>;
|
|
5918
|
-
export type
|
|
5919
|
-
/**
|
|
5920
|
-
|
|
6622
|
+
export type Post = typeof Post.Type;
|
|
6623
|
+
/**
|
|
6624
|
+
* One created post or draft. A direct create also returns the resolved
|
|
6625
|
+
* idempotency key and the current delivery per destination.
|
|
6626
|
+
*/
|
|
6627
|
+
export declare const PostCreated: Schema.Struct<{
|
|
6628
|
+
readonly idempotencyKey: Schema.optionalKey<Schema.String>;
|
|
5921
6629
|
readonly postId: Schema.brand<Schema.String, "PostId">;
|
|
5922
6630
|
readonly isDraft: Schema.Boolean;
|
|
5923
6631
|
readonly revision: Schema.Int;
|
|
@@ -6192,6 +6900,16 @@ export declare const Post: Schema.Struct<{
|
|
|
6192
6900
|
}>,
|
|
6193
6901
|
Schema.Struct<{
|
|
6194
6902
|
readonly settings: Schema.optionalKey<Schema.Struct<{
|
|
6903
|
+
readonly poll: Schema.optionalKey<Schema.Struct<{
|
|
6904
|
+
readonly question: Schema.String;
|
|
6905
|
+
readonly options: Schema.$Array<Schema.String>;
|
|
6906
|
+
readonly duration: Schema.Literals<readonly [
|
|
6907
|
+
"ONE_DAY",
|
|
6908
|
+
"THREE_DAYS",
|
|
6909
|
+
"SEVEN_DAYS",
|
|
6910
|
+
"FOURTEEN_DAYS"
|
|
6911
|
+
]>;
|
|
6912
|
+
}>>;
|
|
6195
6913
|
readonly firstComment: Schema.optionalKey<Schema.String>;
|
|
6196
6914
|
readonly thread: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
6197
6915
|
readonly visibility: Schema.optionalKey<Schema.Literals<readonly [
|
|
@@ -6244,6 +6962,19 @@ export declare const Post: Schema.Struct<{
|
|
|
6244
6962
|
}>,
|
|
6245
6963
|
Schema.Struct<{
|
|
6246
6964
|
readonly settings: Schema.optionalKey<Schema.Struct<{
|
|
6965
|
+
readonly poll: Schema.optionalKey<Schema.Struct<{
|
|
6966
|
+
readonly options: Schema.$Array<Schema.String>;
|
|
6967
|
+
readonly durationMinutes: Schema.Number;
|
|
6968
|
+
}>>;
|
|
6969
|
+
readonly replySettings: Schema.optionalKey<Schema.Literals<readonly [
|
|
6970
|
+
"following",
|
|
6971
|
+
"mentionedUsers",
|
|
6972
|
+
"subscribers",
|
|
6973
|
+
"verified"
|
|
6974
|
+
]>>;
|
|
6975
|
+
readonly quotePostId: Schema.optionalKey<Schema.String>;
|
|
6976
|
+
readonly mediaTaggedUserIds: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
6977
|
+
readonly placeId: Schema.optionalKey<Schema.String>;
|
|
6247
6978
|
readonly firstComment: Schema.optionalKey<Schema.String>;
|
|
6248
6979
|
readonly thread: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
6249
6980
|
readonly article: Schema.optionalKey<Schema.Struct<{
|
|
@@ -6278,6 +7009,7 @@ export declare const Post: Schema.Struct<{
|
|
|
6278
7009
|
"unlisted",
|
|
6279
7010
|
"private"
|
|
6280
7011
|
]>;
|
|
7012
|
+
readonly firstComment: Schema.optionalKey<Schema.String>;
|
|
6281
7013
|
readonly tags: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
6282
7014
|
readonly categoryId: Schema.optionalKey<Schema.String>;
|
|
6283
7015
|
readonly madeForKids: Schema.optionalKey<Schema.Boolean>;
|
|
@@ -6456,7 +7188,28 @@ export declare const Post: Schema.Struct<{
|
|
|
6456
7188
|
readonly placement: Schema.Literal<"feed">;
|
|
6457
7189
|
}>,
|
|
6458
7190
|
Schema.Struct<{
|
|
6459
|
-
readonly settings: Schema.optionalKey<Schema.Struct<{
|
|
7191
|
+
readonly settings: Schema.optionalKey<Schema.Struct<{
|
|
7192
|
+
readonly topicType: Schema.optionalKey<Schema.Literals<readonly [
|
|
7193
|
+
"standard",
|
|
7194
|
+
"event",
|
|
7195
|
+
"offer"
|
|
7196
|
+
]>>;
|
|
7197
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
7198
|
+
readonly startsAt: Schema.optionalKey<Schema.String>;
|
|
7199
|
+
readonly endsAt: Schema.optionalKey<Schema.String>;
|
|
7200
|
+
readonly couponCode: Schema.optionalKey<Schema.String>;
|
|
7201
|
+
readonly redeemUrl: Schema.optionalKey<Schema.String>;
|
|
7202
|
+
readonly terms: Schema.optionalKey<Schema.String>;
|
|
7203
|
+
readonly callToAction: Schema.optionalKey<Schema.Literals<readonly [
|
|
7204
|
+
"book",
|
|
7205
|
+
"order",
|
|
7206
|
+
"shop",
|
|
7207
|
+
"learn_more",
|
|
7208
|
+
"sign_up",
|
|
7209
|
+
"call"
|
|
7210
|
+
]>>;
|
|
7211
|
+
readonly callToActionUrl: Schema.optionalKey<Schema.String>;
|
|
7212
|
+
}>>;
|
|
6460
7213
|
readonly text: Schema.optionalKey<Schema.String>;
|
|
6461
7214
|
readonly media: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [
|
|
6462
7215
|
Schema.Struct<{
|
|
@@ -6476,6 +7229,7 @@ export declare const Post: Schema.Struct<{
|
|
|
6476
7229
|
readonly placement: Schema.Literal<"feed">;
|
|
6477
7230
|
}>
|
|
6478
7231
|
]>>;
|
|
7232
|
+
readonly scheduledAt: Schema.NullOr<Schema.String>;
|
|
6479
7233
|
readonly deliveries: Schema.$Array<Schema.Struct<{
|
|
6480
7234
|
readonly status: Schema.Literals<readonly [
|
|
6481
7235
|
"scheduled",
|
|
@@ -6505,7 +7259,10 @@ export declare const Post: Schema.Struct<{
|
|
|
6505
7259
|
"tiktok_settings_not_allowed",
|
|
6506
7260
|
"tiktok_processing_failed",
|
|
6507
7261
|
"submission_uncertain",
|
|
6508
|
-
"confirmation_unavailable"
|
|
7262
|
+
"confirmation_unavailable",
|
|
7263
|
+
"billing_inactive",
|
|
7264
|
+
"spend_cap_reached",
|
|
7265
|
+
"insufficient_credit"
|
|
6509
7266
|
]>>;
|
|
6510
7267
|
readonly canRetry: Schema.Boolean;
|
|
6511
7268
|
readonly canReconcile: Schema.Boolean;
|
|
@@ -6562,7 +7319,7 @@ export declare const Post: Schema.Struct<{
|
|
|
6562
7319
|
readonly createdAt: Schema.String;
|
|
6563
7320
|
readonly updatedAt: Schema.String;
|
|
6564
7321
|
}>;
|
|
6565
|
-
export type
|
|
7322
|
+
export type PostCreated = typeof PostCreated.Type;
|
|
6566
7323
|
declare const PostCreateResult: Schema.Union<readonly [
|
|
6567
7324
|
Schema.Struct<{
|
|
6568
7325
|
readonly postId: Schema.brand<Schema.String, "PostId">;
|
|
@@ -6839,6 +7596,16 @@ declare const PostCreateResult: Schema.Union<readonly [
|
|
|
6839
7596
|
}>,
|
|
6840
7597
|
Schema.Struct<{
|
|
6841
7598
|
readonly settings: Schema.optionalKey<Schema.Struct<{
|
|
7599
|
+
readonly poll: Schema.optionalKey<Schema.Struct<{
|
|
7600
|
+
readonly question: Schema.String;
|
|
7601
|
+
readonly options: Schema.$Array<Schema.String>;
|
|
7602
|
+
readonly duration: Schema.Literals<readonly [
|
|
7603
|
+
"ONE_DAY",
|
|
7604
|
+
"THREE_DAYS",
|
|
7605
|
+
"SEVEN_DAYS",
|
|
7606
|
+
"FOURTEEN_DAYS"
|
|
7607
|
+
]>;
|
|
7608
|
+
}>>;
|
|
6842
7609
|
readonly firstComment: Schema.optionalKey<Schema.String>;
|
|
6843
7610
|
readonly thread: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
6844
7611
|
readonly visibility: Schema.optionalKey<Schema.Literals<readonly [
|
|
@@ -6891,6 +7658,19 @@ declare const PostCreateResult: Schema.Union<readonly [
|
|
|
6891
7658
|
}>,
|
|
6892
7659
|
Schema.Struct<{
|
|
6893
7660
|
readonly settings: Schema.optionalKey<Schema.Struct<{
|
|
7661
|
+
readonly poll: Schema.optionalKey<Schema.Struct<{
|
|
7662
|
+
readonly options: Schema.$Array<Schema.String>;
|
|
7663
|
+
readonly durationMinutes: Schema.Number;
|
|
7664
|
+
}>>;
|
|
7665
|
+
readonly replySettings: Schema.optionalKey<Schema.Literals<readonly [
|
|
7666
|
+
"following",
|
|
7667
|
+
"mentionedUsers",
|
|
7668
|
+
"subscribers",
|
|
7669
|
+
"verified"
|
|
7670
|
+
]>>;
|
|
7671
|
+
readonly quotePostId: Schema.optionalKey<Schema.String>;
|
|
7672
|
+
readonly mediaTaggedUserIds: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
7673
|
+
readonly placeId: Schema.optionalKey<Schema.String>;
|
|
6894
7674
|
readonly firstComment: Schema.optionalKey<Schema.String>;
|
|
6895
7675
|
readonly thread: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
6896
7676
|
readonly article: Schema.optionalKey<Schema.Struct<{
|
|
@@ -6925,6 +7705,7 @@ declare const PostCreateResult: Schema.Union<readonly [
|
|
|
6925
7705
|
"unlisted",
|
|
6926
7706
|
"private"
|
|
6927
7707
|
]>;
|
|
7708
|
+
readonly firstComment: Schema.optionalKey<Schema.String>;
|
|
6928
7709
|
readonly tags: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
6929
7710
|
readonly categoryId: Schema.optionalKey<Schema.String>;
|
|
6930
7711
|
readonly madeForKids: Schema.optionalKey<Schema.Boolean>;
|
|
@@ -7103,7 +7884,28 @@ declare const PostCreateResult: Schema.Union<readonly [
|
|
|
7103
7884
|
readonly placement: Schema.Literal<"feed">;
|
|
7104
7885
|
}>,
|
|
7105
7886
|
Schema.Struct<{
|
|
7106
|
-
readonly settings: Schema.optionalKey<Schema.Struct<{
|
|
7887
|
+
readonly settings: Schema.optionalKey<Schema.Struct<{
|
|
7888
|
+
readonly topicType: Schema.optionalKey<Schema.Literals<readonly [
|
|
7889
|
+
"standard",
|
|
7890
|
+
"event",
|
|
7891
|
+
"offer"
|
|
7892
|
+
]>>;
|
|
7893
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
7894
|
+
readonly startsAt: Schema.optionalKey<Schema.String>;
|
|
7895
|
+
readonly endsAt: Schema.optionalKey<Schema.String>;
|
|
7896
|
+
readonly couponCode: Schema.optionalKey<Schema.String>;
|
|
7897
|
+
readonly redeemUrl: Schema.optionalKey<Schema.String>;
|
|
7898
|
+
readonly terms: Schema.optionalKey<Schema.String>;
|
|
7899
|
+
readonly callToAction: Schema.optionalKey<Schema.Literals<readonly [
|
|
7900
|
+
"book",
|
|
7901
|
+
"order",
|
|
7902
|
+
"shop",
|
|
7903
|
+
"learn_more",
|
|
7904
|
+
"sign_up",
|
|
7905
|
+
"call"
|
|
7906
|
+
]>>;
|
|
7907
|
+
readonly callToActionUrl: Schema.optionalKey<Schema.String>;
|
|
7908
|
+
}>>;
|
|
7107
7909
|
readonly text: Schema.optionalKey<Schema.String>;
|
|
7108
7910
|
readonly media: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [
|
|
7109
7911
|
Schema.Struct<{
|
|
@@ -7123,6 +7925,7 @@ declare const PostCreateResult: Schema.Union<readonly [
|
|
|
7123
7925
|
readonly placement: Schema.Literal<"feed">;
|
|
7124
7926
|
}>
|
|
7125
7927
|
]>>;
|
|
7928
|
+
readonly scheduledAt: Schema.NullOr<Schema.String>;
|
|
7126
7929
|
readonly deliveries: Schema.$Array<Schema.Struct<{
|
|
7127
7930
|
readonly status: Schema.Literals<readonly [
|
|
7128
7931
|
"scheduled",
|
|
@@ -7152,7 +7955,10 @@ declare const PostCreateResult: Schema.Union<readonly [
|
|
|
7152
7955
|
"tiktok_settings_not_allowed",
|
|
7153
7956
|
"tiktok_processing_failed",
|
|
7154
7957
|
"submission_uncertain",
|
|
7155
|
-
"confirmation_unavailable"
|
|
7958
|
+
"confirmation_unavailable",
|
|
7959
|
+
"billing_inactive",
|
|
7960
|
+
"spend_cap_reached",
|
|
7961
|
+
"insufficient_credit"
|
|
7156
7962
|
]>>;
|
|
7157
7963
|
readonly canRetry: Schema.Boolean;
|
|
7158
7964
|
readonly canReconcile: Schema.Boolean;
|
|
@@ -7290,6 +8096,8 @@ declare const PostCreateResult: Schema.Union<readonly [
|
|
|
7290
8096
|
"tiktok_upload_required",
|
|
7291
8097
|
"tiktok_too_many_mentions",
|
|
7292
8098
|
"queue_and_time_conflict",
|
|
8099
|
+
"queue_not_found",
|
|
8100
|
+
"queue_unavailable",
|
|
7293
8101
|
"invalid_field",
|
|
7294
8102
|
"account_ambiguous",
|
|
7295
8103
|
"unsupported_placement",
|
|
@@ -7302,6 +8110,10 @@ declare const PostCreateResult: Schema.Union<readonly [
|
|
|
7302
8110
|
Schema.Int
|
|
7303
8111
|
]>>;
|
|
7304
8112
|
readonly message: Schema.String;
|
|
8113
|
+
readonly candidates: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
8114
|
+
readonly accountId: Schema.brand<Schema.String, "AccountId">;
|
|
8115
|
+
readonly name: Schema.String;
|
|
8116
|
+
}>>>;
|
|
7305
8117
|
}>>;
|
|
7306
8118
|
readonly billing: Schema.optionalKey<Schema.Struct<{
|
|
7307
8119
|
readonly estimatedCostMicros: Schema.Int;
|
|
@@ -7358,6 +8170,8 @@ export declare const PostValidation: Schema.Struct<{
|
|
|
7358
8170
|
"tiktok_upload_required",
|
|
7359
8171
|
"tiktok_too_many_mentions",
|
|
7360
8172
|
"queue_and_time_conflict",
|
|
8173
|
+
"queue_not_found",
|
|
8174
|
+
"queue_unavailable",
|
|
7361
8175
|
"invalid_field",
|
|
7362
8176
|
"account_ambiguous",
|
|
7363
8177
|
"unsupported_placement",
|
|
@@ -7370,6 +8184,10 @@ export declare const PostValidation: Schema.Struct<{
|
|
|
7370
8184
|
Schema.Int
|
|
7371
8185
|
]>>;
|
|
7372
8186
|
readonly message: Schema.String;
|
|
8187
|
+
readonly candidates: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
8188
|
+
readonly accountId: Schema.brand<Schema.String, "AccountId">;
|
|
8189
|
+
readonly name: Schema.String;
|
|
8190
|
+
}>>>;
|
|
7373
8191
|
}>>;
|
|
7374
8192
|
readonly warnings: Schema.$Array<Schema.Struct<{
|
|
7375
8193
|
readonly code: Schema.Literals<readonly [
|
|
@@ -7399,6 +8217,8 @@ export declare const PostValidation: Schema.Struct<{
|
|
|
7399
8217
|
"tiktok_upload_required",
|
|
7400
8218
|
"tiktok_too_many_mentions",
|
|
7401
8219
|
"queue_and_time_conflict",
|
|
8220
|
+
"queue_not_found",
|
|
8221
|
+
"queue_unavailable",
|
|
7402
8222
|
"invalid_field",
|
|
7403
8223
|
"account_ambiguous",
|
|
7404
8224
|
"unsupported_placement",
|
|
@@ -7411,6 +8231,10 @@ export declare const PostValidation: Schema.Struct<{
|
|
|
7411
8231
|
Schema.Int
|
|
7412
8232
|
]>>;
|
|
7413
8233
|
readonly message: Schema.String;
|
|
8234
|
+
readonly candidates: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
8235
|
+
readonly accountId: Schema.brand<Schema.String, "AccountId">;
|
|
8236
|
+
readonly name: Schema.String;
|
|
8237
|
+
}>>>;
|
|
7414
8238
|
}>>;
|
|
7415
8239
|
readonly targets: Schema.$Array<Schema.Struct<{
|
|
7416
8240
|
readonly accountId: Schema.brand<Schema.String, "AccountId">;
|
|
@@ -7469,6 +8293,8 @@ export declare const PostValidation: Schema.Struct<{
|
|
|
7469
8293
|
"tiktok_upload_required",
|
|
7470
8294
|
"tiktok_too_many_mentions",
|
|
7471
8295
|
"queue_and_time_conflict",
|
|
8296
|
+
"queue_not_found",
|
|
8297
|
+
"queue_unavailable",
|
|
7472
8298
|
"invalid_field",
|
|
7473
8299
|
"account_ambiguous",
|
|
7474
8300
|
"unsupported_placement",
|
|
@@ -7481,6 +8307,10 @@ export declare const PostValidation: Schema.Struct<{
|
|
|
7481
8307
|
Schema.Int
|
|
7482
8308
|
]>>;
|
|
7483
8309
|
readonly message: Schema.String;
|
|
8310
|
+
readonly candidates: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
8311
|
+
readonly accountId: Schema.brand<Schema.String, "AccountId">;
|
|
8312
|
+
readonly name: Schema.String;
|
|
8313
|
+
}>>>;
|
|
7484
8314
|
}>>;
|
|
7485
8315
|
readonly warnings: Schema.$Array<Schema.Struct<{
|
|
7486
8316
|
readonly code: Schema.Literals<readonly [
|
|
@@ -7510,6 +8340,8 @@ export declare const PostValidation: Schema.Struct<{
|
|
|
7510
8340
|
"tiktok_upload_required",
|
|
7511
8341
|
"tiktok_too_many_mentions",
|
|
7512
8342
|
"queue_and_time_conflict",
|
|
8343
|
+
"queue_not_found",
|
|
8344
|
+
"queue_unavailable",
|
|
7513
8345
|
"invalid_field",
|
|
7514
8346
|
"account_ambiguous",
|
|
7515
8347
|
"unsupported_placement",
|
|
@@ -7522,6 +8354,10 @@ export declare const PostValidation: Schema.Struct<{
|
|
|
7522
8354
|
Schema.Int
|
|
7523
8355
|
]>>;
|
|
7524
8356
|
readonly message: Schema.String;
|
|
8357
|
+
readonly candidates: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
8358
|
+
readonly accountId: Schema.brand<Schema.String, "AccountId">;
|
|
8359
|
+
readonly name: Schema.String;
|
|
8360
|
+
}>>>;
|
|
7525
8361
|
}>>;
|
|
7526
8362
|
}>>;
|
|
7527
8363
|
readonly billing: Schema.optionalKey<Schema.Struct<{
|
|
@@ -8540,6 +9376,25 @@ export declare const InboxAccountCapabilities: Schema.Struct<{
|
|
|
8540
9376
|
readonly backfillDays: Schema.Int;
|
|
8541
9377
|
readonly missingScopes: Schema.$Array<Schema.String>;
|
|
8542
9378
|
readonly missingTasks: Schema.$Array<Schema.String>;
|
|
9379
|
+
readonly unavailable: Schema.NullOr<Schema.Struct<{
|
|
9380
|
+
readonly reason: Schema.Literals<readonly [
|
|
9381
|
+
"provider_subscription_limit",
|
|
9382
|
+
"missing_scopes",
|
|
9383
|
+
"webhook_invalid",
|
|
9384
|
+
"subscription_pending",
|
|
9385
|
+
"plan_required",
|
|
9386
|
+
"insufficient_credit",
|
|
9387
|
+
"spend_cap_reached"
|
|
9388
|
+
]>;
|
|
9389
|
+
readonly action: Schema.Literals<readonly [
|
|
9390
|
+
"contact_pubnio",
|
|
9391
|
+
"reconnect_account",
|
|
9392
|
+
"wait_for_repair",
|
|
9393
|
+
"upgrade_plan",
|
|
9394
|
+
"add_credit",
|
|
9395
|
+
"raise_spend_cap"
|
|
9396
|
+
]>;
|
|
9397
|
+
}>>;
|
|
8543
9398
|
}>;
|
|
8544
9399
|
readonly comments: Schema.Struct<{
|
|
8545
9400
|
readonly resource: Schema.Literals<readonly [
|
|
@@ -8575,6 +9430,25 @@ export declare const InboxAccountCapabilities: Schema.Struct<{
|
|
|
8575
9430
|
readonly backfillDays: Schema.Int;
|
|
8576
9431
|
readonly missingScopes: Schema.$Array<Schema.String>;
|
|
8577
9432
|
readonly missingTasks: Schema.$Array<Schema.String>;
|
|
9433
|
+
readonly unavailable: Schema.NullOr<Schema.Struct<{
|
|
9434
|
+
readonly reason: Schema.Literals<readonly [
|
|
9435
|
+
"provider_subscription_limit",
|
|
9436
|
+
"missing_scopes",
|
|
9437
|
+
"webhook_invalid",
|
|
9438
|
+
"subscription_pending",
|
|
9439
|
+
"plan_required",
|
|
9440
|
+
"insufficient_credit",
|
|
9441
|
+
"spend_cap_reached"
|
|
9442
|
+
]>;
|
|
9443
|
+
readonly action: Schema.Literals<readonly [
|
|
9444
|
+
"contact_pubnio",
|
|
9445
|
+
"reconnect_account",
|
|
9446
|
+
"wait_for_repair",
|
|
9447
|
+
"upgrade_plan",
|
|
9448
|
+
"add_credit",
|
|
9449
|
+
"raise_spend_cap"
|
|
9450
|
+
]>;
|
|
9451
|
+
}>>;
|
|
8578
9452
|
}>;
|
|
8579
9453
|
readonly mentions: Schema.Struct<{
|
|
8580
9454
|
readonly resource: Schema.Literals<readonly [
|
|
@@ -8610,6 +9484,25 @@ export declare const InboxAccountCapabilities: Schema.Struct<{
|
|
|
8610
9484
|
readonly backfillDays: Schema.Int;
|
|
8611
9485
|
readonly missingScopes: Schema.$Array<Schema.String>;
|
|
8612
9486
|
readonly missingTasks: Schema.$Array<Schema.String>;
|
|
9487
|
+
readonly unavailable: Schema.NullOr<Schema.Struct<{
|
|
9488
|
+
readonly reason: Schema.Literals<readonly [
|
|
9489
|
+
"provider_subscription_limit",
|
|
9490
|
+
"missing_scopes",
|
|
9491
|
+
"webhook_invalid",
|
|
9492
|
+
"subscription_pending",
|
|
9493
|
+
"plan_required",
|
|
9494
|
+
"insufficient_credit",
|
|
9495
|
+
"spend_cap_reached"
|
|
9496
|
+
]>;
|
|
9497
|
+
readonly action: Schema.Literals<readonly [
|
|
9498
|
+
"contact_pubnio",
|
|
9499
|
+
"reconnect_account",
|
|
9500
|
+
"wait_for_repair",
|
|
9501
|
+
"upgrade_plan",
|
|
9502
|
+
"add_credit",
|
|
9503
|
+
"raise_spend_cap"
|
|
9504
|
+
]>;
|
|
9505
|
+
}>>;
|
|
8613
9506
|
}>;
|
|
8614
9507
|
readonly replyWindow: Schema.Struct<{
|
|
8615
9508
|
readonly open: Schema.Boolean;
|
|
@@ -8621,6 +9514,11 @@ export declare const InboxAccountCapabilities: Schema.Struct<{
|
|
|
8621
9514
|
readonly endsAt: Schema.NullOr<Schema.String>;
|
|
8622
9515
|
}>;
|
|
8623
9516
|
readonly lastSyncError: Schema.NullOr<Schema.String>;
|
|
9517
|
+
readonly deliveryGap: Schema.NullOr<Schema.Struct<{
|
|
9518
|
+
readonly from: Schema.String;
|
|
9519
|
+
readonly to: Schema.String;
|
|
9520
|
+
readonly action: Schema.Literal<"review_on_x">;
|
|
9521
|
+
}>>;
|
|
8624
9522
|
readonly checkedAt: Schema.String;
|
|
8625
9523
|
}>;
|
|
8626
9524
|
export type InboxAccountCapabilities = typeof InboxAccountCapabilities.Type;
|
|
@@ -8748,6 +9646,25 @@ export declare const InboxCapabilities: Schema.Struct<{
|
|
|
8748
9646
|
readonly backfillDays: Schema.Int;
|
|
8749
9647
|
readonly missingScopes: Schema.$Array<Schema.String>;
|
|
8750
9648
|
readonly missingTasks: Schema.$Array<Schema.String>;
|
|
9649
|
+
readonly unavailable: Schema.NullOr<Schema.Struct<{
|
|
9650
|
+
readonly reason: Schema.Literals<readonly [
|
|
9651
|
+
"provider_subscription_limit",
|
|
9652
|
+
"missing_scopes",
|
|
9653
|
+
"webhook_invalid",
|
|
9654
|
+
"subscription_pending",
|
|
9655
|
+
"plan_required",
|
|
9656
|
+
"insufficient_credit",
|
|
9657
|
+
"spend_cap_reached"
|
|
9658
|
+
]>;
|
|
9659
|
+
readonly action: Schema.Literals<readonly [
|
|
9660
|
+
"contact_pubnio",
|
|
9661
|
+
"reconnect_account",
|
|
9662
|
+
"wait_for_repair",
|
|
9663
|
+
"upgrade_plan",
|
|
9664
|
+
"add_credit",
|
|
9665
|
+
"raise_spend_cap"
|
|
9666
|
+
]>;
|
|
9667
|
+
}>>;
|
|
8751
9668
|
}>;
|
|
8752
9669
|
readonly comments: Schema.Struct<{
|
|
8753
9670
|
readonly resource: Schema.Literals<readonly [
|
|
@@ -8783,6 +9700,25 @@ export declare const InboxCapabilities: Schema.Struct<{
|
|
|
8783
9700
|
readonly backfillDays: Schema.Int;
|
|
8784
9701
|
readonly missingScopes: Schema.$Array<Schema.String>;
|
|
8785
9702
|
readonly missingTasks: Schema.$Array<Schema.String>;
|
|
9703
|
+
readonly unavailable: Schema.NullOr<Schema.Struct<{
|
|
9704
|
+
readonly reason: Schema.Literals<readonly [
|
|
9705
|
+
"provider_subscription_limit",
|
|
9706
|
+
"missing_scopes",
|
|
9707
|
+
"webhook_invalid",
|
|
9708
|
+
"subscription_pending",
|
|
9709
|
+
"plan_required",
|
|
9710
|
+
"insufficient_credit",
|
|
9711
|
+
"spend_cap_reached"
|
|
9712
|
+
]>;
|
|
9713
|
+
readonly action: Schema.Literals<readonly [
|
|
9714
|
+
"contact_pubnio",
|
|
9715
|
+
"reconnect_account",
|
|
9716
|
+
"wait_for_repair",
|
|
9717
|
+
"upgrade_plan",
|
|
9718
|
+
"add_credit",
|
|
9719
|
+
"raise_spend_cap"
|
|
9720
|
+
]>;
|
|
9721
|
+
}>>;
|
|
8786
9722
|
}>;
|
|
8787
9723
|
readonly mentions: Schema.Struct<{
|
|
8788
9724
|
readonly resource: Schema.Literals<readonly [
|
|
@@ -8818,6 +9754,25 @@ export declare const InboxCapabilities: Schema.Struct<{
|
|
|
8818
9754
|
readonly backfillDays: Schema.Int;
|
|
8819
9755
|
readonly missingScopes: Schema.$Array<Schema.String>;
|
|
8820
9756
|
readonly missingTasks: Schema.$Array<Schema.String>;
|
|
9757
|
+
readonly unavailable: Schema.NullOr<Schema.Struct<{
|
|
9758
|
+
readonly reason: Schema.Literals<readonly [
|
|
9759
|
+
"provider_subscription_limit",
|
|
9760
|
+
"missing_scopes",
|
|
9761
|
+
"webhook_invalid",
|
|
9762
|
+
"subscription_pending",
|
|
9763
|
+
"plan_required",
|
|
9764
|
+
"insufficient_credit",
|
|
9765
|
+
"spend_cap_reached"
|
|
9766
|
+
]>;
|
|
9767
|
+
readonly action: Schema.Literals<readonly [
|
|
9768
|
+
"contact_pubnio",
|
|
9769
|
+
"reconnect_account",
|
|
9770
|
+
"wait_for_repair",
|
|
9771
|
+
"upgrade_plan",
|
|
9772
|
+
"add_credit",
|
|
9773
|
+
"raise_spend_cap"
|
|
9774
|
+
]>;
|
|
9775
|
+
}>>;
|
|
8821
9776
|
}>;
|
|
8822
9777
|
readonly replyWindow: Schema.Struct<{
|
|
8823
9778
|
readonly open: Schema.Boolean;
|
|
@@ -8829,6 +9784,11 @@ export declare const InboxCapabilities: Schema.Struct<{
|
|
|
8829
9784
|
readonly endsAt: Schema.NullOr<Schema.String>;
|
|
8830
9785
|
}>;
|
|
8831
9786
|
readonly lastSyncError: Schema.NullOr<Schema.String>;
|
|
9787
|
+
readonly deliveryGap: Schema.NullOr<Schema.Struct<{
|
|
9788
|
+
readonly from: Schema.String;
|
|
9789
|
+
readonly to: Schema.String;
|
|
9790
|
+
readonly action: Schema.Literal<"review_on_x">;
|
|
9791
|
+
}>>;
|
|
8832
9792
|
readonly checkedAt: Schema.String;
|
|
8833
9793
|
}>>;
|
|
8834
9794
|
}>;
|
|
@@ -13220,7 +14180,8 @@ export declare const WebhookSubscriptionType: Schema.Literals<readonly [
|
|
|
13220
14180
|
"billing.credit.topped_up",
|
|
13221
14181
|
"billing.credit.low",
|
|
13222
14182
|
"billing.spend_cap.reached",
|
|
13223
|
-
"billing.invoice.payment_failed"
|
|
14183
|
+
"billing.invoice.payment_failed",
|
|
14184
|
+
"billing.subscription.duplicate_refunded"
|
|
13224
14185
|
]>;
|
|
13225
14186
|
export type WebhookSubscriptionType = typeof WebhookSubscriptionType.Type;
|
|
13226
14187
|
export declare const WebhookEventType: Schema.Literals<readonly [
|
|
@@ -13279,6 +14240,7 @@ export declare const WebhookEventType: Schema.Literals<readonly [
|
|
|
13279
14240
|
"billing.credit.low",
|
|
13280
14241
|
"billing.spend_cap.reached",
|
|
13281
14242
|
"billing.invoice.payment_failed",
|
|
14243
|
+
"billing.subscription.duplicate_refunded",
|
|
13282
14244
|
"webhook.test"
|
|
13283
14245
|
]>;
|
|
13284
14246
|
export type WebhookEventType = typeof WebhookEventType.Type;
|
|
@@ -13385,7 +14347,10 @@ export declare const WebhookEvent: Schema.Union<readonly [
|
|
|
13385
14347
|
"tiktok_settings_not_allowed",
|
|
13386
14348
|
"tiktok_processing_failed",
|
|
13387
14349
|
"submission_uncertain",
|
|
13388
|
-
"confirmation_unavailable"
|
|
14350
|
+
"confirmation_unavailable",
|
|
14351
|
+
"billing_inactive",
|
|
14352
|
+
"spend_cap_reached",
|
|
14353
|
+
"insufficient_credit"
|
|
13389
14354
|
]>;
|
|
13390
14355
|
readonly canRetry: Schema.Boolean;
|
|
13391
14356
|
readonly nextAction: Schema.String;
|
|
@@ -13444,7 +14409,10 @@ export declare const WebhookEvent: Schema.Union<readonly [
|
|
|
13444
14409
|
"tiktok_settings_not_allowed",
|
|
13445
14410
|
"tiktok_processing_failed",
|
|
13446
14411
|
"submission_uncertain",
|
|
13447
|
-
"confirmation_unavailable"
|
|
14412
|
+
"confirmation_unavailable",
|
|
14413
|
+
"billing_inactive",
|
|
14414
|
+
"spend_cap_reached",
|
|
14415
|
+
"insufficient_credit"
|
|
13448
14416
|
]>;
|
|
13449
14417
|
readonly canReconcile: Schema.Boolean;
|
|
13450
14418
|
readonly nextAction: Schema.String;
|
|
@@ -13610,7 +14578,10 @@ export declare const WebhookEvent: Schema.Union<readonly [
|
|
|
13610
14578
|
"tiktok_settings_not_allowed",
|
|
13611
14579
|
"tiktok_processing_failed",
|
|
13612
14580
|
"submission_uncertain",
|
|
13613
|
-
"confirmation_unavailable"
|
|
14581
|
+
"confirmation_unavailable",
|
|
14582
|
+
"billing_inactive",
|
|
14583
|
+
"spend_cap_reached",
|
|
14584
|
+
"insufficient_credit"
|
|
13614
14585
|
]>>;
|
|
13615
14586
|
}>>;
|
|
13616
14587
|
}>;
|
|
@@ -13670,7 +14641,10 @@ export declare const WebhookEvent: Schema.Union<readonly [
|
|
|
13670
14641
|
"tiktok_settings_not_allowed",
|
|
13671
14642
|
"tiktok_processing_failed",
|
|
13672
14643
|
"submission_uncertain",
|
|
13673
|
-
"confirmation_unavailable"
|
|
14644
|
+
"confirmation_unavailable",
|
|
14645
|
+
"billing_inactive",
|
|
14646
|
+
"spend_cap_reached",
|
|
14647
|
+
"insufficient_credit"
|
|
13674
14648
|
]>>;
|
|
13675
14649
|
}>>;
|
|
13676
14650
|
}>;
|
|
@@ -13730,7 +14704,10 @@ export declare const WebhookEvent: Schema.Union<readonly [
|
|
|
13730
14704
|
"tiktok_settings_not_allowed",
|
|
13731
14705
|
"tiktok_processing_failed",
|
|
13732
14706
|
"submission_uncertain",
|
|
13733
|
-
"confirmation_unavailable"
|
|
14707
|
+
"confirmation_unavailable",
|
|
14708
|
+
"billing_inactive",
|
|
14709
|
+
"spend_cap_reached",
|
|
14710
|
+
"insufficient_credit"
|
|
13734
14711
|
]>>;
|
|
13735
14712
|
}>>;
|
|
13736
14713
|
}>;
|
|
@@ -13790,7 +14767,10 @@ export declare const WebhookEvent: Schema.Union<readonly [
|
|
|
13790
14767
|
"tiktok_settings_not_allowed",
|
|
13791
14768
|
"tiktok_processing_failed",
|
|
13792
14769
|
"submission_uncertain",
|
|
13793
|
-
"confirmation_unavailable"
|
|
14770
|
+
"confirmation_unavailable",
|
|
14771
|
+
"billing_inactive",
|
|
14772
|
+
"spend_cap_reached",
|
|
14773
|
+
"insufficient_credit"
|
|
13794
14774
|
]>>;
|
|
13795
14775
|
}>>;
|
|
13796
14776
|
}>;
|
|
@@ -15089,6 +16069,19 @@ export declare const WebhookEvent: Schema.Union<readonly [
|
|
|
15089
16069
|
readonly workspaceId: Schema.brand<Schema.String, "WorkspaceId">;
|
|
15090
16070
|
readonly profileId: Schema.optionalKey<Schema.brand<Schema.String, "ProfileId">>;
|
|
15091
16071
|
}>,
|
|
16072
|
+
Schema.Struct<{
|
|
16073
|
+
readonly type: Schema.Literal<"billing.subscription.duplicate_refunded">;
|
|
16074
|
+
readonly data: Schema.Struct<{
|
|
16075
|
+
readonly subscriptionId: Schema.String;
|
|
16076
|
+
readonly amountRefundedMinor: Schema.Int;
|
|
16077
|
+
readonly currency: Schema.String;
|
|
16078
|
+
}>;
|
|
16079
|
+
readonly id: Schema.String;
|
|
16080
|
+
readonly version: Schema.Literal<1>;
|
|
16081
|
+
readonly timestamp: Schema.String;
|
|
16082
|
+
readonly workspaceId: Schema.brand<Schema.String, "WorkspaceId">;
|
|
16083
|
+
readonly profileId: Schema.optionalKey<Schema.brand<Schema.String, "ProfileId">>;
|
|
16084
|
+
}>,
|
|
15092
16085
|
Schema.Struct<{
|
|
15093
16086
|
readonly type: Schema.Literal<"webhook.test">;
|
|
15094
16087
|
readonly data: Schema.Struct<{
|
|
@@ -15160,7 +16153,8 @@ export declare const CreateWebhookEndpoint: Schema.Struct<{
|
|
|
15160
16153
|
"billing.credit.topped_up",
|
|
15161
16154
|
"billing.credit.low",
|
|
15162
16155
|
"billing.spend_cap.reached",
|
|
15163
|
-
"billing.invoice.payment_failed"
|
|
16156
|
+
"billing.invoice.payment_failed",
|
|
16157
|
+
"billing.subscription.duplicate_refunded"
|
|
15164
16158
|
]>>;
|
|
15165
16159
|
readonly enabled: Schema.optionalKey<Schema.Boolean>;
|
|
15166
16160
|
readonly profileId: Schema.optionalKey<Schema.brand<Schema.String, "ProfileId">>;
|
|
@@ -15233,7 +16227,8 @@ export declare const UpdateWebhookEndpoint: Schema.Struct<{
|
|
|
15233
16227
|
"billing.credit.topped_up",
|
|
15234
16228
|
"billing.credit.low",
|
|
15235
16229
|
"billing.spend_cap.reached",
|
|
15236
|
-
"billing.invoice.payment_failed"
|
|
16230
|
+
"billing.invoice.payment_failed",
|
|
16231
|
+
"billing.subscription.duplicate_refunded"
|
|
15237
16232
|
]>>>;
|
|
15238
16233
|
readonly enabled: Schema.optionalKey<Schema.Boolean>;
|
|
15239
16234
|
readonly profileId: Schema.optionalKey<Schema.NullOr<Schema.brand<Schema.String, "ProfileId">>>;
|
|
@@ -15308,7 +16303,8 @@ export declare const WebhookEndpoint: Schema.Struct<{
|
|
|
15308
16303
|
"billing.credit.topped_up",
|
|
15309
16304
|
"billing.credit.low",
|
|
15310
16305
|
"billing.spend_cap.reached",
|
|
15311
|
-
"billing.invoice.payment_failed"
|
|
16306
|
+
"billing.invoice.payment_failed",
|
|
16307
|
+
"billing.subscription.duplicate_refunded"
|
|
15312
16308
|
]>>;
|
|
15313
16309
|
readonly enabled: Schema.Boolean;
|
|
15314
16310
|
readonly profileId: Schema.NullOr<Schema.brand<Schema.String, "ProfileId">>;
|
|
@@ -15391,7 +16387,8 @@ export declare const WebhookEndpointDetails: Schema.Struct<{
|
|
|
15391
16387
|
"billing.credit.topped_up",
|
|
15392
16388
|
"billing.credit.low",
|
|
15393
16389
|
"billing.spend_cap.reached",
|
|
15394
|
-
"billing.invoice.payment_failed"
|
|
16390
|
+
"billing.invoice.payment_failed",
|
|
16391
|
+
"billing.subscription.duplicate_refunded"
|
|
15395
16392
|
]>>;
|
|
15396
16393
|
readonly enabled: Schema.Boolean;
|
|
15397
16394
|
readonly profileId: Schema.NullOr<Schema.brand<Schema.String, "ProfileId">>;
|
|
@@ -15475,7 +16472,8 @@ export declare const WebhookEndpointCreated: Schema.Struct<{
|
|
|
15475
16472
|
"billing.credit.topped_up",
|
|
15476
16473
|
"billing.credit.low",
|
|
15477
16474
|
"billing.spend_cap.reached",
|
|
15478
|
-
"billing.invoice.payment_failed"
|
|
16475
|
+
"billing.invoice.payment_failed",
|
|
16476
|
+
"billing.subscription.duplicate_refunded"
|
|
15479
16477
|
]>>;
|
|
15480
16478
|
readonly enabled: Schema.Boolean;
|
|
15481
16479
|
readonly profileId: Schema.NullOr<Schema.brand<Schema.String, "ProfileId">>;
|
|
@@ -15562,7 +16560,8 @@ export declare const WebhookEndpointList: Schema.Struct<{
|
|
|
15562
16560
|
"billing.credit.topped_up",
|
|
15563
16561
|
"billing.credit.low",
|
|
15564
16562
|
"billing.spend_cap.reached",
|
|
15565
|
-
"billing.invoice.payment_failed"
|
|
16563
|
+
"billing.invoice.payment_failed",
|
|
16564
|
+
"billing.subscription.duplicate_refunded"
|
|
15566
16565
|
]>>;
|
|
15567
16566
|
readonly enabled: Schema.Boolean;
|
|
15568
16567
|
readonly profileId: Schema.NullOr<Schema.brand<Schema.String, "ProfileId">>;
|
|
@@ -15674,6 +16673,7 @@ export declare const WebhookDelivery: Schema.Struct<{
|
|
|
15674
16673
|
"billing.credit.low",
|
|
15675
16674
|
"billing.spend_cap.reached",
|
|
15676
16675
|
"billing.invoice.payment_failed",
|
|
16676
|
+
"billing.subscription.duplicate_refunded",
|
|
15677
16677
|
"webhook.test"
|
|
15678
16678
|
]>;
|
|
15679
16679
|
readonly status: Schema.Literals<readonly [
|
|
@@ -15765,6 +16765,7 @@ export declare const WebhookDeliveryList: Schema.Struct<{
|
|
|
15765
16765
|
"billing.credit.low",
|
|
15766
16766
|
"billing.spend_cap.reached",
|
|
15767
16767
|
"billing.invoice.payment_failed",
|
|
16768
|
+
"billing.subscription.duplicate_refunded",
|
|
15768
16769
|
"webhook.test"
|
|
15769
16770
|
]>;
|
|
15770
16771
|
readonly status: Schema.Literals<readonly [
|
|
@@ -16342,7 +17343,7 @@ export interface PostsClient {
|
|
|
16342
17343
|
iterate(options?: PostsListOptions, iteration?: IterationOptions): AsyncGenerator<PostList["data"][number], void, undefined>;
|
|
16343
17344
|
create(input: CreatePostInput & {
|
|
16344
17345
|
isDraft: true;
|
|
16345
|
-
}): Promise<
|
|
17346
|
+
}): Promise<PostCreated>;
|
|
16346
17347
|
create(input: CreatePostInput & {
|
|
16347
17348
|
isDraft?: false;
|
|
16348
17349
|
}): Promise<PublishAcceptedResult>;
|
|
@@ -16350,7 +17351,10 @@ export interface PostsClient {
|
|
|
16350
17351
|
get(postId: PostId): Promise<Post>;
|
|
16351
17352
|
update(postId: PostId, input: UpdatePost): Promise<Post>;
|
|
16352
17353
|
validate(postId: PostId): Promise<PostValidation>;
|
|
16353
|
-
|
|
17354
|
+
/** Predict whether this body can be published without saving it. */
|
|
17355
|
+
validateBody(input: CreatePost): Promise<PostValidation>;
|
|
17356
|
+
/** Publish the saved draft; every field is optional. */
|
|
17357
|
+
publish(postId: PostId, input?: PublishPostInput): Promise<PublishAcceptedResult>;
|
|
16354
17358
|
delete(postId: PostId): Promise<PostArchived>;
|
|
16355
17359
|
status(postId: PostId): Promise<PublishStatus>;
|
|
16356
17360
|
attempts(postId: PostId, targetId: TargetId, options?: PageOptions): Promise<DeliveryHistory>;
|