@vendasta/social-posts 5.49.0 → 5.51.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 (33) hide show
  1. package/esm2020/lib/_internal/enums/api-v2.enum.mjs +8 -1
  2. package/esm2020/lib/_internal/enums/chat-bot-v2.enum.mjs +7 -1
  3. package/esm2020/lib/_internal/enums/index.mjs +6 -5
  4. package/esm2020/lib/_internal/enums/openapiv2.enum.mjs +57 -0
  5. package/esm2020/lib/_internal/interfaces/api-v2.interface.mjs +1 -1
  6. package/esm2020/lib/_internal/interfaces/chat-bot-v2.interface.mjs +1 -1
  7. package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
  8. package/esm2020/lib/_internal/interfaces/openapiv2.interface.mjs +8 -0
  9. package/esm2020/lib/_internal/objects/api-v2.mjs +71 -25
  10. package/esm2020/lib/_internal/objects/chat-bot-v2.mjs +7 -1
  11. package/esm2020/lib/_internal/objects/index.mjs +5 -4
  12. package/esm2020/lib/_internal/objects/openapiv2.mjs +1191 -0
  13. package/esm2020/lib/_internal/social-posts-v2.api.service.mjs +7 -2
  14. package/esm2020/lib/social-post-v2.service.mjs +4 -1
  15. package/fesm2015/vendasta-social-posts.mjs +1480 -162
  16. package/fesm2015/vendasta-social-posts.mjs.map +1 -1
  17. package/fesm2020/vendasta-social-posts.mjs +1480 -162
  18. package/fesm2020/vendasta-social-posts.mjs.map +1 -1
  19. package/lib/_internal/enums/api-v2.enum.d.ts +6 -0
  20. package/lib/_internal/enums/chat-bot-v2.enum.d.ts +5 -0
  21. package/lib/_internal/enums/index.d.ts +5 -4
  22. package/lib/_internal/enums/openapiv2.enum.d.ts +43 -0
  23. package/lib/_internal/interfaces/api-v2.interface.d.ts +15 -8
  24. package/lib/_internal/interfaces/chat-bot-v2.interface.d.ts +1 -0
  25. package/lib/_internal/interfaces/index.d.ts +4 -3
  26. package/lib/_internal/interfaces/openapiv2.interface.d.ts +246 -0
  27. package/lib/_internal/objects/api-v2.d.ts +28 -15
  28. package/lib/_internal/objects/chat-bot-v2.d.ts +1 -0
  29. package/lib/_internal/objects/index.d.ts +4 -3
  30. package/lib/_internal/objects/openapiv2.d.ts +354 -0
  31. package/lib/_internal/social-posts-v2.api.service.d.ts +3 -2
  32. package/lib/social-post-v2.service.d.ts +2 -1
  33. 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$q(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$p(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
@@ -348,6 +410,12 @@ var ActionType;
348
410
  //
349
411
  // Enums.
350
412
  // *********************************
413
+ var ContentType;
414
+ (function (ContentType) {
415
+ ContentType[ContentType["CONTENT_TYPE_INVALID"] = 0] = "CONTENT_TYPE_INVALID";
416
+ ContentType[ContentType["CONTENT_TYPE_SOCIAL_POST"] = 1] = "CONTENT_TYPE_SOCIAL_POST";
417
+ ContentType[ContentType["CONTENT_TYPE_BLOG_POST"] = 2] = "CONTENT_TYPE_BLOG_POST";
418
+ })(ContentType || (ContentType = {}));
351
419
  var Role;
352
420
  (function (Role) {
353
421
  Role[Role["INVALID"] = 0] = "INVALID";
@@ -502,7 +570,7 @@ var ImageStyle;
502
570
  // Enums Index.
503
571
  // *********************************
504
572
 
505
- function enumStringToValue$o(enumRef, value) {
573
+ function enumStringToValue$p(enumRef, value) {
506
574
  if (typeof value === 'number') {
507
575
  return value;
508
576
  }
@@ -574,7 +642,7 @@ class CallToAction {
574
642
  let m = new CallToAction();
575
643
  m = Object.assign(m, proto);
576
644
  if (proto.actionType) {
577
- m.actionType = enumStringToValue$o(CallToActionCallToActionType, proto.actionType);
645
+ m.actionType = enumStringToValue$p(CallToActionCallToActionType, proto.actionType);
578
646
  }
579
647
  return m;
580
648
  }
@@ -812,7 +880,7 @@ class PostTemplate {
812
880
  m.metaData = proto.metaData.map(MetaData.fromProto);
813
881
  }
814
882
  if (proto.postType) {
815
- m.postType = enumStringToValue$o(PostType, proto.postType);
883
+ m.postType = enumStringToValue$p(PostType, proto.postType);
816
884
  }
817
885
  if (proto.youtubeCustomization) {
818
886
  m.youtubeCustomization = YoutubeCustomization.fromProto(proto.youtubeCustomization);
@@ -895,7 +963,7 @@ class SSIDPostType {
895
963
  let m = new SSIDPostType();
896
964
  m = Object.assign(m, proto);
897
965
  if (proto.postType) {
898
- m.postType = enumStringToValue$o(PostType, proto.postType);
966
+ m.postType = enumStringToValue$p(PostType, proto.postType);
899
967
  }
900
968
  return m;
901
969
  }
@@ -979,10 +1047,10 @@ class SocialPost {
979
1047
  m.posted = new Date(proto.posted);
980
1048
  }
981
1049
  if (proto.deletionStatus) {
982
- m.deletionStatus = enumStringToValue$o(SocialPostDeletionStatus, proto.deletionStatus);
1050
+ m.deletionStatus = enumStringToValue$p(SocialPostDeletionStatus, proto.deletionStatus);
983
1051
  }
984
1052
  if (proto.service) {
985
- m.service = enumStringToValue$o(SocialPostService, proto.service);
1053
+ m.service = enumStringToValue$p(SocialPostService, proto.service);
986
1054
  }
987
1055
  if (proto.created) {
988
1056
  m.created = new Date(proto.created);
@@ -991,7 +1059,7 @@ class SocialPost {
991
1059
  m.scheduled = new Date(proto.scheduled);
992
1060
  }
993
1061
  if (proto.status) {
994
- m.status = enumStringToValue$o(PostingStatus, proto.status);
1062
+ m.status = enumStringToValue$p(PostingStatus, proto.status);
995
1063
  }
996
1064
  if (proto.event) {
997
1065
  m.event = Event.fromProto(proto.event);
@@ -1003,7 +1071,7 @@ class SocialPost {
1003
1071
  m.error = Error.fromProto(proto.error);
1004
1072
  }
1005
1073
  if (proto.postType) {
1006
- m.postType = enumStringToValue$o(PostType, proto.postType);
1074
+ m.postType = enumStringToValue$p(PostType, proto.postType);
1007
1075
  }
1008
1076
  if (proto.mediaEntries) {
1009
1077
  m.mediaEntries = proto.mediaEntries.map(MediaEntry.fromProto);
@@ -1204,7 +1272,7 @@ class YoutubeCustomization {
1204
1272
  let m = new YoutubeCustomization();
1205
1273
  m = Object.assign(m, proto);
1206
1274
  if (proto.privacyStatus) {
1207
- m.privacyStatus = enumStringToValue$o(YoutubeCustomizationPrivacyStatus, proto.privacyStatus);
1275
+ m.privacyStatus = enumStringToValue$p(YoutubeCustomizationPrivacyStatus, proto.privacyStatus);
1208
1276
  }
1209
1277
  return m;
1210
1278
  }
@@ -1226,7 +1294,7 @@ class YoutubeCustomization {
1226
1294
  }
1227
1295
  }
1228
1296
 
1229
- function enumStringToValue$n(enumRef, value) {
1297
+ function enumStringToValue$o(enumRef, value) {
1230
1298
  if (typeof value === 'number') {
1231
1299
  return value;
1232
1300
  }
@@ -1367,7 +1435,7 @@ class MultilocationPost {
1367
1435
  m.postCategory = MLPostCategory.fromProto(proto.postCategory);
1368
1436
  }
1369
1437
  if (proto.postState) {
1370
- m.postState = enumStringToValue$n(MLPostState, proto.postState);
1438
+ m.postState = enumStringToValue$o(MLPostState, proto.postState);
1371
1439
  }
1372
1440
  if (proto.postCustomizationByLocation) {
1373
1441
  m.postCustomizationByLocation = PostCustomizationByLocation.fromProto(proto.postCustomizationByLocation);
@@ -1551,7 +1619,7 @@ class PostCustomizationByLocation {
1551
1619
  let m = new PostCustomizationByLocation();
1552
1620
  m = Object.assign(m, proto);
1553
1621
  if (proto.customizationStatus) {
1554
- m.customizationStatus = enumStringToValue$n(CustomizationStatus, proto.customizationStatus);
1622
+ m.customizationStatus = enumStringToValue$o(CustomizationStatus, proto.customizationStatus);
1555
1623
  }
1556
1624
  return m;
1557
1625
  }
@@ -1605,7 +1673,7 @@ class PostEvent {
1605
1673
  }
1606
1674
  }
1607
1675
 
1608
- function enumStringToValue$m(enumRef, value) {
1676
+ function enumStringToValue$n(enumRef, value) {
1609
1677
  if (typeof value === 'number') {
1610
1678
  return value;
1611
1679
  }
@@ -1659,7 +1727,7 @@ class PexelsImage {
1659
1727
  }
1660
1728
  }
1661
1729
 
1662
- function enumStringToValue$l(enumRef, value) {
1730
+ function enumStringToValue$m(enumRef, value) {
1663
1731
  if (typeof value === 'number') {
1664
1732
  return value;
1665
1733
  }
@@ -1800,7 +1868,7 @@ class PixabayImage {
1800
1868
  }
1801
1869
  }
1802
1870
 
1803
- function enumStringToValue$k(enumRef, value) {
1871
+ function enumStringToValue$l(enumRef, value) {
1804
1872
  if (typeof value === 'number') {
1805
1873
  return value;
1806
1874
  }
@@ -2139,7 +2207,7 @@ class YoutubePostStats {
2139
2207
  }
2140
2208
  }
2141
2209
 
2142
- function enumStringToValue$j(enumRef, value) {
2210
+ function enumStringToValue$k(enumRef, value) {
2143
2211
  if (typeof value === 'number') {
2144
2212
  return value;
2145
2213
  }
@@ -2245,7 +2313,7 @@ class TenorMediaObject {
2245
2313
  }
2246
2314
  }
2247
2315
 
2248
- function enumStringToValue$i(enumRef, value) {
2316
+ function enumStringToValue$j(enumRef, value) {
2249
2317
  if (typeof value === 'number') {
2250
2318
  return value;
2251
2319
  }
@@ -2294,7 +2362,7 @@ class BulkCreateMultilocationPostResponse {
2294
2362
  let m = new BulkCreateMultilocationPostResponse();
2295
2363
  m = Object.assign(m, proto);
2296
2364
  if (proto.status) {
2297
- m.status = enumStringToValue$i(BulkPostStatus, proto.status);
2365
+ m.status = enumStringToValue$j(BulkPostStatus, proto.status);
2298
2366
  }
2299
2367
  if (proto.error) {
2300
2368
  m.error = proto.error.map(MultilocationPostError.fromProto);
@@ -2453,7 +2521,7 @@ class CreatePostTemplateRequest {
2453
2521
  m.metaData = proto.metaData.map(MetaData.fromProto);
2454
2522
  }
2455
2523
  if (proto.postType) {
2456
- m.postType = enumStringToValue$i(PostType, proto.postType);
2524
+ m.postType = enumStringToValue$j(PostType, proto.postType);
2457
2525
  }
2458
2526
  if (proto.youtubeCustomization) {
2459
2527
  m.youtubeCustomization = YoutubeCustomization.fromProto(proto.youtubeCustomization);
@@ -3858,7 +3926,7 @@ class RemoveFromMultilocationPostRequest {
3858
3926
  let m = new RemoveFromMultilocationPostRequest();
3859
3927
  m = Object.assign(m, proto);
3860
3928
  if (proto.reason) {
3861
- m.reason = enumStringToValue$i(RemoveReason, proto.reason);
3929
+ m.reason = enumStringToValue$j(RemoveReason, proto.reason);
3862
3930
  }
3863
3931
  if (proto.locations) {
3864
3932
  m.locations = proto.locations.map(Location.fromProto);
@@ -4081,10 +4149,10 @@ class SuggestMessageRequest {
4081
4149
  let m = new SuggestMessageRequest();
4082
4150
  m = Object.assign(m, proto);
4083
4151
  if (proto.length) {
4084
- m.length = enumStringToValue$i(MessageLength, proto.length);
4152
+ m.length = enumStringToValue$j(MessageLength, proto.length);
4085
4153
  }
4086
4154
  if (proto.type) {
4087
- m.type = enumStringToValue$i(TemplateType, proto.type);
4155
+ m.type = enumStringToValue$j(TemplateType, proto.type);
4088
4156
  }
4089
4157
  if (proto.metadata) {
4090
4158
  m.metadata = proto.metadata.map(MetaData.fromProto);
@@ -4151,7 +4219,7 @@ class UpdatePostTemplateRequest {
4151
4219
  m.metaData = proto.metaData.map(MetaData.fromProto);
4152
4220
  }
4153
4221
  if (proto.postType) {
4154
- m.postType = enumStringToValue$i(PostType, proto.postType);
4222
+ m.postType = enumStringToValue$j(PostType, proto.postType);
4155
4223
  }
4156
4224
  if (proto.youtubeCustomization) {
4157
4225
  m.youtubeCustomization = YoutubeCustomization.fromProto(proto.youtubeCustomization);
@@ -4218,7 +4286,7 @@ class UpdatePostTemplateRequest {
4218
4286
  }
4219
4287
  }
4220
4288
 
4221
- function enumStringToValue$h(enumRef, value) {
4289
+ function enumStringToValue$i(enumRef, value) {
4222
4290
  if (typeof value === 'number') {
4223
4291
  return value;
4224
4292
  }
@@ -4415,7 +4483,7 @@ class SortBy {
4415
4483
  let m = new SortBy();
4416
4484
  m = Object.assign(m, proto);
4417
4485
  if (proto.sortDirection) {
4418
- m.sortDirection = enumStringToValue$h(SortBySortDirection, proto.sortDirection);
4486
+ m.sortDirection = enumStringToValue$i(SortBySortDirection, proto.sortDirection);
4419
4487
  }
4420
4488
  return m;
4421
4489
  }
@@ -4437,7 +4505,7 @@ class SortBy {
4437
4505
  }
4438
4506
  }
4439
4507
 
4440
- function enumStringToValue$g(enumRef, value) {
4508
+ function enumStringToValue$h(enumRef, value) {
4441
4509
  if (typeof value === 'number') {
4442
4510
  return value;
4443
4511
  }
@@ -4451,7 +4519,7 @@ class ListStockImagesRequest {
4451
4519
  m.namespace = Namespace.fromProto(proto.namespace);
4452
4520
  }
4453
4521
  if (proto.imageSource) {
4454
- m.imageSource = enumStringToValue$g(ImageSource, proto.imageSource);
4522
+ m.imageSource = enumStringToValue$h(ImageSource, proto.imageSource);
4455
4523
  }
4456
4524
  return m;
4457
4525
  }
@@ -4524,7 +4592,7 @@ class Namespace {
4524
4592
  let m = new Namespace();
4525
4593
  m = Object.assign(m, proto);
4526
4594
  if (proto.namespaceType) {
4527
- m.namespaceType = enumStringToValue$g(NamespaceType, proto.namespaceType);
4595
+ m.namespaceType = enumStringToValue$h(NamespaceType, proto.namespaceType);
4528
4596
  }
4529
4597
  return m;
4530
4598
  }
@@ -4547,10 +4615,1142 @@ class Namespace {
4547
4615
  }
4548
4616
  class StockImage {
4549
4617
  static fromProto(proto) {
4550
- let m = new StockImage();
4618
+ let m = new StockImage();
4619
+ m = Object.assign(m, proto);
4620
+ if (proto.source) {
4621
+ m.source = enumStringToValue$h(ImageSource, proto.source);
4622
+ }
4623
+ return m;
4624
+ }
4625
+ constructor(kwargs) {
4626
+ if (!kwargs) {
4627
+ return;
4628
+ }
4629
+ Object.assign(this, kwargs);
4630
+ }
4631
+ toApiJson() {
4632
+ const toReturn = {};
4633
+ if (typeof this.publicUrl !== 'undefined') {
4634
+ toReturn['publicUrl'] = this.publicUrl;
4635
+ }
4636
+ if (typeof this.imageId !== 'undefined') {
4637
+ toReturn['imageId'] = this.imageId;
4638
+ }
4639
+ if (typeof this.source !== 'undefined') {
4640
+ toReturn['source'] = this.source;
4641
+ }
4642
+ if (typeof this.photographerName !== 'undefined') {
4643
+ toReturn['photographerName'] = this.photographerName;
4644
+ }
4645
+ if (typeof this.photographerUrl !== 'undefined') {
4646
+ toReturn['photographerUrl'] = this.photographerUrl;
4647
+ }
4648
+ return toReturn;
4649
+ }
4650
+ }
4651
+ class StockImageError {
4652
+ static fromProto(proto) {
4653
+ let m = new StockImageError();
4654
+ m = Object.assign(m, proto);
4655
+ return m;
4656
+ }
4657
+ constructor(kwargs) {
4658
+ if (!kwargs) {
4659
+ return;
4660
+ }
4661
+ Object.assign(this, kwargs);
4662
+ }
4663
+ toApiJson() {
4664
+ const toReturn = {};
4665
+ if (typeof this.code !== 'undefined') {
4666
+ toReturn['code'] = this.code;
4667
+ }
4668
+ if (typeof this.message !== 'undefined') {
4669
+ toReturn['message'] = this.message;
4670
+ }
4671
+ return toReturn;
4672
+ }
4673
+ }
4674
+
4675
+ function enumStringToValue$g(enumRef, value) {
4676
+ if (typeof value === 'number') {
4677
+ return value;
4678
+ }
4679
+ return enumRef[value];
4680
+ }
4681
+ class BlogAuthor {
4682
+ static fromProto(proto) {
4683
+ let m = new BlogAuthor();
4684
+ m = Object.assign(m, proto);
4685
+ if (proto.id) {
4686
+ m.id = parseInt(proto.id, 10);
4687
+ }
4688
+ return m;
4689
+ }
4690
+ constructor(kwargs) {
4691
+ if (!kwargs) {
4692
+ return;
4693
+ }
4694
+ Object.assign(this, kwargs);
4695
+ }
4696
+ toApiJson() {
4697
+ const toReturn = {};
4698
+ if (typeof this.id !== 'undefined') {
4699
+ toReturn['id'] = this.id;
4700
+ }
4701
+ if (typeof this.name !== 'undefined') {
4702
+ toReturn['name'] = this.name;
4703
+ }
4704
+ return toReturn;
4705
+ }
4706
+ }
4707
+ class BlogCategory {
4708
+ static fromProto(proto) {
4709
+ let m = new BlogCategory();
4710
+ m = Object.assign(m, proto);
4711
+ if (proto.id) {
4712
+ m.id = parseInt(proto.id, 10);
4713
+ }
4714
+ return m;
4715
+ }
4716
+ constructor(kwargs) {
4717
+ if (!kwargs) {
4718
+ return;
4719
+ }
4720
+ Object.assign(this, kwargs);
4721
+ }
4722
+ toApiJson() {
4723
+ const toReturn = {};
4724
+ if (typeof this.id !== 'undefined') {
4725
+ toReturn['id'] = this.id;
4726
+ }
4727
+ if (typeof this.name !== 'undefined') {
4728
+ toReturn['name'] = this.name;
4729
+ }
4730
+ return toReturn;
4731
+ }
4732
+ }
4733
+ class BlogWebsiteDetails {
4734
+ static fromProto(proto) {
4735
+ let m = new BlogWebsiteDetails();
4736
+ m = Object.assign(m, proto);
4737
+ if (proto.categories) {
4738
+ m.categories = proto.categories.map(BlogCategory.fromProto);
4739
+ }
4740
+ if (proto.authors) {
4741
+ m.authors = proto.authors.map(BlogAuthor.fromProto);
4742
+ }
4743
+ return m;
4744
+ }
4745
+ constructor(kwargs) {
4746
+ if (!kwargs) {
4747
+ return;
4748
+ }
4749
+ Object.assign(this, kwargs);
4750
+ }
4751
+ toApiJson() {
4752
+ const toReturn = {};
4753
+ if (typeof this.socialServiceId !== 'undefined') {
4754
+ toReturn['socialServiceId'] = this.socialServiceId;
4755
+ }
4756
+ if (typeof this.siteUrl !== 'undefined') {
4757
+ toReturn['siteUrl'] = this.siteUrl;
4758
+ }
4759
+ if (typeof this.isSiteActive !== 'undefined') {
4760
+ toReturn['isSiteActive'] = this.isSiteActive;
4761
+ }
4762
+ if (typeof this.categories !== 'undefined' && this.categories !== null) {
4763
+ toReturn['categories'] = 'toApiJson' in this.categories ? this.categories.toApiJson() : this.categories;
4764
+ }
4765
+ if (typeof this.authors !== 'undefined' && this.authors !== null) {
4766
+ toReturn['authors'] = 'toApiJson' in this.authors ? this.authors.toApiJson() : this.authors;
4767
+ }
4768
+ if (typeof this.version !== 'undefined') {
4769
+ toReturn['version'] = this.version;
4770
+ }
4771
+ if (typeof this.tags !== 'undefined') {
4772
+ toReturn['tags'] = this.tags;
4773
+ }
4774
+ if (typeof this.error !== 'undefined') {
4775
+ toReturn['error'] = this.error;
4776
+ }
4777
+ return toReturn;
4778
+ }
4779
+ }
4780
+ class GetBlogWebsiteDetailsRequest {
4781
+ static fromProto(proto) {
4782
+ let m = new GetBlogWebsiteDetailsRequest();
4783
+ m = Object.assign(m, proto);
4784
+ return m;
4785
+ }
4786
+ constructor(kwargs) {
4787
+ if (!kwargs) {
4788
+ return;
4789
+ }
4790
+ Object.assign(this, kwargs);
4791
+ }
4792
+ toApiJson() {
4793
+ const toReturn = {};
4794
+ if (typeof this.socialServiceIds !== 'undefined') {
4795
+ toReturn['socialServiceIds'] = this.socialServiceIds;
4796
+ }
4797
+ return toReturn;
4798
+ }
4799
+ }
4800
+ class GetBlogWebsiteDetailsResponse {
4801
+ static fromProto(proto) {
4802
+ let m = new GetBlogWebsiteDetailsResponse();
4803
+ m = Object.assign(m, proto);
4804
+ if (proto.blogWebsiteDetails) {
4805
+ m.blogWebsiteDetails = proto.blogWebsiteDetails.map(BlogWebsiteDetails.fromProto);
4806
+ }
4807
+ return m;
4808
+ }
4809
+ constructor(kwargs) {
4810
+ if (!kwargs) {
4811
+ return;
4812
+ }
4813
+ Object.assign(this, kwargs);
4814
+ }
4815
+ toApiJson() {
4816
+ const toReturn = {};
4817
+ if (typeof this.blogWebsiteDetails !== 'undefined' && this.blogWebsiteDetails !== null) {
4818
+ toReturn['blogWebsiteDetails'] = 'toApiJson' in this.blogWebsiteDetails ? this.blogWebsiteDetails.toApiJson() : this.blogWebsiteDetails;
4819
+ }
4820
+ return toReturn;
4821
+ }
4822
+ }
4823
+
4824
+ function enumStringToValue$f(enumRef, value) {
4825
+ if (typeof value === 'number') {
4826
+ return value;
4827
+ }
4828
+ return enumRef[value];
4829
+ }
4830
+ class Access {
4831
+ static fromProto(proto) {
4832
+ let m = new Access();
4833
+ m = Object.assign(m, proto);
4834
+ return m;
4835
+ }
4836
+ constructor(kwargs) {
4837
+ if (!kwargs) {
4838
+ return;
4839
+ }
4840
+ Object.assign(this, kwargs);
4841
+ }
4842
+ toApiJson() {
4843
+ const toReturn = {};
4844
+ if (typeof this.scope !== 'undefined') {
4845
+ toReturn['scope'] = this.scope;
4846
+ }
4847
+ if (typeof this.public !== 'undefined') {
4848
+ toReturn['public'] = this.public;
4849
+ }
4850
+ return toReturn;
4851
+ }
4852
+ }
4853
+ class MCPOptions {
4854
+ static fromProto(proto) {
4855
+ let m = new MCPOptions();
4856
+ m = Object.assign(m, proto);
4857
+ return m;
4858
+ }
4859
+ constructor(kwargs) {
4860
+ if (!kwargs) {
4861
+ return;
4862
+ }
4863
+ Object.assign(this, kwargs);
4864
+ }
4865
+ toApiJson() {
4866
+ const toReturn = {};
4867
+ if (typeof this.serverId !== 'undefined') {
4868
+ toReturn['serverId'] = this.serverId;
4869
+ }
4870
+ return toReturn;
4871
+ }
4872
+ }
4873
+
4874
+ function enumStringToValue$e(enumRef, value) {
4875
+ if (typeof value === 'number') {
4876
+ return value;
4877
+ }
4878
+ return enumRef[value];
4879
+ }
4880
+ class Contact {
4881
+ static fromProto(proto) {
4882
+ let m = new Contact();
4883
+ m = Object.assign(m, proto);
4884
+ return m;
4885
+ }
4886
+ constructor(kwargs) {
4887
+ if (!kwargs) {
4888
+ return;
4889
+ }
4890
+ Object.assign(this, kwargs);
4891
+ }
4892
+ toApiJson() {
4893
+ const toReturn = {};
4894
+ if (typeof this.name !== 'undefined') {
4895
+ toReturn['name'] = this.name;
4896
+ }
4897
+ if (typeof this.url !== 'undefined') {
4898
+ toReturn['url'] = this.url;
4899
+ }
4900
+ if (typeof this.email !== 'undefined') {
4901
+ toReturn['email'] = this.email;
4902
+ }
4903
+ return toReturn;
4904
+ }
4905
+ }
4906
+ class EnumSchema {
4907
+ static fromProto(proto) {
4908
+ let m = new EnumSchema();
4909
+ m = Object.assign(m, proto);
4910
+ if (proto.externalDocs) {
4911
+ m.externalDocs = ExternalDocumentation.fromProto(proto.externalDocs);
4912
+ }
4913
+ if (proto.extensions) {
4914
+ m.extensions = Object.keys(proto.extensions).reduce((obj, k) => { obj[k] = proto.extensions[k]; return obj; }, {});
4915
+ }
4916
+ return m;
4917
+ }
4918
+ constructor(kwargs) {
4919
+ if (!kwargs) {
4920
+ return;
4921
+ }
4922
+ Object.assign(this, kwargs);
4923
+ }
4924
+ toApiJson() {
4925
+ const toReturn = {};
4926
+ if (typeof this.description !== 'undefined') {
4927
+ toReturn['description'] = this.description;
4928
+ }
4929
+ if (typeof this.default !== 'undefined') {
4930
+ toReturn['default'] = this.default;
4931
+ }
4932
+ if (typeof this.title !== 'undefined') {
4933
+ toReturn['title'] = this.title;
4934
+ }
4935
+ if (typeof this.required !== 'undefined') {
4936
+ toReturn['required'] = this.required;
4937
+ }
4938
+ if (typeof this.readOnly !== 'undefined') {
4939
+ toReturn['readOnly'] = this.readOnly;
4940
+ }
4941
+ if (typeof this.externalDocs !== 'undefined' && this.externalDocs !== null) {
4942
+ toReturn['externalDocs'] = 'toApiJson' in this.externalDocs ? this.externalDocs.toApiJson() : this.externalDocs;
4943
+ }
4944
+ if (typeof this.example !== 'undefined') {
4945
+ toReturn['example'] = this.example;
4946
+ }
4947
+ if (typeof this.ref !== 'undefined') {
4948
+ toReturn['ref'] = this.ref;
4949
+ }
4950
+ if (typeof this.extensions !== 'undefined' && this.extensions !== null) {
4951
+ toReturn['extensions'] = 'toApiJson' in this.extensions ? this.extensions.toApiJson() : this.extensions;
4952
+ }
4953
+ return toReturn;
4954
+ }
4955
+ }
4956
+ class ResponseExamplesEntry {
4957
+ static fromProto(proto) {
4958
+ let m = new ResponseExamplesEntry();
4959
+ m = Object.assign(m, proto);
4960
+ return m;
4961
+ }
4962
+ constructor(kwargs) {
4963
+ if (!kwargs) {
4964
+ return;
4965
+ }
4966
+ Object.assign(this, kwargs);
4967
+ }
4968
+ toApiJson() {
4969
+ const toReturn = {};
4970
+ if (typeof this.key !== 'undefined') {
4971
+ toReturn['key'] = this.key;
4972
+ }
4973
+ if (typeof this.value !== 'undefined') {
4974
+ toReturn['value'] = this.value;
4975
+ }
4976
+ return toReturn;
4977
+ }
4978
+ }
4979
+ class ResponseExtensionsEntry {
4980
+ static fromProto(proto) {
4981
+ let m = new ResponseExtensionsEntry();
4982
+ m = Object.assign(m, proto);
4983
+ return m;
4984
+ }
4985
+ constructor(kwargs) {
4986
+ if (!kwargs) {
4987
+ return;
4988
+ }
4989
+ Object.assign(this, kwargs);
4990
+ }
4991
+ toApiJson() {
4992
+ const toReturn = {};
4993
+ if (typeof this.key !== 'undefined') {
4994
+ toReturn['key'] = this.key;
4995
+ }
4996
+ if (typeof this.value !== 'undefined') {
4997
+ toReturn['value'] = this.value;
4998
+ }
4999
+ return toReturn;
5000
+ }
5001
+ }
5002
+ class SwaggerExtensionsEntry {
5003
+ static fromProto(proto) {
5004
+ let m = new SwaggerExtensionsEntry();
5005
+ m = Object.assign(m, proto);
5006
+ return m;
5007
+ }
5008
+ constructor(kwargs) {
5009
+ if (!kwargs) {
5010
+ return;
5011
+ }
5012
+ Object.assign(this, kwargs);
5013
+ }
5014
+ toApiJson() {
5015
+ const toReturn = {};
5016
+ if (typeof this.key !== 'undefined') {
5017
+ toReturn['key'] = this.key;
5018
+ }
5019
+ if (typeof this.value !== 'undefined') {
5020
+ toReturn['value'] = this.value;
5021
+ }
5022
+ return toReturn;
5023
+ }
5024
+ }
5025
+ class SecuritySchemeExtensionsEntry {
5026
+ static fromProto(proto) {
5027
+ let m = new SecuritySchemeExtensionsEntry();
5028
+ m = Object.assign(m, proto);
5029
+ return m;
5030
+ }
5031
+ constructor(kwargs) {
5032
+ if (!kwargs) {
5033
+ return;
5034
+ }
5035
+ Object.assign(this, kwargs);
5036
+ }
5037
+ toApiJson() {
5038
+ const toReturn = {};
5039
+ if (typeof this.key !== 'undefined') {
5040
+ toReturn['key'] = this.key;
5041
+ }
5042
+ if (typeof this.value !== 'undefined') {
5043
+ toReturn['value'] = this.value;
5044
+ }
5045
+ return toReturn;
5046
+ }
5047
+ }
5048
+ class TagExtensionsEntry {
5049
+ static fromProto(proto) {
5050
+ let m = new TagExtensionsEntry();
5051
+ m = Object.assign(m, proto);
5052
+ return m;
5053
+ }
5054
+ constructor(kwargs) {
5055
+ if (!kwargs) {
5056
+ return;
5057
+ }
5058
+ Object.assign(this, kwargs);
5059
+ }
5060
+ toApiJson() {
5061
+ const toReturn = {};
5062
+ if (typeof this.key !== 'undefined') {
5063
+ toReturn['key'] = this.key;
5064
+ }
5065
+ if (typeof this.value !== 'undefined') {
5066
+ toReturn['value'] = this.value;
5067
+ }
5068
+ return toReturn;
5069
+ }
5070
+ }
5071
+ class OperationExtensionsEntry {
5072
+ static fromProto(proto) {
5073
+ let m = new OperationExtensionsEntry();
5074
+ m = Object.assign(m, proto);
5075
+ return m;
5076
+ }
5077
+ constructor(kwargs) {
5078
+ if (!kwargs) {
5079
+ return;
5080
+ }
5081
+ Object.assign(this, kwargs);
5082
+ }
5083
+ toApiJson() {
5084
+ const toReturn = {};
5085
+ if (typeof this.key !== 'undefined') {
5086
+ toReturn['key'] = this.key;
5087
+ }
5088
+ if (typeof this.value !== 'undefined') {
5089
+ toReturn['value'] = this.value;
5090
+ }
5091
+ return toReturn;
5092
+ }
5093
+ }
5094
+ class JSONSchemaExtensionsEntry {
5095
+ static fromProto(proto) {
5096
+ let m = new JSONSchemaExtensionsEntry();
5097
+ m = Object.assign(m, proto);
5098
+ return m;
5099
+ }
5100
+ constructor(kwargs) {
5101
+ if (!kwargs) {
5102
+ return;
5103
+ }
5104
+ Object.assign(this, kwargs);
5105
+ }
5106
+ toApiJson() {
5107
+ const toReturn = {};
5108
+ if (typeof this.key !== 'undefined') {
5109
+ toReturn['key'] = this.key;
5110
+ }
5111
+ if (typeof this.value !== 'undefined') {
5112
+ toReturn['value'] = this.value;
5113
+ }
5114
+ return toReturn;
5115
+ }
5116
+ }
5117
+ class EnumSchemaExtensionsEntry {
5118
+ static fromProto(proto) {
5119
+ let m = new EnumSchemaExtensionsEntry();
5120
+ m = Object.assign(m, proto);
5121
+ return m;
5122
+ }
5123
+ constructor(kwargs) {
5124
+ if (!kwargs) {
5125
+ return;
5126
+ }
5127
+ Object.assign(this, kwargs);
5128
+ }
5129
+ toApiJson() {
5130
+ const toReturn = {};
5131
+ if (typeof this.key !== 'undefined') {
5132
+ toReturn['key'] = this.key;
5133
+ }
5134
+ if (typeof this.value !== 'undefined') {
5135
+ toReturn['value'] = this.value;
5136
+ }
5137
+ return toReturn;
5138
+ }
5139
+ }
5140
+ class InfoExtensionsEntry {
5141
+ static fromProto(proto) {
5142
+ let m = new InfoExtensionsEntry();
5143
+ m = Object.assign(m, proto);
5144
+ return m;
5145
+ }
5146
+ constructor(kwargs) {
5147
+ if (!kwargs) {
5148
+ return;
5149
+ }
5150
+ Object.assign(this, kwargs);
5151
+ }
5152
+ toApiJson() {
5153
+ const toReturn = {};
5154
+ if (typeof this.key !== 'undefined') {
5155
+ toReturn['key'] = this.key;
5156
+ }
5157
+ if (typeof this.value !== 'undefined') {
5158
+ toReturn['value'] = this.value;
5159
+ }
5160
+ return toReturn;
5161
+ }
5162
+ }
5163
+ class ExternalDocumentation {
5164
+ static fromProto(proto) {
5165
+ let m = new ExternalDocumentation();
5166
+ m = Object.assign(m, proto);
5167
+ return m;
5168
+ }
5169
+ constructor(kwargs) {
5170
+ if (!kwargs) {
5171
+ return;
5172
+ }
5173
+ Object.assign(this, kwargs);
5174
+ }
5175
+ toApiJson() {
5176
+ const toReturn = {};
5177
+ if (typeof this.description !== 'undefined') {
5178
+ toReturn['description'] = this.description;
5179
+ }
5180
+ if (typeof this.url !== 'undefined') {
5181
+ toReturn['url'] = this.url;
5182
+ }
5183
+ return toReturn;
5184
+ }
5185
+ }
5186
+ class JSONSchemaFieldConfiguration {
5187
+ static fromProto(proto) {
5188
+ let m = new JSONSchemaFieldConfiguration();
5189
+ m = Object.assign(m, proto);
5190
+ return m;
5191
+ }
5192
+ constructor(kwargs) {
5193
+ if (!kwargs) {
5194
+ return;
5195
+ }
5196
+ Object.assign(this, kwargs);
5197
+ }
5198
+ toApiJson() {
5199
+ const toReturn = {};
5200
+ if (typeof this.pathParamName !== 'undefined') {
5201
+ toReturn['pathParamName'] = this.pathParamName;
5202
+ }
5203
+ if (typeof this.deprecated !== 'undefined') {
5204
+ toReturn['deprecated'] = this.deprecated;
5205
+ }
5206
+ return toReturn;
5207
+ }
5208
+ }
5209
+ class Header {
5210
+ static fromProto(proto) {
5211
+ let m = new Header();
5212
+ m = Object.assign(m, proto);
5213
+ return m;
5214
+ }
5215
+ constructor(kwargs) {
5216
+ if (!kwargs) {
5217
+ return;
5218
+ }
5219
+ Object.assign(this, kwargs);
5220
+ }
5221
+ toApiJson() {
5222
+ const toReturn = {};
5223
+ if (typeof this.description !== 'undefined') {
5224
+ toReturn['description'] = this.description;
5225
+ }
5226
+ if (typeof this.type !== 'undefined') {
5227
+ toReturn['type'] = this.type;
5228
+ }
5229
+ if (typeof this.format !== 'undefined') {
5230
+ toReturn['format'] = this.format;
5231
+ }
5232
+ if (typeof this.default !== 'undefined') {
5233
+ toReturn['default'] = this.default;
5234
+ }
5235
+ if (typeof this.pattern !== 'undefined') {
5236
+ toReturn['pattern'] = this.pattern;
5237
+ }
5238
+ return toReturn;
5239
+ }
5240
+ }
5241
+ class HeaderParameter {
5242
+ static fromProto(proto) {
5243
+ let m = new HeaderParameter();
5244
+ m = Object.assign(m, proto);
5245
+ if (proto.type) {
5246
+ m.type = enumStringToValue$e(HeaderParameterType, proto.type);
5247
+ }
5248
+ return m;
5249
+ }
5250
+ constructor(kwargs) {
5251
+ if (!kwargs) {
5252
+ return;
5253
+ }
5254
+ Object.assign(this, kwargs);
5255
+ }
5256
+ toApiJson() {
5257
+ const toReturn = {};
5258
+ if (typeof this.name !== 'undefined') {
5259
+ toReturn['name'] = this.name;
5260
+ }
5261
+ if (typeof this.description !== 'undefined') {
5262
+ toReturn['description'] = this.description;
5263
+ }
5264
+ if (typeof this.type !== 'undefined') {
5265
+ toReturn['type'] = this.type;
5266
+ }
5267
+ if (typeof this.format !== 'undefined') {
5268
+ toReturn['format'] = this.format;
5269
+ }
5270
+ if (typeof this.required !== 'undefined') {
5271
+ toReturn['required'] = this.required;
5272
+ }
5273
+ return toReturn;
5274
+ }
5275
+ }
5276
+ class ResponseHeadersEntry {
5277
+ static fromProto(proto) {
5278
+ let m = new ResponseHeadersEntry();
5279
+ m = Object.assign(m, proto);
5280
+ if (proto.value) {
5281
+ m.value = Header.fromProto(proto.value);
5282
+ }
5283
+ return m;
5284
+ }
5285
+ constructor(kwargs) {
5286
+ if (!kwargs) {
5287
+ return;
5288
+ }
5289
+ Object.assign(this, kwargs);
5290
+ }
5291
+ toApiJson() {
5292
+ const toReturn = {};
5293
+ if (typeof this.key !== 'undefined') {
5294
+ toReturn['key'] = this.key;
5295
+ }
5296
+ if (typeof this.value !== 'undefined' && this.value !== null) {
5297
+ toReturn['value'] = 'toApiJson' in this.value ? this.value.toApiJson() : this.value;
5298
+ }
5299
+ return toReturn;
5300
+ }
5301
+ }
5302
+ class Info {
5303
+ static fromProto(proto) {
5304
+ let m = new Info();
5305
+ m = Object.assign(m, proto);
5306
+ if (proto.contact) {
5307
+ m.contact = Contact.fromProto(proto.contact);
5308
+ }
5309
+ if (proto.license) {
5310
+ m.license = License.fromProto(proto.license);
5311
+ }
5312
+ if (proto.extensions) {
5313
+ m.extensions = Object.keys(proto.extensions).reduce((obj, k) => { obj[k] = proto.extensions[k]; return obj; }, {});
5314
+ }
5315
+ return m;
5316
+ }
5317
+ constructor(kwargs) {
5318
+ if (!kwargs) {
5319
+ return;
5320
+ }
5321
+ Object.assign(this, kwargs);
5322
+ }
5323
+ toApiJson() {
5324
+ const toReturn = {};
5325
+ if (typeof this.title !== 'undefined') {
5326
+ toReturn['title'] = this.title;
5327
+ }
5328
+ if (typeof this.description !== 'undefined') {
5329
+ toReturn['description'] = this.description;
5330
+ }
5331
+ if (typeof this.termsOfService !== 'undefined') {
5332
+ toReturn['termsOfService'] = this.termsOfService;
5333
+ }
5334
+ if (typeof this.contact !== 'undefined' && this.contact !== null) {
5335
+ toReturn['contact'] = 'toApiJson' in this.contact ? this.contact.toApiJson() : this.contact;
5336
+ }
5337
+ if (typeof this.license !== 'undefined' && this.license !== null) {
5338
+ toReturn['license'] = 'toApiJson' in this.license ? this.license.toApiJson() : this.license;
5339
+ }
5340
+ if (typeof this.version !== 'undefined') {
5341
+ toReturn['version'] = this.version;
5342
+ }
5343
+ if (typeof this.extensions !== 'undefined' && this.extensions !== null) {
5344
+ toReturn['extensions'] = 'toApiJson' in this.extensions ? this.extensions.toApiJson() : this.extensions;
5345
+ }
5346
+ return toReturn;
5347
+ }
5348
+ }
5349
+ class JSONSchema {
5350
+ static fromProto(proto) {
5351
+ let m = new JSONSchema();
5352
+ m = Object.assign(m, proto);
5353
+ if (proto.maxLength) {
5354
+ m.maxLength = parseInt(proto.maxLength, 10);
5355
+ }
5356
+ if (proto.minLength) {
5357
+ m.minLength = parseInt(proto.minLength, 10);
5358
+ }
5359
+ if (proto.maxItems) {
5360
+ m.maxItems = parseInt(proto.maxItems, 10);
5361
+ }
5362
+ if (proto.minItems) {
5363
+ m.minItems = parseInt(proto.minItems, 10);
5364
+ }
5365
+ if (proto.maxProperties) {
5366
+ m.maxProperties = parseInt(proto.maxProperties, 10);
5367
+ }
5368
+ if (proto.minProperties) {
5369
+ m.minProperties = parseInt(proto.minProperties, 10);
5370
+ }
5371
+ if (proto.type) {
5372
+ m.type = proto.type.map((v) => enumStringToValue$e(JSONSchemaJSONSchemaSimpleTypes, v));
5373
+ }
5374
+ if (proto.fieldConfiguration) {
5375
+ m.fieldConfiguration = JSONSchemaFieldConfiguration.fromProto(proto.fieldConfiguration);
5376
+ }
5377
+ if (proto.extensions) {
5378
+ m.extensions = Object.keys(proto.extensions).reduce((obj, k) => { obj[k] = proto.extensions[k]; return obj; }, {});
5379
+ }
5380
+ return m;
5381
+ }
5382
+ constructor(kwargs) {
5383
+ if (!kwargs) {
5384
+ return;
5385
+ }
5386
+ Object.assign(this, kwargs);
5387
+ }
5388
+ toApiJson() {
5389
+ const toReturn = {};
5390
+ if (typeof this.ref !== 'undefined') {
5391
+ toReturn['ref'] = this.ref;
5392
+ }
5393
+ if (typeof this.title !== 'undefined') {
5394
+ toReturn['title'] = this.title;
5395
+ }
5396
+ if (typeof this.description !== 'undefined') {
5397
+ toReturn['description'] = this.description;
5398
+ }
5399
+ if (typeof this.default !== 'undefined') {
5400
+ toReturn['default'] = this.default;
5401
+ }
5402
+ if (typeof this.readOnly !== 'undefined') {
5403
+ toReturn['readOnly'] = this.readOnly;
5404
+ }
5405
+ if (typeof this.example !== 'undefined') {
5406
+ toReturn['example'] = this.example;
5407
+ }
5408
+ if (typeof this.multipleOf !== 'undefined') {
5409
+ toReturn['multipleOf'] = this.multipleOf;
5410
+ }
5411
+ if (typeof this.maximum !== 'undefined') {
5412
+ toReturn['maximum'] = this.maximum;
5413
+ }
5414
+ if (typeof this.exclusiveMaximum !== 'undefined') {
5415
+ toReturn['exclusiveMaximum'] = this.exclusiveMaximum;
5416
+ }
5417
+ if (typeof this.minimum !== 'undefined') {
5418
+ toReturn['minimum'] = this.minimum;
5419
+ }
5420
+ if (typeof this.exclusiveMinimum !== 'undefined') {
5421
+ toReturn['exclusiveMinimum'] = this.exclusiveMinimum;
5422
+ }
5423
+ if (typeof this.maxLength !== 'undefined') {
5424
+ toReturn['maxLength'] = this.maxLength;
5425
+ }
5426
+ if (typeof this.minLength !== 'undefined') {
5427
+ toReturn['minLength'] = this.minLength;
5428
+ }
5429
+ if (typeof this.pattern !== 'undefined') {
5430
+ toReturn['pattern'] = this.pattern;
5431
+ }
5432
+ if (typeof this.maxItems !== 'undefined') {
5433
+ toReturn['maxItems'] = this.maxItems;
5434
+ }
5435
+ if (typeof this.minItems !== 'undefined') {
5436
+ toReturn['minItems'] = this.minItems;
5437
+ }
5438
+ if (typeof this.uniqueItems !== 'undefined') {
5439
+ toReturn['uniqueItems'] = this.uniqueItems;
5440
+ }
5441
+ if (typeof this.maxProperties !== 'undefined') {
5442
+ toReturn['maxProperties'] = this.maxProperties;
5443
+ }
5444
+ if (typeof this.minProperties !== 'undefined') {
5445
+ toReturn['minProperties'] = this.minProperties;
5446
+ }
5447
+ if (typeof this.required !== 'undefined') {
5448
+ toReturn['required'] = this.required;
5449
+ }
5450
+ if (typeof this.array !== 'undefined') {
5451
+ toReturn['array'] = this.array;
5452
+ }
5453
+ if (typeof this.type !== 'undefined') {
5454
+ toReturn['type'] = this.type;
5455
+ }
5456
+ if (typeof this.format !== 'undefined') {
5457
+ toReturn['format'] = this.format;
5458
+ }
5459
+ if (typeof this.enum !== 'undefined') {
5460
+ toReturn['enum'] = this.enum;
5461
+ }
5462
+ if (typeof this.fieldConfiguration !== 'undefined' && this.fieldConfiguration !== null) {
5463
+ toReturn['fieldConfiguration'] = 'toApiJson' in this.fieldConfiguration ? this.fieldConfiguration.toApiJson() : this.fieldConfiguration;
5464
+ }
5465
+ if (typeof this.extensions !== 'undefined' && this.extensions !== null) {
5466
+ toReturn['extensions'] = 'toApiJson' in this.extensions ? this.extensions.toApiJson() : this.extensions;
5467
+ }
5468
+ return toReturn;
5469
+ }
5470
+ }
5471
+ class License {
5472
+ static fromProto(proto) {
5473
+ let m = new License();
5474
+ m = Object.assign(m, proto);
5475
+ return m;
5476
+ }
5477
+ constructor(kwargs) {
5478
+ if (!kwargs) {
5479
+ return;
5480
+ }
5481
+ Object.assign(this, kwargs);
5482
+ }
5483
+ toApiJson() {
5484
+ const toReturn = {};
5485
+ if (typeof this.name !== 'undefined') {
5486
+ toReturn['name'] = this.name;
5487
+ }
5488
+ if (typeof this.url !== 'undefined') {
5489
+ toReturn['url'] = this.url;
5490
+ }
5491
+ return toReturn;
5492
+ }
5493
+ }
5494
+ class Operation {
5495
+ static fromProto(proto) {
5496
+ let m = new Operation();
5497
+ m = Object.assign(m, proto);
5498
+ if (proto.externalDocs) {
5499
+ m.externalDocs = ExternalDocumentation.fromProto(proto.externalDocs);
5500
+ }
5501
+ if (proto.responses) {
5502
+ m.responses = Object.keys(proto.responses).reduce((obj, k) => { obj[k] = Response$1.fromProto(proto.responses[k]); return obj; }, {});
5503
+ }
5504
+ if (proto.schemes) {
5505
+ m.schemes = proto.schemes.map((v) => enumStringToValue$e(Scheme, v));
5506
+ }
5507
+ if (proto.security) {
5508
+ m.security = proto.security.map(SecurityRequirement.fromProto);
5509
+ }
5510
+ if (proto.extensions) {
5511
+ m.extensions = Object.keys(proto.extensions).reduce((obj, k) => { obj[k] = proto.extensions[k]; return obj; }, {});
5512
+ }
5513
+ if (proto.parameters) {
5514
+ m.parameters = Parameters.fromProto(proto.parameters);
5515
+ }
5516
+ return m;
5517
+ }
5518
+ constructor(kwargs) {
5519
+ if (!kwargs) {
5520
+ return;
5521
+ }
5522
+ Object.assign(this, kwargs);
5523
+ }
5524
+ toApiJson() {
5525
+ const toReturn = {};
5526
+ if (typeof this.tags !== 'undefined') {
5527
+ toReturn['tags'] = this.tags;
5528
+ }
5529
+ if (typeof this.summary !== 'undefined') {
5530
+ toReturn['summary'] = this.summary;
5531
+ }
5532
+ if (typeof this.description !== 'undefined') {
5533
+ toReturn['description'] = this.description;
5534
+ }
5535
+ if (typeof this.externalDocs !== 'undefined' && this.externalDocs !== null) {
5536
+ toReturn['externalDocs'] = 'toApiJson' in this.externalDocs ? this.externalDocs.toApiJson() : this.externalDocs;
5537
+ }
5538
+ if (typeof this.operationId !== 'undefined') {
5539
+ toReturn['operationId'] = this.operationId;
5540
+ }
5541
+ if (typeof this.consumes !== 'undefined') {
5542
+ toReturn['consumes'] = this.consumes;
5543
+ }
5544
+ if (typeof this.produces !== 'undefined') {
5545
+ toReturn['produces'] = this.produces;
5546
+ }
5547
+ if (typeof this.responses !== 'undefined' && this.responses !== null) {
5548
+ toReturn['responses'] = 'toApiJson' in this.responses ? this.responses.toApiJson() : this.responses;
5549
+ }
5550
+ if (typeof this.schemes !== 'undefined') {
5551
+ toReturn['schemes'] = this.schemes;
5552
+ }
5553
+ if (typeof this.deprecated !== 'undefined') {
5554
+ toReturn['deprecated'] = this.deprecated;
5555
+ }
5556
+ if (typeof this.security !== 'undefined' && this.security !== null) {
5557
+ toReturn['security'] = 'toApiJson' in this.security ? this.security.toApiJson() : this.security;
5558
+ }
5559
+ if (typeof this.extensions !== 'undefined' && this.extensions !== null) {
5560
+ toReturn['extensions'] = 'toApiJson' in this.extensions ? this.extensions.toApiJson() : this.extensions;
5561
+ }
5562
+ if (typeof this.parameters !== 'undefined' && this.parameters !== null) {
5563
+ toReturn['parameters'] = 'toApiJson' in this.parameters ? this.parameters.toApiJson() : this.parameters;
5564
+ }
5565
+ return toReturn;
5566
+ }
5567
+ }
5568
+ class Parameters {
5569
+ static fromProto(proto) {
5570
+ let m = new Parameters();
5571
+ m = Object.assign(m, proto);
5572
+ if (proto.headers) {
5573
+ m.headers = proto.headers.map(HeaderParameter.fromProto);
5574
+ }
5575
+ return m;
5576
+ }
5577
+ constructor(kwargs) {
5578
+ if (!kwargs) {
5579
+ return;
5580
+ }
5581
+ Object.assign(this, kwargs);
5582
+ }
5583
+ toApiJson() {
5584
+ const toReturn = {};
5585
+ if (typeof this.headers !== 'undefined' && this.headers !== null) {
5586
+ toReturn['headers'] = 'toApiJson' in this.headers ? this.headers.toApiJson() : this.headers;
5587
+ }
5588
+ return toReturn;
5589
+ }
5590
+ }
5591
+ let Response$1 = class Response {
5592
+ static fromProto(proto) {
5593
+ let m = new Response();
5594
+ m = Object.assign(m, proto);
5595
+ if (proto.schema) {
5596
+ m.schema = Schema.fromProto(proto.schema);
5597
+ }
5598
+ if (proto.headers) {
5599
+ m.headers = Object.keys(proto.headers).reduce((obj, k) => { obj[k] = Header.fromProto(proto.headers[k]); return obj; }, {});
5600
+ }
5601
+ if (proto.examples) {
5602
+ m.examples = Object.keys(proto.examples).reduce((obj, k) => { obj[k] = proto.examples[k]; return obj; }, {});
5603
+ }
5604
+ if (proto.extensions) {
5605
+ m.extensions = Object.keys(proto.extensions).reduce((obj, k) => { obj[k] = proto.extensions[k]; return obj; }, {});
5606
+ }
5607
+ return m;
5608
+ }
5609
+ constructor(kwargs) {
5610
+ if (!kwargs) {
5611
+ return;
5612
+ }
5613
+ Object.assign(this, kwargs);
5614
+ }
5615
+ toApiJson() {
5616
+ const toReturn = {};
5617
+ if (typeof this.description !== 'undefined') {
5618
+ toReturn['description'] = this.description;
5619
+ }
5620
+ if (typeof this.schema !== 'undefined' && this.schema !== null) {
5621
+ toReturn['schema'] = 'toApiJson' in this.schema ? this.schema.toApiJson() : this.schema;
5622
+ }
5623
+ if (typeof this.headers !== 'undefined' && this.headers !== null) {
5624
+ toReturn['headers'] = 'toApiJson' in this.headers ? this.headers.toApiJson() : this.headers;
5625
+ }
5626
+ if (typeof this.examples !== 'undefined' && this.examples !== null) {
5627
+ toReturn['examples'] = 'toApiJson' in this.examples ? this.examples.toApiJson() : this.examples;
5628
+ }
5629
+ if (typeof this.extensions !== 'undefined' && this.extensions !== null) {
5630
+ toReturn['extensions'] = 'toApiJson' in this.extensions ? this.extensions.toApiJson() : this.extensions;
5631
+ }
5632
+ return toReturn;
5633
+ }
5634
+ };
5635
+ class OperationResponsesEntry {
5636
+ static fromProto(proto) {
5637
+ let m = new OperationResponsesEntry();
5638
+ m = Object.assign(m, proto);
5639
+ if (proto.value) {
5640
+ m.value = Response$1.fromProto(proto.value);
5641
+ }
5642
+ return m;
5643
+ }
5644
+ constructor(kwargs) {
5645
+ if (!kwargs) {
5646
+ return;
5647
+ }
5648
+ Object.assign(this, kwargs);
5649
+ }
5650
+ toApiJson() {
5651
+ const toReturn = {};
5652
+ if (typeof this.key !== 'undefined') {
5653
+ toReturn['key'] = this.key;
5654
+ }
5655
+ if (typeof this.value !== 'undefined' && this.value !== null) {
5656
+ toReturn['value'] = 'toApiJson' in this.value ? this.value.toApiJson() : this.value;
5657
+ }
5658
+ return toReturn;
5659
+ }
5660
+ }
5661
+ class SwaggerResponsesEntry {
5662
+ static fromProto(proto) {
5663
+ let m = new SwaggerResponsesEntry();
5664
+ m = Object.assign(m, proto);
5665
+ if (proto.value) {
5666
+ m.value = Response$1.fromProto(proto.value);
5667
+ }
5668
+ return m;
5669
+ }
5670
+ constructor(kwargs) {
5671
+ if (!kwargs) {
5672
+ return;
5673
+ }
5674
+ Object.assign(this, kwargs);
5675
+ }
5676
+ toApiJson() {
5677
+ const toReturn = {};
5678
+ if (typeof this.key !== 'undefined') {
5679
+ toReturn['key'] = this.key;
5680
+ }
5681
+ if (typeof this.value !== 'undefined' && this.value !== null) {
5682
+ toReturn['value'] = 'toApiJson' in this.value ? this.value.toApiJson() : this.value;
5683
+ }
5684
+ return toReturn;
5685
+ }
5686
+ }
5687
+ class Schema {
5688
+ static fromProto(proto) {
5689
+ let m = new Schema();
5690
+ m = Object.assign(m, proto);
5691
+ if (proto.jsonSchema) {
5692
+ m.jsonSchema = JSONSchema.fromProto(proto.jsonSchema);
5693
+ }
5694
+ if (proto.externalDocs) {
5695
+ m.externalDocs = ExternalDocumentation.fromProto(proto.externalDocs);
5696
+ }
5697
+ return m;
5698
+ }
5699
+ constructor(kwargs) {
5700
+ if (!kwargs) {
5701
+ return;
5702
+ }
5703
+ Object.assign(this, kwargs);
5704
+ }
5705
+ toApiJson() {
5706
+ const toReturn = {};
5707
+ if (typeof this.jsonSchema !== 'undefined' && this.jsonSchema !== null) {
5708
+ toReturn['jsonSchema'] = 'toApiJson' in this.jsonSchema ? this.jsonSchema.toApiJson() : this.jsonSchema;
5709
+ }
5710
+ if (typeof this.discriminator !== 'undefined') {
5711
+ toReturn['discriminator'] = this.discriminator;
5712
+ }
5713
+ if (typeof this.readOnly !== 'undefined') {
5714
+ toReturn['readOnly'] = this.readOnly;
5715
+ }
5716
+ if (typeof this.externalDocs !== 'undefined' && this.externalDocs !== null) {
5717
+ toReturn['externalDocs'] = 'toApiJson' in this.externalDocs ? this.externalDocs.toApiJson() : this.externalDocs;
5718
+ }
5719
+ if (typeof this.example !== 'undefined') {
5720
+ toReturn['example'] = this.example;
5721
+ }
5722
+ return toReturn;
5723
+ }
5724
+ }
5725
+ class ScopesScopeEntry {
5726
+ static fromProto(proto) {
5727
+ let m = new ScopesScopeEntry();
5728
+ m = Object.assign(m, proto);
5729
+ return m;
5730
+ }
5731
+ constructor(kwargs) {
5732
+ if (!kwargs) {
5733
+ return;
5734
+ }
5735
+ Object.assign(this, kwargs);
5736
+ }
5737
+ toApiJson() {
5738
+ const toReturn = {};
5739
+ if (typeof this.key !== 'undefined') {
5740
+ toReturn['key'] = this.key;
5741
+ }
5742
+ if (typeof this.value !== 'undefined') {
5743
+ toReturn['value'] = this.value;
5744
+ }
5745
+ return toReturn;
5746
+ }
5747
+ }
5748
+ class Scopes {
5749
+ static fromProto(proto) {
5750
+ let m = new Scopes();
4551
5751
  m = Object.assign(m, proto);
4552
- if (proto.source) {
4553
- m.source = enumStringToValue$g(ImageSource, proto.source);
5752
+ if (proto.scope) {
5753
+ m.scope = Object.keys(proto.scope).reduce((obj, k) => { obj[k] = proto.scope[k]; return obj; }, {});
4554
5754
  }
4555
5755
  return m;
4556
5756
  }
@@ -4562,28 +5762,19 @@ class StockImage {
4562
5762
  }
4563
5763
  toApiJson() {
4564
5764
  const toReturn = {};
4565
- if (typeof this.publicUrl !== 'undefined') {
4566
- toReturn['publicUrl'] = this.publicUrl;
4567
- }
4568
- if (typeof this.imageId !== 'undefined') {
4569
- toReturn['imageId'] = this.imageId;
4570
- }
4571
- if (typeof this.source !== 'undefined') {
4572
- toReturn['source'] = this.source;
4573
- }
4574
- if (typeof this.photographerName !== 'undefined') {
4575
- toReturn['photographerName'] = this.photographerName;
4576
- }
4577
- if (typeof this.photographerUrl !== 'undefined') {
4578
- toReturn['photographerUrl'] = this.photographerUrl;
5765
+ if (typeof this.scope !== 'undefined' && this.scope !== null) {
5766
+ toReturn['scope'] = 'toApiJson' in this.scope ? this.scope.toApiJson() : this.scope;
4579
5767
  }
4580
5768
  return toReturn;
4581
5769
  }
4582
5770
  }
4583
- class StockImageError {
5771
+ class SecurityDefinitions {
4584
5772
  static fromProto(proto) {
4585
- let m = new StockImageError();
5773
+ let m = new SecurityDefinitions();
4586
5774
  m = Object.assign(m, proto);
5775
+ if (proto.security) {
5776
+ m.security = Object.keys(proto.security).reduce((obj, k) => { obj[k] = SecurityScheme.fromProto(proto.security[k]); return obj; }, {});
5777
+ }
4587
5778
  return m;
4588
5779
  }
4589
5780
  constructor(kwargs) {
@@ -4594,28 +5785,18 @@ class StockImageError {
4594
5785
  }
4595
5786
  toApiJson() {
4596
5787
  const toReturn = {};
4597
- if (typeof this.code !== 'undefined') {
4598
- toReturn['code'] = this.code;
4599
- }
4600
- if (typeof this.message !== 'undefined') {
4601
- toReturn['message'] = this.message;
5788
+ if (typeof this.security !== 'undefined' && this.security !== null) {
5789
+ toReturn['security'] = 'toApiJson' in this.security ? this.security.toApiJson() : this.security;
4602
5790
  }
4603
5791
  return toReturn;
4604
5792
  }
4605
5793
  }
4606
-
4607
- function enumStringToValue$f(enumRef, value) {
4608
- if (typeof value === 'number') {
4609
- return value;
4610
- }
4611
- return enumRef[value];
4612
- }
4613
- class BlogAuthor {
5794
+ class SecurityDefinitionsSecurityEntry {
4614
5795
  static fromProto(proto) {
4615
- let m = new BlogAuthor();
5796
+ let m = new SecurityDefinitionsSecurityEntry();
4616
5797
  m = Object.assign(m, proto);
4617
- if (proto.id) {
4618
- m.id = parseInt(proto.id, 10);
5798
+ if (proto.value) {
5799
+ m.value = SecurityScheme.fromProto(proto.value);
4619
5800
  }
4620
5801
  return m;
4621
5802
  }
@@ -4627,21 +5808,21 @@ class BlogAuthor {
4627
5808
  }
4628
5809
  toApiJson() {
4629
5810
  const toReturn = {};
4630
- if (typeof this.id !== 'undefined') {
4631
- toReturn['id'] = this.id;
5811
+ if (typeof this.key !== 'undefined') {
5812
+ toReturn['key'] = this.key;
4632
5813
  }
4633
- if (typeof this.name !== 'undefined') {
4634
- toReturn['name'] = this.name;
5814
+ if (typeof this.value !== 'undefined' && this.value !== null) {
5815
+ toReturn['value'] = 'toApiJson' in this.value ? this.value.toApiJson() : this.value;
4635
5816
  }
4636
5817
  return toReturn;
4637
5818
  }
4638
5819
  }
4639
- class BlogCategory {
5820
+ class SecurityRequirement {
4640
5821
  static fromProto(proto) {
4641
- let m = new BlogCategory();
5822
+ let m = new SecurityRequirement();
4642
5823
  m = Object.assign(m, proto);
4643
- if (proto.id) {
4644
- m.id = parseInt(proto.id, 10);
5824
+ if (proto.securityRequirement) {
5825
+ m.securityRequirement = Object.keys(proto.securityRequirement).reduce((obj, k) => { obj[k] = SecurityRequirementSecurityRequirementValue.fromProto(proto.securityRequirement[k]); return obj; }, {});
4645
5826
  }
4646
5827
  return m;
4647
5828
  }
@@ -4653,24 +5834,18 @@ class BlogCategory {
4653
5834
  }
4654
5835
  toApiJson() {
4655
5836
  const toReturn = {};
4656
- if (typeof this.id !== 'undefined') {
4657
- toReturn['id'] = this.id;
4658
- }
4659
- if (typeof this.name !== 'undefined') {
4660
- toReturn['name'] = this.name;
5837
+ if (typeof this.securityRequirement !== 'undefined' && this.securityRequirement !== null) {
5838
+ toReturn['securityRequirement'] = 'toApiJson' in this.securityRequirement ? this.securityRequirement.toApiJson() : this.securityRequirement;
4661
5839
  }
4662
5840
  return toReturn;
4663
5841
  }
4664
5842
  }
4665
- class BlogWebsiteDetails {
5843
+ class SecurityRequirementSecurityRequirementEntry {
4666
5844
  static fromProto(proto) {
4667
- let m = new BlogWebsiteDetails();
5845
+ let m = new SecurityRequirementSecurityRequirementEntry();
4668
5846
  m = Object.assign(m, proto);
4669
- if (proto.categories) {
4670
- m.categories = proto.categories.map(BlogCategory.fromProto);
4671
- }
4672
- if (proto.authors) {
4673
- m.authors = proto.authors.map(BlogAuthor.fromProto);
5847
+ if (proto.value) {
5848
+ m.value = SecurityRequirementSecurityRequirementValue.fromProto(proto.value);
4674
5849
  }
4675
5850
  return m;
4676
5851
  }
@@ -4682,36 +5857,18 @@ class BlogWebsiteDetails {
4682
5857
  }
4683
5858
  toApiJson() {
4684
5859
  const toReturn = {};
4685
- if (typeof this.socialServiceId !== 'undefined') {
4686
- toReturn['socialServiceId'] = this.socialServiceId;
4687
- }
4688
- if (typeof this.siteUrl !== 'undefined') {
4689
- toReturn['siteUrl'] = this.siteUrl;
4690
- }
4691
- if (typeof this.isSiteActive !== 'undefined') {
4692
- toReturn['isSiteActive'] = this.isSiteActive;
4693
- }
4694
- if (typeof this.categories !== 'undefined' && this.categories !== null) {
4695
- toReturn['categories'] = 'toApiJson' in this.categories ? this.categories.toApiJson() : this.categories;
4696
- }
4697
- if (typeof this.authors !== 'undefined' && this.authors !== null) {
4698
- toReturn['authors'] = 'toApiJson' in this.authors ? this.authors.toApiJson() : this.authors;
4699
- }
4700
- if (typeof this.version !== 'undefined') {
4701
- toReturn['version'] = this.version;
4702
- }
4703
- if (typeof this.tags !== 'undefined') {
4704
- toReturn['tags'] = this.tags;
5860
+ if (typeof this.key !== 'undefined') {
5861
+ toReturn['key'] = this.key;
4705
5862
  }
4706
- if (typeof this.error !== 'undefined') {
4707
- toReturn['error'] = this.error;
5863
+ if (typeof this.value !== 'undefined' && this.value !== null) {
5864
+ toReturn['value'] = 'toApiJson' in this.value ? this.value.toApiJson() : this.value;
4708
5865
  }
4709
5866
  return toReturn;
4710
5867
  }
4711
5868
  }
4712
- class GetBlogWebsiteDetailsRequest {
5869
+ class SecurityRequirementSecurityRequirementValue {
4713
5870
  static fromProto(proto) {
4714
- let m = new GetBlogWebsiteDetailsRequest();
5871
+ let m = new SecurityRequirementSecurityRequirementValue();
4715
5872
  m = Object.assign(m, proto);
4716
5873
  return m;
4717
5874
  }
@@ -4723,18 +5880,30 @@ class GetBlogWebsiteDetailsRequest {
4723
5880
  }
4724
5881
  toApiJson() {
4725
5882
  const toReturn = {};
4726
- if (typeof this.socialServiceIds !== 'undefined') {
4727
- toReturn['socialServiceIds'] = this.socialServiceIds;
5883
+ if (typeof this.scope !== 'undefined') {
5884
+ toReturn['scope'] = this.scope;
4728
5885
  }
4729
5886
  return toReturn;
4730
5887
  }
4731
5888
  }
4732
- class GetBlogWebsiteDetailsResponse {
5889
+ class SecurityScheme {
4733
5890
  static fromProto(proto) {
4734
- let m = new GetBlogWebsiteDetailsResponse();
5891
+ let m = new SecurityScheme();
4735
5892
  m = Object.assign(m, proto);
4736
- if (proto.blogWebsiteDetails) {
4737
- m.blogWebsiteDetails = proto.blogWebsiteDetails.map(BlogWebsiteDetails.fromProto);
5893
+ if (proto.type) {
5894
+ m.type = enumStringToValue$e(SecuritySchemeType, proto.type);
5895
+ }
5896
+ if (proto.in) {
5897
+ m.in = enumStringToValue$e(SecuritySchemeIn, proto.in);
5898
+ }
5899
+ if (proto.flow) {
5900
+ m.flow = enumStringToValue$e(SecuritySchemeFlow, proto.flow);
5901
+ }
5902
+ if (proto.scopes) {
5903
+ m.scopes = Scopes.fromProto(proto.scopes);
5904
+ }
5905
+ if (proto.extensions) {
5906
+ m.extensions = Object.keys(proto.extensions).reduce((obj, k) => { obj[k] = proto.extensions[k]; return obj; }, {});
4738
5907
  }
4739
5908
  return m;
4740
5909
  }
@@ -4746,23 +5915,64 @@ class GetBlogWebsiteDetailsResponse {
4746
5915
  }
4747
5916
  toApiJson() {
4748
5917
  const toReturn = {};
4749
- if (typeof this.blogWebsiteDetails !== 'undefined' && this.blogWebsiteDetails !== null) {
4750
- toReturn['blogWebsiteDetails'] = 'toApiJson' in this.blogWebsiteDetails ? this.blogWebsiteDetails.toApiJson() : this.blogWebsiteDetails;
5918
+ if (typeof this.type !== 'undefined') {
5919
+ toReturn['type'] = this.type;
5920
+ }
5921
+ if (typeof this.description !== 'undefined') {
5922
+ toReturn['description'] = this.description;
5923
+ }
5924
+ if (typeof this.name !== 'undefined') {
5925
+ toReturn['name'] = this.name;
5926
+ }
5927
+ if (typeof this.in !== 'undefined') {
5928
+ toReturn['in'] = this.in;
5929
+ }
5930
+ if (typeof this.flow !== 'undefined') {
5931
+ toReturn['flow'] = this.flow;
5932
+ }
5933
+ if (typeof this.authorizationUrl !== 'undefined') {
5934
+ toReturn['authorizationUrl'] = this.authorizationUrl;
5935
+ }
5936
+ if (typeof this.tokenUrl !== 'undefined') {
5937
+ toReturn['tokenUrl'] = this.tokenUrl;
5938
+ }
5939
+ if (typeof this.scopes !== 'undefined' && this.scopes !== null) {
5940
+ toReturn['scopes'] = 'toApiJson' in this.scopes ? this.scopes.toApiJson() : this.scopes;
5941
+ }
5942
+ if (typeof this.extensions !== 'undefined' && this.extensions !== null) {
5943
+ toReturn['extensions'] = 'toApiJson' in this.extensions ? this.extensions.toApiJson() : this.extensions;
4751
5944
  }
4752
5945
  return toReturn;
4753
5946
  }
4754
5947
  }
4755
-
4756
- function enumStringToValue$e(enumRef, value) {
4757
- if (typeof value === 'number') {
4758
- return value;
4759
- }
4760
- return enumRef[value];
4761
- }
4762
- class Access {
5948
+ class Swagger {
4763
5949
  static fromProto(proto) {
4764
- let m = new Access();
5950
+ let m = new Swagger();
4765
5951
  m = Object.assign(m, proto);
5952
+ if (proto.info) {
5953
+ m.info = Info.fromProto(proto.info);
5954
+ }
5955
+ if (proto.schemes) {
5956
+ m.schemes = proto.schemes.map((v) => enumStringToValue$e(Scheme, v));
5957
+ }
5958
+ if (proto.responses) {
5959
+ m.responses = Object.keys(proto.responses).reduce((obj, k) => { obj[k] = Response$1.fromProto(proto.responses[k]); return obj; }, {});
5960
+ }
5961
+ if (proto.securityDefinitions) {
5962
+ m.securityDefinitions = SecurityDefinitions.fromProto(proto.securityDefinitions);
5963
+ }
5964
+ if (proto.security) {
5965
+ m.security = proto.security.map(SecurityRequirement.fromProto);
5966
+ }
5967
+ if (proto.tags) {
5968
+ m.tags = proto.tags.map(Tag.fromProto);
5969
+ }
5970
+ if (proto.externalDocs) {
5971
+ m.externalDocs = ExternalDocumentation.fromProto(proto.externalDocs);
5972
+ }
5973
+ if (proto.extensions) {
5974
+ m.extensions = Object.keys(proto.extensions).reduce((obj, k) => { obj[k] = proto.extensions[k]; return obj; }, {});
5975
+ }
4766
5976
  return m;
4767
5977
  }
4768
5978
  constructor(kwargs) {
@@ -4773,19 +5983,58 @@ class Access {
4773
5983
  }
4774
5984
  toApiJson() {
4775
5985
  const toReturn = {};
4776
- if (typeof this.scope !== 'undefined') {
4777
- toReturn['scope'] = this.scope;
5986
+ if (typeof this.swagger !== 'undefined') {
5987
+ toReturn['swagger'] = this.swagger;
4778
5988
  }
4779
- if (typeof this.public !== 'undefined') {
4780
- toReturn['public'] = this.public;
5989
+ if (typeof this.info !== 'undefined' && this.info !== null) {
5990
+ toReturn['info'] = 'toApiJson' in this.info ? this.info.toApiJson() : this.info;
5991
+ }
5992
+ if (typeof this.host !== 'undefined') {
5993
+ toReturn['host'] = this.host;
5994
+ }
5995
+ if (typeof this.basePath !== 'undefined') {
5996
+ toReturn['basePath'] = this.basePath;
5997
+ }
5998
+ if (typeof this.schemes !== 'undefined') {
5999
+ toReturn['schemes'] = this.schemes;
6000
+ }
6001
+ if (typeof this.consumes !== 'undefined') {
6002
+ toReturn['consumes'] = this.consumes;
6003
+ }
6004
+ if (typeof this.produces !== 'undefined') {
6005
+ toReturn['produces'] = this.produces;
6006
+ }
6007
+ if (typeof this.responses !== 'undefined' && this.responses !== null) {
6008
+ toReturn['responses'] = 'toApiJson' in this.responses ? this.responses.toApiJson() : this.responses;
6009
+ }
6010
+ if (typeof this.securityDefinitions !== 'undefined' && this.securityDefinitions !== null) {
6011
+ toReturn['securityDefinitions'] = 'toApiJson' in this.securityDefinitions ? this.securityDefinitions.toApiJson() : this.securityDefinitions;
6012
+ }
6013
+ if (typeof this.security !== 'undefined' && this.security !== null) {
6014
+ toReturn['security'] = 'toApiJson' in this.security ? this.security.toApiJson() : this.security;
6015
+ }
6016
+ if (typeof this.tags !== 'undefined' && this.tags !== null) {
6017
+ toReturn['tags'] = 'toApiJson' in this.tags ? this.tags.toApiJson() : this.tags;
6018
+ }
6019
+ if (typeof this.externalDocs !== 'undefined' && this.externalDocs !== null) {
6020
+ toReturn['externalDocs'] = 'toApiJson' in this.externalDocs ? this.externalDocs.toApiJson() : this.externalDocs;
6021
+ }
6022
+ if (typeof this.extensions !== 'undefined' && this.extensions !== null) {
6023
+ toReturn['extensions'] = 'toApiJson' in this.extensions ? this.extensions.toApiJson() : this.extensions;
4781
6024
  }
4782
6025
  return toReturn;
4783
6026
  }
4784
6027
  }
4785
- class MCPOptions {
6028
+ class Tag {
4786
6029
  static fromProto(proto) {
4787
- let m = new MCPOptions();
6030
+ let m = new Tag();
4788
6031
  m = Object.assign(m, proto);
6032
+ if (proto.externalDocs) {
6033
+ m.externalDocs = ExternalDocumentation.fromProto(proto.externalDocs);
6034
+ }
6035
+ if (proto.extensions) {
6036
+ m.extensions = Object.keys(proto.extensions).reduce((obj, k) => { obj[k] = proto.extensions[k]; return obj; }, {});
6037
+ }
4789
6038
  return m;
4790
6039
  }
4791
6040
  constructor(kwargs) {
@@ -4796,8 +6045,17 @@ class MCPOptions {
4796
6045
  }
4797
6046
  toApiJson() {
4798
6047
  const toReturn = {};
4799
- if (typeof this.serverId !== 'undefined') {
4800
- toReturn['serverId'] = this.serverId;
6048
+ if (typeof this.name !== 'undefined') {
6049
+ toReturn['name'] = this.name;
6050
+ }
6051
+ if (typeof this.description !== 'undefined') {
6052
+ toReturn['description'] = this.description;
6053
+ }
6054
+ if (typeof this.externalDocs !== 'undefined' && this.externalDocs !== null) {
6055
+ toReturn['externalDocs'] = 'toApiJson' in this.externalDocs ? this.externalDocs.toApiJson() : this.externalDocs;
6056
+ }
6057
+ if (typeof this.extensions !== 'undefined' && this.extensions !== null) {
6058
+ toReturn['extensions'] = 'toApiJson' in this.extensions ? this.extensions.toApiJson() : this.extensions;
4801
6059
  }
4802
6060
  return toReturn;
4803
6061
  }
@@ -5177,7 +6435,7 @@ class Media {
5177
6435
  let m = new Media();
5178
6436
  m = Object.assign(m, proto);
5179
6437
  if (proto.mediaType) {
5180
- m.mediaType = enumStringToValue$c(MediaType, proto.mediaType);
6438
+ m.mediaType = enumStringToValue$c(MediaType$1, proto.mediaType);
5181
6439
  }
5182
6440
  return m;
5183
6441
  }
@@ -6488,6 +7746,52 @@ class GetMediaMetadataFromURLResponse {
6488
7746
  return toReturn;
6489
7747
  }
6490
7748
  }
7749
+ class GetXSubscriptionTypeRequest {
7750
+ static fromProto(proto) {
7751
+ let m = new GetXSubscriptionTypeRequest();
7752
+ m = Object.assign(m, proto);
7753
+ return m;
7754
+ }
7755
+ constructor(kwargs) {
7756
+ if (!kwargs) {
7757
+ return;
7758
+ }
7759
+ Object.assign(this, kwargs);
7760
+ }
7761
+ toApiJson() {
7762
+ const toReturn = {};
7763
+ if (typeof this.socialServiceId !== 'undefined') {
7764
+ toReturn['socialServiceId'] = this.socialServiceId;
7765
+ }
7766
+ if (typeof this.businessId !== 'undefined') {
7767
+ toReturn['businessId'] = this.businessId;
7768
+ }
7769
+ return toReturn;
7770
+ }
7771
+ }
7772
+ class GetXSubscriptionTypeResponse {
7773
+ static fromProto(proto) {
7774
+ let m = new GetXSubscriptionTypeResponse();
7775
+ m = Object.assign(m, proto);
7776
+ if (proto.subscriptionType) {
7777
+ m.subscriptionType = enumStringToValue$9(XSubscriptionType, proto.subscriptionType);
7778
+ }
7779
+ return m;
7780
+ }
7781
+ constructor(kwargs) {
7782
+ if (!kwargs) {
7783
+ return;
7784
+ }
7785
+ Object.assign(this, kwargs);
7786
+ }
7787
+ toApiJson() {
7788
+ const toReturn = {};
7789
+ if (typeof this.subscriptionType !== 'undefined') {
7790
+ toReturn['subscriptionType'] = this.subscriptionType;
7791
+ }
7792
+ return toReturn;
7793
+ }
7794
+ }
6491
7795
  class ImageBlob {
6492
7796
  static fromProto(proto) {
6493
7797
  let m = new ImageBlob();
@@ -6534,9 +7838,9 @@ class ImageCreated {
6534
7838
  return toReturn;
6535
7839
  }
6536
7840
  }
6537
- class GeneratePostsResponseImageResponse {
7841
+ class ImageResponse {
6538
7842
  static fromProto(proto) {
6539
- let m = new GeneratePostsResponseImageResponse();
7843
+ let m = new ImageResponse();
6540
7844
  m = Object.assign(m, proto);
6541
7845
  return m;
6542
7846
  }
@@ -6551,8 +7855,8 @@ class GeneratePostsResponseImageResponse {
6551
7855
  if (typeof this.type !== 'undefined') {
6552
7856
  toReturn['type'] = this.type;
6553
7857
  }
6554
- if (typeof this.webFormatUrl !== 'undefined') {
6555
- toReturn['webFormatUrl'] = this.webFormatUrl;
7858
+ if (typeof this.webformatUrl !== 'undefined') {
7859
+ toReturn['webformatUrl'] = this.webformatUrl;
6556
7860
  }
6557
7861
  if (typeof this.fullHdUrl !== 'undefined') {
6558
7862
  toReturn['fullHdUrl'] = this.fullHdUrl;
@@ -6563,9 +7867,9 @@ class GeneratePostsResponseImageResponse {
6563
7867
  return toReturn;
6564
7868
  }
6565
7869
  }
6566
- class ImageResponse {
7870
+ class GeneratePostsResponseImageResponse {
6567
7871
  static fromProto(proto) {
6568
- let m = new ImageResponse();
7872
+ let m = new GeneratePostsResponseImageResponse();
6569
7873
  m = Object.assign(m, proto);
6570
7874
  return m;
6571
7875
  }
@@ -6580,8 +7884,8 @@ class ImageResponse {
6580
7884
  if (typeof this.type !== 'undefined') {
6581
7885
  toReturn['type'] = this.type;
6582
7886
  }
6583
- if (typeof this.webformatUrl !== 'undefined') {
6584
- toReturn['webformatUrl'] = this.webformatUrl;
7887
+ if (typeof this.webFormatUrl !== 'undefined') {
7888
+ toReturn['webFormatUrl'] = this.webFormatUrl;
6585
7889
  }
6586
7890
  if (typeof this.fullHdUrl !== 'undefined') {
6587
7891
  toReturn['fullHdUrl'] = this.fullHdUrl;
@@ -6925,12 +8229,12 @@ class MultiResponse {
6925
8229
  return toReturn;
6926
8230
  }
6927
8231
  }
6928
- class Post {
8232
+ class GeneratePostsResponsePost {
6929
8233
  static fromProto(proto) {
6930
- let m = new Post();
8234
+ let m = new GeneratePostsResponsePost();
6931
8235
  m = Object.assign(m, proto);
6932
- if (proto.postContent) {
6933
- m.postContent = proto.postContent.map(PostContent.fromProto);
8236
+ if (proto.imageResponse) {
8237
+ m.imageResponse = GeneratePostsResponseImageResponse.fromProto(proto.imageResponse);
6934
8238
  }
6935
8239
  return m;
6936
8240
  }
@@ -6942,21 +8246,21 @@ class Post {
6942
8246
  }
6943
8247
  toApiJson() {
6944
8248
  const toReturn = {};
6945
- if (typeof this.topic !== 'undefined') {
6946
- toReturn['topic'] = this.topic;
8249
+ if (typeof this.text !== 'undefined') {
8250
+ toReturn['text'] = this.text;
6947
8251
  }
6948
- if (typeof this.postContent !== 'undefined' && this.postContent !== null) {
6949
- toReturn['postContent'] = 'toApiJson' in this.postContent ? this.postContent.toApiJson() : this.postContent;
8252
+ if (typeof this.imageResponse !== 'undefined' && this.imageResponse !== null) {
8253
+ toReturn['imageResponse'] = 'toApiJson' in this.imageResponse ? this.imageResponse.toApiJson() : this.imageResponse;
6950
8254
  }
6951
8255
  return toReturn;
6952
8256
  }
6953
8257
  }
6954
- class GeneratePostsResponsePost {
8258
+ class Post {
6955
8259
  static fromProto(proto) {
6956
- let m = new GeneratePostsResponsePost();
8260
+ let m = new Post();
6957
8261
  m = Object.assign(m, proto);
6958
- if (proto.imageResponse) {
6959
- m.imageResponse = GeneratePostsResponseImageResponse.fromProto(proto.imageResponse);
8262
+ if (proto.postContent) {
8263
+ m.postContent = proto.postContent.map(PostContent.fromProto);
6960
8264
  }
6961
8265
  return m;
6962
8266
  }
@@ -6968,11 +8272,11 @@ class GeneratePostsResponsePost {
6968
8272
  }
6969
8273
  toApiJson() {
6970
8274
  const toReturn = {};
6971
- if (typeof this.text !== 'undefined') {
6972
- toReturn['text'] = this.text;
8275
+ if (typeof this.topic !== 'undefined') {
8276
+ toReturn['topic'] = this.topic;
6973
8277
  }
6974
- if (typeof this.imageResponse !== 'undefined' && this.imageResponse !== null) {
6975
- toReturn['imageResponse'] = 'toApiJson' in this.imageResponse ? this.imageResponse.toApiJson() : this.imageResponse;
8278
+ if (typeof this.postContent !== 'undefined' && this.postContent !== null) {
8279
+ toReturn['postContent'] = 'toApiJson' in this.postContent ? this.postContent.toApiJson() : this.postContent;
6976
8280
  }
6977
8281
  return toReturn;
6978
8282
  }
@@ -7407,7 +8711,7 @@ class UploadToStorageRequest {
7407
8711
  let m = new UploadToStorageRequest();
7408
8712
  m = Object.assign(m, proto);
7409
8713
  if (proto.mediaType) {
7410
- m.mediaType = enumStringToValue$9(MediaType, proto.mediaType);
8714
+ m.mediaType = enumStringToValue$9(MediaType$1, proto.mediaType);
7411
8715
  }
7412
8716
  return m;
7413
8717
  }
@@ -7665,6 +8969,9 @@ class SendMessageV2Request {
7665
8969
  if (proto.messages) {
7666
8970
  m.messages = proto.messages.map(ChatMessage.fromProto);
7667
8971
  }
8972
+ if (proto.contentType) {
8973
+ m.contentType = enumStringToValue$7(ContentType, proto.contentType);
8974
+ }
7668
8975
  return m;
7669
8976
  }
7670
8977
  constructor(kwargs) {
@@ -7693,6 +9000,9 @@ class SendMessageV2Request {
7693
9000
  if (typeof this.brandId !== 'undefined') {
7694
9001
  toReturn['brandId'] = this.brandId;
7695
9002
  }
9003
+ if (typeof this.contentType !== 'undefined') {
9004
+ toReturn['contentType'] = this.contentType;
9005
+ }
7696
9006
  return toReturn;
7697
9007
  }
7698
9008
  }
@@ -10162,7 +11472,7 @@ class MediaItem {
10162
11472
  let m = new MediaItem();
10163
11473
  m = Object.assign(m, proto);
10164
11474
  if (proto.mediaType) {
10165
- m.mediaType = enumStringToValue$1(MediaType, proto.mediaType);
11475
+ m.mediaType = enumStringToValue$1(MediaType$1, proto.mediaType);
10166
11476
  }
10167
11477
  return m;
10168
11478
  }
@@ -11715,6 +13025,11 @@ class SocialPostsV2ApiService {
11715
13025
  return this.http.post(this._host + "/socialposts.v2.SocialPostsV2/GetMediaMetadataFromURL", request.toApiJson(), this.apiOptions())
11716
13026
  .pipe(map(resp => GetMediaMetadataFromURLResponse.fromProto(resp)));
11717
13027
  }
13028
+ getXSubscriptionType(r) {
13029
+ const request = (r.toApiJson) ? r : new GetXSubscriptionTypeRequest(r);
13030
+ return this.http.post(this._host + "/socialposts.v2.SocialPostsV2/GetXSubscriptionType", request.toApiJson(), this.apiOptions())
13031
+ .pipe(map(resp => GetXSubscriptionTypeResponse.fromProto(resp)));
13032
+ }
11718
13033
  }
11719
13034
  SocialPostsV2ApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SocialPostsV2ApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
11720
13035
  SocialPostsV2ApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SocialPostsV2ApiService, providedIn: 'root' });
@@ -12250,6 +13565,9 @@ class SocialPostsV2Service {
12250
13565
  const urlRequest = new GetMediaMetadataFromURLRequest({ url: url });
12251
13566
  return this.socialpostV2ApiService.getMediaMetadataFromUrl(urlRequest);
12252
13567
  }
13568
+ getXSubscriptionType(req) {
13569
+ return this.socialpostV2ApiService.getXSubscriptionType(req);
13570
+ }
12253
13571
  }
12254
13572
  SocialPostsV2Service.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SocialPostsV2Service, deps: [{ token: SocialPostsV2ApiService }], target: i0.ɵɵFactoryTarget.Injectable });
12255
13573
  SocialPostsV2Service.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SocialPostsV2Service, providedIn: 'root' });
@@ -12485,5 +13803,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
12485
13803
  * Generated bundle index. Do not edit.
12486
13804
  */
12487
13805
 
12488
- export { Access, Action, ActionType, AiInstructionService, AiInstructions, Ancestry, 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, 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, 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, Error, Event, 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, HashTagsService, Hashtag, Image, ImageBackground, ImageBlob, ImageCreated, ImageInputSource, ImageModel, ImageOutputFormat, ImageQuality, ImageResponse, ImageSource, ImageStyle, ImageUrl, InstagramPostStats, KeywordGeneration, KeywordList, Link, LinkV2, MediaType$1 as LinkedInMediaType, 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, 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 };
13806
+ 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, ContentType, 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 };
12489
13807
  //# sourceMappingURL=vendasta-social-posts.mjs.map