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

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