@pubnio/sdk 0.3.0 → 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 +45 -23
- package/dist/index.d.cts +475 -28
- package/dist/index.d.ts +475 -28
- package/dist/index.js +45 -23
- package/dist/internal.cjs +45 -23
- package/dist/internal.d.cts +557 -67
- package/dist/internal.d.ts +557 -67
- package/dist/internal.js +45 -23
- package/dist/solid.cjs +45 -23
- package/dist/solid.d.cts +489 -47
- package/dist/solid.d.ts +489 -47
- package/dist/solid.js +45 -23
- package/package.json +1 -1
package/dist/internal.d.cts
CHANGED
|
@@ -1005,19 +1005,19 @@ declare const ApiKeyRevocation: Schema.Struct<{
|
|
|
1005
1005
|
}>;
|
|
1006
1006
|
type ApiKeyRevocation = typeof ApiKeyRevocation.Type;
|
|
1007
1007
|
declare const PublishInput: Schema.Struct<{
|
|
1008
|
-
readonly expectedRevision: Schema.Int
|
|
1008
|
+
readonly expectedRevision: Schema.optionalKey<Schema.Int>;
|
|
1009
1009
|
readonly scheduledAt: Schema.optionalKey<Schema.String>;
|
|
1010
|
-
readonly
|
|
1010
|
+
readonly accounts: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "AccountId">>>;
|
|
1011
1011
|
readonly targets: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
1012
1012
|
readonly accountId: Schema.brand<Schema.String, "AccountId">;
|
|
1013
|
-
readonly placement: Schema.Literals<readonly [
|
|
1013
|
+
readonly placement: Schema.optionalKey<Schema.Literals<readonly [
|
|
1014
1014
|
"feed",
|
|
1015
1015
|
"reel",
|
|
1016
1016
|
"story",
|
|
1017
1017
|
"carousel",
|
|
1018
1018
|
"video",
|
|
1019
1019
|
"pin"
|
|
1020
|
-
]
|
|
1020
|
+
]>>;
|
|
1021
1021
|
readonly scheduledAt: Schema.optionalKey<Schema.Union<readonly [
|
|
1022
1022
|
Schema.String,
|
|
1023
1023
|
Schema.Null
|
|
@@ -3060,6 +3060,13 @@ declare class MediaUploadConflict extends MediaUploadConflict_base {
|
|
|
3060
3060
|
declare const DestinationAlreadySubmitted_base: HttpApiError.ProblemClass<DestinationAlreadySubmitted, "DestinationAlreadySubmitted", "urn:pubnio:problem:destination-already-submitted", 409, {}, {}>;
|
|
3061
3061
|
declare class DestinationAlreadySubmitted extends DestinationAlreadySubmitted_base {
|
|
3062
3062
|
}
|
|
3063
|
+
declare const PostSubmitted_base: HttpApiError.ProblemClass<PostSubmitted, "PostSubmitted", "urn:pubnio:problem:post-submitted", 409, {
|
|
3064
|
+
readonly code: Schema.Literal<"post_submitted">;
|
|
3065
|
+
readonly targetIds: Schema.$Array<Schema.brand<Schema.String, "TargetId">>;
|
|
3066
|
+
readonly nextAction: Schema.String;
|
|
3067
|
+
}, {}>;
|
|
3068
|
+
declare class PostSubmitted extends PostSubmitted_base {
|
|
3069
|
+
}
|
|
3063
3070
|
declare const DeliveryNotRetryable_base: HttpApiError.ProblemClass<DeliveryNotRetryable, "DeliveryNotRetryable", "urn:pubnio:problem:delivery-not-retryable", 409, {}, {}>;
|
|
3064
3071
|
declare class DeliveryNotRetryable extends DeliveryNotRetryable_base {
|
|
3065
3072
|
}
|
|
@@ -3768,6 +3775,7 @@ declare const KnownProblem: Schema.Union<readonly [
|
|
|
3768
3775
|
typeof AttemptChanged,
|
|
3769
3776
|
typeof IdempotencyConflict,
|
|
3770
3777
|
typeof DestinationAlreadySubmitted,
|
|
3778
|
+
typeof PostSubmitted,
|
|
3771
3779
|
typeof DeliveryNotRetryable,
|
|
3772
3780
|
typeof DeliveryNotReconcilable,
|
|
3773
3781
|
typeof DeliveryScheduleLocked,
|
|
@@ -4061,25 +4069,347 @@ declare const PostIssue: Schema.Struct<{
|
|
|
4061
4069
|
readonly accountId: Schema.brand<Schema.String, "AccountId">;
|
|
4062
4070
|
readonly name: Schema.String;
|
|
4063
4071
|
}>>>;
|
|
4064
|
-
}>;
|
|
4065
|
-
type PostIssue = typeof PostIssue.Type;
|
|
4066
|
-
declare const CreatePost: Schema.Struct<{
|
|
4072
|
+
}>;
|
|
4073
|
+
type PostIssue = typeof PostIssue.Type;
|
|
4074
|
+
declare const CreatePost: Schema.Struct<{
|
|
4075
|
+
readonly media: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [
|
|
4076
|
+
Schema.Struct<{
|
|
4077
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
4078
|
+
}>,
|
|
4079
|
+
Schema.Struct<{
|
|
4080
|
+
readonly url: Schema.String;
|
|
4081
|
+
}>
|
|
4082
|
+
]>>>;
|
|
4083
|
+
readonly scheduledAt: Schema.optionalKey<Schema.String>;
|
|
4084
|
+
readonly publishNow: Schema.optionalKey<Schema.Boolean>;
|
|
4085
|
+
readonly isDraft: Schema.optionalKey<Schema.Boolean>;
|
|
4086
|
+
readonly platforms: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly [
|
|
4087
|
+
"bluesky",
|
|
4088
|
+
"facebook",
|
|
4089
|
+
"instagram",
|
|
4090
|
+
"linkedin",
|
|
4091
|
+
"pinterest",
|
|
4092
|
+
"reddit",
|
|
4093
|
+
"snapchat",
|
|
4094
|
+
"tiktok",
|
|
4095
|
+
"threads",
|
|
4096
|
+
"x",
|
|
4097
|
+
"youtube",
|
|
4098
|
+
"google_business"
|
|
4099
|
+
]>>>;
|
|
4100
|
+
readonly accounts: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "AccountId">>>;
|
|
4101
|
+
readonly targets: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
4102
|
+
readonly accountId: Schema.brand<Schema.String, "AccountId">;
|
|
4103
|
+
readonly provider: Schema.optionalKey<Schema.Literals<readonly [
|
|
4104
|
+
"bluesky",
|
|
4105
|
+
"facebook",
|
|
4106
|
+
"instagram",
|
|
4107
|
+
"linkedin",
|
|
4108
|
+
"pinterest",
|
|
4109
|
+
"reddit",
|
|
4110
|
+
"snapchat",
|
|
4111
|
+
"tiktok",
|
|
4112
|
+
"threads",
|
|
4113
|
+
"x",
|
|
4114
|
+
"youtube",
|
|
4115
|
+
"google_business"
|
|
4116
|
+
]>>;
|
|
4117
|
+
readonly placement: Schema.optionalKey<Schema.Literals<readonly [
|
|
4118
|
+
"feed",
|
|
4119
|
+
"reel",
|
|
4120
|
+
"story",
|
|
4121
|
+
"carousel",
|
|
4122
|
+
"video",
|
|
4123
|
+
"pin"
|
|
4124
|
+
]>>;
|
|
4125
|
+
readonly text: Schema.optionalKey<Schema.String>;
|
|
4126
|
+
readonly thread: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
4127
|
+
readonly media: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [
|
|
4128
|
+
Schema.Struct<{
|
|
4129
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
4130
|
+
}>,
|
|
4131
|
+
Schema.Struct<{
|
|
4132
|
+
readonly url: Schema.String;
|
|
4133
|
+
}>
|
|
4134
|
+
]>>>;
|
|
4135
|
+
readonly scheduledAt: Schema.optionalKey<Schema.Union<readonly [
|
|
4136
|
+
Schema.String,
|
|
4137
|
+
Schema.Null
|
|
4138
|
+
]>>;
|
|
4139
|
+
readonly queueId: Schema.optionalKey<Schema.String>;
|
|
4140
|
+
readonly settings: Schema.optionalKey<Schema.middlewareDecoding<Schema.Union<readonly [
|
|
4141
|
+
Schema.Struct<{
|
|
4142
|
+
readonly firstComment: Schema.optionalKey<Schema.String>;
|
|
4143
|
+
readonly thread: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
4144
|
+
readonly altText: Schema.optionalKey<Schema.String>;
|
|
4145
|
+
}>,
|
|
4146
|
+
Schema.Struct<{
|
|
4147
|
+
readonly link: Schema.optionalKey<Schema.String>;
|
|
4148
|
+
readonly textFormatPresetId: Schema.optionalKey<Schema.String>;
|
|
4149
|
+
readonly albumId: Schema.optionalKey<Schema.String>;
|
|
4150
|
+
readonly firstComment: Schema.optionalKey<Schema.String>;
|
|
4151
|
+
readonly thread: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
4152
|
+
readonly nativeDraft: Schema.optionalKey<Schema.Boolean>;
|
|
4153
|
+
readonly countries: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
4154
|
+
}>,
|
|
4155
|
+
Schema.Struct<{
|
|
4156
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
4157
|
+
readonly isAiGenerated: Schema.optionalKey<Schema.Boolean>;
|
|
4158
|
+
readonly collaboratorPageIds: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
4159
|
+
readonly firstComment: Schema.optionalKey<Schema.String>;
|
|
4160
|
+
readonly thread: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
4161
|
+
readonly nativeDraft: Schema.optionalKey<Schema.Boolean>;
|
|
4162
|
+
readonly countries: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
4163
|
+
}>,
|
|
4164
|
+
Schema.Struct<{
|
|
4165
|
+
readonly isAiGenerated: Schema.optionalKey<Schema.Boolean>;
|
|
4166
|
+
}>,
|
|
4167
|
+
Schema.Struct<{
|
|
4168
|
+
readonly altText: Schema.optionalKey<Schema.String>;
|
|
4169
|
+
readonly userTags: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
4170
|
+
readonly username: Schema.String;
|
|
4171
|
+
readonly x: Schema.optionalKey<Schema.Number>;
|
|
4172
|
+
readonly y: Schema.optionalKey<Schema.Number>;
|
|
4173
|
+
}>>>;
|
|
4174
|
+
readonly firstComment: Schema.optionalKey<Schema.String>;
|
|
4175
|
+
readonly commentsEnabled: Schema.optionalKey<Schema.Boolean>;
|
|
4176
|
+
readonly collaborators: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
4177
|
+
readonly locationId: Schema.optionalKey<Schema.String>;
|
|
4178
|
+
readonly isPaidPartnership: Schema.optionalKey<Schema.Boolean>;
|
|
4179
|
+
readonly brandedContentSponsors: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [
|
|
4180
|
+
Schema.String,
|
|
4181
|
+
Schema.String
|
|
4182
|
+
]>>>;
|
|
4183
|
+
readonly isAiGenerated: Schema.optionalKey<Schema.Boolean>;
|
|
4184
|
+
}>,
|
|
4185
|
+
Schema.Struct<{
|
|
4186
|
+
readonly shareToFeed: Schema.optionalKey<Schema.Boolean>;
|
|
4187
|
+
readonly muteAudio: Schema.optionalKey<Schema.Boolean>;
|
|
4188
|
+
readonly audioConfiguration: Schema.optionalKey<Schema.Struct<{
|
|
4189
|
+
readonly audioId: Schema.String;
|
|
4190
|
+
readonly audioVolume: Schema.optionalKey<Schema.Int>;
|
|
4191
|
+
readonly videoVolume: Schema.optionalKey<Schema.Int>;
|
|
4192
|
+
}>>;
|
|
4193
|
+
readonly coverUrl: Schema.optionalKey<Schema.String>;
|
|
4194
|
+
readonly thumbOffset: Schema.optionalKey<Schema.Int>;
|
|
4195
|
+
readonly audioName: Schema.optionalKey<Schema.String>;
|
|
4196
|
+
readonly trial: Schema.optionalKey<Schema.Struct<{
|
|
4197
|
+
readonly graduationStrategy: Schema.Literals<readonly [
|
|
4198
|
+
"MANUAL",
|
|
4199
|
+
"SS_PERFORMANCE"
|
|
4200
|
+
]>;
|
|
4201
|
+
}>>;
|
|
4202
|
+
readonly userTags: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
4203
|
+
readonly username: Schema.String;
|
|
4204
|
+
readonly x: Schema.optionalKey<Schema.Number>;
|
|
4205
|
+
readonly y: Schema.optionalKey<Schema.Number>;
|
|
4206
|
+
}>>>;
|
|
4207
|
+
readonly firstComment: Schema.optionalKey<Schema.String>;
|
|
4208
|
+
readonly commentsEnabled: Schema.optionalKey<Schema.Boolean>;
|
|
4209
|
+
readonly collaborators: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
4210
|
+
readonly locationId: Schema.optionalKey<Schema.String>;
|
|
4211
|
+
readonly isPaidPartnership: Schema.optionalKey<Schema.Boolean>;
|
|
4212
|
+
readonly brandedContentSponsors: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [
|
|
4213
|
+
Schema.String,
|
|
4214
|
+
Schema.String
|
|
4215
|
+
]>>>;
|
|
4216
|
+
readonly isAiGenerated: Schema.optionalKey<Schema.Boolean>;
|
|
4217
|
+
}>,
|
|
4218
|
+
Schema.Struct<{
|
|
4219
|
+
readonly muteAudio: Schema.optionalKey<Schema.Boolean>;
|
|
4220
|
+
readonly slides: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
4221
|
+
readonly altText: Schema.optionalKey<Schema.String>;
|
|
4222
|
+
readonly userTags: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
4223
|
+
readonly username: Schema.String;
|
|
4224
|
+
readonly x: Schema.optionalKey<Schema.Number>;
|
|
4225
|
+
readonly y: Schema.optionalKey<Schema.Number>;
|
|
4226
|
+
}>>>;
|
|
4227
|
+
}>>>;
|
|
4228
|
+
readonly firstComment: Schema.optionalKey<Schema.String>;
|
|
4229
|
+
readonly commentsEnabled: Schema.optionalKey<Schema.Boolean>;
|
|
4230
|
+
readonly collaborators: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
4231
|
+
readonly locationId: Schema.optionalKey<Schema.String>;
|
|
4232
|
+
readonly isPaidPartnership: Schema.optionalKey<Schema.Boolean>;
|
|
4233
|
+
readonly brandedContentSponsors: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [
|
|
4234
|
+
Schema.String,
|
|
4235
|
+
Schema.String
|
|
4236
|
+
]>>>;
|
|
4237
|
+
readonly isAiGenerated: Schema.optionalKey<Schema.Boolean>;
|
|
4238
|
+
}>,
|
|
4239
|
+
Schema.Struct<{
|
|
4240
|
+
readonly muteAudio: Schema.optionalKey<Schema.Boolean>;
|
|
4241
|
+
readonly userTags: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
4242
|
+
readonly username: Schema.String;
|
|
4243
|
+
readonly x: Schema.optionalKey<Schema.Number>;
|
|
4244
|
+
readonly y: Schema.optionalKey<Schema.Number>;
|
|
4245
|
+
}>>>;
|
|
4246
|
+
readonly isAiGenerated: Schema.optionalKey<Schema.Boolean>;
|
|
4247
|
+
}>,
|
|
4248
|
+
Schema.Struct<{
|
|
4249
|
+
readonly poll: Schema.optionalKey<Schema.Struct<{
|
|
4250
|
+
readonly question: Schema.String;
|
|
4251
|
+
readonly options: Schema.$Array<Schema.String>;
|
|
4252
|
+
readonly duration: Schema.Literals<readonly [
|
|
4253
|
+
"ONE_DAY",
|
|
4254
|
+
"THREE_DAYS",
|
|
4255
|
+
"SEVEN_DAYS",
|
|
4256
|
+
"FOURTEEN_DAYS"
|
|
4257
|
+
]>;
|
|
4258
|
+
}>>;
|
|
4259
|
+
readonly firstComment: Schema.optionalKey<Schema.String>;
|
|
4260
|
+
readonly thread: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
4261
|
+
readonly visibility: Schema.optionalKey<Schema.Literals<readonly [
|
|
4262
|
+
"PUBLIC",
|
|
4263
|
+
"CONNECTIONS"
|
|
4264
|
+
]>>;
|
|
4265
|
+
readonly altText: Schema.optionalKey<Schema.String>;
|
|
4266
|
+
readonly documentTitle: Schema.optionalKey<Schema.Trim>;
|
|
4267
|
+
}>,
|
|
4268
|
+
Schema.Struct<{
|
|
4269
|
+
readonly subreddit: Schema.String;
|
|
4270
|
+
readonly title: Schema.String;
|
|
4271
|
+
readonly link: Schema.optionalKey<Schema.String>;
|
|
4272
|
+
readonly flairId: Schema.optionalKey<Schema.String>;
|
|
4273
|
+
readonly flairText: Schema.optionalKey<Schema.String>;
|
|
4274
|
+
readonly nsfw: Schema.optionalKey<Schema.Boolean>;
|
|
4275
|
+
readonly spoiler: Schema.optionalKey<Schema.Boolean>;
|
|
4276
|
+
readonly sendReplies: Schema.optionalKey<Schema.Boolean>;
|
|
4277
|
+
readonly thumbnailMediaId: Schema.optionalKey<Schema.brand<Schema.String, "MediaId">>;
|
|
4278
|
+
readonly firstComment: Schema.optionalKey<Schema.String>;
|
|
4279
|
+
}>,
|
|
4280
|
+
Schema.Struct<{
|
|
4281
|
+
readonly contentType: Schema.optionalKey<Schema.Literals<readonly [
|
|
4282
|
+
"story",
|
|
4283
|
+
"saved_story",
|
|
4284
|
+
"spotlight"
|
|
4285
|
+
]>>;
|
|
4286
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
4287
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
4288
|
+
readonly link: Schema.optionalKey<Schema.String>;
|
|
4289
|
+
readonly locale: Schema.optionalKey<Schema.String>;
|
|
4290
|
+
}>,
|
|
4291
|
+
Schema.Struct<{
|
|
4292
|
+
readonly firstComment: Schema.optionalKey<Schema.String>;
|
|
4293
|
+
readonly thread: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
4294
|
+
}>,
|
|
4295
|
+
Schema.Struct<{
|
|
4296
|
+
readonly poll: Schema.optionalKey<Schema.Struct<{
|
|
4297
|
+
readonly options: Schema.$Array<Schema.String>;
|
|
4298
|
+
readonly durationMinutes: Schema.Number;
|
|
4299
|
+
}>>;
|
|
4300
|
+
readonly replySettings: Schema.optionalKey<Schema.Literals<readonly [
|
|
4301
|
+
"following",
|
|
4302
|
+
"mentionedUsers",
|
|
4303
|
+
"subscribers",
|
|
4304
|
+
"verified"
|
|
4305
|
+
]>>;
|
|
4306
|
+
readonly quotePostId: Schema.optionalKey<Schema.String>;
|
|
4307
|
+
readonly mediaTaggedUserIds: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
4308
|
+
readonly placeId: Schema.optionalKey<Schema.String>;
|
|
4309
|
+
readonly firstComment: Schema.optionalKey<Schema.String>;
|
|
4310
|
+
readonly thread: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
4311
|
+
readonly article: Schema.optionalKey<Schema.Struct<{
|
|
4312
|
+
readonly title: Schema.String;
|
|
4313
|
+
readonly content: Schema.String;
|
|
4314
|
+
}>>;
|
|
4315
|
+
}>,
|
|
4316
|
+
Schema.Struct<{
|
|
4317
|
+
readonly title: Schema.String;
|
|
4318
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
4319
|
+
readonly privacyStatus: Schema.Literals<readonly [
|
|
4320
|
+
"public",
|
|
4321
|
+
"unlisted",
|
|
4322
|
+
"private"
|
|
4323
|
+
]>;
|
|
4324
|
+
readonly firstComment: Schema.optionalKey<Schema.String>;
|
|
4325
|
+
readonly tags: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
4326
|
+
readonly categoryId: Schema.optionalKey<Schema.String>;
|
|
4327
|
+
readonly madeForKids: Schema.optionalKey<Schema.Boolean>;
|
|
4328
|
+
readonly containsSyntheticMedia: Schema.optionalKey<Schema.Boolean>;
|
|
4329
|
+
readonly thumbnailMediaId: Schema.optionalKey<Schema.brand<Schema.String, "MediaId">>;
|
|
4330
|
+
readonly notifySubscribers: Schema.optionalKey<Schema.Boolean>;
|
|
4331
|
+
readonly license: Schema.optionalKey<Schema.Literals<readonly [
|
|
4332
|
+
"youtube",
|
|
4333
|
+
"creativeCommon"
|
|
4334
|
+
]>>;
|
|
4335
|
+
readonly embeddable: Schema.optionalKey<Schema.Boolean>;
|
|
4336
|
+
readonly publicStatsViewable: Schema.optionalKey<Schema.Boolean>;
|
|
4337
|
+
}>,
|
|
4338
|
+
Schema.Struct<{
|
|
4339
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
4340
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
4341
|
+
readonly link: Schema.optionalKey<Schema.String>;
|
|
4342
|
+
readonly altText: Schema.optionalKey<Schema.String>;
|
|
4343
|
+
}>,
|
|
4344
|
+
Schema.Union<readonly [
|
|
4345
|
+
Schema.Struct<{
|
|
4346
|
+
readonly format: Schema.optionalKey<Schema.Literal<"video">>;
|
|
4347
|
+
readonly disableDuet: Schema.optionalKey<Schema.Boolean>;
|
|
4348
|
+
readonly disableStitch: Schema.optionalKey<Schema.Boolean>;
|
|
4349
|
+
readonly privacy: Schema.Literals<readonly [
|
|
4350
|
+
"PUBLIC_TO_EVERYONE",
|
|
4351
|
+
"MUTUAL_FOLLOW_FRIENDS",
|
|
4352
|
+
"FOLLOWER_OF_CREATOR",
|
|
4353
|
+
"SELF_ONLY"
|
|
4354
|
+
]>;
|
|
4355
|
+
readonly commercialDisclosure: Schema.optionalKey<Schema.Literals<readonly [
|
|
4356
|
+
"none",
|
|
4357
|
+
"own_brand",
|
|
4358
|
+
"paid_partnership"
|
|
4359
|
+
]>>;
|
|
4360
|
+
readonly isAiGenerated: Schema.optionalKey<Schema.Boolean>;
|
|
4361
|
+
readonly disableComment: Schema.optionalKey<Schema.Boolean>;
|
|
4362
|
+
readonly nativeDraft: Schema.optionalKey<Schema.Boolean>;
|
|
4363
|
+
}>,
|
|
4364
|
+
Schema.Struct<{
|
|
4365
|
+
readonly format: Schema.Literal<"photo">;
|
|
4366
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
4367
|
+
readonly coverIndex: Schema.optionalKey<Schema.Int>;
|
|
4368
|
+
readonly autoAddMusic: Schema.optionalKey<Schema.Boolean>;
|
|
4369
|
+
readonly privacy: Schema.Literals<readonly [
|
|
4370
|
+
"PUBLIC_TO_EVERYONE",
|
|
4371
|
+
"MUTUAL_FOLLOW_FRIENDS",
|
|
4372
|
+
"FOLLOWER_OF_CREATOR",
|
|
4373
|
+
"SELF_ONLY"
|
|
4374
|
+
]>;
|
|
4375
|
+
readonly commercialDisclosure: Schema.optionalKey<Schema.Literals<readonly [
|
|
4376
|
+
"none",
|
|
4377
|
+
"own_brand",
|
|
4378
|
+
"paid_partnership"
|
|
4379
|
+
]>>;
|
|
4380
|
+
readonly isAiGenerated: Schema.optionalKey<Schema.Boolean>;
|
|
4381
|
+
readonly disableComment: Schema.optionalKey<Schema.Boolean>;
|
|
4382
|
+
readonly nativeDraft: Schema.optionalKey<Schema.Boolean>;
|
|
4383
|
+
}>
|
|
4384
|
+
]>,
|
|
4385
|
+
Schema.Struct<{
|
|
4386
|
+
readonly topicType: Schema.optionalKey<Schema.Literals<readonly [
|
|
4387
|
+
"standard",
|
|
4388
|
+
"event",
|
|
4389
|
+
"offer"
|
|
4390
|
+
]>>;
|
|
4391
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
4392
|
+
readonly startsAt: Schema.optionalKey<Schema.String>;
|
|
4393
|
+
readonly endsAt: Schema.optionalKey<Schema.String>;
|
|
4394
|
+
readonly couponCode: Schema.optionalKey<Schema.String>;
|
|
4395
|
+
readonly redeemUrl: Schema.optionalKey<Schema.String>;
|
|
4396
|
+
readonly terms: Schema.optionalKey<Schema.String>;
|
|
4397
|
+
readonly callToAction: Schema.optionalKey<Schema.Literals<readonly [
|
|
4398
|
+
"book",
|
|
4399
|
+
"order",
|
|
4400
|
+
"shop",
|
|
4401
|
+
"learn_more",
|
|
4402
|
+
"sign_up",
|
|
4403
|
+
"call"
|
|
4404
|
+
]>>;
|
|
4405
|
+
readonly callToActionUrl: Schema.optionalKey<Schema.String>;
|
|
4406
|
+
}>
|
|
4407
|
+
]>, never>>;
|
|
4408
|
+
}>>>;
|
|
4067
4409
|
readonly text: Schema.optionalKey<Schema.Trim>;
|
|
4068
|
-
|
|
4069
|
-
|
|
4070
|
-
|
|
4071
|
-
"instagram",
|
|
4072
|
-
"linkedin",
|
|
4073
|
-
"pinterest",
|
|
4074
|
-
"reddit",
|
|
4075
|
-
"snapchat",
|
|
4076
|
-
"tiktok",
|
|
4077
|
-
"threads",
|
|
4078
|
-
"x",
|
|
4079
|
-
"youtube",
|
|
4080
|
-
"google_business"
|
|
4081
|
-
]>>>;
|
|
4082
|
-
readonly accounts: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "AccountId">>>;
|
|
4410
|
+
}>;
|
|
4411
|
+
type CreatePost = typeof CreatePost.Type;
|
|
4412
|
+
declare const UpdatePost: Schema.Struct<{
|
|
4083
4413
|
readonly targets: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
4084
4414
|
readonly accountId: Schema.brand<Schema.String, "AccountId">;
|
|
4085
4415
|
readonly provider: Schema.optionalKey<Schema.Literals<readonly [
|
|
@@ -4388,6 +4718,23 @@ declare const CreatePost: Schema.Struct<{
|
|
|
4388
4718
|
}>
|
|
4389
4719
|
]>, never>>;
|
|
4390
4720
|
}>>>;
|
|
4721
|
+
readonly expectedRevision: Schema.optionalKey<Schema.Int>;
|
|
4722
|
+
readonly platforms: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly [
|
|
4723
|
+
"bluesky",
|
|
4724
|
+
"facebook",
|
|
4725
|
+
"instagram",
|
|
4726
|
+
"linkedin",
|
|
4727
|
+
"pinterest",
|
|
4728
|
+
"reddit",
|
|
4729
|
+
"snapchat",
|
|
4730
|
+
"tiktok",
|
|
4731
|
+
"threads",
|
|
4732
|
+
"x",
|
|
4733
|
+
"youtube",
|
|
4734
|
+
"google_business"
|
|
4735
|
+
]>>>;
|
|
4736
|
+
readonly accounts: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "AccountId">>>;
|
|
4737
|
+
readonly text: Schema.optionalKey<Schema.Trim>;
|
|
4391
4738
|
readonly media: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [
|
|
4392
4739
|
Schema.Struct<{
|
|
4393
4740
|
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
@@ -4396,15 +4743,26 @@ declare const CreatePost: Schema.Struct<{
|
|
|
4396
4743
|
readonly url: Schema.String;
|
|
4397
4744
|
}>
|
|
4398
4745
|
]>>>;
|
|
4399
|
-
readonly scheduledAt: Schema.optionalKey<Schema.
|
|
4400
|
-
|
|
4401
|
-
|
|
4746
|
+
readonly scheduledAt: Schema.optionalKey<Schema.Union<readonly [
|
|
4747
|
+
Schema.String,
|
|
4748
|
+
Schema.Null
|
|
4749
|
+
]>>;
|
|
4402
4750
|
}>;
|
|
4403
|
-
type
|
|
4404
|
-
declare const
|
|
4405
|
-
readonly
|
|
4406
|
-
readonly
|
|
4407
|
-
readonly
|
|
4751
|
+
type UpdatePost = typeof UpdatePost.Type;
|
|
4752
|
+
declare const Post: Schema.Struct<{
|
|
4753
|
+
readonly postId: Schema.brand<Schema.String, "PostId">;
|
|
4754
|
+
readonly isDraft: Schema.Boolean;
|
|
4755
|
+
readonly revision: Schema.Int;
|
|
4756
|
+
readonly text: Schema.Trim;
|
|
4757
|
+
readonly media: Schema.$Array<Schema.Union<readonly [
|
|
4758
|
+
Schema.Struct<{
|
|
4759
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
4760
|
+
}>,
|
|
4761
|
+
Schema.Struct<{
|
|
4762
|
+
readonly url: Schema.String;
|
|
4763
|
+
}>
|
|
4764
|
+
]>>;
|
|
4765
|
+
readonly targets: Schema.$Array<Schema.Union<readonly [
|
|
4408
4766
|
Schema.Struct<{
|
|
4409
4767
|
readonly settings: Schema.optionalKey<Schema.Struct<{
|
|
4410
4768
|
readonly firstComment: Schema.optionalKey<Schema.String>;
|
|
@@ -4994,18 +5352,100 @@ declare const UpdatePost: Schema.Struct<{
|
|
|
4994
5352
|
readonly provider: Schema.Literal<"google_business">;
|
|
4995
5353
|
readonly placement: Schema.Literal<"feed">;
|
|
4996
5354
|
}>
|
|
4997
|
-
]
|
|
4998
|
-
readonly
|
|
4999
|
-
|
|
5000
|
-
|
|
5001
|
-
|
|
5002
|
-
|
|
5003
|
-
|
|
5004
|
-
|
|
5005
|
-
|
|
5355
|
+
]>>;
|
|
5356
|
+
readonly scheduledAt: Schema.NullOr<Schema.String>;
|
|
5357
|
+
readonly deliveries: Schema.$Array<Schema.Struct<{
|
|
5358
|
+
readonly status: Schema.Literals<readonly [
|
|
5359
|
+
"scheduled",
|
|
5360
|
+
"queued",
|
|
5361
|
+
"submitting",
|
|
5362
|
+
"confirming",
|
|
5363
|
+
"published",
|
|
5364
|
+
"provider_draft",
|
|
5365
|
+
"failed",
|
|
5366
|
+
"unresolved",
|
|
5367
|
+
"cancelled"
|
|
5368
|
+
]>;
|
|
5369
|
+
readonly providerRef: Schema.optionalKey<Schema.Struct<{
|
|
5370
|
+
readonly id: Schema.String;
|
|
5371
|
+
readonly kind: Schema.String;
|
|
5372
|
+
}>>;
|
|
5373
|
+
readonly url: Schema.optionalKey<Schema.String>;
|
|
5374
|
+
readonly issue: Schema.optionalKey<Schema.Literals<readonly [
|
|
5375
|
+
"authorization_changed",
|
|
5376
|
+
"account_not_ready",
|
|
5377
|
+
"credential_unavailable",
|
|
5378
|
+
"media_preparation_failed",
|
|
5379
|
+
"video_compression_failed",
|
|
5380
|
+
"audio_unavailable",
|
|
5381
|
+
"provider_rejected",
|
|
5382
|
+
"tiktok_settings_unavailable",
|
|
5383
|
+
"tiktok_settings_not_allowed",
|
|
5384
|
+
"tiktok_processing_failed",
|
|
5385
|
+
"submission_uncertain",
|
|
5386
|
+
"confirmation_unavailable",
|
|
5387
|
+
"billing_inactive",
|
|
5388
|
+
"spend_cap_reached",
|
|
5389
|
+
"insufficient_credit"
|
|
5390
|
+
]>>;
|
|
5391
|
+
readonly canRetry: Schema.Boolean;
|
|
5392
|
+
readonly canReconcile: Schema.Boolean;
|
|
5393
|
+
readonly nextAction: Schema.optionalKey<Schema.String>;
|
|
5394
|
+
readonly revision: Schema.Int;
|
|
5395
|
+
readonly provider: Schema.Literals<readonly [
|
|
5396
|
+
"bluesky",
|
|
5397
|
+
"facebook",
|
|
5398
|
+
"instagram",
|
|
5399
|
+
"linkedin",
|
|
5400
|
+
"pinterest",
|
|
5401
|
+
"reddit",
|
|
5402
|
+
"snapchat",
|
|
5403
|
+
"tiktok",
|
|
5404
|
+
"threads",
|
|
5405
|
+
"x",
|
|
5406
|
+
"youtube",
|
|
5407
|
+
"google_business"
|
|
5408
|
+
]>;
|
|
5409
|
+
readonly placement: Schema.Literals<readonly [
|
|
5410
|
+
"feed",
|
|
5411
|
+
"reel",
|
|
5412
|
+
"story",
|
|
5413
|
+
"carousel",
|
|
5414
|
+
"video",
|
|
5415
|
+
"pin"
|
|
5416
|
+
]>;
|
|
5417
|
+
readonly queueId: Schema.optionalKey<Schema.String>;
|
|
5418
|
+
readonly slotId: Schema.optionalKey<Schema.String>;
|
|
5419
|
+
readonly assignmentId: Schema.optionalKey<Schema.String>;
|
|
5420
|
+
readonly occurrenceDate: Schema.optionalKey<Schema.String>;
|
|
5421
|
+
readonly localDate: Schema.optionalKey<Schema.String>;
|
|
5422
|
+
readonly localTime: Schema.optionalKey<Schema.String>;
|
|
5423
|
+
readonly timezone: Schema.optionalKey<Schema.String>;
|
|
5424
|
+
readonly targetId: Schema.brand<Schema.String, "TargetId">;
|
|
5425
|
+
readonly attemptId: Schema.brand<Schema.String, "AttemptId">;
|
|
5426
|
+
readonly accountId: Schema.brand<Schema.String, "AccountId">;
|
|
5427
|
+
readonly scheduledAt: Schema.optionalKey<Schema.String>;
|
|
5428
|
+
}>>;
|
|
5429
|
+
readonly status: Schema.Union<readonly [
|
|
5430
|
+
Schema.Literal<"draft">,
|
|
5431
|
+
Schema.Literals<readonly [
|
|
5432
|
+
"scheduled",
|
|
5433
|
+
"queued",
|
|
5434
|
+
"submitting",
|
|
5435
|
+
"confirming",
|
|
5436
|
+
"published",
|
|
5437
|
+
"provider_draft",
|
|
5438
|
+
"failed",
|
|
5439
|
+
"unresolved",
|
|
5440
|
+
"cancelled"
|
|
5441
|
+
]>
|
|
5442
|
+
]>;
|
|
5443
|
+
readonly createdAt: Schema.String;
|
|
5444
|
+
readonly updatedAt: Schema.String;
|
|
5006
5445
|
}>;
|
|
5007
|
-
type
|
|
5008
|
-
declare const
|
|
5446
|
+
type Post = typeof Post.Type;
|
|
5447
|
+
declare const PostCreated: Schema.Struct<{
|
|
5448
|
+
readonly idempotencyKey: Schema.optionalKey<Schema.String>;
|
|
5009
5449
|
readonly postId: Schema.brand<Schema.String, "PostId">;
|
|
5010
5450
|
readonly isDraft: Schema.Boolean;
|
|
5011
5451
|
readonly revision: Schema.Int;
|
|
@@ -5609,6 +6049,7 @@ declare const Post: Schema.Struct<{
|
|
|
5609
6049
|
readonly placement: Schema.Literal<"feed">;
|
|
5610
6050
|
}>
|
|
5611
6051
|
]>>;
|
|
6052
|
+
readonly scheduledAt: Schema.NullOr<Schema.String>;
|
|
5612
6053
|
readonly deliveries: Schema.$Array<Schema.Struct<{
|
|
5613
6054
|
readonly status: Schema.Literals<readonly [
|
|
5614
6055
|
"scheduled",
|
|
@@ -5698,7 +6139,7 @@ declare const Post: Schema.Struct<{
|
|
|
5698
6139
|
readonly createdAt: Schema.String;
|
|
5699
6140
|
readonly updatedAt: Schema.String;
|
|
5700
6141
|
}>;
|
|
5701
|
-
type
|
|
6142
|
+
type PostCreated = typeof PostCreated.Type;
|
|
5702
6143
|
declare const PostCreateResult: Schema.Union<readonly [
|
|
5703
6144
|
Schema.Struct<{
|
|
5704
6145
|
readonly postId: Schema.brand<Schema.String, "PostId">;
|
|
@@ -6304,6 +6745,7 @@ declare const PostCreateResult: Schema.Union<readonly [
|
|
|
6304
6745
|
readonly placement: Schema.Literal<"feed">;
|
|
6305
6746
|
}>
|
|
6306
6747
|
]>>;
|
|
6748
|
+
readonly scheduledAt: Schema.NullOr<Schema.String>;
|
|
6307
6749
|
readonly deliveries: Schema.$Array<Schema.Struct<{
|
|
6308
6750
|
readonly status: Schema.Literals<readonly [
|
|
6309
6751
|
"scheduled",
|
|
@@ -11918,7 +12360,7 @@ interface PostsClient {
|
|
|
11918
12360
|
iterate(options?: PostsListOptions, iteration?: IterationOptions): AsyncGenerator<PostList["data"][number], void, undefined>;
|
|
11919
12361
|
create(input: CreatePostInput & {
|
|
11920
12362
|
isDraft: true;
|
|
11921
|
-
}): Promise<
|
|
12363
|
+
}): Promise<PostCreated>;
|
|
11922
12364
|
create(input: CreatePostInput & {
|
|
11923
12365
|
isDraft?: false;
|
|
11924
12366
|
}): Promise<PublishAcceptedResult>;
|
|
@@ -11928,7 +12370,8 @@ interface PostsClient {
|
|
|
11928
12370
|
validate(postId: PostId): Promise<PostValidation>;
|
|
11929
12371
|
/** Predict whether this body can be published without saving it. */
|
|
11930
12372
|
validateBody(input: CreatePost): Promise<PostValidation>;
|
|
11931
|
-
|
|
12373
|
+
/** Publish the saved draft; every field is optional. */
|
|
12374
|
+
publish(postId: PostId, input?: PublishPostInput): Promise<PublishAcceptedResult>;
|
|
11932
12375
|
delete(postId: PostId): Promise<PostArchived>;
|
|
11933
12376
|
status(postId: PostId): Promise<PublishStatus>;
|
|
11934
12377
|
attempts(postId: PostId, targetId: TargetId, options?: PageOptions): Promise<DeliveryHistory>;
|
|
@@ -13930,7 +14373,10 @@ export type PublishAcceptedTarget = {
|
|
|
13930
14373
|
};
|
|
13931
14374
|
export type DestinationSelection = {
|
|
13932
14375
|
accountId: string;
|
|
13933
|
-
|
|
14376
|
+
/**
|
|
14377
|
+
* Omit to select the draft's only destination for this account.
|
|
14378
|
+
*/
|
|
14379
|
+
placement?: "feed" | "reel" | "story" | "carousel" | "video" | "pin";
|
|
13934
14380
|
scheduledAt?: string | null;
|
|
13935
14381
|
queueId?: string;
|
|
13936
14382
|
};
|
|
@@ -13952,6 +14398,16 @@ type PostValidation$1 = {
|
|
|
13952
14398
|
}>;
|
|
13953
14399
|
billing?: PostBillingEstimate;
|
|
13954
14400
|
};
|
|
14401
|
+
export type PostSubmittedEncoded = {
|
|
14402
|
+
detail?: string;
|
|
14403
|
+
instance?: string;
|
|
14404
|
+
code: "post_submitted";
|
|
14405
|
+
targetIds: Array<string>;
|
|
14406
|
+
nextAction: string;
|
|
14407
|
+
type: "urn:pubnio:problem:post-submitted";
|
|
14408
|
+
status?: 409;
|
|
14409
|
+
title?: "Post already submitted";
|
|
14410
|
+
};
|
|
13955
14411
|
type Post$1 = {
|
|
13956
14412
|
postId: string;
|
|
13957
14413
|
isDraft: boolean;
|
|
@@ -13962,6 +14418,10 @@ type Post$1 = {
|
|
|
13962
14418
|
text: string;
|
|
13963
14419
|
media: Array<MediaInput>;
|
|
13964
14420
|
targets: Array<PublishTarget>;
|
|
14421
|
+
/**
|
|
14422
|
+
* The default time for targets without their own scheduledAt. null publishes them when submitted.
|
|
14423
|
+
*/
|
|
14424
|
+
scheduledAt: string | null;
|
|
13965
14425
|
deliveries: Array<DeliveryStatus>;
|
|
13966
14426
|
status: PostState;
|
|
13967
14427
|
createdAt: string;
|
|
@@ -14391,17 +14851,37 @@ export type BlueskyFeedSettings = {
|
|
|
14391
14851
|
thread?: Array<string>;
|
|
14392
14852
|
altText?: string;
|
|
14393
14853
|
};
|
|
14854
|
+
/**
|
|
14855
|
+
* Edit a draft with the same fields as create. scheduledAt sets the default time; null clears it. One selector (platforms, accounts, or targets) replaces the saved targets; an empty targets array removes them.
|
|
14856
|
+
*/
|
|
14394
14857
|
type UpdatePost$1 = {
|
|
14395
14858
|
/**
|
|
14396
14859
|
* At most 128000 characters after trimming.
|
|
14397
14860
|
*/
|
|
14398
14861
|
text?: string;
|
|
14399
|
-
targets?: Array<PublishTarget>;
|
|
14400
14862
|
media?: Array<MediaInput>;
|
|
14863
|
+
scheduledAt?: string | null;
|
|
14864
|
+
platforms?: Array<"bluesky" | "facebook" | "instagram" | "linkedin" | "pinterest" | "reddit" | "snapchat" | "tiktok" | "threads" | "x" | "youtube" | "google_business">;
|
|
14865
|
+
accounts?: Array<string>;
|
|
14866
|
+
targets?: Array<CreatePostTarget>;
|
|
14401
14867
|
expectedRevision?: number;
|
|
14402
14868
|
};
|
|
14869
|
+
export type CreatePostTarget = {
|
|
14870
|
+
accountId: string;
|
|
14871
|
+
provider?: "bluesky" | "facebook" | "instagram" | "linkedin" | "pinterest" | "reddit" | "snapchat" | "tiktok" | "threads" | "x" | "youtube" | "google_business";
|
|
14872
|
+
placement?: "feed" | "reel" | "story" | "carousel" | "video" | "pin";
|
|
14873
|
+
text?: string;
|
|
14874
|
+
thread?: Array<string>;
|
|
14875
|
+
media?: Array<MediaInput>;
|
|
14876
|
+
scheduledAt?: string | null;
|
|
14877
|
+
/**
|
|
14878
|
+
* Assign this destination to its connected account's schedule queue.
|
|
14879
|
+
*/
|
|
14880
|
+
queueId?: string;
|
|
14881
|
+
settings?: BlueskyFeedSettings | FacebookFeedSettings | FacebookReelSettings | FacebookStorySettings | InstagramFeedSettings | InstagramReelSettings | InstagramCarouselSettings | InstagramStorySettings | LinkedInFeedSettings | RedditFeedSettings | SnapchatStorySettings | ThreadsFeedSettings | XFeedSettings | YouTubeVideoSettings | PinterestPinSettings | TikTokFeedSettings | GoogleBusinessFeedSettings;
|
|
14882
|
+
};
|
|
14403
14883
|
/**
|
|
14404
|
-
* Send
|
|
14884
|
+
* Send one selector: platforms, accounts, or targets. scheduledAt is the default time; targets[].scheduledAt overrides it per destination. isDraft saves the same body without submitting.
|
|
14405
14885
|
*/
|
|
14406
14886
|
type CreatePost$1 = {
|
|
14407
14887
|
/**
|
|
@@ -14419,19 +14899,25 @@ type CreatePost$1 = {
|
|
|
14419
14899
|
*/
|
|
14420
14900
|
isDraft?: boolean;
|
|
14421
14901
|
};
|
|
14422
|
-
|
|
14423
|
-
|
|
14424
|
-
|
|
14425
|
-
|
|
14426
|
-
text?: string;
|
|
14427
|
-
thread?: Array<string>;
|
|
14428
|
-
media?: Array<MediaInput>;
|
|
14429
|
-
scheduledAt?: string | null;
|
|
14902
|
+
type PostCreated$1 = {
|
|
14903
|
+
postId: string;
|
|
14904
|
+
isDraft: boolean;
|
|
14905
|
+
revision: number;
|
|
14430
14906
|
/**
|
|
14431
|
-
*
|
|
14907
|
+
* At most 128000 characters after trimming.
|
|
14432
14908
|
*/
|
|
14433
|
-
|
|
14434
|
-
|
|
14909
|
+
text: string;
|
|
14910
|
+
media: Array<MediaInput>;
|
|
14911
|
+
targets: Array<PublishTarget>;
|
|
14912
|
+
/**
|
|
14913
|
+
* The default time for targets without their own scheduledAt. null publishes them when submitted.
|
|
14914
|
+
*/
|
|
14915
|
+
scheduledAt: string | null;
|
|
14916
|
+
deliveries: Array<DeliveryStatus>;
|
|
14917
|
+
status: PostState;
|
|
14918
|
+
createdAt: string;
|
|
14919
|
+
updatedAt: string;
|
|
14920
|
+
idempotencyKey?: string;
|
|
14435
14921
|
};
|
|
14436
14922
|
type PostList$1 = {
|
|
14437
14923
|
data: Array<PostSummary>;
|
|
@@ -21861,9 +22347,9 @@ export type PostsCreateErrors = {
|
|
|
21861
22347
|
export type PostsCreateError = PostsCreateErrors[keyof PostsCreateErrors];
|
|
21862
22348
|
export type PostsCreateResponses = {
|
|
21863
22349
|
/**
|
|
21864
|
-
*
|
|
22350
|
+
* PostCreated
|
|
21865
22351
|
*/
|
|
21866
|
-
201:
|
|
22352
|
+
201: PostCreated$1;
|
|
21867
22353
|
/**
|
|
21868
22354
|
* PublishAccepted
|
|
21869
22355
|
*/
|
|
@@ -22062,9 +22548,9 @@ export type PostsUpdateErrors = {
|
|
|
22062
22548
|
*/
|
|
22063
22549
|
404: NotFoundEncoded | QueueNotFoundEncoded;
|
|
22064
22550
|
/**
|
|
22065
|
-
* Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Post revision changed
|
|
22551
|
+
* Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Post revision changed | Post already submitted
|
|
22066
22552
|
*/
|
|
22067
|
-
409: ConflictEncoded | ProviderReconnectRequiredEncoded | CapabilityUnverifiedEncoded | QueueAlreadyExistsEncoded | QueueDefaultRequiredEncoded | QueueVersionConflictEncoded | QueueUnavailableEncoded | QueueCapacityReachedEncoded | QueueNoSlotAvailableEncoded | QueueSlotConflictEncoded | PostRevisionConflictEncoded;
|
|
22553
|
+
409: ConflictEncoded | ProviderReconnectRequiredEncoded | CapabilityUnverifiedEncoded | QueueAlreadyExistsEncoded | QueueDefaultRequiredEncoded | QueueVersionConflictEncoded | QueueUnavailableEncoded | QueueCapacityReachedEncoded | QueueNoSlotAvailableEncoded | QueueSlotConflictEncoded | PostRevisionConflictEncoded | PostSubmittedEncoded;
|
|
22068
22554
|
/**
|
|
22069
22555
|
* Error
|
|
22070
22556
|
*/
|
|
@@ -22152,14 +22638,17 @@ export type PostsValidateResponses = {
|
|
|
22152
22638
|
export type PostsValidateResponse = PostsValidateResponses[keyof PostsValidateResponses];
|
|
22153
22639
|
export type PostsPublishData = {
|
|
22154
22640
|
body: {
|
|
22155
|
-
|
|
22641
|
+
/**
|
|
22642
|
+
* Publish only if the draft is still at this revision. Omit to publish the saved draft as it is.
|
|
22643
|
+
*/
|
|
22644
|
+
expectedRevision?: number;
|
|
22156
22645
|
scheduledAt?: string;
|
|
22157
22646
|
/**
|
|
22158
22647
|
* Select every draft placement for these accounts. Use targets for exact selection instead.
|
|
22159
22648
|
*/
|
|
22160
|
-
|
|
22649
|
+
accounts?: Array<string>;
|
|
22161
22650
|
/**
|
|
22162
|
-
* Select exact draft destinations and optionally override each schedule. Omit
|
|
22651
|
+
* Select exact draft destinations and optionally override each schedule. Omit accounts when using targets.
|
|
22163
22652
|
*/
|
|
22164
22653
|
targets?: Array<DestinationSelection>;
|
|
22165
22654
|
};
|
|
@@ -26846,7 +27335,7 @@ declare const postsList: <ThrowOnError extends boolean = false>(options: Options
|
|
|
26846
27335
|
/**
|
|
26847
27336
|
* Create a post or draft
|
|
26848
27337
|
*
|
|
26849
|
-
* Send exactly one selector for a direct post: platforms resolves the single ready account per provider (ambiguous providers return 422 with candidates), accounts selects exact account IDs, and targets selects exact destinations with an optional provider and placement. The server derives provider from accountId and defaults placement per provider. publishNow defaults to true when scheduledAt is absent. Set isDraft to true to save a draft
|
|
27338
|
+
* Send exactly one selector for a direct post: platforms resolves the single ready account per provider (ambiguous providers return 422 with candidates), accounts selects exact account IDs, and targets selects exact destinations with an optional provider and placement. The server derives provider from accountId and defaults placement per provider. publishNow defaults to true when scheduledAt is absent. scheduledAt is the default time and targets[].scheduledAt gives one destination its own time (null for now). Set isDraft to true to save the same body as a draft without submitting; a draft may omit the selector, and publishing it later needs no body. An omitted Idempotency-Key is generated and returned for posts and drafts; the same key and body replay for 24 hours and a changed body returns 409.
|
|
26850
27339
|
*
|
|
26851
27340
|
* Requires an API key with the `read` scope or a signed-in workspace member. Publishing or scheduling, anything but a draft, needs the `publish` scope or an owner.
|
|
26852
27341
|
*/
|
|
@@ -26878,7 +27367,7 @@ declare const postsGet: <ThrowOnError extends boolean = false>(options: Options$
|
|
|
26878
27367
|
/**
|
|
26879
27368
|
* Edit a draft
|
|
26880
27369
|
*
|
|
26881
|
-
* Omitted fields are preserved
|
|
27370
|
+
* Edits a draft; a submitted post returns 409 post_submitted. Omitted fields are preserved; supplied media and target arrays replace the saved arrays. Send expectedRevision to guard against editing an older draft.
|
|
26882
27371
|
*
|
|
26883
27372
|
* Requires an API key with the `read` scope or a signed-in workspace member.
|
|
26884
27373
|
*/
|
|
@@ -27461,6 +27950,7 @@ export {
|
|
|
27461
27950
|
PendingUserInviteList$1 as PendingUserInviteList,
|
|
27462
27951
|
Post$1 as Post,
|
|
27463
27952
|
PostAnalytics$1 as PostAnalytics,
|
|
27953
|
+
PostCreated$1 as PostCreated,
|
|
27464
27954
|
PostIssue$1 as PostIssue,
|
|
27465
27955
|
PostList$1 as PostList,
|
|
27466
27956
|
PostValidation$1 as PostValidation,
|