@envsync-cloud/envsync-ts-sdk 0.11.0 → 0.20.2

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.js CHANGED
@@ -32,8 +32,21 @@ __export(src_exports, {
32
32
  CertificatesService: () => CertificatesService,
33
33
  ChangeRequestResponse: () => ChangeRequestResponse,
34
34
  ChangeRequestsService: () => ChangeRequestsService,
35
+ CreateDynamicSecretEngineRequest: () => CreateDynamicSecretEngineRequest,
36
+ CreateIntegrationBindingRequest: () => CreateIntegrationBindingRequest,
37
+ CreateLogForwardingRequest: () => CreateLogForwardingRequest,
38
+ CreateManualSyncRunRequest: () => CreateManualSyncRunRequest,
39
+ CreateOidcProviderRequest: () => CreateOidcProviderRequest,
40
+ CreateProviderConnectionRequest: () => CreateProviderConnectionRequest,
41
+ CreateRotationPolicyRequest: () => CreateRotationPolicyRequest,
42
+ CreateSamlProviderRequest: () => CreateSamlProviderRequest,
35
43
  CreateWebhookRequest: () => CreateWebhookRequest,
44
+ DynamicSecretEngineResponse: () => DynamicSecretEngineResponse,
45
+ DynamicSecretsService: () => DynamicSecretsService,
36
46
  EffectiveAccessEntry: () => EffectiveAccessEntry,
47
+ EnterpriseCmkService: () => EnterpriseCmkService,
48
+ EnterpriseProviderProfile: () => EnterpriseProviderProfile,
49
+ EnterpriseService: () => EnterpriseService,
37
50
  EnvSyncAPISDK: () => EnvSyncAPISDK,
38
51
  EnvironmentTypesService: () => EnvironmentTypesService,
39
52
  EnvironmentVariablesPointInTimeService: () => EnvironmentVariablesPointInTimeService,
@@ -45,29 +58,53 @@ __export(src_exports, {
45
58
  GpgKeysService: () => GpgKeysService,
46
59
  GrantAccessRequest: () => GrantAccessRequest,
47
60
  GrantEntry: () => GrantEntry,
61
+ IntegrationBinding: () => IntegrationBinding,
62
+ LicenseService: () => LicenseService,
48
63
  LicenseState: () => LicenseState,
64
+ LogForwardingResponse: () => LogForwardingResponse,
65
+ LogForwardingService: () => LogForwardingService,
66
+ OidcProviderResponse: () => OidcProviderResponse,
67
+ OidcProvidersService: () => OidcProvidersService,
49
68
  OnboardingService: () => OnboardingService,
50
69
  OpenAPI: () => OpenAPI,
70
+ OrgFeaturesService: () => OrgFeaturesService,
71
+ OrgKmsConfigResponse: () => OrgKmsConfigResponse,
72
+ OrgKmsJobResponse: () => OrgKmsJobResponse,
73
+ OrgKmsVerifyResponse: () => OrgKmsVerifyResponse,
51
74
  OrganizationsService: () => OrganizationsService,
52
75
  PermissionsService: () => PermissionsService,
76
+ ProviderConnection: () => ProviderConnection,
77
+ PutOrgFeatureGrantRequest: () => PutOrgFeatureGrantRequest,
53
78
  RevokeAccessRequest: () => RevokeAccessRequest,
54
79
  RolesService: () => RolesService,
55
80
  RotateGpgKeyRequest: () => RotateGpgKeyRequest,
81
+ RotationPolicyResponse: () => RotationPolicyResponse,
82
+ RotationService: () => RotationService,
83
+ SamlProviderResponse: () => SamlProviderResponse,
84
+ SamlProvidersService: () => SamlProvidersService,
85
+ SamlSsoService: () => SamlSsoService,
56
86
  SecretVariableRollbackResponse: () => SecretVariableRollbackResponse,
57
87
  SecretsPointInTimeService: () => SecretsPointInTimeService,
58
88
  SecretsRollbackService: () => SecretsRollbackService,
59
89
  SecretsService: () => SecretsService,
60
90
  ServiceTokensService: () => ServiceTokensService,
91
+ SetupService: () => SetupService,
92
+ SetupStatusResponse: () => SetupStatusResponse,
61
93
  SignDataRequest: () => SignDataRequest,
94
+ SyncAuditEvent: () => SyncAuditEvent,
95
+ SyncRun: () => SyncRun,
62
96
  SystemService: () => SystemService,
63
97
  SystemStatusState: () => SystemStatusState,
64
98
  TeamsService: () => TeamsService,
99
+ UpdateOrgKmsConfigRequest: () => UpdateOrgKmsConfigRequest,
100
+ UpdateProviderConnectionRequest: () => UpdateProviderConnectionRequest,
65
101
  UpdateTrustLevelRequest: () => UpdateTrustLevelRequest,
66
102
  UpdateWebhookRequest: () => UpdateWebhookRequest,
67
103
  UsersService: () => UsersService,
68
104
  VariableRollbackResponse: () => VariableRollbackResponse,
69
105
  WebhookResponse: () => WebhookResponse,
70
- WebhooksService: () => WebhooksService
106
+ WebhooksService: () => WebhooksService,
107
+ WhoAmIResponse: () => WhoAmIResponse
71
108
  });
72
109
  module.exports = __toCommonJS(src_exports);
73
110
 
@@ -825,23 +862,23 @@ var AuthenticationService = class {
825
862
  });
826
863
  }
827
864
  /**
828
- * Create Workspace
829
- * Create a new workspace for the current enterprise web session and switch into it
865
+ * Create Organization
866
+ * Create a new organization for the current hosted web session and switch into it. Hosted only; self-host always 403.
830
867
  * @param requestBody
831
- * @returns WhoAmIResponse Workspace created successfully
868
+ * @returns WhoAmIResponse Organization created successfully
832
869
  * @throws ApiError
833
870
  */
834
- createWorkspace(requestBody) {
871
+ createOrganization(requestBody) {
835
872
  return this.httpRequest.request({
836
873
  method: "POST",
837
- url: "/api/auth/create-workspace",
874
+ url: "/api/auth/create-organization",
838
875
  body: requestBody,
839
876
  mediaType: "application/json",
840
877
  errors: {
841
878
  400: `Invalid request`,
842
879
  401: `Cookie session required`,
843
- 403: `Enterprise edition required`,
844
- 409: `Workspace slug conflict`
880
+ 403: `Not allowed on this deployment (e.g. self-host)`,
881
+ 409: `Organization slug conflict or org limit reached`
845
882
  }
846
883
  });
847
884
  }
@@ -1217,274 +1254,269 @@ var ChangeRequestsService = class {
1217
1254
  }
1218
1255
  };
1219
1256
 
