@envsync-cloud/envsync-ts-sdk 0.10.4 → 0.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -32,8 +32,20 @@ __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
+ EnterpriseProviderProfile: () => EnterpriseProviderProfile,
48
+ EnterpriseService: () => EnterpriseService,
37
49
  EnvSyncAPISDK: () => EnvSyncAPISDK,
38
50
  EnvironmentTypesService: () => EnvironmentTypesService,
39
51
  EnvironmentVariablesPointInTimeService: () => EnvironmentVariablesPointInTimeService,
@@ -45,23 +57,40 @@ __export(src_exports, {
45
57
  GpgKeysService: () => GpgKeysService,
46
58
  GrantAccessRequest: () => GrantAccessRequest,
47
59
  GrantEntry: () => GrantEntry,
60
+ IntegrationBinding: () => IntegrationBinding,
61
+ LicenseService: () => LicenseService,
48
62
  LicenseState: () => LicenseState,
63
+ LogForwardingResponse: () => LogForwardingResponse,
64
+ LogForwardingService: () => LogForwardingService,
65
+ OidcProviderResponse: () => OidcProviderResponse,
66
+ OidcProvidersService: () => OidcProvidersService,
49
67
  OnboardingService: () => OnboardingService,
50
68
  OpenAPI: () => OpenAPI,
51
69
  OrganizationsService: () => OrganizationsService,
52
70
  PermissionsService: () => PermissionsService,
71
+ ProviderConnection: () => ProviderConnection,
53
72
  RevokeAccessRequest: () => RevokeAccessRequest,
54
73
  RolesService: () => RolesService,
55
74
  RotateGpgKeyRequest: () => RotateGpgKeyRequest,
75
+ RotationPolicyResponse: () => RotationPolicyResponse,
76
+ RotationService: () => RotationService,
77
+ SamlProviderResponse: () => SamlProviderResponse,
78
+ SamlProvidersService: () => SamlProvidersService,
79
+ SamlSsoService: () => SamlSsoService,
56
80
  SecretVariableRollbackResponse: () => SecretVariableRollbackResponse,
57
81
  SecretsPointInTimeService: () => SecretsPointInTimeService,
58
82
  SecretsRollbackService: () => SecretsRollbackService,
59
83
  SecretsService: () => SecretsService,
60
84
  ServiceTokensService: () => ServiceTokensService,
85
+ SetupService: () => SetupService,
86
+ SetupStatusResponse: () => SetupStatusResponse,
61
87
  SignDataRequest: () => SignDataRequest,
88
+ SyncAuditEvent: () => SyncAuditEvent,
89
+ SyncRun: () => SyncRun,
62
90
  SystemService: () => SystemService,
63
91
  SystemStatusState: () => SystemStatusState,
64
92
  TeamsService: () => TeamsService,
93
+ UpdateProviderConnectionRequest: () => UpdateProviderConnectionRequest,
65
94
  UpdateTrustLevelRequest: () => UpdateTrustLevelRequest,
66
95
  UpdateWebhookRequest: () => UpdateWebhookRequest,
67
96
  UsersService: () => UsersService,
@@ -825,23 +854,23 @@ var AuthenticationService = class {
825
854
  });
826
855
  }
827
856
  /**
828
- * Create Workspace
829
- * Create a new workspace for the current enterprise web session and switch into it
857
+ * Create Organization
858
+ * Create a new organization for the current hosted web session and switch into it. Hosted only; self-host always 403.
830
859
  * @param requestBody
831
- * @returns WhoAmIResponse Workspace created successfully
860
+ * @returns WhoAmIResponse Organization created successfully
832
861
  * @throws ApiError
833
862
  */
834
- createWorkspace(requestBody) {
863
+ createOrganization(requestBody) {
835
864
  return this.httpRequest.request({
836
865
  method: "POST",
837
- url: "/api/auth/create-workspace",
866
+ url: "/api/auth/create-organization",
838
867
  body: requestBody,
839
868
  mediaType: "application/json",
840
869
  errors: {
841
870
  400: `Invalid request`,
842
871
  401: `Cookie session required`,
843
- 403: `Enterprise edition required`,
844
- 409: `Workspace slug conflict`
872
+ 403: `Not allowed on this deployment (e.g. self-host)`,
873
+ 409: `Organization slug conflict or org limit reached`
845
874
  }
846
875
  });
847
876
  }
@@ -1217,274 +1246,269 @@ var ChangeRequestsService = class {
1217
1246
  }
1218
1247
  };
1219
1248
 
