@envsync-cloud/envsync-management-ts-sdk 0.9.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +732 -4
- package/dist/index.d.ts +732 -4
- package/dist/index.js +988 -86
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +972 -86
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -24,18 +24,34 @@ __export(src_exports, {
|
|
|
24
24
|
BaseHttpRequest: () => BaseHttpRequest,
|
|
25
25
|
CancelError: () => CancelError,
|
|
26
26
|
CancelablePromise: () => CancelablePromise,
|
|
27
|
+
CreateDynamicSecretEngineRequest: () => CreateDynamicSecretEngineRequest,
|
|
27
28
|
CreateIntegrationBindingRequest: () => CreateIntegrationBindingRequest,
|
|
29
|
+
CreateLogForwardingRequest: () => CreateLogForwardingRequest,
|
|
28
30
|
CreateManualSyncRunRequest: () => CreateManualSyncRunRequest,
|
|
31
|
+
CreateOidcProviderRequest: () => CreateOidcProviderRequest,
|
|
29
32
|
CreateProviderConnectionRequest: () => CreateProviderConnectionRequest,
|
|
33
|
+
CreateRotationPolicyRequest: () => CreateRotationPolicyRequest,
|
|
34
|
+
CreateSamlProviderRequest: () => CreateSamlProviderRequest,
|
|
35
|
+
DynamicSecretEngineResponse: () => DynamicSecretEngineResponse,
|
|
36
|
+
DynamicSecretsService: () => DynamicSecretsService,
|
|
30
37
|
EnterpriseProviderProfile: () => EnterpriseProviderProfile,
|
|
31
38
|
EnterpriseService: () => EnterpriseService,
|
|
32
39
|
EnvSyncManagementAPISDK: () => EnvSyncManagementAPISDK,
|
|
33
40
|
IntegrationBinding: () => IntegrationBinding,
|
|
34
41
|
LicenseService: () => LicenseService,
|
|
35
42
|
LicenseState: () => LicenseState,
|
|
43
|
+
LogForwardingResponse: () => LogForwardingResponse,
|
|
44
|
+
LogForwardingService: () => LogForwardingService,
|
|
45
|
+
OidcProviderResponse: () => OidcProviderResponse,
|
|
46
|
+
OidcProvidersService: () => OidcProvidersService,
|
|
36
47
|
OnboardingService: () => OnboardingService,
|
|
37
48
|
OpenAPI: () => OpenAPI,
|
|
38
49
|
ProviderConnection: () => ProviderConnection,
|
|
50
|
+
RotationPolicyResponse: () => RotationPolicyResponse,
|
|
51
|
+
RotationService: () => RotationService,
|
|
52
|
+
SamlProviderResponse: () => SamlProviderResponse,
|
|
53
|
+
SamlProvidersService: () => SamlProvidersService,
|
|
54
|
+
SamlSsoService: () => SamlSsoService,
|
|
39
55
|
SyncAuditEvent: () => SyncAuditEvent,
|
|
40
56
|
SyncRun: () => SyncRun,
|
|
41
57
|
SystemService: () => SystemService,
|
|
@@ -418,6 +434,212 @@ var FetchHttpRequest = class extends BaseHttpRequest {
|
|
|
418
434
|
}
|
|
419
435
|
};
|
|
420
436
|
|
|
437
|
+
// src/services/DynamicSecretsService.ts
|
|
438
|
+
var DynamicSecretsService = class {
|
|
439
|
+
constructor(httpRequest) {
|
|
440
|
+
this.httpRequest = httpRequest;
|
|
441
|
+
}
|
|
442
|
+
/**
|
|
443
|
+
* Create Dynamic Secret Engine
|
|
444
|
+
* Create a new dynamic secret engine for short-lived credential generation
|
|
445
|
+
* @param requestBody
|
|
446
|
+
* @returns DynamicSecretEngineResponse Engine created successfully
|
|
447
|
+
* @throws ApiError
|
|
448
|
+
*/
|
|
449
|
+
createDynamicSecretEngine(requestBody) {
|
|
450
|
+
return this.httpRequest.request({
|
|
451
|
+
method: "POST",
|
|
452
|
+
url: "/api/dynamic_secret/engines",
|
|
453
|
+
body: requestBody,
|
|
454
|
+
mediaType: "application/json",
|
|
455
|
+
errors: {
|
|
456
|
+
400: `Validation error`,
|
|
457
|
+
409: `Engine name conflict`,
|
|
458
|
+
500: `Internal server error`
|
|
459
|
+
}
|
|
460
|
+
});
|
|
461
|
+
}
|
|
462
|
+
/**
|
|
463
|
+
* Get All Dynamic Secret Engines
|
|
464
|
+
* Retrieve all dynamic secret engines for the organization
|
|
465
|
+
* @returns DynamicSecretEnginesResponse Engines retrieved successfully
|
|
466
|
+
* @throws ApiError
|
|
467
|
+
*/
|
|
468
|
+
getAllDynamicSecretEngines() {
|
|
469
|
+
return this.httpRequest.request({
|
|
470
|
+
method: "GET",
|
|
471
|
+
url: "/api/dynamic_secret/engines",
|
|
472
|
+
errors: {
|
|
473
|
+
500: `Internal server error`
|
|
474
|
+
}
|
|
475
|
+
});
|
|
476
|
+
}
|
|
477
|
+
/**
|
|
478
|
+
* Get Dynamic Secret Engine
|
|
479
|
+
* Retrieve a specific dynamic secret engine by ID
|
|
480
|
+
* @param id
|
|
481
|
+
* @returns DynamicSecretEngineResponse Engine retrieved successfully
|
|
482
|
+
* @throws ApiError
|
|
483
|
+
*/
|
|
484
|
+
getDynamicSecretEngine(id) {
|
|
485
|
+
return this.httpRequest.request({
|
|
486
|
+
method: "GET",
|
|
487
|
+
url: "/api/dynamic_secret/engines/{id}",
|
|
488
|
+
path: {
|
|
489
|
+
"id": id
|
|
490
|
+
},
|
|
491
|
+
errors: {
|
|
492
|
+
404: `Engine not found`,
|
|
493
|
+
500: `Internal server error`
|
|
494
|
+
}
|
|
495
|
+
});
|
|
496
|
+
}
|
|
497
|
+
/**
|
|
498
|
+
* Update Dynamic Secret Engine
|
|
499
|
+
* Update an existing dynamic secret engine
|
|
500
|
+
* @param id
|
|
501
|
+
* @param requestBody
|
|
502
|
+
* @returns DynamicSecretEngineResponse Engine updated successfully
|
|
503
|
+
* @throws ApiError
|
|
504
|
+
*/
|
|
505
|
+
updateDynamicSecretEngine(id, requestBody) {
|
|
506
|
+
return this.httpRequest.request({
|
|
507
|
+
method: "PATCH",
|
|
508
|
+
url: "/api/dynamic_secret/engines/{id}",
|
|
509
|
+
path: {
|
|
510
|
+
"id": id
|
|
511
|
+
},
|
|
512
|
+
body: requestBody,
|
|
513
|
+
mediaType: "application/json",
|
|
514
|
+
errors: {
|
|
515
|
+
404: `Engine not found`,
|
|
516
|
+
500: `Internal server error`
|
|
517
|
+
}
|
|
518
|
+
});
|
|
519
|
+
}
|
|
520
|
+
/**
|
|
521
|
+
* Delete Dynamic Secret Engine
|
|
522
|
+
* Delete a dynamic secret engine (must have no active leases)
|
|
523
|
+
* @param id
|
|
524
|
+
* @returns ErrorResponse Engine deleted successfully
|
|
525
|
+
* @throws ApiError
|
|
526
|
+
*/
|
|
527
|
+
deleteDynamicSecretEngine(id) {
|
|
528
|
+
return this.httpRequest.request({
|
|
529
|
+
method: "DELETE",
|
|
530
|
+
url: "/api/dynamic_secret/engines/{id}",
|
|
531
|
+
path: {
|
|
532
|
+
"id": id
|
|
533
|
+
},
|
|
534
|
+
errors: {
|
|
535
|
+
404: `Engine not found`,
|
|
536
|
+
409: `Engine has active leases`,
|
|
537
|
+
500: `Internal server error`
|
|
538
|
+
}
|
|
539
|
+
});
|
|
540
|
+
}
|
|
541
|
+
/**
|
|
542
|
+
* Create Dynamic Secret Lease
|
|
543
|
+
* Generate short-lived credentials by creating a lease on an engine
|
|
544
|
+
* @param id
|
|
545
|
+
* @param requestBody
|
|
546
|
+
* @returns DynamicSecretLeaseResponse Lease created successfully
|
|
547
|
+
* @throws ApiError
|
|
548
|
+
*/
|
|
549
|
+
createDynamicSecretLease(id, requestBody) {
|
|
550
|
+
return this.httpRequest.request({
|
|
551
|
+
method: "POST",
|
|
552
|
+
url: "/api/dynamic_secret/engines/{id}/leases",
|
|
553
|
+
path: {
|
|
554
|
+
"id": id
|
|
555
|
+
},
|
|
556
|
+
body: requestBody,
|
|
557
|
+
mediaType: "application/json",
|
|
558
|
+
errors: {
|
|
559
|
+
400: `Validation error`,
|
|
560
|
+
404: `Engine not found`,
|
|
561
|
+
500: `Internal server error`
|
|
562
|
+
}
|
|
563
|
+
});
|
|
564
|
+
}
|
|
565
|
+
/**
|
|
566
|
+
* Get Leases for Engine
|
|
567
|
+
* Retrieve all leases for a specific dynamic secret engine
|
|
568
|
+
* @param id
|
|
569
|
+
* @returns DynamicSecretLeasesResponse Leases retrieved successfully
|
|
570
|
+
* @throws ApiError
|
|
571
|
+
*/
|
|
572
|
+
getDynamicSecretLeases(id) {
|
|
573
|
+
return this.httpRequest.request({
|
|
574
|
+
method: "GET",
|
|
575
|
+
url: "/api/dynamic_secret/engines/{id}/leases",
|
|
576
|
+
path: {
|
|
577
|
+
"id": id
|
|
578
|
+
},
|
|
579
|
+
errors: {
|
|
580
|
+
404: `Engine not found`,
|
|
581
|
+
500: `Internal server error`
|
|
582
|
+
}
|
|
583
|
+
});
|
|
584
|
+
}
|
|
585
|
+
/**
|
|
586
|
+
* Get Dynamic Secret Lease
|
|
587
|
+
* Retrieve a specific lease by ID
|
|
588
|
+
* @param leaseId
|
|
589
|
+
* @returns DynamicSecretLeaseResponse Lease retrieved successfully
|
|
590
|
+
* @throws ApiError
|
|
591
|
+
*/
|
|
592
|
+
getDynamicSecretLease(leaseId) {
|
|
593
|
+
return this.httpRequest.request({
|
|
594
|
+
method: "GET",
|
|
595
|
+
url: "/api/dynamic_secret/leases/{leaseId}",
|
|
596
|
+
path: {
|
|
597
|
+
"leaseId": leaseId
|
|
598
|
+
},
|
|
599
|
+
errors: {
|
|
600
|
+
404: `Lease not found`,
|
|
601
|
+
500: `Internal server error`
|
|
602
|
+
}
|
|
603
|
+
});
|
|
604
|
+
}
|
|
605
|
+
/**
|
|
606
|
+
* Revoke Dynamic Secret Lease
|
|
607
|
+
* Revoke a lease and its associated credentials
|
|
608
|
+
* @param leaseId
|
|
609
|
+
* @returns RevokeLeaseResponse Lease revoked successfully
|
|
610
|
+
* @throws ApiError
|
|
611
|
+
*/
|
|
612
|
+
revokeDynamicSecretLease(leaseId) {
|
|
613
|
+
return this.httpRequest.request({
|
|
614
|
+
method: "POST",
|
|
615
|
+
url: "/api/dynamic_secret/leases/{leaseId}/revoke",
|
|
616
|
+
path: {
|
|
617
|
+
"leaseId": leaseId
|
|
618
|
+
},
|
|
619
|
+
errors: {
|
|
620
|
+
404: `Lease not found`,
|
|
621
|
+
409: `Lease already revoked`,
|
|
622
|
+
500: `Internal server error`
|
|
623
|
+
}
|
|
624
|
+
});
|
|
625
|
+
}
|
|
626
|
+
/**
|
|
627
|
+
* Cleanup Expired Leases
|
|
628
|
+
* Mark all expired leases as revoked (admin operation)
|
|
629
|
+
* @returns CleanupResponse Cleanup completed
|
|
630
|
+
* @throws ApiError
|
|
631
|
+
*/
|
|
632
|
+
cleanupExpiredLeases() {
|
|
633
|
+
return this.httpRequest.request({
|
|
634
|
+
method: "POST",
|
|
635
|
+
url: "/api/dynamic_secret/leases/cleanup",
|
|
636
|
+
errors: {
|
|
637
|
+
500: `Internal server error`
|
|
638
|
+
}
|
|
639
|
+
});
|
|
640
|
+
}
|
|
641
|
+
};
|
|
642
|
+
|
|
421
643
|
// src/services/EnterpriseService.ts
|
|
422
644
|
var EnterpriseService = class {
|
|
423
645
|
constructor(httpRequest) {
|
|
@@ -779,22 +1001,22 @@ var LicenseService = class {
|
|
|
779
1001
|
}
|
|
780
1002
|
};
|
|
781
1003
|
|
|
782
|
-
// src/services/
|
|
783
|
-
var
|
|
1004
|
+
// src/services/LogForwardingService.ts
|
|
1005
|
+
var LogForwardingService = class {
|
|
784
1006
|
constructor(httpRequest) {
|
|
785
1007
|
this.httpRequest = httpRequest;
|
|
786
1008
|
}
|
|
787
1009
|
/**
|
|
788
|
-
* Create
|
|
789
|
-
* Create
|
|
1010
|
+
* Create Log Forwarding Config
|
|
1011
|
+
* Create a new log forwarding configuration for the organization
|
|
790
1012
|
* @param requestBody
|
|
791
|
-
* @returns
|
|
1013
|
+
* @returns LogForwardingResponse Log forwarding config created successfully
|
|
792
1014
|
* @throws ApiError
|
|
793
1015
|
*/
|
|
794
|
-
|
|
1016
|
+
createLogForwardingConfig(requestBody) {
|
|
795
1017
|
return this.httpRequest.request({
|
|
796
1018
|
method: "POST",
|
|
797
|
-
url: "/api/
|
|
1019
|
+
url: "/api/log_forwarding",
|
|
798
1020
|
body: requestBody,
|
|
799
1021
|
mediaType: "application/json",
|
|
800
1022
|
errors: {
|
|
@@ -803,80 +1025,77 @@ var OnboardingService = class {
|
|
|
803
1025
|
});
|
|
804
1026
|
}
|
|
805
1027
|
/**
|
|
806
|
-
* Get
|
|
807
|
-
*
|
|
808
|
-
* @
|
|
809
|
-
* @returns GetOrgInviteByCodeResponse Organization invite retrieved successfully
|
|
1028
|
+
* Get All Log Forwarding Configs
|
|
1029
|
+
* Retrieve all log forwarding configurations for the organization
|
|
1030
|
+
* @returns LogForwardingsResponse Log forwarding configs retrieved successfully
|
|
810
1031
|
* @throws ApiError
|
|
811
1032
|
*/
|
|
812
|
-
|
|
1033
|
+
getLogForwardingConfigs() {
|
|
813
1034
|
return this.httpRequest.request({
|
|
814
1035
|
method: "GET",
|
|
815
|
-
url: "/api/
|
|
816
|
-
path: {
|
|
817
|
-
"invite_code": inviteCode
|
|
818
|
-
},
|
|
1036
|
+
url: "/api/log_forwarding",
|
|
819
1037
|
errors: {
|
|
820
1038
|
500: `Internal server error`
|
|
821
1039
|
}
|
|
822
1040
|
});
|
|
823
1041
|
}
|
|
824
1042
|
/**
|
|
825
|
-
*
|
|
826
|
-
*
|
|
827
|
-
* @param
|
|
828
|
-
* @
|
|
829
|
-
* @returns AcceptOrgInviteResponse Organization invite accepted successfully
|
|
1043
|
+
* Get Log Forwarding Config
|
|
1044
|
+
* Retrieve a specific log forwarding configuration
|
|
1045
|
+
* @param id
|
|
1046
|
+
* @returns LogForwardingResponse Log forwarding config retrieved successfully
|
|
830
1047
|
* @throws ApiError
|
|
831
1048
|
*/
|
|
832
|
-
|
|
1049
|
+
getLogForwardingConfig(id) {
|
|
833
1050
|
return this.httpRequest.request({
|
|
834
|
-
method: "
|
|
835
|
-
url: "/api/
|
|
1051
|
+
method: "GET",
|
|
1052
|
+
url: "/api/log_forwarding/{id}",
|
|
836
1053
|
path: {
|
|
837
|
-
"
|
|
1054
|
+
"id": id
|
|
838
1055
|
},
|
|
839
|
-
body: requestBody,
|
|
840
|
-
mediaType: "application/json",
|
|
841
1056
|
errors: {
|
|
1057
|
+
404: `Config not found`,
|
|
842
1058
|
500: `Internal server error`
|
|
843
1059
|
}
|
|
844
1060
|
});
|
|
845
1061
|
}
|
|
846
1062
|
/**
|
|
847
|
-
*
|
|
848
|
-
*
|
|
849
|
-
* @param
|
|
850
|
-
* @returns
|
|
1063
|
+
* Delete Log Forwarding Config
|
|
1064
|
+
* Delete a log forwarding configuration
|
|
1065
|
+
* @param id
|
|
1066
|
+
* @returns ErrorResponse Log forwarding config deleted successfully
|
|
851
1067
|
* @throws ApiError
|
|
852
1068
|
*/
|
|
853
|
-
|
|
1069
|
+
deleteLogForwardingConfig(id) {
|
|
854
1070
|
return this.httpRequest.request({
|
|
855
|
-
method: "
|
|
856
|
-
url: "/api/
|
|
1071
|
+
method: "DELETE",
|
|
1072
|
+
url: "/api/log_forwarding/{id}",
|
|
857
1073
|
path: {
|
|
858
|
-
"
|
|
1074
|
+
"id": id
|
|
859
1075
|
},
|
|
860
1076
|
errors: {
|
|
861
1077
|
500: `Internal server error`
|
|
862
1078
|
}
|
|
863
1079
|
});
|
|
864
1080
|
}
|
|
1081
|
+
};
|
|
1082
|
+
|
|
1083
|
+
// src/services/OidcProvidersService.ts
|
|
1084
|
+
var OidcProvidersService = class {
|
|
1085
|
+
constructor(httpRequest) {
|
|
1086
|
+
this.httpRequest = httpRequest;
|
|
1087
|
+
}
|
|
865
1088
|
/**
|
|
866
|
-
*
|
|
867
|
-
*
|
|
868
|
-
* @param inviteCode
|
|
1089
|
+
* Register OIDC Provider
|
|
1090
|
+
* Register a new OIDC provider for CI/CD machine authentication
|
|
869
1091
|
* @param requestBody
|
|
870
|
-
* @returns
|
|
1092
|
+
* @returns OidcProviderResponse OIDC provider created successfully
|
|
871
1093
|
* @throws ApiError
|
|
872
1094
|
*/
|
|
873
|
-
|
|
1095
|
+
createOidcProvider(requestBody) {
|
|
874
1096
|
return this.httpRequest.request({
|
|
875
|
-
method: "
|
|
876
|
-
url: "/api/
|
|
877
|
-
path: {
|
|
878
|
-
"invite_code": inviteCode
|
|
879
|
-
},
|
|
1097
|
+
method: "POST",
|
|
1098
|
+
url: "/api/oidc",
|
|
880
1099
|
body: requestBody,
|
|
881
1100
|
mediaType: "application/json",
|
|
882
1101
|
errors: {
|
|
@@ -885,73 +1104,74 @@ var OnboardingService = class {
|
|
|
885
1104
|
});
|
|
886
1105
|
}
|
|
887
1106
|
/**
|
|
888
|
-
*
|
|
889
|
-
*
|
|
890
|
-
* @
|
|
891
|
-
* @param requestBody
|
|
892
|
-
* @returns AcceptUserInviteResponse User invite accepted successfully
|
|
1107
|
+
* Get All OIDC Providers
|
|
1108
|
+
* Retrieve all OIDC providers for the organization
|
|
1109
|
+
* @returns OidcProvidersResponse OIDC providers retrieved successfully
|
|
893
1110
|
* @throws ApiError
|
|
894
1111
|
*/
|
|
895
|
-
|
|
1112
|
+
getAllOidcProviders() {
|
|
896
1113
|
return this.httpRequest.request({
|
|
897
|
-
method: "
|
|
898
|
-
url: "/api/
|
|
899
|
-
path: {
|
|
900
|
-
"invite_code": inviteCode
|
|
901
|
-
},
|
|
902
|
-
body: requestBody,
|
|
903
|
-
mediaType: "application/json",
|
|
1114
|
+
method: "GET",
|
|
1115
|
+
url: "/api/oidc",
|
|
904
1116
|
errors: {
|
|
905
1117
|
500: `Internal server error`
|
|
906
1118
|
}
|
|
907
1119
|
});
|
|
908
1120
|
}
|
|
909
1121
|
/**
|
|
910
|
-
*
|
|
911
|
-
*
|
|
912
|
-
* @param
|
|
913
|
-
* @returns
|
|
1122
|
+
* Get OIDC Provider
|
|
1123
|
+
* Retrieve a specific OIDC provider
|
|
1124
|
+
* @param id
|
|
1125
|
+
* @returns OidcProviderResponse OIDC provider retrieved successfully
|
|
914
1126
|
* @throws ApiError
|
|
915
1127
|
*/
|
|
916
|
-
|
|
1128
|
+
getOidcProvider(id) {
|
|
917
1129
|
return this.httpRequest.request({
|
|
918
|
-
method: "
|
|
919
|
-
url: "/api/
|
|
920
|
-
|
|
921
|
-
|
|
1130
|
+
method: "GET",
|
|
1131
|
+
url: "/api/oidc/{id}",
|
|
1132
|
+
path: {
|
|
1133
|
+
"id": id
|
|
1134
|
+
},
|
|
922
1135
|
errors: {
|
|
923
1136
|
500: `Internal server error`
|
|
924
1137
|
}
|
|
925
1138
|
});
|
|
926
1139
|
}
|
|
927
1140
|
/**
|
|
928
|
-
*
|
|
929
|
-
*
|
|
930
|
-
* @
|
|
1141
|
+
* Update OIDC Provider
|
|
1142
|
+
* Update an existing OIDC provider
|
|
1143
|
+
* @param id
|
|
1144
|
+
* @param requestBody
|
|
1145
|
+
* @returns ErrorResponse OIDC provider updated successfully
|
|
931
1146
|
* @throws ApiError
|
|
932
1147
|
*/
|
|
933
|
-
|
|
1148
|
+
updateOidcProvider(id, requestBody) {
|
|
934
1149
|
return this.httpRequest.request({
|
|
935
|
-
method: "
|
|
936
|
-
url: "/api/
|
|
1150
|
+
method: "PUT",
|
|
1151
|
+
url: "/api/oidc/{id}",
|
|
1152
|
+
path: {
|
|
1153
|
+
"id": id
|
|
1154
|
+
},
|
|
1155
|
+
body: requestBody,
|
|
1156
|
+
mediaType: "application/json",
|
|
937
1157
|
errors: {
|
|
938
1158
|
500: `Internal server error`
|
|
939
1159
|
}
|
|
940
1160
|
});
|
|
941
1161
|
}
|
|
942
1162
|
/**
|
|
943
|
-
* Delete
|
|
944
|
-
* Delete
|
|
945
|
-
* @param
|
|
946
|
-
* @returns
|
|
1163
|
+
* Delete OIDC Provider
|
|
1164
|
+
* Delete an existing OIDC provider
|
|
1165
|
+
* @param id
|
|
1166
|
+
* @returns ErrorResponse OIDC provider deleted successfully
|
|
947
1167
|
* @throws ApiError
|
|
948
1168
|
*/
|
|
949
|
-
|
|
1169
|
+
deleteOidcProvider(id) {
|
|
950
1170
|
return this.httpRequest.request({
|
|
951
1171
|
method: "DELETE",
|
|
952
|
-
url: "/api/
|
|
1172
|
+
url: "/api/oidc/{id}",
|
|
953
1173
|
path: {
|
|
954
|
-
"
|
|
1174
|
+
"id": id
|
|
955
1175
|
},
|
|
956
1176
|
errors: {
|
|
957
1177
|
500: `Internal server error`
|
|
@@ -960,14 +1180,528 @@ var OnboardingService = class {
|
|
|
960
1180
|
}
|
|
961
1181
|
};
|
|
962
1182
|
|
|
963
|
-
// src/services/
|
|
964
|
-
var
|
|
1183
|
+
// src/services/OnboardingService.ts
|
|
1184
|
+
var OnboardingService = class {
|
|
965
1185
|
constructor(httpRequest) {
|
|
966
1186
|
this.httpRequest = httpRequest;
|
|
967
1187
|
}
|
|
968
1188
|
/**
|
|
969
|
-
*
|
|
970
|
-
*
|
|
1189
|
+
* Create Organization Invite
|
|
1190
|
+
* Create an organization invite
|
|
1191
|
+
* @param requestBody
|
|
1192
|
+
* @returns CreateOrgInviteResponse Successful greeting response
|
|
1193
|
+
* @throws ApiError
|
|
1194
|
+
*/
|
|
1195
|
+
createOrgInvite(requestBody) {
|
|
1196
|
+
return this.httpRequest.request({
|
|
1197
|
+
method: "POST",
|
|
1198
|
+
url: "/api/onboarding/org",
|
|
1199
|
+
body: requestBody,
|
|
1200
|
+
mediaType: "application/json",
|
|
1201
|
+
errors: {
|
|
1202
|
+
500: `Internal server error`
|
|
1203
|
+
}
|
|
1204
|
+
});
|
|
1205
|
+
}
|
|
1206
|
+
/**
|
|
1207
|
+
* Get Organization Invite by Code
|
|
1208
|
+
* Get organization invite by code
|
|
1209
|
+
* @param inviteCode
|
|
1210
|
+
* @returns GetOrgInviteByCodeResponse Organization invite retrieved successfully
|
|
1211
|
+
* @throws ApiError
|
|
1212
|
+
*/
|
|
1213
|
+
getOrgInviteByCode(inviteCode) {
|
|
1214
|
+
return this.httpRequest.request({
|
|
1215
|
+
method: "GET",
|
|
1216
|
+
url: "/api/onboarding/org/{invite_code}",
|
|
1217
|
+
path: {
|
|
1218
|
+
"invite_code": inviteCode
|
|
1219
|
+
},
|
|
1220
|
+
errors: {
|
|
1221
|
+
500: `Internal server error`
|
|
1222
|
+
}
|
|
1223
|
+
});
|
|
1224
|
+
}
|
|
1225
|
+
/**
|
|
1226
|
+
* Accept Organization Invite
|
|
1227
|
+
* Accept organization invite
|
|
1228
|
+
* @param inviteCode
|
|
1229
|
+
* @param requestBody
|
|
1230
|
+
* @returns AcceptOrgInviteResponse Organization invite accepted successfully
|
|
1231
|
+
* @throws ApiError
|
|
1232
|
+
*/
|
|
1233
|
+
acceptOrgInvite(inviteCode, requestBody) {
|
|
1234
|
+
return this.httpRequest.request({
|
|
1235
|
+
method: "PUT",
|
|
1236
|
+
url: "/api/onboarding/org/{invite_code}/accept",
|
|
1237
|
+
path: {
|
|
1238
|
+
"invite_code": inviteCode
|
|
1239
|
+
},
|
|
1240
|
+
body: requestBody,
|
|
1241
|
+
mediaType: "application/json",
|
|
1242
|
+
errors: {
|
|
1243
|
+
500: `Internal server error`
|
|
1244
|
+
}
|
|
1245
|
+
});
|
|
1246
|
+
}
|
|
1247
|
+
/**
|
|
1248
|
+
* Get User Invite by Code
|
|
1249
|
+
* Get user invite by code
|
|
1250
|
+
* @param inviteCode
|
|
1251
|
+
* @returns GetUserInviteByTokenResponse User invite retrieved successfully
|
|
1252
|
+
* @throws ApiError
|
|
1253
|
+
*/
|
|
1254
|
+
getUserInviteByCode(inviteCode) {
|
|
1255
|
+
return this.httpRequest.request({
|
|
1256
|
+
method: "GET",
|
|
1257
|
+
url: "/api/onboarding/user/{invite_code}",
|
|
1258
|
+
path: {
|
|
1259
|
+
"invite_code": inviteCode
|
|
1260
|
+
},
|
|
1261
|
+
errors: {
|
|
1262
|
+
500: `Internal server error`
|
|
1263
|
+
}
|
|
1264
|
+
});
|
|
1265
|
+
}
|
|
1266
|
+
/**
|
|
1267
|
+
* Update User Invite
|
|
1268
|
+
* Update user invite
|
|
1269
|
+
* @param inviteCode
|
|
1270
|
+
* @param requestBody
|
|
1271
|
+
* @returns UpdateUserInviteResponse User invite updated successfully
|
|
1272
|
+
* @throws ApiError
|
|
1273
|
+
*/
|
|
1274
|
+
updateUserInvite(inviteCode, requestBody) {
|
|
1275
|
+
return this.httpRequest.request({
|
|
1276
|
+
method: "PATCH",
|
|
1277
|
+
url: "/api/onboarding/user/{invite_code}",
|
|
1278
|
+
path: {
|
|
1279
|
+
"invite_code": inviteCode
|
|
1280
|
+
},
|
|
1281
|
+
body: requestBody,
|
|
1282
|
+
mediaType: "application/json",
|
|
1283
|
+
errors: {
|
|
1284
|
+
500: `Internal server error`
|
|
1285
|
+
}
|
|
1286
|
+
});
|
|
1287
|
+
}
|
|
1288
|
+
/**
|
|
1289
|
+
* Accept User Invite
|
|
1290
|
+
* Accept user invite
|
|
1291
|
+
* @param inviteCode
|
|
1292
|
+
* @param requestBody
|
|
1293
|
+
* @returns AcceptUserInviteResponse User invite accepted successfully
|
|
1294
|
+
* @throws ApiError
|
|
1295
|
+
*/
|
|
1296
|
+
acceptUserInvite(inviteCode, requestBody) {
|
|
1297
|
+
return this.httpRequest.request({
|
|
1298
|
+
method: "PUT",
|
|
1299
|
+
url: "/api/onboarding/user/{invite_code}/accept",
|
|
1300
|
+
path: {
|
|
1301
|
+
"invite_code": inviteCode
|
|
1302
|
+
},
|
|
1303
|
+
body: requestBody,
|
|
1304
|
+
mediaType: "application/json",
|
|
1305
|
+
errors: {
|
|
1306
|
+
500: `Internal server error`
|
|
1307
|
+
}
|
|
1308
|
+
});
|
|
1309
|
+
}
|
|
1310
|
+
/**
|
|
1311
|
+
* Create User Invite
|
|
1312
|
+
* Create a user invite
|
|
1313
|
+
* @param requestBody
|
|
1314
|
+
* @returns CreateUserInviteResponse User invite created successfully
|
|
1315
|
+
* @throws ApiError
|
|
1316
|
+
*/
|
|
1317
|
+
createUserInvite(requestBody) {
|
|
1318
|
+
return this.httpRequest.request({
|
|
1319
|
+
method: "POST",
|
|
1320
|
+
url: "/api/onboarding/user",
|
|
1321
|
+
body: requestBody,
|
|
1322
|
+
mediaType: "application/json",
|
|
1323
|
+
errors: {
|
|
1324
|
+
500: `Internal server error`
|
|
1325
|
+
}
|
|
1326
|
+
});
|
|
1327
|
+
}
|
|
1328
|
+
/**
|
|
1329
|
+
* Get All User Invites
|
|
1330
|
+
* Get all user invites
|
|
1331
|
+
* @returns GetUserInviteByTokenResponse User invites retrieved successfully
|
|
1332
|
+
* @throws ApiError
|
|
1333
|
+
*/
|
|
1334
|
+
getAllUserInvites() {
|
|
1335
|
+
return this.httpRequest.request({
|
|
1336
|
+
method: "GET",
|
|
1337
|
+
url: "/api/onboarding/user",
|
|
1338
|
+
errors: {
|
|
1339
|
+
500: `Internal server error`
|
|
1340
|
+
}
|
|
1341
|
+
});
|
|
1342
|
+
}
|
|
1343
|
+
/**
|
|
1344
|
+
* Delete User Invite
|
|
1345
|
+
* Delete user invite
|
|
1346
|
+
* @param inviteId
|
|
1347
|
+
* @returns DeleteUserInviteResponse User invite deleted successfully
|
|
1348
|
+
* @throws ApiError
|
|
1349
|
+
*/
|
|
1350
|
+
deleteUserInvite(inviteId) {
|
|
1351
|
+
return this.httpRequest.request({
|
|
1352
|
+
method: "DELETE",
|
|
1353
|
+
url: "/api/onboarding/user/{invite_id}",
|
|
1354
|
+
path: {
|
|
1355
|
+
"invite_id": inviteId
|
|
1356
|
+
},
|
|
1357
|
+
errors: {
|
|
1358
|
+
500: `Internal server error`
|
|
1359
|
+
}
|
|
1360
|
+
});
|
|
1361
|
+
}
|
|
1362
|
+
};
|
|
1363
|
+
|
|
1364
|
+
// src/services/RotationService.ts
|
|
1365
|
+
var RotationService = class {
|
|
1366
|
+
constructor(httpRequest) {
|
|
1367
|
+
this.httpRequest = httpRequest;
|
|
1368
|
+
}
|
|
1369
|
+
/**
|
|
1370
|
+
* Create Rotation Policy
|
|
1371
|
+
* Create a new secret rotation policy for a variable
|
|
1372
|
+
* @param requestBody
|
|
1373
|
+
* @returns RotationPolicyResponse Rotation policy created successfully
|
|
1374
|
+
* @throws ApiError
|
|
1375
|
+
*/
|
|
1376
|
+
createRotationPolicy(requestBody) {
|
|
1377
|
+
return this.httpRequest.request({
|
|
1378
|
+
method: "POST",
|
|
1379
|
+
url: "/api/rotation",
|
|
1380
|
+
body: requestBody,
|
|
1381
|
+
mediaType: "application/json",
|
|
1382
|
+
errors: {
|
|
1383
|
+
400: `Bad request`,
|
|
1384
|
+
403: `Forbidden`,
|
|
1385
|
+
409: `Conflict - policy already exists`,
|
|
1386
|
+
500: `Internal server error`
|
|
1387
|
+
}
|
|
1388
|
+
});
|
|
1389
|
+
}
|
|
1390
|
+
/**
|
|
1391
|
+
* Get Rotation Policies
|
|
1392
|
+
* List all rotation policies for the organization
|
|
1393
|
+
* @param appId
|
|
1394
|
+
* @param envTypeId
|
|
1395
|
+
* @param enabled
|
|
1396
|
+
* @returns RotationPoliciesResponse Rotation policies retrieved successfully
|
|
1397
|
+
* @throws ApiError
|
|
1398
|
+
*/
|
|
1399
|
+
getRotationPolicies(appId, envTypeId, enabled) {
|
|
1400
|
+
return this.httpRequest.request({
|
|
1401
|
+
method: "GET",
|
|
1402
|
+
url: "/api/rotation",
|
|
1403
|
+
query: {
|
|
1404
|
+
"app_id": appId,
|
|
1405
|
+
"env_type_id": envTypeId,
|
|
1406
|
+
"enabled": enabled
|
|
1407
|
+
},
|
|
1408
|
+
errors: {
|
|
1409
|
+
500: `Internal server error`
|
|
1410
|
+
}
|
|
1411
|
+
});
|
|
1412
|
+
}
|
|
1413
|
+
/**
|
|
1414
|
+
* Get Rotation Policy
|
|
1415
|
+
* Get a specific rotation policy by ID
|
|
1416
|
+
* @param id
|
|
1417
|
+
* @returns RotationPolicyResponse Rotation policy retrieved successfully
|
|
1418
|
+
* @throws ApiError
|
|
1419
|
+
*/
|
|
1420
|
+
getRotationPolicy(id) {
|
|
1421
|
+
return this.httpRequest.request({
|
|
1422
|
+
method: "GET",
|
|
1423
|
+
url: "/api/rotation/{id}",
|
|
1424
|
+
path: {
|
|
1425
|
+
"id": id
|
|
1426
|
+
},
|
|
1427
|
+
errors: {
|
|
1428
|
+
404: `Not found`,
|
|
1429
|
+
500: `Internal server error`
|
|
1430
|
+
}
|
|
1431
|
+
});
|
|
1432
|
+
}
|
|
1433
|
+
/**
|
|
1434
|
+
* Update Rotation Policy
|
|
1435
|
+
* Update an existing rotation policy
|
|
1436
|
+
* @param id
|
|
1437
|
+
* @param requestBody
|
|
1438
|
+
* @returns RotationPolicyResponse Rotation policy updated successfully
|
|
1439
|
+
* @throws ApiError
|
|
1440
|
+
*/
|
|
1441
|
+
updateRotationPolicy(id, requestBody) {
|
|
1442
|
+
return this.httpRequest.request({
|
|
1443
|
+
method: "PATCH",
|
|
1444
|
+
url: "/api/rotation/{id}",
|
|
1445
|
+
path: {
|
|
1446
|
+
"id": id
|
|
1447
|
+
},
|
|
1448
|
+
body: requestBody,
|
|
1449
|
+
mediaType: "application/json",
|
|
1450
|
+
errors: {
|
|
1451
|
+
403: `Forbidden`,
|
|
1452
|
+
404: `Not found`,
|
|
1453
|
+
500: `Internal server error`
|
|
1454
|
+
}
|
|
1455
|
+
});
|
|
1456
|
+
}
|
|
1457
|
+
/**
|
|
1458
|
+
* Delete Rotation Policy
|
|
1459
|
+
* Delete a rotation policy
|
|
1460
|
+
* @param id
|
|
1461
|
+
* @returns ErrorResponse Rotation policy deleted successfully
|
|
1462
|
+
* @throws ApiError
|
|
1463
|
+
*/
|
|
1464
|
+
deleteRotationPolicy(id) {
|
|
1465
|
+
return this.httpRequest.request({
|
|
1466
|
+
method: "DELETE",
|
|
1467
|
+
url: "/api/rotation/{id}",
|
|
1468
|
+
path: {
|
|
1469
|
+
"id": id
|
|
1470
|
+
},
|
|
1471
|
+
errors: {
|
|
1472
|
+
403: `Forbidden`,
|
|
1473
|
+
404: `Not found`,
|
|
1474
|
+
500: `Internal server error`
|
|
1475
|
+
}
|
|
1476
|
+
});
|
|
1477
|
+
}
|
|
1478
|
+
/**
|
|
1479
|
+
* Trigger Rotation
|
|
1480
|
+
* Manually trigger a secret rotation for a policy
|
|
1481
|
+
* @param id
|
|
1482
|
+
* @returns TriggerRotationResponse Rotation executed successfully
|
|
1483
|
+
* @throws ApiError
|
|
1484
|
+
*/
|
|
1485
|
+
triggerRotation(id) {
|
|
1486
|
+
return this.httpRequest.request({
|
|
1487
|
+
method: "POST",
|
|
1488
|
+
url: "/api/rotation/{id}/rotate",
|
|
1489
|
+
path: {
|
|
1490
|
+
"id": id
|
|
1491
|
+
},
|
|
1492
|
+
errors: {
|
|
1493
|
+
403: `Forbidden`,
|
|
1494
|
+
404: `Not found`,
|
|
1495
|
+
409: `Conflict - policy disabled`,
|
|
1496
|
+
500: `Internal server error`
|
|
1497
|
+
}
|
|
1498
|
+
});
|
|
1499
|
+
}
|
|
1500
|
+
/**
|
|
1501
|
+
* Get Rotation States
|
|
1502
|
+
* Get the rotation state history for a policy
|
|
1503
|
+
* @param id
|
|
1504
|
+
* @returns RotationStatesResponse Rotation states retrieved successfully
|
|
1505
|
+
* @throws ApiError
|
|
1506
|
+
*/
|
|
1507
|
+
getRotationStates(id) {
|
|
1508
|
+
return this.httpRequest.request({
|
|
1509
|
+
method: "GET",
|
|
1510
|
+
url: "/api/rotation/{id}/states",
|
|
1511
|
+
path: {
|
|
1512
|
+
"id": id
|
|
1513
|
+
},
|
|
1514
|
+
errors: {
|
|
1515
|
+
404: `Not found`,
|
|
1516
|
+
500: `Internal server error`
|
|
1517
|
+
}
|
|
1518
|
+
});
|
|
1519
|
+
}
|
|
1520
|
+
/**
|
|
1521
|
+
* Revoke Expired Credentials
|
|
1522
|
+
* Revoke old credentials that have passed their dual-credential window
|
|
1523
|
+
* @returns RevokeOldCredentialResponse Expired credentials revoked successfully
|
|
1524
|
+
* @throws ApiError
|
|
1525
|
+
*/
|
|
1526
|
+
revokeExpiredCredentials() {
|
|
1527
|
+
return this.httpRequest.request({
|
|
1528
|
+
method: "POST",
|
|
1529
|
+
url: "/api/rotation/revoke-expired",
|
|
1530
|
+
errors: {
|
|
1531
|
+
500: `Internal server error`
|
|
1532
|
+
}
|
|
1533
|
+
});
|
|
1534
|
+
}
|
|
1535
|
+
};
|
|
1536
|
+
|
|
1537
|
+
// src/services/SamlProvidersService.ts
|
|
1538
|
+
var SamlProvidersService = class {
|
|
1539
|
+
constructor(httpRequest) {
|
|
1540
|
+
this.httpRequest = httpRequest;
|
|
1541
|
+
}
|
|
1542
|
+
/**
|
|
1543
|
+
* Register SAML Provider
|
|
1544
|
+
* Register a new SAML identity provider for SSO authentication
|
|
1545
|
+
* @param requestBody
|
|
1546
|
+
* @returns SamlProviderResponse SAML provider created successfully
|
|
1547
|
+
* @throws ApiError
|
|
1548
|
+
*/
|
|
1549
|
+
createSamlProvider(requestBody) {
|
|
1550
|
+
return this.httpRequest.request({
|
|
1551
|
+
method: "POST",
|
|
1552
|
+
url: "/api/saml",
|
|
1553
|
+
body: requestBody,
|
|
1554
|
+
mediaType: "application/json",
|
|
1555
|
+
errors: {
|
|
1556
|
+
500: `Internal server error`
|
|
1557
|
+
}
|
|
1558
|
+
});
|
|
1559
|
+
}
|
|
1560
|
+
/**
|
|
1561
|
+
* Get All SAML Providers
|
|
1562
|
+
* Retrieve all SAML providers for the organization
|
|
1563
|
+
* @returns SamlProvidersResponse SAML providers retrieved successfully
|
|
1564
|
+
* @throws ApiError
|
|
1565
|
+
*/
|
|
1566
|
+
getAllSamlProviders() {
|
|
1567
|
+
return this.httpRequest.request({
|
|
1568
|
+
method: "GET",
|
|
1569
|
+
url: "/api/saml",
|
|
1570
|
+
errors: {
|
|
1571
|
+
500: `Internal server error`
|
|
1572
|
+
}
|
|
1573
|
+
});
|
|
1574
|
+
}
|
|
1575
|
+
/**
|
|
1576
|
+
* Get SAML Provider
|
|
1577
|
+
* Retrieve a specific SAML provider
|
|
1578
|
+
* @param id
|
|
1579
|
+
* @returns SamlProviderResponse SAML provider retrieved successfully
|
|
1580
|
+
* @throws ApiError
|
|
1581
|
+
*/
|
|
1582
|
+
getSamlProvider(id) {
|
|
1583
|
+
return this.httpRequest.request({
|
|
1584
|
+
method: "GET",
|
|
1585
|
+
url: "/api/saml/{id}",
|
|
1586
|
+
path: {
|
|
1587
|
+
"id": id
|
|
1588
|
+
},
|
|
1589
|
+
errors: {
|
|
1590
|
+
500: `Internal server error`
|
|
1591
|
+
}
|
|
1592
|
+
});
|
|
1593
|
+
}
|
|
1594
|
+
/**
|
|
1595
|
+
* Update SAML Provider
|
|
1596
|
+
* Update an existing SAML provider
|
|
1597
|
+
* @param id
|
|
1598
|
+
* @param requestBody
|
|
1599
|
+
* @returns ErrorResponse SAML provider updated successfully
|
|
1600
|
+
* @throws ApiError
|
|
1601
|
+
*/
|
|
1602
|
+
updateSamlProvider(id, requestBody) {
|
|
1603
|
+
return this.httpRequest.request({
|
|
1604
|
+
method: "PUT",
|
|
1605
|
+
url: "/api/saml/{id}",
|
|
1606
|
+
path: {
|
|
1607
|
+
"id": id
|
|
1608
|
+
},
|
|
1609
|
+
body: requestBody,
|
|
1610
|
+
mediaType: "application/json",
|
|
1611
|
+
errors: {
|
|
1612
|
+
500: `Internal server error`
|
|
1613
|
+
}
|
|
1614
|
+
});
|
|
1615
|
+
}
|
|
1616
|
+
/**
|
|
1617
|
+
* Delete SAML Provider
|
|
1618
|
+
* Delete an existing SAML provider
|
|
1619
|
+
* @param id
|
|
1620
|
+
* @returns ErrorResponse SAML provider deleted successfully
|
|
1621
|
+
* @throws ApiError
|
|
1622
|
+
*/
|
|
1623
|
+
deleteSamlProvider(id) {
|
|
1624
|
+
return this.httpRequest.request({
|
|
1625
|
+
method: "DELETE",
|
|
1626
|
+
url: "/api/saml/{id}",
|
|
1627
|
+
path: {
|
|
1628
|
+
"id": id
|
|
1629
|
+
},
|
|
1630
|
+
errors: {
|
|
1631
|
+
500: `Internal server error`
|
|
1632
|
+
}
|
|
1633
|
+
});
|
|
1634
|
+
}
|
|
1635
|
+
/**
|
|
1636
|
+
* Get SAML SP Metadata
|
|
1637
|
+
* Retrieve SAML Service Provider metadata XML for the organization
|
|
1638
|
+
* @param id
|
|
1639
|
+
* @returns string SP metadata XML
|
|
1640
|
+
* @throws ApiError
|
|
1641
|
+
*/
|
|
1642
|
+
getSamlMetadata(id) {
|
|
1643
|
+
return this.httpRequest.request({
|
|
1644
|
+
method: "GET",
|
|
1645
|
+
url: "/api/saml/{id}/metadata",
|
|
1646
|
+
path: {
|
|
1647
|
+
"id": id
|
|
1648
|
+
}
|
|
1649
|
+
});
|
|
1650
|
+
}
|
|
1651
|
+
};
|
|
1652
|
+
|
|
1653
|
+
// src/services/SamlSsoService.ts
|
|
1654
|
+
var SamlSsoService = class {
|
|
1655
|
+
constructor(httpRequest) {
|
|
1656
|
+
this.httpRequest = httpRequest;
|
|
1657
|
+
}
|
|
1658
|
+
/**
|
|
1659
|
+
* Initiate SAML SSO
|
|
1660
|
+
* Start SP-initiated SAML SSO flow by generating an AuthnRequest redirect URL
|
|
1661
|
+
* @param requestBody
|
|
1662
|
+
* @returns SamlSsoResponse Redirect URL generated
|
|
1663
|
+
* @throws ApiError
|
|
1664
|
+
*/
|
|
1665
|
+
initiateSamlSso(requestBody) {
|
|
1666
|
+
return this.httpRequest.request({
|
|
1667
|
+
method: "POST",
|
|
1668
|
+
url: "/api/saml/sso",
|
|
1669
|
+
body: requestBody,
|
|
1670
|
+
mediaType: "application/json",
|
|
1671
|
+
errors: {
|
|
1672
|
+
500: `Internal server error`
|
|
1673
|
+
}
|
|
1674
|
+
});
|
|
1675
|
+
}
|
|
1676
|
+
/**
|
|
1677
|
+
* SAML Assertion Consumer Service
|
|
1678
|
+
* Receive and validate SAML Response from the identity provider (ACS endpoint)
|
|
1679
|
+
* @param orgId
|
|
1680
|
+
* @returns any Authentication successful
|
|
1681
|
+
* @throws ApiError
|
|
1682
|
+
*/
|
|
1683
|
+
handleSamlAcs(orgId) {
|
|
1684
|
+
return this.httpRequest.request({
|
|
1685
|
+
method: "POST",
|
|
1686
|
+
url: "/api/saml/acs/{orgId}",
|
|
1687
|
+
path: {
|
|
1688
|
+
"orgId": orgId
|
|
1689
|
+
},
|
|
1690
|
+
errors: {
|
|
1691
|
+
401: `Authentication failed`
|
|
1692
|
+
}
|
|
1693
|
+
});
|
|
1694
|
+
}
|
|
1695
|
+
};
|
|
1696
|
+
|
|
1697
|
+
// src/services/SystemService.ts
|
|
1698
|
+
var SystemService = class {
|
|
1699
|
+
constructor(httpRequest) {
|
|
1700
|
+
this.httpRequest = httpRequest;
|
|
1701
|
+
}
|
|
1702
|
+
/**
|
|
1703
|
+
* Get Management System Status
|
|
1704
|
+
* @returns SystemStatusResponse Management system status
|
|
971
1705
|
* @throws ApiError
|
|
972
1706
|
*/
|
|
973
1707
|
getManagementSystemStatus() {
|
|
@@ -983,15 +1717,21 @@ var SystemService = class {
|
|
|
983
1717
|
|
|
984
1718
|
// src/EnvSyncManagementAPISDK.ts
|
|
985
1719
|
var EnvSyncManagementAPISDK = class {
|
|
1720
|
+
dynamicSecrets;
|
|
986
1721
|
enterprise;
|
|
987
1722
|
license;
|
|
1723
|
+
logForwarding;
|
|
1724
|
+
oidcProviders;
|
|
988
1725
|
onboarding;
|
|
1726
|
+
rotation;
|
|
1727
|
+
samlProviders;
|
|
1728
|
+
samlSso;
|
|
989
1729
|
system;
|
|
990
1730
|
request;
|
|
991
1731
|
constructor(config, HttpRequest = FetchHttpRequest) {
|
|
992
1732
|
this.request = new HttpRequest({
|
|
993
1733
|
BASE: config?.BASE ?? "http://localhost:4001",
|
|
994
|
-
VERSION: config?.VERSION ?? "0.
|
|
1734
|
+
VERSION: config?.VERSION ?? "0.10.0",
|
|
995
1735
|
WITH_CREDENTIALS: config?.WITH_CREDENTIALS ?? false,
|
|
996
1736
|
CREDENTIALS: config?.CREDENTIALS ?? "include",
|
|
997
1737
|
TOKEN: config?.TOKEN,
|
|
@@ -1000,9 +1740,15 @@ var EnvSyncManagementAPISDK = class {
|
|
|
1000
1740
|
HEADERS: config?.HEADERS,
|
|
1001
1741
|
ENCODE_PATH: config?.ENCODE_PATH
|
|
1002
1742
|
});
|
|
1743
|
+
this.dynamicSecrets = new DynamicSecretsService(this.request);
|
|
1003
1744
|
this.enterprise = new EnterpriseService(this.request);
|
|
1004
1745
|
this.license = new LicenseService(this.request);
|
|
1746
|
+
this.logForwarding = new LogForwardingService(this.request);
|
|
1747
|
+
this.oidcProviders = new OidcProvidersService(this.request);
|
|
1005
1748
|
this.onboarding = new OnboardingService(this.request);
|
|
1749
|
+
this.rotation = new RotationService(this.request);
|
|
1750
|
+
this.samlProviders = new SamlProvidersService(this.request);
|
|
1751
|
+
this.samlSso = new SamlSsoService(this.request);
|
|
1006
1752
|
this.system = new SystemService(this.request);
|
|
1007
1753
|
}
|
|
1008
1754
|
};
|
|
@@ -1010,7 +1756,7 @@ var EnvSyncManagementAPISDK = class {
|
|
|
1010
1756
|
// src/core/OpenAPI.ts
|
|
1011
1757
|
var OpenAPI = {
|
|
1012
1758
|
BASE: "http://localhost:4001",
|
|
1013
|
-
VERSION: "0.
|
|
1759
|
+
VERSION: "0.10.0",
|
|
1014
1760
|
WITH_CREDENTIALS: false,
|
|
1015
1761
|
CREDENTIALS: "include",
|
|
1016
1762
|
TOKEN: void 0,
|
|
@@ -1020,6 +1766,18 @@ var OpenAPI = {
|
|
|
1020
1766
|
ENCODE_PATH: void 0
|
|
1021
1767
|
};
|
|
1022
1768
|
|
|
1769
|
+
// src/models/CreateDynamicSecretEngineRequest.ts
|
|
1770
|
+
var CreateDynamicSecretEngineRequest;
|
|
1771
|
+
((CreateDynamicSecretEngineRequest2) => {
|
|
1772
|
+
let engine_type;
|
|
1773
|
+
((engine_type2) => {
|
|
1774
|
+
engine_type2["POSTGRES"] = "postgres";
|
|
1775
|
+
engine_type2["MYSQL"] = "mysql";
|
|
1776
|
+
engine_type2["AWS_IAM"] = "aws-iam";
|
|
1777
|
+
engine_type2["AZURE_SP"] = "azure-sp";
|
|
1778
|
+
})(engine_type = CreateDynamicSecretEngineRequest2.engine_type || (CreateDynamicSecretEngineRequest2.engine_type = {}));
|
|
1779
|
+
})(CreateDynamicSecretEngineRequest || (CreateDynamicSecretEngineRequest = {}));
|
|
1780
|
+
|
|
1023
1781
|
// src/models/CreateIntegrationBindingRequest.ts
|
|
1024
1782
|
var CreateIntegrationBindingRequest;
|
|
1025
1783
|
((CreateIntegrationBindingRequest2) => {
|
|
@@ -1033,6 +1791,17 @@ var CreateIntegrationBindingRequest;
|
|
|
1033
1791
|
})(provider_type = CreateIntegrationBindingRequest2.provider_type || (CreateIntegrationBindingRequest2.provider_type = {}));
|
|
1034
1792
|
})(CreateIntegrationBindingRequest || (CreateIntegrationBindingRequest = {}));
|
|
1035
1793
|
|
|
1794
|
+
// src/models/CreateLogForwardingRequest.ts
|
|
1795
|
+
var CreateLogForwardingRequest;
|
|
1796
|
+
((CreateLogForwardingRequest2) => {
|
|
1797
|
+
let provider_type;
|
|
1798
|
+
((provider_type2) => {
|
|
1799
|
+
provider_type2["DATADOG"] = "datadog";
|
|
1800
|
+
provider_type2["SPLUNK"] = "splunk";
|
|
1801
|
+
provider_type2["SUMO_LOGIC"] = "sumo-logic";
|
|
1802
|
+
})(provider_type = CreateLogForwardingRequest2.provider_type || (CreateLogForwardingRequest2.provider_type = {}));
|
|
1803
|
+
})(CreateLogForwardingRequest || (CreateLogForwardingRequest = {}));
|
|
1804
|
+
|
|
1036
1805
|
// src/models/CreateManualSyncRunRequest.ts
|
|
1037
1806
|
var CreateManualSyncRunRequest;
|
|
1038
1807
|
((CreateManualSyncRunRequest2) => {
|
|
@@ -1046,6 +1815,18 @@ var CreateManualSyncRunRequest;
|
|
|
1046
1815
|
})(provider_type = CreateManualSyncRunRequest2.provider_type || (CreateManualSyncRunRequest2.provider_type = {}));
|
|
1047
1816
|
})(CreateManualSyncRunRequest || (CreateManualSyncRunRequest = {}));
|
|
1048
1817
|
|
|
1818
|
+
// src/models/CreateOidcProviderRequest.ts
|
|
1819
|
+
var CreateOidcProviderRequest;
|
|
1820
|
+
((CreateOidcProviderRequest2) => {
|
|
1821
|
+
let provider_type;
|
|
1822
|
+
((provider_type2) => {
|
|
1823
|
+
provider_type2["GITHUB_ACTIONS"] = "github_actions";
|
|
1824
|
+
provider_type2["GITLAB_CI"] = "gitlab_ci";
|
|
1825
|
+
provider_type2["KUBERNETES"] = "kubernetes";
|
|
1826
|
+
provider_type2["GENERIC"] = "generic";
|
|
1827
|
+
})(provider_type = CreateOidcProviderRequest2.provider_type || (CreateOidcProviderRequest2.provider_type = {}));
|
|
1828
|
+
})(CreateOidcProviderRequest || (CreateOidcProviderRequest = {}));
|
|
1829
|
+
|
|
1049
1830
|
// src/models/CreateProviderConnectionRequest.ts
|
|
1050
1831
|
var CreateProviderConnectionRequest;
|
|
1051
1832
|
((CreateProviderConnectionRequest2) => {
|
|
@@ -1065,6 +1846,50 @@ var CreateProviderConnectionRequest;
|
|
|
1065
1846
|
})(status = CreateProviderConnectionRequest2.status || (CreateProviderConnectionRequest2.status = {}));
|
|
1066
1847
|
})(CreateProviderConnectionRequest || (CreateProviderConnectionRequest = {}));
|
|
1067
1848
|
|
|
1849
|
+
// src/models/CreateRotationPolicyRequest.ts
|
|
1850
|
+
var CreateRotationPolicyRequest;
|
|
1851
|
+
((CreateRotationPolicyRequest2) => {
|
|
1852
|
+
let engine_type;
|
|
1853
|
+
((engine_type2) => {
|
|
1854
|
+
engine_type2["POSTGRES"] = "postgres";
|
|
1855
|
+
engine_type2["MYSQL"] = "mysql";
|
|
1856
|
+
engine_type2["AWS_IAM"] = "aws-iam";
|
|
1857
|
+
engine_type2["AZURE_SP"] = "azure-sp";
|
|
1858
|
+
engine_type2["GCP_SERVICE_ACCOUNT"] = "gcp-service-account";
|
|
1859
|
+
engine_type2["CLOUDFLARE_PAGES"] = "cloudflare-pages";
|
|
1860
|
+
engine_type2["SENDGRID"] = "sendgrid";
|
|
1861
|
+
engine_type2["TWILIO"] = "twilio";
|
|
1862
|
+
})(engine_type = CreateRotationPolicyRequest2.engine_type || (CreateRotationPolicyRequest2.engine_type = {}));
|
|
1863
|
+
})(CreateRotationPolicyRequest || (CreateRotationPolicyRequest = {}));
|
|
1864
|
+
|
|
1865
|
+
// src/models/CreateSamlProviderRequest.ts
|
|
1866
|
+
var CreateSamlProviderRequest;
|
|
1867
|
+
((CreateSamlProviderRequest2) => {
|
|
1868
|
+
let provider_type;
|
|
1869
|
+
((provider_type2) => {
|
|
1870
|
+
provider_type2["OKTA"] = "okta";
|
|
1871
|
+
provider_type2["ONELOGIN"] = "onelogin";
|
|
1872
|
+
provider_type2["AZURE_AD"] = "azure-ad";
|
|
1873
|
+
provider_type2["GOOGLE_WORKSPACE"] = "google-workspace";
|
|
1874
|
+
provider_type2["DUO"] = "duo";
|
|
1875
|
+
provider_type2["RIPPLING"] = "rippling";
|
|
1876
|
+
provider_type2["ORACLE"] = "oracle";
|
|
1877
|
+
provider_type2["PING_IDENTITY"] = "ping-identity";
|
|
1878
|
+
})(provider_type = CreateSamlProviderRequest2.provider_type || (CreateSamlProviderRequest2.provider_type = {}));
|
|
1879
|
+
})(CreateSamlProviderRequest || (CreateSamlProviderRequest = {}));
|
|
1880
|
+
|
|
1881
|
+
// src/models/DynamicSecretEngineResponse.ts
|
|
1882
|
+
var DynamicSecretEngineResponse;
|
|
1883
|
+
((DynamicSecretEngineResponse2) => {
|
|
1884
|
+
let engine_type;
|
|
1885
|
+
((engine_type2) => {
|
|
1886
|
+
engine_type2["POSTGRES"] = "postgres";
|
|
1887
|
+
engine_type2["MYSQL"] = "mysql";
|
|
1888
|
+
engine_type2["AWS_IAM"] = "aws-iam";
|
|
1889
|
+
engine_type2["AZURE_SP"] = "azure-sp";
|
|
1890
|
+
})(engine_type = DynamicSecretEngineResponse2.engine_type || (DynamicSecretEngineResponse2.engine_type = {}));
|
|
1891
|
+
})(DynamicSecretEngineResponse || (DynamicSecretEngineResponse = {}));
|
|
1892
|
+
|
|
1068
1893
|
// src/models/EnterpriseProviderProfile.ts
|
|
1069
1894
|
var EnterpriseProviderProfile;
|
|
1070
1895
|
((EnterpriseProviderProfile2) => {
|
|
@@ -1103,8 +1928,37 @@ var LicenseState;
|
|
|
1103
1928
|
status2["ERROR"] = "error";
|
|
1104
1929
|
status2["LOCKED"] = "locked";
|
|
1105
1930
|
})(status = LicenseState2.status || (LicenseState2.status = {}));
|
|
1931
|
+
let validation_mode;
|
|
1932
|
+
((validation_mode2) => {
|
|
1933
|
+
validation_mode2["NONE"] = "none";
|
|
1934
|
+
validation_mode2["LEASE"] = "lease";
|
|
1935
|
+
validation_mode2["CERTIFICATE"] = "certificate";
|
|
1936
|
+
})(validation_mode = LicenseState2.validation_mode || (LicenseState2.validation_mode = {}));
|
|
1106
1937
|
})(LicenseState || (LicenseState = {}));
|
|
1107
1938
|
|
|
1939
|
+
// src/models/LogForwardingResponse.ts
|
|
1940
|
+
var LogForwardingResponse;
|
|
1941
|
+
((LogForwardingResponse2) => {
|
|
1942
|
+
let provider_type;
|
|
1943
|
+
((provider_type2) => {
|
|
1944
|
+
provider_type2["DATADOG"] = "datadog";
|
|
1945
|
+
provider_type2["SPLUNK"] = "splunk";
|
|
1946
|
+
provider_type2["SUMO_LOGIC"] = "sumo-logic";
|
|
1947
|
+
})(provider_type = LogForwardingResponse2.provider_type || (LogForwardingResponse2.provider_type = {}));
|
|
1948
|
+
})(LogForwardingResponse || (LogForwardingResponse = {}));
|
|
1949
|
+
|
|
1950
|
+
// src/models/OidcProviderResponse.ts
|
|
1951
|
+
var OidcProviderResponse;
|
|
1952
|
+
((OidcProviderResponse2) => {
|
|
1953
|
+
let provider_type;
|
|
1954
|
+
((provider_type2) => {
|
|
1955
|
+
provider_type2["GITHUB_ACTIONS"] = "github_actions";
|
|
1956
|
+
provider_type2["GITLAB_CI"] = "gitlab_ci";
|
|
1957
|
+
provider_type2["KUBERNETES"] = "kubernetes";
|
|
1958
|
+
provider_type2["GENERIC"] = "generic";
|
|
1959
|
+
})(provider_type = OidcProviderResponse2.provider_type || (OidcProviderResponse2.provider_type = {}));
|
|
1960
|
+
})(OidcProviderResponse || (OidcProviderResponse = {}));
|
|
1961
|
+
|
|
1108
1962
|
// src/models/ProviderConnection.ts
|
|
1109
1963
|
var ProviderConnection;
|
|
1110
1964
|
((ProviderConnection2) => {
|
|
@@ -1124,6 +1978,38 @@ var ProviderConnection;
|
|
|
1124
1978
|
})(status = ProviderConnection2.status || (ProviderConnection2.status = {}));
|
|
1125
1979
|
})(ProviderConnection || (ProviderConnection = {}));
|
|
1126
1980
|
|
|
1981
|
+
// src/models/RotationPolicyResponse.ts
|
|
1982
|
+
var RotationPolicyResponse;
|
|
1983
|
+
((RotationPolicyResponse2) => {
|
|
1984
|
+
let engine_type;
|
|
1985
|
+
((engine_type2) => {
|
|
1986
|
+
engine_type2["POSTGRES"] = "postgres";
|
|
1987
|
+
engine_type2["MYSQL"] = "mysql";
|
|
1988
|
+
engine_type2["AWS_IAM"] = "aws-iam";
|
|
1989
|
+
engine_type2["AZURE_SP"] = "azure-sp";
|
|
1990
|
+
engine_type2["GCP_SERVICE_ACCOUNT"] = "gcp-service-account";
|
|
1991
|
+
engine_type2["CLOUDFLARE_PAGES"] = "cloudflare-pages";
|
|
1992
|
+
engine_type2["SENDGRID"] = "sendgrid";
|
|
1993
|
+
engine_type2["TWILIO"] = "twilio";
|
|
1994
|
+
})(engine_type = RotationPolicyResponse2.engine_type || (RotationPolicyResponse2.engine_type = {}));
|
|
1995
|
+
})(RotationPolicyResponse || (RotationPolicyResponse = {}));
|
|
1996
|
+
|
|
1997
|
+
// src/models/SamlProviderResponse.ts
|
|
1998
|
+
var SamlProviderResponse;
|
|
1999
|
+
((SamlProviderResponse2) => {
|
|
2000
|
+
let provider_type;
|
|
2001
|
+
((provider_type2) => {
|
|
2002
|
+
provider_type2["OKTA"] = "okta";
|
|
2003
|
+
provider_type2["ONELOGIN"] = "onelogin";
|
|
2004
|
+
provider_type2["AZURE_AD"] = "azure-ad";
|
|
2005
|
+
provider_type2["GOOGLE_WORKSPACE"] = "google-workspace";
|
|
2006
|
+
provider_type2["DUO"] = "duo";
|
|
2007
|
+
provider_type2["RIPPLING"] = "rippling";
|
|
2008
|
+
provider_type2["ORACLE"] = "oracle";
|
|
2009
|
+
provider_type2["PING_IDENTITY"] = "ping-identity";
|
|
2010
|
+
})(provider_type = SamlProviderResponse2.provider_type || (SamlProviderResponse2.provider_type = {}));
|
|
2011
|
+
})(SamlProviderResponse || (SamlProviderResponse = {}));
|
|
2012
|
+
|
|
1127
2013
|
// src/models/SyncAuditEvent.ts
|
|
1128
2014
|
var SyncAuditEvent;
|
|
1129
2015
|
((SyncAuditEvent2) => {
|
|
@@ -1189,18 +2075,34 @@ var UpdateProviderConnectionRequest;
|
|
|
1189
2075
|
BaseHttpRequest,
|
|
1190
2076
|
CancelError,
|
|
1191
2077
|
CancelablePromise,
|
|
2078
|
+
CreateDynamicSecretEngineRequest,
|
|
1192
2079
|
CreateIntegrationBindingRequest,
|
|
2080
|
+
CreateLogForwardingRequest,
|
|
1193
2081
|
CreateManualSyncRunRequest,
|
|
2082
|
+
CreateOidcProviderRequest,
|
|
1194
2083
|
CreateProviderConnectionRequest,
|
|
2084
|
+
CreateRotationPolicyRequest,
|
|
2085
|
+
CreateSamlProviderRequest,
|
|
2086
|
+
DynamicSecretEngineResponse,
|
|
2087
|
+
DynamicSecretsService,
|
|
1195
2088
|
EnterpriseProviderProfile,
|
|
1196
2089
|
EnterpriseService,
|
|
1197
2090
|
EnvSyncManagementAPISDK,
|
|
1198
2091
|
IntegrationBinding,
|
|
1199
2092
|
LicenseService,
|
|
1200
2093
|
LicenseState,
|
|
2094
|
+
LogForwardingResponse,
|
|
2095
|
+
LogForwardingService,
|
|
2096
|
+
OidcProviderResponse,
|
|
2097
|
+
OidcProvidersService,
|
|
1201
2098
|
OnboardingService,
|
|
1202
2099
|
OpenAPI,
|
|
1203
2100
|
ProviderConnection,
|
|
2101
|
+
RotationPolicyResponse,
|
|
2102
|
+
RotationService,
|
|
2103
|
+
SamlProviderResponse,
|
|
2104
|
+
SamlProvidersService,
|
|
2105
|
+
SamlSsoService,
|
|
1204
2106
|
SyncAuditEvent,
|
|
1205
2107
|
SyncRun,
|
|
1206
2108
|
SystemService,
|