1220
- // src/services/EnvironmentTypesService.ts
1221
- var EnvironmentTypesService = class {
1257
+ // src/services/DynamicSecretsService.ts
1258
+ var DynamicSecretsService = class {
1222
1259
  constructor(httpRequest) {
1223
1260
  this.httpRequest = httpRequest;
1224
1261
  }
1225
1262
  /**
1226
- * Get Environment Types
1227
- * Retrieve all environment types for the organization
1228
- * @returns EnvTypesResponse Environment types retrieved successfully
1263
+ * Create Dynamic Secret Engine
1264
+ * Create a new dynamic secret engine for short-lived credential generation
1265
+ * @param requestBody
1266
+ * @returns DynamicSecretEngineResponse Engine created successfully
1229
1267
  * @throws ApiError
1230
1268
  */
1231
- getEnvTypes() {
1269
+ createDynamicSecretEngine(requestBody) {
1232
1270
  return this.httpRequest.request({
1233
- method: "GET",
1234
- url: "/api/env_type",
1271
+ method: "POST",
1272
+ url: "/api/v1/manage/dynamic_secret/engines",
1273
+ body: requestBody,
1274
+ mediaType: "application/json",
1235
1275
  errors: {
1276
+ 400: `Validation error`,
1277
+ 409: `Engine name conflict`,
1236
1278
  500: `Internal server error`
1237
1279
  }
1238
1280
  });
1239
1281
  }
1240
1282
  /**
1241
- * Create Environment Type
1242
- * Create a new environment type
1243
- * @param requestBody
1244
- * @returns EnvTypeResponse Environment type created successfully
1283
+ * Get All Dynamic Secret Engines
1284
+ * Retrieve all dynamic secret engines for the organization
1285
+ * @returns DynamicSecretEnginesResponse Engines retrieved successfully
1245
1286
  * @throws ApiError
1246
1287
  */
1247
- createEnvType(requestBody) {
1288
+ getAllDynamicSecretEngines() {
1248
1289
  return this.httpRequest.request({
1249
- method: "POST",
1250
- url: "/api/env_type",
1251
- body: requestBody,
1252
- mediaType: "application/json",
1290
+ method: "GET",
1291
+ url: "/api/v1/manage/dynamic_secret/engines",
1253
1292
  errors: {
1254
1293
  500: `Internal server error`
1255
1294
  }
1256
1295
  });
1257
1296
  }
1258
1297
  /**
1259
- * Get Environment Type
1260
- * Retrieve a specific environment type
1298
+ * Get Dynamic Secret Engine
1299
+ * Retrieve a specific dynamic secret engine by ID
1261
1300
  * @param id
1262
- * @returns EnvTypeResponse Environment type retrieved successfully
1301
+ * @returns DynamicSecretEngineResponse Engine retrieved successfully
1263
1302
  * @throws ApiError
1264
1303
  */
1265
- getEnvType(id) {
1304
+ getDynamicSecretEngine(id) {
1266
1305
  return this.httpRequest.request({
1267
1306
  method: "GET",
1268
- url: "/api/env_type/{id}",
1307
+ url: "/api/v1/manage/dynamic_secret/engines/{id}",
1269
1308
  path: {
1270
1309
  "id": id
1271
1310
  },
1272
1311
  errors: {
1312
+ 404: `Engine not found`,
1273
1313
  500: `Internal server error`
1274
1314
  }
1275
1315
  });
1276
1316
  }
1277
1317
  /**
1278
- * Update Environment Type
1279
- * Update an existing environment type
1318
+ * Update Dynamic Secret Engine
1319
+ * Update an existing dynamic secret engine
1280
1320
  * @param id
1281
1321
  * @param requestBody
1282
- * @returns EnvTypeResponse Environment type updated successfully
1322
+ * @returns DynamicSecretEngineResponse Engine updated successfully
1283
1323
  * @throws ApiError
1284
1324
  */
1285
- updateEnvType(id, requestBody) {
1325
+ updateDynamicSecretEngine(id, requestBody) {
1286
1326
  return this.httpRequest.request({
1287
1327
  method: "PATCH",
1288
- url: "/api/env_type/{id}",
1328
+ url: "/api/v1/manage/dynamic_secret/engines/{id}",
1289
1329
  path: {
1290
1330
  "id": id
1291
1331
  },
1292
1332
  body: requestBody,
1293
1333
  mediaType: "application/json",
1294
1334
  errors: {
1335
+ 404: `Engine not found`,
1295
1336
  500: `Internal server error`
1296
1337
  }
1297
1338
  });
1298
1339
  }
1299
1340
  /**
1300
- * Delete Environment Type
1301
- * Delete an existing environment type
1341
+ * Delete Dynamic Secret Engine
1342
+ * Delete a dynamic secret engine (must have no active leases)
1302
1343
  * @param id
1303
- * @returns DeleteEnvTypeRequest Environment type deleted successfully
1344
+ * @returns ErrorResponse Engine deleted successfully
1304
1345
  * @throws ApiError
1305
1346
  */
1306
- deleteEnvType(id) {
1347
+ deleteDynamicSecretEngine(id) {
1307
1348
  return this.httpRequest.request({
1308
1349
  method: "DELETE",
1309
- url: "/api/env_type/{id}",
1350
+ url: "/api/v1/manage/dynamic_secret/engines/{id}",
1310
1351
  path: {
1311
1352
  "id": id
1312
1353
  },
1313
1354
  errors: {
1355
+ 404: `Engine not found`,
1356
+ 409: `Engine has active leases`,
1314
1357
  500: `Internal server error`
1315
1358
  }
1316
1359
  });
1317
1360
  }
1318
- };
1319
-
1320
- // src/services/EnvironmentVariablesService.ts
1321
- var EnvironmentVariablesService = class {
1322
- constructor(httpRequest) {
1323
- this.httpRequest = httpRequest;
1324
- }
1325
1361
  /**
1326
- * Export Environment
1327
- * Export environment variables and optionally secrets for an application environment in a single payload.
1362
+ * Create Dynamic Secret Lease
1363
+ * Generate short-lived credentials by creating a lease on an engine
1364
+ * @param id
1328
1365
  * @param requestBody
1329
- * @returns ExportEnvResponse Environment exported successfully
1366
+ * @returns DynamicSecretLeaseResponse Lease created successfully
1330
1367
  * @throws ApiError
1331
1368
  */
1332
- exportEnvironment(requestBody) {
1369
+ createDynamicSecretLease(id, requestBody) {
1333
1370
  return this.httpRequest.request({
1334
1371
  method: "POST",
1335
- url: "/api/env/export",
1372
+ url: "/api/v1/manage/dynamic_secret/engines/{id}/leases",
1373
+ path: {
1374
+ "id": id
1375
+ },
1336
1376
  body: requestBody,
1337
1377
  mediaType: "application/json",
1338
1378
  errors: {
1339
- 400: `Invalid export request`
1379
+ 400: `Validation error`,
1380
+ 404: `Engine not found`,
1381
+ 500: `Internal server error`
1340
1382
  }
1341
1383
  });
1342
1384
  }
1343
1385
  /**
1344
- * Get Environment Variables
1345
- * Retrieve all environment variables for an application and environment type
1346
- * @param requestBody
1347
- * @returns EnvsResponse Environment variables retrieved successfully
1386
+ * Get Leases for Engine
1387
+ * Retrieve all leases for a specific dynamic secret engine
1388
+ * @param id
1389
+ * @returns DynamicSecretLeasesResponse Leases retrieved successfully
1348
1390
  * @throws ApiError
1349
1391
  */
1350
- getEnvs(requestBody) {
1392
+ getDynamicSecretLeases(id) {
1351
1393
  return this.httpRequest.request({
1352
- method: "POST",
1353
- url: "/api/env",
1354
- body: requestBody,
1355
- mediaType: "application/json",
1394
+ method: "GET",
1395
+ url: "/api/v1/manage/dynamic_secret/engines/{id}/leases",
1396
+ path: {
1397
+ "id": id
1398
+ },
1356
1399
  errors: {
1400
+ 404: `Engine not found`,
1357
1401
  500: `Internal server error`
1358
1402
  }
1359
1403
  });
1360
1404
  }
1361
1405
  /**
1362
- * Delete Environment Variable
1363
- * Delete an existing environment variable
1364
- * @param requestBody
1365
- * @returns DeleteEnvRequest Environment variable deleted successfully
1406
+ * Get Dynamic Secret Lease
1407
+ * Retrieve a specific lease by ID
1408
+ * @param leaseId
1409
+ * @returns DynamicSecretLeaseResponse Lease retrieved successfully
1366
1410
  * @throws ApiError
1367
1411
  */
1368
- deleteEnv(requestBody) {
1412
+ getDynamicSecretLease(leaseId) {
1369
1413
  return this.httpRequest.request({
1370
- method: "DELETE",
1371
- url: "/api/env",
1372
- body: requestBody,
1373
- mediaType: "application/json",
1414
+ method: "GET",
1415
+ url: "/api/v1/manage/dynamic_secret/leases/{leaseId}",
1416
+ path: {
1417
+ "leaseId": leaseId
1418
+ },
1374
1419
  errors: {
1420
+ 404: `Lease not found`,
1375
1421
  500: `Internal server error`
1376
1422
  }
1377
1423
  });
1378
1424
  }
1379
1425
  /**
1380
- * Get Single Environment Variable
1381
- * Retrieve a specific environment variable
1382
- * @param key
1383
- * @param requestBody
1384
- * @returns EnvResponse Environment variable retrieved successfully
1426
+ * Revoke Dynamic Secret Lease
1427
+ * Revoke a lease and its associated credentials
1428
+ * @param leaseId
1429
+ * @returns RevokeLeaseResponse Lease revoked successfully
1385
1430
  * @throws ApiError
1386
1431
  */
1387
- getEnv(key, requestBody) {
1432
+ revokeDynamicSecretLease(leaseId) {
1388
1433
  return this.httpRequest.request({
1389
1434
  method: "POST",
1390
- url: "/api/env/i/{key}",
1435
+ url: "/api/v1/manage/dynamic_secret/leases/{leaseId}/revoke",
1391
1436
  path: {
1392
- "key": key
1437
+ "leaseId": leaseId
1393
1438
  },
1394
- body: requestBody,
1395
- mediaType: "application/json",
1396
1439
  errors: {
1440
+ 404: `Lease not found`,
1441
+ 409: `Lease already revoked`,
1397
1442
  500: `Internal server error`
1398
1443
  }
1399
1444
  });
1400
1445
  }
1401
1446
  /**
1402
- * Update Environment Variable
1403
- * Update an existing environment variable
1404
- * @param key
1405
- * @param requestBody
1406
- * @returns EnvResponse Environment variable updated successfully
1447
+ * Cleanup Expired Leases
1448
+ * Mark all expired leases as revoked (admin operation)
1449
+ * @returns CleanupResponse Cleanup completed
1407
1450
  * @throws ApiError
1408
1451
  */
1409
- updateEnv(key, requestBody) {
1452
+ cleanupExpiredLeases() {
1410
1453
  return this.httpRequest.request({
1411
- method: "PATCH",
1412
- url: "/api/env/i/{key}",
1413
- path: {
1414
- "key": key
1415
- },
1416
- body: requestBody,
1417
- mediaType: "application/json",
1454
+ method: "POST",
1455
+ url: "/api/v1/manage/dynamic_secret/leases/cleanup",
1418
1456
  errors: {
1419
1457
  500: `Internal server error`
1420
1458
  }
1421
1459
  });
1422
1460
  }
1461
+ };
1462
+
1463
+ // src/services/EnterpriseService.ts
1464
+ var EnterpriseService = class {
1465
+ constructor(httpRequest) {
1466
+ this.httpRequest = httpRequest;
1467
+ }
1423
1468
  /**
1424
- * Create Environment Variable
1425
- * Create a new environment variable
1426
- * @param requestBody
1427
- * @returns EnvResponse Environment variable created successfully
1469
+ * List Enterprise Providers
1470
+ * @returns EnterpriseProvidersResponse Enterprise provider catalog
1428
1471
  * @throws ApiError
1429
1472
  */
1430
- createEnv(requestBody) {
1473
+ listEnterpriseProviders() {
1431
1474
  return this.httpRequest.request({
1432
- method: "PUT",
1433
- url: "/api/env/single",
1434
- body: requestBody,
1435
- mediaType: "application/json",
1475
+ method: "GET",
1476
+ url: "/api/v1/manage/enterprise/providers",
1436
1477
  errors: {
1437
1478
  500: `Internal server error`
1438
1479
  }
1439
1480
  });
1440
1481
  }
1441
1482
  /**
1442
- * Batch Create Environment Variables
1443
- * Create multiple environment variables in a single request
1444
- * @param requestBody
1445
- * @returns BatchEnvsResponse Environment variables created successfully
1483
+ * Get Enterprise Org Secret Model
1484
+ * @returns OrgSecretModelResponse Org secret model
1446
1485
  * @throws ApiError
1447
1486
  */
1448
- batchCreateEnvs(requestBody) {
1487
+ getEnterpriseOrgSecretModel() {
1449
1488
  return this.httpRequest.request({
1450
- method: "PUT",
1451
- url: "/api/env/batch",
1452
- body: requestBody,
1453
- mediaType: "application/json",
1489
+ method: "GET",
1490
+ url: "/api/v1/manage/enterprise/org-secrets/model",
1454
1491
  errors: {
1455
1492
  500: `Internal server error`
1456
1493
  }
1457
1494
  });
1458
1495
  }
1459
1496
  /**
1460
- * Batch Update Environment Variables
1461
- * Update multiple environment variables in a single request
1462
- * @param requestBody
1463
- * @returns BatchEnvsResponse Environment variables updated successfully
1497
+ * List Enterprise Provider Connections
1498
+ * @returns ProviderConnectionsResponse Provider connections
1464
1499
  * @throws ApiError
1465
1500
  */
1466
- batchUpdateEnvs(requestBody) {
1501
+ listEnterpriseProviderConnections() {
1467
1502
  return this.httpRequest.request({
1468
- method: "PATCH",
1469
- url: "/api/env/batch",
1470
- body: requestBody,
1471
- mediaType: "application/json",
1503
+ method: "GET",
1504
+ url: "/api/v1/manage/enterprise/provider-connections",
1472
1505
  errors: {
1473
1506
  500: `Internal server error`
1474
1507
  }
1475
1508
  });
1476
1509
  }
1477
1510
  /**
1478
- * Batch Delete Environment Variables
1479
- * Delete multiple environment variables in a single request
1511
+ * Create Enterprise Provider Connection
1480
1512
  * @param requestBody
1481
- * @returns BatchEnvsResponse Environment variables deleted successfully
1513
+ * @returns ProviderConnection Provider connection created
1482
1514
  * @throws ApiError
1483
1515
  */
1484
- deleteBatchEnv(requestBody) {
1516
+ createEnterpriseProviderConnection(requestBody) {
1485
1517
  return this.httpRequest.request({
1486
- method: "DELETE",
1487
- url: "/api/env/batch",
1518
+ method: "POST",
1519
+ url: "/api/v1/manage/enterprise/provider-connections",
1488
1520
  body: requestBody,
1489
1521
  mediaType: "application/json",
1490
1522
  errors: {
@@ -1492,24 +1524,20 @@ var EnvironmentVariablesService = class {
1492
1524
  }
1493
1525
  });
1494
1526
  }
1495
- };
1496
-
1497
- // src/services/EnvironmentVariablesPointInTimeService.ts
1498
- var EnvironmentVariablesPointInTimeService = class {
1499
- constructor(httpRequest) {
1500
- this.httpRequest = httpRequest;
1501
- }
1502
1527
  /**
1503
- * Get Environment Variables History
1504
- * Retrieve paginated history of environment variable changes
1528
+ * Update Enterprise Provider Connection
1529
+ * @param id
1505
1530
  * @param requestBody
1506
- * @returns EnvHistoryResponse Environment variables history retrieved successfully
1531
+ * @returns ProviderConnection Provider connection updated
1507
1532
  * @throws ApiError
1508
1533
  */
1509
- getEnvHistory(requestBody) {
1534
+ updateEnterpriseProviderConnection(id, requestBody) {
1510
1535
  return this.httpRequest.request({
1511
- method: "POST",
1512
- url: "/api/env/history",
1536
+ method: "PATCH",
1537
+ url: "/api/v1/manage/enterprise/provider-connections/{id}",
1538
+ path: {
1539
+ "id": id
1540
+ },
1513
1541
  body: requestBody,
1514
1542
  mediaType: "application/json",
1515
1543
  errors: {
@@ -1518,34 +1546,29 @@ var EnvironmentVariablesPointInTimeService = class {
1518
1546
  });
1519
1547
  }
1520
1548
  /**
1521
- * Get Environment Variables at Point in Time
1522
- * Retrieve environment variables state at a specific point in time
1523
- * @param requestBody
1524
- * @returns EnvPitStateResponse Environment variables at point in time retrieved successfully
1549
+ * List Enterprise Org Secrets
1550
+ * @returns OrgSecretsResponse Org secrets
1525
1551
  * @throws ApiError
1526
1552
  */
1527
- getEnvsAtPointInTime(requestBody) {
1553
+ listEnterpriseOrgSecrets() {
1528
1554
  return this.httpRequest.request({
1529
- method: "POST",
1530
- url: "/api/env/pit",
1531
- body: requestBody,
1532
- mediaType: "application/json",
1555
+ method: "GET",
1556
+ url: "/api/v1/manage/enterprise/org-secrets",
1533
1557
  errors: {
1534
1558
  500: `Internal server error`
1535
1559
  }
1536
1560
  });
1537
1561
  }
1538
1562
  /**
1539
- * Get Environment Variables at Timestamp
1540
- * Retrieve environment variables state at a specific timestamp
1563
+ * Create Enterprise Org Secret
1541
1564
  * @param requestBody
1542
- * @returns EnvPitStateResponse Environment variables at timestamp retrieved successfully
1565
+ * @returns OrgSecret Org secret created
1543
1566
  * @throws ApiError
1544
1567
  */
1545
- getEnvsAtTimestamp(requestBody) {
1568
+ createEnterpriseOrgSecret(requestBody) {
1546
1569
  return this.httpRequest.request({
1547
1570
  method: "POST",
1548
- url: "/api/env/timestamp",
1571
+ url: "/api/v1/manage/enterprise/org-secrets",
1549
1572
  body: requestBody,
1550
1573
  mediaType: "application/json",
1551
1574
  errors: {
@@ -1554,16 +1577,19 @@ var EnvironmentVariablesPointInTimeService = class {
1554
1577
  });
1555
1578
  }
1556
1579
  /**
1557
- * Get Environment Variables Diff
1558
- * Compare environment variables between two points in time
1580
+ * Update Enterprise Org Secret
1581
+ * @param id
1559
1582
  * @param requestBody
1560
- * @returns EnvDiffResponse Environment variables diff retrieved successfully
1583
+ * @returns OrgSecret Org secret updated
1561
1584
  * @throws ApiError
1562
1585
  */
1563
- getEnvDiff(requestBody) {
1586
+ updateEnterpriseOrgSecret(id, requestBody) {
1564
1587
  return this.httpRequest.request({
1565
- method: "POST",
1566
- url: "/api/env/diff",
1588
+ method: "PATCH",
1589
+ url: "/api/v1/manage/enterprise/org-secrets/{id}",
1590
+ path: {
1591
+ "id": id
1592
+ },
1567
1593
  body: requestBody,
1568
1594
  mediaType: "application/json",
1569
1595
  errors: {
@@ -1572,37 +1598,36 @@ var EnvironmentVariablesPointInTimeService = class {
1572
1598
  });
1573
1599
  }
1574
1600
  /**
1575
- * Get Environment Variables Diff By Timestamp Range
1576
- * Compare environment variables between two timestamps
1577
- * @param requestBody
1578
- * @returns EnvDiffResponse Environment variables timestamp-range diff retrieved successfully
1601
+ * List Enterprise Integration Bindings
1602
+ * @param appId
1603
+ * @returns IntegrationBindingsResponse Integration bindings
1579
1604
  * @throws ApiError
1580
1605
  */
1581
- getEnvDiffByTimestampRange(requestBody) {
1606
+ listEnterpriseIntegrationBindings(appId) {
1582
1607
  return this.httpRequest.request({
1583
- method: "POST",
1584
- url: "/api/env/diff/timestamp-range",
1585
- body: requestBody,
1586
- mediaType: "application/json",
1608
+ method: "GET",
1609
+ url: "/api/v1/manage/enterprise/apps/{app_id}/bindings",
1610
+ path: {
1611
+ "app_id": appId
1612
+ },
1587
1613
  errors: {
1588
1614
  500: `Internal server error`
1589
1615
  }
1590
1616
  });
1591
1617
  }
1592
1618
  /**
1593
- * Get Variable Timeline
1594
- * Get timeline of changes for a specific environment variable
1595
- * @param key
1619
+ * Create Enterprise Integration Binding
1620
+ * @param appId
1596
1621
  * @param requestBody
1597
- * @returns VariableTimelineResponse Variable timeline retrieved successfully
1622
+ * @returns IntegrationBinding Integration binding created
1598
1623
  * @throws ApiError
1599
1624
  */
1600
- getVariableTimeline(key, requestBody) {
1625
+ createEnterpriseIntegrationBinding(appId, requestBody) {
1601
1626
  return this.httpRequest.request({
1602
1627
  method: "POST",
1603
- url: "/api/env/timeline/{key}",
1628
+ url: "/api/v1/manage/enterprise/apps/{app_id}/bindings",
1604
1629
  path: {
1605
- "key": key
1630
+ "app_id": appId
1606
1631
  },
1607
1632
  body: requestBody,
1608
1633
  mediaType: "application/json",
@@ -1611,24 +1636,22 @@ var EnvironmentVariablesPointInTimeService = class {
1611
1636
  }
1612
1637
  });
1613
1638
  }
1614
- };
1615
-
1616
- // src/services/EnvironmentVariablesRollbackService.ts
1617
- var EnvironmentVariablesRollbackService = class {
1618
- constructor(httpRequest) {
1619
- this.httpRequest = httpRequest;
1620
- }
1621
1639
  /**
1622
- * Rollback Environment Variables to Point in Time
1623
- * Rollback all environment variables to a specific point in time
1640
+ * Update Enterprise Integration Binding
1641
+ * @param appId
1642
+ * @param id
1624
1643
  * @param requestBody
1625
- * @returns RollbackResponse Environment variables rolled back successfully
1644
+ * @returns IntegrationBinding Integration binding updated
1626
1645
  * @throws ApiError
1627
1646
  */
1628
- rollbackEnvsToPitId(requestBody) {
1647
+ updateEnterpriseIntegrationBinding(appId, id, requestBody) {
1629
1648
  return this.httpRequest.request({
1630
- method: "POST",
1631
- url: "/api/env/rollback/pit",
1649
+ method: "PATCH",
1650
+ url: "/api/v1/manage/enterprise/apps/{app_id}/bindings/{id}",
1651
+ path: {
1652
+ "app_id": appId,
1653
+ "id": id
1654
+ },
1632
1655
  body: requestBody,
1633
1656
  mediaType: "application/json",
1634
1657
  errors: {
@@ -1637,37 +1660,36 @@ var EnvironmentVariablesRollbackService = class {
1637
1660
  });
1638
1661
  }
1639
1662
  /**
1640
- * Rollback Environment Variables to Timestamp
1641
- * Rollback all environment variables to a specific timestamp
1642
- * @param requestBody
1643
- * @returns RollbackResponse Environment variables rolled back successfully
1663
+ * List Enterprise Env-Type Mappings
1664
+ * @param appId
1665
+ * @returns EnvTypeMappingsResponse Env-type mappings
1644
1666
  * @throws ApiError
1645
1667
  */
1646
- rollbackEnvsToTimestamp(requestBody) {
1668
+ listEnterpriseEnvTypeMappings(appId) {
1647
1669
  return this.httpRequest.request({
1648
- method: "POST",
1649
- url: "/api/env/rollback/timestamp",
1650
- body: requestBody,
1651
- mediaType: "application/json",
1670
+ method: "GET",
1671
+ url: "/api/v1/manage/enterprise/apps/{app_id}/env-type-mappings",
1672
+ path: {
1673
+ "app_id": appId
1674
+ },
1652
1675
  errors: {
1653
1676
  500: `Internal server error`
1654
1677
  }
1655
1678
  });
1656
1679
  }
1657
1680
  /**
1658
- * Rollback Single Variable to Point in Time
1659
- * Rollback a specific environment variable to a point in time
1660
- * @param key
1681
+ * Create Enterprise Env-Type Mapping
1682
+ * @param appId
1661
1683
  * @param requestBody
1662
- * @returns VariableRollbackResponse Variable rolled back successfully
1684
+ * @returns EnvTypeMapping Env-type mapping created
1663
1685
  * @throws ApiError
1664
1686
  */
1665
- rollbackVariableToPitId(key, requestBody) {
1687
+ createEnterpriseEnvTypeMapping(appId, requestBody) {
1666
1688
  return this.httpRequest.request({
1667
1689
  method: "POST",
1668
- url: "/api/env/rollback/variable/{key}/pit",
1690
+ url: "/api/v1/manage/enterprise/apps/{app_id}/env-type-mappings",
1669
1691
  path: {
1670
- "key": key
1692
+ "app_id": appId
1671
1693
  },
1672
1694
  body: requestBody,
1673
1695
  mediaType: "application/json",
@@ -1677,19 +1699,20 @@ var EnvironmentVariablesRollbackService = class {
1677
1699
  });
1678
1700
  }
1679
1701
  /**
1680
- * Rollback Single Variable to Timestamp
1681
- * Rollback a specific environment variable to a timestamp
1682
- * @param key
1702
+ * Update Enterprise Env-Type Mapping
1703
+ * @param appId
1704
+ * @param id
1683
1705
  * @param requestBody
1684
- * @returns VariableRollbackResponse Variable rolled back successfully
1706
+ * @returns EnvTypeMapping Env-type mapping updated
1685
1707
  * @throws ApiError
1686
1708
  */
1687
- rollbackVariableToTimestamp(key, requestBody) {
1709
+ updateEnterpriseEnvTypeMapping(appId, id, requestBody) {
1688
1710
  return this.httpRequest.request({
1689
- method: "POST",
1690
- url: "/api/env/rollback/variable/{key}/timestamp",
1711
+ method: "PATCH",
1712
+ url: "/api/v1/manage/enterprise/apps/{app_id}/env-type-mappings/{id}",
1691
1713
  path: {
1692
- "key": key
1714
+ "app_id": appId,
1715
+ "id": id
1693
1716
  },
1694
1717
  body: requestBody,
1695
1718
  mediaType: "application/json",
@@ -1698,26 +1721,50 @@ var EnvironmentVariablesRollbackService = class {
1698
1721
  }
1699
1722
  });
1700
1723
  }
1701
- };
1702
-
1703
- // src/services/FileUploadService.ts
1704
- var FileUploadService = class {
1705
- constructor(httpRequest) {
1706
- this.httpRequest = httpRequest;
1724
+ /**
1725
+ * List Enterprise Sync Runs
1726
+ * @returns SyncRunsResponse Sync runs
1727
+ * @throws ApiError
1728
+ */
1729
+ listEnterpriseSyncRuns() {
1730
+ return this.httpRequest.request({
1731
+ method: "GET",
1732
+ url: "/api/v1/manage/enterprise/sync-runs",
1733
+ errors: {
1734
+ 500: `Internal server error`
1735
+ }
1736
+ });
1707
1737
  }
1708
1738
  /**
1709
- * Upload File
1710
- * Upload a file to the server. The file should be less than 5MB in size.
1711
- * @param formData
1712
- * @returns UploadFileResponse File uploaded successfully
1739
+ * Create Enterprise Manual Sync Run
1740
+ * @param requestBody
1741
+ * @returns SyncRun Sync run created
1713
1742
  * @throws ApiError
1714
1743
  */
1715
- uploadFile(formData) {
1744
+ createEnterpriseManualSyncRun(requestBody) {
1716
1745
  return this.httpRequest.request({
1717
1746
  method: "POST",
1718
- url: "/api/upload/file",
1719
- formData,
1720
- mediaType: "multipart/form-data",
1747
+ url: "/api/v1/manage/enterprise/sync-runs/manual",
1748
+ body: requestBody,
1749
+ mediaType: "application/json",
1750
+ errors: {
1751
+ 500: `Internal server error`
1752
+ }
1753
+ });
1754
+ }
1755
+ /**
1756
+ * List Enterprise Sync Audit Events
1757
+ * @param syncRunId
1758
+ * @returns SyncAuditEventsResponse Sync audit events
1759
+ * @throws ApiError
1760
+ */
1761
+ listEnterpriseSyncAuditEvents(syncRunId) {
1762
+ return this.httpRequest.request({
1763
+ method: "GET",
1764
+ url: "/api/v1/manage/enterprise/sync-runs/{sync_run_id}/events",
1765
+ path: {
1766
+ "sync_run_id": syncRunId
1767
+ },
1721
1768
  errors: {
1722
1769
  500: `Internal server error`
1723
1770
  }
@@ -1725,58 +1772,82 @@ var FileUploadService = class {
1725
1772
  }
1726
1773
  };
1727
1774
 
1728
- // src/services/GpgKeysService.ts
1729
- var GpgKeysService = class {
1775
+ // src/services/EnterpriseCmkService.ts
1776
+ var EnterpriseCmkService = class {
1730
1777
  constructor(httpRequest) {
1731
1778
  this.httpRequest = httpRequest;
1732
1779
  }
1733
1780
  /**
1734
- * Generate GPG Key
1735
- * Generate a new GPG key pair for the organization
1736
- * @param requestBody
1737
- * @returns GpgKeyResponse GPG key generated successfully
1781
+ * Break-glass detach organization CMK
1782
+ * Hosted platform API. Enqueues detach-to-managed even if the org lost the kms grant or status is unavailable. Does not call ensureTenantKek.
1783
+ * @param xEnvSyncPlatformToken
1784
+ * @param orgId
1785
+ * @returns OrgKmsJobResponse Already on managed wrapping
1738
1786
  * @throws ApiError
1739
1787
  */
1740
- generateGpgKey(requestBody) {
1788
+ breakGlassDetachOrgKms(xEnvSyncPlatformToken, orgId) {
1741
1789
  return this.httpRequest.request({
1742
- method: "PUT",
1743
- url: "/api/gpg_key/generate",
1744
- body: requestBody,
1745
- mediaType: "application/json",
1790
+ method: "POST",
1791
+ url: "/api/v1/manage/kms/{orgId}/break-glass-detach",
1792
+ path: {
1793
+ "orgId": orgId
1794
+ },
1795
+ headers: {
1796
+ "X-EnvSync-Platform-Token": xEnvSyncPlatformToken
1797
+ },
1746
1798
  errors: {
1799
+ 401: `Invalid platform token`,
1800
+ 403: `Not hosted`,
1747
1801
  500: `Internal server error`
1748
1802
  }
1749
1803
  });
1750
1804
  }
1751
1805
  /**
1752
- * Import GPG Key
1753
- * Import an existing GPG key into the organization
1806
+ * Get organization KMS config
1807
+ * Returns implicit managed/active when no org_kms_config row exists. Never returns key material.
1808
+ * @returns OrgKmsConfigResponse Organization KMS config
1809
+ * @throws ApiError
1810
+ */
1811
+ getOrgKmsConfig() {
1812
+ return this.httpRequest.request({
1813
+ method: "GET",
1814
+ url: "/api/v1/manage/kms",
1815
+ errors: {
1816
+ 500: `Internal server error`
1817
+ }
1818
+ });
1819
+ }
1820
+ /**
1821
+ * Update organization KMS config
1822
+ * Self-host cloud sources return 403 CMK_HOSTED_ONLY. Hosted persists cloud source as pending until attach.
1754
1823
  * @param requestBody
1755
- * @returns GpgKeyResponse GPG key imported successfully
1824
+ * @returns OrgKmsConfigResponse Organization KMS config updated
1756
1825
  * @throws ApiError
1757
1826
  */
1758
- importGpgKey(requestBody) {
1827
+ updateOrgKmsConfig(requestBody) {
1759
1828
  return this.httpRequest.request({
1760
1829
  method: "PUT",
1761
- url: "/api/gpg_key/import",
1830
+ url: "/api/v1/manage/kms",
1762
1831
  body: requestBody,
1763
1832
  mediaType: "application/json",
1764
1833
  errors: {
1834
+ 403: `Cloud CMK is Hosted-only`,
1835
+ 409: `A rewrap job is already running`,
1765
1836
  500: `Internal server error`
1766
1837
  }
1767
1838
  });
1768
1839
  }
1769
1840
  /**
1770
- * Sign Data
1771
- * Sign data using a GPG key
1841
+ * Create a purpose=kms org secret
1842
+ * Encrypts the value under scope __kms_config__ before insert. Does not require the integrations feature.
1772
1843
  * @param requestBody
1773
- * @returns SignatureResponse Data signed successfully
1844
+ * @returns OrgKmsCredentialResponse Credential created (value redacted)
1774
1845
  * @throws ApiError
1775
1846
  */
1776
- signDataWithGpgKey(requestBody) {
1847
+ createOrgKmsCredential(requestBody) {
1777
1848
  return this.httpRequest.request({
1778
1849
  method: "POST",
1779
- url: "/api/gpg_key/sign",
1850
+ url: "/api/v1/manage/kms/credentials",
1780
1851
  body: requestBody,
1781
1852
  mediaType: "application/json",
1782
1853
  errors: {
@@ -1785,110 +1856,137 @@ var GpgKeysService = class {
1785
1856
  });
1786
1857
  }
1787
1858
  /**
1788
- * Verify Signature
1789
- * Verify a GPG signature
1790
- * @param requestBody
1791
- * @returns VerifyResponse Verification result
1859
+ * Verify organization KMS
1860
+ * Managed source succeeds immediately. Cloud verify unwraps or first-wraps the tenant KEK.
1861
+ * @returns OrgKmsVerifyResponse Verify result
1792
1862
  * @throws ApiError
1793
1863
  */
1794
- verifyGpgSignature(requestBody) {
1864
+ verifyOrgKms() {
1795
1865
  return this.httpRequest.request({
1796
1866
  method: "POST",
1797
- url: "/api/gpg_key/verify",
1798
- body: requestBody,
1799
- mediaType: "application/json",
1867
+ url: "/api/v1/manage/kms/verify",
1868
+ errors: {
1869
+ 500: `Internal server error`,
1870
+ 503: `CMK unavailable`
1871
+ }
1872
+ });
1873
+ }
1874
+ /**
1875
+ * Rotate organization KEK
1876
+ * Re-wraps wrapped_kek under the current key_ref. Hosted cloud-only; does not rewrap DEKs.
1877
+ * @returns OrgKmsConfigResponse KEK rotated
1878
+ * @throws ApiError
1879
+ */
1880
+ rotateOrgKmsKek() {
1881
+ return this.httpRequest.request({
1882
+ method: "POST",
1883
+ url: "/api/v1/manage/kms/rotate-kek",
1800
1884
  errors: {
1801
1885
  500: `Internal server error`
1802
1886
  }
1803
1887
  });
1804
1888
  }
1805
1889
  /**
1806
- * List GPG Keys
1807
- * List all GPG keys for the organization
1808
- * @returns GpgKeysResponse GPG keys retrieved successfully
1890
+ * Attach organization CMK
1891
+ * Enqueues DEK rewrap under the tenant KEK with allow_root_unwrap during the attach window. Hosted only.
1892
+ * @returns OrgKmsJobResponse Attach job enqueued
1809
1893
  * @throws ApiError
1810
1894
  */
1811
- listGpgKeys() {
1895
+ attachOrgKms() {
1812
1896
  return this.httpRequest.request({
1813
- method: "GET",
1814
- url: "/api/gpg_key",
1897
+ method: "POST",
1898
+ url: "/api/v1/manage/kms/attach",
1815
1899
  errors: {
1900
+ 403: `Cloud CMK is Hosted-only`,
1901
+ 409: `A rewrap job is already running`,
1816
1902
  500: `Internal server error`
1817
1903
  }
1818
1904
  });
1819
1905
  }
1820
1906
  /**
1821
- * Get GPG Key
1822
- * Retrieve a specific GPG key
1823
- * @param id
1824
- * @returns GpgKeyDetailResponse GPG key retrieved successfully
1907
+ * Detach organization CMK to managed
1908
+ * Enqueues detach_managed. Does not call ensureTenantKek when status is unavailable.
1909
+ * @returns OrgKmsJobResponse Detach job enqueued
1825
1910
  * @throws ApiError
1826
1911
  */
1827
- getGpgKey(id) {
1912
+ detachOrgKms() {
1828
1913
  return this.httpRequest.request({
1829
- method: "GET",
1830
- url: "/api/gpg_key/{id}",
1831
- path: {
1832
- "id": id
1833
- },
1914
+ method: "POST",
1915
+ url: "/api/v1/manage/kms/detach",
1834
1916
  errors: {
1917
+ 409: `A rewrap job is already running`,
1835
1918
  500: `Internal server error`
1836
1919
  }
1837
1920
  });
1838
1921
  }
1839
1922
  /**
1840
- * Delete GPG Key
1841
- * Delete a GPG key from the organization
1923
+ * Get organization KMS job
1842
1924
  * @param id
1843
- * @returns GpgKeyResponse GPG key deleted successfully
1925
+ * @returns OrgKmsJobResponse KMS job
1844
1926
  * @throws ApiError
1845
1927
  */
1846
- deleteGpgKey(id) {
1928
+ getOrgKmsJob(id) {
1847
1929
  return this.httpRequest.request({
1848
- method: "DELETE",
1849
- url: "/api/gpg_key/{id}",
1930
+ method: "GET",
1931
+ url: "/api/v1/manage/kms/jobs/{id}",
1850
1932
  path: {
1851
1933
  "id": id
1852
1934
  },
1853
1935
  errors: {
1936
+ 404: `Job not found`,
1854
1937
  500: `Internal server error`
1855
1938
  }
1856
1939
  });
1857
1940
  }
1858
1941
  /**
1859
- * Export GPG Public Key
1860
- * Export the ASCII-armored public key
1861
- * @param id
1862
- * @returns ExportKeyResponse Public key exported successfully
1942
+ * List per-app KMS key info
1943
+ * Calls GetKeyInfo per app. Never returns key material.
1944
+ * @returns OrgKmsAppsResponse Per-app key metadata
1863
1945
  * @throws ApiError
1864
1946
  */
1865
- exportGpgPublicKey(id) {
1947
+ listOrgKmsApps() {
1866
1948
  return this.httpRequest.request({
1867
1949
  method: "GET",
1868
- url: "/api/gpg_key/{id}/export",
1869
- path: {
1870
- "id": id
1871
- },
1950
+ url: "/api/v1/manage/kms/apps",
1951
+ errors: {
1952
+ 500: `Internal server error`,
1953
+ 503: `CMK unavailable`
1954
+ }
1955
+ });
1956
+ }
1957
+ };
1958
+
1959
+ // src/services/EnvironmentTypesService.ts
1960
+ var EnvironmentTypesService = class {
1961
+ constructor(httpRequest) {
1962
+ this.httpRequest = httpRequest;
1963
+ }
1964
+ /**
1965
+ * Get Environment Types
1966
+ * Retrieve all environment types for the organization
1967
+ * @returns EnvTypesResponse Environment types retrieved successfully
1968
+ * @throws ApiError
1969
+ */
1970
+ getEnvTypes() {
1971
+ return this.httpRequest.request({
1972
+ method: "GET",
1973
+ url: "/api/env_type",
1872
1974
  errors: {
1873
1975
  500: `Internal server error`
1874
1976
  }
1875
1977
  });
1876
1978
  }
1877
1979
  /**
1878
- * Revoke GPG Key
1879
- * Revoke a GPG key (keeps data but marks as revoked)
1880
- * @param id
1980
+ * Create Environment Type
1981
+ * Create a new environment type
1881
1982
  * @param requestBody
1882
- * @returns GpgKeyDetailResponse GPG key revoked successfully
1983
+ * @returns EnvTypeResponse Environment type created successfully
1883
1984
  * @throws ApiError
1884
1985
  */
1885
- revokeGpgKey(id, requestBody) {
1986
+ createEnvType(requestBody) {
1886
1987
  return this.httpRequest.request({
1887
1988
  method: "POST",
1888
- url: "/api/gpg_key/{id}/revoke",
1889
- path: {
1890
- "id": id
1891
- },
1989
+ url: "/api/env_type",
1892
1990
  body: requestBody,
1893
1991
  mediaType: "application/json",
1894
1992
  errors: {
@@ -1897,39 +1995,36 @@ var GpgKeysService = class {
1897
1995
  });
1898
1996
  }
1899
1997
  /**
1900
- * Rotate GPG Key
1901
- * Create a replacement GPG key, optionally promote it to default, and supersede the original key.
1998
+ * Get Environment Type
1999
+ * Retrieve a specific environment type
1902
2000
  * @param id
1903
- * @param requestBody
1904
- * @returns GpgKeyDetailResponse GPG key rotated successfully
2001
+ * @returns EnvTypeResponse Environment type retrieved successfully
1905
2002
  * @throws ApiError
1906
2003
  */
1907
- rotateGpgKey(id, requestBody) {
2004
+ getEnvType(id) {
1908
2005
  return this.httpRequest.request({
1909
- method: "POST",
1910
- url: "/api/gpg_key/{id}/rotate",
2006
+ method: "GET",
2007
+ url: "/api/env_type/{id}",
1911
2008
  path: {
1912
2009
  "id": id
1913
2010
  },
1914
- body: requestBody,
1915
- mediaType: "application/json",
1916
2011
  errors: {
1917
2012
  500: `Internal server error`
1918
2013
  }
1919
2014
  });
1920
2015
  }
1921
2016
  /**
1922
- * Extend GPG Key Expiry
1923
- * Extend the expiry date of an active GPG key without rotating it.
2017
+ * Update Environment Type
2018
+ * Update an existing environment type
1924
2019
  * @param id
1925
2020
  * @param requestBody
1926
- * @returns GpgKeyDetailResponse GPG key expiry extended successfully
2021
+ * @returns EnvTypeResponse Environment type updated successfully
1927
2022
  * @throws ApiError
1928
2023
  */
1929
- extendGpgKeyExpiry(id, requestBody) {
2024
+ updateEnvType(id, requestBody) {
1930
2025
  return this.httpRequest.request({
1931
- method: "POST",
1932
- url: "/api/gpg_key/{id}/extend-expiry",
2026
+ method: "PATCH",
2027
+ url: "/api/env_type/{id}",
1933
2028
  path: {
1934
2029
  "id": id
1935
2030
  },
@@ -1941,22 +2036,19 @@ var GpgKeysService = class {
1941
2036
  });
1942
2037
  }
1943
2038
  /**
1944
- * Update Trust Level
1945
- * Update the trust level of a GPG key
2039
+ * Delete Environment Type
2040
+ * Delete an existing environment type
1946
2041
  * @param id
1947
- * @param requestBody
1948
- * @returns GpgKeyDetailResponse Trust level updated successfully
2042
+ * @returns DeleteEnvTypeRequest Environment type deleted successfully
1949
2043
  * @throws ApiError
1950
2044
  */
1951
- updateGpgKeyTrustLevel(id, requestBody) {
2045
+ deleteEnvType(id) {
1952
2046
  return this.httpRequest.request({
1953
- method: "PATCH",
1954
- url: "/api/gpg_key/{id}/trust",
2047
+ method: "DELETE",
2048
+ url: "/api/env_type/{id}",
1955
2049
  path: {
1956
2050
  "id": id
1957
2051
  },
1958
- body: requestBody,
1959
- mediaType: "application/json",
1960
2052
  errors: {
1961
2053
  500: `Internal server error`
1962
2054
  }
@@ -1964,63 +2056,58 @@ var GpgKeysService = class {
1964
2056
  }
1965
2057
  };
1966
2058
 
1967
- // src/services/OnboardingService.ts
1968
- var OnboardingService = class {
2059
+ // src/services/EnvironmentVariablesService.ts
2060
+ var EnvironmentVariablesService = class {
1969
2061
  constructor(httpRequest) {
1970
2062
  this.httpRequest = httpRequest;
1971
2063
  }
1972
2064
  /**
1973
- * Create Organization Invite
1974
- * Create an organization invite
2065
+ * Export Environment
2066
+ * Export environment variables and optionally secrets for an application environment in a single payload.
1975
2067
  * @param requestBody
1976
- * @returns CreateOrgInviteResponse Successful greeting response
2068
+ * @returns ExportEnvResponse Environment exported successfully
1977
2069
  * @throws ApiError
1978
2070
  */
1979
- createOrgInvite(requestBody) {
2071
+ exportEnvironment(requestBody) {
1980
2072
  return this.httpRequest.request({
1981
2073
  method: "POST",
1982
- url: "/api/onboarding/org",
2074
+ url: "/api/env/export",
1983
2075
  body: requestBody,
1984
2076
  mediaType: "application/json",
1985
2077
  errors: {
1986
- 500: `Internal server error`
2078
+ 400: `Invalid export request`
1987
2079
  }
1988
2080
  });
1989
2081
  }
1990
2082
  /**
1991
- * Get Organization Invite by Code
1992
- * Get organization invite by code
1993
- * @param inviteCode
1994
- * @returns GetOrgInviteByCodeResponse Organization invite retrieved successfully
2083
+ * Get Environment Variables
2084
+ * Retrieve all environment variables for an application and environment type
2085
+ * @param requestBody
2086
+ * @returns EnvsResponse Environment variables retrieved successfully
1995
2087
  * @throws ApiError
1996
2088
  */
1997
- getOrgInviteByCode(inviteCode) {
2089
+ getEnvs(requestBody) {
1998
2090
  return this.httpRequest.request({
1999
- method: "GET",
2000
- url: "/api/onboarding/org/{invite_code}",
2001
- path: {
2002
- "invite_code": inviteCode
2003
- },
2091
+ method: "POST",
2092
+ url: "/api/env",
2093
+ body: requestBody,
2094
+ mediaType: "application/json",
2004
2095
  errors: {
2005
2096
  500: `Internal server error`
2006
2097
  }
2007
2098
  });
2008
2099
  }
2009
2100
  /**
2010
- * Accept Organization Invite
2011
- * Accept organization invite
2012
- * @param inviteCode
2101
+ * Delete Environment Variable
2102
+ * Delete an existing environment variable
2013
2103
  * @param requestBody
2014
- * @returns AcceptOrgInviteResponse Organization invite accepted successfully
2104
+ * @returns DeleteEnvRequest Environment variable deleted successfully
2015
2105
  * @throws ApiError
2016
2106
  */
2017
- acceptOrgInvite(inviteCode, requestBody) {
2107
+ deleteEnv(requestBody) {
2018
2108
  return this.httpRequest.request({
2019
- method: "PUT",
2020
- url: "/api/onboarding/org/{invite_code}/accept",
2021
- path: {
2022
- "invite_code": inviteCode
2023
- },
2109
+ method: "DELETE",
2110
+ url: "/api/env",
2024
2111
  body: requestBody,
2025
2112
  mediaType: "application/json",
2026
2113
  errors: {
@@ -2029,38 +2116,41 @@ var OnboardingService = class {
2029
2116
  });
2030
2117
  }
2031
2118
  /**
2032
- * Get User Invite by Code
2033
- * Get user invite by code
2034
- * @param inviteCode
2035
- * @returns GetUserInviteByTokenResponse User invite retrieved successfully
2119
+ * Get Single Environment Variable
2120
+ * Retrieve a specific environment variable
2121
+ * @param key
2122
+ * @param requestBody
2123
+ * @returns EnvResponse Environment variable retrieved successfully
2036
2124
  * @throws ApiError
2037
2125
  */
2038
- getUserInviteByCode(inviteCode) {
2126
+ getEnv(key, requestBody) {
2039
2127
  return this.httpRequest.request({
2040
- method: "GET",
2041
- url: "/api/onboarding/user/{invite_code}",
2128
+ method: "POST",
2129
+ url: "/api/env/i/{key}",
2042
2130
  path: {
2043
- "invite_code": inviteCode
2131
+ "key": key
2044
2132
  },
2133
+ body: requestBody,
2134
+ mediaType: "application/json",
2045
2135
  errors: {
2046
2136
  500: `Internal server error`
2047
2137
  }
2048
2138
  });
2049
2139
  }
2050
2140
  /**
2051
- * Update User Invite
2052
- * Update user invite
2053
- * @param inviteCode
2141
+ * Update Environment Variable
2142
+ * Update an existing environment variable
2143
+ * @param key
2054
2144
  * @param requestBody
2055
- * @returns UpdateUserInviteResponse User invite updated successfully
2145
+ * @returns EnvResponse Environment variable updated successfully
2056
2146
  * @throws ApiError
2057
2147
  */
2058
- updateUserInvite(inviteCode, requestBody) {
2148
+ updateEnv(key, requestBody) {
2059
2149
  return this.httpRequest.request({
2060
2150
  method: "PATCH",
2061
- url: "/api/onboarding/user/{invite_code}",
2151
+ url: "/api/env/i/{key}",
2062
2152
  path: {
2063
- "invite_code": inviteCode
2153
+ "key": key
2064
2154
  },
2065
2155
  body: requestBody,
2066
2156
  mediaType: "application/json",
@@ -2070,20 +2160,16 @@ var OnboardingService = class {
2070
2160
  });
2071
2161
  }
2072
2162
  /**
2073
- * Accept User Invite
2074
- * Accept user invite
2075
- * @param inviteCode
2163
+ * Create Environment Variable
2164
+ * Create a new environment variable
2076
2165
  * @param requestBody
2077
- * @returns AcceptUserInviteResponse User invite accepted successfully
2166
+ * @returns EnvResponse Environment variable created successfully
2078
2167
  * @throws ApiError
2079
2168
  */
2080
- acceptUserInvite(inviteCode, requestBody) {
2169
+ createEnv(requestBody) {
2081
2170
  return this.httpRequest.request({
2082
2171
  method: "PUT",
2083
- url: "/api/onboarding/user/{invite_code}/accept",
2084
- path: {
2085
- "invite_code": inviteCode
2086
- },
2172
+ url: "/api/env/single",
2087
2173
  body: requestBody,
2088
2174
  mediaType: "application/json",
2089
2175
  errors: {
@@ -2092,16 +2178,16 @@ var OnboardingService = class {
2092
2178
  });
2093
2179
  }
2094
2180
  /**
2095
- * Create User Invite
2096
- * Create a user invite
2181
+ * Batch Create Environment Variables
2182
+ * Create multiple environment variables in a single request
2097
2183
  * @param requestBody
2098
- * @returns CreateUserInviteResponse User invite created successfully
2184
+ * @returns BatchEnvsResponse Environment variables created successfully
2099
2185
  * @throws ApiError
2100
2186
  */
2101
- createUserInvite(requestBody) {
2187
+ batchCreateEnvs(requestBody) {
2102
2188
  return this.httpRequest.request({
2103
- method: "POST",
2104
- url: "/api/onboarding/user",
2189
+ method: "PUT",
2190
+ url: "/api/env/batch",
2105
2191
  body: requestBody,
2106
2192
  mediaType: "application/json",
2107
2193
  errors: {
@@ -2110,34 +2196,36 @@ var OnboardingService = class {
2110
2196
  });
2111
2197
  }
2112
2198
  /**
2113
- * Get All User Invites
2114
- * Get all user invites
2115
- * @returns GetUserInviteByTokenResponse User invites retrieved successfully
2199
+ * Batch Update Environment Variables
2200
+ * Update multiple environment variables in a single request
2201
+ * @param requestBody
2202
+ * @returns BatchEnvsResponse Environment variables updated successfully
2116
2203
  * @throws ApiError
2117
2204
  */
2118
- getAllUserInvites() {
2205
+ batchUpdateEnvs(requestBody) {
2119
2206
  return this.httpRequest.request({
2120
- method: "GET",
2121
- url: "/api/onboarding/user",
2207
+ method: "PATCH",
2208
+ url: "/api/env/batch",
2209
+ body: requestBody,
2210
+ mediaType: "application/json",
2122
2211
  errors: {
2123
2212
  500: `Internal server error`
2124
2213
  }
2125
2214
  });
2126
2215
  }
2127
2216
  /**
2128
- * Delete User Invite
2129
- * Delete user invite
2130
- * @param inviteId
2131
- * @returns DeleteUserInviteResponse User invite deleted successfully
2217
+ * Batch Delete Environment Variables
2218
+ * Delete multiple environment variables in a single request
2219
+ * @param requestBody
2220
+ * @returns BatchEnvsResponse Environment variables deleted successfully
2132
2221
  * @throws ApiError
2133
2222
  */
2134
- deleteUserInvite(inviteId) {
2223
+ deleteBatchEnv(requestBody) {
2135
2224
  return this.httpRequest.request({
2136
2225
  method: "DELETE",
2137
- url: "/api/onboarding/user/{invite_id}",
2138
- path: {
2139
- "invite_id": inviteId
2140
- },
2226
+ url: "/api/env/batch",
2227
+ body: requestBody,
2228
+ mediaType: "application/json",
2141
2229
  errors: {
2142
2230
  500: `Internal server error`
2143
2231
  }
@@ -2145,37 +2233,40 @@ var OnboardingService = class {
2145
2233
  }
2146
2234
  };
2147
2235
 
2148
- // src/services/OrganizationsService.ts
2149
- var OrganizationsService = class {
2236
+ // src/services/EnvironmentVariablesPointInTimeService.ts
2237
+ var EnvironmentVariablesPointInTimeService = class {
2150
2238
  constructor(httpRequest) {
2151
2239
  this.httpRequest = httpRequest;
2152
2240
  }
2153
2241
  /**
2154
- * Get Organization
2155
- * Retrieve the current organization's details
2156
- * @returns OrgResponse Organization retrieved successfully
2242
+ * Get Environment Variables History
2243
+ * Retrieve paginated history of environment variable changes
2244
+ * @param requestBody
2245
+ * @returns EnvHistoryResponse Environment variables history retrieved successfully
2157
2246
  * @throws ApiError
2158
2247
  */
2159
- getOrg() {
2248
+ getEnvHistory(requestBody) {
2160
2249
  return this.httpRequest.request({
2161
- method: "GET",
2162
- url: "/api/org",
2250
+ method: "POST",
2251
+ url: "/api/env/history",
2252
+ body: requestBody,
2253
+ mediaType: "application/json",
2163
2254
  errors: {
2164
2255
  500: `Internal server error`
2165
2256
  }
2166
2257
  });
2167
2258
  }
2168
2259
  /**
2169
- * Update Organization
2170
- * Update the current organization's details
2260
+ * Get Environment Variables at Point in Time
2261
+ * Retrieve environment variables state at a specific point in time
2171
2262
  * @param requestBody
2172
- * @returns OrgResponse Organization updated successfully
2263
+ * @returns EnvPitStateResponse Environment variables at point in time retrieved successfully
2173
2264
  * @throws ApiError
2174
2265
  */
2175
- updateOrg(requestBody) {
2266
+ getEnvsAtPointInTime(requestBody) {
2176
2267
  return this.httpRequest.request({
2177
- method: "PATCH",
2178
- url: "/api/org",
2268
+ method: "POST",
2269
+ url: "/api/env/pit",
2179
2270
  body: requestBody,
2180
2271
  mediaType: "application/json",
2181
2272
  errors: {
@@ -2184,16 +2275,16 @@ var OrganizationsService = class {
2184
2275
  });
2185
2276
  }
2186
2277
  /**
2187
- * Delete Organization
2188
- * Permanently delete the current organization
2278
+ * Get Environment Variables at Timestamp
2279
+ * Retrieve environment variables state at a specific timestamp
2189
2280
  * @param requestBody
2190
- * @returns DeleteOrgResponse Organization deleted successfully
2281
+ * @returns EnvPitStateResponse Environment variables at timestamp retrieved successfully
2191
2282
  * @throws ApiError
2192
2283
  */
2193
- deleteOrg(requestBody) {
2284
+ getEnvsAtTimestamp(requestBody) {
2194
2285
  return this.httpRequest.request({
2195
- method: "DELETE",
2196
- url: "/api/org",
2286
+ method: "POST",
2287
+ url: "/api/env/timestamp",
2197
2288
  body: requestBody,
2198
2289
  mediaType: "application/json",
2199
2290
  errors: {
@@ -2202,19 +2293,58 @@ var OrganizationsService = class {
2202
2293
  });
2203
2294
  }
2204
2295
  /**
2205
- * Check Slug Availability
2206
- * Check if an organization slug is available
2207
- * @param slug
2208
- * @returns CheckSlugResponse Slug availability checked successfully
2296
+ * Get Environment Variables Diff
2297
+ * Compare environment variables between two points in time
2298
+ * @param requestBody
2299
+ * @returns EnvDiffResponse Environment variables diff retrieved successfully
2209
2300
  * @throws ApiError
2210
2301
  */
2211
- checkIfSlugExists(slug) {
2302
+ getEnvDiff(requestBody) {
2212
2303
  return this.httpRequest.request({
2213
- method: "GET",
2214
- url: "/api/org/check-slug",
2215
- query: {
2216
- "slug": slug
2304
+ method: "POST",
2305
+ url: "/api/env/diff",
2306
+ body: requestBody,
2307
+ mediaType: "application/json",
2308
+ errors: {
2309
+ 500: `Internal server error`
2310
+ }
2311
+ });
2312
+ }
2313
+ /**
2314
+ * Get Environment Variables Diff By Timestamp Range
2315
+ * Compare environment variables between two timestamps
2316
+ * @param requestBody
2317
+ * @returns EnvDiffResponse Environment variables timestamp-range diff retrieved successfully
2318
+ * @throws ApiError
2319
+ */
2320
+ getEnvDiffByTimestampRange(requestBody) {
2321
+ return this.httpRequest.request({
2322
+ method: "POST",
2323
+ url: "/api/env/diff/timestamp-range",
2324
+ body: requestBody,
2325
+ mediaType: "application/json",
2326
+ errors: {
2327
+ 500: `Internal server error`
2328
+ }
2329
+ });
2330
+ }
2331
+ /**
2332
+ * Get Variable Timeline
2333
+ * Get timeline of changes for a specific environment variable
2334
+ * @param key
2335
+ * @param requestBody
2336
+ * @returns VariableTimelineResponse Variable timeline retrieved successfully
2337
+ * @throws ApiError
2338
+ */
2339
+ getVariableTimeline(key, requestBody) {
2340
+ return this.httpRequest.request({
2341
+ method: "POST",
2342
+ url: "/api/env/timeline/{key}",
2343
+ path: {
2344
+ "key": key
2217
2345
  },
2346
+ body: requestBody,
2347
+ mediaType: "application/json",
2218
2348
  errors: {
2219
2349
  500: `Internal server error`
2220
2350
  }
@@ -2222,63 +2352,1564 @@ var OrganizationsService = class {
2222
2352
  }
2223
2353
  };
2224
2354
 
2225
- // src/services/PermissionsService.ts
2226
- var PermissionsService = class {
2355
+ // src/services/EnvironmentVariablesRollbackService.ts
2356
+ var EnvironmentVariablesRollbackService = class {
2227
2357
  constructor(httpRequest) {
2228
2358
  this.httpRequest = httpRequest;
2229
2359
  }
2230
2360
  /**
2231
- * Get My Permissions
2232
- * Get the current user's effective permissions in the organization
2233
- * @returns EffectivePermissionsResponse Permissions retrieved successfully
2361
+ * Rollback Environment Variables to Point in Time
2362
+ * Rollback all environment variables to a specific point in time
2363
+ * @param requestBody
2364
+ * @returns RollbackResponse Environment variables rolled back successfully
2365
+ * @throws ApiError
2366
+ */
2367
+ rollbackEnvsToPitId(requestBody) {
2368
+ return this.httpRequest.request({
2369
+ method: "POST",
2370
+ url: "/api/env/rollback/pit",
2371
+ body: requestBody,
2372
+ mediaType: "application/json",
2373
+ errors: {
2374
+ 500: `Internal server error`
2375
+ }
2376
+ });
2377
+ }
2378
+ /**
2379
+ * Rollback Environment Variables to Timestamp
2380
+ * Rollback all environment variables to a specific timestamp
2381
+ * @param requestBody
2382
+ * @returns RollbackResponse Environment variables rolled back successfully
2383
+ * @throws ApiError
2384
+ */
2385
+ rollbackEnvsToTimestamp(requestBody) {
2386
+ return this.httpRequest.request({
2387
+ method: "POST",
2388
+ url: "/api/env/rollback/timestamp",
2389
+ body: requestBody,
2390
+ mediaType: "application/json",
2391
+ errors: {
2392
+ 500: `Internal server error`
2393
+ }
2394
+ });
2395
+ }
2396
+ /**
2397
+ * Rollback Single Variable to Point in Time
2398
+ * Rollback a specific environment variable to a point in time
2399
+ * @param key
2400
+ * @param requestBody
2401
+ * @returns VariableRollbackResponse Variable rolled back successfully
2402
+ * @throws ApiError
2403
+ */
2404
+ rollbackVariableToPitId(key, requestBody) {
2405
+ return this.httpRequest.request({
2406
+ method: "POST",
2407
+ url: "/api/env/rollback/variable/{key}/pit",
2408
+ path: {
2409
+ "key": key
2410
+ },
2411
+ body: requestBody,
2412
+ mediaType: "application/json",
2413
+ errors: {
2414
+ 500: `Internal server error`
2415
+ }
2416
+ });
2417
+ }
2418
+ /**
2419
+ * Rollback Single Variable to Timestamp
2420
+ * Rollback a specific environment variable to a timestamp
2421
+ * @param key
2422
+ * @param requestBody
2423
+ * @returns VariableRollbackResponse Variable rolled back successfully
2424
+ * @throws ApiError
2425
+ */
2426
+ rollbackVariableToTimestamp(key, requestBody) {
2427
+ return this.httpRequest.request({
2428
+ method: "POST",
2429
+ url: "/api/env/rollback/variable/{key}/timestamp",
2430
+ path: {
2431
+ "key": key
2432
+ },
2433
+ body: requestBody,
2434
+ mediaType: "application/json",
2435
+ errors: {
2436
+ 500: `Internal server error`
2437
+ }
2438
+ });
2439
+ }
2440
+ };
2441
+
2442
+ // src/services/FileUploadService.ts
2443
+ var FileUploadService = class {
2444
+ constructor(httpRequest) {
2445
+ this.httpRequest = httpRequest;
2446
+ }
2447
+ /**
2448
+ * Upload File
2449
+ * Upload a file to the server. The file should be less than 5MB in size.
2450
+ * @param formData
2451
+ * @returns UploadFileResponse File uploaded successfully
2452
+ * @throws ApiError
2453
+ */
2454
+ uploadFile(formData) {
2455
+ return this.httpRequest.request({
2456
+ method: "POST",
2457
+ url: "/api/upload/file",
2458
+ formData,
2459
+ mediaType: "multipart/form-data",
2460
+ errors: {
2461
+ 500: `Internal server error`
2462
+ }
2463
+ });
2464
+ }
2465
+ };
2466
+
2467
+ // src/services/GpgKeysService.ts
2468
+ var GpgKeysService = class {
2469
+ constructor(httpRequest) {
2470
+ this.httpRequest = httpRequest;
2471
+ }
2472
+ /**
2473
+ * Generate GPG Key
2474
+ * Generate a new GPG key pair for the organization
2475
+ * @param requestBody
2476
+ * @returns GpgKeyResponse GPG key generated successfully
2477
+ * @throws ApiError
2478
+ */
2479
+ generateGpgKey(requestBody) {
2480
+ return this.httpRequest.request({
2481
+ method: "PUT",
2482
+ url: "/api/gpg_key/generate",
2483
+ body: requestBody,
2484
+ mediaType: "application/json",
2485
+ errors: {
2486
+ 500: `Internal server error`
2487
+ }
2488
+ });
2489
+ }
2490
+ /**
2491
+ * Import GPG Key
2492
+ * Import an existing GPG key into the organization
2493
+ * @param requestBody
2494
+ * @returns GpgKeyResponse GPG key imported successfully
2495
+ * @throws ApiError
2496
+ */
2497
+ importGpgKey(requestBody) {
2498
+ return this.httpRequest.request({
2499
+ method: "PUT",
2500
+ url: "/api/gpg_key/import",
2501
+ body: requestBody,
2502
+ mediaType: "application/json",
2503
+ errors: {
2504
+ 500: `Internal server error`
2505
+ }
2506
+ });
2507
+ }
2508
+ /**
2509
+ * Sign Data
2510
+ * Sign data using a GPG key
2511
+ * @param requestBody
2512
+ * @returns SignatureResponse Data signed successfully
2513
+ * @throws ApiError
2514
+ */
2515
+ signDataWithGpgKey(requestBody) {
2516
+ return this.httpRequest.request({
2517
+ method: "POST",
2518
+ url: "/api/gpg_key/sign",
2519
+ body: requestBody,
2520
+ mediaType: "application/json",
2521
+ errors: {
2522
+ 500: `Internal server error`
2523
+ }
2524
+ });
2525
+ }
2526
+ /**
2527
+ * Verify Signature
2528
+ * Verify a GPG signature
2529
+ * @param requestBody
2530
+ * @returns VerifyResponse Verification result
2531
+ * @throws ApiError
2532
+ */
2533
+ verifyGpgSignature(requestBody) {
2534
+ return this.httpRequest.request({
2535
+ method: "POST",
2536
+ url: "/api/gpg_key/verify",
2537
+ body: requestBody,
2538
+ mediaType: "application/json",
2539
+ errors: {
2540
+ 500: `Internal server error`
2541
+ }
2542
+ });
2543
+ }
2544
+ /**
2545
+ * List GPG Keys
2546
+ * List all GPG keys for the organization
2547
+ * @returns GpgKeysResponse GPG keys retrieved successfully
2548
+ * @throws ApiError
2549
+ */
2550
+ listGpgKeys() {
2551
+ return this.httpRequest.request({
2552
+ method: "GET",
2553
+ url: "/api/gpg_key",
2554
+ errors: {
2555
+ 500: `Internal server error`
2556
+ }
2557
+ });
2558
+ }
2559
+ /**
2560
+ * Get GPG Key
2561
+ * Retrieve a specific GPG key
2562
+ * @param id
2563
+ * @returns GpgKeyDetailResponse GPG key retrieved successfully
2564
+ * @throws ApiError
2565
+ */
2566
+ getGpgKey(id) {
2567
+ return this.httpRequest.request({
2568
+ method: "GET",
2569
+ url: "/api/gpg_key/{id}",
2570
+ path: {
2571
+ "id": id
2572
+ },
2573
+ errors: {
2574
+ 500: `Internal server error`
2575
+ }
2576
+ });
2577
+ }
2578
+ /**
2579
+ * Delete GPG Key
2580
+ * Delete a GPG key from the organization
2581
+ * @param id
2582
+ * @returns GpgKeyResponse GPG key deleted successfully
2583
+ * @throws ApiError
2584
+ */
2585
+ deleteGpgKey(id) {
2586
+ return this.httpRequest.request({
2587
+ method: "DELETE",
2588
+ url: "/api/gpg_key/{id}",
2589
+ path: {
2590
+ "id": id
2591
+ },
2592
+ errors: {
2593
+ 500: `Internal server error`
2594
+ }
2595
+ });
2596
+ }
2597
+ /**
2598
+ * Export GPG Public Key
2599
+ * Export the ASCII-armored public key
2600
+ * @param id
2601
+ * @returns ExportKeyResponse Public key exported successfully
2602
+ * @throws ApiError
2603
+ */
2604
+ exportGpgPublicKey(id) {
2605
+ return this.httpRequest.request({
2606
+ method: "GET",
2607
+ url: "/api/gpg_key/{id}/export",
2608
+ path: {
2609
+ "id": id
2610
+ },
2611
+ errors: {
2612
+ 500: `Internal server error`
2613
+ }
2614
+ });
2615
+ }
2616
+ /**
2617
+ * Revoke GPG Key
2618
+ * Revoke a GPG key (keeps data but marks as revoked)
2619
+ * @param id
2620
+ * @param requestBody
2621
+ * @returns GpgKeyDetailResponse GPG key revoked successfully
2622
+ * @throws ApiError
2623
+ */
2624
+ revokeGpgKey(id, requestBody) {
2625
+ return this.httpRequest.request({
2626
+ method: "POST",
2627
+ url: "/api/gpg_key/{id}/revoke",
2628
+ path: {
2629
+ "id": id
2630
+ },
2631
+ body: requestBody,
2632
+ mediaType: "application/json",
2633
+ errors: {
2634
+ 500: `Internal server error`
2635
+ }
2636
+ });
2637
+ }
2638
+ /**
2639
+ * Rotate GPG Key
2640
+ * Create a replacement GPG key, optionally promote it to default, and supersede the original key.
2641
+ * @param id
2642
+ * @param requestBody
2643
+ * @returns GpgKeyDetailResponse GPG key rotated successfully
2644
+ * @throws ApiError
2645
+ */
2646
+ rotateGpgKey(id, requestBody) {
2647
+ return this.httpRequest.request({
2648
+ method: "POST",
2649
+ url: "/api/gpg_key/{id}/rotate",
2650
+ path: {
2651
+ "id": id
2652
+ },
2653
+ body: requestBody,
2654
+ mediaType: "application/json",
2655
+ errors: {
2656
+ 500: `Internal server error`
2657
+ }
2658
+ });
2659
+ }
2660
+ /**
2661
+ * Extend GPG Key Expiry
2662
+ * Extend the expiry date of an active GPG key without rotating it.
2663
+ * @param id
2664
+ * @param requestBody
2665
+ * @returns GpgKeyDetailResponse GPG key expiry extended successfully
2666
+ * @throws ApiError
2667
+ */
2668
+ extendGpgKeyExpiry(id, requestBody) {
2669
+ return this.httpRequest.request({
2670
+ method: "POST",
2671
+ url: "/api/gpg_key/{id}/extend-expiry",
2672
+ path: {
2673
+ "id": id
2674
+ },
2675
+ body: requestBody,
2676
+ mediaType: "application/json",
2677
+ errors: {
2678
+ 500: `Internal server error`
2679
+ }
2680
+ });
2681
+ }
2682
+ /**
2683
+ * Update Trust Level
2684
+ * Update the trust level of a GPG key
2685
+ * @param id
2686
+ * @param requestBody
2687
+ * @returns GpgKeyDetailResponse Trust level updated successfully
2688
+ * @throws ApiError
2689
+ */
2690
+ updateGpgKeyTrustLevel(id, requestBody) {
2691
+ return this.httpRequest.request({
2692
+ method: "PATCH",
2693
+ url: "/api/gpg_key/{id}/trust",
2694
+ path: {
2695
+ "id": id
2696
+ },
2697
+ body: requestBody,
2698
+ mediaType: "application/json",
2699
+ errors: {
2700
+ 500: `Internal server error`
2701
+ }
2702
+ });
2703
+ }
2704
+ };
2705
+
2706
+ // src/services/LicenseService.ts
2707
+ var LicenseService = class {
2708
+ constructor(httpRequest) {
2709
+ this.httpRequest = httpRequest;
2710
+ }
2711
+ /**
2712
+ * Get Management License Status
2713
+ * @returns LicenseStatusResponse Current license status
2714
+ * @throws ApiError
2715
+ */
2716
+ getManagementLicenseStatus() {
2717
+ return this.httpRequest.request({
2718
+ method: "GET",
2719
+ url: "/api/v1/manage/license/status",
2720
+ errors: {
2721
+ 500: `Internal server error`
2722
+ }
2723
+ });
2724
+ }
2725
+ /**
2726
+ * Activate Management License
2727
+ * @returns LicenseActionResponse License activated
2728
+ * @throws ApiError
2729
+ */
2730
+ activateManagementLicense() {
2731
+ return this.httpRequest.request({
2732
+ method: "POST",
2733
+ url: "/api/v1/manage/license/activate",
2734
+ errors: {
2735
+ 500: `Internal server error`
2736
+ }
2737
+ });
2738
+ }
2739
+ /**
2740
+ * Verify Management License
2741
+ * @returns LicenseActionResponse License verified
2742
+ * @throws ApiError
2743
+ */
2744
+ verifyManagementLicense() {
2745
+ return this.httpRequest.request({
2746
+ method: "POST",
2747
+ url: "/api/v1/manage/license/verify",
2748
+ errors: {
2749
+ 500: `Internal server error`
2750
+ }
2751
+ });
2752
+ }
2753
+ };
2754
+
2755
+ // src/services/LogForwardingService.ts
2756
+ var LogForwardingService = class {
2757
+ constructor(httpRequest) {
2758
+ this.httpRequest = httpRequest;
2759
+ }
2760
+ /**
2761
+ * Create Log Forwarding Config
2762
+ * Create a new log forwarding configuration for the organization
2763
+ * @param requestBody
2764
+ * @returns LogForwardingResponse Log forwarding config created successfully
2765
+ * @throws ApiError
2766
+ */
2767
+ createLogForwardingConfig(requestBody) {
2768
+ return this.httpRequest.request({
2769
+ method: "POST",
2770
+ url: "/api/v1/manage/log_forwarding",
2771
+ body: requestBody,
2772
+ mediaType: "application/json",
2773
+ errors: {
2774
+ 500: `Internal server error`
2775
+ }
2776
+ });
2777
+ }
2778
+ /**
2779
+ * Get All Log Forwarding Configs
2780
+ * Retrieve all log forwarding configurations for the organization
2781
+ * @returns LogForwardingsResponse Log forwarding configs retrieved successfully
2782
+ * @throws ApiError
2783
+ */
2784
+ getLogForwardingConfigs() {
2785
+ return this.httpRequest.request({
2786
+ method: "GET",
2787
+ url: "/api/v1/manage/log_forwarding",
2788
+ errors: {
2789
+ 500: `Internal server error`
2790
+ }
2791
+ });
2792
+ }
2793
+ /**
2794
+ * Get Log Forwarding Config
2795
+ * Retrieve a specific log forwarding configuration
2796
+ * @param id
2797
+ * @returns LogForwardingResponse Log forwarding config retrieved successfully
2798
+ * @throws ApiError
2799
+ */
2800
+ getLogForwardingConfig(id) {
2801
+ return this.httpRequest.request({
2802
+ method: "GET",
2803
+ url: "/api/v1/manage/log_forwarding/{id}",
2804
+ path: {
2805
+ "id": id
2806
+ },
2807
+ errors: {
2808
+ 404: `Config not found`,
2809
+ 500: `Internal server error`
2810
+ }
2811
+ });
2812
+ }
2813
+ /**
2814
+ * Delete Log Forwarding Config
2815
+ * Delete a log forwarding configuration
2816
+ * @param id
2817
+ * @returns ErrorResponse Log forwarding config deleted successfully
2818
+ * @throws ApiError
2819
+ */
2820
+ deleteLogForwardingConfig(id) {
2821
+ return this.httpRequest.request({
2822
+ method: "DELETE",
2823
+ url: "/api/v1/manage/log_forwarding/{id}",
2824
+ path: {
2825
+ "id": id
2826
+ },
2827
+ errors: {
2828
+ 500: `Internal server error`
2829
+ }
2830
+ });
2831
+ }
2832
+ };
2833
+
2834
+ // src/services/OidcProvidersService.ts
2835
+ var OidcProvidersService = class {
2836
+ constructor(httpRequest) {
2837
+ this.httpRequest = httpRequest;
2838
+ }
2839
+ /**
2840
+ * Register OIDC Provider
2841
+ * Register a new OIDC provider for CI/CD machine authentication
2842
+ * @param requestBody
2843
+ * @returns OidcProviderResponse OIDC provider created successfully
2844
+ * @throws ApiError
2845
+ */
2846
+ createOidcProvider(requestBody) {
2847
+ return this.httpRequest.request({
2848
+ method: "POST",
2849
+ url: "/api/v1/manage/oidc",
2850
+ body: requestBody,
2851
+ mediaType: "application/json",
2852
+ errors: {
2853
+ 500: `Internal server error`
2854
+ }
2855
+ });
2856
+ }
2857
+ /**
2858
+ * Get All OIDC Providers
2859
+ * Retrieve all OIDC providers for the organization
2860
+ * @returns OidcProvidersResponse OIDC providers retrieved successfully
2861
+ * @throws ApiError
2862
+ */
2863
+ getAllOidcProviders() {
2864
+ return this.httpRequest.request({
2865
+ method: "GET",
2866
+ url: "/api/v1/manage/oidc",
2867
+ errors: {
2868
+ 500: `Internal server error`
2869
+ }
2870
+ });
2871
+ }
2872
+ /**
2873
+ * Get OIDC Provider
2874
+ * Retrieve a specific OIDC provider
2875
+ * @param id
2876
+ * @returns OidcProviderResponse OIDC provider retrieved successfully
2877
+ * @throws ApiError
2878
+ */
2879
+ getOidcProvider(id) {
2880
+ return this.httpRequest.request({
2881
+ method: "GET",
2882
+ url: "/api/v1/manage/oidc/{id}",
2883
+ path: {
2884
+ "id": id
2885
+ },
2886
+ errors: {
2887
+ 500: `Internal server error`
2888
+ }
2889
+ });
2890
+ }
2891
+ /**
2892
+ * Update OIDC Provider
2893
+ * Update an existing OIDC provider
2894
+ * @param id
2895
+ * @param requestBody
2896
+ * @returns ErrorResponse OIDC provider updated successfully
2897
+ * @throws ApiError
2898
+ */
2899
+ updateOidcProvider(id, requestBody) {
2900
+ return this.httpRequest.request({
2901
+ method: "PUT",
2902
+ url: "/api/v1/manage/oidc/{id}",
2903
+ path: {
2904
+ "id": id
2905
+ },
2906
+ body: requestBody,
2907
+ mediaType: "application/json",
2908
+ errors: {
2909
+ 500: `Internal server error`
2910
+ }
2911
+ });
2912
+ }
2913
+ /**
2914
+ * Delete OIDC Provider
2915
+ * Delete an existing OIDC provider
2916
+ * @param id
2917
+ * @returns ErrorResponse OIDC provider deleted successfully
2918
+ * @throws ApiError
2919
+ */
2920
+ deleteOidcProvider(id) {
2921
+ return this.httpRequest.request({
2922
+ method: "DELETE",
2923
+ url: "/api/v1/manage/oidc/{id}",
2924
+ path: {
2925
+ "id": id
2926
+ },
2927
+ errors: {
2928
+ 500: `Internal server error`
2929
+ }
2930
+ });
2931
+ }
2932
+ };
2933
+
2934
+ // src/services/OnboardingService.ts
2935
+ var OnboardingService = class {
2936
+ constructor(httpRequest) {
2937
+ this.httpRequest = httpRequest;
2938
+ }
2939
+ /**
2940
+ * Create Organization Invite
2941
+ * Create an organization invite
2942
+ * @param requestBody
2943
+ * @returns CreateOrgInviteResponse Successful greeting response
2944
+ * @throws ApiError
2945
+ */
2946
+ createOrgInvite(requestBody) {
2947
+ return this.httpRequest.request({
2948
+ method: "POST",
2949
+ url: "/api/onboarding/org",
2950
+ body: requestBody,
2951
+ mediaType: "application/json",
2952
+ errors: {
2953
+ 500: `Internal server error`
2954
+ }
2955
+ });
2956
+ }
2957
+ /**
2958
+ * Get Organization Invite by Code
2959
+ * Get organization invite by code
2960
+ * @param inviteCode
2961
+ * @returns GetOrgInviteByCodeResponse Organization invite retrieved successfully
2962
+ * @throws ApiError
2963
+ */
2964
+ getOrgInviteByCode(inviteCode) {
2965
+ return this.httpRequest.request({
2966
+ method: "GET",
2967
+ url: "/api/onboarding/org/{invite_code}",
2968
+ path: {
2969
+ "invite_code": inviteCode
2970
+ },
2971
+ errors: {
2972
+ 500: `Internal server error`
2973
+ }
2974
+ });
2975
+ }
2976
+ /**
2977
+ * Accept Organization Invite
2978
+ * Accept organization invite
2979
+ * @param inviteCode
2980
+ * @param requestBody
2981
+ * @returns AcceptOrgInviteResponse Organization invite accepted successfully
2982
+ * @throws ApiError
2983
+ */
2984
+ acceptOrgInvite(inviteCode, requestBody) {
2985
+ return this.httpRequest.request({
2986
+ method: "PUT",
2987
+ url: "/api/onboarding/org/{invite_code}/accept",
2988
+ path: {
2989
+ "invite_code": inviteCode
2990
+ },
2991
+ body: requestBody,
2992
+ mediaType: "application/json",
2993
+ errors: {
2994
+ 500: `Internal server error`
2995
+ }
2996
+ });
2997
+ }
2998
+ /**
2999
+ * Get User Invite by Code
3000
+ * Get user invite by code
3001
+ * @param inviteCode
3002
+ * @returns GetUserInviteByTokenResponse User invite retrieved successfully
3003
+ * @throws ApiError
3004
+ */
3005
+ getUserInviteByCode(inviteCode) {
3006
+ return this.httpRequest.request({
3007
+ method: "GET",
3008
+ url: "/api/onboarding/user/{invite_code}",
3009
+ path: {
3010
+ "invite_code": inviteCode
3011
+ },
3012
+ errors: {
3013
+ 500: `Internal server error`
3014
+ }
3015
+ });
3016
+ }
3017
+ /**
3018
+ * Update User Invite
3019
+ * Update user invite
3020
+ * @param inviteCode
3021
+ * @param requestBody
3022
+ * @returns UpdateUserInviteResponse User invite updated successfully
3023
+ * @throws ApiError
3024
+ */
3025
+ updateUserInvite(inviteCode, requestBody) {
3026
+ return this.httpRequest.request({
3027
+ method: "PATCH",
3028
+ url: "/api/onboarding/user/{invite_code}",
3029
+ path: {
3030
+ "invite_code": inviteCode
3031
+ },
3032
+ body: requestBody,
3033
+ mediaType: "application/json",
3034
+ errors: {
3035
+ 500: `Internal server error`
3036
+ }
3037
+ });
3038
+ }
3039
+ /**
3040
+ * Accept User Invite
3041
+ * Accept user invite
3042
+ * @param inviteCode
3043
+ * @param requestBody
3044
+ * @returns AcceptUserInviteResponse User invite accepted successfully
3045
+ * @throws ApiError
3046
+ */
3047
+ acceptUserInvite(inviteCode, requestBody) {
3048
+ return this.httpRequest.request({
3049
+ method: "PUT",
3050
+ url: "/api/onboarding/user/{invite_code}/accept",
3051
+ path: {
3052
+ "invite_code": inviteCode
3053
+ },
3054
+ body: requestBody,
3055
+ mediaType: "application/json",
3056
+ errors: {
3057
+ 500: `Internal server error`
3058
+ }
3059
+ });
3060
+ }
3061
+ /**
3062
+ * Create User Invite
3063
+ * Create a user invite
3064
+ * @param requestBody
3065
+ * @returns CreateUserInviteResponse User invite created successfully
3066
+ * @throws ApiError
3067
+ */
3068
+ createUserInvite(requestBody) {
3069
+ return this.httpRequest.request({
3070
+ method: "POST",
3071
+ url: "/api/onboarding/user",
3072
+ body: requestBody,
3073
+ mediaType: "application/json",
3074
+ errors: {
3075
+ 500: `Internal server error`
3076
+ }
3077
+ });
3078
+ }
3079
+ /**
3080
+ * Get All User Invites
3081
+ * Get all user invites
3082
+ * @returns GetUserInviteByTokenResponse User invites retrieved successfully
3083
+ * @throws ApiError
3084
+ */
3085
+ getAllUserInvites() {
3086
+ return this.httpRequest.request({
3087
+ method: "GET",
3088
+ url: "/api/onboarding/user",
3089
+ errors: {
3090
+ 500: `Internal server error`
3091
+ }
3092
+ });
3093
+ }
3094
+ /**
3095
+ * Delete User Invite
3096
+ * Delete user invite
3097
+ * @param inviteId
3098
+ * @returns DeleteUserInviteResponse User invite deleted successfully
3099
+ * @throws ApiError
3100
+ */
3101
+ deleteUserInvite(inviteId) {
3102
+ return this.httpRequest.request({
3103
+ method: "DELETE",
3104
+ url: "/api/onboarding/user/{invite_id}",
3105
+ path: {
3106
+ "invite_id": inviteId
3107
+ },
3108
+ errors: {
3109
+ 500: `Internal server error`
3110
+ }
3111
+ });
3112
+ }
3113
+ /**
3114
+ * Create Organization Invite
3115
+ * Create an organization invite
3116
+ * @param requestBody
3117
+ * @returns CreateOrgInviteResponse Successful greeting response
3118
+ * @throws ApiError
3119
+ */
3120
+ manageCreateOrgInvite(requestBody) {
3121
+ return this.httpRequest.request({
3122
+ method: "POST",
3123
+ url: "/api/v1/manage/onboarding/org",
3124
+ body: requestBody,
3125
+ mediaType: "application/json",
3126
+ errors: {
3127
+ 500: `Internal server error`
3128
+ }
3129
+ });
3130
+ }
3131
+ /**
3132
+ * Get Organization Invite by Code
3133
+ * Get organization invite by code
3134
+ * @param inviteCode
3135
+ * @returns GetOrgInviteByCodeResponse Organization invite retrieved successfully
3136
+ * @throws ApiError
3137
+ */
3138
+ manageGetOrgInviteByCode(inviteCode) {
3139
+ return this.httpRequest.request({
3140
+ method: "GET",
3141
+ url: "/api/v1/manage/onboarding/org/{invite_code}",
3142
+ path: {
3143
+ "invite_code": inviteCode
3144
+ },
3145
+ errors: {
3146
+ 500: `Internal server error`
3147
+ }
3148
+ });
3149
+ }
3150
+ /**
3151
+ * Accept Organization Invite
3152
+ * Accept organization invite
3153
+ * @param inviteCode
3154
+ * @param requestBody
3155
+ * @returns AcceptOrgInviteResponse Organization invite accepted successfully
3156
+ * @throws ApiError
3157
+ */
3158
+ manageAcceptOrgInvite(inviteCode, requestBody) {
3159
+ return this.httpRequest.request({
3160
+ method: "PUT",
3161
+ url: "/api/v1/manage/onboarding/org/{invite_code}/accept",
3162
+ path: {
3163
+ "invite_code": inviteCode
3164
+ },
3165
+ body: requestBody,
3166
+ mediaType: "application/json",
3167
+ errors: {
3168
+ 500: `Internal server error`
3169
+ }
3170
+ });
3171
+ }
3172
+ /**
3173
+ * Get User Invite by Code
3174
+ * Get user invite by code
3175
+ * @param inviteCode
3176
+ * @returns GetUserInviteByTokenResponse User invite retrieved successfully
3177
+ * @throws ApiError
3178
+ */
3179
+ manageGetUserInviteByCode(inviteCode) {
3180
+ return this.httpRequest.request({
3181
+ method: "GET",
3182
+ url: "/api/v1/manage/onboarding/user/{invite_code}",
3183
+ path: {
3184
+ "invite_code": inviteCode
3185
+ },
3186
+ errors: {
3187
+ 500: `Internal server error`
3188
+ }
3189
+ });
3190
+ }
3191
+ /**
3192
+ * Update User Invite
3193
+ * Update user invite
3194
+ * @param inviteCode
3195
+ * @param requestBody
3196
+ * @returns UpdateUserInviteResponse User invite updated successfully
3197
+ * @throws ApiError
3198
+ */
3199
+ manageUpdateUserInvite(inviteCode, requestBody) {
3200
+ return this.httpRequest.request({
3201
+ method: "PATCH",
3202
+ url: "/api/v1/manage/onboarding/user/{invite_code}",
3203
+ path: {
3204
+ "invite_code": inviteCode
3205
+ },
3206
+ body: requestBody,
3207
+ mediaType: "application/json",
3208
+ errors: {
3209
+ 500: `Internal server error`
3210
+ }
3211
+ });
3212
+ }
3213
+ /**
3214
+ * Accept User Invite
3215
+ * Accept user invite
3216
+ * @param inviteCode
3217
+ * @param requestBody
3218
+ * @returns AcceptUserInviteResponse User invite accepted successfully
3219
+ * @throws ApiError
3220
+ */
3221
+ manageAcceptUserInvite(inviteCode, requestBody) {
3222
+ return this.httpRequest.request({
3223
+ method: "PUT",
3224
+ url: "/api/v1/manage/onboarding/user/{invite_code}/accept",
3225
+ path: {
3226
+ "invite_code": inviteCode
3227
+ },
3228
+ body: requestBody,
3229
+ mediaType: "application/json",
3230
+ errors: {
3231
+ 500: `Internal server error`
3232
+ }
3233
+ });
3234
+ }
3235
+ /**
3236
+ * Create User Invite
3237
+ * Create a user invite
3238
+ * @param requestBody
3239
+ * @returns CreateUserInviteResponse User invite created successfully
3240
+ * @throws ApiError
3241
+ */
3242
+ manageCreateUserInvite(requestBody) {
3243
+ return this.httpRequest.request({
3244
+ method: "POST",
3245
+ url: "/api/v1/manage/onboarding/user",
3246
+ body: requestBody,
3247
+ mediaType: "application/json",
3248
+ errors: {
3249
+ 500: `Internal server error`
3250
+ }
3251
+ });
3252
+ }
3253
+ /**
3254
+ * Get All User Invites
3255
+ * Get all user invites
3256
+ * @returns GetUserInviteByTokenResponse User invites retrieved successfully
3257
+ * @throws ApiError
3258
+ */
3259
+ manageGetAllUserInvites() {
3260
+ return this.httpRequest.request({
3261
+ method: "GET",
3262
+ url: "/api/v1/manage/onboarding/user",
3263
+ errors: {
3264
+ 500: `Internal server error`
3265
+ }
3266
+ });
3267
+ }
3268
+ /**
3269
+ * Delete User Invite
3270
+ * Delete user invite
3271
+ * @param inviteId
3272
+ * @returns DeleteUserInviteResponse User invite deleted successfully
3273
+ * @throws ApiError
3274
+ */
3275
+ manageDeleteUserInvite(inviteId) {
3276
+ return this.httpRequest.request({
3277
+ method: "DELETE",
3278
+ url: "/api/v1/manage/onboarding/user/{invite_id}",
3279
+ path: {
3280
+ "invite_id": inviteId
3281
+ },
3282
+ errors: {
3283
+ 500: `Internal server error`
3284
+ }
3285
+ });
3286
+ }
3287
+ };
3288
+
3289
+ // src/services/OrganizationsService.ts
3290
+ var OrganizationsService = class {
3291
+ constructor(httpRequest) {
3292
+ this.httpRequest = httpRequest;
3293
+ }
3294
+ /**
3295
+ * Get Organization
3296
+ * Retrieve the current organization's details
3297
+ * @returns OrgResponse Organization retrieved successfully
3298
+ * @throws ApiError
3299
+ */
3300
+ getOrg() {
3301
+ return this.httpRequest.request({
3302
+ method: "GET",
3303
+ url: "/api/org",
3304
+ errors: {
3305
+ 500: `Internal server error`
3306
+ }
3307
+ });
3308
+ }
3309
+ /**
3310
+ * Update Organization
3311
+ * Update the current organization's details
3312
+ * @param requestBody
3313
+ * @returns OrgResponse Organization updated successfully
3314
+ * @throws ApiError
3315
+ */
3316
+ updateOrg(requestBody) {
3317
+ return this.httpRequest.request({
3318
+ method: "PATCH",
3319
+ url: "/api/org",
3320
+ body: requestBody,
3321
+ mediaType: "application/json",
3322
+ errors: {
3323
+ 500: `Internal server error`
3324
+ }
3325
+ });
3326
+ }
3327
+ /**
3328
+ * Delete Organization
3329
+ * Permanently delete the current organization
3330
+ * @param requestBody
3331
+ * @returns DeleteOrgResponse Organization deleted successfully
3332
+ * @throws ApiError
3333
+ */
3334
+ deleteOrg(requestBody) {
3335
+ return this.httpRequest.request({
3336
+ method: "DELETE",
3337
+ url: "/api/org",
3338
+ body: requestBody,
3339
+ mediaType: "application/json",
3340
+ errors: {
3341
+ 500: `Internal server error`
3342
+ }
3343
+ });
3344
+ }
3345
+ /**
3346
+ * Check Slug Availability
3347
+ * Check if an organization slug is available
3348
+ * @param slug
3349
+ * @returns CheckSlugResponse Slug availability checked successfully
3350
+ * @throws ApiError
3351
+ */
3352
+ checkIfSlugExists(slug) {
3353
+ return this.httpRequest.request({
3354
+ method: "GET",
3355
+ url: "/api/org/check-slug",
3356
+ query: {
3357
+ "slug": slug
3358
+ },
3359
+ errors: {
3360
+ 500: `Internal server error`
3361
+ }
3362
+ });
3363
+ }
3364
+ };
3365
+
3366
+ // src/services/OrgFeaturesService.ts
3367
+ var OrgFeaturesService = class {
3368
+ constructor(httpRequest) {
3369
+ this.httpRequest = httpRequest;
3370
+ }
3371
+ /**
3372
+ * Get Organization Feature Grant
3373
+ * Hosted platform API. No row means unrestricted (full catalog).
3374
+ * @param xEnvSyncPlatformToken
3375
+ * @param orgId
3376
+ * @returns OrgFeatureGrantResponse Organization feature grant
3377
+ * @throws ApiError
3378
+ */
3379
+ getOrgFeatureGrant(xEnvSyncPlatformToken, orgId) {
3380
+ return this.httpRequest.request({
3381
+ method: "GET",
3382
+ url: "/api/v1/manage/org-features/{orgId}",
3383
+ path: {
3384
+ "orgId": orgId
3385
+ },
3386
+ headers: {
3387
+ "X-EnvSync-Platform-Token": xEnvSyncPlatformToken
3388
+ },
3389
+ errors: {
3390
+ 401: `Invalid platform token`,
3391
+ 403: `Not hosted`,
3392
+ 500: `Internal server error`
3393
+ }
3394
+ });
3395
+ }
3396
+ /**
3397
+ * Replace Organization Feature Grant
3398
+ * Full replace. Empty features[] denies every EE feature. Unknown catalog keys are dropped.
3399
+ * @param xEnvSyncPlatformToken
3400
+ * @param orgId
3401
+ * @param requestBody
3402
+ * @returns OrgFeatureGrantResponse Organization feature grant replaced
3403
+ * @throws ApiError
3404
+ */
3405
+ putOrgFeatureGrant(xEnvSyncPlatformToken, orgId, requestBody) {
3406
+ return this.httpRequest.request({
3407
+ method: "PUT",
3408
+ url: "/api/v1/manage/org-features/{orgId}",
3409
+ path: {
3410
+ "orgId": orgId
3411
+ },
3412
+ headers: {
3413
+ "X-EnvSync-Platform-Token": xEnvSyncPlatformToken
3414
+ },
3415
+ body: requestBody,
3416
+ mediaType: "application/json",
3417
+ errors: {
3418
+ 401: `Invalid platform token`,
3419
+ 403: `Not hosted`,
3420
+ 500: `Internal server error`
3421
+ }
3422
+ });
3423
+ }
3424
+ /**
3425
+ * Delete Organization Feature Grant
3426
+ * Drops the grant row so the organization is unrestricted.
3427
+ * @param xEnvSyncPlatformToken
3428
+ * @param orgId
3429
+ * @returns OrgFeatureGrantResponse Grant deleted; organization unrestricted
3430
+ * @throws ApiError
3431
+ */
3432
+ deleteOrgFeatureGrant(xEnvSyncPlatformToken, orgId) {
3433
+ return this.httpRequest.request({
3434
+ method: "DELETE",
3435
+ url: "/api/v1/manage/org-features/{orgId}",
3436
+ path: {
3437
+ "orgId": orgId
3438
+ },
3439
+ headers: {
3440
+ "X-EnvSync-Platform-Token": xEnvSyncPlatformToken
3441
+ },
3442
+ errors: {
3443
+ 401: `Invalid platform token`,
3444
+ 403: `Not hosted`,
3445
+ 500: `Internal server error`
3446
+ }
3447
+ });
3448
+ }
3449
+ };
3450
+
3451
+ // src/services/PermissionsService.ts
3452
+ var PermissionsService = class {
3453
+ constructor(httpRequest) {
3454
+ this.httpRequest = httpRequest;
3455
+ }
3456
+ /**
3457
+ * Get My Permissions
3458
+ * Get the current user's effective permissions in the organization
3459
+ * @returns EffectivePermissionsResponse Permissions retrieved successfully
3460
+ * @throws ApiError
3461
+ */
3462
+ getMyPermissions() {
3463
+ return this.httpRequest.request({
3464
+ method: "GET",
3465
+ url: "/api/permission/me",
3466
+ errors: {
3467
+ 500: `Internal server error`
3468
+ }
3469
+ });
3470
+ }
3471
+ /**
3472
+ * Grant App Access
3473
+ * Grant a user or team access to an app
3474
+ * @param appId
3475
+ * @param requestBody
3476
+ * @returns PermissionMessageResponse Access granted successfully
3477
+ * @throws ApiError
3478
+ */
3479
+ grantAppAccess(appId, requestBody) {
3480
+ return this.httpRequest.request({
3481
+ method: "POST",
3482
+ url: "/api/permission/app/{app_id}/grant",
3483
+ path: {
3484
+ "app_id": appId
3485
+ },
3486
+ body: requestBody,
3487
+ mediaType: "application/json",
3488
+ errors: {
3489
+ 500: `Internal server error`
3490
+ }
3491
+ });
3492
+ }
3493
+ /**
3494
+ * Revoke App Access
3495
+ * Revoke a user or team's access to an app
3496
+ * @param appId
3497
+ * @param requestBody
3498
+ * @returns PermissionMessageResponse Access revoked successfully
3499
+ * @throws ApiError
3500
+ */
3501
+ revokeAppAccess(appId, requestBody) {
3502
+ return this.httpRequest.request({
3503
+ method: "POST",
3504
+ url: "/api/permission/app/{app_id}/revoke",
3505
+ path: {
3506
+ "app_id": appId
3507
+ },
3508
+ body: requestBody,
3509
+ mediaType: "application/json",
3510
+ errors: {
3511
+ 500: `Internal server error`
3512
+ }
3513
+ });
3514
+ }
3515
+ /**
3516
+ * List App Grants
3517
+ * List direct user and team grants on an app
3518
+ * @param appId
3519
+ * @returns GrantsListResponse App grants listed successfully
3520
+ * @throws ApiError
3521
+ */
3522
+ listAppGrants(appId) {
3523
+ return this.httpRequest.request({
3524
+ method: "GET",
3525
+ url: "/api/permission/app/{app_id}/grants",
3526
+ path: {
3527
+ "app_id": appId
3528
+ }
3529
+ });
3530
+ }
3531
+ /**
3532
+ * Get App Effective Access
3533
+ * List user effective access for an app including team inheritance
3534
+ * @param appId
3535
+ * @returns EffectiveAccessResponse Effective app access returned successfully
3536
+ * @throws ApiError
3537
+ */
3538
+ getAppEffectiveAccess(appId) {
3539
+ return this.httpRequest.request({
3540
+ method: "GET",
3541
+ url: "/api/permission/app/{app_id}/effective-access",
3542
+ path: {
3543
+ "app_id": appId
3544
+ }
3545
+ });
3546
+ }
3547
+ /**
3548
+ * Grant Env Type Access
3549
+ * Grant a user or team access to an environment type
3550
+ * @param id
3551
+ * @param requestBody
3552
+ * @returns PermissionMessageResponse Access granted successfully
3553
+ * @throws ApiError
3554
+ */
3555
+ grantEnvTypeAccess(id, requestBody) {
3556
+ return this.httpRequest.request({
3557
+ method: "POST",
3558
+ url: "/api/permission/env_type/{id}/grant",
3559
+ path: {
3560
+ "id": id
3561
+ },
3562
+ body: requestBody,
3563
+ mediaType: "application/json",
3564
+ errors: {
3565
+ 500: `Internal server error`
3566
+ }
3567
+ });
3568
+ }
3569
+ /**
3570
+ * Revoke Env Type Access
3571
+ * Revoke a user or team's access to an environment type
3572
+ * @param id
3573
+ * @param requestBody
3574
+ * @returns PermissionMessageResponse Access revoked successfully
3575
+ * @throws ApiError
3576
+ */
3577
+ revokeEnvTypeAccess(id, requestBody) {
3578
+ return this.httpRequest.request({
3579
+ method: "POST",
3580
+ url: "/api/permission/env_type/{id}/revoke",
3581
+ path: {
3582
+ "id": id
3583
+ },
3584
+ body: requestBody,
3585
+ mediaType: "application/json",
3586
+ errors: {
3587
+ 500: `Internal server error`
3588
+ }
3589
+ });
3590
+ }
3591
+ /**
3592
+ * List Env Type Grants
3593
+ * List direct user and team grants on an environment type
3594
+ * @param id
3595
+ * @returns GrantsListResponse Env type grants listed successfully
3596
+ * @throws ApiError
3597
+ */
3598
+ listEnvTypeGrants(id) {
3599
+ return this.httpRequest.request({
3600
+ method: "GET",
3601
+ url: "/api/permission/env_type/{id}/grants",
3602
+ path: {
3603
+ "id": id
3604
+ }
3605
+ });
3606
+ }
3607
+ };
3608
+
3609
+ // src/services/RolesService.ts
3610
+ var RolesService = class {
3611
+ constructor(httpRequest) {
3612
+ this.httpRequest = httpRequest;
3613
+ }
3614
+ /**
3615
+ * Get All Roles
3616
+ * Retrieve all roles in the organization
3617
+ * @returns RolesResponse Roles retrieved successfully
3618
+ * @throws ApiError
3619
+ */
3620
+ getAllRoles() {
3621
+ return this.httpRequest.request({
3622
+ method: "GET",
3623
+ url: "/api/role",
3624
+ errors: {
3625
+ 500: `Internal server error`
3626
+ }
3627
+ });
3628
+ }
3629
+ /**
3630
+ * Create Role
3631
+ * Create a new role in the organization
3632
+ * @param requestBody
3633
+ * @returns RoleResponse Role created successfully
3634
+ * @throws ApiError
3635
+ */
3636
+ createRole(requestBody) {
3637
+ return this.httpRequest.request({
3638
+ method: "POST",
3639
+ url: "/api/role",
3640
+ body: requestBody,
3641
+ mediaType: "application/json",
3642
+ errors: {
3643
+ 500: `Internal server error`
3644
+ }
3645
+ });
3646
+ }
3647
+ /**
3648
+ * Get Role Statistics
3649
+ * Retrieve statistics about roles in the organization
3650
+ * @returns RoleStatsResponse Role statistics retrieved successfully
3651
+ * @throws ApiError
3652
+ */
3653
+ getRoleStats() {
3654
+ return this.httpRequest.request({
3655
+ method: "GET",
3656
+ url: "/api/role/stats",
3657
+ errors: {
3658
+ 500: `Internal server error`
3659
+ }
3660
+ });
3661
+ }
3662
+ /**
3663
+ * Get Role
3664
+ * Retrieve a specific role by ID
3665
+ * @param id
3666
+ * @returns RoleResponse Role retrieved successfully
3667
+ * @throws ApiError
3668
+ */
3669
+ getRole(id) {
3670
+ return this.httpRequest.request({
3671
+ method: "GET",
3672
+ url: "/api/role/{id}",
3673
+ path: {
3674
+ "id": id
3675
+ },
3676
+ errors: {
3677
+ 500: `Internal server error`
3678
+ }
3679
+ });
3680
+ }
3681
+ /**
3682
+ * Update Role
3683
+ * Update an existing role
3684
+ * @param id
3685
+ * @param requestBody
3686
+ * @returns RoleResponse Role updated successfully
3687
+ * @throws ApiError
3688
+ */
3689
+ updateRole(id, requestBody) {
3690
+ return this.httpRequest.request({
3691
+ method: "PATCH",
3692
+ url: "/api/role/{id}",
3693
+ path: {
3694
+ "id": id
3695
+ },
3696
+ body: requestBody,
3697
+ mediaType: "application/json",
3698
+ errors: {
3699
+ 500: `Internal server error`
3700
+ }
3701
+ });
3702
+ }
3703
+ /**
3704
+ * Delete Role
3705
+ * Delete an existing role (non-master roles only)
3706
+ * @param id
3707
+ * @returns RoleResponse Role deleted successfully
3708
+ * @throws ApiError
3709
+ */
3710
+ deleteRole(id) {
3711
+ return this.httpRequest.request({
3712
+ method: "DELETE",
3713
+ url: "/api/role/{id}",
3714
+ path: {
3715
+ "id": id
3716
+ },
3717
+ errors: {
3718
+ 500: `Internal server error`
3719
+ }
3720
+ });
3721
+ }
3722
+ };
3723
+
3724
+ // src/services/RotationService.ts
3725
+ var RotationService = class {
3726
+ constructor(httpRequest) {
3727
+ this.httpRequest = httpRequest;
3728
+ }
3729
+ /**
3730
+ * Create Rotation Policy
3731
+ * Create a new secret rotation policy for a variable
3732
+ * @param requestBody
3733
+ * @returns RotationPolicyResponse Rotation policy created successfully
3734
+ * @throws ApiError
3735
+ */
3736
+ createRotationPolicy(requestBody) {
3737
+ return this.httpRequest.request({
3738
+ method: "POST",
3739
+ url: "/api/v1/manage/rotation",
3740
+ body: requestBody,
3741
+ mediaType: "application/json",
3742
+ errors: {
3743
+ 400: `Bad request`,
3744
+ 403: `Forbidden`,
3745
+ 409: `Conflict - policy already exists`,
3746
+ 500: `Internal server error`
3747
+ }
3748
+ });
3749
+ }
3750
+ /**
3751
+ * Get Rotation Policies
3752
+ * List all rotation policies for the organization
3753
+ * @param appId
3754
+ * @param envTypeId
3755
+ * @param enabled
3756
+ * @returns RotationPoliciesResponse Rotation policies retrieved successfully
3757
+ * @throws ApiError
3758
+ */
3759
+ getRotationPolicies(appId, envTypeId, enabled) {
3760
+ return this.httpRequest.request({
3761
+ method: "GET",
3762
+ url: "/api/v1/manage/rotation",
3763
+ query: {
3764
+ "app_id": appId,
3765
+ "env_type_id": envTypeId,
3766
+ "enabled": enabled
3767
+ },
3768
+ errors: {
3769
+ 500: `Internal server error`
3770
+ }
3771
+ });
3772
+ }
3773
+ /**
3774
+ * Get Rotation Policy
3775
+ * Get a specific rotation policy by ID
3776
+ * @param id
3777
+ * @returns RotationPolicyResponse Rotation policy retrieved successfully
3778
+ * @throws ApiError
3779
+ */
3780
+ getRotationPolicy(id) {
3781
+ return this.httpRequest.request({
3782
+ method: "GET",
3783
+ url: "/api/v1/manage/rotation/{id}",
3784
+ path: {
3785
+ "id": id
3786
+ },
3787
+ errors: {
3788
+ 404: `Not found`,
3789
+ 500: `Internal server error`
3790
+ }
3791
+ });
3792
+ }
3793
+ /**
3794
+ * Update Rotation Policy
3795
+ * Update an existing rotation policy
3796
+ * @param id
3797
+ * @param requestBody
3798
+ * @returns RotationPolicyResponse Rotation policy updated successfully
3799
+ * @throws ApiError
3800
+ */
3801
+ updateRotationPolicy(id, requestBody) {
3802
+ return this.httpRequest.request({
3803
+ method: "PATCH",
3804
+ url: "/api/v1/manage/rotation/{id}",
3805
+ path: {
3806
+ "id": id
3807
+ },
3808
+ body: requestBody,
3809
+ mediaType: "application/json",
3810
+ errors: {
3811
+ 403: `Forbidden`,
3812
+ 404: `Not found`,
3813
+ 500: `Internal server error`
3814
+ }
3815
+ });
3816
+ }
3817
+ /**
3818
+ * Delete Rotation Policy
3819
+ * Delete a rotation policy
3820
+ * @param id
3821
+ * @returns ErrorResponse Rotation policy deleted successfully
3822
+ * @throws ApiError
3823
+ */
3824
+ deleteRotationPolicy(id) {
3825
+ return this.httpRequest.request({
3826
+ method: "DELETE",
3827
+ url: "/api/v1/manage/rotation/{id}",
3828
+ path: {
3829
+ "id": id
3830
+ },
3831
+ errors: {
3832
+ 403: `Forbidden`,
3833
+ 404: `Not found`,
3834
+ 500: `Internal server error`
3835
+ }
3836
+ });
3837
+ }
3838
+ /**
3839
+ * Trigger Rotation
3840
+ * Manually trigger a secret rotation for a policy
3841
+ * @param id
3842
+ * @returns TriggerRotationResponse Rotation executed successfully
3843
+ * @throws ApiError
3844
+ */
3845
+ triggerRotation(id) {
3846
+ return this.httpRequest.request({
3847
+ method: "POST",
3848
+ url: "/api/v1/manage/rotation/{id}/rotate",
3849
+ path: {
3850
+ "id": id
3851
+ },
3852
+ errors: {
3853
+ 403: `Forbidden`,
3854
+ 404: `Not found`,
3855
+ 409: `Conflict - policy disabled`,
3856
+ 500: `Internal server error`
3857
+ }
3858
+ });
3859
+ }
3860
+ /**
3861
+ * Get Rotation States
3862
+ * Get the rotation state history for a policy
3863
+ * @param id
3864
+ * @returns RotationStatesResponse Rotation states retrieved successfully
2234
3865
  * @throws ApiError
2235
3866
  */
2236
- getMyPermissions() {
3867
+ getRotationStates(id) {
2237
3868
  return this.httpRequest.request({
2238
3869
  method: "GET",
2239
- url: "/api/permission/me",
3870
+ url: "/api/v1/manage/rotation/{id}/states",
3871
+ path: {
3872
+ "id": id
3873
+ },
2240
3874
  errors: {
3875
+ 404: `Not found`,
2241
3876
  500: `Internal server error`
2242
3877
  }
2243
3878
  });
2244
3879
  }
2245
3880
  /**
2246
- * Grant App Access
2247
- * Grant a user or team access to an app
2248
- * @param appId
2249
- * @param requestBody
2250
- * @returns PermissionMessageResponse Access granted successfully
3881
+ * Revoke Expired Credentials
3882
+ * Revoke old credentials that have passed their dual-credential window
3883
+ * @returns RevokeOldCredentialResponse Expired credentials revoked successfully
2251
3884
  * @throws ApiError
2252
3885
  */
2253
- grantAppAccess(appId, requestBody) {
3886
+ revokeExpiredCredentials() {
2254
3887
  return this.httpRequest.request({
2255
3888
  method: "POST",
2256
- url: "/api/permission/app/{app_id}/grant",
2257
- path: {
2258
- "app_id": appId
2259
- },
2260
- body: requestBody,
2261
- mediaType: "application/json",
3889
+ url: "/api/v1/manage/rotation/revoke-expired",
2262
3890
  errors: {
2263
3891
  500: `Internal server error`
2264
3892
  }
2265
3893
  });
2266
3894
  }
3895
+ };
3896
+
3897
+ // src/services/SamlProvidersService.ts
3898
+ var SamlProvidersService = class {
3899
+ constructor(httpRequest) {
3900
+ this.httpRequest = httpRequest;
3901
+ }
2267
3902
  /**
2268
- * Revoke App Access
2269
- * Revoke a user or team's access to an app
2270
- * @param appId
3903
+ * Register SAML Provider
3904
+ * Register a new SAML identity provider for SSO authentication
2271
3905
  * @param requestBody
2272
- * @returns PermissionMessageResponse Access revoked successfully
3906
+ * @returns SamlProviderResponse SAML provider created successfully
2273
3907
  * @throws ApiError
2274
3908
  */
2275
- revokeAppAccess(appId, requestBody) {
3909
+ createSamlProvider(requestBody) {
2276
3910
  return this.httpRequest.request({
2277
3911
  method: "POST",
2278
- url: "/api/permission/app/{app_id}/revoke",
2279
- path: {
2280
- "app_id": appId
2281
- },
3912
+ url: "/api/v1/manage/saml",
2282
3913
  body: requestBody,
2283
3914
  mediaType: "application/json",
2284
3915
  errors: {
@@ -2287,49 +3918,51 @@ var PermissionsService = class {
2287
3918
  });
2288
3919
  }
2289
3920
  /**
2290
- * List App Grants
2291
- * List direct user and team grants on an app
2292
- * @param appId
2293
- * @returns GrantsListResponse App grants listed successfully
3921
+ * Get All SAML Providers
3922
+ * Retrieve all SAML providers for the organization
3923
+ * @returns SamlProvidersResponse SAML providers retrieved successfully
2294
3924
  * @throws ApiError
2295
3925
  */
2296
- listAppGrants(appId) {
3926
+ getAllSamlProviders() {
2297
3927
  return this.httpRequest.request({
2298
3928
  method: "GET",
2299
- url: "/api/permission/app/{app_id}/grants",
2300
- path: {
2301
- "app_id": appId
3929
+ url: "/api/v1/manage/saml",
3930
+ errors: {
3931
+ 500: `Internal server error`
2302
3932
  }
2303
3933
  });
2304
3934
  }
2305
3935
  /**
2306
- * Get App Effective Access
2307
- * List user effective access for an app including team inheritance
2308
- * @param appId
2309
- * @returns EffectiveAccessResponse Effective app access returned successfully
3936
+ * Get SAML Provider
3937
+ * Retrieve a specific SAML provider. Certificate PEM is omitted unless include=certificate.
3938
+ * @param id
3939
+ * @returns SamlProviderResponse SAML provider retrieved successfully
2310
3940
  * @throws ApiError
2311
3941
  */
2312
- getAppEffectiveAccess(appId) {
3942
+ getSamlProvider(id) {
2313
3943
  return this.httpRequest.request({
2314
3944
  method: "GET",
2315
- url: "/api/permission/app/{app_id}/effective-access",
3945
+ url: "/api/v1/manage/saml/{id}",
2316
3946
  path: {
2317
- "app_id": appId
3947
+ "id": id
3948
+ },
3949
+ errors: {
3950
+ 500: `Internal server error`
2318
3951
  }
2319
3952
  });
2320
3953
  }
2321
3954
  /**
2322
- * Grant Env Type Access
2323
- * Grant a user or team access to an environment type
3955
+ * Update SAML Provider
3956
+ * Update an existing SAML provider
2324
3957
  * @param id
2325
3958
  * @param requestBody
2326
- * @returns PermissionMessageResponse Access granted successfully
3959
+ * @returns ErrorResponse SAML provider updated successfully
2327
3960
  * @throws ApiError
2328
3961
  */
2329
- grantEnvTypeAccess(id, requestBody) {
3962
+ updateSamlProvider(id, requestBody) {
2330
3963
  return this.httpRequest.request({
2331
- method: "POST",
2332
- url: "/api/permission/env_type/{id}/grant",
3964
+ method: "PUT",
3965
+ url: "/api/v1/manage/saml/{id}",
2333
3966
  path: {
2334
3967
  "id": id
2335
3968
  },
@@ -2341,155 +3974,127 @@ var PermissionsService = class {
2341
3974
  });
2342
3975
  }
2343
3976
  /**
2344
- * Revoke Env Type Access
2345
- * Revoke a user or team's access to an environment type
3977
+ * Delete SAML Provider
3978
+ * Delete an existing SAML provider
2346
3979
  * @param id
2347
- * @param requestBody
2348
- * @returns PermissionMessageResponse Access revoked successfully
3980
+ * @returns ErrorResponse SAML provider deleted successfully
2349
3981
  * @throws ApiError
2350
3982
  */
2351
- revokeEnvTypeAccess(id, requestBody) {
3983
+ deleteSamlProvider(id) {
2352
3984
  return this.httpRequest.request({
2353
- method: "POST",
2354
- url: "/api/permission/env_type/{id}/revoke",
3985
+ method: "DELETE",
3986
+ url: "/api/v1/manage/saml/{id}",
2355
3987
  path: {
2356
3988
  "id": id
2357
3989
  },
2358
- body: requestBody,
2359
- mediaType: "application/json",
2360
3990
  errors: {
2361
3991
  500: `Internal server error`
2362
3992
  }
2363
3993
  });
2364
3994
  }
2365
3995
  /**
2366
- * List Env Type Grants
2367
- * List direct user and team grants on an environment type
3996
+ * Get SAML SP Metadata
3997
+ * Redirects to the public SP metadata URL for this organization
2368
3998
  * @param id
2369
- * @returns GrantsListResponse Env type grants listed successfully
3999
+ * @returns void
2370
4000
  * @throws ApiError
2371
4001
  */
2372
- listEnvTypeGrants(id) {
4002
+ getSamlMetadata(id) {
2373
4003
  return this.httpRequest.request({
2374
4004
  method: "GET",
2375
- url: "/api/permission/env_type/{id}/grants",
4005
+ url: "/api/v1/manage/saml/{id}/metadata",
2376
4006
  path: {
2377
4007
  "id": id
4008
+ },
4009
+ errors: {
4010
+ 302: `Redirect to /api/saml/metadata/{orgId}`
2378
4011
  }
2379
4012
  });
2380
4013
  }
2381
4014
  };
2382
4015
 
2383
- // src/services/RolesService.ts
2384
- var RolesService = class {
4016
+ // src/services/SamlSsoService.ts
4017
+ var SamlSsoService = class {
2385
4018
  constructor(httpRequest) {
2386
4019
  this.httpRequest = httpRequest;
2387
4020
  }
2388
4021
  /**
2389
- * Get All Roles
2390
- * Retrieve all roles in the organization
2391
- * @returns RolesResponse Roles retrieved successfully
4022
+ * Get public SAML SP metadata
4023
+ * Unauthenticated SP metadata XML for the organization
4024
+ * @param orgId
4025
+ * @returns string SP metadata XML
2392
4026
  * @throws ApiError
2393
4027
  */
2394
- getAllRoles() {
4028
+ getPublicSamlMetadata(orgId) {
2395
4029
  return this.httpRequest.request({
2396
4030
  method: "GET",
2397
- url: "/api/role",
4031
+ url: "/api/saml/metadata/{orgId}",
4032
+ path: {
4033
+ "orgId": orgId
4034
+ },
2398
4035
  errors: {
2399
- 500: `Internal server error`
4036
+ 404: `SSO is not available`
2400
4037
  }
2401
4038
  });
2402
4039
  }
2403
4040
  /**
2404
- * Create Role
2405
- * Create a new role in the organization
2406
- * @param requestBody
2407
- * @returns RoleResponse Role created successfully
4041
+ * SAML Assertion Consumer Service
4042
+ * Receive and validate a SAML Response from the identity provider
4043
+ * @param orgId
4044
+ * @returns void
2408
4045
  * @throws ApiError
2409
4046
  */
2410
- createRole(requestBody) {
4047
+ handlePublicSamlAcs(orgId) {
2411
4048
  return this.httpRequest.request({
2412
4049
  method: "POST",
2413
- url: "/api/role",
2414
- body: requestBody,
2415
- mediaType: "application/json",
2416
- errors: {
2417
- 500: `Internal server error`
2418
- }
2419
- });
2420
- }
2421
- /**
2422
- * Get Role Statistics
2423
- * Retrieve statistics about roles in the organization
2424
- * @returns RoleStatsResponse Role statistics retrieved successfully
2425
- * @throws ApiError
2426
- */
2427
- getRoleStats() {
2428
- return this.httpRequest.request({
2429
- method: "GET",
2430
- url: "/api/role/stats",
2431
- errors: {
2432
- 500: `Internal server error`
2433
- }
2434
- });
2435
- }
2436
- /**
2437
- * Get Role
2438
- * Retrieve a specific role by ID
2439
- * @param id
2440
- * @returns RoleResponse Role retrieved successfully
2441
- * @throws ApiError
2442
- */
2443
- getRole(id) {
2444
- return this.httpRequest.request({
2445
- method: "GET",
2446
- url: "/api/role/{id}",
4050
+ url: "/api/saml/acs/{orgId}",
2447
4051
  path: {
2448
- "id": id
4052
+ "orgId": orgId
2449
4053
  },
2450
4054
  errors: {
2451
- 500: `Internal server error`
4055
+ 302: `Authentication successful`,
4056
+ 401: `Authentication failed`
2452
4057
  }
2453
4058
  });
2454
4059
  }
2455
4060
  /**
2456
- * Update Role
2457
- * Update an existing role
2458
- * @param id
4061
+ * Start SAML SSO
4062
+ * Unauthenticated SP-initiated start. Returns a redirect URL for the login page or CLI.
4063
+ * @param orgSlug
2459
4064
  * @param requestBody
2460
- * @returns RoleResponse Role updated successfully
4065
+ * @returns SamlSsoResponse Redirect URL generated
2461
4066
  * @throws ApiError
2462
4067
  */
2463
- updateRole(id, requestBody) {
4068
+ startPublicSamlSso(orgSlug, requestBody) {
2464
4069
  return this.httpRequest.request({
2465
- method: "PATCH",
2466
- url: "/api/role/{id}",
4070
+ method: "POST",
4071
+ url: "/api/saml/sso/{orgSlug}",
2467
4072
  path: {
2468
- "id": id
4073
+ "orgSlug": orgSlug
2469
4074
  },
2470
4075
  body: requestBody,
2471
4076
  mediaType: "application/json",
2472
4077
  errors: {
2473
- 500: `Internal server error`
4078
+ 404: `SSO is not available`
2474
4079
  }
2475
4080
  });
2476
4081
  }
2477
4082
  /**
2478
- * Delete Role
2479
- * Delete an existing role (non-master roles only)
2480
- * @param id
2481
- * @returns RoleResponse Role deleted successfully
4083
+ * Bookmark SAML SSO start
4084
+ * Success redirects to the IdP. Any error redirects to the dashboard login page.
4085
+ * @param orgSlug
4086
+ * @returns void
2482
4087
  * @throws ApiError
2483
4088
  */
2484
- deleteRole(id) {
4089
+ startPublicSamlSsoRedirect(orgSlug) {
2485
4090
  return this.httpRequest.request({
2486
- method: "DELETE",
2487
- url: "/api/role/{id}",
4091
+ method: "GET",
4092
+ url: "/api/saml/sso/{orgSlug}",
2488
4093
  path: {
2489
- "id": id
4094
+ "orgSlug": orgSlug
2490
4095
  },
2491
4096
  errors: {
2492
- 500: `Internal server error`
4097
+ 302: `Redirect to the IdP or /login?sso=failed`
2493
4098
  }
2494
4099
  });
2495
4100
  }
@@ -2956,6 +4561,46 @@ var ServiceTokensService = class {
2956
4561
  }
2957
4562
  };
2958
4563
 
4564
+ // src/services/SetupService.ts
4565
+ var SetupService = class {
4566
+ constructor(httpRequest) {
4567
+ this.httpRequest = httpRequest;
4568
+ }
4569
+ /**
4570
+ * Operator setup status (self-host)
4571
+ * @returns SetupStatusResponse Setup status
4572
+ * @throws ApiError
4573
+ */
4574
+ getSetupStatus() {
4575
+ return this.httpRequest.request({
4576
+ method: "GET",
4577
+ url: "/api/setup/status",
4578
+ errors: {
4579
+ 401: `Invalid setup token`
4580
+ }
4581
+ });
4582
+ }
4583
+ /**
4584
+ * Create organization via operator setup token (self-host only)
4585
+ * @param requestBody
4586
+ * @returns any Organization created
4587
+ * @throws ApiError
4588
+ */
4589
+ createSetupOrganization(requestBody) {
4590
+ return this.httpRequest.request({
4591
+ method: "POST",
4592
+ url: "/api/setup/org",
4593
+ body: requestBody,
4594
+ mediaType: "application/json",
4595
+ errors: {
4596
+ 400: `Invalid request`,
4597
+ 401: `Invalid setup token`,
4598
+ 403: `Channel forbidden`
4599
+ }
4600
+ });
4601
+ }
4602
+ };
4603
+
2959
4604
  // src/services/SystemService.ts
2960
4605
  var SystemService = class {
2961
4606
  constructor(httpRequest) {
@@ -2975,6 +4620,20 @@ var SystemService = class {
2975
4620
  }
2976
4621
  });
2977
4622
  }
4623
+ /**
4624
+ * Get Management System Status
4625
+ * @returns SystemStatusResponse Management system status
4626
+ * @throws ApiError
4627
+ */
4628
+ manageGetManagementSystemStatus() {
4629
+ return this.httpRequest.request({
4630
+ method: "GET",
4631
+ url: "/api/v1/manage/system/status",
4632
+ errors: {
4633
+ 500: `Internal server error`
4634
+ }
4635
+ });
4636
+ }
2978
4637
  };
2979
4638
 
2980
4639
  // src/services/TeamsService.ts
@@ -3265,7 +4924,7 @@ var UsersService = class {
3265
4924
  * @returns UserResponse User role updated successfully
3266
4925
  * @throws ApiError
3267
4926
  */
3268
- updateRole(id, requestBody) {
4927
+ updateUserRole(id, requestBody) {
3269
4928
  return this.httpRequest.request({
3270
4929
  method: "PATCH",
3271
4930
  url: "/api/user/role/{id}",
@@ -3409,20 +5068,31 @@ var EnvSyncAPISDK = class {
3409
5068
  authentication;
3410
5069
  certificates;
3411
5070
  changeRequests;
5071
+ dynamicSecrets;
5072
+ enterprise;
5073
+ enterpriseCmk;
3412
5074
  environmentTypes;
3413
5075
  environmentVariables;
3414
5076
  environmentVariablesPointInTime;
3415
5077
  environmentVariablesRollback;
3416
5078
  fileUpload;
3417
5079
  gpgKeys;
5080
+ license;
5081
+ logForwarding;
5082
+ oidcProviders;
3418
5083
  onboarding;
3419
5084
  organizations;
5085
+ orgFeatures;
3420
5086
  permissions;
3421
5087
  roles;
5088
+ rotation;
5089
+ samlProviders;
5090
+ samlSso;
3422
5091
  secrets;
3423
5092
  secretsPointInTime;
3424
5093
  secretsRollback;
3425
5094
  serviceTokens;
5095
+ setup;
3426
5096
  system;
3427
5097
  teams;
3428
5098
  users;
@@ -3430,8 +5100,8 @@ var EnvSyncAPISDK = class {
3430
5100
  request;
3431
5101
  constructor(config, HttpRequest = FetchHttpRequest) {
3432
5102
  this.request = new HttpRequest({
3433
- BASE: config?.BASE ?? "http://localhost:4000",
3434
- VERSION: config?.VERSION ?? "0.10.0",
5103
+ BASE: config?.BASE ?? "http://localhost:0",
5104
+ VERSION: config?.VERSION ?? "0.20.1",
3435
5105
  WITH_CREDENTIALS: config?.WITH_CREDENTIALS ?? false,
3436
5106
  CREDENTIALS: config?.CREDENTIALS ?? "include",
3437
5107
  TOKEN: config?.TOKEN,
@@ -3447,20 +5117,31 @@ var EnvSyncAPISDK = class {
3447
5117
  this.authentication = new AuthenticationService(this.request);
3448
5118
  this.certificates = new CertificatesService(this.request);
3449
5119
  this.changeRequests = new ChangeRequestsService(this.request);
5120
+ this.dynamicSecrets = new DynamicSecretsService(this.request);
5121
+ this.enterprise = new EnterpriseService(this.request);
5122
+ this.enterpriseCmk = new EnterpriseCmkService(this.request);
3450
5123
  this.environmentTypes = new EnvironmentTypesService(this.request);
3451
5124
  this.environmentVariables = new EnvironmentVariablesService(this.request);
3452
5125
  this.environmentVariablesPointInTime = new EnvironmentVariablesPointInTimeService(this.request);
3453
5126
  this.environmentVariablesRollback = new EnvironmentVariablesRollbackService(this.request);
3454
5127
  this.fileUpload = new FileUploadService(this.request);
3455
5128
  this.gpgKeys = new GpgKeysService(this.request);
5129
+ this.license = new LicenseService(this.request);
5130
+ this.logForwarding = new LogForwardingService(this.request);
5131
+ this.oidcProviders = new OidcProvidersService(this.request);
3456
5132
  this.onboarding = new OnboardingService(this.request);
3457
5133
  this.organizations = new OrganizationsService(this.request);
5134
+ this.orgFeatures = new OrgFeaturesService(this.request);
3458
5135
  this.permissions = new PermissionsService(this.request);
3459
5136
  this.roles = new RolesService(this.request);
5137
+ this.rotation = new RotationService(this.request);
5138
+ this.samlProviders = new SamlProvidersService(this.request);
5139
+ this.samlSso = new SamlSsoService(this.request);
3460
5140
  this.secrets = new SecretsService(this.request);
3461
5141
  this.secretsPointInTime = new SecretsPointInTimeService(this.request);
3462
5142
  this.secretsRollback = new SecretsRollbackService(this.request);
3463
5143
  this.serviceTokens = new ServiceTokensService(this.request);
5144
+ this.setup = new SetupService(this.request);
3464
5145
  this.system = new SystemService(this.request);
3465
5146
  this.teams = new TeamsService(this.request);
3466
5147
  this.users = new UsersService(this.request);
@@ -3470,8 +5151,8 @@ var EnvSyncAPISDK = class {
3470
5151
 
3471
5152
  // src/core/OpenAPI.ts
3472
5153
  var OpenAPI = {
3473
- BASE: "http://localhost:4000",
3474
- VERSION: "0.10.0",
5154
+ BASE: "http://localhost:0",
5155
+ VERSION: "0.20.1",
3475
5156
  WITH_CREDENTIALS: false,
3476
5157
  CREDENTIALS: "include",
3477
5158
  TOKEN: void 0,
@@ -3498,6 +5179,118 @@ var ChangeRequestResponse;
3498
5179
  })(status = ChangeRequestResponse2.status || (ChangeRequestResponse2.status = {}));
3499
5180
  })(ChangeRequestResponse || (ChangeRequestResponse = {}));
3500
5181
 
5182
+ // src/models/CreateDynamicSecretEngineRequest.ts
5183
+ var CreateDynamicSecretEngineRequest;
5184
+ ((CreateDynamicSecretEngineRequest2) => {
5185
+ let engine_type;
5186
+ ((engine_type2) => {
5187
+ engine_type2["POSTGRES"] = "postgres";
5188
+ engine_type2["MYSQL"] = "mysql";
5189
+ engine_type2["AWS_IAM"] = "aws-iam";
5190
+ engine_type2["AZURE_SP"] = "azure-sp";
5191
+ })(engine_type = CreateDynamicSecretEngineRequest2.engine_type || (CreateDynamicSecretEngineRequest2.engine_type = {}));
5192
+ })(CreateDynamicSecretEngineRequest || (CreateDynamicSecretEngineRequest = {}));
5193
+
5194
+ // src/models/CreateIntegrationBindingRequest.ts
5195
+ var CreateIntegrationBindingRequest;
5196
+ ((CreateIntegrationBindingRequest2) => {
5197
+ let provider_type;
5198
+ ((provider_type2) => {
5199
+ provider_type2["GITHUB"] = "github";
5200
+ provider_type2["GITLAB"] = "gitlab";
5201
+ provider_type2["AWS_SSM"] = "aws-ssm";
5202
+ provider_type2["VERCEL"] = "vercel";
5203
+ provider_type2["GOOGLE_SECRET_MANAGER"] = "google-secret-manager";
5204
+ })(provider_type = CreateIntegrationBindingRequest2.provider_type || (CreateIntegrationBindingRequest2.provider_type = {}));
5205
+ })(CreateIntegrationBindingRequest || (CreateIntegrationBindingRequest = {}));
5206
+
5207
+ // src/models/CreateLogForwardingRequest.ts
5208
+ var CreateLogForwardingRequest;
5209
+ ((CreateLogForwardingRequest2) => {
5210
+ let provider_type;
5211
+ ((provider_type2) => {
5212
+ provider_type2["DATADOG"] = "datadog";
5213
+ provider_type2["SPLUNK"] = "splunk";
5214
+ provider_type2["SUMO_LOGIC"] = "sumo-logic";
5215
+ })(provider_type = CreateLogForwardingRequest2.provider_type || (CreateLogForwardingRequest2.provider_type = {}));
5216
+ })(CreateLogForwardingRequest || (CreateLogForwardingRequest = {}));
5217
+
5218
+ // src/models/CreateManualSyncRunRequest.ts
5219
+ var CreateManualSyncRunRequest;
5220
+ ((CreateManualSyncRunRequest2) => {
5221
+ let provider_type;
5222
+ ((provider_type2) => {
5223
+ provider_type2["GITHUB"] = "github";
5224
+ provider_type2["GITLAB"] = "gitlab";
5225
+ provider_type2["AWS_SSM"] = "aws-ssm";
5226
+ provider_type2["VERCEL"] = "vercel";
5227
+ provider_type2["GOOGLE_SECRET_MANAGER"] = "google-secret-manager";
5228
+ })(provider_type = CreateManualSyncRunRequest2.provider_type || (CreateManualSyncRunRequest2.provider_type = {}));
5229
+ })(CreateManualSyncRunRequest || (CreateManualSyncRunRequest = {}));
5230
+
5231
+ // src/models/CreateOidcProviderRequest.ts
5232
+ var CreateOidcProviderRequest;
5233
+ ((CreateOidcProviderRequest2) => {
5234
+ let provider_type;
5235
+ ((provider_type2) => {
5236
+ provider_type2["GITHUB_ACTIONS"] = "github_actions";
5237
+ provider_type2["GITLAB_CI"] = "gitlab_ci";
5238
+ provider_type2["KUBERNETES"] = "kubernetes";
5239
+ provider_type2["GENERIC"] = "generic";
5240
+ })(provider_type = CreateOidcProviderRequest2.provider_type || (CreateOidcProviderRequest2.provider_type = {}));
5241
+ })(CreateOidcProviderRequest || (CreateOidcProviderRequest = {}));
5242
+
5243
+ // src/models/CreateProviderConnectionRequest.ts
5244
+ var CreateProviderConnectionRequest;
5245
+ ((CreateProviderConnectionRequest2) => {
5246
+ let provider_type;
5247
+ ((provider_type2) => {
5248
+ provider_type2["GITHUB"] = "github";
5249
+ provider_type2["GITLAB"] = "gitlab";
5250
+ provider_type2["AWS_SSM"] = "aws-ssm";
5251
+ provider_type2["VERCEL"] = "vercel";
5252
+ provider_type2["GOOGLE_SECRET_MANAGER"] = "google-secret-manager";
5253
+ })(provider_type = CreateProviderConnectionRequest2.provider_type || (CreateProviderConnectionRequest2.provider_type = {}));
5254
+ let status;
5255
+ ((status2) => {
5256
+ status2["ACTIVE"] = "active";
5257
+ status2["INACTIVE"] = "inactive";
5258
+ status2["ERROR"] = "error";
5259
+ })(status = CreateProviderConnectionRequest2.status || (CreateProviderConnectionRequest2.status = {}));
5260
+ })(CreateProviderConnectionRequest || (CreateProviderConnectionRequest = {}));
5261
+
5262
+ // src/models/CreateRotationPolicyRequest.ts
5263
+ var CreateRotationPolicyRequest;
5264
+ ((CreateRotationPolicyRequest2) => {
5265
+ let engine_type;
5266
+ ((engine_type2) => {
5267
+ engine_type2["POSTGRES"] = "postgres";
5268
+ engine_type2["MYSQL"] = "mysql";
5269
+ engine_type2["AWS_IAM"] = "aws-iam";
5270
+ engine_type2["AZURE_SP"] = "azure-sp";
5271
+ engine_type2["GCP_SERVICE_ACCOUNT"] = "gcp-service-account";
5272
+ engine_type2["CLOUDFLARE_PAGES"] = "cloudflare-pages";
5273
+ engine_type2["SENDGRID"] = "sendgrid";
5274
+ engine_type2["TWILIO"] = "twilio";
5275
+ })(engine_type = CreateRotationPolicyRequest2.engine_type || (CreateRotationPolicyRequest2.engine_type = {}));
5276
+ })(CreateRotationPolicyRequest || (CreateRotationPolicyRequest = {}));
5277
+
5278
+ // src/models/CreateSamlProviderRequest.ts
5279
+ var CreateSamlProviderRequest;
5280
+ ((CreateSamlProviderRequest2) => {
5281
+ let provider_type;
5282
+ ((provider_type2) => {
5283
+ provider_type2["OKTA"] = "okta";
5284
+ provider_type2["ONELOGIN"] = "onelogin";
5285
+ provider_type2["AZURE_AD"] = "azure-ad";
5286
+ provider_type2["GOOGLE_WORKSPACE"] = "google-workspace";
5287
+ provider_type2["DUO"] = "duo";
5288
+ provider_type2["RIPPLING"] = "rippling";
5289
+ provider_type2["ORACLE"] = "oracle";
5290
+ provider_type2["PING_IDENTITY"] = "ping-identity";
5291
+ })(provider_type = CreateSamlProviderRequest2.provider_type || (CreateSamlProviderRequest2.provider_type = {}));
5292
+ })(CreateSamlProviderRequest || (CreateSamlProviderRequest = {}));
5293
+
3501
5294
  // src/models/CreateWebhookRequest.ts
3502
5295
  var CreateWebhookRequest;
3503
5296
  ((CreateWebhookRequest2) => {
@@ -3521,6 +5314,18 @@ var CreateWebhookRequest;
3521
5314
  })(linked_to = CreateWebhookRequest2.linked_to || (CreateWebhookRequest2.linked_to = {}));
3522
5315
  })(CreateWebhookRequest || (CreateWebhookRequest = {}));
3523
5316
 
5317
+ // src/models/DynamicSecretEngineResponse.ts
5318
+ var DynamicSecretEngineResponse;
5319
+ ((DynamicSecretEngineResponse2) => {
5320
+ let engine_type;
5321
+ ((engine_type2) => {
5322
+ engine_type2["POSTGRES"] = "postgres";
5323
+ engine_type2["MYSQL"] = "mysql";
5324
+ engine_type2["AWS_IAM"] = "aws-iam";
5325
+ engine_type2["AZURE_SP"] = "azure-sp";
5326
+ })(engine_type = DynamicSecretEngineResponse2.engine_type || (DynamicSecretEngineResponse2.engine_type = {}));
5327
+ })(DynamicSecretEngineResponse || (DynamicSecretEngineResponse = {}));
5328
+
3524
5329
  // src/models/EffectiveAccessEntry.ts
3525
5330
  var EffectiveAccessEntry;
3526
5331
  ((EffectiveAccessEntry2) => {
@@ -3550,6 +5355,19 @@ var EffectiveAccessEntry;
3550
5355
  })(team_relation = EffectiveAccessEntry2.team_relation || (EffectiveAccessEntry2.team_relation = {}));
3551
5356
  })(EffectiveAccessEntry || (EffectiveAccessEntry = {}));
3552
5357
 
5358
+ // src/models/EnterpriseProviderProfile.ts
5359
+ var EnterpriseProviderProfile;
5360
+ ((EnterpriseProviderProfile2) => {
5361
+ let id;
5362
+ ((id2) => {
5363
+ id2["GITHUB"] = "github";
5364
+ id2["GITLAB"] = "gitlab";
5365
+ id2["AWS_SSM"] = "aws-ssm";
5366
+ id2["VERCEL"] = "vercel";
5367
+ id2["GOOGLE_SECRET_MANAGER"] = "google-secret-manager";
5368
+ })(id = EnterpriseProviderProfile2.id || (EnterpriseProviderProfile2.id = {}));
5369
+ })(EnterpriseProviderProfile || (EnterpriseProviderProfile = {}));
5370
+
3553
5371
  // src/models/ExportEnvRequest.ts
3554
5372
  var ExportEnvRequest;
3555
5373
  ((ExportEnvRequest2) => {
@@ -3611,6 +5429,19 @@ var GrantEntry;
3611
5429
  })(relation = GrantEntry2.relation || (GrantEntry2.relation = {}));
3612
5430
  })(GrantEntry || (GrantEntry = {}));
3613
5431
 
5432
+ // src/models/IntegrationBinding.ts
5433
+ var IntegrationBinding;
5434
+ ((IntegrationBinding2) => {
5435
+ let provider_type;
5436
+ ((provider_type2) => {
5437
+ provider_type2["GITHUB"] = "github";
5438
+ provider_type2["GITLAB"] = "gitlab";
5439
+ provider_type2["AWS_SSM"] = "aws-ssm";
5440
+ provider_type2["VERCEL"] = "vercel";
5441
+ provider_type2["GOOGLE_SECRET_MANAGER"] = "google-secret-manager";
5442
+ })(provider_type = IntegrationBinding2.provider_type || (IntegrationBinding2.provider_type = {}));
5443
+ })(IntegrationBinding || (IntegrationBinding = {}));
5444
+
3614
5445
  // src/models/LicenseState.ts
3615
5446
  var LicenseState;
3616
5447
  ((LicenseState2) => {
@@ -3631,6 +5462,117 @@ var LicenseState;
3631
5462
  })(validation_mode = LicenseState2.validation_mode || (LicenseState2.validation_mode = {}));
3632
5463
  })(LicenseState || (LicenseState = {}));
3633
5464
 
5465
+ // src/models/LogForwardingResponse.ts
5466
+ var LogForwardingResponse;
5467
+ ((LogForwardingResponse2) => {
5468
+ let provider_type;
5469
+ ((provider_type2) => {
5470
+ provider_type2["DATADOG"] = "datadog";
5471
+ provider_type2["SPLUNK"] = "splunk";
5472
+ provider_type2["SUMO_LOGIC"] = "sumo-logic";
5473
+ })(provider_type = LogForwardingResponse2.provider_type || (LogForwardingResponse2.provider_type = {}));
5474
+ })(LogForwardingResponse || (LogForwardingResponse = {}));
5475
+
5476
+ // src/models/OidcProviderResponse.ts
5477
+ var OidcProviderResponse;
5478
+ ((OidcProviderResponse2) => {
5479
+ let provider_type;
5480
+ ((provider_type2) => {
5481
+ provider_type2["GITHUB_ACTIONS"] = "github_actions";
5482
+ provider_type2["GITLAB_CI"] = "gitlab_ci";
5483
+ provider_type2["KUBERNETES"] = "kubernetes";
5484
+ provider_type2["GENERIC"] = "generic";
5485
+ })(provider_type = OidcProviderResponse2.provider_type || (OidcProviderResponse2.provider_type = {}));
5486
+ })(OidcProviderResponse || (OidcProviderResponse = {}));
5487
+
5488
+ // src/models/OrgKmsConfigResponse.ts
5489
+ var OrgKmsConfigResponse;
5490
+ ((OrgKmsConfigResponse2) => {
5491
+ let source;
5492
+ ((source2) => {
5493
+ source2["MANAGED"] = "managed";
5494
+ source2["AWS_KMS"] = "aws-kms";
5495
+ source2["GCP_KMS"] = "gcp-kms";
5496
+ source2["AZURE_KV"] = "azure-kv";
5497
+ })(source = OrgKmsConfigResponse2.source || (OrgKmsConfigResponse2.source = {}));
5498
+ let status;
5499
+ ((status2) => {
5500
+ status2["ACTIVE"] = "active";
5501
+ status2["PENDING"] = "pending";
5502
+ status2["ROTATING"] = "rotating";
5503
+ status2["UNAVAILABLE"] = "unavailable";
5504
+ status2["DISABLED"] = "disabled";
5505
+ })(status = OrgKmsConfigResponse2.status || (OrgKmsConfigResponse2.status = {}));
5506
+ })(OrgKmsConfigResponse || (OrgKmsConfigResponse = {}));
5507
+
5508
+ // src/models/OrgKmsJobResponse.ts
5509
+ var OrgKmsJobResponse;
5510
+ ((OrgKmsJobResponse2) => {
5511
+ let kind;
5512
+ ((kind2) => {
5513
+ kind2["KEK_REWRAP"] = "kek_rewrap";
5514
+ kind2["DEK_REWRAP"] = "dek_rewrap";
5515
+ kind2["DETACH_MANAGED"] = "detach_managed";
5516
+ })(kind = OrgKmsJobResponse2.kind || (OrgKmsJobResponse2.kind = {}));
5517
+ let status;
5518
+ ((status2) => {
5519
+ status2["PENDING"] = "pending";
5520
+ status2["RUNNING"] = "running";
5521
+ status2["SUCCEEDED"] = "succeeded";
5522
+ status2["FAILED"] = "failed";
5523
+ })(status = OrgKmsJobResponse2.status || (OrgKmsJobResponse2.status = {}));
5524
+ })(OrgKmsJobResponse || (OrgKmsJobResponse = {}));
5525
+
5526
+ // src/models/OrgKmsVerifyResponse.ts
5527
+ var OrgKmsVerifyResponse;
5528
+ ((OrgKmsVerifyResponse2) => {
5529
+ let source;
5530
+ ((source2) => {
5531
+ source2["MANAGED"] = "managed";
5532
+ source2["AWS_KMS"] = "aws-kms";
5533
+ source2["GCP_KMS"] = "gcp-kms";
5534
+ source2["AZURE_KV"] = "azure-kv";
5535
+ })(source = OrgKmsVerifyResponse2.source || (OrgKmsVerifyResponse2.source = {}));
5536
+ let status;
5537
+ ((status2) => {
5538
+ status2["ACTIVE"] = "active";
5539
+ status2["PENDING"] = "pending";
5540
+ status2["ROTATING"] = "rotating";
5541
+ status2["UNAVAILABLE"] = "unavailable";
5542
+ status2["DISABLED"] = "disabled";
5543
+ })(status = OrgKmsVerifyResponse2.status || (OrgKmsVerifyResponse2.status = {}));
5544
+ })(OrgKmsVerifyResponse || (OrgKmsVerifyResponse = {}));
5545
+
5546
+ // src/models/ProviderConnection.ts
5547
+ var ProviderConnection;
5548
+ ((ProviderConnection2) => {
5549
+ let provider_type;
5550
+ ((provider_type2) => {
5551
+ provider_type2["GITHUB"] = "github";
5552
+ provider_type2["GITLAB"] = "gitlab";
5553
+ provider_type2["AWS_SSM"] = "aws-ssm";
5554
+ provider_type2["VERCEL"] = "vercel";
5555
+ provider_type2["GOOGLE_SECRET_MANAGER"] = "google-secret-manager";
5556
+ })(provider_type = ProviderConnection2.provider_type || (ProviderConnection2.provider_type = {}));
5557
+ let status;
5558
+ ((status2) => {
5559
+ status2["ACTIVE"] = "active";
5560
+ status2["INACTIVE"] = "inactive";
5561
+ status2["ERROR"] = "error";
5562
+ })(status = ProviderConnection2.status || (ProviderConnection2.status = {}));
5563
+ })(ProviderConnection || (ProviderConnection = {}));
5564
+
5565
+ // src/models/PutOrgFeatureGrantRequest.ts
5566
+ var PutOrgFeatureGrantRequest;
5567
+ ((PutOrgFeatureGrantRequest2) => {
5568
+ let source;
5569
+ ((source2) => {
5570
+ source2["BILLING"] = "billing";
5571
+ source2["SUPPORT"] = "support";
5572
+ source2["SEED"] = "seed";
5573
+ })(source = PutOrgFeatureGrantRequest2.source || (PutOrgFeatureGrantRequest2.source = {}));
5574
+ })(PutOrgFeatureGrantRequest || (PutOrgFeatureGrantRequest = {}));
5575
+
3634
5576
  // src/models/RevokeAccessRequest.ts
3635
5577
  var RevokeAccessRequest;
3636
5578
  ((RevokeAccessRequest2) => {
@@ -3659,6 +5601,38 @@ var RotateGpgKeyRequest;
3659
5601
  })(algorithm = RotateGpgKeyRequest2.algorithm || (RotateGpgKeyRequest2.algorithm = {}));
3660
5602
  })(RotateGpgKeyRequest || (RotateGpgKeyRequest = {}));
3661
5603
 
5604
+ // src/models/RotationPolicyResponse.ts
5605
+ var RotationPolicyResponse;
5606
+ ((RotationPolicyResponse2) => {
5607
+ let engine_type;
5608
+ ((engine_type2) => {
5609
+ engine_type2["POSTGRES"] = "postgres";
5610
+ engine_type2["MYSQL"] = "mysql";
5611
+ engine_type2["AWS_IAM"] = "aws-iam";
5612
+ engine_type2["AZURE_SP"] = "azure-sp";
5613
+ engine_type2["GCP_SERVICE_ACCOUNT"] = "gcp-service-account";
5614
+ engine_type2["CLOUDFLARE_PAGES"] = "cloudflare-pages";
5615
+ engine_type2["SENDGRID"] = "sendgrid";
5616
+ engine_type2["TWILIO"] = "twilio";
5617
+ })(engine_type = RotationPolicyResponse2.engine_type || (RotationPolicyResponse2.engine_type = {}));
5618
+ })(RotationPolicyResponse || (RotationPolicyResponse = {}));
5619
+
5620
+ // src/models/SamlProviderResponse.ts
5621
+ var SamlProviderResponse;
5622
+ ((SamlProviderResponse2) => {
5623
+ let provider_type;
5624
+ ((provider_type2) => {
5625
+ provider_type2["OKTA"] = "okta";
5626
+ provider_type2["ONELOGIN"] = "onelogin";
5627
+ provider_type2["AZURE_AD"] = "azure-ad";
5628
+ provider_type2["GOOGLE_WORKSPACE"] = "google-workspace";
5629
+ provider_type2["DUO"] = "duo";
5630
+ provider_type2["RIPPLING"] = "rippling";
5631
+ provider_type2["ORACLE"] = "oracle";
5632
+ provider_type2["PING_IDENTITY"] = "ping-identity";
5633
+ })(provider_type = SamlProviderResponse2.provider_type || (SamlProviderResponse2.provider_type = {}));
5634
+ })(SamlProviderResponse || (SamlProviderResponse = {}));
5635
+
3662
5636
  // src/models/SecretVariableRollbackResponse.ts
3663
5637
  var SecretVariableRollbackResponse;
3664
5638
  ((SecretVariableRollbackResponse2) => {
@@ -3670,6 +5644,21 @@ var SecretVariableRollbackResponse;
3670
5644
  })(operation = SecretVariableRollbackResponse2.operation || (SecretVariableRollbackResponse2.operation = {}));
3671
5645
  })(SecretVariableRollbackResponse || (SecretVariableRollbackResponse = {}));
3672
5646
 
5647
+ // src/models/SetupStatusResponse.ts
5648
+ var SetupStatusResponse;
5649
+ ((SetupStatusResponse2) => {
5650
+ let deployment_mode;
5651
+ ((deployment_mode2) => {
5652
+ deployment_mode2["HOSTED"] = "hosted";
5653
+ deployment_mode2["SELFHOSTED"] = "selfhosted";
5654
+ })(deployment_mode = SetupStatusResponse2.deployment_mode || (SetupStatusResponse2.deployment_mode = {}));
5655
+ let edition;
5656
+ ((edition2) => {
5657
+ edition2["OSS"] = "oss";
5658
+ edition2["ENTERPRISE"] = "enterprise";
5659
+ })(edition = SetupStatusResponse2.edition || (SetupStatusResponse2.edition = {}));
5660
+ })(SetupStatusResponse || (SetupStatusResponse = {}));
5661
+
3673
5662
  // src/models/SignDataRequest.ts
3674
5663
  var SignDataRequest;
3675
5664
  ((SignDataRequest2) => {
@@ -3681,6 +5670,45 @@ var SignDataRequest;
3681
5670
  })(mode = SignDataRequest2.mode || (SignDataRequest2.mode = {}));
3682
5671
  })(SignDataRequest || (SignDataRequest = {}));
3683
5672
 
5673
+ // src/models/SyncAuditEvent.ts
5674
+ var SyncAuditEvent;
5675
+ ((SyncAuditEvent2) => {
5676
+ let provider_type;
5677
+ ((provider_type2) => {
5678
+ provider_type2["GITHUB"] = "github";
5679
+ provider_type2["GITLAB"] = "gitlab";
5680
+ provider_type2["AWS_SSM"] = "aws-ssm";
5681
+ provider_type2["VERCEL"] = "vercel";
5682
+ provider_type2["GOOGLE_SECRET_MANAGER"] = "google-secret-manager";
5683
+ })(provider_type = SyncAuditEvent2.provider_type || (SyncAuditEvent2.provider_type = {}));
5684
+ let result;
5685
+ ((result2) => {
5686
+ result2["INFO"] = "info";
5687
+ result2["SUCCESS"] = "success";
5688
+ result2["ERROR"] = "error";
5689
+ })(result = SyncAuditEvent2.result || (SyncAuditEvent2.result = {}));
5690
+ })(SyncAuditEvent || (SyncAuditEvent = {}));
5691
+
5692
+ // src/models/SyncRun.ts
5693
+ var SyncRun;
5694
+ ((SyncRun2) => {
5695
+ let provider_type;
5696
+ ((provider_type2) => {
5697
+ provider_type2["GITHUB"] = "github";
5698
+ provider_type2["GITLAB"] = "gitlab";
5699
+ provider_type2["AWS_SSM"] = "aws-ssm";
5700
+ provider_type2["VERCEL"] = "vercel";
5701
+ provider_type2["GOOGLE_SECRET_MANAGER"] = "google-secret-manager";
5702
+ })(provider_type = SyncRun2.provider_type || (SyncRun2.provider_type = {}));
5703
+ let status;
5704
+ ((status2) => {
5705
+ status2["PENDING"] = "pending";
5706
+ status2["RUNNING"] = "running";
5707
+ status2["SUCCEEDED"] = "succeeded";
5708
+ status2["FAILED"] = "failed";
5709
+ })(status = SyncRun2.status || (SyncRun2.status = {}));
5710
+ })(SyncRun || (SyncRun = {}));
5711
+
3684
5712
  // src/models/SystemStatusState.ts
3685
5713
  var SystemStatusState;
3686
5714
  ((SystemStatusState2) => {
@@ -3689,8 +5717,36 @@ var SystemStatusState;
3689
5717
  edition2["OSS"] = "oss";
3690
5718
  edition2["ENTERPRISE"] = "enterprise";
3691
5719
  })(edition = SystemStatusState2.edition || (SystemStatusState2.edition = {}));
5720
+ let deployment_mode;
5721
+ ((deployment_mode2) => {
5722
+ deployment_mode2["HOSTED"] = "hosted";
5723
+ deployment_mode2["SELFHOSTED"] = "selfhosted";
5724
+ })(deployment_mode = SystemStatusState2.deployment_mode || (SystemStatusState2.deployment_mode = {}));
3692
5725
  })(SystemStatusState || (SystemStatusState = {}));
3693
5726
 
5727
+ // src/models/UpdateOrgKmsConfigRequest.ts
5728
+ var UpdateOrgKmsConfigRequest;
5729
+ ((UpdateOrgKmsConfigRequest2) => {
5730
+ let source;
5731
+ ((source2) => {
5732
+ source2["MANAGED"] = "managed";
5733
+ source2["AWS_KMS"] = "aws-kms";
5734
+ source2["GCP_KMS"] = "gcp-kms";
5735
+ source2["AZURE_KV"] = "azure-kv";
5736
+ })(source = UpdateOrgKmsConfigRequest2.source || (UpdateOrgKmsConfigRequest2.source = {}));
5737
+ })(UpdateOrgKmsConfigRequest || (UpdateOrgKmsConfigRequest = {}));
5738
+
5739
+ // src/models/UpdateProviderConnectionRequest.ts
5740
+ var UpdateProviderConnectionRequest;
5741
+ ((UpdateProviderConnectionRequest2) => {
5742
+ let status;
5743
+ ((status2) => {
5744
+ status2["ACTIVE"] = "active";
5745
+ status2["INACTIVE"] = "inactive";
5746
+ status2["ERROR"] = "error";
5747
+ })(status = UpdateProviderConnectionRequest2.status || (UpdateProviderConnectionRequest2.status = {}));
5748
+ })(UpdateProviderConnectionRequest || (UpdateProviderConnectionRequest = {}));
5749
+
3694
5750
  // src/models/UpdateTrustLevelRequest.ts
3695
5751
  var UpdateTrustLevelRequest;
3696
5752
  ((UpdateTrustLevelRequest2) => {
@@ -3760,6 +5816,18 @@ var WebhookResponse;
3760
5816
  linked_to2["APP"] = "app";
3761
5817
  })(linked_to = WebhookResponse2.linked_to || (WebhookResponse2.linked_to = {}));
3762
5818
  })(WebhookResponse || (WebhookResponse = {}));
5819
+
5820
+ // src/models/WhoAmIResponse.ts
5821
+ var WhoAmIResponse;
5822
+ ((WhoAmIResponse2) => {
5823
+ let auth_type;
5824
+ ((auth_type2) => {
5825
+ auth_type2["JWT"] = "jwt";
5826
+ auth_type2["SAML"] = "saml";
5827
+ auth_type2["OIDC"] = "oidc";
5828
+ auth_type2["API_KEY"] = "api_key";
5829
+ })(auth_type = WhoAmIResponse2.auth_type || (WhoAmIResponse2.auth_type = {}));
5830
+ })(WhoAmIResponse || (WhoAmIResponse = {}));
3763
5831
  // Annotate the CommonJS export names for ESM import in node:
3764
5832
  0 && (module.exports = {
3765
5833
  AccessService,
@@ -3774,8 +5842,21 @@ var WebhookResponse;
3774
5842
  CertificatesService,
3775
5843
  ChangeRequestResponse,
3776
5844
  ChangeRequestsService,
5845
+ CreateDynamicSecretEngineRequest,
5846
+ CreateIntegrationBindingRequest,
5847
+ CreateLogForwardingRequest,
5848
+ CreateManualSyncRunRequest,
5849
+ CreateOidcProviderRequest,
5850
+ CreateProviderConnectionRequest,
5851
+ CreateRotationPolicyRequest,
5852
+ CreateSamlProviderRequest,
3777
5853
  CreateWebhookRequest,
5854
+ DynamicSecretEngineResponse,
5855
+ DynamicSecretsService,
3778
5856
  EffectiveAccessEntry,
5857
+ EnterpriseCmkService,
5858
+ EnterpriseProviderProfile,
5859
+ EnterpriseService,
3779
5860
  EnvSyncAPISDK,
3780
5861
  EnvironmentTypesService,
3781
5862
  EnvironmentVariablesPointInTimeService,
@@ -3787,28 +5868,52 @@ var WebhookResponse;
3787
5868
  GpgKeysService,
3788
5869
  GrantAccessRequest,
3789
5870
  GrantEntry,
5871
+ IntegrationBinding,
5872
+ LicenseService,
3790
5873
  LicenseState,
5874
+ LogForwardingResponse,
5875
+ LogForwardingService,
5876
+ OidcProviderResponse,
5877
+ OidcProvidersService,
3791
5878
  OnboardingService,
3792
5879
  OpenAPI,
5880
+ OrgFeaturesService,
5881
+ OrgKmsConfigResponse,
5882
+ OrgKmsJobResponse,
5883
+ OrgKmsVerifyResponse,
3793
5884
  OrganizationsService,
3794
5885
  PermissionsService,
5886
+ ProviderConnection,
5887
+ PutOrgFeatureGrantRequest,
3795
5888
  RevokeAccessRequest,
3796
5889
  RolesService,
3797
5890
  RotateGpgKeyRequest,
5891
+ RotationPolicyResponse,
5892
+ RotationService,
5893
+ SamlProviderResponse,
5894
+ SamlProvidersService,
5895
+ SamlSsoService,
3798
5896
  SecretVariableRollbackResponse,
3799
5897
  SecretsPointInTimeService,
3800
5898
  SecretsRollbackService,
3801
5899
  SecretsService,
3802
5900
  ServiceTokensService,
5901
+ SetupService,
5902
+ SetupStatusResponse,
3803
5903
  SignDataRequest,
5904
+ SyncAuditEvent,
5905
+ SyncRun,
3804
5906
  SystemService,
3805
5907
  SystemStatusState,
3806
5908
  TeamsService,
5909
+ UpdateOrgKmsConfigRequest,
5910
+ UpdateProviderConnectionRequest,
3807
5911
  UpdateTrustLevelRequest,
3808
5912
  UpdateWebhookRequest,
3809
5913
  UsersService,
3810
5914
  VariableRollbackResponse,
3811
5915
  WebhookResponse,
3812
- WebhooksService
5916
+ WebhooksService,
5917
+ WhoAmIResponse
3813
5918
  });
3814
5919
  //# sourceMappingURL=index.js.map