1220
- // src/services/EnvironmentTypesService.ts
1221
- var EnvironmentTypesService = class {
1249
+ // src/services/DynamicSecretsService.ts
1250
+ var DynamicSecretsService = class {
1222
1251
  constructor(httpRequest) {
1223
1252
  this.httpRequest = httpRequest;
1224
1253
  }
1225
1254
  /**
1226
- * Get Environment Types
1227
- * Retrieve all environment types for the organization
1228
- * @returns EnvTypesResponse Environment types retrieved successfully
1255
+ * Create Dynamic Secret Engine
1256
+ * Create a new dynamic secret engine for short-lived credential generation
1257
+ * @param requestBody
1258
+ * @returns DynamicSecretEngineResponse Engine created successfully
1229
1259
  * @throws ApiError
1230
1260
  */
1231
- getEnvTypes() {
1261
+ createDynamicSecretEngine(requestBody) {
1232
1262
  return this.httpRequest.request({
1233
- method: "GET",
1234
- url: "/api/env_type",
1263
+ method: "POST",
1264
+ url: "/api/v1/manage/dynamic_secret/engines",
1265
+ body: requestBody,
1266
+ mediaType: "application/json",
1235
1267
  errors: {
1268
+ 400: `Validation error`,
1269
+ 409: `Engine name conflict`,
1236
1270
  500: `Internal server error`
1237
1271
  }
1238
1272
  });
1239
1273
  }
1240
1274
  /**
1241
- * Create Environment Type
1242
- * Create a new environment type
1243
- * @param requestBody
1244
- * @returns EnvTypeResponse Environment type created successfully
1275
+ * Get All Dynamic Secret Engines
1276
+ * Retrieve all dynamic secret engines for the organization
1277
+ * @returns DynamicSecretEnginesResponse Engines retrieved successfully
1245
1278
  * @throws ApiError
1246
1279
  */
1247
- createEnvType(requestBody) {
1280
+ getAllDynamicSecretEngines() {
1248
1281
  return this.httpRequest.request({
1249
- method: "POST",
1250
- url: "/api/env_type",
1251
- body: requestBody,
1252
- mediaType: "application/json",
1282
+ method: "GET",
1283
+ url: "/api/v1/manage/dynamic_secret/engines",
1253
1284
  errors: {
1254
1285
  500: `Internal server error`
1255
1286
  }
1256
1287
  });
1257
1288
  }
1258
1289
  /**
1259
- * Get Environment Type
1260
- * Retrieve a specific environment type
1290
+ * Get Dynamic Secret Engine
1291
+ * Retrieve a specific dynamic secret engine by ID
1261
1292
  * @param id
1262
- * @returns EnvTypeResponse Environment type retrieved successfully
1293
+ * @returns DynamicSecretEngineResponse Engine retrieved successfully
1263
1294
  * @throws ApiError
1264
1295
  */
1265
- getEnvType(id) {
1296
+ getDynamicSecretEngine(id) {
1266
1297
  return this.httpRequest.request({
1267
1298
  method: "GET",
1268
- url: "/api/env_type/{id}",
1299
+ url: "/api/v1/manage/dynamic_secret/engines/{id}",
1269
1300
  path: {
1270
1301
  "id": id
1271
1302
  },
1272
1303
  errors: {
1304
+ 404: `Engine not found`,
1273
1305
  500: `Internal server error`
1274
1306
  }
1275
1307
  });
1276
1308
  }
1277
1309
  /**
1278
- * Update Environment Type
1279
- * Update an existing environment type
1310
+ * Update Dynamic Secret Engine
1311
+ * Update an existing dynamic secret engine
1280
1312
  * @param id
1281
1313
  * @param requestBody
1282
- * @returns EnvTypeResponse Environment type updated successfully
1314
+ * @returns DynamicSecretEngineResponse Engine updated successfully
1283
1315
  * @throws ApiError
1284
1316
  */
1285
- updateEnvType(id, requestBody) {
1317
+ updateDynamicSecretEngine(id, requestBody) {
1286
1318
  return this.httpRequest.request({
1287
1319
  method: "PATCH",
1288
- url: "/api/env_type/{id}",
1320
+ url: "/api/v1/manage/dynamic_secret/engines/{id}",
1289
1321
  path: {
1290
1322
  "id": id
1291
1323
  },
1292
1324
  body: requestBody,
1293
1325
  mediaType: "application/json",
1294
1326
  errors: {
1327
+ 404: `Engine not found`,
1295
1328
  500: `Internal server error`
1296
1329
  }
1297
1330
  });
1298
1331
  }
1299
1332
  /**
1300
- * Delete Environment Type
1301
- * Delete an existing environment type
1333
+ * Delete Dynamic Secret Engine
1334
+ * Delete a dynamic secret engine (must have no active leases)
1302
1335
  * @param id
1303
- * @returns DeleteEnvTypeRequest Environment type deleted successfully
1336
+ * @returns ErrorResponse Engine deleted successfully
1304
1337
  * @throws ApiError
1305
1338
  */
1306
- deleteEnvType(id) {
1339
+ deleteDynamicSecretEngine(id) {
1307
1340
  return this.httpRequest.request({
1308
1341
  method: "DELETE",
1309
- url: "/api/env_type/{id}",
1342
+ url: "/api/v1/manage/dynamic_secret/engines/{id}",
1310
1343
  path: {
1311
1344
  "id": id
1312
1345
  },
1313
1346
  errors: {
1347
+ 404: `Engine not found`,
1348
+ 409: `Engine has active leases`,
1314
1349
  500: `Internal server error`
1315
1350
  }
1316
1351
  });
1317
1352
  }
1318
- };
1319
-
1320
- // src/services/EnvironmentVariablesService.ts
1321
- var EnvironmentVariablesService = class {
1322
- constructor(httpRequest) {
1323
- this.httpRequest = httpRequest;
1324
- }
1325
1353
  /**
1326
- * Export Environment
1327
- * Export environment variables and optionally secrets for an application environment in a single payload.
1354
+ * Create Dynamic Secret Lease
1355
+ * Generate short-lived credentials by creating a lease on an engine
1356
+ * @param id
1328
1357
  * @param requestBody
1329
- * @returns ExportEnvResponse Environment exported successfully
1358
+ * @returns DynamicSecretLeaseResponse Lease created successfully
1330
1359
  * @throws ApiError
1331
1360
  */
1332
- exportEnvironment(requestBody) {
1361
+ createDynamicSecretLease(id, requestBody) {
1333
1362
  return this.httpRequest.request({
1334
1363
  method: "POST",
1335
- url: "/api/env/export",
1364
+ url: "/api/v1/manage/dynamic_secret/engines/{id}/leases",
1365
+ path: {
1366
+ "id": id
1367
+ },
1336
1368
  body: requestBody,
1337
1369
  mediaType: "application/json",
1338
1370
  errors: {
1339
- 400: `Invalid export request`
1371
+ 400: `Validation error`,
1372
+ 404: `Engine not found`,
1373
+ 500: `Internal server error`
1340
1374
  }
1341
1375
  });
1342
1376
  }
1343
1377
  /**
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
1378
+ * Get Leases for Engine
1379
+ * Retrieve all leases for a specific dynamic secret engine
1380
+ * @param id
1381
+ * @returns DynamicSecretLeasesResponse Leases retrieved successfully
1348
1382
  * @throws ApiError
1349
1383
  */
1350
- getEnvs(requestBody) {
1384
+ getDynamicSecretLeases(id) {
1351
1385
  return this.httpRequest.request({
1352
- method: "POST",
1353
- url: "/api/env",
1354
- body: requestBody,
1355
- mediaType: "application/json",
1386
+ method: "GET",
1387
+ url: "/api/v1/manage/dynamic_secret/engines/{id}/leases",
1388
+ path: {
1389
+ "id": id
1390
+ },
1356
1391
  errors: {
1392
+ 404: `Engine not found`,
1357
1393
  500: `Internal server error`
1358
1394
  }
1359
1395
  });
1360
1396
  }
1361
1397
  /**
1362
- * Delete Environment Variable
1363
- * Delete an existing environment variable
1364
- * @param requestBody
1365
- * @returns DeleteEnvRequest Environment variable deleted successfully
1398
+ * Get Dynamic Secret Lease
1399
+ * Retrieve a specific lease by ID
1400
+ * @param leaseId
1401
+ * @returns DynamicSecretLeaseResponse Lease retrieved successfully
1366
1402
  * @throws ApiError
1367
1403
  */
1368
- deleteEnv(requestBody) {
1404
+ getDynamicSecretLease(leaseId) {
1369
1405
  return this.httpRequest.request({
1370
- method: "DELETE",
1371
- url: "/api/env",
1372
- body: requestBody,
1373
- mediaType: "application/json",
1406
+ method: "GET",
1407
+ url: "/api/v1/manage/dynamic_secret/leases/{leaseId}",
1408
+ path: {
1409
+ "leaseId": leaseId
1410
+ },
1374
1411
  errors: {
1412
+ 404: `Lease not found`,
1375
1413
  500: `Internal server error`
1376
1414
  }
1377
1415
  });
1378
1416
  }
1379
1417
  /**
1380
- * Get Single Environment Variable
1381
- * Retrieve a specific environment variable
1382
- * @param key
1383
- * @param requestBody
1384
- * @returns EnvResponse Environment variable retrieved successfully
1418
+ * Revoke Dynamic Secret Lease
1419
+ * Revoke a lease and its associated credentials
1420
+ * @param leaseId
1421
+ * @returns RevokeLeaseResponse Lease revoked successfully
1385
1422
  * @throws ApiError
1386
1423
  */
1387
- getEnv(key, requestBody) {
1424
+ revokeDynamicSecretLease(leaseId) {
1388
1425
  return this.httpRequest.request({
1389
1426
  method: "POST",
1390
- url: "/api/env/i/{key}",
1427
+ url: "/api/v1/manage/dynamic_secret/leases/{leaseId}/revoke",
1391
1428
  path: {
1392
- "key": key
1429
+ "leaseId": leaseId
1393
1430
  },
1394
- body: requestBody,
1395
- mediaType: "application/json",
1396
1431
  errors: {
1432
+ 404: `Lease not found`,
1433
+ 409: `Lease already revoked`,
1397
1434
  500: `Internal server error`
1398
1435
  }
1399
1436
  });
1400
1437
  }
1401
1438
  /**
1402
- * Update Environment Variable
1403
- * Update an existing environment variable
1404
- * @param key
1405
- * @param requestBody
1406
- * @returns EnvResponse Environment variable updated successfully
1439
+ * Cleanup Expired Leases
1440
+ * Mark all expired leases as revoked (admin operation)
1441
+ * @returns CleanupResponse Cleanup completed
1407
1442
  * @throws ApiError
1408
1443
  */
1409
- updateEnv(key, requestBody) {
1444
+ cleanupExpiredLeases() {
1410
1445
  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",
1446
+ method: "POST",
1447
+ url: "/api/v1/manage/dynamic_secret/leases/cleanup",
1418
1448
  errors: {
1419
1449
  500: `Internal server error`
1420
1450
  }
1421
1451
  });
1422
1452
  }
1453
+ };
1454
+
1455
+ // src/services/EnterpriseService.ts
1456
+ var EnterpriseService = class {
1457
+ constructor(httpRequest) {
1458
+ this.httpRequest = httpRequest;
1459
+ }
1423
1460
  /**
1424
- * Create Environment Variable
1425
- * Create a new environment variable
1426
- * @param requestBody
1427
- * @returns EnvResponse Environment variable created successfully
1461
+ * List Enterprise Providers
1462
+ * @returns EnterpriseProvidersResponse Enterprise provider catalog
1428
1463
  * @throws ApiError
1429
1464
  */
1430
- createEnv(requestBody) {
1465
+ listEnterpriseProviders() {
1431
1466
  return this.httpRequest.request({
1432
- method: "PUT",
1433
- url: "/api/env/single",
1434
- body: requestBody,
1435
- mediaType: "application/json",
1467
+ method: "GET",
1468
+ url: "/api/v1/manage/enterprise/providers",
1436
1469
  errors: {
1437
1470
  500: `Internal server error`
1438
1471
  }
1439
1472
  });
1440
1473
  }
1441
1474
  /**
1442
- * Batch Create Environment Variables
1443
- * Create multiple environment variables in a single request
1444
- * @param requestBody
1445
- * @returns BatchEnvsResponse Environment variables created successfully
1475
+ * Get Enterprise Org Secret Model
1476
+ * @returns OrgSecretModelResponse Org secret model
1446
1477
  * @throws ApiError
1447
1478
  */
1448
- batchCreateEnvs(requestBody) {
1479
+ getEnterpriseOrgSecretModel() {
1449
1480
  return this.httpRequest.request({
1450
- method: "PUT",
1451
- url: "/api/env/batch",
1452
- body: requestBody,
1453
- mediaType: "application/json",
1481
+ method: "GET",
1482
+ url: "/api/v1/manage/enterprise/org-secrets/model",
1454
1483
  errors: {
1455
1484
  500: `Internal server error`
1456
1485
  }
1457
1486
  });
1458
1487
  }
1459
1488
  /**
1460
- * Batch Update Environment Variables
1461
- * Update multiple environment variables in a single request
1462
- * @param requestBody
1463
- * @returns BatchEnvsResponse Environment variables updated successfully
1489
+ * List Enterprise Provider Connections
1490
+ * @returns ProviderConnectionsResponse Provider connections
1464
1491
  * @throws ApiError
1465
1492
  */
1466
- batchUpdateEnvs(requestBody) {
1493
+ listEnterpriseProviderConnections() {
1467
1494
  return this.httpRequest.request({
1468
- method: "PATCH",
1469
- url: "/api/env/batch",
1470
- body: requestBody,
1471
- mediaType: "application/json",
1495
+ method: "GET",
1496
+ url: "/api/v1/manage/enterprise/provider-connections",
1472
1497
  errors: {
1473
1498
  500: `Internal server error`
1474
1499
  }
1475
1500
  });
1476
1501
  }
1477
1502
  /**
1478
- * Batch Delete Environment Variables
1479
- * Delete multiple environment variables in a single request
1503
+ * Create Enterprise Provider Connection
1480
1504
  * @param requestBody
1481
- * @returns BatchEnvsResponse Environment variables deleted successfully
1505
+ * @returns ProviderConnection Provider connection created
1482
1506
  * @throws ApiError
1483
1507
  */
1484
- deleteBatchEnv(requestBody) {
1508
+ createEnterpriseProviderConnection(requestBody) {
1485
1509
  return this.httpRequest.request({
1486
- method: "DELETE",
1487
- url: "/api/env/batch",
1510
+ method: "POST",
1511
+ url: "/api/v1/manage/enterprise/provider-connections",
1488
1512
  body: requestBody,
1489
1513
  mediaType: "application/json",
1490
1514
  errors: {
@@ -1492,24 +1516,20 @@ var EnvironmentVariablesService = class {
1492
1516
  }
1493
1517
  });
1494
1518
  }
1495
- };
1496
-
1497
- // src/services/EnvironmentVariablesPointInTimeService.ts
1498
- var EnvironmentVariablesPointInTimeService = class {
1499
- constructor(httpRequest) {
1500
- this.httpRequest = httpRequest;
1501
- }
1502
1519
  /**
1503
- * Get Environment Variables History
1504
- * Retrieve paginated history of environment variable changes
1520
+ * Update Enterprise Provider Connection
1521
+ * @param id
1505
1522
  * @param requestBody
1506
- * @returns EnvHistoryResponse Environment variables history retrieved successfully
1523
+ * @returns ProviderConnection Provider connection updated
1507
1524
  * @throws ApiError
1508
1525
  */
1509
- getEnvHistory(requestBody) {
1526
+ updateEnterpriseProviderConnection(id, requestBody) {
1510
1527
  return this.httpRequest.request({
1511
- method: "POST",
1512
- url: "/api/env/history",
1528
+ method: "PATCH",
1529
+ url: "/api/v1/manage/enterprise/provider-connections/{id}",
1530
+ path: {
1531
+ "id": id
1532
+ },
1513
1533
  body: requestBody,
1514
1534
  mediaType: "application/json",
1515
1535
  errors: {
@@ -1518,34 +1538,29 @@ var EnvironmentVariablesPointInTimeService = class {
1518
1538
  });
1519
1539
  }
1520
1540
  /**
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
1541
+ * List Enterprise Org Secrets
1542
+ * @returns OrgSecretsResponse Org secrets
1525
1543
  * @throws ApiError
1526
1544
  */
1527
- getEnvsAtPointInTime(requestBody) {
1545
+ listEnterpriseOrgSecrets() {
1528
1546
  return this.httpRequest.request({
1529
- method: "POST",
1530
- url: "/api/env/pit",
1531
- body: requestBody,
1532
- mediaType: "application/json",
1547
+ method: "GET",
1548
+ url: "/api/v1/manage/enterprise/org-secrets",
1533
1549
  errors: {
1534
1550
  500: `Internal server error`
1535
1551
  }
1536
1552
  });
1537
1553
  }
1538
1554
  /**
1539
- * Get Environment Variables at Timestamp
1540
- * Retrieve environment variables state at a specific timestamp
1555
+ * Create Enterprise Org Secret
1541
1556
  * @param requestBody
1542
- * @returns EnvPitStateResponse Environment variables at timestamp retrieved successfully
1557
+ * @returns OrgSecret Org secret created
1543
1558
  * @throws ApiError
1544
1559
  */
1545
- getEnvsAtTimestamp(requestBody) {
1560
+ createEnterpriseOrgSecret(requestBody) {
1546
1561
  return this.httpRequest.request({
1547
1562
  method: "POST",
1548
- url: "/api/env/timestamp",
1563
+ url: "/api/v1/manage/enterprise/org-secrets",
1549
1564
  body: requestBody,
1550
1565
  mediaType: "application/json",
1551
1566
  errors: {
@@ -1554,16 +1569,19 @@ var EnvironmentVariablesPointInTimeService = class {
1554
1569
  });
1555
1570
  }
1556
1571
  /**
1557
- * Get Environment Variables Diff
1558
- * Compare environment variables between two points in time
1572
+ * Update Enterprise Org Secret
1573
+ * @param id
1559
1574
  * @param requestBody
1560
- * @returns EnvDiffResponse Environment variables diff retrieved successfully
1575
+ * @returns OrgSecret Org secret updated
1561
1576
  * @throws ApiError
1562
1577
  */
1563
- getEnvDiff(requestBody) {
1578
+ updateEnterpriseOrgSecret(id, requestBody) {
1564
1579
  return this.httpRequest.request({
1565
- method: "POST",
1566
- url: "/api/env/diff",
1580
+ method: "PATCH",
1581
+ url: "/api/v1/manage/enterprise/org-secrets/{id}",
1582
+ path: {
1583
+ "id": id
1584
+ },
1567
1585
  body: requestBody,
1568
1586
  mediaType: "application/json",
1569
1587
  errors: {
@@ -1572,37 +1590,36 @@ var EnvironmentVariablesPointInTimeService = class {
1572
1590
  });
1573
1591
  }
1574
1592
  /**
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
1593
+ * List Enterprise Integration Bindings
1594
+ * @param appId
1595
+ * @returns IntegrationBindingsResponse Integration bindings
1579
1596
  * @throws ApiError
1580
1597
  */
1581
- getEnvDiffByTimestampRange(requestBody) {
1598
+ listEnterpriseIntegrationBindings(appId) {
1582
1599
  return this.httpRequest.request({
1583
- method: "POST",
1584
- url: "/api/env/diff/timestamp-range",
1585
- body: requestBody,
1586
- mediaType: "application/json",
1600
+ method: "GET",
1601
+ url: "/api/v1/manage/enterprise/apps/{app_id}/bindings",
1602
+ path: {
1603
+ "app_id": appId
1604
+ },
1587
1605
  errors: {
1588
1606
  500: `Internal server error`
1589
1607
  }
1590
1608
  });
1591
1609
  }
1592
1610
  /**
1593
- * Get Variable Timeline
1594
- * Get timeline of changes for a specific environment variable
1595
- * @param key
1611
+ * Create Enterprise Integration Binding
1612
+ * @param appId
1596
1613
  * @param requestBody
1597
- * @returns VariableTimelineResponse Variable timeline retrieved successfully
1614
+ * @returns IntegrationBinding Integration binding created
1598
1615
  * @throws ApiError
1599
1616
  */
1600
- getVariableTimeline(key, requestBody) {
1617
+ createEnterpriseIntegrationBinding(appId, requestBody) {
1601
1618
  return this.httpRequest.request({
1602
1619
  method: "POST",
1603
- url: "/api/env/timeline/{key}",
1620
+ url: "/api/v1/manage/enterprise/apps/{app_id}/bindings",
1604
1621
  path: {
1605
- "key": key
1622
+ "app_id": appId
1606
1623
  },
1607
1624
  body: requestBody,
1608
1625
  mediaType: "application/json",
@@ -1611,24 +1628,22 @@ var EnvironmentVariablesPointInTimeService = class {
1611
1628
  }
1612
1629
  });
1613
1630
  }
1614
- };
1615
-
1616
- // src/services/EnvironmentVariablesRollbackService.ts
1617
- var EnvironmentVariablesRollbackService = class {
1618
- constructor(httpRequest) {
1619
- this.httpRequest = httpRequest;
1620
- }
1621
1631
  /**
1622
- * Rollback Environment Variables to Point in Time
1623
- * Rollback all environment variables to a specific point in time
1632
+ * Update Enterprise Integration Binding
1633
+ * @param appId
1634
+ * @param id
1624
1635
  * @param requestBody
1625
- * @returns RollbackResponse Environment variables rolled back successfully
1636
+ * @returns IntegrationBinding Integration binding updated
1626
1637
  * @throws ApiError
1627
1638
  */
1628
- rollbackEnvsToPitId(requestBody) {
1639
+ updateEnterpriseIntegrationBinding(appId, id, requestBody) {
1629
1640
  return this.httpRequest.request({
1630
- method: "POST",
1631
- url: "/api/env/rollback/pit",
1641
+ method: "PATCH",
1642
+ url: "/api/v1/manage/enterprise/apps/{app_id}/bindings/{id}",
1643
+ path: {
1644
+ "app_id": appId,
1645
+ "id": id
1646
+ },
1632
1647
  body: requestBody,
1633
1648
  mediaType: "application/json",
1634
1649
  errors: {
@@ -1637,37 +1652,36 @@ var EnvironmentVariablesRollbackService = class {
1637
1652
  });
1638
1653
  }
1639
1654
  /**
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
1655
+ * List Enterprise Env-Type Mappings
1656
+ * @param appId
1657
+ * @returns EnvTypeMappingsResponse Env-type mappings
1644
1658
  * @throws ApiError
1645
1659
  */
1646
- rollbackEnvsToTimestamp(requestBody) {
1660
+ listEnterpriseEnvTypeMappings(appId) {
1647
1661
  return this.httpRequest.request({
1648
- method: "POST",
1649
- url: "/api/env/rollback/timestamp",
1650
- body: requestBody,
1651
- mediaType: "application/json",
1662
+ method: "GET",
1663
+ url: "/api/v1/manage/enterprise/apps/{app_id}/env-type-mappings",
1664
+ path: {
1665
+ "app_id": appId
1666
+ },
1652
1667
  errors: {
1653
1668
  500: `Internal server error`
1654
1669
  }
1655
1670
  });
1656
1671
  }
1657
1672
  /**
1658
- * Rollback Single Variable to Point in Time
1659
- * Rollback a specific environment variable to a point in time
1660
- * @param key
1673
+ * Create Enterprise Env-Type Mapping
1674
+ * @param appId
1661
1675
  * @param requestBody
1662
- * @returns VariableRollbackResponse Variable rolled back successfully
1676
+ * @returns EnvTypeMapping Env-type mapping created
1663
1677
  * @throws ApiError
1664
1678
  */
1665
- rollbackVariableToPitId(key, requestBody) {
1679
+ createEnterpriseEnvTypeMapping(appId, requestBody) {
1666
1680
  return this.httpRequest.request({
1667
1681
  method: "POST",
1668
- url: "/api/env/rollback/variable/{key}/pit",
1682
+ url: "/api/v1/manage/enterprise/apps/{app_id}/env-type-mappings",
1669
1683
  path: {
1670
- "key": key
1684
+ "app_id": appId
1671
1685
  },
1672
1686
  body: requestBody,
1673
1687
  mediaType: "application/json",
@@ -1677,47 +1691,947 @@ var EnvironmentVariablesRollbackService = class {
1677
1691
  });
1678
1692
  }
1679
1693
  /**
1680
- * Rollback Single Variable to Timestamp
1681
- * Rollback a specific environment variable to a timestamp
1694
+ * Update Enterprise Env-Type Mapping
1695
+ * @param appId
1696
+ * @param id
1697
+ * @param requestBody
1698
+ * @returns EnvTypeMapping Env-type mapping updated
1699
+ * @throws ApiError
1700
+ */
1701
+ updateEnterpriseEnvTypeMapping(appId, id, requestBody) {
1702
+ return this.httpRequest.request({
1703
+ method: "PATCH",
1704
+ url: "/api/v1/manage/enterprise/apps/{app_id}/env-type-mappings/{id}",
1705
+ path: {
1706
+ "app_id": appId,
1707
+ "id": id
1708
+ },
1709
+ body: requestBody,
1710
+ mediaType: "application/json",
1711
+ errors: {
1712
+ 500: `Internal server error`
1713
+ }
1714
+ });
1715
+ }
1716
+ /**
1717
+ * List Enterprise Sync Runs
1718
+ * @returns SyncRunsResponse Sync runs
1719
+ * @throws ApiError
1720
+ */
1721
+ listEnterpriseSyncRuns() {
1722
+ return this.httpRequest.request({
1723
+ method: "GET",
1724
+ url: "/api/v1/manage/enterprise/sync-runs",
1725
+ errors: {
1726
+ 500: `Internal server error`
1727
+ }
1728
+ });
1729
+ }
1730
+ /**
1731
+ * Create Enterprise Manual Sync Run
1732
+ * @param requestBody
1733
+ * @returns SyncRun Sync run created
1734
+ * @throws ApiError
1735
+ */
1736
+ createEnterpriseManualSyncRun(requestBody) {
1737
+ return this.httpRequest.request({
1738
+ method: "POST",
1739
+ url: "/api/v1/manage/enterprise/sync-runs/manual",
1740
+ body: requestBody,
1741
+ mediaType: "application/json",
1742
+ errors: {
1743
+ 500: `Internal server error`
1744
+ }
1745
+ });
1746
+ }
1747
+ /**
1748
+ * List Enterprise Sync Audit Events
1749
+ * @param syncRunId
1750
+ * @returns SyncAuditEventsResponse Sync audit events
1751
+ * @throws ApiError
1752
+ */
1753
+ listEnterpriseSyncAuditEvents(syncRunId) {
1754
+ return this.httpRequest.request({
1755
+ method: "GET",
1756
+ url: "/api/v1/manage/enterprise/sync-runs/{sync_run_id}/events",
1757
+ path: {
1758
+ "sync_run_id": syncRunId
1759
+ },
1760
+ errors: {
1761
+ 500: `Internal server error`
1762
+ }
1763
+ });
1764
+ }
1765
+ };
1766
+
1767
+ // src/services/EnvironmentTypesService.ts
1768
+ var EnvironmentTypesService = class {
1769
+ constructor(httpRequest) {
1770
+ this.httpRequest = httpRequest;
1771
+ }
1772
+ /**
1773
+ * Get Environment Types
1774
+ * Retrieve all environment types for the organization
1775
+ * @returns EnvTypesResponse Environment types retrieved successfully
1776
+ * @throws ApiError
1777
+ */
1778
+ getEnvTypes() {
1779
+ return this.httpRequest.request({
1780
+ method: "GET",
1781
+ url: "/api/env_type",
1782
+ errors: {
1783
+ 500: `Internal server error`
1784
+ }
1785
+ });
1786
+ }
1787
+ /**
1788
+ * Create Environment Type
1789
+ * Create a new environment type
1790
+ * @param requestBody
1791
+ * @returns EnvTypeResponse Environment type created successfully
1792
+ * @throws ApiError
1793
+ */
1794
+ createEnvType(requestBody) {
1795
+ return this.httpRequest.request({
1796
+ method: "POST",
1797
+ url: "/api/env_type",
1798
+ body: requestBody,
1799
+ mediaType: "application/json",
1800
+ errors: {
1801
+ 500: `Internal server error`
1802
+ }
1803
+ });
1804
+ }
1805
+ /**
1806
+ * Get Environment Type
1807
+ * Retrieve a specific environment type
1808
+ * @param id
1809
+ * @returns EnvTypeResponse Environment type retrieved successfully
1810
+ * @throws ApiError
1811
+ */
1812
+ getEnvType(id) {
1813
+ return this.httpRequest.request({
1814
+ method: "GET",
1815
+ url: "/api/env_type/{id}",
1816
+ path: {
1817
+ "id": id
1818
+ },
1819
+ errors: {
1820
+ 500: `Internal server error`
1821
+ }
1822
+ });
1823
+ }
1824
+ /**
1825
+ * Update Environment Type
1826
+ * Update an existing environment type
1827
+ * @param id
1828
+ * @param requestBody
1829
+ * @returns EnvTypeResponse Environment type updated successfully
1830
+ * @throws ApiError
1831
+ */
1832
+ updateEnvType(id, requestBody) {
1833
+ return this.httpRequest.request({
1834
+ method: "PATCH",
1835
+ url: "/api/env_type/{id}",
1836
+ path: {
1837
+ "id": id
1838
+ },
1839
+ body: requestBody,
1840
+ mediaType: "application/json",
1841
+ errors: {
1842
+ 500: `Internal server error`
1843
+ }
1844
+ });
1845
+ }
1846
+ /**
1847
+ * Delete Environment Type
1848
+ * Delete an existing environment type
1849
+ * @param id
1850
+ * @returns DeleteEnvTypeRequest Environment type deleted successfully
1851
+ * @throws ApiError
1852
+ */
1853
+ deleteEnvType(id) {
1854
+ return this.httpRequest.request({
1855
+ method: "DELETE",
1856
+ url: "/api/env_type/{id}",
1857
+ path: {
1858
+ "id": id
1859
+ },
1860
+ errors: {
1861
+ 500: `Internal server error`
1862
+ }
1863
+ });
1864
+ }
1865
+ };
1866
+
1867
+ // src/services/EnvironmentVariablesService.ts
1868
+ var EnvironmentVariablesService = class {
1869
+ constructor(httpRequest) {
1870
+ this.httpRequest = httpRequest;
1871
+ }
1872
+ /**
1873
+ * Export Environment
1874
+ * Export environment variables and optionally secrets for an application environment in a single payload.
1875
+ * @param requestBody
1876
+ * @returns ExportEnvResponse Environment exported successfully
1877
+ * @throws ApiError
1878
+ */
1879
+ exportEnvironment(requestBody) {
1880
+ return this.httpRequest.request({
1881
+ method: "POST",
1882
+ url: "/api/env/export",
1883
+ body: requestBody,
1884
+ mediaType: "application/json",
1885
+ errors: {
1886
+ 400: `Invalid export request`
1887
+ }
1888
+ });
1889
+ }
1890
+ /**
1891
+ * Get Environment Variables
1892
+ * Retrieve all environment variables for an application and environment type
1893
+ * @param requestBody
1894
+ * @returns EnvsResponse Environment variables retrieved successfully
1895
+ * @throws ApiError
1896
+ */
1897
+ getEnvs(requestBody) {
1898
+ return this.httpRequest.request({
1899
+ method: "POST",
1900
+ url: "/api/env",
1901
+ body: requestBody,
1902
+ mediaType: "application/json",
1903
+ errors: {
1904
+ 500: `Internal server error`
1905
+ }
1906
+ });
1907
+ }
1908
+ /**
1909
+ * Delete Environment Variable
1910
+ * Delete an existing environment variable
1911
+ * @param requestBody
1912
+ * @returns DeleteEnvRequest Environment variable deleted successfully
1913
+ * @throws ApiError
1914
+ */
1915
+ deleteEnv(requestBody) {
1916
+ return this.httpRequest.request({
1917
+ method: "DELETE",
1918
+ url: "/api/env",
1919
+ body: requestBody,
1920
+ mediaType: "application/json",
1921
+ errors: {
1922
+ 500: `Internal server error`
1923
+ }
1924
+ });
1925
+ }
1926
+ /**
1927
+ * Get Single Environment Variable
1928
+ * Retrieve a specific environment variable
1682
1929
  * @param key
1683
1930
  * @param requestBody
1684
- * @returns VariableRollbackResponse Variable rolled back successfully
1931
+ * @returns EnvResponse Environment variable retrieved successfully
1932
+ * @throws ApiError
1933
+ */
1934
+ getEnv(key, requestBody) {
1935
+ return this.httpRequest.request({
1936
+ method: "POST",
1937
+ url: "/api/env/i/{key}",
1938
+ path: {
1939
+ "key": key
1940
+ },
1941
+ body: requestBody,
1942
+ mediaType: "application/json",
1943
+ errors: {
1944
+ 500: `Internal server error`
1945
+ }
1946
+ });
1947
+ }
1948
+ /**
1949
+ * Update Environment Variable
1950
+ * Update an existing environment variable
1951
+ * @param key
1952
+ * @param requestBody
1953
+ * @returns EnvResponse Environment variable updated successfully
1954
+ * @throws ApiError
1955
+ */
1956
+ updateEnv(key, requestBody) {
1957
+ return this.httpRequest.request({
1958
+ method: "PATCH",
1959
+ url: "/api/env/i/{key}",
1960
+ path: {
1961
+ "key": key
1962
+ },
1963
+ body: requestBody,
1964
+ mediaType: "application/json",
1965
+ errors: {
1966
+ 500: `Internal server error`
1967
+ }
1968
+ });
1969
+ }
1970
+ /**
1971
+ * Create Environment Variable
1972
+ * Create a new environment variable
1973
+ * @param requestBody
1974
+ * @returns EnvResponse Environment variable created successfully
1975
+ * @throws ApiError
1976
+ */
1977
+ createEnv(requestBody) {
1978
+ return this.httpRequest.request({
1979
+ method: "PUT",
1980
+ url: "/api/env/single",
1981
+ body: requestBody,
1982
+ mediaType: "application/json",
1983
+ errors: {
1984
+ 500: `Internal server error`
1985
+ }
1986
+ });
1987
+ }
1988
+ /**
1989
+ * Batch Create Environment Variables
1990
+ * Create multiple environment variables in a single request
1991
+ * @param requestBody
1992
+ * @returns BatchEnvsResponse Environment variables created successfully
1993
+ * @throws ApiError
1994
+ */
1995
+ batchCreateEnvs(requestBody) {
1996
+ return this.httpRequest.request({
1997
+ method: "PUT",
1998
+ url: "/api/env/batch",
1999
+ body: requestBody,
2000
+ mediaType: "application/json",
2001
+ errors: {
2002
+ 500: `Internal server error`
2003
+ }
2004
+ });
2005
+ }
2006
+ /**
2007
+ * Batch Update Environment Variables
2008
+ * Update multiple environment variables in a single request
2009
+ * @param requestBody
2010
+ * @returns BatchEnvsResponse Environment variables updated successfully
2011
+ * @throws ApiError
2012
+ */
2013
+ batchUpdateEnvs(requestBody) {
2014
+ return this.httpRequest.request({
2015
+ method: "PATCH",
2016
+ url: "/api/env/batch",
2017
+ body: requestBody,
2018
+ mediaType: "application/json",
2019
+ errors: {
2020
+ 500: `Internal server error`
2021
+ }
2022
+ });
2023
+ }
2024
+ /**
2025
+ * Batch Delete Environment Variables
2026
+ * Delete multiple environment variables in a single request
2027
+ * @param requestBody
2028
+ * @returns BatchEnvsResponse Environment variables deleted successfully
2029
+ * @throws ApiError
2030
+ */
2031
+ deleteBatchEnv(requestBody) {
2032
+ return this.httpRequest.request({
2033
+ method: "DELETE",
2034
+ url: "/api/env/batch",
2035
+ body: requestBody,
2036
+ mediaType: "application/json",
2037
+ errors: {
2038
+ 500: `Internal server error`
2039
+ }
2040
+ });
2041
+ }
2042
+ };
2043
+
2044
+ // src/services/EnvironmentVariablesPointInTimeService.ts
2045
+ var EnvironmentVariablesPointInTimeService = class {
2046
+ constructor(httpRequest) {
2047
+ this.httpRequest = httpRequest;
2048
+ }
2049
+ /**
2050
+ * Get Environment Variables History
2051
+ * Retrieve paginated history of environment variable changes
2052
+ * @param requestBody
2053
+ * @returns EnvHistoryResponse Environment variables history retrieved successfully
2054
+ * @throws ApiError
2055
+ */
2056
+ getEnvHistory(requestBody) {
2057
+ return this.httpRequest.request({
2058
+ method: "POST",
2059
+ url: "/api/env/history",
2060
+ body: requestBody,
2061
+ mediaType: "application/json",
2062
+ errors: {
2063
+ 500: `Internal server error`
2064
+ }
2065
+ });
2066
+ }
2067
+ /**
2068
+ * Get Environment Variables at Point in Time
2069
+ * Retrieve environment variables state at a specific point in time
2070
+ * @param requestBody
2071
+ * @returns EnvPitStateResponse Environment variables at point in time retrieved successfully
2072
+ * @throws ApiError
2073
+ */
2074
+ getEnvsAtPointInTime(requestBody) {
2075
+ return this.httpRequest.request({
2076
+ method: "POST",
2077
+ url: "/api/env/pit",
2078
+ body: requestBody,
2079
+ mediaType: "application/json",
2080
+ errors: {
2081
+ 500: `Internal server error`
2082
+ }
2083
+ });
2084
+ }
2085
+ /**
2086
+ * Get Environment Variables at Timestamp
2087
+ * Retrieve environment variables state at a specific timestamp
2088
+ * @param requestBody
2089
+ * @returns EnvPitStateResponse Environment variables at timestamp retrieved successfully
2090
+ * @throws ApiError
2091
+ */
2092
+ getEnvsAtTimestamp(requestBody) {
2093
+ return this.httpRequest.request({
2094
+ method: "POST",
2095
+ url: "/api/env/timestamp",
2096
+ body: requestBody,
2097
+ mediaType: "application/json",
2098
+ errors: {
2099
+ 500: `Internal server error`
2100
+ }
2101
+ });
2102
+ }
2103
+ /**
2104
+ * Get Environment Variables Diff
2105
+ * Compare environment variables between two points in time
2106
+ * @param requestBody
2107
+ * @returns EnvDiffResponse Environment variables diff retrieved successfully
2108
+ * @throws ApiError
2109
+ */
2110
+ getEnvDiff(requestBody) {
2111
+ return this.httpRequest.request({
2112
+ method: "POST",
2113
+ url: "/api/env/diff",
2114
+ body: requestBody,
2115
+ mediaType: "application/json",
2116
+ errors: {
2117
+ 500: `Internal server error`
2118
+ }
2119
+ });
2120
+ }
2121
+ /**
2122
+ * Get Environment Variables Diff By Timestamp Range
2123
+ * Compare environment variables between two timestamps
2124
+ * @param requestBody
2125
+ * @returns EnvDiffResponse Environment variables timestamp-range diff retrieved successfully
2126
+ * @throws ApiError
2127
+ */
2128
+ getEnvDiffByTimestampRange(requestBody) {
2129
+ return this.httpRequest.request({
2130
+ method: "POST",
2131
+ url: "/api/env/diff/timestamp-range",
2132
+ body: requestBody,
2133
+ mediaType: "application/json",
2134
+ errors: {
2135
+ 500: `Internal server error`
2136
+ }
2137
+ });
2138
+ }
2139
+ /**
2140
+ * Get Variable Timeline
2141
+ * Get timeline of changes for a specific environment variable
2142
+ * @param key
2143
+ * @param requestBody
2144
+ * @returns VariableTimelineResponse Variable timeline retrieved successfully
2145
+ * @throws ApiError
2146
+ */
2147
+ getVariableTimeline(key, requestBody) {
2148
+ return this.httpRequest.request({
2149
+ method: "POST",
2150
+ url: "/api/env/timeline/{key}",
2151
+ path: {
2152
+ "key": key
2153
+ },
2154
+ body: requestBody,
2155
+ mediaType: "application/json",
2156
+ errors: {
2157
+ 500: `Internal server error`
2158
+ }
2159
+ });
2160
+ }
2161
+ };
2162
+
2163
+ // src/services/EnvironmentVariablesRollbackService.ts
2164
+ var EnvironmentVariablesRollbackService = class {
2165
+ constructor(httpRequest) {
2166
+ this.httpRequest = httpRequest;
2167
+ }
2168
+ /**
2169
+ * Rollback Environment Variables to Point in Time
2170
+ * Rollback all environment variables to a specific point in time
2171
+ * @param requestBody
2172
+ * @returns RollbackResponse Environment variables rolled back successfully
2173
+ * @throws ApiError
2174
+ */
2175
+ rollbackEnvsToPitId(requestBody) {
2176
+ return this.httpRequest.request({
2177
+ method: "POST",
2178
+ url: "/api/env/rollback/pit",
2179
+ body: requestBody,
2180
+ mediaType: "application/json",
2181
+ errors: {
2182
+ 500: `Internal server error`
2183
+ }
2184
+ });
2185
+ }
2186
+ /**
2187
+ * Rollback Environment Variables to Timestamp
2188
+ * Rollback all environment variables to a specific timestamp
2189
+ * @param requestBody
2190
+ * @returns RollbackResponse Environment variables rolled back successfully
2191
+ * @throws ApiError
2192
+ */
2193
+ rollbackEnvsToTimestamp(requestBody) {
2194
+ return this.httpRequest.request({
2195
+ method: "POST",
2196
+ url: "/api/env/rollback/timestamp",
2197
+ body: requestBody,
2198
+ mediaType: "application/json",
2199
+ errors: {
2200
+ 500: `Internal server error`
2201
+ }
2202
+ });
2203
+ }
2204
+ /**
2205
+ * Rollback Single Variable to Point in Time
2206
+ * Rollback a specific environment variable to a point in time
2207
+ * @param key
2208
+ * @param requestBody
2209
+ * @returns VariableRollbackResponse Variable rolled back successfully
2210
+ * @throws ApiError
2211
+ */
2212
+ rollbackVariableToPitId(key, requestBody) {
2213
+ return this.httpRequest.request({
2214
+ method: "POST",
2215
+ url: "/api/env/rollback/variable/{key}/pit",
2216
+ path: {
2217
+ "key": key
2218
+ },
2219
+ body: requestBody,
2220
+ mediaType: "application/json",
2221
+ errors: {
2222
+ 500: `Internal server error`
2223
+ }
2224
+ });
2225
+ }
2226
+ /**
2227
+ * Rollback Single Variable to Timestamp
2228
+ * Rollback a specific environment variable to a timestamp
2229
+ * @param key
2230
+ * @param requestBody
2231
+ * @returns VariableRollbackResponse Variable rolled back successfully
2232
+ * @throws ApiError
2233
+ */
2234
+ rollbackVariableToTimestamp(key, requestBody) {
2235
+ return this.httpRequest.request({
2236
+ method: "POST",
2237
+ url: "/api/env/rollback/variable/{key}/timestamp",
2238
+ path: {
2239
+ "key": key
2240
+ },
2241
+ body: requestBody,
2242
+ mediaType: "application/json",
2243
+ errors: {
2244
+ 500: `Internal server error`
2245
+ }
2246
+ });
2247
+ }
2248
+ };
2249
+
2250
+ // src/services/FileUploadService.ts
2251
+ var FileUploadService = class {
2252
+ constructor(httpRequest) {
2253
+ this.httpRequest = httpRequest;
2254
+ }
2255
+ /**
2256
+ * Upload File
2257
+ * Upload a file to the server. The file should be less than 5MB in size.
2258
+ * @param formData
2259
+ * @returns UploadFileResponse File uploaded successfully
2260
+ * @throws ApiError
2261
+ */
2262
+ uploadFile(formData) {
2263
+ return this.httpRequest.request({
2264
+ method: "POST",
2265
+ url: "/api/upload/file",
2266
+ formData,
2267
+ mediaType: "multipart/form-data",
2268
+ errors: {
2269
+ 500: `Internal server error`
2270
+ }
2271
+ });
2272
+ }
2273
+ };
2274
+
2275
+ // src/services/GpgKeysService.ts
2276
+ var GpgKeysService = class {
2277
+ constructor(httpRequest) {
2278
+ this.httpRequest = httpRequest;
2279
+ }
2280
+ /**
2281
+ * Generate GPG Key
2282
+ * Generate a new GPG key pair for the organization
2283
+ * @param requestBody
2284
+ * @returns GpgKeyResponse GPG key generated successfully
2285
+ * @throws ApiError
2286
+ */
2287
+ generateGpgKey(requestBody) {
2288
+ return this.httpRequest.request({
2289
+ method: "PUT",
2290
+ url: "/api/gpg_key/generate",
2291
+ body: requestBody,
2292
+ mediaType: "application/json",
2293
+ errors: {
2294
+ 500: `Internal server error`
2295
+ }
2296
+ });
2297
+ }
2298
+ /**
2299
+ * Import GPG Key
2300
+ * Import an existing GPG key into the organization
2301
+ * @param requestBody
2302
+ * @returns GpgKeyResponse GPG key imported successfully
2303
+ * @throws ApiError
2304
+ */
2305
+ importGpgKey(requestBody) {
2306
+ return this.httpRequest.request({
2307
+ method: "PUT",
2308
+ url: "/api/gpg_key/import",
2309
+ body: requestBody,
2310
+ mediaType: "application/json",
2311
+ errors: {
2312
+ 500: `Internal server error`
2313
+ }
2314
+ });
2315
+ }
2316
+ /**
2317
+ * Sign Data
2318
+ * Sign data using a GPG key
2319
+ * @param requestBody
2320
+ * @returns SignatureResponse Data signed successfully
2321
+ * @throws ApiError
2322
+ */
2323
+ signDataWithGpgKey(requestBody) {
2324
+ return this.httpRequest.request({
2325
+ method: "POST",
2326
+ url: "/api/gpg_key/sign",
2327
+ body: requestBody,
2328
+ mediaType: "application/json",
2329
+ errors: {
2330
+ 500: `Internal server error`
2331
+ }
2332
+ });
2333
+ }
2334
+ /**
2335
+ * Verify Signature
2336
+ * Verify a GPG signature
2337
+ * @param requestBody
2338
+ * @returns VerifyResponse Verification result
2339
+ * @throws ApiError
2340
+ */
2341
+ verifyGpgSignature(requestBody) {
2342
+ return this.httpRequest.request({
2343
+ method: "POST",
2344
+ url: "/api/gpg_key/verify",
2345
+ body: requestBody,
2346
+ mediaType: "application/json",
2347
+ errors: {
2348
+ 500: `Internal server error`
2349
+ }
2350
+ });
2351
+ }
2352
+ /**
2353
+ * List GPG Keys
2354
+ * List all GPG keys for the organization
2355
+ * @returns GpgKeysResponse GPG keys retrieved successfully
2356
+ * @throws ApiError
2357
+ */
2358
+ listGpgKeys() {
2359
+ return this.httpRequest.request({
2360
+ method: "GET",
2361
+ url: "/api/gpg_key",
2362
+ errors: {
2363
+ 500: `Internal server error`
2364
+ }
2365
+ });
2366
+ }
2367
+ /**
2368
+ * Get GPG Key
2369
+ * Retrieve a specific GPG key
2370
+ * @param id
2371
+ * @returns GpgKeyDetailResponse GPG key retrieved successfully
2372
+ * @throws ApiError
2373
+ */
2374
+ getGpgKey(id) {
2375
+ return this.httpRequest.request({
2376
+ method: "GET",
2377
+ url: "/api/gpg_key/{id}",
2378
+ path: {
2379
+ "id": id
2380
+ },
2381
+ errors: {
2382
+ 500: `Internal server error`
2383
+ }
2384
+ });
2385
+ }
2386
+ /**
2387
+ * Delete GPG Key
2388
+ * Delete a GPG key from the organization
2389
+ * @param id
2390
+ * @returns GpgKeyResponse GPG key deleted successfully
2391
+ * @throws ApiError
2392
+ */
2393
+ deleteGpgKey(id) {
2394
+ return this.httpRequest.request({
2395
+ method: "DELETE",
2396
+ url: "/api/gpg_key/{id}",
2397
+ path: {
2398
+ "id": id
2399
+ },
2400
+ errors: {
2401
+ 500: `Internal server error`
2402
+ }
2403
+ });
2404
+ }
2405
+ /**
2406
+ * Export GPG Public Key
2407
+ * Export the ASCII-armored public key
2408
+ * @param id
2409
+ * @returns ExportKeyResponse Public key exported successfully
2410
+ * @throws ApiError
2411
+ */
2412
+ exportGpgPublicKey(id) {
2413
+ return this.httpRequest.request({
2414
+ method: "GET",
2415
+ url: "/api/gpg_key/{id}/export",
2416
+ path: {
2417
+ "id": id
2418
+ },
2419
+ errors: {
2420
+ 500: `Internal server error`
2421
+ }
2422
+ });
2423
+ }
2424
+ /**
2425
+ * Revoke GPG Key
2426
+ * Revoke a GPG key (keeps data but marks as revoked)
2427
+ * @param id
2428
+ * @param requestBody
2429
+ * @returns GpgKeyDetailResponse GPG key revoked successfully
2430
+ * @throws ApiError
2431
+ */
2432
+ revokeGpgKey(id, requestBody) {
2433
+ return this.httpRequest.request({
2434
+ method: "POST",
2435
+ url: "/api/gpg_key/{id}/revoke",
2436
+ path: {
2437
+ "id": id
2438
+ },
2439
+ body: requestBody,
2440
+ mediaType: "application/json",
2441
+ errors: {
2442
+ 500: `Internal server error`
2443
+ }
2444
+ });
2445
+ }
2446
+ /**
2447
+ * Rotate GPG Key
2448
+ * Create a replacement GPG key, optionally promote it to default, and supersede the original key.
2449
+ * @param id
2450
+ * @param requestBody
2451
+ * @returns GpgKeyDetailResponse GPG key rotated successfully
2452
+ * @throws ApiError
2453
+ */
2454
+ rotateGpgKey(id, requestBody) {
2455
+ return this.httpRequest.request({
2456
+ method: "POST",
2457
+ url: "/api/gpg_key/{id}/rotate",
2458
+ path: {
2459
+ "id": id
2460
+ },
2461
+ body: requestBody,
2462
+ mediaType: "application/json",
2463
+ errors: {
2464
+ 500: `Internal server error`
2465
+ }
2466
+ });
2467
+ }
2468
+ /**
2469
+ * Extend GPG Key Expiry
2470
+ * Extend the expiry date of an active GPG key without rotating it.
2471
+ * @param id
2472
+ * @param requestBody
2473
+ * @returns GpgKeyDetailResponse GPG key expiry extended successfully
2474
+ * @throws ApiError
2475
+ */
2476
+ extendGpgKeyExpiry(id, requestBody) {
2477
+ return this.httpRequest.request({
2478
+ method: "POST",
2479
+ url: "/api/gpg_key/{id}/extend-expiry",
2480
+ path: {
2481
+ "id": id
2482
+ },
2483
+ body: requestBody,
2484
+ mediaType: "application/json",
2485
+ errors: {
2486
+ 500: `Internal server error`
2487
+ }
2488
+ });
2489
+ }
2490
+ /**
2491
+ * Update Trust Level
2492
+ * Update the trust level of a GPG key
2493
+ * @param id
2494
+ * @param requestBody
2495
+ * @returns GpgKeyDetailResponse Trust level updated successfully
2496
+ * @throws ApiError
2497
+ */
2498
+ updateGpgKeyTrustLevel(id, requestBody) {
2499
+ return this.httpRequest.request({
2500
+ method: "PATCH",
2501
+ url: "/api/gpg_key/{id}/trust",
2502
+ path: {
2503
+ "id": id
2504
+ },
2505
+ body: requestBody,
2506
+ mediaType: "application/json",
2507
+ errors: {
2508
+ 500: `Internal server error`
2509
+ }
2510
+ });
2511
+ }
2512
+ };
2513
+
2514
+ // src/services/LicenseService.ts
2515
+ var LicenseService = class {
2516
+ constructor(httpRequest) {
2517
+ this.httpRequest = httpRequest;
2518
+ }
2519
+ /**
2520
+ * Get Management License Status
2521
+ * @returns LicenseStatusResponse Current license status
2522
+ * @throws ApiError
2523
+ */
2524
+ getManagementLicenseStatus() {
2525
+ return this.httpRequest.request({
2526
+ method: "GET",
2527
+ url: "/api/v1/manage/license/status",
2528
+ errors: {
2529
+ 500: `Internal server error`
2530
+ }
2531
+ });
2532
+ }
2533
+ /**
2534
+ * Activate Management License
2535
+ * @returns LicenseActionResponse License activated
2536
+ * @throws ApiError
2537
+ */
2538
+ activateManagementLicense() {
2539
+ return this.httpRequest.request({
2540
+ method: "POST",
2541
+ url: "/api/v1/manage/license/activate",
2542
+ errors: {
2543
+ 500: `Internal server error`
2544
+ }
2545
+ });
2546
+ }
2547
+ /**
2548
+ * Verify Management License
2549
+ * @returns LicenseActionResponse License verified
2550
+ * @throws ApiError
2551
+ */
2552
+ verifyManagementLicense() {
2553
+ return this.httpRequest.request({
2554
+ method: "POST",
2555
+ url: "/api/v1/manage/license/verify",
2556
+ errors: {
2557
+ 500: `Internal server error`
2558
+ }
2559
+ });
2560
+ }
2561
+ };
2562
+
2563
+ // src/services/LogForwardingService.ts
2564
+ var LogForwardingService = class {
2565
+ constructor(httpRequest) {
2566
+ this.httpRequest = httpRequest;
2567
+ }
2568
+ /**
2569
+ * Create Log Forwarding Config
2570
+ * Create a new log forwarding configuration for the organization
2571
+ * @param requestBody
2572
+ * @returns LogForwardingResponse Log forwarding config created successfully
2573
+ * @throws ApiError
2574
+ */
2575
+ createLogForwardingConfig(requestBody) {
2576
+ return this.httpRequest.request({
2577
+ method: "POST",
2578
+ url: "/api/v1/manage/log_forwarding",
2579
+ body: requestBody,
2580
+ mediaType: "application/json",
2581
+ errors: {
2582
+ 500: `Internal server error`
2583
+ }
2584
+ });
2585
+ }
2586
+ /**
2587
+ * Get All Log Forwarding Configs
2588
+ * Retrieve all log forwarding configurations for the organization
2589
+ * @returns LogForwardingsResponse Log forwarding configs retrieved successfully
2590
+ * @throws ApiError
2591
+ */
2592
+ getLogForwardingConfigs() {
2593
+ return this.httpRequest.request({
2594
+ method: "GET",
2595
+ url: "/api/v1/manage/log_forwarding",
2596
+ errors: {
2597
+ 500: `Internal server error`
2598
+ }
2599
+ });
2600
+ }
2601
+ /**
2602
+ * Get Log Forwarding Config
2603
+ * Retrieve a specific log forwarding configuration
2604
+ * @param id
2605
+ * @returns LogForwardingResponse Log forwarding config retrieved successfully
1685
2606
  * @throws ApiError
1686
2607
  */
1687
- rollbackVariableToTimestamp(key, requestBody) {
2608
+ getLogForwardingConfig(id) {
1688
2609
  return this.httpRequest.request({
1689
- method: "POST",
1690
- url: "/api/env/rollback/variable/{key}/timestamp",
2610
+ method: "GET",
2611
+ url: "/api/v1/manage/log_forwarding/{id}",
1691
2612
  path: {
1692
- "key": key
2613
+ "id": id
1693
2614
  },
1694
- body: requestBody,
1695
- mediaType: "application/json",
1696
2615
  errors: {
2616
+ 404: `Config not found`,
1697
2617
  500: `Internal server error`
1698
2618
  }
1699
2619
  });
1700
2620
  }
1701
- };
1702
-
1703
- // src/services/FileUploadService.ts
1704
- var FileUploadService = class {
1705
- constructor(httpRequest) {
1706
- this.httpRequest = httpRequest;
1707
- }
1708
2621
  /**
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
2622
+ * Delete Log Forwarding Config
2623
+ * Delete a log forwarding configuration
2624
+ * @param id
2625
+ * @returns ErrorResponse Log forwarding config deleted successfully
1713
2626
  * @throws ApiError
1714
2627
  */
1715
- uploadFile(formData) {
2628
+ deleteLogForwardingConfig(id) {
1716
2629
  return this.httpRequest.request({
1717
- method: "POST",
1718
- url: "/api/upload/file",
1719
- formData,
1720
- mediaType: "multipart/form-data",
2630
+ method: "DELETE",
2631
+ url: "/api/v1/manage/log_forwarding/{id}",
2632
+ path: {
2633
+ "id": id
2634
+ },
1721
2635
  errors: {
1722
2636
  500: `Internal server error`
1723
2637
  }
@@ -1725,22 +2639,22 @@ var FileUploadService = class {
1725
2639
  }
1726
2640
  };
1727
2641
 
1728
- // src/services/GpgKeysService.ts
1729
- var GpgKeysService = class {
2642
+ // src/services/OidcProvidersService.ts
2643
+ var OidcProvidersService = class {
1730
2644
  constructor(httpRequest) {
1731
2645
  this.httpRequest = httpRequest;
1732
2646
  }
1733
2647
  /**
1734
- * Generate GPG Key
1735
- * Generate a new GPG key pair for the organization
2648
+ * Register OIDC Provider
2649
+ * Register a new OIDC provider for CI/CD machine authentication
1736
2650
  * @param requestBody
1737
- * @returns GpgKeyResponse GPG key generated successfully
2651
+ * @returns OidcProviderResponse OIDC provider created successfully
1738
2652
  * @throws ApiError
1739
2653
  */
1740
- generateGpgKey(requestBody) {
2654
+ createOidcProvider(requestBody) {
1741
2655
  return this.httpRequest.request({
1742
- method: "PUT",
1743
- url: "/api/gpg_key/generate",
2656
+ method: "POST",
2657
+ url: "/api/v1/manage/oidc",
1744
2658
  body: requestBody,
1745
2659
  mediaType: "application/json",
1746
2660
  errors: {
@@ -1749,52 +2663,54 @@ var GpgKeysService = class {
1749
2663
  });
1750
2664
  }
1751
2665
  /**
1752
- * Import GPG Key
1753
- * Import an existing GPG key into the organization
1754
- * @param requestBody
1755
- * @returns GpgKeyResponse GPG key imported successfully
2666
+ * Get All OIDC Providers
2667
+ * Retrieve all OIDC providers for the organization
2668
+ * @returns OidcProvidersResponse OIDC providers retrieved successfully
1756
2669
  * @throws ApiError
1757
2670
  */
1758
- importGpgKey(requestBody) {
2671
+ getAllOidcProviders() {
1759
2672
  return this.httpRequest.request({
1760
- method: "PUT",
1761
- url: "/api/gpg_key/import",
1762
- body: requestBody,
1763
- mediaType: "application/json",
2673
+ method: "GET",
2674
+ url: "/api/v1/manage/oidc",
1764
2675
  errors: {
1765
2676
  500: `Internal server error`
1766
2677
  }
1767
2678
  });
1768
2679
  }
1769
2680
  /**
1770
- * Sign Data
1771
- * Sign data using a GPG key
1772
- * @param requestBody
1773
- * @returns SignatureResponse Data signed successfully
2681
+ * Get OIDC Provider
2682
+ * Retrieve a specific OIDC provider
2683
+ * @param id
2684
+ * @returns OidcProviderResponse OIDC provider retrieved successfully
1774
2685
  * @throws ApiError
1775
2686
  */
1776
- signDataWithGpgKey(requestBody) {
2687
+ getOidcProvider(id) {
1777
2688
  return this.httpRequest.request({
1778
- method: "POST",
1779
- url: "/api/gpg_key/sign",
1780
- body: requestBody,
1781
- mediaType: "application/json",
2689
+ method: "GET",
2690
+ url: "/api/v1/manage/oidc/{id}",
2691
+ path: {
2692
+ "id": id
2693
+ },
1782
2694
  errors: {
1783
2695
  500: `Internal server error`
1784
2696
  }
1785
2697
  });
1786
2698
  }
1787
2699
  /**
1788
- * Verify Signature
1789
- * Verify a GPG signature
2700
+ * Update OIDC Provider
2701
+ * Update an existing OIDC provider
2702
+ * @param id
1790
2703
  * @param requestBody
1791
- * @returns VerifyResponse Verification result
2704
+ * @returns ErrorResponse OIDC provider updated successfully
1792
2705
  * @throws ApiError
1793
2706
  */
1794
- verifyGpgSignature(requestBody) {
2707
+ updateOidcProvider(id, requestBody) {
1795
2708
  return this.httpRequest.request({
1796
- method: "POST",
1797
- url: "/api/gpg_key/verify",
2709
+ method: "PUT",
2710
+ url: "/api/v1/manage/oidc/{id}",
2711
+ path: {
2712
+ "id": id
2713
+ },
1798
2714
  body: requestBody,
1799
2715
  mediaType: "application/json",
1800
2716
  errors: {
@@ -1803,33 +2719,62 @@ var GpgKeysService = class {
1803
2719
  });
1804
2720
  }
1805
2721
  /**
1806
- * List GPG Keys
1807
- * List all GPG keys for the organization
1808
- * @returns GpgKeysResponse GPG keys retrieved successfully
2722
+ * Delete OIDC Provider
2723
+ * Delete an existing OIDC provider
2724
+ * @param id
2725
+ * @returns ErrorResponse OIDC provider deleted successfully
1809
2726
  * @throws ApiError
1810
2727
  */
1811
- listGpgKeys() {
2728
+ deleteOidcProvider(id) {
1812
2729
  return this.httpRequest.request({
1813
- method: "GET",
1814
- url: "/api/gpg_key",
2730
+ method: "DELETE",
2731
+ url: "/api/v1/manage/oidc/{id}",
2732
+ path: {
2733
+ "id": id
2734
+ },
2735
+ errors: {
2736
+ 500: `Internal server error`
2737
+ }
2738
+ });
2739
+ }
2740
+ };
2741
+
2742
+ // src/services/OnboardingService.ts
2743
+ var OnboardingService = class {
2744
+ constructor(httpRequest) {
2745
+ this.httpRequest = httpRequest;
2746
+ }
2747
+ /**
2748
+ * Create Organization Invite
2749
+ * Create an organization invite
2750
+ * @param requestBody
2751
+ * @returns CreateOrgInviteResponse Successful greeting response
2752
+ * @throws ApiError
2753
+ */
2754
+ createOrgInvite(requestBody) {
2755
+ return this.httpRequest.request({
2756
+ method: "POST",
2757
+ url: "/api/onboarding/org",
2758
+ body: requestBody,
2759
+ mediaType: "application/json",
1815
2760
  errors: {
1816
2761
  500: `Internal server error`
1817
2762
  }
1818
2763
  });
1819
2764
  }
1820
2765
  /**
1821
- * Get GPG Key
1822
- * Retrieve a specific GPG key
1823
- * @param id
1824
- * @returns GpgKeyDetailResponse GPG key retrieved successfully
2766
+ * Get Organization Invite by Code
2767
+ * Get organization invite by code
2768
+ * @param inviteCode
2769
+ * @returns GetOrgInviteByCodeResponse Organization invite retrieved successfully
1825
2770
  * @throws ApiError
1826
2771
  */
1827
- getGpgKey(id) {
2772
+ getOrgInviteByCode(inviteCode) {
1828
2773
  return this.httpRequest.request({
1829
2774
  method: "GET",
1830
- url: "/api/gpg_key/{id}",
2775
+ url: "/api/onboarding/org/{invite_code}",
1831
2776
  path: {
1832
- "id": id
2777
+ "invite_code": inviteCode
1833
2778
  },
1834
2779
  errors: {
1835
2780
  500: `Internal server error`
@@ -1837,37 +2782,40 @@ var GpgKeysService = class {
1837
2782
  });
1838
2783
  }
1839
2784
  /**
1840
- * Delete GPG Key
1841
- * Delete a GPG key from the organization
1842
- * @param id
1843
- * @returns GpgKeyResponse GPG key deleted successfully
2785
+ * Accept Organization Invite
2786
+ * Accept organization invite
2787
+ * @param inviteCode
2788
+ * @param requestBody
2789
+ * @returns AcceptOrgInviteResponse Organization invite accepted successfully
1844
2790
  * @throws ApiError
1845
2791
  */
1846
- deleteGpgKey(id) {
2792
+ acceptOrgInvite(inviteCode, requestBody) {
1847
2793
  return this.httpRequest.request({
1848
- method: "DELETE",
1849
- url: "/api/gpg_key/{id}",
2794
+ method: "PUT",
2795
+ url: "/api/onboarding/org/{invite_code}/accept",
1850
2796
  path: {
1851
- "id": id
2797
+ "invite_code": inviteCode
1852
2798
  },
2799
+ body: requestBody,
2800
+ mediaType: "application/json",
1853
2801
  errors: {
1854
2802
  500: `Internal server error`
1855
2803
  }
1856
2804
  });
1857
2805
  }
1858
2806
  /**
1859
- * Export GPG Public Key
1860
- * Export the ASCII-armored public key
1861
- * @param id
1862
- * @returns ExportKeyResponse Public key exported successfully
2807
+ * Get User Invite by Code
2808
+ * Get user invite by code
2809
+ * @param inviteCode
2810
+ * @returns GetUserInviteByTokenResponse User invite retrieved successfully
1863
2811
  * @throws ApiError
1864
2812
  */
1865
- exportGpgPublicKey(id) {
2813
+ getUserInviteByCode(inviteCode) {
1866
2814
  return this.httpRequest.request({
1867
2815
  method: "GET",
1868
- url: "/api/gpg_key/{id}/export",
2816
+ url: "/api/onboarding/user/{invite_code}",
1869
2817
  path: {
1870
- "id": id
2818
+ "invite_code": inviteCode
1871
2819
  },
1872
2820
  errors: {
1873
2821
  500: `Internal server error`
@@ -1875,19 +2823,19 @@ var GpgKeysService = class {
1875
2823
  });
1876
2824
  }
1877
2825
  /**
1878
- * Revoke GPG Key
1879
- * Revoke a GPG key (keeps data but marks as revoked)
1880
- * @param id
2826
+ * Update User Invite
2827
+ * Update user invite
2828
+ * @param inviteCode
1881
2829
  * @param requestBody
1882
- * @returns GpgKeyDetailResponse GPG key revoked successfully
2830
+ * @returns UpdateUserInviteResponse User invite updated successfully
1883
2831
  * @throws ApiError
1884
2832
  */
1885
- revokeGpgKey(id, requestBody) {
2833
+ updateUserInvite(inviteCode, requestBody) {
1886
2834
  return this.httpRequest.request({
1887
- method: "POST",
1888
- url: "/api/gpg_key/{id}/revoke",
2835
+ method: "PATCH",
2836
+ url: "/api/onboarding/user/{invite_code}",
1889
2837
  path: {
1890
- "id": id
2838
+ "invite_code": inviteCode
1891
2839
  },
1892
2840
  body: requestBody,
1893
2841
  mediaType: "application/json",
@@ -1897,19 +2845,19 @@ var GpgKeysService = class {
1897
2845
  });
1898
2846
  }
1899
2847
  /**
1900
- * Rotate GPG Key
1901
- * Create a replacement GPG key, optionally promote it to default, and supersede the original key.
1902
- * @param id
2848
+ * Accept User Invite
2849
+ * Accept user invite
2850
+ * @param inviteCode
1903
2851
  * @param requestBody
1904
- * @returns GpgKeyDetailResponse GPG key rotated successfully
2852
+ * @returns AcceptUserInviteResponse User invite accepted successfully
1905
2853
  * @throws ApiError
1906
2854
  */
1907
- rotateGpgKey(id, requestBody) {
2855
+ acceptUserInvite(inviteCode, requestBody) {
1908
2856
  return this.httpRequest.request({
1909
- method: "POST",
1910
- url: "/api/gpg_key/{id}/rotate",
2857
+ method: "PUT",
2858
+ url: "/api/onboarding/user/{invite_code}/accept",
1911
2859
  path: {
1912
- "id": id
2860
+ "invite_code": inviteCode
1913
2861
  },
1914
2862
  body: requestBody,
1915
2863
  mediaType: "application/json",
@@ -1919,20 +2867,16 @@ var GpgKeysService = class {
1919
2867
  });
1920
2868
  }
1921
2869
  /**
1922
- * Extend GPG Key Expiry
1923
- * Extend the expiry date of an active GPG key without rotating it.
1924
- * @param id
2870
+ * Create User Invite
2871
+ * Create a user invite
1925
2872
  * @param requestBody
1926
- * @returns GpgKeyDetailResponse GPG key expiry extended successfully
2873
+ * @returns CreateUserInviteResponse User invite created successfully
1927
2874
  * @throws ApiError
1928
2875
  */
1929
- extendGpgKeyExpiry(id, requestBody) {
2876
+ createUserInvite(requestBody) {
1930
2877
  return this.httpRequest.request({
1931
2878
  method: "POST",
1932
- url: "/api/gpg_key/{id}/extend-expiry",
1933
- path: {
1934
- "id": id
1935
- },
2879
+ url: "/api/onboarding/user",
1936
2880
  body: requestBody,
1937
2881
  mediaType: "application/json",
1938
2882
  errors: {
@@ -1941,34 +2885,39 @@ var GpgKeysService = class {
1941
2885
  });
1942
2886
  }
1943
2887
  /**
1944
- * Update Trust Level
1945
- * Update the trust level of a GPG key
1946
- * @param id
1947
- * @param requestBody
1948
- * @returns GpgKeyDetailResponse Trust level updated successfully
2888
+ * Get All User Invites
2889
+ * Get all user invites
2890
+ * @returns GetUserInviteByTokenResponse User invites retrieved successfully
1949
2891
  * @throws ApiError
1950
2892
  */
1951
- updateGpgKeyTrustLevel(id, requestBody) {
2893
+ getAllUserInvites() {
1952
2894
  return this.httpRequest.request({
1953
- method: "PATCH",
1954
- url: "/api/gpg_key/{id}/trust",
2895
+ method: "GET",
2896
+ url: "/api/onboarding/user",
2897
+ errors: {
2898
+ 500: `Internal server error`
2899
+ }
2900
+ });
2901
+ }
2902
+ /**
2903
+ * Delete User Invite
2904
+ * Delete user invite
2905
+ * @param inviteId
2906
+ * @returns DeleteUserInviteResponse User invite deleted successfully
2907
+ * @throws ApiError
2908
+ */
2909
+ deleteUserInvite(inviteId) {
2910
+ return this.httpRequest.request({
2911
+ method: "DELETE",
2912
+ url: "/api/onboarding/user/{invite_id}",
1955
2913
  path: {
1956
- "id": id
2914
+ "invite_id": inviteId
1957
2915
  },
1958
- body: requestBody,
1959
- mediaType: "application/json",
1960
2916
  errors: {
1961
2917
  500: `Internal server error`
1962
2918
  }
1963
2919
  });
1964
2920
  }
1965
- };
1966
-
1967
- // src/services/OnboardingService.ts
1968
- var OnboardingService = class {
1969
- constructor(httpRequest) {
1970
- this.httpRequest = httpRequest;
1971
- }
1972
2921
  /**
1973
2922
  * Create Organization Invite
1974
2923
  * Create an organization invite
@@ -1976,10 +2925,10 @@ var OnboardingService = class {
1976
2925
  * @returns CreateOrgInviteResponse Successful greeting response
1977
2926
  * @throws ApiError
1978
2927
  */
1979
- createOrgInvite(requestBody) {
2928
+ manageCreateOrgInvite(requestBody) {
1980
2929
  return this.httpRequest.request({
1981
2930
  method: "POST",
1982
- url: "/api/onboarding/org",
2931
+ url: "/api/v1/manage/onboarding/org",
1983
2932
  body: requestBody,
1984
2933
  mediaType: "application/json",
1985
2934
  errors: {
@@ -1994,10 +2943,10 @@ var OnboardingService = class {
1994
2943
  * @returns GetOrgInviteByCodeResponse Organization invite retrieved successfully
1995
2944
  * @throws ApiError
1996
2945
  */
1997
- getOrgInviteByCode(inviteCode) {
2946
+ manageGetOrgInviteByCode(inviteCode) {
1998
2947
  return this.httpRequest.request({
1999
2948
  method: "GET",
2000
- url: "/api/onboarding/org/{invite_code}",
2949
+ url: "/api/v1/manage/onboarding/org/{invite_code}",
2001
2950
  path: {
2002
2951
  "invite_code": inviteCode
2003
2952
  },
@@ -2014,10 +2963,10 @@ var OnboardingService = class {
2014
2963
  * @returns AcceptOrgInviteResponse Organization invite accepted successfully
2015
2964
  * @throws ApiError
2016
2965
  */
2017
- acceptOrgInvite(inviteCode, requestBody) {
2966
+ manageAcceptOrgInvite(inviteCode, requestBody) {
2018
2967
  return this.httpRequest.request({
2019
2968
  method: "PUT",
2020
- url: "/api/onboarding/org/{invite_code}/accept",
2969
+ url: "/api/v1/manage/onboarding/org/{invite_code}/accept",
2021
2970
  path: {
2022
2971
  "invite_code": inviteCode
2023
2972
  },
@@ -2035,10 +2984,10 @@ var OnboardingService = class {
2035
2984
  * @returns GetUserInviteByTokenResponse User invite retrieved successfully
2036
2985
  * @throws ApiError
2037
2986
  */
2038
- getUserInviteByCode(inviteCode) {
2987
+ manageGetUserInviteByCode(inviteCode) {
2039
2988
  return this.httpRequest.request({
2040
2989
  method: "GET",
2041
- url: "/api/onboarding/user/{invite_code}",
2990
+ url: "/api/v1/manage/onboarding/user/{invite_code}",
2042
2991
  path: {
2043
2992
  "invite_code": inviteCode
2044
2993
  },
@@ -2055,10 +3004,10 @@ var OnboardingService = class {
2055
3004
  * @returns UpdateUserInviteResponse User invite updated successfully
2056
3005
  * @throws ApiError
2057
3006
  */
2058
- updateUserInvite(inviteCode, requestBody) {
3007
+ manageUpdateUserInvite(inviteCode, requestBody) {
2059
3008
  return this.httpRequest.request({
2060
3009
  method: "PATCH",
2061
- url: "/api/onboarding/user/{invite_code}",
3010
+ url: "/api/v1/manage/onboarding/user/{invite_code}",
2062
3011
  path: {
2063
3012
  "invite_code": inviteCode
2064
3013
  },
@@ -2077,10 +3026,10 @@ var OnboardingService = class {
2077
3026
  * @returns AcceptUserInviteResponse User invite accepted successfully
2078
3027
  * @throws ApiError
2079
3028
  */
2080
- acceptUserInvite(inviteCode, requestBody) {
3029
+ manageAcceptUserInvite(inviteCode, requestBody) {
2081
3030
  return this.httpRequest.request({
2082
3031
  method: "PUT",
2083
- url: "/api/onboarding/user/{invite_code}/accept",
3032
+ url: "/api/v1/manage/onboarding/user/{invite_code}/accept",
2084
3033
  path: {
2085
3034
  "invite_code": inviteCode
2086
3035
  },
@@ -2098,10 +3047,10 @@ var OnboardingService = class {
2098
3047
  * @returns CreateUserInviteResponse User invite created successfully
2099
3048
  * @throws ApiError
2100
3049
  */
2101
- createUserInvite(requestBody) {
3050
+ manageCreateUserInvite(requestBody) {
2102
3051
  return this.httpRequest.request({
2103
3052
  method: "POST",
2104
- url: "/api/onboarding/user",
3053
+ url: "/api/v1/manage/onboarding/user",
2105
3054
  body: requestBody,
2106
3055
  mediaType: "application/json",
2107
3056
  errors: {
@@ -2115,10 +3064,10 @@ var OnboardingService = class {
2115
3064
  * @returns GetUserInviteByTokenResponse User invites retrieved successfully
2116
3065
  * @throws ApiError
2117
3066
  */
2118
- getAllUserInvites() {
3067
+ manageGetAllUserInvites() {
2119
3068
  return this.httpRequest.request({
2120
3069
  method: "GET",
2121
- url: "/api/onboarding/user",
3070
+ url: "/api/v1/manage/onboarding/user",
2122
3071
  errors: {
2123
3072
  500: `Internal server error`
2124
3073
  }
@@ -2131,10 +3080,10 @@ var OnboardingService = class {
2131
3080
  * @returns DeleteUserInviteResponse User invite deleted successfully
2132
3081
  * @throws ApiError
2133
3082
  */
2134
- deleteUserInvite(inviteId) {
3083
+ manageDeleteUserInvite(inviteId) {
2135
3084
  return this.httpRequest.request({
2136
3085
  method: "DELETE",
2137
- url: "/api/onboarding/user/{invite_id}",
3086
+ url: "/api/v1/manage/onboarding/user/{invite_id}",
2138
3087
  path: {
2139
3088
  "invite_id": inviteId
2140
3089
  },
@@ -2243,174 +3192,447 @@ var PermissionsService = class {
2243
3192
  });
2244
3193
  }
2245
3194
  /**
2246
- * Grant App Access
2247
- * Grant a user or team access to an app
2248
- * @param appId
3195
+ * Grant App Access
3196
+ * Grant a user or team access to an app
3197
+ * @param appId
3198
+ * @param requestBody
3199
+ * @returns PermissionMessageResponse Access granted successfully
3200
+ * @throws ApiError
3201
+ */
3202
+ grantAppAccess(appId, requestBody) {
3203
+ return this.httpRequest.request({
3204
+ method: "POST",
3205
+ url: "/api/permission/app/{app_id}/grant",
3206
+ path: {
3207
+ "app_id": appId
3208
+ },
3209
+ body: requestBody,
3210
+ mediaType: "application/json",
3211
+ errors: {
3212
+ 500: `Internal server error`
3213
+ }
3214
+ });
3215
+ }
3216
+ /**
3217
+ * Revoke App Access
3218
+ * Revoke a user or team's access to an app
3219
+ * @param appId
3220
+ * @param requestBody
3221
+ * @returns PermissionMessageResponse Access revoked successfully
3222
+ * @throws ApiError
3223
+ */
3224
+ revokeAppAccess(appId, requestBody) {
3225
+ return this.httpRequest.request({
3226
+ method: "POST",
3227
+ url: "/api/permission/app/{app_id}/revoke",
3228
+ path: {
3229
+ "app_id": appId
3230
+ },
3231
+ body: requestBody,
3232
+ mediaType: "application/json",
3233
+ errors: {
3234
+ 500: `Internal server error`
3235
+ }
3236
+ });
3237
+ }
3238
+ /**
3239
+ * List App Grants
3240
+ * List direct user and team grants on an app
3241
+ * @param appId
3242
+ * @returns GrantsListResponse App grants listed successfully
3243
+ * @throws ApiError
3244
+ */
3245
+ listAppGrants(appId) {
3246
+ return this.httpRequest.request({
3247
+ method: "GET",
3248
+ url: "/api/permission/app/{app_id}/grants",
3249
+ path: {
3250
+ "app_id": appId
3251
+ }
3252
+ });
3253
+ }
3254
+ /**
3255
+ * Get App Effective Access
3256
+ * List user effective access for an app including team inheritance
3257
+ * @param appId
3258
+ * @returns EffectiveAccessResponse Effective app access returned successfully
3259
+ * @throws ApiError
3260
+ */
3261
+ getAppEffectiveAccess(appId) {
3262
+ return this.httpRequest.request({
3263
+ method: "GET",
3264
+ url: "/api/permission/app/{app_id}/effective-access",
3265
+ path: {
3266
+ "app_id": appId
3267
+ }
3268
+ });
3269
+ }
3270
+ /**
3271
+ * Grant Env Type Access
3272
+ * Grant a user or team access to an environment type
3273
+ * @param id
3274
+ * @param requestBody
3275
+ * @returns PermissionMessageResponse Access granted successfully
3276
+ * @throws ApiError
3277
+ */
3278
+ grantEnvTypeAccess(id, requestBody) {
3279
+ return this.httpRequest.request({
3280
+ method: "POST",
3281
+ url: "/api/permission/env_type/{id}/grant",
3282
+ path: {
3283
+ "id": id
3284
+ },
3285
+ body: requestBody,
3286
+ mediaType: "application/json",
3287
+ errors: {
3288
+ 500: `Internal server error`
3289
+ }
3290
+ });
3291
+ }
3292
+ /**
3293
+ * Revoke Env Type Access
3294
+ * Revoke a user or team's access to an environment type
3295
+ * @param id
3296
+ * @param requestBody
3297
+ * @returns PermissionMessageResponse Access revoked successfully
3298
+ * @throws ApiError
3299
+ */
3300
+ revokeEnvTypeAccess(id, requestBody) {
3301
+ return this.httpRequest.request({
3302
+ method: "POST",
3303
+ url: "/api/permission/env_type/{id}/revoke",
3304
+ path: {
3305
+ "id": id
3306
+ },
3307
+ body: requestBody,
3308
+ mediaType: "application/json",
3309
+ errors: {
3310
+ 500: `Internal server error`
3311
+ }
3312
+ });
3313
+ }
3314
+ /**
3315
+ * List Env Type Grants
3316
+ * List direct user and team grants on an environment type
3317
+ * @param id
3318
+ * @returns GrantsListResponse Env type grants listed successfully
3319
+ * @throws ApiError
3320
+ */
3321
+ listEnvTypeGrants(id) {
3322
+ return this.httpRequest.request({
3323
+ method: "GET",
3324
+ url: "/api/permission/env_type/{id}/grants",
3325
+ path: {
3326
+ "id": id
3327
+ }
3328
+ });
3329
+ }
3330
+ };
3331
+
3332
+ // src/services/RolesService.ts
3333
+ var RolesService = class {
3334
+ constructor(httpRequest) {
3335
+ this.httpRequest = httpRequest;
3336
+ }
3337
+ /**
3338
+ * Get All Roles
3339
+ * Retrieve all roles in the organization
3340
+ * @returns RolesResponse Roles retrieved successfully
3341
+ * @throws ApiError
3342
+ */
3343
+ getAllRoles() {
3344
+ return this.httpRequest.request({
3345
+ method: "GET",
3346
+ url: "/api/role",
3347
+ errors: {
3348
+ 500: `Internal server error`
3349
+ }
3350
+ });
3351
+ }
3352
+ /**
3353
+ * Create Role
3354
+ * Create a new role in the organization
3355
+ * @param requestBody
3356
+ * @returns RoleResponse Role created successfully
3357
+ * @throws ApiError
3358
+ */
3359
+ createRole(requestBody) {
3360
+ return this.httpRequest.request({
3361
+ method: "POST",
3362
+ url: "/api/role",
3363
+ body: requestBody,
3364
+ mediaType: "application/json",
3365
+ errors: {
3366
+ 500: `Internal server error`
3367
+ }
3368
+ });
3369
+ }
3370
+ /**
3371
+ * Get Role Statistics
3372
+ * Retrieve statistics about roles in the organization
3373
+ * @returns RoleStatsResponse Role statistics retrieved successfully
3374
+ * @throws ApiError
3375
+ */
3376
+ getRoleStats() {
3377
+ return this.httpRequest.request({
3378
+ method: "GET",
3379
+ url: "/api/role/stats",
3380
+ errors: {
3381
+ 500: `Internal server error`
3382
+ }
3383
+ });
3384
+ }
3385
+ /**
3386
+ * Get Role
3387
+ * Retrieve a specific role by ID
3388
+ * @param id
3389
+ * @returns RoleResponse Role retrieved successfully
3390
+ * @throws ApiError
3391
+ */
3392
+ getRole(id) {
3393
+ return this.httpRequest.request({
3394
+ method: "GET",
3395
+ url: "/api/role/{id}",
3396
+ path: {
3397
+ "id": id
3398
+ },
3399
+ errors: {
3400
+ 500: `Internal server error`
3401
+ }
3402
+ });
3403
+ }
3404
+ /**
3405
+ * Update Role
3406
+ * Update an existing role
3407
+ * @param id
3408
+ * @param requestBody
3409
+ * @returns RoleResponse Role updated successfully
3410
+ * @throws ApiError
3411
+ */
3412
+ updateRole(id, requestBody) {
3413
+ return this.httpRequest.request({
3414
+ method: "PATCH",
3415
+ url: "/api/role/{id}",
3416
+ path: {
3417
+ "id": id
3418
+ },
3419
+ body: requestBody,
3420
+ mediaType: "application/json",
3421
+ errors: {
3422
+ 500: `Internal server error`
3423
+ }
3424
+ });
3425
+ }
3426
+ /**
3427
+ * Delete Role
3428
+ * Delete an existing role (non-master roles only)
3429
+ * @param id
3430
+ * @returns RoleResponse Role deleted successfully
3431
+ * @throws ApiError
3432
+ */
3433
+ deleteRole(id) {
3434
+ return this.httpRequest.request({
3435
+ method: "DELETE",
3436
+ url: "/api/role/{id}",
3437
+ path: {
3438
+ "id": id
3439
+ },
3440
+ errors: {
3441
+ 500: `Internal server error`
3442
+ }
3443
+ });
3444
+ }
3445
+ };
3446
+
3447
+ // src/services/RotationService.ts
3448
+ var RotationService = class {
3449
+ constructor(httpRequest) {
3450
+ this.httpRequest = httpRequest;
3451
+ }
3452
+ /**
3453
+ * Create Rotation Policy
3454
+ * Create a new secret rotation policy for a variable
2249
3455
  * @param requestBody
2250
- * @returns PermissionMessageResponse Access granted successfully
3456
+ * @returns RotationPolicyResponse Rotation policy created successfully
2251
3457
  * @throws ApiError
2252
3458
  */
2253
- grantAppAccess(appId, requestBody) {
3459
+ createRotationPolicy(requestBody) {
2254
3460
  return this.httpRequest.request({
2255
3461
  method: "POST",
2256
- url: "/api/permission/app/{app_id}/grant",
2257
- path: {
2258
- "app_id": appId
2259
- },
3462
+ url: "/api/v1/manage/rotation",
2260
3463
  body: requestBody,
2261
3464
  mediaType: "application/json",
2262
3465
  errors: {
3466
+ 400: `Bad request`,
3467
+ 403: `Forbidden`,
3468
+ 409: `Conflict - policy already exists`,
2263
3469
  500: `Internal server error`
2264
3470
  }
2265
3471
  });
2266
3472
  }
2267
3473
  /**
2268
- * Revoke App Access
2269
- * Revoke a user or team's access to an app
3474
+ * Get Rotation Policies
3475
+ * List all rotation policies for the organization
2270
3476
  * @param appId
2271
- * @param requestBody
2272
- * @returns PermissionMessageResponse Access revoked successfully
3477
+ * @param envTypeId
3478
+ * @param enabled
3479
+ * @returns RotationPoliciesResponse Rotation policies retrieved successfully
2273
3480
  * @throws ApiError
2274
3481
  */
2275
- revokeAppAccess(appId, requestBody) {
3482
+ getRotationPolicies(appId, envTypeId, enabled) {
2276
3483
  return this.httpRequest.request({
2277
- method: "POST",
2278
- url: "/api/permission/app/{app_id}/revoke",
2279
- path: {
2280
- "app_id": appId
3484
+ method: "GET",
3485
+ url: "/api/v1/manage/rotation",
3486
+ query: {
3487
+ "app_id": appId,
3488
+ "env_type_id": envTypeId,
3489
+ "enabled": enabled
2281
3490
  },
2282
- body: requestBody,
2283
- mediaType: "application/json",
2284
3491
  errors: {
2285
3492
  500: `Internal server error`
2286
3493
  }
2287
3494
  });
2288
3495
  }
2289
3496
  /**
2290
- * List App Grants
2291
- * List direct user and team grants on an app
2292
- * @param appId
2293
- * @returns GrantsListResponse App grants listed successfully
3497
+ * Get Rotation Policy
3498
+ * Get a specific rotation policy by ID
3499
+ * @param id
3500
+ * @returns RotationPolicyResponse Rotation policy retrieved successfully
2294
3501
  * @throws ApiError
2295
3502
  */
2296
- listAppGrants(appId) {
3503
+ getRotationPolicy(id) {
2297
3504
  return this.httpRequest.request({
2298
3505
  method: "GET",
2299
- url: "/api/permission/app/{app_id}/grants",
3506
+ url: "/api/v1/manage/rotation/{id}",
2300
3507
  path: {
2301
- "app_id": appId
3508
+ "id": id
3509
+ },
3510
+ errors: {
3511
+ 404: `Not found`,
3512
+ 500: `Internal server error`
2302
3513
  }
2303
3514
  });
2304
3515
  }
2305
3516
  /**
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
3517
+ * Update Rotation Policy
3518
+ * Update an existing rotation policy
3519
+ * @param id
3520
+ * @param requestBody
3521
+ * @returns RotationPolicyResponse Rotation policy updated successfully
2310
3522
  * @throws ApiError
2311
3523
  */
2312
- getAppEffectiveAccess(appId) {
3524
+ updateRotationPolicy(id, requestBody) {
2313
3525
  return this.httpRequest.request({
2314
- method: "GET",
2315
- url: "/api/permission/app/{app_id}/effective-access",
3526
+ method: "PATCH",
3527
+ url: "/api/v1/manage/rotation/{id}",
2316
3528
  path: {
2317
- "app_id": appId
3529
+ "id": id
3530
+ },
3531
+ body: requestBody,
3532
+ mediaType: "application/json",
3533
+ errors: {
3534
+ 403: `Forbidden`,
3535
+ 404: `Not found`,
3536
+ 500: `Internal server error`
2318
3537
  }
2319
3538
  });
2320
3539
  }
2321
3540
  /**
2322
- * Grant Env Type Access
2323
- * Grant a user or team access to an environment type
3541
+ * Delete Rotation Policy
3542
+ * Delete a rotation policy
2324
3543
  * @param id
2325
- * @param requestBody
2326
- * @returns PermissionMessageResponse Access granted successfully
3544
+ * @returns ErrorResponse Rotation policy deleted successfully
2327
3545
  * @throws ApiError
2328
3546
  */
2329
- grantEnvTypeAccess(id, requestBody) {
3547
+ deleteRotationPolicy(id) {
2330
3548
  return this.httpRequest.request({
2331
- method: "POST",
2332
- url: "/api/permission/env_type/{id}/grant",
3549
+ method: "DELETE",
3550
+ url: "/api/v1/manage/rotation/{id}",
2333
3551
  path: {
2334
3552
  "id": id
2335
3553
  },
2336
- body: requestBody,
2337
- mediaType: "application/json",
2338
3554
  errors: {
3555
+ 403: `Forbidden`,
3556
+ 404: `Not found`,
2339
3557
  500: `Internal server error`
2340
3558
  }
2341
3559
  });
2342
3560
  }
2343
3561
  /**
2344
- * Revoke Env Type Access
2345
- * Revoke a user or team's access to an environment type
3562
+ * Trigger Rotation
3563
+ * Manually trigger a secret rotation for a policy
2346
3564
  * @param id
2347
- * @param requestBody
2348
- * @returns PermissionMessageResponse Access revoked successfully
3565
+ * @returns TriggerRotationResponse Rotation executed successfully
2349
3566
  * @throws ApiError
2350
3567
  */
2351
- revokeEnvTypeAccess(id, requestBody) {
3568
+ triggerRotation(id) {
2352
3569
  return this.httpRequest.request({
2353
3570
  method: "POST",
2354
- url: "/api/permission/env_type/{id}/revoke",
3571
+ url: "/api/v1/manage/rotation/{id}/rotate",
2355
3572
  path: {
2356
3573
  "id": id
2357
3574
  },
2358
- body: requestBody,
2359
- mediaType: "application/json",
2360
3575
  errors: {
3576
+ 403: `Forbidden`,
3577
+ 404: `Not found`,
3578
+ 409: `Conflict - policy disabled`,
2361
3579
  500: `Internal server error`
2362
3580
  }
2363
3581
  });
2364
3582
  }
2365
3583
  /**
2366
- * List Env Type Grants
2367
- * List direct user and team grants on an environment type
3584
+ * Get Rotation States
3585
+ * Get the rotation state history for a policy
2368
3586
  * @param id
2369
- * @returns GrantsListResponse Env type grants listed successfully
3587
+ * @returns RotationStatesResponse Rotation states retrieved successfully
2370
3588
  * @throws ApiError
2371
3589
  */
2372
- listEnvTypeGrants(id) {
3590
+ getRotationStates(id) {
2373
3591
  return this.httpRequest.request({
2374
3592
  method: "GET",
2375
- url: "/api/permission/env_type/{id}/grants",
3593
+ url: "/api/v1/manage/rotation/{id}/states",
2376
3594
  path: {
2377
3595
  "id": id
3596
+ },
3597
+ errors: {
3598
+ 404: `Not found`,
3599
+ 500: `Internal server error`
2378
3600
  }
2379
3601
  });
2380
3602
  }
2381
- };
2382
-
2383
- // src/services/RolesService.ts
2384
- var RolesService = class {
2385
- constructor(httpRequest) {
2386
- this.httpRequest = httpRequest;
2387
- }
2388
3603
  /**
2389
- * Get All Roles
2390
- * Retrieve all roles in the organization
2391
- * @returns RolesResponse Roles retrieved successfully
3604
+ * Revoke Expired Credentials
3605
+ * Revoke old credentials that have passed their dual-credential window
3606
+ * @returns RevokeOldCredentialResponse Expired credentials revoked successfully
2392
3607
  * @throws ApiError
2393
3608
  */
2394
- getAllRoles() {
3609
+ revokeExpiredCredentials() {
2395
3610
  return this.httpRequest.request({
2396
- method: "GET",
2397
- url: "/api/role",
3611
+ method: "POST",
3612
+ url: "/api/v1/manage/rotation/revoke-expired",
2398
3613
  errors: {
2399
3614
  500: `Internal server error`
2400
3615
  }
2401
3616
  });
2402
3617
  }
3618
+ };
3619
+
3620
+ // src/services/SamlProvidersService.ts
3621
+ var SamlProvidersService = class {
3622
+ constructor(httpRequest) {
3623
+ this.httpRequest = httpRequest;
3624
+ }
2403
3625
  /**
2404
- * Create Role
2405
- * Create a new role in the organization
3626
+ * Register SAML Provider
3627
+ * Register a new SAML identity provider for SSO authentication
2406
3628
  * @param requestBody
2407
- * @returns RoleResponse Role created successfully
3629
+ * @returns SamlProviderResponse SAML provider created successfully
2408
3630
  * @throws ApiError
2409
3631
  */
2410
- createRole(requestBody) {
3632
+ createSamlProvider(requestBody) {
2411
3633
  return this.httpRequest.request({
2412
3634
  method: "POST",
2413
- url: "/api/role",
3635
+ url: "/api/v1/manage/saml",
2414
3636
  body: requestBody,
2415
3637
  mediaType: "application/json",
2416
3638
  errors: {
@@ -2419,31 +3641,31 @@ var RolesService = class {
2419
3641
  });
2420
3642
  }
2421
3643
  /**
2422
- * Get Role Statistics
2423
- * Retrieve statistics about roles in the organization
2424
- * @returns RoleStatsResponse Role statistics retrieved successfully
3644
+ * Get All SAML Providers
3645
+ * Retrieve all SAML providers for the organization
3646
+ * @returns SamlProvidersResponse SAML providers retrieved successfully
2425
3647
  * @throws ApiError
2426
3648
  */
2427
- getRoleStats() {
3649
+ getAllSamlProviders() {
2428
3650
  return this.httpRequest.request({
2429
3651
  method: "GET",
2430
- url: "/api/role/stats",
3652
+ url: "/api/v1/manage/saml",
2431
3653
  errors: {
2432
3654
  500: `Internal server error`
2433
3655
  }
2434
3656
  });
2435
3657
  }
2436
3658
  /**
2437
- * Get Role
2438
- * Retrieve a specific role by ID
3659
+ * Get SAML Provider
3660
+ * Retrieve a specific SAML provider
2439
3661
  * @param id
2440
- * @returns RoleResponse Role retrieved successfully
3662
+ * @returns SamlProviderResponse SAML provider retrieved successfully
2441
3663
  * @throws ApiError
2442
3664
  */
2443
- getRole(id) {
3665
+ getSamlProvider(id) {
2444
3666
  return this.httpRequest.request({
2445
3667
  method: "GET",
2446
- url: "/api/role/{id}",
3668
+ url: "/api/v1/manage/saml/{id}",
2447
3669
  path: {
2448
3670
  "id": id
2449
3671
  },
@@ -2453,17 +3675,17 @@ var RolesService = class {
2453
3675
  });
2454
3676
  }
2455
3677
  /**
2456
- * Update Role
2457
- * Update an existing role
3678
+ * Update SAML Provider
3679
+ * Update an existing SAML provider
2458
3680
  * @param id
2459
3681
  * @param requestBody
2460
- * @returns RoleResponse Role updated successfully
3682
+ * @returns ErrorResponse SAML provider updated successfully
2461
3683
  * @throws ApiError
2462
3684
  */
2463
- updateRole(id, requestBody) {
3685
+ updateSamlProvider(id, requestBody) {
2464
3686
  return this.httpRequest.request({
2465
- method: "PATCH",
2466
- url: "/api/role/{id}",
3687
+ method: "PUT",
3688
+ url: "/api/v1/manage/saml/{id}",
2467
3689
  path: {
2468
3690
  "id": id
2469
3691
  },
@@ -2475,16 +3697,16 @@ var RolesService = class {
2475
3697
  });
2476
3698
  }
2477
3699
  /**
2478
- * Delete Role
2479
- * Delete an existing role (non-master roles only)
3700
+ * Delete SAML Provider
3701
+ * Delete an existing SAML provider
2480
3702
  * @param id
2481
- * @returns RoleResponse Role deleted successfully
3703
+ * @returns ErrorResponse SAML provider deleted successfully
2482
3704
  * @throws ApiError
2483
3705
  */
2484
- deleteRole(id) {
3706
+ deleteSamlProvider(id) {
2485
3707
  return this.httpRequest.request({
2486
3708
  method: "DELETE",
2487
- url: "/api/role/{id}",
3709
+ url: "/api/v1/manage/saml/{id}",
2488
3710
  path: {
2489
3711
  "id": id
2490
3712
  },
@@ -2493,6 +3715,66 @@ var RolesService = class {
2493
3715
  }
2494
3716
  });
2495
3717
  }
3718
+ /**
3719
+ * Get SAML SP Metadata
3720
+ * Retrieve SAML Service Provider metadata XML for the organization
3721
+ * @param id
3722
+ * @returns string SP metadata XML
3723
+ * @throws ApiError
3724
+ */
3725
+ getSamlMetadata(id) {
3726
+ return this.httpRequest.request({
3727
+ method: "GET",
3728
+ url: "/api/v1/manage/saml/{id}/metadata",
3729
+ path: {
3730
+ "id": id
3731
+ }
3732
+ });
3733
+ }
3734
+ };
3735
+
3736
+ // src/services/SamlSsoService.ts
3737
+ var SamlSsoService = class {
3738
+ constructor(httpRequest) {
3739
+ this.httpRequest = httpRequest;
3740
+ }
3741
+ /**
3742
+ * Initiate SAML SSO
3743
+ * Start SP-initiated SAML SSO flow by generating an AuthnRequest redirect URL
3744
+ * @param requestBody
3745
+ * @returns SamlSsoResponse Redirect URL generated
3746
+ * @throws ApiError
3747
+ */
3748
+ initiateSamlSso(requestBody) {
3749
+ return this.httpRequest.request({
3750
+ method: "POST",
3751
+ url: "/api/v1/manage/saml/sso",
3752
+ body: requestBody,
3753
+ mediaType: "application/json",
3754
+ errors: {
3755
+ 500: `Internal server error`
3756
+ }
3757
+ });
3758
+ }
3759
+ /**
3760
+ * SAML Assertion Consumer Service
3761
+ * Receive and validate SAML Response from the identity provider (ACS endpoint)
3762
+ * @param orgId
3763
+ * @returns any Authentication successful
3764
+ * @throws ApiError
3765
+ */
3766
+ handleSamlAcs(orgId) {
3767
+ return this.httpRequest.request({
3768
+ method: "POST",
3769
+ url: "/api/v1/manage/saml/acs/{orgId}",
3770
+ path: {
3771
+ "orgId": orgId
3772
+ },
3773
+ errors: {
3774
+ 401: `Authentication failed`
3775
+ }
3776
+ });
3777
+ }
2496
3778
  };
2497
3779
 
2498
3780
  // src/services/SecretsService.ts
@@ -2956,6 +4238,46 @@ var ServiceTokensService = class {
2956
4238
  }
2957
4239
  };
2958
4240
 
4241
+ // src/services/SetupService.ts
4242
+ var SetupService = class {
4243
+ constructor(httpRequest) {
4244
+ this.httpRequest = httpRequest;
4245
+ }
4246
+ /**
4247
+ * Operator setup status (self-host)
4248
+ * @returns SetupStatusResponse Setup status
4249
+ * @throws ApiError
4250
+ */
4251
+ getSetupStatus() {
4252
+ return this.httpRequest.request({
4253
+ method: "GET",
4254
+ url: "/api/setup/status",
4255
+ errors: {
4256
+ 401: `Invalid setup token`
4257
+ }
4258
+ });
4259
+ }
4260
+ /**
4261
+ * Create organization via operator setup token (self-host only)
4262
+ * @param requestBody
4263
+ * @returns any Organization created
4264
+ * @throws ApiError
4265
+ */
4266
+ createSetupOrganization(requestBody) {
4267
+ return this.httpRequest.request({
4268
+ method: "POST",
4269
+ url: "/api/setup/org",
4270
+ body: requestBody,
4271
+ mediaType: "application/json",
4272
+ errors: {
4273
+ 400: `Invalid request`,
4274
+ 401: `Invalid setup token`,
4275
+ 403: `Channel forbidden`
4276
+ }
4277
+ });
4278
+ }
4279
+ };
4280
+
2959
4281
  // src/services/SystemService.ts
2960
4282
  var SystemService = class {
2961
4283
  constructor(httpRequest) {
@@ -2975,6 +4297,20 @@ var SystemService = class {
2975
4297
  }
2976
4298
  });
2977
4299
  }
4300
+ /**
4301
+ * Get Management System Status
4302
+ * @returns SystemStatusResponse Management system status
4303
+ * @throws ApiError
4304
+ */
4305
+ manageGetManagementSystemStatus() {
4306
+ return this.httpRequest.request({
4307
+ method: "GET",
4308
+ url: "/api/v1/manage/system/status",
4309
+ errors: {
4310
+ 500: `Internal server error`
4311
+ }
4312
+ });
4313
+ }
2978
4314
  };
2979
4315
 
2980
4316
  // src/services/TeamsService.ts
@@ -3265,7 +4601,7 @@ var UsersService = class {
3265
4601
  * @returns UserResponse User role updated successfully
3266
4602
  * @throws ApiError
3267
4603
  */
3268
- updateRole(id, requestBody) {
4604
+ updateUserRole(id, requestBody) {
3269
4605
  return this.httpRequest.request({
3270
4606
  method: "PATCH",
3271
4607
  url: "/api/user/role/{id}",
@@ -3409,20 +4745,29 @@ var EnvSyncAPISDK = class {
3409
4745
  authentication;
3410
4746
  certificates;
3411
4747
  changeRequests;
4748
+ dynamicSecrets;
4749
+ enterprise;
3412
4750
  environmentTypes;
3413
4751
  environmentVariables;
3414
4752
  environmentVariablesPointInTime;
3415
4753
  environmentVariablesRollback;
3416
4754
  fileUpload;
3417
4755
  gpgKeys;
4756
+ license;
4757
+ logForwarding;
4758
+ oidcProviders;
3418
4759
  onboarding;
3419
4760
  organizations;
3420
4761
  permissions;
3421
4762
  roles;
4763
+ rotation;
4764
+ samlProviders;
4765
+ samlSso;
3422
4766
  secrets;
3423
4767
  secretsPointInTime;
3424
4768
  secretsRollback;
3425
4769
  serviceTokens;
4770
+ setup;
3426
4771
  system;
3427
4772
  teams;
3428
4773
  users;
@@ -3431,7 +4776,7 @@ var EnvSyncAPISDK = class {
3431
4776
  constructor(config, HttpRequest = FetchHttpRequest) {
3432
4777
  this.request = new HttpRequest({
3433
4778
  BASE: config?.BASE ?? "http://localhost:4000",
3434
- VERSION: config?.VERSION ?? "0.10.0",
4779
+ VERSION: config?.VERSION ?? "0.20.0",
3435
4780
  WITH_CREDENTIALS: config?.WITH_CREDENTIALS ?? false,
3436
4781
  CREDENTIALS: config?.CREDENTIALS ?? "include",
3437
4782
  TOKEN: config?.TOKEN,
@@ -3447,20 +4792,29 @@ var EnvSyncAPISDK = class {
3447
4792
  this.authentication = new AuthenticationService(this.request);
3448
4793
  this.certificates = new CertificatesService(this.request);
3449
4794
  this.changeRequests = new ChangeRequestsService(this.request);
4795
+ this.dynamicSecrets = new DynamicSecretsService(this.request);
4796
+ this.enterprise = new EnterpriseService(this.request);
3450
4797
  this.environmentTypes = new EnvironmentTypesService(this.request);
3451
4798
  this.environmentVariables = new EnvironmentVariablesService(this.request);
3452
4799
  this.environmentVariablesPointInTime = new EnvironmentVariablesPointInTimeService(this.request);
3453
4800
  this.environmentVariablesRollback = new EnvironmentVariablesRollbackService(this.request);
3454
4801
  this.fileUpload = new FileUploadService(this.request);
3455
4802
  this.gpgKeys = new GpgKeysService(this.request);
4803
+ this.license = new LicenseService(this.request);
4804
+ this.logForwarding = new LogForwardingService(this.request);
4805
+ this.oidcProviders = new OidcProvidersService(this.request);
3456
4806
  this.onboarding = new OnboardingService(this.request);
3457
4807
  this.organizations = new OrganizationsService(this.request);
3458
4808
  this.permissions = new PermissionsService(this.request);
3459
4809
  this.roles = new RolesService(this.request);
4810
+ this.rotation = new RotationService(this.request);
4811
+ this.samlProviders = new SamlProvidersService(this.request);
4812
+ this.samlSso = new SamlSsoService(this.request);
3460
4813
  this.secrets = new SecretsService(this.request);
3461
4814
  this.secretsPointInTime = new SecretsPointInTimeService(this.request);
3462
4815
  this.secretsRollback = new SecretsRollbackService(this.request);
3463
4816
  this.serviceTokens = new ServiceTokensService(this.request);
4817
+ this.setup = new SetupService(this.request);
3464
4818
  this.system = new SystemService(this.request);
3465
4819
  this.teams = new TeamsService(this.request);
3466
4820
  this.users = new UsersService(this.request);
@@ -3471,7 +4825,7 @@ var EnvSyncAPISDK = class {
3471
4825
  // src/core/OpenAPI.ts
3472
4826
  var OpenAPI = {
3473
4827
  BASE: "http://localhost:4000",
3474
- VERSION: "0.10.0",
4828
+ VERSION: "0.20.0",
3475
4829
  WITH_CREDENTIALS: false,
3476
4830
  CREDENTIALS: "include",
3477
4831
  TOKEN: void 0,
@@ -3498,6 +4852,118 @@ var ChangeRequestResponse;
3498
4852
  })(status = ChangeRequestResponse2.status || (ChangeRequestResponse2.status = {}));
3499
4853
  })(ChangeRequestResponse || (ChangeRequestResponse = {}));
3500
4854
 
4855
+ // src/models/CreateDynamicSecretEngineRequest.ts
4856
+ var CreateDynamicSecretEngineRequest;
4857
+ ((CreateDynamicSecretEngineRequest2) => {
4858
+ let engine_type;
4859
+ ((engine_type2) => {
4860
+ engine_type2["POSTGRES"] = "postgres";
4861
+ engine_type2["MYSQL"] = "mysql";
4862
+ engine_type2["AWS_IAM"] = "aws-iam";
4863
+ engine_type2["AZURE_SP"] = "azure-sp";
4864
+ })(engine_type = CreateDynamicSecretEngineRequest2.engine_type || (CreateDynamicSecretEngineRequest2.engine_type = {}));
4865
+ })(CreateDynamicSecretEngineRequest || (CreateDynamicSecretEngineRequest = {}));
4866
+
4867
+ // src/models/CreateIntegrationBindingRequest.ts
4868
+ var CreateIntegrationBindingRequest;
4869
+ ((CreateIntegrationBindingRequest2) => {
4870
+ let provider_type;
4871
+ ((provider_type2) => {
4872
+ provider_type2["GITHUB"] = "github";
4873
+ provider_type2["GITLAB"] = "gitlab";
4874
+ provider_type2["AWS_SSM"] = "aws-ssm";
4875
+ provider_type2["VERCEL"] = "vercel";
4876
+ provider_type2["GOOGLE_SECRET_MANAGER"] = "google-secret-manager";
4877
+ })(provider_type = CreateIntegrationBindingRequest2.provider_type || (CreateIntegrationBindingRequest2.provider_type = {}));
4878
+ })(CreateIntegrationBindingRequest || (CreateIntegrationBindingRequest = {}));
4879
+
4880
+ // src/models/CreateLogForwardingRequest.ts
4881
+ var CreateLogForwardingRequest;
4882
+ ((CreateLogForwardingRequest2) => {
4883
+ let provider_type;
4884
+ ((provider_type2) => {
4885
+ provider_type2["DATADOG"] = "datadog";
4886
+ provider_type2["SPLUNK"] = "splunk";
4887
+ provider_type2["SUMO_LOGIC"] = "sumo-logic";
4888
+ })(provider_type = CreateLogForwardingRequest2.provider_type || (CreateLogForwardingRequest2.provider_type = {}));
4889
+ })(CreateLogForwardingRequest || (CreateLogForwardingRequest = {}));
4890
+
4891
+ // src/models/CreateManualSyncRunRequest.ts
4892
+ var CreateManualSyncRunRequest;
4893
+ ((CreateManualSyncRunRequest2) => {
4894
+ let provider_type;
4895
+ ((provider_type2) => {
4896
+ provider_type2["GITHUB"] = "github";
4897
+ provider_type2["GITLAB"] = "gitlab";
4898
+ provider_type2["AWS_SSM"] = "aws-ssm";
4899
+ provider_type2["VERCEL"] = "vercel";
4900
+ provider_type2["GOOGLE_SECRET_MANAGER"] = "google-secret-manager";
4901
+ })(provider_type = CreateManualSyncRunRequest2.provider_type || (CreateManualSyncRunRequest2.provider_type = {}));
4902
+ })(CreateManualSyncRunRequest || (CreateManualSyncRunRequest = {}));
4903
+
4904
+ // src/models/CreateOidcProviderRequest.ts
4905
+ var CreateOidcProviderRequest;
4906
+ ((CreateOidcProviderRequest2) => {
4907
+ let provider_type;
4908
+ ((provider_type2) => {
4909
+ provider_type2["GITHUB_ACTIONS"] = "github_actions";
4910
+ provider_type2["GITLAB_CI"] = "gitlab_ci";
4911
+ provider_type2["KUBERNETES"] = "kubernetes";
4912
+ provider_type2["GENERIC"] = "generic";
4913
+ })(provider_type = CreateOidcProviderRequest2.provider_type || (CreateOidcProviderRequest2.provider_type = {}));
4914
+ })(CreateOidcProviderRequest || (CreateOidcProviderRequest = {}));
4915
+
4916
+ // src/models/CreateProviderConnectionRequest.ts
4917
+ var CreateProviderConnectionRequest;
4918
+ ((CreateProviderConnectionRequest2) => {
4919
+ let provider_type;
4920
+ ((provider_type2) => {
4921
+ provider_type2["GITHUB"] = "github";
4922
+ provider_type2["GITLAB"] = "gitlab";
4923
+ provider_type2["AWS_SSM"] = "aws-ssm";
4924
+ provider_type2["VERCEL"] = "vercel";
4925
+ provider_type2["GOOGLE_SECRET_MANAGER"] = "google-secret-manager";
4926
+ })(provider_type = CreateProviderConnectionRequest2.provider_type || (CreateProviderConnectionRequest2.provider_type = {}));
4927
+ let status;
4928
+ ((status2) => {
4929
+ status2["ACTIVE"] = "active";
4930
+ status2["INACTIVE"] = "inactive";
4931
+ status2["ERROR"] = "error";
4932
+ })(status = CreateProviderConnectionRequest2.status || (CreateProviderConnectionRequest2.status = {}));
4933
+ })(CreateProviderConnectionRequest || (CreateProviderConnectionRequest = {}));
4934
+
4935
+ // src/models/CreateRotationPolicyRequest.ts
4936
+ var CreateRotationPolicyRequest;
4937
+ ((CreateRotationPolicyRequest2) => {
4938
+ let engine_type;
4939
+ ((engine_type2) => {
4940
+ engine_type2["POSTGRES"] = "postgres";
4941
+ engine_type2["MYSQL"] = "mysql";
4942
+ engine_type2["AWS_IAM"] = "aws-iam";
4943
+ engine_type2["AZURE_SP"] = "azure-sp";
4944
+ engine_type2["GCP_SERVICE_ACCOUNT"] = "gcp-service-account";
4945
+ engine_type2["CLOUDFLARE_PAGES"] = "cloudflare-pages";
4946
+ engine_type2["SENDGRID"] = "sendgrid";
4947
+ engine_type2["TWILIO"] = "twilio";
4948
+ })(engine_type = CreateRotationPolicyRequest2.engine_type || (CreateRotationPolicyRequest2.engine_type = {}));
4949
+ })(CreateRotationPolicyRequest || (CreateRotationPolicyRequest = {}));
4950
+
4951
+ // src/models/CreateSamlProviderRequest.ts
4952
+ var CreateSamlProviderRequest;
4953
+ ((CreateSamlProviderRequest2) => {
4954
+ let provider_type;
4955
+ ((provider_type2) => {
4956
+ provider_type2["OKTA"] = "okta";
4957
+ provider_type2["ONELOGIN"] = "onelogin";
4958
+ provider_type2["AZURE_AD"] = "azure-ad";
4959
+ provider_type2["GOOGLE_WORKSPACE"] = "google-workspace";
4960
+ provider_type2["DUO"] = "duo";
4961
+ provider_type2["RIPPLING"] = "rippling";
4962
+ provider_type2["ORACLE"] = "oracle";
4963
+ provider_type2["PING_IDENTITY"] = "ping-identity";
4964
+ })(provider_type = CreateSamlProviderRequest2.provider_type || (CreateSamlProviderRequest2.provider_type = {}));
4965
+ })(CreateSamlProviderRequest || (CreateSamlProviderRequest = {}));
4966
+
3501
4967
  // src/models/CreateWebhookRequest.ts
3502
4968
  var CreateWebhookRequest;
3503
4969
  ((CreateWebhookRequest2) => {
@@ -3521,6 +4987,18 @@ var CreateWebhookRequest;
3521
4987
  })(linked_to = CreateWebhookRequest2.linked_to || (CreateWebhookRequest2.linked_to = {}));
3522
4988
  })(CreateWebhookRequest || (CreateWebhookRequest = {}));
3523
4989
 
4990
+ // src/models/DynamicSecretEngineResponse.ts
4991
+ var DynamicSecretEngineResponse;
4992
+ ((DynamicSecretEngineResponse2) => {
4993
+ let engine_type;
4994
+ ((engine_type2) => {
4995
+ engine_type2["POSTGRES"] = "postgres";
4996
+ engine_type2["MYSQL"] = "mysql";
4997
+ engine_type2["AWS_IAM"] = "aws-iam";
4998
+ engine_type2["AZURE_SP"] = "azure-sp";
4999
+ })(engine_type = DynamicSecretEngineResponse2.engine_type || (DynamicSecretEngineResponse2.engine_type = {}));
5000
+ })(DynamicSecretEngineResponse || (DynamicSecretEngineResponse = {}));
5001
+
3524
5002
  // src/models/EffectiveAccessEntry.ts
3525
5003
  var EffectiveAccessEntry;
3526
5004
  ((EffectiveAccessEntry2) => {
@@ -3550,6 +5028,19 @@ var EffectiveAccessEntry;
3550
5028
  })(team_relation = EffectiveAccessEntry2.team_relation || (EffectiveAccessEntry2.team_relation = {}));
3551
5029
  })(EffectiveAccessEntry || (EffectiveAccessEntry = {}));
3552
5030
 
5031
+ // src/models/EnterpriseProviderProfile.ts
5032
+ var EnterpriseProviderProfile;
5033
+ ((EnterpriseProviderProfile2) => {
5034
+ let id;
5035
+ ((id2) => {
5036
+ id2["GITHUB"] = "github";
5037
+ id2["GITLAB"] = "gitlab";
5038
+ id2["AWS_SSM"] = "aws-ssm";
5039
+ id2["VERCEL"] = "vercel";
5040
+ id2["GOOGLE_SECRET_MANAGER"] = "google-secret-manager";
5041
+ })(id = EnterpriseProviderProfile2.id || (EnterpriseProviderProfile2.id = {}));
5042
+ })(EnterpriseProviderProfile || (EnterpriseProviderProfile = {}));
5043
+
3553
5044
  // src/models/ExportEnvRequest.ts
3554
5045
  var ExportEnvRequest;
3555
5046
  ((ExportEnvRequest2) => {
@@ -3611,6 +5102,19 @@ var GrantEntry;
3611
5102
  })(relation = GrantEntry2.relation || (GrantEntry2.relation = {}));
3612
5103
  })(GrantEntry || (GrantEntry = {}));
3613
5104
 
5105
+ // src/models/IntegrationBinding.ts
5106
+ var IntegrationBinding;
5107
+ ((IntegrationBinding2) => {
5108
+ let provider_type;
5109
+ ((provider_type2) => {
5110
+ provider_type2["GITHUB"] = "github";
5111
+ provider_type2["GITLAB"] = "gitlab";
5112
+ provider_type2["AWS_SSM"] = "aws-ssm";
5113
+ provider_type2["VERCEL"] = "vercel";
5114
+ provider_type2["GOOGLE_SECRET_MANAGER"] = "google-secret-manager";
5115
+ })(provider_type = IntegrationBinding2.provider_type || (IntegrationBinding2.provider_type = {}));
5116
+ })(IntegrationBinding || (IntegrationBinding = {}));
5117
+
3614
5118
  // src/models/LicenseState.ts
3615
5119
  var LicenseState;
3616
5120
  ((LicenseState2) => {
@@ -3631,6 +5135,48 @@ var LicenseState;
3631
5135
  })(validation_mode = LicenseState2.validation_mode || (LicenseState2.validation_mode = {}));
3632
5136
  })(LicenseState || (LicenseState = {}));
3633
5137
 
5138
+ // src/models/LogForwardingResponse.ts
5139
+ var LogForwardingResponse;
5140
+ ((LogForwardingResponse2) => {
5141
+ let provider_type;
5142
+ ((provider_type2) => {
5143
+ provider_type2["DATADOG"] = "datadog";
5144
+ provider_type2["SPLUNK"] = "splunk";
5145
+ provider_type2["SUMO_LOGIC"] = "sumo-logic";
5146
+ })(provider_type = LogForwardingResponse2.provider_type || (LogForwardingResponse2.provider_type = {}));
5147
+ })(LogForwardingResponse || (LogForwardingResponse = {}));
5148
+
5149
+ // src/models/OidcProviderResponse.ts
5150
+ var OidcProviderResponse;
5151
+ ((OidcProviderResponse2) => {
5152
+ let provider_type;
5153
+ ((provider_type2) => {
5154
+ provider_type2["GITHUB_ACTIONS"] = "github_actions";
5155
+ provider_type2["GITLAB_CI"] = "gitlab_ci";
5156
+ provider_type2["KUBERNETES"] = "kubernetes";
5157
+ provider_type2["GENERIC"] = "generic";
5158
+ })(provider_type = OidcProviderResponse2.provider_type || (OidcProviderResponse2.provider_type = {}));
5159
+ })(OidcProviderResponse || (OidcProviderResponse = {}));
5160
+
5161
+ // src/models/ProviderConnection.ts
5162
+ var ProviderConnection;
5163
+ ((ProviderConnection2) => {
5164
+ let provider_type;
5165
+ ((provider_type2) => {
5166
+ provider_type2["GITHUB"] = "github";
5167
+ provider_type2["GITLAB"] = "gitlab";
5168
+ provider_type2["AWS_SSM"] = "aws-ssm";
5169
+ provider_type2["VERCEL"] = "vercel";
5170
+ provider_type2["GOOGLE_SECRET_MANAGER"] = "google-secret-manager";
5171
+ })(provider_type = ProviderConnection2.provider_type || (ProviderConnection2.provider_type = {}));
5172
+ let status;
5173
+ ((status2) => {
5174
+ status2["ACTIVE"] = "active";
5175
+ status2["INACTIVE"] = "inactive";
5176
+ status2["ERROR"] = "error";
5177
+ })(status = ProviderConnection2.status || (ProviderConnection2.status = {}));
5178
+ })(ProviderConnection || (ProviderConnection = {}));
5179
+
3634
5180
  // src/models/RevokeAccessRequest.ts
3635
5181
  var RevokeAccessRequest;
3636
5182
  ((RevokeAccessRequest2) => {
@@ -3659,6 +5205,38 @@ var RotateGpgKeyRequest;
3659
5205
  })(algorithm = RotateGpgKeyRequest2.algorithm || (RotateGpgKeyRequest2.algorithm = {}));
3660
5206
  })(RotateGpgKeyRequest || (RotateGpgKeyRequest = {}));
3661
5207
 
5208
+ // src/models/RotationPolicyResponse.ts
5209
+ var RotationPolicyResponse;
5210
+ ((RotationPolicyResponse2) => {
5211
+ let engine_type;
5212
+ ((engine_type2) => {
5213
+ engine_type2["POSTGRES"] = "postgres";
5214
+ engine_type2["MYSQL"] = "mysql";
5215
+ engine_type2["AWS_IAM"] = "aws-iam";
5216
+ engine_type2["AZURE_SP"] = "azure-sp";
5217
+ engine_type2["GCP_SERVICE_ACCOUNT"] = "gcp-service-account";
5218
+ engine_type2["CLOUDFLARE_PAGES"] = "cloudflare-pages";
5219
+ engine_type2["SENDGRID"] = "sendgrid";
5220
+ engine_type2["TWILIO"] = "twilio";
5221
+ })(engine_type = RotationPolicyResponse2.engine_type || (RotationPolicyResponse2.engine_type = {}));
5222
+ })(RotationPolicyResponse || (RotationPolicyResponse = {}));
5223
+
5224
+ // src/models/SamlProviderResponse.ts
5225
+ var SamlProviderResponse;
5226
+ ((SamlProviderResponse2) => {
5227
+ let provider_type;
5228
+ ((provider_type2) => {
5229
+ provider_type2["OKTA"] = "okta";
5230
+ provider_type2["ONELOGIN"] = "onelogin";
5231
+ provider_type2["AZURE_AD"] = "azure-ad";
5232
+ provider_type2["GOOGLE_WORKSPACE"] = "google-workspace";
5233
+ provider_type2["DUO"] = "duo";
5234
+ provider_type2["RIPPLING"] = "rippling";
5235
+ provider_type2["ORACLE"] = "oracle";
5236
+ provider_type2["PING_IDENTITY"] = "ping-identity";
5237
+ })(provider_type = SamlProviderResponse2.provider_type || (SamlProviderResponse2.provider_type = {}));
5238
+ })(SamlProviderResponse || (SamlProviderResponse = {}));
5239
+
3662
5240
  // src/models/SecretVariableRollbackResponse.ts
3663
5241
  var SecretVariableRollbackResponse;
3664
5242
  ((SecretVariableRollbackResponse2) => {
@@ -3670,6 +5248,21 @@ var SecretVariableRollbackResponse;
3670
5248
  })(operation = SecretVariableRollbackResponse2.operation || (SecretVariableRollbackResponse2.operation = {}));
3671
5249
  })(SecretVariableRollbackResponse || (SecretVariableRollbackResponse = {}));
3672
5250
 
5251
+ // src/models/SetupStatusResponse.ts
5252
+ var SetupStatusResponse;
5253
+ ((SetupStatusResponse2) => {
5254
+ let deployment_mode;
5255
+ ((deployment_mode2) => {
5256
+ deployment_mode2["HOSTED"] = "hosted";
5257
+ deployment_mode2["SELFHOSTED"] = "selfhosted";
5258
+ })(deployment_mode = SetupStatusResponse2.deployment_mode || (SetupStatusResponse2.deployment_mode = {}));
5259
+ let edition;
5260
+ ((edition2) => {
5261
+ edition2["OSS"] = "oss";
5262
+ edition2["ENTERPRISE"] = "enterprise";
5263
+ })(edition = SetupStatusResponse2.edition || (SetupStatusResponse2.edition = {}));
5264
+ })(SetupStatusResponse || (SetupStatusResponse = {}));
5265
+
3673
5266
  // src/models/SignDataRequest.ts
3674
5267
  var SignDataRequest;
3675
5268
  ((SignDataRequest2) => {
@@ -3681,6 +5274,45 @@ var SignDataRequest;
3681
5274
  })(mode = SignDataRequest2.mode || (SignDataRequest2.mode = {}));
3682
5275
  })(SignDataRequest || (SignDataRequest = {}));
3683
5276
 
5277
+ // src/models/SyncAuditEvent.ts
5278
+ var SyncAuditEvent;
5279
+ ((SyncAuditEvent2) => {
5280
+ let provider_type;
5281
+ ((provider_type2) => {
5282
+ provider_type2["GITHUB"] = "github";
5283
+ provider_type2["GITLAB"] = "gitlab";
5284
+ provider_type2["AWS_SSM"] = "aws-ssm";
5285
+ provider_type2["VERCEL"] = "vercel";
5286
+ provider_type2["GOOGLE_SECRET_MANAGER"] = "google-secret-manager";
5287
+ })(provider_type = SyncAuditEvent2.provider_type || (SyncAuditEvent2.provider_type = {}));
5288
+ let result;
5289
+ ((result2) => {
5290
+ result2["INFO"] = "info";
5291
+ result2["SUCCESS"] = "success";
5292
+ result2["ERROR"] = "error";
5293
+ })(result = SyncAuditEvent2.result || (SyncAuditEvent2.result = {}));
5294
+ })(SyncAuditEvent || (SyncAuditEvent = {}));
5295
+
5296
+ // src/models/SyncRun.ts
5297
+ var SyncRun;
5298
+ ((SyncRun2) => {
5299
+ let provider_type;
5300
+ ((provider_type2) => {
5301
+ provider_type2["GITHUB"] = "github";
5302
+ provider_type2["GITLAB"] = "gitlab";
5303
+ provider_type2["AWS_SSM"] = "aws-ssm";
5304
+ provider_type2["VERCEL"] = "vercel";
5305
+ provider_type2["GOOGLE_SECRET_MANAGER"] = "google-secret-manager";
5306
+ })(provider_type = SyncRun2.provider_type || (SyncRun2.provider_type = {}));
5307
+ let status;
5308
+ ((status2) => {
5309
+ status2["PENDING"] = "pending";
5310
+ status2["RUNNING"] = "running";
5311
+ status2["SUCCEEDED"] = "succeeded";
5312
+ status2["FAILED"] = "failed";
5313
+ })(status = SyncRun2.status || (SyncRun2.status = {}));
5314
+ })(SyncRun || (SyncRun = {}));
5315
+
3684
5316
  // src/models/SystemStatusState.ts
3685
5317
  var SystemStatusState;
3686
5318
  ((SystemStatusState2) => {
@@ -3689,8 +5321,24 @@ var SystemStatusState;
3689
5321
  edition2["OSS"] = "oss";
3690
5322
  edition2["ENTERPRISE"] = "enterprise";
3691
5323
  })(edition = SystemStatusState2.edition || (SystemStatusState2.edition = {}));
5324
+ let deployment_mode;
5325
+ ((deployment_mode2) => {
5326
+ deployment_mode2["HOSTED"] = "hosted";
5327
+ deployment_mode2["SELFHOSTED"] = "selfhosted";
5328
+ })(deployment_mode = SystemStatusState2.deployment_mode || (SystemStatusState2.deployment_mode = {}));
3692
5329
  })(SystemStatusState || (SystemStatusState = {}));
3693
5330
 
5331
+ // src/models/UpdateProviderConnectionRequest.ts
5332
+ var UpdateProviderConnectionRequest;
5333
+ ((UpdateProviderConnectionRequest2) => {
5334
+ let status;
5335
+ ((status2) => {
5336
+ status2["ACTIVE"] = "active";
5337
+ status2["INACTIVE"] = "inactive";
5338
+ status2["ERROR"] = "error";
5339
+ })(status = UpdateProviderConnectionRequest2.status || (UpdateProviderConnectionRequest2.status = {}));
5340
+ })(UpdateProviderConnectionRequest || (UpdateProviderConnectionRequest = {}));
5341
+
3694
5342
  // src/models/UpdateTrustLevelRequest.ts
3695
5343
  var UpdateTrustLevelRequest;
3696
5344
  ((UpdateTrustLevelRequest2) => {
@@ -3774,8 +5422,20 @@ var WebhookResponse;
3774
5422
  CertificatesService,
3775
5423
  ChangeRequestResponse,
3776
5424
  ChangeRequestsService,
5425
+ CreateDynamicSecretEngineRequest,
5426
+ CreateIntegrationBindingRequest,
5427
+ CreateLogForwardingRequest,
5428
+ CreateManualSyncRunRequest,
5429
+ CreateOidcProviderRequest,
5430
+ CreateProviderConnectionRequest,
5431
+ CreateRotationPolicyRequest,
5432
+ CreateSamlProviderRequest,
3777
5433
  CreateWebhookRequest,
5434
+ DynamicSecretEngineResponse,
5435
+ DynamicSecretsService,
3778
5436
  EffectiveAccessEntry,
5437
+ EnterpriseProviderProfile,
5438
+ EnterpriseService,
3779
5439
  EnvSyncAPISDK,
3780
5440
  EnvironmentTypesService,
3781
5441
  EnvironmentVariablesPointInTimeService,
@@ -3787,23 +5447,40 @@ var WebhookResponse;
3787
5447
  GpgKeysService,
3788
5448
  GrantAccessRequest,
3789
5449
  GrantEntry,
5450
+ IntegrationBinding,
5451
+ LicenseService,
3790
5452
  LicenseState,
5453
+ LogForwardingResponse,
5454
+ LogForwardingService,
5455
+ OidcProviderResponse,
5456
+ OidcProvidersService,
3791
5457
  OnboardingService,
3792
5458
  OpenAPI,
3793
5459
  OrganizationsService,
3794
5460
  PermissionsService,
5461
+ ProviderConnection,
3795
5462
  RevokeAccessRequest,
3796
5463
  RolesService,
3797
5464
  RotateGpgKeyRequest,
5465
+ RotationPolicyResponse,
5466
+ RotationService,
5467
+ SamlProviderResponse,
5468
+ SamlProvidersService,
5469
+ SamlSsoService,
3798
5470
  SecretVariableRollbackResponse,
3799
5471
  SecretsPointInTimeService,
3800
5472
  SecretsRollbackService,
3801
5473
  SecretsService,
3802
5474
  ServiceTokensService,
5475
+ SetupService,
5476
+ SetupStatusResponse,
3803
5477
  SignDataRequest,
5478
+ SyncAuditEvent,
5479
+ SyncRun,
3804
5480
  SystemService,
3805
5481
  SystemStatusState,
3806
5482
  TeamsService,
5483
+ UpdateProviderConnectionRequest,
3807
5484
  UpdateTrustLevelRequest,
3808
5485
  UpdateWebhookRequest,
3809
5486
  UsersService,