1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
pub struct BinaryResponse {
    pub content: bytes::Bytes,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub struct GetHealthResponse {
    pub ok: bool,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub struct GetPingResponse {
    pub ok: bool,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub struct ApiLinkApiVersion {
    pub api_project_id: String,
    pub api_project_title: String,
    pub id: String,
    pub semver: String,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub struct ApiLinkDocVersion {
    pub doc_project_id: String,
    pub doc_project_title: String,
    pub id: String,
    pub version: i64,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub struct ApiLinkGroup {
    pub doc_version_id: String,
    pub id: String,
    pub nav_label: String,
    pub order: i64,
    pub slug: String,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub struct ApiProject {
    pub created_at: String,
    pub id: String,
    pub title: String,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub struct ProjectMember {
    pub avatar_url: String,
    pub email: String,
    pub first_name: String,
    pub id: String,
    pub last_name: String,
    pub role: ProjectRoleEnum,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub struct ApiMockServer {
    pub enabled: bool,
    pub url: String,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub struct Validation {
    pub message: String,
    pub severity: ValidationSeverityEnum,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub struct Stats {
    pub authenticated_methods: f64,
    pub authentication_schemes: Vec<String>,
    pub endpoints: f64,
    pub methods: f64,
    pub public_methods: f64,
    pub response_codes: Vec<f64>,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub struct UserApiKey {
    pub api_key: String,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub struct Error {
    pub description: String,
    pub error: ErrorCodeEnum,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub struct CliUpdate {
    pub message: String,
    pub severity: CliUpdateSeverityEnum,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub struct DocProjectDomains {
    #[serde(skip_serializing_if = "Option::is_none")]
    pub preview: Option<String>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub production: Option<String>,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub struct Asset {
    pub extension: String,
    pub id: String,
    pub name: String,
    pub url: String,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub struct DocProjectActionButton {
    pub enabled: bool,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub label: Option<String>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub url: Option<String>,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub struct DocProjectMetadata {
    #[serde(skip_serializing_if = "Option::is_none")]
    pub description: Option<String>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub title: Option<String>,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub struct DocVersion {
    pub created_at: String,
    pub doc_project_id: String,
    pub id: String,
    pub status: DocVersionStatusEnum,
    pub version: i64,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub struct ThemeValues {
    #[serde(skip_serializing_if = "Option::is_none")]
    pub api_reference_group_variant: Option<String>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub dark_active_button_bg_color: Option<String>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub dark_active_button_text_color: Option<String>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub dark_bg_color: Option<String>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub dark_navbar_color: Option<String>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub dark_navbar_text_color: Option<String>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub light_active_button_bg_color: Option<String>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub light_active_button_text_color: Option<String>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub light_bg_color: Option<String>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub light_navbar_color: Option<String>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub light_navbar_text_color: Option<String>,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub struct GuideWithChildren {
    pub children: Vec<Box<GuideWithChildren>>,
    pub created_at: String,
    pub id: String,
    pub is_parent: bool,
    pub nav_label: String,
    pub order: i64,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub parent_id: Option<String>,
    pub slug: String,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub struct GuideHref {
    pub id: String,
    pub nav_label: String,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub struct GuideContent {
    pub content: String,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub struct OrganizationFeatures {
    pub max_api_projects: i64,
    pub max_doc_projects: i64,
    pub max_mock_servers: i64,
    pub max_teamates: i64,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub struct Pagination {
    pub page: i64,
    pub page_count: i64,
    pub page_limit: i64,
    pub total_count: i64,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub struct OrganizationMember {
    pub avatar_url: String,
    pub email: String,
    pub first_name: String,
    pub id: String,
    pub last_name: String,
    pub role: OrganizationRoleEnum,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub struct User {
    pub avatar_url: String,
    pub email: String,
    pub first_name: String,
    pub id: String,
    pub last_name: String,
    pub organization_role: OrganizationRoleEnum,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub struct UserProjectRole {
    pub project_id_or_name: String,
    pub project_type: ProjectTypeEnum,
    pub role: ProjectRoleEnum,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub struct ServiceAccount {
    pub api_key: String,
    pub created_at: String,
    pub id: String,
    pub name: String,
    pub project_roles: Vec<UserProjectRole>,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub struct UpdateApiLink {
    #[serde(skip_serializing_if = "Option::is_none")]
    pub api_version_id: Option<String>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub build_request_enabled: Option<bool>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub include_mock_server: Option<bool>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub nav_label: Option<String>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub policy: Option<ApiLinkPolicyEnum>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub slug: Option<String>,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub struct UpdateApiLinkGroup {
    #[serde(skip_serializing_if = "Option::is_none")]
    pub nav_label: Option<String>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub slug: Option<String>,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub struct UpdateApiProject {
    #[serde(skip_serializing_if = "Option::is_none")]
    pub title: Option<String>,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub struct UpdateApiVersion {
    #[serde(skip_serializing_if = "Option::is_none")]
    pub mock_server_enabled: Option<bool>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub notes: Option<String>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub openapi: Option<String>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub semver: Option<String>,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub struct UpdateDocProjectLogos {
    #[serde(skip_serializing_if = "Option::is_none")]
    pub dark: Option<String>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub favicon: Option<String>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub light: Option<String>,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub struct UpdateDocProjectSettingsActionButton {
    #[serde(skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub label: Option<String>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub url: Option<String>,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub struct UpdateDocProjectSettingsMetadata {
    #[serde(skip_serializing_if = "Option::is_none")]
    pub description: Option<String>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub title: Option<String>,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub struct UpdateGuide {
    #[serde(skip_serializing_if = "Option::is_none")]
    pub content: Option<String>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub nav_label: Option<String>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub next_id: Option<String>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub prev_id: Option<String>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub slug: Option<String>,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub struct UpdateAsset {
    #[serde(skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub struct LatestApiLinkPolicy {
    pub api_project_id: String,
    #[serde(rename = "type")]
    pub type_field: LatestApiLinkPolicyTypeEnum,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub struct PinnedApiLinkPolicy {
    pub api_version_id: String,
    #[serde(rename = "type")]
    pub type_field: PinnedApiLinkPolicyTypeEnum,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub struct ApiLinkGroupReorder {
    pub id: String,
    pub order: i64,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub struct ApiLinkReorder {
    pub group_id: String,
    pub id: String,
    pub order: i64,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub struct NewApiLinkGroup {
    pub doc_version_id: String,
    pub nav_label: String,
    pub slug: String,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub struct NewApiProject {
    pub title: String,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub struct NewProjectRole {
    pub role: ProjectRoleEnum,
    pub user_id: String,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub struct NewApiVersion {
    #[serde(skip_serializing_if = "Option::is_none")]
    pub mock_server_enabled: Option<bool>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub notes: Option<String>,
    pub openapi: String,
    pub semver: String,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub struct NewDocProject {
    pub title: String,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub struct NewDeployment {
    pub doc_version_id: String,
    pub target: DeploymentTargetEnum,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub struct NewGuide {
    pub content: String,
    pub is_parent: bool,
    pub nav_label: String,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub next_id: Option<String>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub parent_id: Option<String>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub prev_id: Option<String>,
    pub slug: String,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub struct ReorderGuide {
    pub id: String,
    pub order: i64,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub parent_id: Option<String>,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub struct NewOrganization {
    pub name: String,
    pub subdomain: String,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub struct AssetUpload {
    pub file: String,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub struct SdkProject {
    pub api_project_version_id: String,
    pub language: GenerationLanguageEnum,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub repo_name: Option<String>,
    pub semver: String,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub struct UpdateSdkProject {
    pub api_project_version_id: String,
    pub language: GenerationLanguageEnum,
    pub semver: String,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub struct NewSdkResponse {
    pub patch: String,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub struct StatelessGenerateSdk {
    #[serde(skip_serializing_if = "Option::is_none")]
    pub base_url: Option<String>,
    pub language: GenerationLanguageEnum,
    pub openapi: String,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub package_name: Option<String>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub tests_mock_server_url: Option<String>,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub struct Invite {
    pub email: String,
    pub role: OrganizationRoleEnum,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub struct CreateServiceAccount {
    pub name: String,
    pub project_roles: Vec<UserProjectRole>,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub struct ApiLink {
    pub api_version: ApiLinkApiVersion,
    pub build_request_enabled: bool,
    pub created_at: String,
    pub doc_version: ApiLinkDocVersion,
    pub group_id: String,
    pub id: String,
    pub include_mock_server: bool,
    pub nav_label: String,
    pub order: i64,
    pub policy: ApiLinkPolicyEnum,
    pub slug: String,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub struct ApiVersion {
    pub api_project_id: String,
    pub created_at: String,
    pub id: String,
    pub mock_server: ApiMockServer,
    pub notes: String,
    pub semver: String,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub struct OpenApi {
    pub is_config_valid: bool,
    pub is_valid: bool,
    pub openapi: String,
    pub validations: Vec<Validation>,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub struct DocProjectLogos {
    #[serde(skip_serializing_if = "Option::is_none")]
    pub dark: Option<Asset>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub favicon: Option<Asset>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub light: Option<Asset>,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub struct DocProjectSettings {
    pub action_button: DocProjectActionButton,
    pub metadata: DocProjectMetadata,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub struct Deployment {
    pub created_at: String,
    pub current_preview: bool,
    pub current_prod: bool,
    pub doc_version: DocVersion,
    pub id: String,
    pub metadata: serde_json::Value,
    pub status: DeploymentStatusEnum,
    pub target: DeploymentTargetEnum,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub struct Theme {
    pub owner: ThemeOwnerEnum,
    pub values: ThemeValues,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub struct Guide {
    pub created_at: String,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub default_next_href: Option<GuideHref>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub default_prev_href: Option<GuideHref>,
    pub id: String,
    pub is_parent: bool,
    pub nav_label: String,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub next_href: Option<GuideHref>,
    pub order: i64,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub parent_id: Option<String>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub prev_href: Option<GuideHref>,
    pub slug: String,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub struct Organization {
    pub features: OrganizationFeatures,
    pub id: String,
    pub name: String,
    pub subdomain: String,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub struct ListAssetsPage {
    pub pagination: Pagination,
    pub results: Vec<Asset>,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub struct UpdateDocProjectSettings {
    #[serde(skip_serializing_if = "Option::is_none")]
    pub action_button: Option<UpdateDocProjectSettingsActionButton>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub metadata: Option<UpdateDocProjectSettingsMetadata>,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub struct NewApiLink {
    #[serde(skip_serializing_if = "Option::is_none")]
    pub api_version_id: Option<String>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub build_request_enabled: Option<bool>,
    pub doc_version_id: String,
    pub group_id: String,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub include_mock_server: Option<bool>,
    pub nav_label: String,
    pub policy: Union,
    pub slug: String,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub struct ApiReorder {
    pub doc_version_id: String,
    pub groups: Vec<ApiLinkGroupReorder>,
    pub links: Vec<ApiLinkReorder>,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub struct OrganizationWithRedirect {
    pub organization: Organization,
    pub redirect_to: String,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub struct DocProject {
    pub created_at: String,
    pub current_version_id: String,
    pub domains: DocProjectDomains,
    pub id: String,
    pub logos: DocProjectLogos,
    pub settings: DocProjectSettings,
    pub title: String,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub struct UpdateDocProject {
    #[serde(skip_serializing_if = "Option::is_none")]
    pub logos: Option<UpdateDocProjectLogos>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub settings: Option<UpdateDocProjectSettings>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub title: Option<String>,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone)]
#[serde(untagged)]
pub enum Union {
    LatestApiLinkPolicy(LatestApiLinkPolicy),
    PinnedApiLinkPolicy(PinnedApiLinkPolicy),
}
impl Default for Union {
    fn default() -> Self {
        Union::PinnedApiLinkPolicy(Default::default())
    }
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub enum GuideHrefVariantEnum {
    #[default]
    #[serde(rename = "next")]
    Next,
    #[serde(rename = "prev")]
    Prev,
}
impl std::fmt::Display for GuideHrefVariantEnum {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        let str_val = match self {
            GuideHrefVariantEnum::Next => "next",
            GuideHrefVariantEnum::Prev => "prev",
        };
        write!(f, "{}", str_val)
    }
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub enum ApiLinkPolicyEnum {
    #[default]
    #[serde(rename = "latest")]
    Latest,
    #[serde(rename = "pinned")]
    Pinned,
}
impl std::fmt::Display for ApiLinkPolicyEnum {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        let str_val = match self {
            ApiLinkPolicyEnum::Latest => "latest",
            ApiLinkPolicyEnum::Pinned => "pinned",
        };
        write!(f, "{}", str_val)
    }
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub enum ProjectRoleEnum {
    #[default]
    #[serde(rename = "admin")]
    Admin,
    #[serde(rename = "contributor")]
    Contributor,
    #[serde(rename = "viewer")]
    Viewer,
}
impl std::fmt::Display for ProjectRoleEnum {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        let str_val = match self {
            ProjectRoleEnum::Admin => "admin",
            ProjectRoleEnum::Contributor => "contributor",
            ProjectRoleEnum::Viewer => "viewer",
        };
        write!(f, "{}", str_val)
    }
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub enum ValidationSeverityEnum {
    #[default]
    #[serde(rename = "error")]
    Error,
    #[serde(rename = "info")]
    Info,
    #[serde(rename = "warning")]
    Warning,
}
impl std::fmt::Display for ValidationSeverityEnum {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        let str_val = match self {
            ValidationSeverityEnum::Error => "error",
            ValidationSeverityEnum::Info => "info",
            ValidationSeverityEnum::Warning => "warning",
        };
        write!(f, "{}", str_val)
    }
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub enum ErrorCodeEnum {
    #[default]
    #[serde(rename = "Bad Request")]
    BadRequest,
    #[serde(rename = "forbidden")]
    Forbidden,
    #[serde(rename = "internal_server_error")]
    InternalServerError,
    #[serde(rename = "invalid_openapi")]
    InvalidOpenapi,
    #[serde(rename = "invalid_url")]
    InvalidUrl,
    #[serde(rename = "not_found")]
    NotFound,
    #[serde(rename = "unauthorized")]
    Unauthorized,
    #[serde(rename = "unavailable_subdomain")]
    UnavailableSubdomain,
}
impl std::fmt::Display for ErrorCodeEnum {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        let str_val = match self {
            ErrorCodeEnum::BadRequest => "Bad Request",
            ErrorCodeEnum::Forbidden => "forbidden",
            ErrorCodeEnum::InternalServerError => "internal_server_error",
            ErrorCodeEnum::InvalidOpenapi => "invalid_openapi",
            ErrorCodeEnum::InvalidUrl => "invalid_url",
            ErrorCodeEnum::NotFound => "not_found",
            ErrorCodeEnum::Unauthorized => "unauthorized",
            ErrorCodeEnum::UnavailableSubdomain => "unavailable_subdomain",
        };
        write!(f, "{}", str_val)
    }
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub enum CliUpdateSeverityEnum {
    #[default]
    #[serde(rename = "info")]
    Info,
    #[serde(rename = "required")]
    Required,
    #[serde(rename = "suggested")]
    Suggested,
}
impl std::fmt::Display for CliUpdateSeverityEnum {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        let str_val = match self {
            CliUpdateSeverityEnum::Info => "info",
            CliUpdateSeverityEnum::Required => "required",
            CliUpdateSeverityEnum::Suggested => "suggested",
        };
        write!(f, "{}", str_val)
    }
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub enum DeploymentTargetEnum {
    #[default]
    #[serde(rename = "Preview")]
    Preview,
    #[serde(rename = "Production")]
    Production,
}
impl std::fmt::Display for DeploymentTargetEnum {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        let str_val = match self {
            DeploymentTargetEnum::Preview => "Preview",
            DeploymentTargetEnum::Production => "Production",
        };
        write!(f, "{}", str_val)
    }
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub enum DocVersionStatusEnum {
    #[default]
    #[serde(rename = "Draft")]
    Draft,
    #[serde(rename = "Published")]
    Published,
    #[serde(rename = "Publishing")]
    Publishing,
}
impl std::fmt::Display for DocVersionStatusEnum {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        let str_val = match self {
            DocVersionStatusEnum::Draft => "Draft",
            DocVersionStatusEnum::Published => "Published",
            DocVersionStatusEnum::Publishing => "Publishing",
        };
        write!(f, "{}", str_val)
    }
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub enum DeploymentStatusEnum {
    #[default]
    #[serde(rename = "Building")]
    Building,
    #[serde(rename = "Cancelled")]
    Cancelled,
    #[serde(rename = "Complete")]
    Complete,
    #[serde(rename = "Created")]
    Created,
    #[serde(rename = "Error")]
    Error,
    #[serde(rename = "Generated")]
    Generated,
}
impl std::fmt::Display for DeploymentStatusEnum {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        let str_val = match self {
            DeploymentStatusEnum::Building => "Building",
            DeploymentStatusEnum::Cancelled => "Cancelled",
            DeploymentStatusEnum::Complete => "Complete",
            DeploymentStatusEnum::Created => "Created",
            DeploymentStatusEnum::Error => "Error",
            DeploymentStatusEnum::Generated => "Generated",
        };
        write!(f, "{}", str_val)
    }
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub enum ThemeOwnerEnum {
    #[default]
    #[serde(rename = "default")]
    Default,
    #[serde(rename = "organization")]
    Organization,
    #[serde(rename = "self")]
    _Self,
}
impl std::fmt::Display for ThemeOwnerEnum {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        let str_val = match self {
            ThemeOwnerEnum::Default => "default",
            ThemeOwnerEnum::Organization => "organization",
            ThemeOwnerEnum::_Self => "self",
        };
        write!(f, "{}", str_val)
    }
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub enum OrganizationRoleEnum {
    #[default]
    #[serde(rename = "admin")]
    Admin,
    #[serde(rename = "manager")]
    Manager,
    #[serde(rename = "member")]
    Member,
}
impl std::fmt::Display for OrganizationRoleEnum {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        let str_val = match self {
            OrganizationRoleEnum::Admin => "admin",
            OrganizationRoleEnum::Manager => "manager",
            OrganizationRoleEnum::Member => "member",
        };
        write!(f, "{}", str_val)
    }
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub enum ProjectTypeEnum {
    #[default]
    #[serde(rename = "api")]
    Api,
    #[serde(rename = "documentation")]
    Documentation,
}
impl std::fmt::Display for ProjectTypeEnum {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        let str_val = match self {
            ProjectTypeEnum::Api => "api",
            ProjectTypeEnum::Documentation => "documentation",
        };
        write!(f, "{}", str_val)
    }
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub enum LatestApiLinkPolicyTypeEnum {
    #[default]
    #[serde(rename = "latest")]
    Latest,
}
impl std::fmt::Display for LatestApiLinkPolicyTypeEnum {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        let str_val = match self {
            LatestApiLinkPolicyTypeEnum::Latest => "latest",
        };
        write!(f, "{}", str_val)
    }
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub enum PinnedApiLinkPolicyTypeEnum {
    #[default]
    #[serde(rename = "pinned")]
    Pinned,
}
impl std::fmt::Display for PinnedApiLinkPolicyTypeEnum {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        let str_val = match self {
            PinnedApiLinkPolicyTypeEnum::Pinned => "pinned",
        };
        write!(f, "{}", str_val)
    }
}
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub enum GenerationLanguageEnum {
    #[default]
    #[serde(rename = "go")]
    Go,
    #[serde(rename = "python")]
    Python,
    #[serde(rename = "ruby")]
    Ruby,
    #[serde(rename = "rust")]
    Rust,
    #[serde(rename = "typescript")]
    Typescript,
}
impl std::fmt::Display for GenerationLanguageEnum {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        let str_val = match self {
            GenerationLanguageEnum::Go => "go",
            GenerationLanguageEnum::Python => "python",
            GenerationLanguageEnum::Ruby => "ruby",
            GenerationLanguageEnum::Rust => "rust",
            GenerationLanguageEnum::Typescript => "typescript",
        };
        write!(f, "{}", str_val)
    }
}