@vendasta/social-posts 5.48.0 → 5.50.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.
Files changed (43) hide show
  1. package/esm2020/lib/_internal/enums/api-v2.enum.mjs +8 -1
  2. package/esm2020/lib/_internal/enums/drafts-api.enum.mjs +7 -1
  3. package/esm2020/lib/_internal/enums/image-generation.enum.mjs +42 -0
  4. package/esm2020/lib/_internal/enums/index.mjs +6 -4
  5. package/esm2020/lib/_internal/enums/openapiv2.enum.mjs +57 -0
  6. package/esm2020/lib/_internal/image-generation.api.service.mjs +40 -0
  7. package/esm2020/lib/_internal/index.mjs +2 -1
  8. package/esm2020/lib/_internal/interfaces/api-v2.interface.mjs +1 -1
  9. package/esm2020/lib/_internal/interfaces/drafts-api.interface.mjs +1 -1
  10. package/esm2020/lib/_internal/interfaces/image-generation.interface.mjs +2 -0
  11. package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
  12. package/esm2020/lib/_internal/interfaces/openapiv2.interface.mjs +8 -0
  13. package/esm2020/lib/_internal/objects/api-v2.mjs +71 -25
  14. package/esm2020/lib/_internal/objects/drafts-api.mjs +7 -1
  15. package/esm2020/lib/_internal/objects/image-generation.mjs +155 -0
  16. package/esm2020/lib/_internal/objects/index.mjs +5 -3
  17. package/esm2020/lib/_internal/objects/openapiv2.mjs +1191 -0
  18. package/esm2020/lib/_internal/social-posts-v2.api.service.mjs +7 -2
  19. package/esm2020/lib/social-post-v2.service.mjs +4 -1
  20. package/fesm2015/vendasta-social-posts.mjs +1825 -279
  21. package/fesm2015/vendasta-social-posts.mjs.map +1 -1
  22. package/fesm2020/vendasta-social-posts.mjs +1825 -279
  23. package/fesm2020/vendasta-social-posts.mjs.map +1 -1
  24. package/lib/_internal/enums/api-v2.enum.d.ts +6 -0
  25. package/lib/_internal/enums/drafts-api.enum.d.ts +5 -0
  26. package/lib/_internal/enums/image-generation.enum.d.ts +30 -0
  27. package/lib/_internal/enums/index.d.ts +5 -3
  28. package/lib/_internal/enums/openapiv2.enum.d.ts +43 -0
  29. package/lib/_internal/image-generation.api.service.d.ts +13 -0
  30. package/lib/_internal/index.d.ts +1 -0
  31. package/lib/_internal/interfaces/api-v2.interface.d.ts +15 -8
  32. package/lib/_internal/interfaces/drafts-api.interface.d.ts +1 -0
  33. package/lib/_internal/interfaces/image-generation.interface.d.ts +28 -0
  34. package/lib/_internal/interfaces/index.d.ts +4 -2
  35. package/lib/_internal/interfaces/openapiv2.interface.d.ts +246 -0
  36. package/lib/_internal/objects/api-v2.d.ts +28 -15
  37. package/lib/_internal/objects/drafts-api.d.ts +1 -0
  38. package/lib/_internal/objects/image-generation.d.ts +42 -0
  39. package/lib/_internal/objects/index.d.ts +4 -2
  40. package/lib/_internal/objects/openapiv2.d.ts +354 -0
  41. package/lib/_internal/social-posts-v2.api.service.d.ts +3 -2
  42. package/lib/social-post-v2.service.d.ts +2 -1
  43. package/package.json +1 -1
@@ -4,7 +4,7 @@ import { of } from 'rxjs';
4
4
  import { HttpClient, HttpHeaders } from '@angular/common/http';
5
5
  import { map } from 'rxjs/operators';
6
6
 
7
- function enumStringToValue$p(enumRef, value) {
7
+ function enumStringToValue$r(enumRef, value) {
8
8
  if (typeof value === 'number') {
9
9
  return value;
10
10
  }
@@ -31,7 +31,7 @@ class FieldMask {
31
31
  }
32
32
  }
33
33
 
34
- function enumStringToValue$o(enumRef, value) {
34
+ function enumStringToValue$q(enumRef, value) {
35
35
  if (typeof value === 'number') {
36
36
  return value;
37
37
  }
@@ -203,6 +203,61 @@ var NamespaceType;
203
203
  NamespaceType[NamespaceType["ACCOUNT_GROUP"] = 2] = "ACCOUNT_GROUP";
204
204
  })(NamespaceType || (NamespaceType = {}));
205
205
 
206
+ // *********************************
207
+ // Code generated by sdkgen
208
+ // DO NOT EDIT!.
209
+ //
210
+ // Enums.
211
+ // *********************************
212
+ var SecuritySchemeFlow;
213
+ (function (SecuritySchemeFlow) {
214
+ SecuritySchemeFlow[SecuritySchemeFlow["FLOW_INVALID"] = 0] = "FLOW_INVALID";
215
+ SecuritySchemeFlow[SecuritySchemeFlow["FLOW_IMPLICIT"] = 1] = "FLOW_IMPLICIT";
216
+ SecuritySchemeFlow[SecuritySchemeFlow["FLOW_PASSWORD"] = 2] = "FLOW_PASSWORD";
217
+ SecuritySchemeFlow[SecuritySchemeFlow["FLOW_APPLICATION"] = 3] = "FLOW_APPLICATION";
218
+ SecuritySchemeFlow[SecuritySchemeFlow["FLOW_ACCESS_CODE"] = 4] = "FLOW_ACCESS_CODE";
219
+ })(SecuritySchemeFlow || (SecuritySchemeFlow = {}));
220
+ var SecuritySchemeIn;
221
+ (function (SecuritySchemeIn) {
222
+ SecuritySchemeIn[SecuritySchemeIn["IN_INVALID"] = 0] = "IN_INVALID";
223
+ SecuritySchemeIn[SecuritySchemeIn["IN_QUERY"] = 1] = "IN_QUERY";
224
+ SecuritySchemeIn[SecuritySchemeIn["IN_HEADER"] = 2] = "IN_HEADER";
225
+ })(SecuritySchemeIn || (SecuritySchemeIn = {}));
226
+ var JSONSchemaJSONSchemaSimpleTypes;
227
+ (function (JSONSchemaJSONSchemaSimpleTypes) {
228
+ JSONSchemaJSONSchemaSimpleTypes[JSONSchemaJSONSchemaSimpleTypes["UNKNOWN"] = 0] = "UNKNOWN";
229
+ JSONSchemaJSONSchemaSimpleTypes[JSONSchemaJSONSchemaSimpleTypes["ARRAY"] = 1] = "ARRAY";
230
+ JSONSchemaJSONSchemaSimpleTypes[JSONSchemaJSONSchemaSimpleTypes["BOOLEAN"] = 2] = "BOOLEAN";
231
+ JSONSchemaJSONSchemaSimpleTypes[JSONSchemaJSONSchemaSimpleTypes["INTEGER"] = 3] = "INTEGER";
232
+ JSONSchemaJSONSchemaSimpleTypes[JSONSchemaJSONSchemaSimpleTypes["NULL"] = 4] = "NULL";
233
+ JSONSchemaJSONSchemaSimpleTypes[JSONSchemaJSONSchemaSimpleTypes["NUMBER"] = 5] = "NUMBER";
234
+ JSONSchemaJSONSchemaSimpleTypes[JSONSchemaJSONSchemaSimpleTypes["OBJECT"] = 6] = "OBJECT";
235
+ JSONSchemaJSONSchemaSimpleTypes[JSONSchemaJSONSchemaSimpleTypes["STRING"] = 7] = "STRING";
236
+ })(JSONSchemaJSONSchemaSimpleTypes || (JSONSchemaJSONSchemaSimpleTypes = {}));
237
+ var Scheme;
238
+ (function (Scheme) {
239
+ Scheme[Scheme["UNKNOWN"] = 0] = "UNKNOWN";
240
+ Scheme[Scheme["HTTP"] = 1] = "HTTP";
241
+ Scheme[Scheme["HTTPS"] = 2] = "HTTPS";
242
+ Scheme[Scheme["WS"] = 3] = "WS";
243
+ Scheme[Scheme["WSS"] = 4] = "WSS";
244
+ })(Scheme || (Scheme = {}));
245
+ var HeaderParameterType;
246
+ (function (HeaderParameterType) {
247
+ HeaderParameterType[HeaderParameterType["UNKNOWN"] = 0] = "UNKNOWN";
248
+ HeaderParameterType[HeaderParameterType["STRING"] = 1] = "STRING";
249
+ HeaderParameterType[HeaderParameterType["NUMBER"] = 2] = "NUMBER";
250
+ HeaderParameterType[HeaderParameterType["INTEGER"] = 3] = "INTEGER";
251
+ HeaderParameterType[HeaderParameterType["BOOLEAN"] = 4] = "BOOLEAN";
252
+ })(HeaderParameterType || (HeaderParameterType = {}));
253
+ var SecuritySchemeType;
254
+ (function (SecuritySchemeType) {
255
+ SecuritySchemeType[SecuritySchemeType["TYPE_INVALID"] = 0] = "TYPE_INVALID";
256
+ SecuritySchemeType[SecuritySchemeType["TYPE_BASIC"] = 1] = "TYPE_BASIC";
257
+ SecuritySchemeType[SecuritySchemeType["TYPE_API_KEY"] = 2] = "TYPE_API_KEY";
258
+ SecuritySchemeType[SecuritySchemeType["TYPE_OAUTH2"] = 3] = "TYPE_OAUTH2";
259
+ })(SecuritySchemeType || (SecuritySchemeType = {}));
260
+
206
261
  // *********************************
207
262
  // Code generated by sdkgen
208
263
  // DO NOT EDIT!.
@@ -329,6 +384,13 @@ var Tone;
329
384
  Tone[Tone["PERSUASIVE"] = 9] = "PERSUASIVE";
330
385
  Tone[Tone["EMPATHETIC"] = 10] = "EMPATHETIC";
331
386
  })(Tone || (Tone = {}));
387
+ var XSubscriptionType;
388
+ (function (XSubscriptionType) {
389
+ XSubscriptionType[XSubscriptionType["X_SUBSCRIPTION_TYPE_INVALID"] = 0] = "X_SUBSCRIPTION_TYPE_INVALID";
390
+ XSubscriptionType[XSubscriptionType["X_SUBSCRIPTION_TYPE_BASIC"] = 1] = "X_SUBSCRIPTION_TYPE_BASIC";
391
+ XSubscriptionType[XSubscriptionType["X_SUBSCRIPTION_TYPE_PREMIUM"] = 2] = "X_SUBSCRIPTION_TYPE_PREMIUM";
392
+ XSubscriptionType[XSubscriptionType["X_SUBSCRIPTION_TYPE_PREMIUM_PLUS"] = 3] = "X_SUBSCRIPTION_TYPE_PREMIUM_PLUS";
393
+ })(XSubscriptionType || (XSubscriptionType = {}));
332
394
 
333
395
  // *********************************
334
396
  // Code generated by sdkgen
@@ -388,6 +450,12 @@ var DraftYoutubeCustomizationPrivacyStatus;
388
450
  //
389
451
  // Enums.
390
452
  // *********************************
453
+ var FilterBy;
454
+ (function (FilterBy) {
455
+ FilterBy[FilterBy["FILTER_BY_INVALID"] = 0] = "FILTER_BY_INVALID";
456
+ FilterBy[FilterBy["FILTER_BY_UPDATED"] = 1] = "FILTER_BY_UPDATED";
457
+ FilterBy[FilterBy["FILTER_BY_SCHEDULED"] = 2] = "FILTER_BY_SCHEDULED";
458
+ })(FilterBy || (FilterBy = {}));
391
459
  var VisibilityType;
392
460
  (function (VisibilityType) {
393
461
  VisibilityType[VisibilityType["VISIBILITY_TYPE_INVALID"] = 0] = "VISIBILITY_TYPE_INVALID";
@@ -447,6 +515,48 @@ var SocialContentType;
447
515
  SocialContentType[SocialContentType["SOCIAL_CONTENT_TYPE_BLOG_ARTICLE"] = 2] = "SOCIAL_CONTENT_TYPE_BLOG_ARTICLE";
448
516
  })(SocialContentType || (SocialContentType = {}));
449
517
 
518
+ // *********************************
519
+ // Code generated by sdkgen
520
+ // DO NOT EDIT!.
521
+ //
522
+ // Enums.
523
+ // *********************************
524
+ var ImageBackground;
525
+ (function (ImageBackground) {
526
+ ImageBackground[ImageBackground["IMAGE_BACKGROUND_UNSPECIFIED"] = 0] = "IMAGE_BACKGROUND_UNSPECIFIED";
527
+ ImageBackground[ImageBackground["IMAGE_BACKGROUND_TRANSPARENT"] = 1] = "IMAGE_BACKGROUND_TRANSPARENT";
528
+ ImageBackground[ImageBackground["IMAGE_BACKGROUND_OPAQUE"] = 2] = "IMAGE_BACKGROUND_OPAQUE";
529
+ ImageBackground[ImageBackground["IMAGE_BACKGROUND_AUTO"] = 3] = "IMAGE_BACKGROUND_AUTO";
530
+ })(ImageBackground || (ImageBackground = {}));
531
+ var ImageModel;
532
+ (function (ImageModel) {
533
+ ImageModel[ImageModel["IMAGE_MODEL_UNSPECIFIED"] = 0] = "IMAGE_MODEL_UNSPECIFIED";
534
+ ImageModel[ImageModel["DALL_E_2"] = 1] = "DALL_E_2";
535
+ ImageModel[ImageModel["DALL_E_3"] = 2] = "DALL_E_3";
536
+ ImageModel[ImageModel["GPT_IMAGE_1"] = 3] = "GPT_IMAGE_1";
537
+ ImageModel[ImageModel["GPT_IMAGE_1_5"] = 4] = "GPT_IMAGE_1_5";
538
+ })(ImageModel || (ImageModel = {}));
539
+ var ImageOutputFormat;
540
+ (function (ImageOutputFormat) {
541
+ ImageOutputFormat[ImageOutputFormat["IMAGE_OUTPUT_FORMAT_UNSPECIFIED"] = 0] = "IMAGE_OUTPUT_FORMAT_UNSPECIFIED";
542
+ ImageOutputFormat[ImageOutputFormat["IMAGE_OUTPUT_FORMAT_PNG"] = 1] = "IMAGE_OUTPUT_FORMAT_PNG";
543
+ ImageOutputFormat[ImageOutputFormat["IMAGE_OUTPUT_FORMAT_JPEG"] = 2] = "IMAGE_OUTPUT_FORMAT_JPEG";
544
+ ImageOutputFormat[ImageOutputFormat["IMAGE_OUTPUT_FORMAT_WEBP"] = 3] = "IMAGE_OUTPUT_FORMAT_WEBP";
545
+ })(ImageOutputFormat || (ImageOutputFormat = {}));
546
+ var ImageQuality;
547
+ (function (ImageQuality) {
548
+ ImageQuality[ImageQuality["IMAGE_QUALITY_UNSPECIFIED"] = 0] = "IMAGE_QUALITY_UNSPECIFIED";
549
+ ImageQuality[ImageQuality["IMAGE_QUALITY_LOW"] = 1] = "IMAGE_QUALITY_LOW";
550
+ ImageQuality[ImageQuality["IMAGE_QUALITY_MEDIUM"] = 2] = "IMAGE_QUALITY_MEDIUM";
551
+ ImageQuality[ImageQuality["IMAGE_QUALITY_STANDARD"] = 3] = "IMAGE_QUALITY_STANDARD";
552
+ })(ImageQuality || (ImageQuality = {}));
553
+ var ImageStyle;
554
+ (function (ImageStyle) {
555
+ ImageStyle[ImageStyle["IMAGE_STYLE_UNSPECIFIED"] = 0] = "IMAGE_STYLE_UNSPECIFIED";
556
+ ImageStyle[ImageStyle["IMAGE_STYLE_VIVID"] = 1] = "IMAGE_STYLE_VIVID";
557
+ ImageStyle[ImageStyle["IMAGE_STYLE_NATURAL"] = 2] = "IMAGE_STYLE_NATURAL";
558
+ })(ImageStyle || (ImageStyle = {}));
559
+
450
560
  // *********************************
451
561
  // Code generated by sdkgen
452
562
  // DO NOT EDIT!.
@@ -454,7 +564,7 @@ var SocialContentType;
454
564
  // Enums Index.
455
565
  // *********************************
456
566
 
457
- function enumStringToValue$n(enumRef, value) {
567
+ function enumStringToValue$p(enumRef, value) {
458
568
  if (typeof value === 'number') {
459
569
  return value;
460
570
  }
@@ -526,7 +636,7 @@ class CallToAction {
526
636
  let m = new CallToAction();
527
637
  m = Object.assign(m, proto);
528
638
  if (proto.actionType) {
529
- m.actionType = enumStringToValue$n(CallToActionCallToActionType, proto.actionType);
639
+ m.actionType = enumStringToValue$p(CallToActionCallToActionType, proto.actionType);
530
640
  }
531
641
  return m;
532
642
  }
@@ -764,7 +874,7 @@ class PostTemplate {
764
874
  m.metaData = proto.metaData.map(MetaData.fromProto);
765
875
  }
766
876
  if (proto.postType) {
767
- m.postType = enumStringToValue$n(PostType, proto.postType);
877
+ m.postType = enumStringToValue$p(PostType, proto.postType);
768
878
  }
769
879
  if (proto.youtubeCustomization) {
770
880
  m.youtubeCustomization = YoutubeCustomization.fromProto(proto.youtubeCustomization);
@@ -847,7 +957,7 @@ class SSIDPostType {
847
957
  let m = new SSIDPostType();
848
958
  m = Object.assign(m, proto);
849
959
  if (proto.postType) {
850
- m.postType = enumStringToValue$n(PostType, proto.postType);
960
+ m.postType = enumStringToValue$p(PostType, proto.postType);
851
961
  }
852
962
  return m;
853
963
  }
@@ -931,10 +1041,10 @@ class SocialPost {
931
1041
  m.posted = new Date(proto.posted);
932
1042
  }
933
1043
  if (proto.deletionStatus) {
934
- m.deletionStatus = enumStringToValue$n(SocialPostDeletionStatus, proto.deletionStatus);
1044
+ m.deletionStatus = enumStringToValue$p(SocialPostDeletionStatus, proto.deletionStatus);
935
1045
  }
936
1046
  if (proto.service) {
937
- m.service = enumStringToValue$n(SocialPostService, proto.service);
1047
+ m.service = enumStringToValue$p(SocialPostService, proto.service);
938
1048
  }
939
1049
  if (proto.created) {
940
1050
  m.created = new Date(proto.created);
@@ -943,7 +1053,7 @@ class SocialPost {
943
1053
  m.scheduled = new Date(proto.scheduled);
944
1054
  }
945
1055
  if (proto.status) {
946
- m.status = enumStringToValue$n(PostingStatus, proto.status);
1056
+ m.status = enumStringToValue$p(PostingStatus, proto.status);
947
1057
  }
948
1058
  if (proto.event) {
949
1059
  m.event = Event.fromProto(proto.event);
@@ -955,7 +1065,7 @@ class SocialPost {
955
1065
  m.error = Error.fromProto(proto.error);
956
1066
  }
957
1067
  if (proto.postType) {
958
- m.postType = enumStringToValue$n(PostType, proto.postType);
1068
+ m.postType = enumStringToValue$p(PostType, proto.postType);
959
1069
  }
960
1070
  if (proto.mediaEntries) {
961
1071
  m.mediaEntries = proto.mediaEntries.map(MediaEntry.fromProto);
@@ -1156,7 +1266,7 @@ class YoutubeCustomization {
1156
1266
  let m = new YoutubeCustomization();
1157
1267
  m = Object.assign(m, proto);
1158
1268
  if (proto.privacyStatus) {
1159
- m.privacyStatus = enumStringToValue$n(YoutubeCustomizationPrivacyStatus, proto.privacyStatus);
1269
+ m.privacyStatus = enumStringToValue$p(YoutubeCustomizationPrivacyStatus, proto.privacyStatus);
1160
1270
  }
1161
1271
  return m;
1162
1272
  }
@@ -1178,7 +1288,7 @@ class YoutubeCustomization {
1178
1288
  }
1179
1289
  }
1180
1290
 
1181
- function enumStringToValue$m(enumRef, value) {
1291
+ function enumStringToValue$o(enumRef, value) {
1182
1292
  if (typeof value === 'number') {
1183
1293
  return value;
1184
1294
  }
@@ -1319,7 +1429,7 @@ class MultilocationPost {
1319
1429
  m.postCategory = MLPostCategory.fromProto(proto.postCategory);
1320
1430
  }
1321
1431
  if (proto.postState) {
1322
- m.postState = enumStringToValue$m(MLPostState, proto.postState);
1432
+ m.postState = enumStringToValue$o(MLPostState, proto.postState);
1323
1433
  }
1324
1434
  if (proto.postCustomizationByLocation) {
1325
1435
  m.postCustomizationByLocation = PostCustomizationByLocation.fromProto(proto.postCustomizationByLocation);
@@ -1503,7 +1613,7 @@ class PostCustomizationByLocation {
1503
1613
  let m = new PostCustomizationByLocation();
1504
1614
  m = Object.assign(m, proto);
1505
1615
  if (proto.customizationStatus) {
1506
- m.customizationStatus = enumStringToValue$m(CustomizationStatus, proto.customizationStatus);
1616
+ m.customizationStatus = enumStringToValue$o(CustomizationStatus, proto.customizationStatus);
1507
1617
  }
1508
1618
  return m;
1509
1619
  }
@@ -1557,7 +1667,7 @@ class PostEvent {
1557
1667
  }
1558
1668
  }
1559
1669
 
1560
- function enumStringToValue$l(enumRef, value) {
1670
+ function enumStringToValue$n(enumRef, value) {
1561
1671
  if (typeof value === 'number') {
1562
1672
  return value;
1563
1673
  }
@@ -1611,7 +1721,7 @@ class PexelsImage {
1611
1721
  }
1612
1722
  }
1613
1723
 
1614
- function enumStringToValue$k(enumRef, value) {
1724
+ function enumStringToValue$m(enumRef, value) {
1615
1725
  if (typeof value === 'number') {
1616
1726
  return value;
1617
1727
  }
@@ -1752,7 +1862,7 @@ class PixabayImage {
1752
1862
  }
1753
1863
  }
1754
1864
 
1755
- function enumStringToValue$j(enumRef, value) {
1865
+ function enumStringToValue$l(enumRef, value) {
1756
1866
  if (typeof value === 'number') {
1757
1867
  return value;
1758
1868
  }
@@ -2091,7 +2201,7 @@ class YoutubePostStats {
2091
2201
  }
2092
2202
  }
2093
2203
 
2094
- function enumStringToValue$i(enumRef, value) {
2204
+ function enumStringToValue$k(enumRef, value) {
2095
2205
  if (typeof value === 'number') {
2096
2206
  return value;
2097
2207
  }
@@ -2197,7 +2307,7 @@ class TenorMediaObject {
2197
2307
  }
2198
2308
  }
2199
2309
 
2200
- function enumStringToValue$h(enumRef, value) {
2310
+ function enumStringToValue$j(enumRef, value) {
2201
2311
  if (typeof value === 'number') {
2202
2312
  return value;
2203
2313
  }
@@ -2246,7 +2356,7 @@ class BulkCreateMultilocationPostResponse {
2246
2356
  let m = new BulkCreateMultilocationPostResponse();
2247
2357
  m = Object.assign(m, proto);
2248
2358
  if (proto.status) {
2249
- m.status = enumStringToValue$h(BulkPostStatus, proto.status);
2359
+ m.status = enumStringToValue$j(BulkPostStatus, proto.status);
2250
2360
  }
2251
2361
  if (proto.error) {
2252
2362
  m.error = proto.error.map(MultilocationPostError.fromProto);
@@ -2405,7 +2515,7 @@ class CreatePostTemplateRequest {
2405
2515
  m.metaData = proto.metaData.map(MetaData.fromProto);
2406
2516
  }
2407
2517
  if (proto.postType) {
2408
- m.postType = enumStringToValue$h(PostType, proto.postType);
2518
+ m.postType = enumStringToValue$j(PostType, proto.postType);
2409
2519
  }
2410
2520
  if (proto.youtubeCustomization) {
2411
2521
  m.youtubeCustomization = YoutubeCustomization.fromProto(proto.youtubeCustomization);
@@ -3810,7 +3920,7 @@ class RemoveFromMultilocationPostRequest {
3810
3920
  let m = new RemoveFromMultilocationPostRequest();
3811
3921
  m = Object.assign(m, proto);
3812
3922
  if (proto.reason) {
3813
- m.reason = enumStringToValue$h(RemoveReason, proto.reason);
3923
+ m.reason = enumStringToValue$j(RemoveReason, proto.reason);
3814
3924
  }
3815
3925
  if (proto.locations) {
3816
3926
  m.locations = proto.locations.map(Location.fromProto);
@@ -4033,10 +4143,10 @@ class SuggestMessageRequest {
4033
4143
  let m = new SuggestMessageRequest();
4034
4144
  m = Object.assign(m, proto);
4035
4145
  if (proto.length) {
4036
- m.length = enumStringToValue$h(MessageLength, proto.length);
4146
+ m.length = enumStringToValue$j(MessageLength, proto.length);
4037
4147
  }
4038
4148
  if (proto.type) {
4039
- m.type = enumStringToValue$h(TemplateType, proto.type);
4149
+ m.type = enumStringToValue$j(TemplateType, proto.type);
4040
4150
  }
4041
4151
  if (proto.metadata) {
4042
4152
  m.metadata = proto.metadata.map(MetaData.fromProto);
@@ -4103,7 +4213,7 @@ class UpdatePostTemplateRequest {
4103
4213
  m.metaData = proto.metaData.map(MetaData.fromProto);
4104
4214
  }
4105
4215
  if (proto.postType) {
4106
- m.postType = enumStringToValue$h(PostType, proto.postType);
4216
+ m.postType = enumStringToValue$j(PostType, proto.postType);
4107
4217
  }
4108
4218
  if (proto.youtubeCustomization) {
4109
4219
  m.youtubeCustomization = YoutubeCustomization.fromProto(proto.youtubeCustomization);
@@ -4170,7 +4280,7 @@ class UpdatePostTemplateRequest {
4170
4280
  }
4171
4281
  }
4172
4282
 
4173
- function enumStringToValue$g(enumRef, value) {
4283
+ function enumStringToValue$i(enumRef, value) {
4174
4284
  if (typeof value === 'number') {
4175
4285
  return value;
4176
4286
  }
@@ -4367,7 +4477,7 @@ class SortBy {
4367
4477
  let m = new SortBy();
4368
4478
  m = Object.assign(m, proto);
4369
4479
  if (proto.sortDirection) {
4370
- m.sortDirection = enumStringToValue$g(SortBySortDirection, proto.sortDirection);
4480
+ m.sortDirection = enumStringToValue$i(SortBySortDirection, proto.sortDirection);
4371
4481
  }
4372
4482
  return m;
4373
4483
  }
@@ -4389,7 +4499,7 @@ class SortBy {
4389
4499
  }
4390
4500
  }
4391
4501
 
4392
- function enumStringToValue$f(enumRef, value) {
4502
+ function enumStringToValue$h(enumRef, value) {
4393
4503
  if (typeof value === 'number') {
4394
4504
  return value;
4395
4505
  }
@@ -4403,7 +4513,7 @@ class ListStockImagesRequest {
4403
4513
  m.namespace = Namespace.fromProto(proto.namespace);
4404
4514
  }
4405
4515
  if (proto.imageSource) {
4406
- m.imageSource = enumStringToValue$f(ImageSource, proto.imageSource);
4516
+ m.imageSource = enumStringToValue$h(ImageSource, proto.imageSource);
4407
4517
  }
4408
4518
  return m;
4409
4519
  }
@@ -4476,7 +4586,7 @@ class Namespace {
4476
4586
  let m = new Namespace();
4477
4587
  m = Object.assign(m, proto);
4478
4588
  if (proto.namespaceType) {
4479
- m.namespaceType = enumStringToValue$f(NamespaceType, proto.namespaceType);
4589
+ m.namespaceType = enumStringToValue$h(NamespaceType, proto.namespaceType);
4480
4590
  }
4481
4591
  return m;
4482
4592
  }
@@ -4502,7 +4612,7 @@ class StockImage {
4502
4612
  let m = new StockImage();
4503
4613
  m = Object.assign(m, proto);
4504
4614
  if (proto.source) {
4505
- m.source = enumStringToValue$f(ImageSource, proto.source);
4615
+ m.source = enumStringToValue$h(ImageSource, proto.source);
4506
4616
  }
4507
4617
  return m;
4508
4618
  }
@@ -4556,7 +4666,7 @@ class StockImageError {
4556
4666
  }
4557
4667
  }
4558
4668
 
4559
- function enumStringToValue$e(enumRef, value) {
4669
+ function enumStringToValue$g(enumRef, value) {
4560
4670
  if (typeof value === 'number') {
4561
4671
  return value;
4562
4672
  }
@@ -4705,7 +4815,7 @@ class GetBlogWebsiteDetailsResponse {
4705
4815
  }
4706
4816
  }
4707
4817
 
4708
- function enumStringToValue$d(enumRef, value) {
4818
+ function enumStringToValue$f(enumRef, value) {
4709
4819
  if (typeof value === 'number') {
4710
4820
  return value;
4711
4821
  }
@@ -4755,15 +4865,15 @@ class MCPOptions {
4755
4865
  }
4756
4866
  }
4757
4867
 
4758
- function enumStringToValue$c(enumRef, value) {
4868
+ function enumStringToValue$e(enumRef, value) {
4759
4869
  if (typeof value === 'number') {
4760
4870
  return value;
4761
4871
  }
4762
4872
  return enumRef[value];
4763
4873
  }
4764
- class LinkV2 {
4874
+ class Contact {
4765
4875
  static fromProto(proto) {
4766
- let m = new LinkV2();
4876
+ let m = new Contact();
4767
4877
  m = Object.assign(m, proto);
4768
4878
  return m;
4769
4879
  }
@@ -4778,27 +4888,68 @@ class LinkV2 {
4778
4888
  if (typeof this.name !== 'undefined') {
4779
4889
  toReturn['name'] = this.name;
4780
4890
  }
4781
- if (typeof this.picture !== 'undefined') {
4782
- toReturn['picture'] = this.picture;
4891
+ if (typeof this.url !== 'undefined') {
4892
+ toReturn['url'] = this.url;
4893
+ }
4894
+ if (typeof this.email !== 'undefined') {
4895
+ toReturn['email'] = this.email;
4896
+ }
4897
+ return toReturn;
4898
+ }
4899
+ }
4900
+ class EnumSchema {
4901
+ static fromProto(proto) {
4902
+ let m = new EnumSchema();
4903
+ m = Object.assign(m, proto);
4904
+ if (proto.externalDocs) {
4905
+ m.externalDocs = ExternalDocumentation.fromProto(proto.externalDocs);
4906
+ }
4907
+ if (proto.extensions) {
4908
+ m.extensions = Object.keys(proto.extensions).reduce((obj, k) => { obj[k] = proto.extensions[k]; return obj; }, {});
4909
+ }
4910
+ return m;
4911
+ }
4912
+ constructor(kwargs) {
4913
+ if (!kwargs) {
4914
+ return;
4783
4915
  }
4916
+ Object.assign(this, kwargs);
4917
+ }
4918
+ toApiJson() {
4919
+ const toReturn = {};
4784
4920
  if (typeof this.description !== 'undefined') {
4785
4921
  toReturn['description'] = this.description;
4786
4922
  }
4923
+ if (typeof this.default !== 'undefined') {
4924
+ toReturn['default'] = this.default;
4925
+ }
4787
4926
  if (typeof this.title !== 'undefined') {
4788
4927
  toReturn['title'] = this.title;
4789
4928
  }
4790
- if (typeof this.url !== 'undefined') {
4791
- toReturn['url'] = this.url;
4929
+ if (typeof this.required !== 'undefined') {
4930
+ toReturn['required'] = this.required;
4792
4931
  }
4793
- if (typeof this.shortcode !== 'undefined') {
4794
- toReturn['shortcode'] = this.shortcode;
4932
+ if (typeof this.readOnly !== 'undefined') {
4933
+ toReturn['readOnly'] = this.readOnly;
4934
+ }
4935
+ if (typeof this.externalDocs !== 'undefined' && this.externalDocs !== null) {
4936
+ toReturn['externalDocs'] = 'toApiJson' in this.externalDocs ? this.externalDocs.toApiJson() : this.externalDocs;
4937
+ }
4938
+ if (typeof this.example !== 'undefined') {
4939
+ toReturn['example'] = this.example;
4940
+ }
4941
+ if (typeof this.ref !== 'undefined') {
4942
+ toReturn['ref'] = this.ref;
4943
+ }
4944
+ if (typeof this.extensions !== 'undefined' && this.extensions !== null) {
4945
+ toReturn['extensions'] = 'toApiJson' in this.extensions ? this.extensions.toApiJson() : this.extensions;
4795
4946
  }
4796
4947
  return toReturn;
4797
4948
  }
4798
4949
  }
4799
- class MetadataV2 {
4950
+ class ResponseExamplesEntry {
4800
4951
  static fromProto(proto) {
4801
- let m = new MetadataV2();
4952
+ let m = new ResponseExamplesEntry();
4802
4953
  m = Object.assign(m, proto);
4803
4954
  return m;
4804
4955
  }
@@ -4810,8 +4961,8 @@ class MetadataV2 {
4810
4961
  }
4811
4962
  toApiJson() {
4812
4963
  const toReturn = {};
4813
- if (typeof this.name !== 'undefined') {
4814
- toReturn['name'] = this.name;
4964
+ if (typeof this.key !== 'undefined') {
4965
+ toReturn['key'] = this.key;
4815
4966
  }
4816
4967
  if (typeof this.value !== 'undefined') {
4817
4968
  toReturn['value'] = this.value;
@@ -4819,9 +4970,9 @@ class MetadataV2 {
4819
4970
  return toReturn;
4820
4971
  }
4821
4972
  }
4822
- class PostActionV2 {
4973
+ class ResponseExtensionsEntry {
4823
4974
  static fromProto(proto) {
4824
- let m = new PostActionV2();
4975
+ let m = new ResponseExtensionsEntry();
4825
4976
  m = Object.assign(m, proto);
4826
4977
  return m;
4827
4978
  }
@@ -4833,25 +4984,19 @@ class PostActionV2 {
4833
4984
  }
4834
4985
  toApiJson() {
4835
4986
  const toReturn = {};
4836
- if (typeof this.type !== 'undefined') {
4837
- toReturn['type'] = this.type;
4987
+ if (typeof this.key !== 'undefined') {
4988
+ toReturn['key'] = this.key;
4838
4989
  }
4839
- if (typeof this.linkUrl !== 'undefined') {
4840
- toReturn['linkUrl'] = this.linkUrl;
4990
+ if (typeof this.value !== 'undefined') {
4991
+ toReturn['value'] = this.value;
4841
4992
  }
4842
4993
  return toReturn;
4843
4994
  }
4844
4995
  }
4845
- class PostContentV2 {
4996
+ class SwaggerExtensionsEntry {
4846
4997
  static fromProto(proto) {
4847
- let m = new PostContentV2();
4998
+ let m = new SwaggerExtensionsEntry();
4848
4999
  m = Object.assign(m, proto);
4849
- if (proto.medias) {
4850
- m.medias = proto.medias.map(PostMediaV2.fromProto);
4851
- }
4852
- if (proto.links) {
4853
- m.links = proto.links.map(LinkV2.fromProto);
4854
- }
4855
5000
  return m;
4856
5001
  }
4857
5002
  constructor(kwargs) {
@@ -4862,34 +5007,19 @@ class PostContentV2 {
4862
5007
  }
4863
5008
  toApiJson() {
4864
5009
  const toReturn = {};
4865
- if (typeof this.postText !== 'undefined') {
4866
- toReturn['postText'] = this.postText;
4867
- }
4868
- if (typeof this.medias !== 'undefined' && this.medias !== null) {
4869
- toReturn['medias'] = 'toApiJson' in this.medias ? this.medias.toApiJson() : this.medias;
4870
- }
4871
- if (typeof this.links !== 'undefined' && this.links !== null) {
4872
- toReturn['links'] = 'toApiJson' in this.links ? this.links.toApiJson() : this.links;
4873
- }
4874
- if (typeof this.description !== 'undefined') {
4875
- toReturn['description'] = this.description;
5010
+ if (typeof this.key !== 'undefined') {
5011
+ toReturn['key'] = this.key;
4876
5012
  }
4877
- if (typeof this.title !== 'undefined') {
4878
- toReturn['title'] = this.title;
5013
+ if (typeof this.value !== 'undefined') {
5014
+ toReturn['value'] = this.value;
4879
5015
  }
4880
5016
  return toReturn;
4881
5017
  }
4882
5018
  }
4883
- class PostCustomizationV2 {
5019
+ class SecuritySchemeExtensionsEntry {
4884
5020
  static fromProto(proto) {
4885
- let m = new PostCustomizationV2();
5021
+ let m = new SecuritySchemeExtensionsEntry();
4886
5022
  m = Object.assign(m, proto);
4887
- if (proto.event) {
4888
- m.event = PostEventV2.fromProto(proto.event);
4889
- }
4890
- if (proto.action) {
4891
- m.action = PostActionV2.fromProto(proto.action);
4892
- }
4893
5023
  return m;
4894
5024
  }
4895
5025
  constructor(kwargs) {
@@ -4900,25 +5030,19 @@ class PostCustomizationV2 {
4900
5030
  }
4901
5031
  toApiJson() {
4902
5032
  const toReturn = {};
4903
- if (typeof this.event !== 'undefined' && this.event !== null) {
4904
- toReturn['event'] = 'toApiJson' in this.event ? this.event.toApiJson() : this.event;
5033
+ if (typeof this.key !== 'undefined') {
5034
+ toReturn['key'] = this.key;
4905
5035
  }
4906
- if (typeof this.action !== 'undefined' && this.action !== null) {
4907
- toReturn['action'] = 'toApiJson' in this.action ? this.action.toApiJson() : this.action;
5036
+ if (typeof this.value !== 'undefined') {
5037
+ toReturn['value'] = this.value;
4908
5038
  }
4909
5039
  return toReturn;
4910
5040
  }
4911
5041
  }
4912
- class PostEventV2 {
5042
+ class TagExtensionsEntry {
4913
5043
  static fromProto(proto) {
4914
- let m = new PostEventV2();
5044
+ let m = new TagExtensionsEntry();
4915
5045
  m = Object.assign(m, proto);
4916
- if (proto.start) {
4917
- m.start = new Date(proto.start);
4918
- }
4919
- if (proto.end) {
4920
- m.end = new Date(proto.end);
4921
- }
4922
5046
  return m;
4923
5047
  }
4924
5048
  constructor(kwargs) {
@@ -4929,25 +5053,19 @@ class PostEventV2 {
4929
5053
  }
4930
5054
  toApiJson() {
4931
5055
  const toReturn = {};
4932
- if (typeof this.title !== 'undefined') {
4933
- toReturn['title'] = this.title;
4934
- }
4935
- if (typeof this.start !== 'undefined' && this.start !== null) {
4936
- toReturn['start'] = 'toApiJson' in this.start ? this.start.toApiJson() : this.start;
5056
+ if (typeof this.key !== 'undefined') {
5057
+ toReturn['key'] = this.key;
4937
5058
  }
4938
- if (typeof this.end !== 'undefined' && this.end !== null) {
4939
- toReturn['end'] = 'toApiJson' in this.end ? this.end.toApiJson() : this.end;
5059
+ if (typeof this.value !== 'undefined') {
5060
+ toReturn['value'] = this.value;
4940
5061
  }
4941
5062
  return toReturn;
4942
5063
  }
4943
5064
  }
4944
- class PostMediaV2 {
5065
+ class OperationExtensionsEntry {
4945
5066
  static fromProto(proto) {
4946
- let m = new PostMediaV2();
5067
+ let m = new OperationExtensionsEntry();
4947
5068
  m = Object.assign(m, proto);
4948
- if (proto.metadata) {
4949
- m.metadata = proto.metadata.map(MetadataV2.fromProto);
4950
- }
4951
5069
  return m;
4952
5070
  }
4953
5071
  constructor(kwargs) {
@@ -4958,49 +5076,19 @@ class PostMediaV2 {
4958
5076
  }
4959
5077
  toApiJson() {
4960
5078
  const toReturn = {};
4961
- if (typeof this.mediaId !== 'undefined') {
4962
- toReturn['mediaId'] = this.mediaId;
4963
- }
4964
- if (typeof this.mediaUrl !== 'undefined') {
4965
- toReturn['mediaUrl'] = this.mediaUrl;
4966
- }
4967
- if (typeof this.mediaType !== 'undefined') {
4968
- toReturn['mediaType'] = this.mediaType;
4969
- }
4970
- if (typeof this.containerId !== 'undefined') {
4971
- toReturn['containerId'] = this.containerId;
5079
+ if (typeof this.key !== 'undefined') {
5080
+ toReturn['key'] = this.key;
4972
5081
  }
4973
- if (typeof this.metadata !== 'undefined' && this.metadata !== null) {
4974
- toReturn['metadata'] = 'toApiJson' in this.metadata ? this.metadata.toApiJson() : this.metadata;
5082
+ if (typeof this.value !== 'undefined') {
5083
+ toReturn['value'] = this.value;
4975
5084
  }
4976
5085
  return toReturn;
4977
5086
  }
4978
5087
  }
4979
- class SocialPostV2 {
5088
+ class JSONSchemaExtensionsEntry {
4980
5089
  static fromProto(proto) {
4981
- let m = new SocialPostV2();
5090
+ let m = new JSONSchemaExtensionsEntry();
4982
5091
  m = Object.assign(m, proto);
4983
- if (proto.postContent) {
4984
- m.postContent = PostContentV2.fromProto(proto.postContent);
4985
- }
4986
- if (proto.scheduled) {
4987
- m.scheduled = new Date(proto.scheduled);
4988
- }
4989
- if (proto.customization) {
4990
- m.customization = PostCustomizationV2.fromProto(proto.customization);
4991
- }
4992
- if (proto.postType) {
4993
- m.postType = enumStringToValue$c(PostTypeV2, proto.postType);
4994
- }
4995
- if (proto.metadata) {
4996
- m.metadata = proto.metadata.map(MetadataV2.fromProto);
4997
- }
4998
- if (proto.youtubeCustomization) {
4999
- m.youtubeCustomization = YoutubeCustomizationV2.fromProto(proto.youtubeCustomization);
5000
- }
5001
- if (proto.tiktokCustomization) {
5002
- m.tiktokCustomization = TikTokCustomizationV2.fromProto(proto.tiktokCustomization);
5003
- }
5004
5092
  return m;
5005
5093
  }
5006
5094
  constructor(kwargs) {
@@ -5011,60 +5099,18 @@ class SocialPostV2 {
5011
5099
  }
5012
5100
  toApiJson() {
5013
5101
  const toReturn = {};
5014
- if (typeof this.businessId !== 'undefined') {
5015
- toReturn['businessId'] = this.businessId;
5016
- }
5017
- if (typeof this.socialServiceId !== 'undefined') {
5018
- toReturn['socialServiceId'] = this.socialServiceId;
5019
- }
5020
- if (typeof this.postContent !== 'undefined' && this.postContent !== null) {
5021
- toReturn['postContent'] = 'toApiJson' in this.postContent ? this.postContent.toApiJson() : this.postContent;
5022
- }
5023
- if (typeof this.scheduled !== 'undefined' && this.scheduled !== null) {
5024
- toReturn['scheduled'] = 'toApiJson' in this.scheduled ? this.scheduled.toApiJson() : this.scheduled;
5025
- }
5026
- if (typeof this.customization !== 'undefined' && this.customization !== null) {
5027
- toReturn['customization'] = 'toApiJson' in this.customization ? this.customization.toApiJson() : this.customization;
5028
- }
5029
- if (typeof this.postType !== 'undefined') {
5030
- toReturn['postType'] = this.postType;
5031
- }
5032
- if (typeof this.internalPostId !== 'undefined') {
5033
- toReturn['internalPostId'] = this.internalPostId;
5034
- }
5035
- if (typeof this.metadata !== 'undefined' && this.metadata !== null) {
5036
- toReturn['metadata'] = 'toApiJson' in this.metadata ? this.metadata.toApiJson() : this.metadata;
5037
- }
5038
- if (typeof this.partnerId !== 'undefined') {
5039
- toReturn['partnerId'] = this.partnerId;
5040
- }
5041
- if (typeof this.brandId !== 'undefined') {
5042
- toReturn['brandId'] = this.brandId;
5043
- }
5044
- if (typeof this.multilocationPostId !== 'undefined') {
5045
- toReturn['multilocationPostId'] = this.multilocationPostId;
5046
- }
5047
- if (typeof this.youtubeCustomization !== 'undefined' && this.youtubeCustomization !== null) {
5048
- toReturn['youtubeCustomization'] = 'toApiJson' in this.youtubeCustomization ? this.youtubeCustomization.toApiJson() : this.youtubeCustomization;
5049
- }
5050
- if (typeof this.userId !== 'undefined') {
5051
- toReturn['userId'] = this.userId;
5052
- }
5053
- if (typeof this.shareId !== 'undefined') {
5054
- toReturn['shareId'] = this.shareId;
5055
- }
5056
- if (typeof this.tiktokCustomization !== 'undefined' && this.tiktokCustomization !== null) {
5057
- toReturn['tiktokCustomization'] = 'toApiJson' in this.tiktokCustomization ? this.tiktokCustomization.toApiJson() : this.tiktokCustomization;
5102
+ if (typeof this.key !== 'undefined') {
5103
+ toReturn['key'] = this.key;
5058
5104
  }
5059
- if (typeof this.campaignId !== 'undefined') {
5060
- toReturn['campaignId'] = this.campaignId;
5105
+ if (typeof this.value !== 'undefined') {
5106
+ toReturn['value'] = this.value;
5061
5107
  }
5062
5108
  return toReturn;
5063
5109
  }
5064
5110
  }
5065
- class TikTokCustomizationV2 {
5111
+ class EnumSchemaExtensionsEntry {
5066
5112
  static fromProto(proto) {
5067
- let m = new TikTokCustomizationV2();
5113
+ let m = new EnumSchemaExtensionsEntry();
5068
5114
  m = Object.assign(m, proto);
5069
5115
  return m;
5070
5116
  }
@@ -5076,14 +5122,1268 @@ class TikTokCustomizationV2 {
5076
5122
  }
5077
5123
  toApiJson() {
5078
5124
  const toReturn = {};
5079
- if (typeof this.allowComment !== 'undefined') {
5080
- toReturn['allowComment'] = this.allowComment;
5081
- }
5082
- if (typeof this.allowDuet !== 'undefined') {
5083
- toReturn['allowDuet'] = this.allowDuet;
5125
+ if (typeof this.key !== 'undefined') {
5126
+ toReturn['key'] = this.key;
5084
5127
  }
5085
- if (typeof this.allowStitch !== 'undefined') {
5086
- toReturn['allowStitch'] = this.allowStitch;
5128
+ if (typeof this.value !== 'undefined') {
5129
+ toReturn['value'] = this.value;
5130
+ }
5131
+ return toReturn;
5132
+ }
5133
+ }
5134
+ class InfoExtensionsEntry {
5135
+ static fromProto(proto) {
5136
+ let m = new InfoExtensionsEntry();
5137
+ m = Object.assign(m, proto);
5138
+ return m;
5139
+ }
5140
+ constructor(kwargs) {
5141
+ if (!kwargs) {
5142
+ return;
5143
+ }
5144
+ Object.assign(this, kwargs);
5145
+ }
5146
+ toApiJson() {
5147
+ const toReturn = {};
5148
+ if (typeof this.key !== 'undefined') {
5149
+ toReturn['key'] = this.key;
5150
+ }
5151
+ if (typeof this.value !== 'undefined') {
5152
+ toReturn['value'] = this.value;
5153
+ }
5154
+ return toReturn;
5155
+ }
5156
+ }
5157
+ class ExternalDocumentation {
5158
+ static fromProto(proto) {
5159
+ let m = new ExternalDocumentation();
5160
+ m = Object.assign(m, proto);
5161
+ return m;
5162
+ }
5163
+ constructor(kwargs) {
5164
+ if (!kwargs) {
5165
+ return;
5166
+ }
5167
+ Object.assign(this, kwargs);
5168
+ }
5169
+ toApiJson() {
5170
+ const toReturn = {};
5171
+ if (typeof this.description !== 'undefined') {
5172
+ toReturn['description'] = this.description;
5173
+ }
5174
+ if (typeof this.url !== 'undefined') {
5175
+ toReturn['url'] = this.url;
5176
+ }
5177
+ return toReturn;
5178
+ }
5179
+ }
5180
+ class JSONSchemaFieldConfiguration {
5181
+ static fromProto(proto) {
5182
+ let m = new JSONSchemaFieldConfiguration();
5183
+ m = Object.assign(m, proto);
5184
+ return m;
5185
+ }
5186
+ constructor(kwargs) {
5187
+ if (!kwargs) {
5188
+ return;
5189
+ }
5190
+ Object.assign(this, kwargs);
5191
+ }
5192
+ toApiJson() {
5193
+ const toReturn = {};
5194
+ if (typeof this.pathParamName !== 'undefined') {
5195
+ toReturn['pathParamName'] = this.pathParamName;
5196
+ }
5197
+ if (typeof this.deprecated !== 'undefined') {
5198
+ toReturn['deprecated'] = this.deprecated;
5199
+ }
5200
+ return toReturn;
5201
+ }
5202
+ }
5203
+ class Header {
5204
+ static fromProto(proto) {
5205
+ let m = new Header();
5206
+ m = Object.assign(m, proto);
5207
+ return m;
5208
+ }
5209
+ constructor(kwargs) {
5210
+ if (!kwargs) {
5211
+ return;
5212
+ }
5213
+ Object.assign(this, kwargs);
5214
+ }
5215
+ toApiJson() {
5216
+ const toReturn = {};
5217
+ if (typeof this.description !== 'undefined') {
5218
+ toReturn['description'] = this.description;
5219
+ }
5220
+ if (typeof this.type !== 'undefined') {
5221
+ toReturn['type'] = this.type;
5222
+ }
5223
+ if (typeof this.format !== 'undefined') {
5224
+ toReturn['format'] = this.format;
5225
+ }
5226
+ if (typeof this.default !== 'undefined') {
5227
+ toReturn['default'] = this.default;
5228
+ }
5229
+ if (typeof this.pattern !== 'undefined') {
5230
+ toReturn['pattern'] = this.pattern;
5231
+ }
5232
+ return toReturn;
5233
+ }
5234
+ }
5235
+ class HeaderParameter {
5236
+ static fromProto(proto) {
5237
+ let m = new HeaderParameter();
5238
+ m = Object.assign(m, proto);
5239
+ if (proto.type) {
5240
+ m.type = enumStringToValue$e(HeaderParameterType, proto.type);
5241
+ }
5242
+ return m;
5243
+ }
5244
+ constructor(kwargs) {
5245
+ if (!kwargs) {
5246
+ return;
5247
+ }
5248
+ Object.assign(this, kwargs);
5249
+ }
5250
+ toApiJson() {
5251
+ const toReturn = {};
5252
+ if (typeof this.name !== 'undefined') {
5253
+ toReturn['name'] = this.name;
5254
+ }
5255
+ if (typeof this.description !== 'undefined') {
5256
+ toReturn['description'] = this.description;
5257
+ }
5258
+ if (typeof this.type !== 'undefined') {
5259
+ toReturn['type'] = this.type;
5260
+ }
5261
+ if (typeof this.format !== 'undefined') {
5262
+ toReturn['format'] = this.format;
5263
+ }
5264
+ if (typeof this.required !== 'undefined') {
5265
+ toReturn['required'] = this.required;
5266
+ }
5267
+ return toReturn;
5268
+ }
5269
+ }
5270
+ class ResponseHeadersEntry {
5271
+ static fromProto(proto) {
5272
+ let m = new ResponseHeadersEntry();
5273
+ m = Object.assign(m, proto);
5274
+ if (proto.value) {
5275
+ m.value = Header.fromProto(proto.value);
5276
+ }
5277
+ return m;
5278
+ }
5279
+ constructor(kwargs) {
5280
+ if (!kwargs) {
5281
+ return;
5282
+ }
5283
+ Object.assign(this, kwargs);
5284
+ }
5285
+ toApiJson() {
5286
+ const toReturn = {};
5287
+ if (typeof this.key !== 'undefined') {
5288
+ toReturn['key'] = this.key;
5289
+ }
5290
+ if (typeof this.value !== 'undefined' && this.value !== null) {
5291
+ toReturn['value'] = 'toApiJson' in this.value ? this.value.toApiJson() : this.value;
5292
+ }
5293
+ return toReturn;
5294
+ }
5295
+ }
5296
+ class Info {
5297
+ static fromProto(proto) {
5298
+ let m = new Info();
5299
+ m = Object.assign(m, proto);
5300
+ if (proto.contact) {
5301
+ m.contact = Contact.fromProto(proto.contact);
5302
+ }
5303
+ if (proto.license) {
5304
+ m.license = License.fromProto(proto.license);
5305
+ }
5306
+ if (proto.extensions) {
5307
+ m.extensions = Object.keys(proto.extensions).reduce((obj, k) => { obj[k] = proto.extensions[k]; return obj; }, {});
5308
+ }
5309
+ return m;
5310
+ }
5311
+ constructor(kwargs) {
5312
+ if (!kwargs) {
5313
+ return;
5314
+ }
5315
+ Object.assign(this, kwargs);
5316
+ }
5317
+ toApiJson() {
5318
+ const toReturn = {};
5319
+ if (typeof this.title !== 'undefined') {
5320
+ toReturn['title'] = this.title;
5321
+ }
5322
+ if (typeof this.description !== 'undefined') {
5323
+ toReturn['description'] = this.description;
5324
+ }
5325
+ if (typeof this.termsOfService !== 'undefined') {
5326
+ toReturn['termsOfService'] = this.termsOfService;
5327
+ }
5328
+ if (typeof this.contact !== 'undefined' && this.contact !== null) {
5329
+ toReturn['contact'] = 'toApiJson' in this.contact ? this.contact.toApiJson() : this.contact;
5330
+ }
5331
+ if (typeof this.license !== 'undefined' && this.license !== null) {
5332
+ toReturn['license'] = 'toApiJson' in this.license ? this.license.toApiJson() : this.license;
5333
+ }
5334
+ if (typeof this.version !== 'undefined') {
5335
+ toReturn['version'] = this.version;
5336
+ }
5337
+ if (typeof this.extensions !== 'undefined' && this.extensions !== null) {
5338
+ toReturn['extensions'] = 'toApiJson' in this.extensions ? this.extensions.toApiJson() : this.extensions;
5339
+ }
5340
+ return toReturn;
5341
+ }
5342
+ }
5343
+ class JSONSchema {
5344
+ static fromProto(proto) {
5345
+ let m = new JSONSchema();
5346
+ m = Object.assign(m, proto);
5347
+ if (proto.maxLength) {
5348
+ m.maxLength = parseInt(proto.maxLength, 10);
5349
+ }
5350
+ if (proto.minLength) {
5351
+ m.minLength = parseInt(proto.minLength, 10);
5352
+ }
5353
+ if (proto.maxItems) {
5354
+ m.maxItems = parseInt(proto.maxItems, 10);
5355
+ }
5356
+ if (proto.minItems) {
5357
+ m.minItems = parseInt(proto.minItems, 10);
5358
+ }
5359
+ if (proto.maxProperties) {
5360
+ m.maxProperties = parseInt(proto.maxProperties, 10);
5361
+ }
5362
+ if (proto.minProperties) {
5363
+ m.minProperties = parseInt(proto.minProperties, 10);
5364
+ }
5365
+ if (proto.type) {
5366
+ m.type = proto.type.map((v) => enumStringToValue$e(JSONSchemaJSONSchemaSimpleTypes, v));
5367
+ }
5368
+ if (proto.fieldConfiguration) {
5369
+ m.fieldConfiguration = JSONSchemaFieldConfiguration.fromProto(proto.fieldConfiguration);
5370
+ }
5371
+ if (proto.extensions) {
5372
+ m.extensions = Object.keys(proto.extensions).reduce((obj, k) => { obj[k] = proto.extensions[k]; return obj; }, {});
5373
+ }
5374
+ return m;
5375
+ }
5376
+ constructor(kwargs) {
5377
+ if (!kwargs) {
5378
+ return;
5379
+ }
5380
+ Object.assign(this, kwargs);
5381
+ }
5382
+ toApiJson() {
5383
+ const toReturn = {};
5384
+ if (typeof this.ref !== 'undefined') {
5385
+ toReturn['ref'] = this.ref;
5386
+ }
5387
+ if (typeof this.title !== 'undefined') {
5388
+ toReturn['title'] = this.title;
5389
+ }
5390
+ if (typeof this.description !== 'undefined') {
5391
+ toReturn['description'] = this.description;
5392
+ }
5393
+ if (typeof this.default !== 'undefined') {
5394
+ toReturn['default'] = this.default;
5395
+ }
5396
+ if (typeof this.readOnly !== 'undefined') {
5397
+ toReturn['readOnly'] = this.readOnly;
5398
+ }
5399
+ if (typeof this.example !== 'undefined') {
5400
+ toReturn['example'] = this.example;
5401
+ }
5402
+ if (typeof this.multipleOf !== 'undefined') {
5403
+ toReturn['multipleOf'] = this.multipleOf;
5404
+ }
5405
+ if (typeof this.maximum !== 'undefined') {
5406
+ toReturn['maximum'] = this.maximum;
5407
+ }
5408
+ if (typeof this.exclusiveMaximum !== 'undefined') {
5409
+ toReturn['exclusiveMaximum'] = this.exclusiveMaximum;
5410
+ }
5411
+ if (typeof this.minimum !== 'undefined') {
5412
+ toReturn['minimum'] = this.minimum;
5413
+ }
5414
+ if (typeof this.exclusiveMinimum !== 'undefined') {
5415
+ toReturn['exclusiveMinimum'] = this.exclusiveMinimum;
5416
+ }
5417
+ if (typeof this.maxLength !== 'undefined') {
5418
+ toReturn['maxLength'] = this.maxLength;
5419
+ }
5420
+ if (typeof this.minLength !== 'undefined') {
5421
+ toReturn['minLength'] = this.minLength;
5422
+ }
5423
+ if (typeof this.pattern !== 'undefined') {
5424
+ toReturn['pattern'] = this.pattern;
5425
+ }
5426
+ if (typeof this.maxItems !== 'undefined') {
5427
+ toReturn['maxItems'] = this.maxItems;
5428
+ }
5429
+ if (typeof this.minItems !== 'undefined') {
5430
+ toReturn['minItems'] = this.minItems;
5431
+ }
5432
+ if (typeof this.uniqueItems !== 'undefined') {
5433
+ toReturn['uniqueItems'] = this.uniqueItems;
5434
+ }
5435
+ if (typeof this.maxProperties !== 'undefined') {
5436
+ toReturn['maxProperties'] = this.maxProperties;
5437
+ }
5438
+ if (typeof this.minProperties !== 'undefined') {
5439
+ toReturn['minProperties'] = this.minProperties;
5440
+ }
5441
+ if (typeof this.required !== 'undefined') {
5442
+ toReturn['required'] = this.required;
5443
+ }
5444
+ if (typeof this.array !== 'undefined') {
5445
+ toReturn['array'] = this.array;
5446
+ }
5447
+ if (typeof this.type !== 'undefined') {
5448
+ toReturn['type'] = this.type;
5449
+ }
5450
+ if (typeof this.format !== 'undefined') {
5451
+ toReturn['format'] = this.format;
5452
+ }
5453
+ if (typeof this.enum !== 'undefined') {
5454
+ toReturn['enum'] = this.enum;
5455
+ }
5456
+ if (typeof this.fieldConfiguration !== 'undefined' && this.fieldConfiguration !== null) {
5457
+ toReturn['fieldConfiguration'] = 'toApiJson' in this.fieldConfiguration ? this.fieldConfiguration.toApiJson() : this.fieldConfiguration;
5458
+ }
5459
+ if (typeof this.extensions !== 'undefined' && this.extensions !== null) {
5460
+ toReturn['extensions'] = 'toApiJson' in this.extensions ? this.extensions.toApiJson() : this.extensions;
5461
+ }
5462
+ return toReturn;
5463
+ }
5464
+ }
5465
+ class License {
5466
+ static fromProto(proto) {
5467
+ let m = new License();
5468
+ m = Object.assign(m, proto);
5469
+ return m;
5470
+ }
5471
+ constructor(kwargs) {
5472
+ if (!kwargs) {
5473
+ return;
5474
+ }
5475
+ Object.assign(this, kwargs);
5476
+ }
5477
+ toApiJson() {
5478
+ const toReturn = {};
5479
+ if (typeof this.name !== 'undefined') {
5480
+ toReturn['name'] = this.name;
5481
+ }
5482
+ if (typeof this.url !== 'undefined') {
5483
+ toReturn['url'] = this.url;
5484
+ }
5485
+ return toReturn;
5486
+ }
5487
+ }
5488
+ class Operation {
5489
+ static fromProto(proto) {
5490
+ let m = new Operation();
5491
+ m = Object.assign(m, proto);
5492
+ if (proto.externalDocs) {
5493
+ m.externalDocs = ExternalDocumentation.fromProto(proto.externalDocs);
5494
+ }
5495
+ if (proto.responses) {
5496
+ m.responses = Object.keys(proto.responses).reduce((obj, k) => { obj[k] = Response$1.fromProto(proto.responses[k]); return obj; }, {});
5497
+ }
5498
+ if (proto.schemes) {
5499
+ m.schemes = proto.schemes.map((v) => enumStringToValue$e(Scheme, v));
5500
+ }
5501
+ if (proto.security) {
5502
+ m.security = proto.security.map(SecurityRequirement.fromProto);
5503
+ }
5504
+ if (proto.extensions) {
5505
+ m.extensions = Object.keys(proto.extensions).reduce((obj, k) => { obj[k] = proto.extensions[k]; return obj; }, {});
5506
+ }
5507
+ if (proto.parameters) {
5508
+ m.parameters = Parameters.fromProto(proto.parameters);
5509
+ }
5510
+ return m;
5511
+ }
5512
+ constructor(kwargs) {
5513
+ if (!kwargs) {
5514
+ return;
5515
+ }
5516
+ Object.assign(this, kwargs);
5517
+ }
5518
+ toApiJson() {
5519
+ const toReturn = {};
5520
+ if (typeof this.tags !== 'undefined') {
5521
+ toReturn['tags'] = this.tags;
5522
+ }
5523
+ if (typeof this.summary !== 'undefined') {
5524
+ toReturn['summary'] = this.summary;
5525
+ }
5526
+ if (typeof this.description !== 'undefined') {
5527
+ toReturn['description'] = this.description;
5528
+ }
5529
+ if (typeof this.externalDocs !== 'undefined' && this.externalDocs !== null) {
5530
+ toReturn['externalDocs'] = 'toApiJson' in this.externalDocs ? this.externalDocs.toApiJson() : this.externalDocs;
5531
+ }
5532
+ if (typeof this.operationId !== 'undefined') {
5533
+ toReturn['operationId'] = this.operationId;
5534
+ }
5535
+ if (typeof this.consumes !== 'undefined') {
5536
+ toReturn['consumes'] = this.consumes;
5537
+ }
5538
+ if (typeof this.produces !== 'undefined') {
5539
+ toReturn['produces'] = this.produces;
5540
+ }
5541
+ if (typeof this.responses !== 'undefined' && this.responses !== null) {
5542
+ toReturn['responses'] = 'toApiJson' in this.responses ? this.responses.toApiJson() : this.responses;
5543
+ }
5544
+ if (typeof this.schemes !== 'undefined') {
5545
+ toReturn['schemes'] = this.schemes;
5546
+ }
5547
+ if (typeof this.deprecated !== 'undefined') {
5548
+ toReturn['deprecated'] = this.deprecated;
5549
+ }
5550
+ if (typeof this.security !== 'undefined' && this.security !== null) {
5551
+ toReturn['security'] = 'toApiJson' in this.security ? this.security.toApiJson() : this.security;
5552
+ }
5553
+ if (typeof this.extensions !== 'undefined' && this.extensions !== null) {
5554
+ toReturn['extensions'] = 'toApiJson' in this.extensions ? this.extensions.toApiJson() : this.extensions;
5555
+ }
5556
+ if (typeof this.parameters !== 'undefined' && this.parameters !== null) {
5557
+ toReturn['parameters'] = 'toApiJson' in this.parameters ? this.parameters.toApiJson() : this.parameters;
5558
+ }
5559
+ return toReturn;
5560
+ }
5561
+ }
5562
+ class Parameters {
5563
+ static fromProto(proto) {
5564
+ let m = new Parameters();
5565
+ m = Object.assign(m, proto);
5566
+ if (proto.headers) {
5567
+ m.headers = proto.headers.map(HeaderParameter.fromProto);
5568
+ }
5569
+ return m;
5570
+ }
5571
+ constructor(kwargs) {
5572
+ if (!kwargs) {
5573
+ return;
5574
+ }
5575
+ Object.assign(this, kwargs);
5576
+ }
5577
+ toApiJson() {
5578
+ const toReturn = {};
5579
+ if (typeof this.headers !== 'undefined' && this.headers !== null) {
5580
+ toReturn['headers'] = 'toApiJson' in this.headers ? this.headers.toApiJson() : this.headers;
5581
+ }
5582
+ return toReturn;
5583
+ }
5584
+ }
5585
+ let Response$1 = class Response {
5586
+ static fromProto(proto) {
5587
+ let m = new Response();
5588
+ m = Object.assign(m, proto);
5589
+ if (proto.schema) {
5590
+ m.schema = Schema.fromProto(proto.schema);
5591
+ }
5592
+ if (proto.headers) {
5593
+ m.headers = Object.keys(proto.headers).reduce((obj, k) => { obj[k] = Header.fromProto(proto.headers[k]); return obj; }, {});
5594
+ }
5595
+ if (proto.examples) {
5596
+ m.examples = Object.keys(proto.examples).reduce((obj, k) => { obj[k] = proto.examples[k]; return obj; }, {});
5597
+ }
5598
+ if (proto.extensions) {
5599
+ m.extensions = Object.keys(proto.extensions).reduce((obj, k) => { obj[k] = proto.extensions[k]; return obj; }, {});
5600
+ }
5601
+ return m;
5602
+ }
5603
+ constructor(kwargs) {
5604
+ if (!kwargs) {
5605
+ return;
5606
+ }
5607
+ Object.assign(this, kwargs);
5608
+ }
5609
+ toApiJson() {
5610
+ const toReturn = {};
5611
+ if (typeof this.description !== 'undefined') {
5612
+ toReturn['description'] = this.description;
5613
+ }
5614
+ if (typeof this.schema !== 'undefined' && this.schema !== null) {
5615
+ toReturn['schema'] = 'toApiJson' in this.schema ? this.schema.toApiJson() : this.schema;
5616
+ }
5617
+ if (typeof this.headers !== 'undefined' && this.headers !== null) {
5618
+ toReturn['headers'] = 'toApiJson' in this.headers ? this.headers.toApiJson() : this.headers;
5619
+ }
5620
+ if (typeof this.examples !== 'undefined' && this.examples !== null) {
5621
+ toReturn['examples'] = 'toApiJson' in this.examples ? this.examples.toApiJson() : this.examples;
5622
+ }
5623
+ if (typeof this.extensions !== 'undefined' && this.extensions !== null) {
5624
+ toReturn['extensions'] = 'toApiJson' in this.extensions ? this.extensions.toApiJson() : this.extensions;
5625
+ }
5626
+ return toReturn;
5627
+ }
5628
+ };
5629
+ class OperationResponsesEntry {
5630
+ static fromProto(proto) {
5631
+ let m = new OperationResponsesEntry();
5632
+ m = Object.assign(m, proto);
5633
+ if (proto.value) {
5634
+ m.value = Response$1.fromProto(proto.value);
5635
+ }
5636
+ return m;
5637
+ }
5638
+ constructor(kwargs) {
5639
+ if (!kwargs) {
5640
+ return;
5641
+ }
5642
+ Object.assign(this, kwargs);
5643
+ }
5644
+ toApiJson() {
5645
+ const toReturn = {};
5646
+ if (typeof this.key !== 'undefined') {
5647
+ toReturn['key'] = this.key;
5648
+ }
5649
+ if (typeof this.value !== 'undefined' && this.value !== null) {
5650
+ toReturn['value'] = 'toApiJson' in this.value ? this.value.toApiJson() : this.value;
5651
+ }
5652
+ return toReturn;
5653
+ }
5654
+ }
5655
+ class SwaggerResponsesEntry {
5656
+ static fromProto(proto) {
5657
+ let m = new SwaggerResponsesEntry();
5658
+ m = Object.assign(m, proto);
5659
+ if (proto.value) {
5660
+ m.value = Response$1.fromProto(proto.value);
5661
+ }
5662
+ return m;
5663
+ }
5664
+ constructor(kwargs) {
5665
+ if (!kwargs) {
5666
+ return;
5667
+ }
5668
+ Object.assign(this, kwargs);
5669
+ }
5670
+ toApiJson() {
5671
+ const toReturn = {};
5672
+ if (typeof this.key !== 'undefined') {
5673
+ toReturn['key'] = this.key;
5674
+ }
5675
+ if (typeof this.value !== 'undefined' && this.value !== null) {
5676
+ toReturn['value'] = 'toApiJson' in this.value ? this.value.toApiJson() : this.value;
5677
+ }
5678
+ return toReturn;
5679
+ }
5680
+ }
5681
+ class Schema {
5682
+ static fromProto(proto) {
5683
+ let m = new Schema();
5684
+ m = Object.assign(m, proto);
5685
+ if (proto.jsonSchema) {
5686
+ m.jsonSchema = JSONSchema.fromProto(proto.jsonSchema);
5687
+ }
5688
+ if (proto.externalDocs) {
5689
+ m.externalDocs = ExternalDocumentation.fromProto(proto.externalDocs);
5690
+ }
5691
+ return m;
5692
+ }
5693
+ constructor(kwargs) {
5694
+ if (!kwargs) {
5695
+ return;
5696
+ }
5697
+ Object.assign(this, kwargs);
5698
+ }
5699
+ toApiJson() {
5700
+ const toReturn = {};
5701
+ if (typeof this.jsonSchema !== 'undefined' && this.jsonSchema !== null) {
5702
+ toReturn['jsonSchema'] = 'toApiJson' in this.jsonSchema ? this.jsonSchema.toApiJson() : this.jsonSchema;
5703
+ }
5704
+ if (typeof this.discriminator !== 'undefined') {
5705
+ toReturn['discriminator'] = this.discriminator;
5706
+ }
5707
+ if (typeof this.readOnly !== 'undefined') {
5708
+ toReturn['readOnly'] = this.readOnly;
5709
+ }
5710
+ if (typeof this.externalDocs !== 'undefined' && this.externalDocs !== null) {
5711
+ toReturn['externalDocs'] = 'toApiJson' in this.externalDocs ? this.externalDocs.toApiJson() : this.externalDocs;
5712
+ }
5713
+ if (typeof this.example !== 'undefined') {
5714
+ toReturn['example'] = this.example;
5715
+ }
5716
+ return toReturn;
5717
+ }
5718
+ }
5719
+ class ScopesScopeEntry {
5720
+ static fromProto(proto) {
5721
+ let m = new ScopesScopeEntry();
5722
+ m = Object.assign(m, proto);
5723
+ return m;
5724
+ }
5725
+ constructor(kwargs) {
5726
+ if (!kwargs) {
5727
+ return;
5728
+ }
5729
+ Object.assign(this, kwargs);
5730
+ }
5731
+ toApiJson() {
5732
+ const toReturn = {};
5733
+ if (typeof this.key !== 'undefined') {
5734
+ toReturn['key'] = this.key;
5735
+ }
5736
+ if (typeof this.value !== 'undefined') {
5737
+ toReturn['value'] = this.value;
5738
+ }
5739
+ return toReturn;
5740
+ }
5741
+ }
5742
+ class Scopes {
5743
+ static fromProto(proto) {
5744
+ let m = new Scopes();
5745
+ m = Object.assign(m, proto);
5746
+ if (proto.scope) {
5747
+ m.scope = Object.keys(proto.scope).reduce((obj, k) => { obj[k] = proto.scope[k]; return obj; }, {});
5748
+ }
5749
+ return m;
5750
+ }
5751
+ constructor(kwargs) {
5752
+ if (!kwargs) {
5753
+ return;
5754
+ }
5755
+ Object.assign(this, kwargs);
5756
+ }
5757
+ toApiJson() {
5758
+ const toReturn = {};
5759
+ if (typeof this.scope !== 'undefined' && this.scope !== null) {
5760
+ toReturn['scope'] = 'toApiJson' in this.scope ? this.scope.toApiJson() : this.scope;
5761
+ }
5762
+ return toReturn;
5763
+ }
5764
+ }
5765
+ class SecurityDefinitions {
5766
+ static fromProto(proto) {
5767
+ let m = new SecurityDefinitions();
5768
+ m = Object.assign(m, proto);
5769
+ if (proto.security) {
5770
+ m.security = Object.keys(proto.security).reduce((obj, k) => { obj[k] = SecurityScheme.fromProto(proto.security[k]); return obj; }, {});
5771
+ }
5772
+ return m;
5773
+ }
5774
+ constructor(kwargs) {
5775
+ if (!kwargs) {
5776
+ return;
5777
+ }
5778
+ Object.assign(this, kwargs);
5779
+ }
5780
+ toApiJson() {
5781
+ const toReturn = {};
5782
+ if (typeof this.security !== 'undefined' && this.security !== null) {
5783
+ toReturn['security'] = 'toApiJson' in this.security ? this.security.toApiJson() : this.security;
5784
+ }
5785
+ return toReturn;
5786
+ }
5787
+ }
5788
+ class SecurityDefinitionsSecurityEntry {
5789
+ static fromProto(proto) {
5790
+ let m = new SecurityDefinitionsSecurityEntry();
5791
+ m = Object.assign(m, proto);
5792
+ if (proto.value) {
5793
+ m.value = SecurityScheme.fromProto(proto.value);
5794
+ }
5795
+ return m;
5796
+ }
5797
+ constructor(kwargs) {
5798
+ if (!kwargs) {
5799
+ return;
5800
+ }
5801
+ Object.assign(this, kwargs);
5802
+ }
5803
+ toApiJson() {
5804
+ const toReturn = {};
5805
+ if (typeof this.key !== 'undefined') {
5806
+ toReturn['key'] = this.key;
5807
+ }
5808
+ if (typeof this.value !== 'undefined' && this.value !== null) {
5809
+ toReturn['value'] = 'toApiJson' in this.value ? this.value.toApiJson() : this.value;
5810
+ }
5811
+ return toReturn;
5812
+ }
5813
+ }
5814
+ class SecurityRequirement {
5815
+ static fromProto(proto) {
5816
+ let m = new SecurityRequirement();
5817
+ m = Object.assign(m, proto);
5818
+ if (proto.securityRequirement) {
5819
+ m.securityRequirement = Object.keys(proto.securityRequirement).reduce((obj, k) => { obj[k] = SecurityRequirementSecurityRequirementValue.fromProto(proto.securityRequirement[k]); return obj; }, {});
5820
+ }
5821
+ return m;
5822
+ }
5823
+ constructor(kwargs) {
5824
+ if (!kwargs) {
5825
+ return;
5826
+ }
5827
+ Object.assign(this, kwargs);
5828
+ }
5829
+ toApiJson() {
5830
+ const toReturn = {};
5831
+ if (typeof this.securityRequirement !== 'undefined' && this.securityRequirement !== null) {
5832
+ toReturn['securityRequirement'] = 'toApiJson' in this.securityRequirement ? this.securityRequirement.toApiJson() : this.securityRequirement;
5833
+ }
5834
+ return toReturn;
5835
+ }
5836
+ }
5837
+ class SecurityRequirementSecurityRequirementEntry {
5838
+ static fromProto(proto) {
5839
+ let m = new SecurityRequirementSecurityRequirementEntry();
5840
+ m = Object.assign(m, proto);
5841
+ if (proto.value) {
5842
+ m.value = SecurityRequirementSecurityRequirementValue.fromProto(proto.value);
5843
+ }
5844
+ return m;
5845
+ }
5846
+ constructor(kwargs) {
5847
+ if (!kwargs) {
5848
+ return;
5849
+ }
5850
+ Object.assign(this, kwargs);
5851
+ }
5852
+ toApiJson() {
5853
+ const toReturn = {};
5854
+ if (typeof this.key !== 'undefined') {
5855
+ toReturn['key'] = this.key;
5856
+ }
5857
+ if (typeof this.value !== 'undefined' && this.value !== null) {
5858
+ toReturn['value'] = 'toApiJson' in this.value ? this.value.toApiJson() : this.value;
5859
+ }
5860
+ return toReturn;
5861
+ }
5862
+ }
5863
+ class SecurityRequirementSecurityRequirementValue {
5864
+ static fromProto(proto) {
5865
+ let m = new SecurityRequirementSecurityRequirementValue();
5866
+ m = Object.assign(m, proto);
5867
+ return m;
5868
+ }
5869
+ constructor(kwargs) {
5870
+ if (!kwargs) {
5871
+ return;
5872
+ }
5873
+ Object.assign(this, kwargs);
5874
+ }
5875
+ toApiJson() {
5876
+ const toReturn = {};
5877
+ if (typeof this.scope !== 'undefined') {
5878
+ toReturn['scope'] = this.scope;
5879
+ }
5880
+ return toReturn;
5881
+ }
5882
+ }
5883
+ class SecurityScheme {
5884
+ static fromProto(proto) {
5885
+ let m = new SecurityScheme();
5886
+ m = Object.assign(m, proto);
5887
+ if (proto.type) {
5888
+ m.type = enumStringToValue$e(SecuritySchemeType, proto.type);
5889
+ }
5890
+ if (proto.in) {
5891
+ m.in = enumStringToValue$e(SecuritySchemeIn, proto.in);
5892
+ }
5893
+ if (proto.flow) {
5894
+ m.flow = enumStringToValue$e(SecuritySchemeFlow, proto.flow);
5895
+ }
5896
+ if (proto.scopes) {
5897
+ m.scopes = Scopes.fromProto(proto.scopes);
5898
+ }
5899
+ if (proto.extensions) {
5900
+ m.extensions = Object.keys(proto.extensions).reduce((obj, k) => { obj[k] = proto.extensions[k]; return obj; }, {});
5901
+ }
5902
+ return m;
5903
+ }
5904
+ constructor(kwargs) {
5905
+ if (!kwargs) {
5906
+ return;
5907
+ }
5908
+ Object.assign(this, kwargs);
5909
+ }
5910
+ toApiJson() {
5911
+ const toReturn = {};
5912
+ if (typeof this.type !== 'undefined') {
5913
+ toReturn['type'] = this.type;
5914
+ }
5915
+ if (typeof this.description !== 'undefined') {
5916
+ toReturn['description'] = this.description;
5917
+ }
5918
+ if (typeof this.name !== 'undefined') {
5919
+ toReturn['name'] = this.name;
5920
+ }
5921
+ if (typeof this.in !== 'undefined') {
5922
+ toReturn['in'] = this.in;
5923
+ }
5924
+ if (typeof this.flow !== 'undefined') {
5925
+ toReturn['flow'] = this.flow;
5926
+ }
5927
+ if (typeof this.authorizationUrl !== 'undefined') {
5928
+ toReturn['authorizationUrl'] = this.authorizationUrl;
5929
+ }
5930
+ if (typeof this.tokenUrl !== 'undefined') {
5931
+ toReturn['tokenUrl'] = this.tokenUrl;
5932
+ }
5933
+ if (typeof this.scopes !== 'undefined' && this.scopes !== null) {
5934
+ toReturn['scopes'] = 'toApiJson' in this.scopes ? this.scopes.toApiJson() : this.scopes;
5935
+ }
5936
+ if (typeof this.extensions !== 'undefined' && this.extensions !== null) {
5937
+ toReturn['extensions'] = 'toApiJson' in this.extensions ? this.extensions.toApiJson() : this.extensions;
5938
+ }
5939
+ return toReturn;
5940
+ }
5941
+ }
5942
+ class Swagger {
5943
+ static fromProto(proto) {
5944
+ let m = new Swagger();
5945
+ m = Object.assign(m, proto);
5946
+ if (proto.info) {
5947
+ m.info = Info.fromProto(proto.info);
5948
+ }
5949
+ if (proto.schemes) {
5950
+ m.schemes = proto.schemes.map((v) => enumStringToValue$e(Scheme, v));
5951
+ }
5952
+ if (proto.responses) {
5953
+ m.responses = Object.keys(proto.responses).reduce((obj, k) => { obj[k] = Response$1.fromProto(proto.responses[k]); return obj; }, {});
5954
+ }
5955
+ if (proto.securityDefinitions) {
5956
+ m.securityDefinitions = SecurityDefinitions.fromProto(proto.securityDefinitions);
5957
+ }
5958
+ if (proto.security) {
5959
+ m.security = proto.security.map(SecurityRequirement.fromProto);
5960
+ }
5961
+ if (proto.tags) {
5962
+ m.tags = proto.tags.map(Tag.fromProto);
5963
+ }
5964
+ if (proto.externalDocs) {
5965
+ m.externalDocs = ExternalDocumentation.fromProto(proto.externalDocs);
5966
+ }
5967
+ if (proto.extensions) {
5968
+ m.extensions = Object.keys(proto.extensions).reduce((obj, k) => { obj[k] = proto.extensions[k]; return obj; }, {});
5969
+ }
5970
+ return m;
5971
+ }
5972
+ constructor(kwargs) {
5973
+ if (!kwargs) {
5974
+ return;
5975
+ }
5976
+ Object.assign(this, kwargs);
5977
+ }
5978
+ toApiJson() {
5979
+ const toReturn = {};
5980
+ if (typeof this.swagger !== 'undefined') {
5981
+ toReturn['swagger'] = this.swagger;
5982
+ }
5983
+ if (typeof this.info !== 'undefined' && this.info !== null) {
5984
+ toReturn['info'] = 'toApiJson' in this.info ? this.info.toApiJson() : this.info;
5985
+ }
5986
+ if (typeof this.host !== 'undefined') {
5987
+ toReturn['host'] = this.host;
5988
+ }
5989
+ if (typeof this.basePath !== 'undefined') {
5990
+ toReturn['basePath'] = this.basePath;
5991
+ }
5992
+ if (typeof this.schemes !== 'undefined') {
5993
+ toReturn['schemes'] = this.schemes;
5994
+ }
5995
+ if (typeof this.consumes !== 'undefined') {
5996
+ toReturn['consumes'] = this.consumes;
5997
+ }
5998
+ if (typeof this.produces !== 'undefined') {
5999
+ toReturn['produces'] = this.produces;
6000
+ }
6001
+ if (typeof this.responses !== 'undefined' && this.responses !== null) {
6002
+ toReturn['responses'] = 'toApiJson' in this.responses ? this.responses.toApiJson() : this.responses;
6003
+ }
6004
+ if (typeof this.securityDefinitions !== 'undefined' && this.securityDefinitions !== null) {
6005
+ toReturn['securityDefinitions'] = 'toApiJson' in this.securityDefinitions ? this.securityDefinitions.toApiJson() : this.securityDefinitions;
6006
+ }
6007
+ if (typeof this.security !== 'undefined' && this.security !== null) {
6008
+ toReturn['security'] = 'toApiJson' in this.security ? this.security.toApiJson() : this.security;
6009
+ }
6010
+ if (typeof this.tags !== 'undefined' && this.tags !== null) {
6011
+ toReturn['tags'] = 'toApiJson' in this.tags ? this.tags.toApiJson() : this.tags;
6012
+ }
6013
+ if (typeof this.externalDocs !== 'undefined' && this.externalDocs !== null) {
6014
+ toReturn['externalDocs'] = 'toApiJson' in this.externalDocs ? this.externalDocs.toApiJson() : this.externalDocs;
6015
+ }
6016
+ if (typeof this.extensions !== 'undefined' && this.extensions !== null) {
6017
+ toReturn['extensions'] = 'toApiJson' in this.extensions ? this.extensions.toApiJson() : this.extensions;
6018
+ }
6019
+ return toReturn;
6020
+ }
6021
+ }
6022
+ class Tag {
6023
+ static fromProto(proto) {
6024
+ let m = new Tag();
6025
+ m = Object.assign(m, proto);
6026
+ if (proto.externalDocs) {
6027
+ m.externalDocs = ExternalDocumentation.fromProto(proto.externalDocs);
6028
+ }
6029
+ if (proto.extensions) {
6030
+ m.extensions = Object.keys(proto.extensions).reduce((obj, k) => { obj[k] = proto.extensions[k]; return obj; }, {});
6031
+ }
6032
+ return m;
6033
+ }
6034
+ constructor(kwargs) {
6035
+ if (!kwargs) {
6036
+ return;
6037
+ }
6038
+ Object.assign(this, kwargs);
6039
+ }
6040
+ toApiJson() {
6041
+ const toReturn = {};
6042
+ if (typeof this.name !== 'undefined') {
6043
+ toReturn['name'] = this.name;
6044
+ }
6045
+ if (typeof this.description !== 'undefined') {
6046
+ toReturn['description'] = this.description;
6047
+ }
6048
+ if (typeof this.externalDocs !== 'undefined' && this.externalDocs !== null) {
6049
+ toReturn['externalDocs'] = 'toApiJson' in this.externalDocs ? this.externalDocs.toApiJson() : this.externalDocs;
6050
+ }
6051
+ if (typeof this.extensions !== 'undefined' && this.extensions !== null) {
6052
+ toReturn['extensions'] = 'toApiJson' in this.extensions ? this.extensions.toApiJson() : this.extensions;
6053
+ }
6054
+ return toReturn;
6055
+ }
6056
+ }
6057
+
6058
+ function enumStringToValue$d(enumRef, value) {
6059
+ if (typeof value === 'number') {
6060
+ return value;
6061
+ }
6062
+ return enumRef[value];
6063
+ }
6064
+ class LinkV2 {
6065
+ static fromProto(proto) {
6066
+ let m = new LinkV2();
6067
+ m = Object.assign(m, proto);
6068
+ return m;
6069
+ }
6070
+ constructor(kwargs) {
6071
+ if (!kwargs) {
6072
+ return;
6073
+ }
6074
+ Object.assign(this, kwargs);
6075
+ }
6076
+ toApiJson() {
6077
+ const toReturn = {};
6078
+ if (typeof this.name !== 'undefined') {
6079
+ toReturn['name'] = this.name;
6080
+ }
6081
+ if (typeof this.picture !== 'undefined') {
6082
+ toReturn['picture'] = this.picture;
6083
+ }
6084
+ if (typeof this.description !== 'undefined') {
6085
+ toReturn['description'] = this.description;
6086
+ }
6087
+ if (typeof this.title !== 'undefined') {
6088
+ toReturn['title'] = this.title;
6089
+ }
6090
+ if (typeof this.url !== 'undefined') {
6091
+ toReturn['url'] = this.url;
6092
+ }
6093
+ if (typeof this.shortcode !== 'undefined') {
6094
+ toReturn['shortcode'] = this.shortcode;
6095
+ }
6096
+ return toReturn;
6097
+ }
6098
+ }
6099
+ class MetadataV2 {
6100
+ static fromProto(proto) {
6101
+ let m = new MetadataV2();
6102
+ m = Object.assign(m, proto);
6103
+ return m;
6104
+ }
6105
+ constructor(kwargs) {
6106
+ if (!kwargs) {
6107
+ return;
6108
+ }
6109
+ Object.assign(this, kwargs);
6110
+ }
6111
+ toApiJson() {
6112
+ const toReturn = {};
6113
+ if (typeof this.name !== 'undefined') {
6114
+ toReturn['name'] = this.name;
6115
+ }
6116
+ if (typeof this.value !== 'undefined') {
6117
+ toReturn['value'] = this.value;
6118
+ }
6119
+ return toReturn;
6120
+ }
6121
+ }
6122
+ class PostActionV2 {
6123
+ static fromProto(proto) {
6124
+ let m = new PostActionV2();
6125
+ m = Object.assign(m, proto);
6126
+ return m;
6127
+ }
6128
+ constructor(kwargs) {
6129
+ if (!kwargs) {
6130
+ return;
6131
+ }
6132
+ Object.assign(this, kwargs);
6133
+ }
6134
+ toApiJson() {
6135
+ const toReturn = {};
6136
+ if (typeof this.type !== 'undefined') {
6137
+ toReturn['type'] = this.type;
6138
+ }
6139
+ if (typeof this.linkUrl !== 'undefined') {
6140
+ toReturn['linkUrl'] = this.linkUrl;
6141
+ }
6142
+ return toReturn;
6143
+ }
6144
+ }
6145
+ class PostContentV2 {
6146
+ static fromProto(proto) {
6147
+ let m = new PostContentV2();
6148
+ m = Object.assign(m, proto);
6149
+ if (proto.medias) {
6150
+ m.medias = proto.medias.map(PostMediaV2.fromProto);
6151
+ }
6152
+ if (proto.links) {
6153
+ m.links = proto.links.map(LinkV2.fromProto);
6154
+ }
6155
+ return m;
6156
+ }
6157
+ constructor(kwargs) {
6158
+ if (!kwargs) {
6159
+ return;
6160
+ }
6161
+ Object.assign(this, kwargs);
6162
+ }
6163
+ toApiJson() {
6164
+ const toReturn = {};
6165
+ if (typeof this.postText !== 'undefined') {
6166
+ toReturn['postText'] = this.postText;
6167
+ }
6168
+ if (typeof this.medias !== 'undefined' && this.medias !== null) {
6169
+ toReturn['medias'] = 'toApiJson' in this.medias ? this.medias.toApiJson() : this.medias;
6170
+ }
6171
+ if (typeof this.links !== 'undefined' && this.links !== null) {
6172
+ toReturn['links'] = 'toApiJson' in this.links ? this.links.toApiJson() : this.links;
6173
+ }
6174
+ if (typeof this.description !== 'undefined') {
6175
+ toReturn['description'] = this.description;
6176
+ }
6177
+ if (typeof this.title !== 'undefined') {
6178
+ toReturn['title'] = this.title;
6179
+ }
6180
+ return toReturn;
6181
+ }
6182
+ }
6183
+ class PostCustomizationV2 {
6184
+ static fromProto(proto) {
6185
+ let m = new PostCustomizationV2();
6186
+ m = Object.assign(m, proto);
6187
+ if (proto.event) {
6188
+ m.event = PostEventV2.fromProto(proto.event);
6189
+ }
6190
+ if (proto.action) {
6191
+ m.action = PostActionV2.fromProto(proto.action);
6192
+ }
6193
+ return m;
6194
+ }
6195
+ constructor(kwargs) {
6196
+ if (!kwargs) {
6197
+ return;
6198
+ }
6199
+ Object.assign(this, kwargs);
6200
+ }
6201
+ toApiJson() {
6202
+ const toReturn = {};
6203
+ if (typeof this.event !== 'undefined' && this.event !== null) {
6204
+ toReturn['event'] = 'toApiJson' in this.event ? this.event.toApiJson() : this.event;
6205
+ }
6206
+ if (typeof this.action !== 'undefined' && this.action !== null) {
6207
+ toReturn['action'] = 'toApiJson' in this.action ? this.action.toApiJson() : this.action;
6208
+ }
6209
+ return toReturn;
6210
+ }
6211
+ }
6212
+ class PostEventV2 {
6213
+ static fromProto(proto) {
6214
+ let m = new PostEventV2();
6215
+ m = Object.assign(m, proto);
6216
+ if (proto.start) {
6217
+ m.start = new Date(proto.start);
6218
+ }
6219
+ if (proto.end) {
6220
+ m.end = new Date(proto.end);
6221
+ }
6222
+ return m;
6223
+ }
6224
+ constructor(kwargs) {
6225
+ if (!kwargs) {
6226
+ return;
6227
+ }
6228
+ Object.assign(this, kwargs);
6229
+ }
6230
+ toApiJson() {
6231
+ const toReturn = {};
6232
+ if (typeof this.title !== 'undefined') {
6233
+ toReturn['title'] = this.title;
6234
+ }
6235
+ if (typeof this.start !== 'undefined' && this.start !== null) {
6236
+ toReturn['start'] = 'toApiJson' in this.start ? this.start.toApiJson() : this.start;
6237
+ }
6238
+ if (typeof this.end !== 'undefined' && this.end !== null) {
6239
+ toReturn['end'] = 'toApiJson' in this.end ? this.end.toApiJson() : this.end;
6240
+ }
6241
+ return toReturn;
6242
+ }
6243
+ }
6244
+ class PostMediaV2 {
6245
+ static fromProto(proto) {
6246
+ let m = new PostMediaV2();
6247
+ m = Object.assign(m, proto);
6248
+ if (proto.metadata) {
6249
+ m.metadata = proto.metadata.map(MetadataV2.fromProto);
6250
+ }
6251
+ return m;
6252
+ }
6253
+ constructor(kwargs) {
6254
+ if (!kwargs) {
6255
+ return;
6256
+ }
6257
+ Object.assign(this, kwargs);
6258
+ }
6259
+ toApiJson() {
6260
+ const toReturn = {};
6261
+ if (typeof this.mediaId !== 'undefined') {
6262
+ toReturn['mediaId'] = this.mediaId;
6263
+ }
6264
+ if (typeof this.mediaUrl !== 'undefined') {
6265
+ toReturn['mediaUrl'] = this.mediaUrl;
6266
+ }
6267
+ if (typeof this.mediaType !== 'undefined') {
6268
+ toReturn['mediaType'] = this.mediaType;
6269
+ }
6270
+ if (typeof this.containerId !== 'undefined') {
6271
+ toReturn['containerId'] = this.containerId;
6272
+ }
6273
+ if (typeof this.metadata !== 'undefined' && this.metadata !== null) {
6274
+ toReturn['metadata'] = 'toApiJson' in this.metadata ? this.metadata.toApiJson() : this.metadata;
6275
+ }
6276
+ return toReturn;
6277
+ }
6278
+ }
6279
+ class SocialPostV2 {
6280
+ static fromProto(proto) {
6281
+ let m = new SocialPostV2();
6282
+ m = Object.assign(m, proto);
6283
+ if (proto.postContent) {
6284
+ m.postContent = PostContentV2.fromProto(proto.postContent);
6285
+ }
6286
+ if (proto.scheduled) {
6287
+ m.scheduled = new Date(proto.scheduled);
6288
+ }
6289
+ if (proto.customization) {
6290
+ m.customization = PostCustomizationV2.fromProto(proto.customization);
6291
+ }
6292
+ if (proto.postType) {
6293
+ m.postType = enumStringToValue$d(PostTypeV2, proto.postType);
6294
+ }
6295
+ if (proto.metadata) {
6296
+ m.metadata = proto.metadata.map(MetadataV2.fromProto);
6297
+ }
6298
+ if (proto.youtubeCustomization) {
6299
+ m.youtubeCustomization = YoutubeCustomizationV2.fromProto(proto.youtubeCustomization);
6300
+ }
6301
+ if (proto.tiktokCustomization) {
6302
+ m.tiktokCustomization = TikTokCustomizationV2.fromProto(proto.tiktokCustomization);
6303
+ }
6304
+ return m;
6305
+ }
6306
+ constructor(kwargs) {
6307
+ if (!kwargs) {
6308
+ return;
6309
+ }
6310
+ Object.assign(this, kwargs);
6311
+ }
6312
+ toApiJson() {
6313
+ const toReturn = {};
6314
+ if (typeof this.businessId !== 'undefined') {
6315
+ toReturn['businessId'] = this.businessId;
6316
+ }
6317
+ if (typeof this.socialServiceId !== 'undefined') {
6318
+ toReturn['socialServiceId'] = this.socialServiceId;
6319
+ }
6320
+ if (typeof this.postContent !== 'undefined' && this.postContent !== null) {
6321
+ toReturn['postContent'] = 'toApiJson' in this.postContent ? this.postContent.toApiJson() : this.postContent;
6322
+ }
6323
+ if (typeof this.scheduled !== 'undefined' && this.scheduled !== null) {
6324
+ toReturn['scheduled'] = 'toApiJson' in this.scheduled ? this.scheduled.toApiJson() : this.scheduled;
6325
+ }
6326
+ if (typeof this.customization !== 'undefined' && this.customization !== null) {
6327
+ toReturn['customization'] = 'toApiJson' in this.customization ? this.customization.toApiJson() : this.customization;
6328
+ }
6329
+ if (typeof this.postType !== 'undefined') {
6330
+ toReturn['postType'] = this.postType;
6331
+ }
6332
+ if (typeof this.internalPostId !== 'undefined') {
6333
+ toReturn['internalPostId'] = this.internalPostId;
6334
+ }
6335
+ if (typeof this.metadata !== 'undefined' && this.metadata !== null) {
6336
+ toReturn['metadata'] = 'toApiJson' in this.metadata ? this.metadata.toApiJson() : this.metadata;
6337
+ }
6338
+ if (typeof this.partnerId !== 'undefined') {
6339
+ toReturn['partnerId'] = this.partnerId;
6340
+ }
6341
+ if (typeof this.brandId !== 'undefined') {
6342
+ toReturn['brandId'] = this.brandId;
6343
+ }
6344
+ if (typeof this.multilocationPostId !== 'undefined') {
6345
+ toReturn['multilocationPostId'] = this.multilocationPostId;
6346
+ }
6347
+ if (typeof this.youtubeCustomization !== 'undefined' && this.youtubeCustomization !== null) {
6348
+ toReturn['youtubeCustomization'] = 'toApiJson' in this.youtubeCustomization ? this.youtubeCustomization.toApiJson() : this.youtubeCustomization;
6349
+ }
6350
+ if (typeof this.userId !== 'undefined') {
6351
+ toReturn['userId'] = this.userId;
6352
+ }
6353
+ if (typeof this.shareId !== 'undefined') {
6354
+ toReturn['shareId'] = this.shareId;
6355
+ }
6356
+ if (typeof this.tiktokCustomization !== 'undefined' && this.tiktokCustomization !== null) {
6357
+ toReturn['tiktokCustomization'] = 'toApiJson' in this.tiktokCustomization ? this.tiktokCustomization.toApiJson() : this.tiktokCustomization;
6358
+ }
6359
+ if (typeof this.campaignId !== 'undefined') {
6360
+ toReturn['campaignId'] = this.campaignId;
6361
+ }
6362
+ return toReturn;
6363
+ }
6364
+ }
6365
+ class TikTokCustomizationV2 {
6366
+ static fromProto(proto) {
6367
+ let m = new TikTokCustomizationV2();
6368
+ m = Object.assign(m, proto);
6369
+ return m;
6370
+ }
6371
+ constructor(kwargs) {
6372
+ if (!kwargs) {
6373
+ return;
6374
+ }
6375
+ Object.assign(this, kwargs);
6376
+ }
6377
+ toApiJson() {
6378
+ const toReturn = {};
6379
+ if (typeof this.allowComment !== 'undefined') {
6380
+ toReturn['allowComment'] = this.allowComment;
6381
+ }
6382
+ if (typeof this.allowDuet !== 'undefined') {
6383
+ toReturn['allowDuet'] = this.allowDuet;
6384
+ }
6385
+ if (typeof this.allowStitch !== 'undefined') {
6386
+ toReturn['allowStitch'] = this.allowStitch;
5087
6387
  }
5088
6388
  if (typeof this.isBrandOrganic !== 'undefined') {
5089
6389
  toReturn['isBrandOrganic'] = this.isBrandOrganic;
@@ -5099,7 +6399,7 @@ class YoutubeCustomizationV2 {
5099
6399
  let m = new YoutubeCustomizationV2();
5100
6400
  m = Object.assign(m, proto);
5101
6401
  if (proto.privacyStatus) {
5102
- m.privacyStatus = enumStringToValue$c(YoutubeCustomizationV2PrivacyStatusV2, proto.privacyStatus);
6402
+ m.privacyStatus = enumStringToValue$d(YoutubeCustomizationV2PrivacyStatusV2, proto.privacyStatus);
5103
6403
  }
5104
6404
  return m;
5105
6405
  }
@@ -5118,7 +6418,7 @@ class YoutubeCustomizationV2 {
5118
6418
  }
5119
6419
  }
5120
6420
 
5121
- function enumStringToValue$b(enumRef, value) {
6421
+ function enumStringToValue$c(enumRef, value) {
5122
6422
  if (typeof value === 'number') {
5123
6423
  return value;
5124
6424
  }
@@ -5129,7 +6429,7 @@ class Media {
5129
6429
  let m = new Media();
5130
6430
  m = Object.assign(m, proto);
5131
6431
  if (proto.mediaType) {
5132
- m.mediaType = enumStringToValue$b(MediaType$1, proto.mediaType);
6432
+ m.mediaType = enumStringToValue$c(MediaType$1, proto.mediaType);
5133
6433
  }
5134
6434
  return m;
5135
6435
  }
@@ -5151,7 +6451,7 @@ class Media {
5151
6451
  }
5152
6452
  }
5153
6453
 
5154
- function enumStringToValue$a(enumRef, value) {
6454
+ function enumStringToValue$b(enumRef, value) {
5155
6455
  if (typeof value === 'number') {
5156
6456
  return value;
5157
6457
  }
@@ -5686,7 +6986,7 @@ class UserLink {
5686
6986
  }
5687
6987
  }
5688
6988
 
5689
- function enumStringToValue$9(enumRef, value) {
6989
+ function enumStringToValue$a(enumRef, value) {
5690
6990
  if (typeof value === 'number') {
5691
6991
  return value;
5692
6992
  }
@@ -5697,7 +6997,7 @@ class ProvisionRequest {
5697
6997
  let m = new ProvisionRequest();
5698
6998
  m = Object.assign(m, proto);
5699
6999
  if (proto.action) {
5700
- m.action = enumStringToValue$9(ProvisionAction, proto.action);
7000
+ m.action = enumStringToValue$a(ProvisionAction, proto.action);
5701
7001
  }
5702
7002
  return m;
5703
7003
  }
@@ -5728,7 +7028,7 @@ class ProvisionRequest {
5728
7028
  }
5729
7029
  }
5730
7030
 
5731
- function enumStringToValue$8(enumRef, value) {
7031
+ function enumStringToValue$9(enumRef, value) {
5732
7032
  if (typeof value === 'number') {
5733
7033
  return value;
5734
7034
  }
@@ -5777,7 +7077,7 @@ class BlogPostCampaign {
5777
7077
  let m = new BlogPostCampaign();
5778
7078
  m = Object.assign(m, proto);
5779
7079
  if (proto.blogPostType) {
5780
- m.blogPostType = enumStringToValue$8(PostCategory, proto.blogPostType);
7080
+ m.blogPostType = enumStringToValue$9(PostCategory, proto.blogPostType);
5781
7081
  }
5782
7082
  return m;
5783
7083
  }
@@ -6059,10 +7359,10 @@ class GenerateAiRequest {
6059
7359
  let m = new GenerateAiRequest();
6060
7360
  m = Object.assign(m, proto);
6061
7361
  if (proto.length) {
6062
- m.length = enumStringToValue$8(ContentLength, proto.length);
7362
+ m.length = enumStringToValue$9(ContentLength, proto.length);
6063
7363
  }
6064
7364
  if (proto.generateType) {
6065
- m.generateType = enumStringToValue$8(GenerateType, proto.generateType);
7365
+ m.generateType = enumStringToValue$9(GenerateType, proto.generateType);
6066
7366
  }
6067
7367
  if (proto.metadata) {
6068
7368
  m.metadata = proto.metadata.map(MetadataV2.fromProto);
@@ -6135,7 +7435,7 @@ class GenerateBlogPostCampaignRequest {
6135
7435
  let m = new GenerateBlogPostCampaignRequest();
6136
7436
  m = Object.assign(m, proto);
6137
7437
  if (proto.networkType) {
6138
- m.networkType = proto.networkType.map((v) => enumStringToValue$8(Network, v));
7438
+ m.networkType = proto.networkType.map((v) => enumStringToValue$9(Network, v));
6139
7439
  }
6140
7440
  if (proto.blogCampaign) {
6141
7441
  m.blogCampaign = BlogPostCampaign.fromProto(proto.blogCampaign);
@@ -6228,7 +7528,7 @@ class GeneratePostCampaignRequest {
6228
7528
  let m = new GeneratePostCampaignRequest();
6229
7529
  m = Object.assign(m, proto);
6230
7530
  if (proto.networkType) {
6231
- m.networkType = proto.networkType.map((v) => enumStringToValue$8(Network, v));
7531
+ m.networkType = proto.networkType.map((v) => enumStringToValue$9(Network, v));
6232
7532
  }
6233
7533
  if (proto.postGeneration) {
6234
7534
  m.postGeneration = PostsGeneration.fromProto(proto.postGeneration);
@@ -6374,13 +7674,53 @@ class GetCommonAiInstructionsRequest {
6374
7674
  return toReturn;
6375
7675
  }
6376
7676
  }
6377
- class GetCommonAiInstructionsResponse {
7677
+ class GetCommonAiInstructionsResponse {
7678
+ static fromProto(proto) {
7679
+ let m = new GetCommonAiInstructionsResponse();
7680
+ m = Object.assign(m, proto);
7681
+ if (proto.aiInstructions) {
7682
+ m.aiInstructions = AiInstructions.fromProto(proto.aiInstructions);
7683
+ }
7684
+ return m;
7685
+ }
7686
+ constructor(kwargs) {
7687
+ if (!kwargs) {
7688
+ return;
7689
+ }
7690
+ Object.assign(this, kwargs);
7691
+ }
7692
+ toApiJson() {
7693
+ const toReturn = {};
7694
+ if (typeof this.aiInstructions !== 'undefined' && this.aiInstructions !== null) {
7695
+ toReturn['aiInstructions'] = 'toApiJson' in this.aiInstructions ? this.aiInstructions.toApiJson() : this.aiInstructions;
7696
+ }
7697
+ return toReturn;
7698
+ }
7699
+ }
7700
+ class GetMediaMetadataFromURLRequest {
7701
+ static fromProto(proto) {
7702
+ let m = new GetMediaMetadataFromURLRequest();
7703
+ m = Object.assign(m, proto);
7704
+ return m;
7705
+ }
7706
+ constructor(kwargs) {
7707
+ if (!kwargs) {
7708
+ return;
7709
+ }
7710
+ Object.assign(this, kwargs);
7711
+ }
7712
+ toApiJson() {
7713
+ const toReturn = {};
7714
+ if (typeof this.url !== 'undefined') {
7715
+ toReturn['url'] = this.url;
7716
+ }
7717
+ return toReturn;
7718
+ }
7719
+ }
7720
+ class GetMediaMetadataFromURLResponse {
6378
7721
  static fromProto(proto) {
6379
- let m = new GetCommonAiInstructionsResponse();
7722
+ let m = new GetMediaMetadataFromURLResponse();
6380
7723
  m = Object.assign(m, proto);
6381
- if (proto.aiInstructions) {
6382
- m.aiInstructions = AiInstructions.fromProto(proto.aiInstructions);
6383
- }
6384
7724
  return m;
6385
7725
  }
6386
7726
  constructor(kwargs) {
@@ -6391,15 +7731,18 @@ class GetCommonAiInstructionsResponse {
6391
7731
  }
6392
7732
  toApiJson() {
6393
7733
  const toReturn = {};
6394
- if (typeof this.aiInstructions !== 'undefined' && this.aiInstructions !== null) {
6395
- toReturn['aiInstructions'] = 'toApiJson' in this.aiInstructions ? this.aiInstructions.toApiJson() : this.aiInstructions;
7734
+ if (typeof this.blobType !== 'undefined') {
7735
+ toReturn['blobType'] = this.blobType;
7736
+ }
7737
+ if (typeof this.finalUrl !== 'undefined') {
7738
+ toReturn['finalUrl'] = this.finalUrl;
6396
7739
  }
6397
7740
  return toReturn;
6398
7741
  }
6399
7742
  }
6400
- class GetMediaMetadataFromURLRequest {
7743
+ class GetXSubscriptionTypeRequest {
6401
7744
  static fromProto(proto) {
6402
- let m = new GetMediaMetadataFromURLRequest();
7745
+ let m = new GetXSubscriptionTypeRequest();
6403
7746
  m = Object.assign(m, proto);
6404
7747
  return m;
6405
7748
  }
@@ -6411,16 +7754,22 @@ class GetMediaMetadataFromURLRequest {
6411
7754
  }
6412
7755
  toApiJson() {
6413
7756
  const toReturn = {};
6414
- if (typeof this.url !== 'undefined') {
6415
- toReturn['url'] = this.url;
7757
+ if (typeof this.socialServiceId !== 'undefined') {
7758
+ toReturn['socialServiceId'] = this.socialServiceId;
7759
+ }
7760
+ if (typeof this.businessId !== 'undefined') {
7761
+ toReturn['businessId'] = this.businessId;
6416
7762
  }
6417
7763
  return toReturn;
6418
7764
  }
6419
7765
  }
6420
- class GetMediaMetadataFromURLResponse {
7766
+ class GetXSubscriptionTypeResponse {
6421
7767
  static fromProto(proto) {
6422
- let m = new GetMediaMetadataFromURLResponse();
7768
+ let m = new GetXSubscriptionTypeResponse();
6423
7769
  m = Object.assign(m, proto);
7770
+ if (proto.subscriptionType) {
7771
+ m.subscriptionType = enumStringToValue$9(XSubscriptionType, proto.subscriptionType);
7772
+ }
6424
7773
  return m;
6425
7774
  }
6426
7775
  constructor(kwargs) {
@@ -6431,11 +7780,8 @@ class GetMediaMetadataFromURLResponse {
6431
7780
  }
6432
7781
  toApiJson() {
6433
7782
  const toReturn = {};
6434
- if (typeof this.blobType !== 'undefined') {
6435
- toReturn['blobType'] = this.blobType;
6436
- }
6437
- if (typeof this.finalUrl !== 'undefined') {
6438
- toReturn['finalUrl'] = this.finalUrl;
7783
+ if (typeof this.subscriptionType !== 'undefined') {
7784
+ toReturn['subscriptionType'] = this.subscriptionType;
6439
7785
  }
6440
7786
  return toReturn;
6441
7787
  }
@@ -6486,9 +7832,9 @@ class ImageCreated {
6486
7832
  return toReturn;
6487
7833
  }
6488
7834
  }
6489
- class GeneratePostsResponseImageResponse {
7835
+ class ImageResponse {
6490
7836
  static fromProto(proto) {
6491
- let m = new GeneratePostsResponseImageResponse();
7837
+ let m = new ImageResponse();
6492
7838
  m = Object.assign(m, proto);
6493
7839
  return m;
6494
7840
  }
@@ -6503,8 +7849,8 @@ class GeneratePostsResponseImageResponse {
6503
7849
  if (typeof this.type !== 'undefined') {
6504
7850
  toReturn['type'] = this.type;
6505
7851
  }
6506
- if (typeof this.webFormatUrl !== 'undefined') {
6507
- toReturn['webFormatUrl'] = this.webFormatUrl;
7852
+ if (typeof this.webformatUrl !== 'undefined') {
7853
+ toReturn['webformatUrl'] = this.webformatUrl;
6508
7854
  }
6509
7855
  if (typeof this.fullHdUrl !== 'undefined') {
6510
7856
  toReturn['fullHdUrl'] = this.fullHdUrl;
@@ -6515,9 +7861,9 @@ class GeneratePostsResponseImageResponse {
6515
7861
  return toReturn;
6516
7862
  }
6517
7863
  }
6518
- class ImageResponse {
7864
+ class GeneratePostsResponseImageResponse {
6519
7865
  static fromProto(proto) {
6520
- let m = new ImageResponse();
7866
+ let m = new GeneratePostsResponseImageResponse();
6521
7867
  m = Object.assign(m, proto);
6522
7868
  return m;
6523
7869
  }
@@ -6532,8 +7878,8 @@ class ImageResponse {
6532
7878
  if (typeof this.type !== 'undefined') {
6533
7879
  toReturn['type'] = this.type;
6534
7880
  }
6535
- if (typeof this.webformatUrl !== 'undefined') {
6536
- toReturn['webformatUrl'] = this.webformatUrl;
7881
+ if (typeof this.webFormatUrl !== 'undefined') {
7882
+ toReturn['webFormatUrl'] = this.webFormatUrl;
6537
7883
  }
6538
7884
  if (typeof this.fullHdUrl !== 'undefined') {
6539
7885
  toReturn['fullHdUrl'] = this.fullHdUrl;
@@ -6569,7 +7915,7 @@ class KeywordGeneration {
6569
7915
  let m = new KeywordGeneration();
6570
7916
  m = Object.assign(m, proto);
6571
7917
  if (proto.postType) {
6572
- m.postType = enumStringToValue$8(PostCategory, proto.postType);
7918
+ m.postType = enumStringToValue$9(PostCategory, proto.postType);
6573
7919
  }
6574
7920
  return m;
6575
7921
  }
@@ -6877,12 +8223,12 @@ class MultiResponse {
6877
8223
  return toReturn;
6878
8224
  }
6879
8225
  }
6880
- class Post {
8226
+ class GeneratePostsResponsePost {
6881
8227
  static fromProto(proto) {
6882
- let m = new Post();
8228
+ let m = new GeneratePostsResponsePost();
6883
8229
  m = Object.assign(m, proto);
6884
- if (proto.postContent) {
6885
- m.postContent = proto.postContent.map(PostContent.fromProto);
8230
+ if (proto.imageResponse) {
8231
+ m.imageResponse = GeneratePostsResponseImageResponse.fromProto(proto.imageResponse);
6886
8232
  }
6887
8233
  return m;
6888
8234
  }
@@ -6894,21 +8240,21 @@ class Post {
6894
8240
  }
6895
8241
  toApiJson() {
6896
8242
  const toReturn = {};
6897
- if (typeof this.topic !== 'undefined') {
6898
- toReturn['topic'] = this.topic;
8243
+ if (typeof this.text !== 'undefined') {
8244
+ toReturn['text'] = this.text;
6899
8245
  }
6900
- if (typeof this.postContent !== 'undefined' && this.postContent !== null) {
6901
- toReturn['postContent'] = 'toApiJson' in this.postContent ? this.postContent.toApiJson() : this.postContent;
8246
+ if (typeof this.imageResponse !== 'undefined' && this.imageResponse !== null) {
8247
+ toReturn['imageResponse'] = 'toApiJson' in this.imageResponse ? this.imageResponse.toApiJson() : this.imageResponse;
6902
8248
  }
6903
8249
  return toReturn;
6904
8250
  }
6905
8251
  }
6906
- class GeneratePostsResponsePost {
8252
+ class Post {
6907
8253
  static fromProto(proto) {
6908
- let m = new GeneratePostsResponsePost();
8254
+ let m = new Post();
6909
8255
  m = Object.assign(m, proto);
6910
- if (proto.imageResponse) {
6911
- m.imageResponse = GeneratePostsResponseImageResponse.fromProto(proto.imageResponse);
8256
+ if (proto.postContent) {
8257
+ m.postContent = proto.postContent.map(PostContent.fromProto);
6912
8258
  }
6913
8259
  return m;
6914
8260
  }
@@ -6920,11 +8266,11 @@ class GeneratePostsResponsePost {
6920
8266
  }
6921
8267
  toApiJson() {
6922
8268
  const toReturn = {};
6923
- if (typeof this.text !== 'undefined') {
6924
- toReturn['text'] = this.text;
8269
+ if (typeof this.topic !== 'undefined') {
8270
+ toReturn['topic'] = this.topic;
6925
8271
  }
6926
- if (typeof this.imageResponse !== 'undefined' && this.imageResponse !== null) {
6927
- toReturn['imageResponse'] = 'toApiJson' in this.imageResponse ? this.imageResponse.toApiJson() : this.imageResponse;
8272
+ if (typeof this.postContent !== 'undefined' && this.postContent !== null) {
8273
+ toReturn['postContent'] = 'toApiJson' in this.postContent ? this.postContent.toApiJson() : this.postContent;
6928
8274
  }
6929
8275
  return toReturn;
6930
8276
  }
@@ -6934,7 +8280,7 @@ class PostContent {
6934
8280
  let m = new PostContent();
6935
8281
  m = Object.assign(m, proto);
6936
8282
  if (proto.socialNetwork) {
6937
- m.socialNetwork = enumStringToValue$8(Network, proto.socialNetwork);
8283
+ m.socialNetwork = enumStringToValue$9(Network, proto.socialNetwork);
6938
8284
  }
6939
8285
  return m;
6940
8286
  }
@@ -6960,10 +8306,10 @@ class PostsGeneration {
6960
8306
  let m = new PostsGeneration();
6961
8307
  m = Object.assign(m, proto);
6962
8308
  if (proto.tone) {
6963
- m.tone = enumStringToValue$8(Tone, proto.tone);
8309
+ m.tone = enumStringToValue$9(Tone, proto.tone);
6964
8310
  }
6965
8311
  if (proto.contentLength) {
6966
- m.contentLength = enumStringToValue$8(ContentLength, proto.contentLength);
8312
+ m.contentLength = enumStringToValue$9(ContentLength, proto.contentLength);
6967
8313
  }
6968
8314
  return m;
6969
8315
  }
@@ -7050,7 +8396,7 @@ class SocialPostOutput {
7050
8396
  m.metadata = proto.metadata.map(MetadataV2.fromProto);
7051
8397
  }
7052
8398
  if (proto.status) {
7053
- m.status = enumStringToValue$8(PostStatusV2, proto.status);
8399
+ m.status = enumStringToValue$9(PostStatusV2, proto.status);
7054
8400
  }
7055
8401
  return m;
7056
8402
  }
@@ -7359,7 +8705,7 @@ class UploadToStorageRequest {
7359
8705
  let m = new UploadToStorageRequest();
7360
8706
  m = Object.assign(m, proto);
7361
8707
  if (proto.mediaType) {
7362
- m.mediaType = enumStringToValue$8(MediaType$1, proto.mediaType);
8708
+ m.mediaType = enumStringToValue$9(MediaType$1, proto.mediaType);
7363
8709
  }
7364
8710
  return m;
7365
8711
  }
@@ -7427,7 +8773,7 @@ class UploadedMedia {
7427
8773
  }
7428
8774
  }
7429
8775
 
7430
- function enumStringToValue$7(enumRef, value) {
8776
+ function enumStringToValue$8(enumRef, value) {
7431
8777
  if (typeof value === 'number') {
7432
8778
  return value;
7433
8779
  }
@@ -7438,7 +8784,7 @@ class Action {
7438
8784
  let m = new Action();
7439
8785
  m = Object.assign(m, proto);
7440
8786
  if (proto.actionType) {
7441
- m.actionType = enumStringToValue$7(ActionType, proto.actionType);
8787
+ m.actionType = enumStringToValue$8(ActionType, proto.actionType);
7442
8788
  }
7443
8789
  return m;
7444
8790
  }
@@ -7578,7 +8924,7 @@ class StartChatResponse {
7578
8924
  }
7579
8925
  }
7580
8926
 
7581
- function enumStringToValue$6(enumRef, value) {
8927
+ function enumStringToValue$7(enumRef, value) {
7582
8928
  if (typeof value === 'number') {
7583
8929
  return value;
7584
8930
  }
@@ -7589,7 +8935,7 @@ class ChatMessage {
7589
8935
  let m = new ChatMessage();
7590
8936
  m = Object.assign(m, proto);
7591
8937
  if (proto.role) {
7592
- m.role = enumStringToValue$6(Role, proto.role);
8938
+ m.role = enumStringToValue$7(Role, proto.role);
7593
8939
  }
7594
8940
  return m;
7595
8941
  }
@@ -7669,7 +9015,7 @@ class SendMessageV2Response {
7669
9015
  }
7670
9016
  }
7671
9017
 
7672
- function enumStringToValue$5(enumRef, value) {
9018
+ function enumStringToValue$6(enumRef, value) {
7673
9019
  if (typeof value === 'number') {
7674
9020
  return value;
7675
9021
  }
@@ -7961,7 +9307,7 @@ class UpdateBlogConnectionRequest {
7961
9307
  }
7962
9308
  }
7963
9309
 
7964
- function enumStringToValue$4(enumRef, value) {
9310
+ function enumStringToValue$5(enumRef, value) {
7965
9311
  if (typeof value === 'number') {
7966
9312
  return value;
7967
9313
  }
@@ -8582,7 +9928,7 @@ class UpdateBlogPostRequest {
8582
9928
  }
8583
9929
  }
8584
9930
 
8585
- function enumStringToValue$3(enumRef, value) {
9931
+ function enumStringToValue$4(enumRef, value) {
8586
9932
  if (typeof value === 'number') {
8587
9933
  return value;
8588
9934
  }
@@ -8783,7 +10129,7 @@ class UpdateCampaignIdRequest {
8783
10129
  let m = new UpdateCampaignIdRequest();
8784
10130
  m = Object.assign(m, proto);
8785
10131
  if (proto.type) {
8786
- m.type = enumStringToValue$3(PostCategory, proto.type);
10132
+ m.type = enumStringToValue$4(PostCategory, proto.type);
8787
10133
  }
8788
10134
  return m;
8789
10135
  }
@@ -8840,7 +10186,7 @@ class UpdateCampaignRequest {
8840
10186
  }
8841
10187
  }
8842
10188
 
8843
- function enumStringToValue$2(enumRef, value) {
10189
+ function enumStringToValue$3(enumRef, value) {
8844
10190
  if (typeof value === 'number') {
8845
10191
  return value;
8846
10192
  }
@@ -8918,7 +10264,7 @@ class Draft {
8918
10264
  m.media = proto.media.map(DraftMedia.fromProto);
8919
10265
  }
8920
10266
  if (proto.draftType) {
8921
- m.draftType = enumStringToValue$2(DraftType, proto.draftType);
10267
+ m.draftType = enumStringToValue$3(DraftType, proto.draftType);
8922
10268
  }
8923
10269
  if (proto.metadata) {
8924
10270
  m.metadata = proto.metadata.map(DraftMetaData.fromProto);
@@ -9176,7 +10522,7 @@ class DraftYoutubeCustomization {
9176
10522
  let m = new DraftYoutubeCustomization();
9177
10523
  m = Object.assign(m, proto);
9178
10524
  if (proto.privacyStatus) {
9179
- m.privacyStatus = enumStringToValue$2(DraftYoutubeCustomizationPrivacyStatus, proto.privacyStatus);
10525
+ m.privacyStatus = enumStringToValue$3(DraftYoutubeCustomizationPrivacyStatus, proto.privacyStatus);
9180
10526
  }
9181
10527
  return m;
9182
10528
  }
@@ -9263,7 +10609,7 @@ class SSIDDraftType {
9263
10609
  let m = new SSIDDraftType();
9264
10610
  m = Object.assign(m, proto);
9265
10611
  if (proto.draftType) {
9266
- m.draftType = enumStringToValue$2(DraftType, proto.draftType);
10612
+ m.draftType = enumStringToValue$3(DraftType, proto.draftType);
9267
10613
  }
9268
10614
  return m;
9269
10615
  }
@@ -9285,7 +10631,7 @@ class SSIDDraftType {
9285
10631
  }
9286
10632
  }
9287
10633
 
9288
- function enumStringToValue$1(enumRef, value) {
10634
+ function enumStringToValue$2(enumRef, value) {
9289
10635
  if (typeof value === 'number') {
9290
10636
  return value;
9291
10637
  }
@@ -9305,7 +10651,7 @@ class CreateDraftRequest {
9305
10651
  m.media = proto.media.map(DraftMedia.fromProto);
9306
10652
  }
9307
10653
  if (proto.draftType) {
9308
- m.draftType = enumStringToValue$1(DraftType, proto.draftType);
10654
+ m.draftType = enumStringToValue$2(DraftType, proto.draftType);
9309
10655
  }
9310
10656
  if (proto.metadata) {
9311
10657
  m.metadata = proto.metadata.map(DraftMetaData.fromProto);
@@ -9608,7 +10954,10 @@ class ListDraftsRequest {
9608
10954
  m.end = new Date(proto.end);
9609
10955
  }
9610
10956
  if (proto.visibilityType) {
9611
- m.visibilityType = enumStringToValue$1(VisibilityType, proto.visibilityType);
10957
+ m.visibilityType = enumStringToValue$2(VisibilityType, proto.visibilityType);
10958
+ }
10959
+ if (proto.filterBy) {
10960
+ m.filterBy = enumStringToValue$2(FilterBy, proto.filterBy);
9612
10961
  }
9613
10962
  return m;
9614
10963
  }
@@ -9644,6 +10993,9 @@ class ListDraftsRequest {
9644
10993
  if (typeof this.visibilityType !== 'undefined') {
9645
10994
  toReturn['visibilityType'] = this.visibilityType;
9646
10995
  }
10996
+ if (typeof this.filterBy !== 'undefined') {
10997
+ toReturn['filterBy'] = this.filterBy;
10998
+ }
9647
10999
  return toReturn;
9648
11000
  }
9649
11001
  }
@@ -9765,7 +11117,7 @@ class UpdateDraftRequest {
9765
11117
  m.media = proto.media.map(DraftMedia.fromProto);
9766
11118
  }
9767
11119
  if (proto.draftType) {
9768
- m.draftType = enumStringToValue$1(DraftType, proto.draftType);
11120
+ m.draftType = enumStringToValue$2(DraftType, proto.draftType);
9769
11121
  }
9770
11122
  if (proto.metadata) {
9771
11123
  m.metadata = proto.metadata.map(DraftMetaData.fromProto);
@@ -9905,7 +11257,7 @@ class UpdateMultiMLDraftsRequest {
9905
11257
  }
9906
11258
  }
9907
11259
 
9908
- function enumStringToValue(enumRef, value) {
11260
+ function enumStringToValue$1(enumRef, value) {
9909
11261
  if (typeof value === 'number') {
9910
11262
  return value;
9911
11263
  }
@@ -10038,7 +11390,7 @@ class GMBCustomization {
10038
11390
  m.eventEnd = new Date(proto.eventEnd);
10039
11391
  }
10040
11392
  if (proto.ctaType) {
10041
- m.ctaType = enumStringToValue(CallToActionType, proto.ctaType);
11393
+ m.ctaType = enumStringToValue$1(CallToActionType, proto.ctaType);
10042
11394
  }
10043
11395
  return m;
10044
11396
  }
@@ -10108,7 +11460,7 @@ class MediaItem {
10108
11460
  let m = new MediaItem();
10109
11461
  m = Object.assign(m, proto);
10110
11462
  if (proto.mediaType) {
10111
- m.mediaType = enumStringToValue(MediaType$1, proto.mediaType);
11463
+ m.mediaType = enumStringToValue$1(MediaType$1, proto.mediaType);
10112
11464
  }
10113
11465
  return m;
10114
11466
  }
@@ -10140,10 +11492,10 @@ class SocialContentItem {
10140
11492
  let m = new SocialContentItem();
10141
11493
  m = Object.assign(m, proto);
10142
11494
  if (proto.type) {
10143
- m.type = enumStringToValue(SocialContentType, proto.type);
11495
+ m.type = enumStringToValue$1(SocialContentType, proto.type);
10144
11496
  }
10145
11497
  if (proto.mode) {
10146
- m.mode = enumStringToValue(PublishMode, proto.mode);
11498
+ m.mode = enumStringToValue$1(PublishMode, proto.mode);
10147
11499
  }
10148
11500
  if (proto.ssidTypes) {
10149
11501
  m.ssidTypes = proto.ssidTypes.map(SsidPostType.fromProto);
@@ -10264,7 +11616,7 @@ class SsidPostType {
10264
11616
  let m = new SsidPostType();
10265
11617
  m = Object.assign(m, proto);
10266
11618
  if (proto.mediaContentType) {
10267
- m.mediaContentType = enumStringToValue(MediaContentType, proto.mediaContentType);
11619
+ m.mediaContentType = enumStringToValue$1(MediaContentType, proto.mediaContentType);
10268
11620
  }
10269
11621
  return m;
10270
11622
  }
@@ -10286,6 +11638,159 @@ class SsidPostType {
10286
11638
  }
10287
11639
  }
10288
11640
 
11641
+ function enumStringToValue(enumRef, value) {
11642
+ if (typeof value === 'number') {
11643
+ return value;
11644
+ }
11645
+ return enumRef[value];
11646
+ }
11647
+ class CreateOrEditRequest {
11648
+ static fromProto(proto) {
11649
+ let m = new CreateOrEditRequest();
11650
+ m = Object.assign(m, proto);
11651
+ if (proto.namespace) {
11652
+ m.namespace = Namespace.fromProto(proto.namespace);
11653
+ }
11654
+ if (proto.imageInputs) {
11655
+ m.imageInputs = proto.imageInputs.map(ImageInputSource.fromProto);
11656
+ }
11657
+ if (proto.model) {
11658
+ m.model = enumStringToValue(ImageModel, proto.model);
11659
+ }
11660
+ if (proto.quality) {
11661
+ m.quality = enumStringToValue(ImageQuality, proto.quality);
11662
+ }
11663
+ if (proto.style) {
11664
+ m.style = enumStringToValue(ImageStyle, proto.style);
11665
+ }
11666
+ if (proto.background) {
11667
+ m.background = enumStringToValue(ImageBackground, proto.background);
11668
+ }
11669
+ if (proto.outputFormat) {
11670
+ m.outputFormat = enumStringToValue(ImageOutputFormat, proto.outputFormat);
11671
+ }
11672
+ return m;
11673
+ }
11674
+ constructor(kwargs) {
11675
+ if (!kwargs) {
11676
+ return;
11677
+ }
11678
+ Object.assign(this, kwargs);
11679
+ }
11680
+ toApiJson() {
11681
+ const toReturn = {};
11682
+ if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
11683
+ toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
11684
+ }
11685
+ if (typeof this.prompt !== 'undefined') {
11686
+ toReturn['prompt'] = this.prompt;
11687
+ }
11688
+ if (typeof this.imageInputs !== 'undefined' && this.imageInputs !== null) {
11689
+ toReturn['imageInputs'] = 'toApiJson' in this.imageInputs ? this.imageInputs.toApiJson() : this.imageInputs;
11690
+ }
11691
+ if (typeof this.model !== 'undefined') {
11692
+ toReturn['model'] = this.model;
11693
+ }
11694
+ if (typeof this.imageCount !== 'undefined') {
11695
+ toReturn['imageCount'] = this.imageCount;
11696
+ }
11697
+ if (typeof this.size !== 'undefined') {
11698
+ toReturn['size'] = this.size;
11699
+ }
11700
+ if (typeof this.quality !== 'undefined') {
11701
+ toReturn['quality'] = this.quality;
11702
+ }
11703
+ if (typeof this.responseFormat !== 'undefined') {
11704
+ toReturn['responseFormat'] = this.responseFormat;
11705
+ }
11706
+ if (typeof this.style !== 'undefined') {
11707
+ toReturn['style'] = this.style;
11708
+ }
11709
+ if (typeof this.background !== 'undefined') {
11710
+ toReturn['background'] = this.background;
11711
+ }
11712
+ if (typeof this.outputFormat !== 'undefined') {
11713
+ toReturn['outputFormat'] = this.outputFormat;
11714
+ }
11715
+ if (typeof this.moderation !== 'undefined') {
11716
+ toReturn['moderation'] = this.moderation;
11717
+ }
11718
+ return toReturn;
11719
+ }
11720
+ }
11721
+ class CreateOrEditResponse {
11722
+ static fromProto(proto) {
11723
+ let m = new CreateOrEditResponse();
11724
+ m = Object.assign(m, proto);
11725
+ if (proto.images) {
11726
+ m.images = proto.images.map(GeneratedImage.fromProto);
11727
+ }
11728
+ return m;
11729
+ }
11730
+ constructor(kwargs) {
11731
+ if (!kwargs) {
11732
+ return;
11733
+ }
11734
+ Object.assign(this, kwargs);
11735
+ }
11736
+ toApiJson() {
11737
+ const toReturn = {};
11738
+ if (typeof this.images !== 'undefined' && this.images !== null) {
11739
+ toReturn['images'] = 'toApiJson' in this.images ? this.images.toApiJson() : this.images;
11740
+ }
11741
+ return toReturn;
11742
+ }
11743
+ }
11744
+ class GeneratedImage {
11745
+ static fromProto(proto) {
11746
+ let m = new GeneratedImage();
11747
+ m = Object.assign(m, proto);
11748
+ return m;
11749
+ }
11750
+ constructor(kwargs) {
11751
+ if (!kwargs) {
11752
+ return;
11753
+ }
11754
+ Object.assign(this, kwargs);
11755
+ }
11756
+ toApiJson() {
11757
+ const toReturn = {};
11758
+ if (typeof this.url !== 'undefined') {
11759
+ toReturn['url'] = this.url;
11760
+ }
11761
+ if (typeof this.b64Json !== 'undefined') {
11762
+ toReturn['b64Json'] = this.b64Json;
11763
+ }
11764
+ if (typeof this.revisedPrompt !== 'undefined') {
11765
+ toReturn['revisedPrompt'] = this.revisedPrompt;
11766
+ }
11767
+ return toReturn;
11768
+ }
11769
+ }
11770
+ class ImageInputSource {
11771
+ static fromProto(proto) {
11772
+ let m = new ImageInputSource();
11773
+ m = Object.assign(m, proto);
11774
+ return m;
11775
+ }
11776
+ constructor(kwargs) {
11777
+ if (!kwargs) {
11778
+ return;
11779
+ }
11780
+ Object.assign(this, kwargs);
11781
+ }
11782
+ toApiJson() {
11783
+ const toReturn = {};
11784
+ if (typeof this.url !== 'undefined') {
11785
+ toReturn['url'] = this.url;
11786
+ }
11787
+ if (typeof this.data !== 'undefined') {
11788
+ toReturn['data'] = this.data;
11789
+ }
11790
+ return toReturn;
11791
+ }
11792
+ }
11793
+
10289
11794
  // *********************************
10290
11795
  // Code generated by sdkgen
10291
11796
  // DO NOT EDIT!.
@@ -10991,6 +12496,39 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
10991
12496
  args: [{ providedIn: 'root' }]
10992
12497
  }] });
10993
12498
 
12499
+ // *********************************
12500
+ // Code generated by sdkgen
12501
+ // DO NOT EDIT!.
12502
+ //
12503
+ // API Service.
12504
+ // *********************************
12505
+ class ImageGenerationApiService {
12506
+ constructor() {
12507
+ this.hostService = inject(HostService);
12508
+ this.http = inject(HttpClient);
12509
+ this._host = this.hostService.hostWithScheme;
12510
+ }
12511
+ apiOptions() {
12512
+ return {
12513
+ headers: new HttpHeaders({
12514
+ 'Content-Type': 'application/json'
12515
+ }),
12516
+ withCredentials: true
12517
+ };
12518
+ }
12519
+ createOrEdit(r) {
12520
+ const request = (r.toApiJson) ? r : new CreateOrEditRequest(r);
12521
+ return this.http.post(this._host + "/socialposts.v1.ImageGeneration/CreateOrEdit", request.toApiJson(), this.apiOptions())
12522
+ .pipe(map(resp => CreateOrEditResponse.fromProto(resp)));
12523
+ }
12524
+ }
12525
+ ImageGenerationApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ImageGenerationApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
12526
+ ImageGenerationApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ImageGenerationApiService, providedIn: 'root' });
12527
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ImageGenerationApiService, decorators: [{
12528
+ type: Injectable,
12529
+ args: [{ providedIn: 'root' }]
12530
+ }] });
12531
+
10994
12532
  // *********************************
10995
12533
  // Code generated by sdkgen
10996
12534
  // DO NOT EDIT!.
@@ -11476,6 +13014,11 @@ class SocialPostsV2ApiService {
11476
13014
  return this.http.post(this._host + "/socialposts.v2.SocialPostsV2/GetMediaMetadataFromURL", request.toApiJson(), this.apiOptions())
11477
13015
  .pipe(map(resp => GetMediaMetadataFromURLResponse.fromProto(resp)));
11478
13016
  }
13017
+ getXSubscriptionType(r) {
13018
+ const request = (r.toApiJson) ? r : new GetXSubscriptionTypeRequest(r);
13019
+ return this.http.post(this._host + "/socialposts.v2.SocialPostsV2/GetXSubscriptionType", request.toApiJson(), this.apiOptions())
13020
+ .pipe(map(resp => GetXSubscriptionTypeResponse.fromProto(resp)));
13021
+ }
11479
13022
  }
11480
13023
  SocialPostsV2ApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SocialPostsV2ApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
11481
13024
  SocialPostsV2ApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SocialPostsV2ApiService, providedIn: 'root' });
@@ -12011,6 +13554,9 @@ class SocialPostsV2Service {
12011
13554
  const urlRequest = new GetMediaMetadataFromURLRequest({ url: url });
12012
13555
  return this.socialpostV2ApiService.getMediaMetadataFromUrl(urlRequest);
12013
13556
  }
13557
+ getXSubscriptionType(req) {
13558
+ return this.socialpostV2ApiService.getXSubscriptionType(req);
13559
+ }
12014
13560
  }
12015
13561
  SocialPostsV2Service.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SocialPostsV2Service, deps: [{ token: SocialPostsV2ApiService }], target: i0.ɵɵFactoryTarget.Injectable });
12016
13562
  SocialPostsV2Service.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SocialPostsV2Service, providedIn: 'root' });
@@ -12246,5 +13792,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
12246
13792
  * Generated bundle index. Do not edit.
12247
13793
  */
12248
13794
 
12249
- export { Access, Action, ActionType, AiInstructionService, AiInstructions, Ancestry, Author$1 as Author, AuthorsRequest, AuthorsResponse, BlogAuthor, BlogCategory, BlogConnection, BlogConnectionService, BlogImage, BlogPost, BlogPostCampaign, BlogPostCustomization, BlogPostOptions, BlogPostsService, BlogVideo, BlogWebsiteDetails, BulkCreateMultilocationPostRequest, BulkCreateMultilocationPostResponse, BulkPostStatus, BulkUploadMultilocation, CallToAction, CallToActionCallToActionType, CallToActionType, Campaign, CampaignCustomization, CampaignService, Categories, Category$1 as Category, CategoryRequest, CategoryResponse, ChatBotService, ChatBotV2Service, ChatMessage, Collection, ContentGenerationService, ContentLength, ContentMetadata, CreateBlogConnectionRequest, CreateBlogConnectionResponse, CreateCampaignRequest, CreateCampaignResponse, CreateCommonAiInstructionsRequest, CreateCommonAiInstructionsResponse, CreateContentRequest, CreateContentResponse, CreateDraftRequest, CreateDraftResponse, CreateImageRequest, CreateImageResponse, CreateMultiDraftsRequest, CreateMultiDraftsResponse, CreateMultilocationPostRequest, CreateMultilocationPostResponse, CreatePostTemplateRequest, CreatePostTemplateResponse, CuratedContentPost, CustomizationStatus, DateRange, DateRangeFilter, DeleteBlogConnectionRequest, DeleteBlogPostRequest, DeleteCampaignRequest, DeleteDraftRequest, DeleteHashtagsRequest, DeleteMultilocationPostRequest, DeletePostRequest, DeletePostTemplateRequest, DeleteSocialPostRequest, Draft, DraftAuthor, DraftBlogPostCustomization, DraftMedia, DraftMetaData, DraftTikTokCustomization, DraftType, DraftYoutubeCustomization, DraftYoutubeCustomizationPrivacyStatus, DraftsService, EditMultilocationPostRequest, EditMultilocationPostResponse, EndChatRequest, EngagementParameter, Error, Event, FacebookPageInfo, FacebookPostStats, FetchFacebookMentionInfoRequest, FetchFacebookMentionInfoResponse, FetchFacebookMentionInfoResponsePageInfoEntry, FetchLibraryImagesRequest, FetchLibraryImagesResponse, FieldMask, GMBCustomization, GMBPostCustomization, GenerateAiRequest, GenerateAiResponse, GenerateBlogPostCampaignRequest, GenerateCSVForPerformanceStatsRequest, GenerateCSVForPerformanceStatsResponse, GenerateContentMetaDataRequest, GenerateContentMetaDataResponse, GeneratePostCampaignRequest, GeneratePostCampaignResponse, GeneratePostsRequest, GeneratePostsResponse, GeneratePostsResponseImageResponse, GeneratePostsResponsePost, GenerateType, GetBlogConnectionRequest, GetBlogConnectionResponse, GetBlogWebsiteDetailsRequest, GetBlogWebsiteDetailsResponse, GetCampaignRequest, GetCampaignResponse, GetCommonAiInstructionsRequest, GetCommonAiInstructionsResponse, GetDraftRequest, GetDraftResponse, GetGeneratedCSVForPerformanceStatsRequest, GetGeneratedCSVForPerformanceStatsResponse, GetMediaMetadataFromURLRequest, GetMediaMetadataFromURLResponse, GetMultiBlogPostsRequest, GetMultiBlogPostsResponse, GetMultiCampaignsRequest, GetMultiCampaignsResponse, GetMultiSocialPostStatsRequest, GetMultiSocialPostStatsResponse, GetMultiSocialPostsRequest, GetMultiSocialPostsResponse, GetMultilocationPostRequest, GetMultilocationPostResponse, GetPostTemplateRequest, GetPostTemplateResponse, GetScheduledPostCountRequest, GetScheduledPostCountResponse, GetTenorAnonymousIdRequest, GetTenorAnonymousIdResponse, HashTagsService, Hashtag, Image, ImageBlob, ImageCreated, ImageResponse, ImageSource, ImageUrl, InstagramPostStats, KeywordGeneration, KeywordList, Link, LinkV2, LinkedInPostStats, Links, ListBlogConnectionRequest, ListBlogConnectionResponse, ListCuratedContentRequest, ListCuratedContentResponse, ListDraftsByNetworkIdentifierRequest, ListDraftsByNetworkIdentifierResponse, ListDraftsRequest, ListDraftsResponse, ListMultilocationDraftsRequest, ListMultilocationDraftsResponse, ListMultilocationPostsForBrandRequest, ListMultilocationPostsForBrandResponse, ListPexelsImagesRequest, ListPexelsImagesResponse, ListPixabayImagesRequest, ListPixabayImagesResponse, ListPostTemplatesRequest, ListPostTemplatesResponse, ListPostableSocialServiceRequest, ListPostableSocialServiceResponse, ListSocialPostEngagementsRequest, ListSocialPostEngagementsResponse, ListSocialPostsRequest, ListSocialPostsResponse, ListStockImagesRequest, ListStockImagesResponse, ListTenorGifsRequest, ListTenorGifsResponse, ListUnsplashImagesRequest, ListUnsplashImagesResponse, Location, MCPOptions, MLPostCategory, MLPostState, Media, MediaContentType, MediaEntry, MediaItem, MediaProperty, MediaType$1 as MediaType, MediaUploadRequest, MediaUploadResponse, MessageLength, MetaData, MetadataV2, MlDraftPost, MultiDeleteMLDraftPostsRequest, MultiResponse, MultilocationPost, MultilocationPostApiService, MultilocationPostError, MultilocationPostsService, MultilocationServices, Namespace, NamespaceType, Network, PartnerListScheduledPostsResponse, PartnerListScheduledSocialPostsRequest, PartnerListScheduledSocialPostsRequestFilters, PexelsImage, PexelsImageService, Photo, PixabayImage, PixabayImageService, Post, PostAction, PostActionV2, PostCategory, PostContent, PostContentV2, PostCustomization, PostCustomizationByLocation, PostCustomizationV2, PostData, PostEvent, PostEventV2, PostMediaV2, PostPerformanceApiService, PostPerformanceService, PostStatusV2, PostTemplate, PostTemplatesService, PostType, PostTypeV2, PostingStatus, PostsGeneration, ProvisionAction, ProvisionRequest, PublishMode, PublishPostRequest, PublishPostResponse, RemoveFromMultilocationPostRequest, RemoveReason, ReplaceHashtagsRequest, RepostBlogPostRequest, RepostSocialPostRequest, Response, Role, SSIDDraftType, SSIDPostType, SchedulePostRequest, SchedulePostResponse, SchedulePostStatus, ScheduleToAllPagesRequest, ScheduleToAllPagesResponse, SearchHashtagRequest, SearchHashtagResponse, SendMessageRequest, SendMessageResponse, SendMessageV2Request, SendMessageV2Response, Social, SocialCampaign, SocialContentItem, SocialContentResult, SocialContentType, SocialEngagement, SocialMentionsService, SocialPost, SocialPostData, SocialPostDeletionStatus, SocialPostEngagement, SocialPostOutput, SocialPostRequest, SocialPostResponse, SocialPostService, SocialPostStats, SocialPostV2, SocialPostsService, SocialPostsV2Service, SocialService, SortBy, SortBySortDirection, Source, SsidPostType, StartChatRequest, StartChatResponse, StatusRequest, StatusResponse, StockImage, StockImageError, SubAncestry, SuggestMessageRequest, SuggestMessageResponse, Tags, TemplateType, TenorGif, TenorGifMediaMapEntry, TenorGifsService, TenorMediaObject, TikTokCustomization, TikTokCustomizationV2, TikTokPostStats, TitleGeneration, Tone, TwitterPostStats, UnsplashImageService, UpdateBlogConnectionRequest, UpdateBlogPostRequest, UpdateCampaignIdRequest, UpdateCampaignRequest, UpdateCommonAiInstructionsRequest, UpdateCommonAiInstructionsResponse, UpdateDraftRequest, UpdateDraftResponse, UpdateMultiMLDraftsRequest, UpdatePostTemplateRequest, UpdateSocialPostRequest, UpdateSocialPostResponse, UploadToStorageRequest, UploadToStorageResponse, UploadedMedia, Urls, User, UserLink, VisibilityType, WordpressPluginService, YoutubeCustomization, YoutubeCustomizationPrivacyStatus, YoutubeCustomizationV2, YoutubeCustomizationV2PrivacyStatusV2, YoutubePostStats };
13795
+ export { Access, Action, ActionType, AiInstructionService, AiInstructions, Ancestry, Author$1 as Author, AuthorsRequest, AuthorsResponse, BlogAuthor, BlogCategory, BlogConnection, BlogConnectionService, BlogImage, BlogPost, BlogPostCampaign, BlogPostCustomization, BlogPostOptions, BlogPostsService, BlogVideo, BlogWebsiteDetails, BulkCreateMultilocationPostRequest, BulkCreateMultilocationPostResponse, BulkPostStatus, BulkUploadMultilocation, CallToAction, CallToActionCallToActionType, CallToActionType, Campaign, CampaignCustomization, CampaignService, Categories, Category$1 as Category, CategoryRequest, CategoryResponse, ChatBotService, ChatBotV2Service, ChatMessage, Collection, Contact, ContentGenerationService, ContentLength, ContentMetadata, CreateBlogConnectionRequest, CreateBlogConnectionResponse, CreateCampaignRequest, CreateCampaignResponse, CreateCommonAiInstructionsRequest, CreateCommonAiInstructionsResponse, CreateContentRequest, CreateContentResponse, CreateDraftRequest, CreateDraftResponse, CreateImageRequest, CreateImageResponse, CreateMultiDraftsRequest, CreateMultiDraftsResponse, CreateMultilocationPostRequest, CreateMultilocationPostResponse, CreateOrEditRequest, CreateOrEditResponse, CreatePostTemplateRequest, CreatePostTemplateResponse, CuratedContentPost, CustomizationStatus, DateRange, DateRangeFilter, DeleteBlogConnectionRequest, DeleteBlogPostRequest, DeleteCampaignRequest, DeleteDraftRequest, DeleteHashtagsRequest, DeleteMultilocationPostRequest, DeletePostRequest, DeletePostTemplateRequest, DeleteSocialPostRequest, Draft, DraftAuthor, DraftBlogPostCustomization, DraftMedia, DraftMetaData, DraftTikTokCustomization, DraftType, DraftYoutubeCustomization, DraftYoutubeCustomizationPrivacyStatus, DraftsService, EditMultilocationPostRequest, EditMultilocationPostResponse, EndChatRequest, EngagementParameter, EnumSchema, EnumSchemaExtensionsEntry, Error, Event, ExternalDocumentation, FacebookPageInfo, FacebookPostStats, FetchFacebookMentionInfoRequest, FetchFacebookMentionInfoResponse, FetchFacebookMentionInfoResponsePageInfoEntry, FetchLibraryImagesRequest, FetchLibraryImagesResponse, FieldMask, FilterBy, GMBCustomization, GMBPostCustomization, GenerateAiRequest, GenerateAiResponse, GenerateBlogPostCampaignRequest, GenerateCSVForPerformanceStatsRequest, GenerateCSVForPerformanceStatsResponse, GenerateContentMetaDataRequest, GenerateContentMetaDataResponse, GeneratePostCampaignRequest, GeneratePostCampaignResponse, GeneratePostsRequest, GeneratePostsResponse, GeneratePostsResponseImageResponse, GeneratePostsResponsePost, GenerateType, GeneratedImage, GetBlogConnectionRequest, GetBlogConnectionResponse, GetBlogWebsiteDetailsRequest, GetBlogWebsiteDetailsResponse, GetCampaignRequest, GetCampaignResponse, GetCommonAiInstructionsRequest, GetCommonAiInstructionsResponse, GetDraftRequest, GetDraftResponse, GetGeneratedCSVForPerformanceStatsRequest, GetGeneratedCSVForPerformanceStatsResponse, GetMediaMetadataFromURLRequest, GetMediaMetadataFromURLResponse, GetMultiBlogPostsRequest, GetMultiBlogPostsResponse, GetMultiCampaignsRequest, GetMultiCampaignsResponse, GetMultiSocialPostStatsRequest, GetMultiSocialPostStatsResponse, GetMultiSocialPostsRequest, GetMultiSocialPostsResponse, GetMultilocationPostRequest, GetMultilocationPostResponse, GetPostTemplateRequest, GetPostTemplateResponse, GetScheduledPostCountRequest, GetScheduledPostCountResponse, GetTenorAnonymousIdRequest, GetTenorAnonymousIdResponse, GetXSubscriptionTypeRequest, GetXSubscriptionTypeResponse, HashTagsService, Hashtag, Header, HeaderParameter, HeaderParameterType, Image, ImageBackground, ImageBlob, ImageCreated, ImageInputSource, ImageModel, ImageOutputFormat, ImageQuality, ImageResponse, ImageSource, ImageStyle, ImageUrl, Info, InfoExtensionsEntry, InstagramPostStats, JSONSchema, JSONSchemaExtensionsEntry, JSONSchemaFieldConfiguration, JSONSchemaJSONSchemaSimpleTypes, KeywordGeneration, KeywordList, License, Link, LinkV2, LinkedInPostStats, Links, ListBlogConnectionRequest, ListBlogConnectionResponse, ListCuratedContentRequest, ListCuratedContentResponse, ListDraftsByNetworkIdentifierRequest, ListDraftsByNetworkIdentifierResponse, ListDraftsRequest, ListDraftsResponse, ListMultilocationDraftsRequest, ListMultilocationDraftsResponse, ListMultilocationPostsForBrandRequest, ListMultilocationPostsForBrandResponse, ListPexelsImagesRequest, ListPexelsImagesResponse, ListPixabayImagesRequest, ListPixabayImagesResponse, ListPostTemplatesRequest, ListPostTemplatesResponse, ListPostableSocialServiceRequest, ListPostableSocialServiceResponse, ListSocialPostEngagementsRequest, ListSocialPostEngagementsResponse, ListSocialPostsRequest, ListSocialPostsResponse, ListStockImagesRequest, ListStockImagesResponse, ListTenorGifsRequest, ListTenorGifsResponse, ListUnsplashImagesRequest, ListUnsplashImagesResponse, Location, MCPOptions, MLPostCategory, MLPostState, Media, MediaContentType, MediaEntry, MediaItem, MediaProperty, MediaType$1 as MediaType, MediaUploadRequest, MediaUploadResponse, MessageLength, MetaData, MetadataV2, MlDraftPost, MultiDeleteMLDraftPostsRequest, MultiResponse, MultilocationPost, MultilocationPostApiService, MultilocationPostError, MultilocationPostsService, MultilocationServices, Namespace, NamespaceType, Network, Response$1 as OpenApiResponse, Operation, OperationExtensionsEntry, OperationResponsesEntry, Parameters, PartnerListScheduledPostsResponse, PartnerListScheduledSocialPostsRequest, PartnerListScheduledSocialPostsRequestFilters, PexelsImage, PexelsImageService, Photo, PixabayImage, PixabayImageService, Post, PostAction, PostActionV2, PostCategory, PostContent, PostContentV2, PostCustomization, PostCustomizationByLocation, PostCustomizationV2, PostData, PostEvent, PostEventV2, PostMediaV2, PostPerformanceApiService, PostPerformanceService, PostStatusV2, PostTemplate, PostTemplatesService, PostType, PostTypeV2, PostingStatus, PostsGeneration, ProvisionAction, ProvisionRequest, PublishMode, PublishPostRequest, PublishPostResponse, RemoveFromMultilocationPostRequest, RemoveReason, ReplaceHashtagsRequest, RepostBlogPostRequest, RepostSocialPostRequest, Response, ResponseExamplesEntry, ResponseExtensionsEntry, ResponseHeadersEntry, Role, SSIDDraftType, SSIDPostType, SchedulePostRequest, SchedulePostResponse, SchedulePostStatus, ScheduleToAllPagesRequest, ScheduleToAllPagesResponse, Schema, Scheme, Scopes, ScopesScopeEntry, SearchHashtagRequest, SearchHashtagResponse, SecurityDefinitions, SecurityDefinitionsSecurityEntry, SecurityRequirement, SecurityRequirementSecurityRequirementEntry, SecurityRequirementSecurityRequirementValue, SecurityScheme, SecuritySchemeExtensionsEntry, SecuritySchemeFlow, SecuritySchemeIn, SecuritySchemeType, SendMessageRequest, SendMessageResponse, SendMessageV2Request, SendMessageV2Response, Social, SocialCampaign, SocialContentItem, MediaType as SocialContentMediaType, SocialContentResult, SocialContentType, SocialEngagement, SocialMentionsService, SocialPost, SocialPostData, SocialPostDeletionStatus, SocialPostEngagement, SocialPostOutput, SocialPostRequest, SocialPostResponse, SocialPostService, SocialPostStats, SocialPostV2, SocialPostsService, SocialPostsV2Service, SocialService, SortBy, SortBySortDirection, Source, SsidPostType, StartChatRequest, StartChatResponse, StatusRequest, StatusResponse, StockImage, StockImageError, SubAncestry, SuggestMessageRequest, SuggestMessageResponse, Swagger, SwaggerExtensionsEntry, SwaggerResponsesEntry, Tag, TagExtensionsEntry, Tags, TemplateType, TenorGif, TenorGifMediaMapEntry, TenorGifsService, TenorMediaObject, TikTokCustomization, TikTokCustomizationV2, TikTokPostStats, TitleGeneration, Tone, TwitterPostStats, UnsplashImageService, UpdateBlogConnectionRequest, UpdateBlogPostRequest, UpdateCampaignIdRequest, UpdateCampaignRequest, UpdateCommonAiInstructionsRequest, UpdateCommonAiInstructionsResponse, UpdateDraftRequest, UpdateDraftResponse, UpdateMultiMLDraftsRequest, UpdatePostTemplateRequest, UpdateSocialPostRequest, UpdateSocialPostResponse, UploadToStorageRequest, UploadToStorageResponse, UploadedMedia, Urls, User, UserLink, VisibilityType, WordpressPluginService, Author as WpAuthor, Category as WpCategory, XSubscriptionType, YoutubeCustomization, YoutubeCustomizationPrivacyStatus, YoutubeCustomizationV2, YoutubeCustomizationV2PrivacyStatusV2, YoutubePostStats, HeaderParameterType as gatewayprotoc_gen_openapiv2optionsHeaderParameterType, JSONSchemaJSONSchemaSimpleTypes as gatewayprotoc_gen_openapiv2optionsJSONSchemaJSONSchemaSimpleTypes, Scheme as gatewayprotoc_gen_openapiv2optionsScheme, SecuritySchemeFlow as gatewayprotoc_gen_openapiv2optionsSecuritySchemeFlow, SecuritySchemeIn as gatewayprotoc_gen_openapiv2optionsSecuritySchemeIn, SecuritySchemeType as gatewayprotoc_gen_openapiv2optionsSecuritySchemeType };
12250
13796
  //# sourceMappingURL=vendasta-social-posts.mjs.map