@terrantula/sdk 0.0.2 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{audit-export-BJSNZ9ic.d.mts → audit-export-BtZTnt8a.d.mts} +51 -1
- package/dist/{audit-export-BJSNZ9ic.d.ts → audit-export-BtZTnt8a.d.ts} +51 -1
- package/dist/{chunk-NTU2AEMP.mjs → chunk-WYOV3M2X.mjs} +204 -5
- package/dist/index.d.mts +615 -6
- package/dist/index.d.ts +615 -6
- package/dist/index.js +204 -5
- package/dist/index.mjs +1 -1
- package/dist/local.d.mts +308 -3
- package/dist/local.d.ts +308 -3
- package/dist/local.js +204 -5
- package/dist/local.mjs +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { S as SnapshotOp, T as TokenSource, a as SchemaFn, A as AuditExportConfigResponse, b as TestConnectionResponse, c as AuditExportRunResponse, E as ExportCatalogResult } from './audit-export-
|
|
2
|
-
export {
|
|
1
|
+
import { S as SnapshotOp, T as TokenSource, a as SchemaFn, A as AuditExportConfigResponse, b as TestConnectionResponse, c as AuditExportRunResponse, E as ExportCatalogResult, d as AdminAuditListResponse, e as AdminOrgListResponse, f as AdminOrgDetail, g as AdminSuspendResponse } from './audit-export-BtZTnt8a.js';
|
|
2
|
+
export { h as AdminAuditEvent, i as AdminOrgMember, j as AdminOrgProject, k as AdminOrgSummary, l as TerrantulaError, w as withSchema } from './audit-export-BtZTnt8a.js';
|
|
3
|
+
import * as _terrantula_types from '@terrantula/types';
|
|
3
4
|
import * as zod from 'zod';
|
|
4
5
|
import * as hono_hono_base from 'hono/hono-base';
|
|
5
6
|
import * as hono_utils_types from 'hono/utils/types';
|
|
6
7
|
import * as hono_utils_http_status from 'hono/utils/http-status';
|
|
7
8
|
import * as hono_types from 'hono/types';
|
|
8
|
-
import * as _terrantula_types from '@terrantula/types';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* Hono context variables shared across the app.
|
|
@@ -75,6 +75,12 @@ type AppVariables = {
|
|
|
75
75
|
* ignored (no scoping).
|
|
76
76
|
*/
|
|
77
77
|
cellKey?: string | null;
|
|
78
|
+
/**
|
|
79
|
+
* Set by requireSuperAdmin middleware. True when the authenticated user
|
|
80
|
+
* has role='admin' (control-plane super-admin). Never set to false —
|
|
81
|
+
* absence means the check has not run or the user is not an admin.
|
|
82
|
+
*/
|
|
83
|
+
isSuperAdmin?: boolean;
|
|
78
84
|
};
|
|
79
85
|
|
|
80
86
|
/**
|
|
@@ -512,6 +518,8 @@ declare const projectApp: hono_hono_base.HonoBase<{
|
|
|
512
518
|
updatedAt: string;
|
|
513
519
|
projectId: string | null;
|
|
514
520
|
envId: string;
|
|
521
|
+
deletionScheduledAt: string | null;
|
|
522
|
+
deletionGracePeriodSeconds: number | null;
|
|
515
523
|
}[];
|
|
516
524
|
outputFormat: "json";
|
|
517
525
|
status: hono_utils_http_status.ContentfulStatusCode;
|
|
@@ -1129,6 +1137,8 @@ declare const projectApp: hono_hono_base.HonoBase<{
|
|
|
1129
1137
|
updatedAt: string;
|
|
1130
1138
|
projectId: string | null;
|
|
1131
1139
|
envId: string;
|
|
1140
|
+
deletionScheduledAt: string | null;
|
|
1141
|
+
deletionGracePeriodSeconds: number | null;
|
|
1132
1142
|
}[];
|
|
1133
1143
|
outputFormat: "json";
|
|
1134
1144
|
status: hono_utils_http_status.ContentfulStatusCode;
|
|
@@ -1167,6 +1177,8 @@ declare const projectApp: hono_hono_base.HonoBase<{
|
|
|
1167
1177
|
relationshipTypeName: string;
|
|
1168
1178
|
fromEntityId: string;
|
|
1169
1179
|
toEntityId: string;
|
|
1180
|
+
deletionScheduledAt: string | null;
|
|
1181
|
+
deletionGracePeriodSeconds: number | null;
|
|
1170
1182
|
};
|
|
1171
1183
|
outputFormat: "json";
|
|
1172
1184
|
status: 201;
|
|
@@ -1192,6 +1204,8 @@ declare const projectApp: hono_hono_base.HonoBase<{
|
|
|
1192
1204
|
updatedAt: string;
|
|
1193
1205
|
projectId: string | null;
|
|
1194
1206
|
envId: string;
|
|
1207
|
+
deletionScheduledAt: string | null;
|
|
1208
|
+
deletionGracePeriodSeconds: number | null;
|
|
1195
1209
|
};
|
|
1196
1210
|
outputFormat: "json";
|
|
1197
1211
|
status: hono_utils_http_status.ContentfulStatusCode;
|
|
@@ -1238,6 +1252,8 @@ declare const projectApp: hono_hono_base.HonoBase<{
|
|
|
1238
1252
|
updatedAt: string;
|
|
1239
1253
|
projectId: string | null;
|
|
1240
1254
|
envId: string;
|
|
1255
|
+
deletionScheduledAt: string | null;
|
|
1256
|
+
deletionGracePeriodSeconds: number | null;
|
|
1241
1257
|
};
|
|
1242
1258
|
outputFormat: "json";
|
|
1243
1259
|
status: hono_utils_http_status.ContentfulStatusCode;
|
|
@@ -1284,6 +1300,40 @@ declare const projectApp: hono_hono_base.HonoBase<{
|
|
|
1284
1300
|
updatedAt: string;
|
|
1285
1301
|
projectId: string | null;
|
|
1286
1302
|
envId: string;
|
|
1303
|
+
deletionScheduledAt: string | null;
|
|
1304
|
+
deletionGracePeriodSeconds: number | null;
|
|
1305
|
+
};
|
|
1306
|
+
outputFormat: "json";
|
|
1307
|
+
status: hono_utils_http_status.ContentfulStatusCode;
|
|
1308
|
+
};
|
|
1309
|
+
};
|
|
1310
|
+
} & {
|
|
1311
|
+
"/:id/finalize-deletion": {
|
|
1312
|
+
$post: {
|
|
1313
|
+
input: {
|
|
1314
|
+
json?: any;
|
|
1315
|
+
query?: {
|
|
1316
|
+
[x: string]: string | string[];
|
|
1317
|
+
} | undefined;
|
|
1318
|
+
} & {
|
|
1319
|
+
param: {
|
|
1320
|
+
id: string;
|
|
1321
|
+
};
|
|
1322
|
+
};
|
|
1323
|
+
output: {
|
|
1324
|
+
id: string;
|
|
1325
|
+
relationshipTypeName: string;
|
|
1326
|
+
fromEntityId: string;
|
|
1327
|
+
toEntityId: string;
|
|
1328
|
+
state: string;
|
|
1329
|
+
properties: hono_utils_types.JSONValue;
|
|
1330
|
+
labels: hono_utils_types.JSONValue;
|
|
1331
|
+
createdAt: string;
|
|
1332
|
+
updatedAt: string;
|
|
1333
|
+
projectId: string | null;
|
|
1334
|
+
envId: string;
|
|
1335
|
+
deletionScheduledAt: string | null;
|
|
1336
|
+
deletionGracePeriodSeconds: number | null;
|
|
1287
1337
|
};
|
|
1288
1338
|
outputFormat: "json";
|
|
1289
1339
|
status: hono_utils_http_status.ContentfulStatusCode;
|
|
@@ -1620,6 +1670,7 @@ declare const projectApp: hono_hono_base.HonoBase<{
|
|
|
1620
1670
|
itemCount: number;
|
|
1621
1671
|
deletionCount: number;
|
|
1622
1672
|
force: boolean;
|
|
1673
|
+
version: number;
|
|
1623
1674
|
}[];
|
|
1624
1675
|
outputFormat: "json";
|
|
1625
1676
|
status: hono_utils_http_status.ContentfulStatusCode;
|
|
@@ -4451,6 +4502,255 @@ declare const projectApp: hono_hono_base.HonoBase<{
|
|
|
4451
4502
|
};
|
|
4452
4503
|
};
|
|
4453
4504
|
}, "/stats"> | hono_types.MergeSchemaPath<{
|
|
4505
|
+
"/": {
|
|
4506
|
+
$get: {
|
|
4507
|
+
input: {};
|
|
4508
|
+
output: {
|
|
4509
|
+
id: string;
|
|
4510
|
+
projectId: string | null;
|
|
4511
|
+
envId: string;
|
|
4512
|
+
sourceKind: string;
|
|
4513
|
+
sourceUri: string;
|
|
4514
|
+
reconciliationPolicy: string;
|
|
4515
|
+
lastScannedAt: string | null;
|
|
4516
|
+
lastScanStatus: string | null;
|
|
4517
|
+
lastScanSummary: hono_utils_types.JSONValue;
|
|
4518
|
+
createdAt: string;
|
|
4519
|
+
updatedAt: string;
|
|
4520
|
+
}[];
|
|
4521
|
+
outputFormat: "json";
|
|
4522
|
+
status: hono_utils_http_status.ContentfulStatusCode;
|
|
4523
|
+
};
|
|
4524
|
+
};
|
|
4525
|
+
} & {
|
|
4526
|
+
"/": {
|
|
4527
|
+
$post: {
|
|
4528
|
+
input: {
|
|
4529
|
+
json?: any;
|
|
4530
|
+
query?: {
|
|
4531
|
+
[x: string]: string | string[];
|
|
4532
|
+
} | undefined;
|
|
4533
|
+
};
|
|
4534
|
+
output: {
|
|
4535
|
+
id: string;
|
|
4536
|
+
projectId: string | null;
|
|
4537
|
+
envId: string;
|
|
4538
|
+
sourceKind: string;
|
|
4539
|
+
sourceUri: string;
|
|
4540
|
+
reconciliationPolicy: string;
|
|
4541
|
+
lastScannedAt: string | null;
|
|
4542
|
+
lastScanStatus: string | null;
|
|
4543
|
+
lastScanSummary: hono_utils_types.JSONValue;
|
|
4544
|
+
createdAt: string;
|
|
4545
|
+
updatedAt: string;
|
|
4546
|
+
};
|
|
4547
|
+
outputFormat: "json";
|
|
4548
|
+
status: 200;
|
|
4549
|
+
} | {
|
|
4550
|
+
input: {
|
|
4551
|
+
json?: any;
|
|
4552
|
+
query?: {
|
|
4553
|
+
[x: string]: string | string[];
|
|
4554
|
+
} | undefined;
|
|
4555
|
+
};
|
|
4556
|
+
output: {
|
|
4557
|
+
id: string;
|
|
4558
|
+
createdAt: string;
|
|
4559
|
+
updatedAt: string;
|
|
4560
|
+
projectId: string | null;
|
|
4561
|
+
envId: string;
|
|
4562
|
+
sourceKind: string;
|
|
4563
|
+
sourceUri: string;
|
|
4564
|
+
reconciliationPolicy: string;
|
|
4565
|
+
lastScannedAt: string | null;
|
|
4566
|
+
lastScanStatus: string | null;
|
|
4567
|
+
lastScanSummary: hono_utils_types.JSONValue;
|
|
4568
|
+
};
|
|
4569
|
+
outputFormat: "json";
|
|
4570
|
+
status: 201;
|
|
4571
|
+
};
|
|
4572
|
+
};
|
|
4573
|
+
} & {
|
|
4574
|
+
"/:id/drift": {
|
|
4575
|
+
$get: {
|
|
4576
|
+
input: {
|
|
4577
|
+
param: {
|
|
4578
|
+
id: string;
|
|
4579
|
+
};
|
|
4580
|
+
};
|
|
4581
|
+
output: {
|
|
4582
|
+
source: {
|
|
4583
|
+
id: string;
|
|
4584
|
+
projectId: string | null;
|
|
4585
|
+
envId: string;
|
|
4586
|
+
sourceKind: string;
|
|
4587
|
+
sourceUri: string;
|
|
4588
|
+
reconciliationPolicy: string;
|
|
4589
|
+
lastScannedAt: string | null;
|
|
4590
|
+
lastScanStatus: string | null;
|
|
4591
|
+
lastScanSummary: hono_utils_types.JSONValue;
|
|
4592
|
+
createdAt: string;
|
|
4593
|
+
updatedAt: string;
|
|
4594
|
+
};
|
|
4595
|
+
totals: {
|
|
4596
|
+
entities: number;
|
|
4597
|
+
current: number;
|
|
4598
|
+
stale: number;
|
|
4599
|
+
missing: number;
|
|
4600
|
+
pendingProposals: number;
|
|
4601
|
+
};
|
|
4602
|
+
entities: {
|
|
4603
|
+
id: string;
|
|
4604
|
+
name: string;
|
|
4605
|
+
entityType: string;
|
|
4606
|
+
lastSyncedAt: string | null;
|
|
4607
|
+
driftStatus: _terrantula_types.DriftStatus | null;
|
|
4608
|
+
}[];
|
|
4609
|
+
pendingProposals: {
|
|
4610
|
+
id: string;
|
|
4611
|
+
importSourceId: string;
|
|
4612
|
+
projectId: string | null;
|
|
4613
|
+
envId: string;
|
|
4614
|
+
entityId: string;
|
|
4615
|
+
proposedChanges: hono_utils_types.JSONValue;
|
|
4616
|
+
status: string;
|
|
4617
|
+
createdAt: string;
|
|
4618
|
+
decidedAt: string | null;
|
|
4619
|
+
decidedBy: string | null;
|
|
4620
|
+
}[];
|
|
4621
|
+
};
|
|
4622
|
+
outputFormat: "json";
|
|
4623
|
+
status: hono_utils_http_status.ContentfulStatusCode;
|
|
4624
|
+
};
|
|
4625
|
+
};
|
|
4626
|
+
} & {
|
|
4627
|
+
"/:id": {
|
|
4628
|
+
$get: {
|
|
4629
|
+
input: {
|
|
4630
|
+
param: {
|
|
4631
|
+
id: string;
|
|
4632
|
+
};
|
|
4633
|
+
};
|
|
4634
|
+
output: {
|
|
4635
|
+
id: string;
|
|
4636
|
+
projectId: string | null;
|
|
4637
|
+
envId: string;
|
|
4638
|
+
sourceKind: string;
|
|
4639
|
+
sourceUri: string;
|
|
4640
|
+
reconciliationPolicy: string;
|
|
4641
|
+
lastScannedAt: string | null;
|
|
4642
|
+
lastScanStatus: string | null;
|
|
4643
|
+
lastScanSummary: hono_utils_types.JSONValue;
|
|
4644
|
+
createdAt: string;
|
|
4645
|
+
updatedAt: string;
|
|
4646
|
+
};
|
|
4647
|
+
outputFormat: "json";
|
|
4648
|
+
status: hono_utils_http_status.ContentfulStatusCode;
|
|
4649
|
+
};
|
|
4650
|
+
};
|
|
4651
|
+
} & {
|
|
4652
|
+
"/:id/rescan": {
|
|
4653
|
+
$post: {
|
|
4654
|
+
input: {
|
|
4655
|
+
json?: any;
|
|
4656
|
+
query?: {
|
|
4657
|
+
[x: string]: string | string[];
|
|
4658
|
+
} | undefined;
|
|
4659
|
+
} & {
|
|
4660
|
+
param: {
|
|
4661
|
+
id: string;
|
|
4662
|
+
};
|
|
4663
|
+
};
|
|
4664
|
+
output: {
|
|
4665
|
+
scan: {
|
|
4666
|
+
scanned: any;
|
|
4667
|
+
succeeded: number;
|
|
4668
|
+
failed: number;
|
|
4669
|
+
proposalsCreated: number;
|
|
4670
|
+
};
|
|
4671
|
+
lastScannedAt: string;
|
|
4672
|
+
lastScanStatus: string;
|
|
4673
|
+
};
|
|
4674
|
+
outputFormat: "json";
|
|
4675
|
+
status: hono_utils_http_status.ContentfulStatusCode;
|
|
4676
|
+
} | {
|
|
4677
|
+
input: {
|
|
4678
|
+
json?: any;
|
|
4679
|
+
query?: {
|
|
4680
|
+
[x: string]: string | string[];
|
|
4681
|
+
} | undefined;
|
|
4682
|
+
} & {
|
|
4683
|
+
param: {
|
|
4684
|
+
id: string;
|
|
4685
|
+
};
|
|
4686
|
+
};
|
|
4687
|
+
output: {
|
|
4688
|
+
scan: {
|
|
4689
|
+
scanned: any;
|
|
4690
|
+
created: number;
|
|
4691
|
+
failed: number;
|
|
4692
|
+
proposalsCreated: number;
|
|
4693
|
+
};
|
|
4694
|
+
lastScannedAt: string;
|
|
4695
|
+
lastScanStatus: string;
|
|
4696
|
+
};
|
|
4697
|
+
outputFormat: "json";
|
|
4698
|
+
status: hono_utils_http_status.ContentfulStatusCode;
|
|
4699
|
+
};
|
|
4700
|
+
};
|
|
4701
|
+
} & {
|
|
4702
|
+
"/:id/drift-proposals/:proposalId/approve": {
|
|
4703
|
+
$post: {
|
|
4704
|
+
input: {
|
|
4705
|
+
param: {
|
|
4706
|
+
id: string;
|
|
4707
|
+
} & {
|
|
4708
|
+
proposalId: string;
|
|
4709
|
+
};
|
|
4710
|
+
};
|
|
4711
|
+
output: {
|
|
4712
|
+
id: string;
|
|
4713
|
+
importSourceId: string;
|
|
4714
|
+
projectId: string | null;
|
|
4715
|
+
envId: string;
|
|
4716
|
+
entityId: string;
|
|
4717
|
+
proposedChanges: hono_utils_types.JSONValue;
|
|
4718
|
+
status: string;
|
|
4719
|
+
createdAt: string;
|
|
4720
|
+
decidedAt: string | null;
|
|
4721
|
+
decidedBy: string | null;
|
|
4722
|
+
};
|
|
4723
|
+
outputFormat: "json";
|
|
4724
|
+
status: hono_utils_http_status.ContentfulStatusCode;
|
|
4725
|
+
};
|
|
4726
|
+
};
|
|
4727
|
+
} & {
|
|
4728
|
+
"/:id/drift-proposals/:proposalId/reject": {
|
|
4729
|
+
$post: {
|
|
4730
|
+
input: {
|
|
4731
|
+
param: {
|
|
4732
|
+
id: string;
|
|
4733
|
+
} & {
|
|
4734
|
+
proposalId: string;
|
|
4735
|
+
};
|
|
4736
|
+
};
|
|
4737
|
+
output: {
|
|
4738
|
+
id: string;
|
|
4739
|
+
importSourceId: string;
|
|
4740
|
+
projectId: string | null;
|
|
4741
|
+
envId: string;
|
|
4742
|
+
entityId: string;
|
|
4743
|
+
proposedChanges: hono_utils_types.JSONValue;
|
|
4744
|
+
status: string;
|
|
4745
|
+
createdAt: string;
|
|
4746
|
+
decidedAt: string | null;
|
|
4747
|
+
decidedBy: string | null;
|
|
4748
|
+
};
|
|
4749
|
+
outputFormat: "json";
|
|
4750
|
+
status: hono_utils_http_status.ContentfulStatusCode;
|
|
4751
|
+
};
|
|
4752
|
+
};
|
|
4753
|
+
}, "/import-sources"> | hono_types.MergeSchemaPath<{
|
|
4454
4754
|
"/github": {
|
|
4455
4755
|
$post: {
|
|
4456
4756
|
input: {};
|
|
@@ -4517,6 +4817,7 @@ declare function _cloudAppShape(): hono_hono_base.HonoBase<hono_types.BlankEnv,
|
|
|
4517
4817
|
deletedAt: string | null;
|
|
4518
4818
|
logo: string | null;
|
|
4519
4819
|
metadata: string | null;
|
|
4820
|
+
suspendedAt: string | null;
|
|
4520
4821
|
};
|
|
4521
4822
|
outputFormat: "json";
|
|
4522
4823
|
status: 201;
|
|
@@ -4549,6 +4850,7 @@ declare function _cloudAppShape(): hono_hono_base.HonoBase<hono_types.BlankEnv,
|
|
|
4549
4850
|
createdAt: string;
|
|
4550
4851
|
metadata: string | null;
|
|
4551
4852
|
deletedAt: string | null;
|
|
4853
|
+
suspendedAt: string | null;
|
|
4552
4854
|
};
|
|
4553
4855
|
outputFormat: "json";
|
|
4554
4856
|
status: hono_utils_http_status.ContentfulStatusCode;
|
|
@@ -4646,6 +4948,9 @@ declare function _cloudAppShape(): hono_hono_base.HonoBase<hono_types.BlankEnv,
|
|
|
4646
4948
|
createdAt: string;
|
|
4647
4949
|
updatedAt: string;
|
|
4648
4950
|
deletedAt: string | null;
|
|
4951
|
+
banned: boolean;
|
|
4952
|
+
banReason: string | null;
|
|
4953
|
+
banExpires: string | null;
|
|
4649
4954
|
};
|
|
4650
4955
|
outputFormat: "json";
|
|
4651
4956
|
status: 201;
|
|
@@ -5789,6 +6094,7 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
|
|
|
5789
6094
|
deletedAt: string | null;
|
|
5790
6095
|
logo: string | null;
|
|
5791
6096
|
metadata: string | null;
|
|
6097
|
+
suspendedAt: string | null;
|
|
5792
6098
|
}>;
|
|
5793
6099
|
get: SchemaFn<zod.ZodObject<{
|
|
5794
6100
|
id: zod.ZodString;
|
|
@@ -5806,6 +6112,7 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
|
|
|
5806
6112
|
createdAt: string;
|
|
5807
6113
|
metadata: string | null;
|
|
5808
6114
|
deletedAt: string | null;
|
|
6115
|
+
suspendedAt: string | null;
|
|
5809
6116
|
}>;
|
|
5810
6117
|
listUsers: SchemaFn<zod.ZodObject<{
|
|
5811
6118
|
id: zod.ZodString;
|
|
@@ -5853,6 +6160,9 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
|
|
|
5853
6160
|
createdAt: string;
|
|
5854
6161
|
updatedAt: string;
|
|
5855
6162
|
deletedAt: string | null;
|
|
6163
|
+
banned: boolean;
|
|
6164
|
+
banReason: string | null;
|
|
6165
|
+
banExpires: string | null;
|
|
5856
6166
|
}>;
|
|
5857
6167
|
updateUserRole: SchemaFn<zod.ZodObject<{
|
|
5858
6168
|
id: zod.ZodString;
|
|
@@ -5860,12 +6170,12 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
|
|
|
5860
6170
|
role: zod.ZodEnum<["owner", "admin", "member"]>;
|
|
5861
6171
|
}, "strip", zod.ZodTypeAny, {
|
|
5862
6172
|
id: string;
|
|
5863
|
-
userId: string;
|
|
5864
6173
|
role: "member" | "owner" | "admin";
|
|
6174
|
+
userId: string;
|
|
5865
6175
|
}, {
|
|
5866
6176
|
id: string;
|
|
5867
|
-
userId: string;
|
|
5868
6177
|
role: "member" | "owner" | "admin";
|
|
6178
|
+
userId: string;
|
|
5869
6179
|
}>, {
|
|
5870
6180
|
error: string;
|
|
5871
6181
|
} | {
|
|
@@ -7370,6 +7680,8 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
|
|
|
7370
7680
|
updatedAt: string;
|
|
7371
7681
|
projectId: string | null;
|
|
7372
7682
|
envId: string;
|
|
7683
|
+
deletionScheduledAt: string | null;
|
|
7684
|
+
deletionGracePeriodSeconds: number | null;
|
|
7373
7685
|
}[]>;
|
|
7374
7686
|
syncStamp: SchemaFn<zod.ZodObject<{
|
|
7375
7687
|
projectId: zod.ZodString;
|
|
@@ -7998,6 +8310,8 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
|
|
|
7998
8310
|
updatedAt: string;
|
|
7999
8311
|
projectId: string | null;
|
|
8000
8312
|
envId: string;
|
|
8313
|
+
deletionScheduledAt: string | null;
|
|
8314
|
+
deletionGracePeriodSeconds: number | null;
|
|
8001
8315
|
}[]>;
|
|
8002
8316
|
get: SchemaFn<zod.ZodObject<{
|
|
8003
8317
|
projectId: zod.ZodString;
|
|
@@ -8023,6 +8337,8 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
|
|
|
8023
8337
|
updatedAt: string;
|
|
8024
8338
|
projectId: string | null;
|
|
8025
8339
|
envId: string;
|
|
8340
|
+
deletionScheduledAt: string | null;
|
|
8341
|
+
deletionGracePeriodSeconds: number | null;
|
|
8026
8342
|
}>;
|
|
8027
8343
|
create: SchemaFn<zod.ZodObject<{
|
|
8028
8344
|
kind: zod.ZodLiteral<"Relationship">;
|
|
@@ -8069,6 +8385,8 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
|
|
|
8069
8385
|
relationshipTypeName: string;
|
|
8070
8386
|
fromEntityId: string;
|
|
8071
8387
|
toEntityId: string;
|
|
8388
|
+
deletionScheduledAt: string | null;
|
|
8389
|
+
deletionGracePeriodSeconds: number | null;
|
|
8072
8390
|
}>;
|
|
8073
8391
|
delete: SchemaFn<zod.ZodObject<{
|
|
8074
8392
|
projectId: zod.ZodString;
|
|
@@ -21717,6 +22035,7 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
|
|
|
21717
22035
|
itemCount: number;
|
|
21718
22036
|
deletionCount: number;
|
|
21719
22037
|
force: boolean;
|
|
22038
|
+
version: number;
|
|
21720
22039
|
}[]>;
|
|
21721
22040
|
get: SchemaFn<zod.ZodObject<{
|
|
21722
22041
|
projectId: zod.ZodString;
|
|
@@ -22199,6 +22518,242 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
|
|
|
22199
22518
|
}>;
|
|
22200
22519
|
delete: (key: string) => Promise<unknown>;
|
|
22201
22520
|
};
|
|
22521
|
+
importSources: {
|
|
22522
|
+
list: SchemaFn<zod.ZodObject<{
|
|
22523
|
+
projectId: zod.ZodString;
|
|
22524
|
+
}, "strip", zod.ZodTypeAny, {
|
|
22525
|
+
projectId: string;
|
|
22526
|
+
}, {
|
|
22527
|
+
projectId: string;
|
|
22528
|
+
}>, {
|
|
22529
|
+
id: string;
|
|
22530
|
+
projectId: string | null;
|
|
22531
|
+
envId: string;
|
|
22532
|
+
sourceKind: string;
|
|
22533
|
+
sourceUri: string;
|
|
22534
|
+
reconciliationPolicy: string;
|
|
22535
|
+
lastScannedAt: string | null;
|
|
22536
|
+
lastScanStatus: string | null;
|
|
22537
|
+
lastScanSummary: hono_utils_types.JSONValue;
|
|
22538
|
+
createdAt: string;
|
|
22539
|
+
updatedAt: string;
|
|
22540
|
+
}[]>;
|
|
22541
|
+
get: SchemaFn<zod.ZodObject<{
|
|
22542
|
+
projectId: zod.ZodString;
|
|
22543
|
+
id: zod.ZodString;
|
|
22544
|
+
}, "strip", zod.ZodTypeAny, {
|
|
22545
|
+
id: string;
|
|
22546
|
+
projectId: string;
|
|
22547
|
+
}, {
|
|
22548
|
+
id: string;
|
|
22549
|
+
projectId: string;
|
|
22550
|
+
}>, {
|
|
22551
|
+
id: string;
|
|
22552
|
+
projectId: string | null;
|
|
22553
|
+
envId: string;
|
|
22554
|
+
sourceKind: string;
|
|
22555
|
+
sourceUri: string;
|
|
22556
|
+
reconciliationPolicy: string;
|
|
22557
|
+
lastScannedAt: string | null;
|
|
22558
|
+
lastScanStatus: string | null;
|
|
22559
|
+
lastScanSummary: hono_utils_types.JSONValue;
|
|
22560
|
+
createdAt: string;
|
|
22561
|
+
updatedAt: string;
|
|
22562
|
+
}>;
|
|
22563
|
+
registerOrUpdate: SchemaFn<zod.ZodObject<{
|
|
22564
|
+
projectId: zod.ZodString;
|
|
22565
|
+
envName: zod.ZodString;
|
|
22566
|
+
sourceKind: zod.ZodEnum<["tf-state", "atmos-manifests"]>;
|
|
22567
|
+
sourceUri: zod.ZodString;
|
|
22568
|
+
reconciliationPolicy: zod.ZodOptional<zod.ZodEnum<["auto-update", "human-approval"]>>;
|
|
22569
|
+
}, "strip", zod.ZodTypeAny, {
|
|
22570
|
+
projectId: string;
|
|
22571
|
+
envName: string;
|
|
22572
|
+
sourceKind: "tf-state" | "atmos-manifests";
|
|
22573
|
+
sourceUri: string;
|
|
22574
|
+
reconciliationPolicy?: "auto-update" | "human-approval" | undefined;
|
|
22575
|
+
}, {
|
|
22576
|
+
projectId: string;
|
|
22577
|
+
envName: string;
|
|
22578
|
+
sourceKind: "tf-state" | "atmos-manifests";
|
|
22579
|
+
sourceUri: string;
|
|
22580
|
+
reconciliationPolicy?: "auto-update" | "human-approval" | undefined;
|
|
22581
|
+
}>, {
|
|
22582
|
+
id: string;
|
|
22583
|
+
projectId: string | null;
|
|
22584
|
+
envId: string;
|
|
22585
|
+
sourceKind: string;
|
|
22586
|
+
sourceUri: string;
|
|
22587
|
+
reconciliationPolicy: string;
|
|
22588
|
+
lastScannedAt: string | null;
|
|
22589
|
+
lastScanStatus: string | null;
|
|
22590
|
+
lastScanSummary: hono_utils_types.JSONValue;
|
|
22591
|
+
createdAt: string;
|
|
22592
|
+
updatedAt: string;
|
|
22593
|
+
} | {
|
|
22594
|
+
id: string;
|
|
22595
|
+
createdAt: string;
|
|
22596
|
+
updatedAt: string;
|
|
22597
|
+
projectId: string | null;
|
|
22598
|
+
envId: string;
|
|
22599
|
+
sourceKind: string;
|
|
22600
|
+
sourceUri: string;
|
|
22601
|
+
reconciliationPolicy: string;
|
|
22602
|
+
lastScannedAt: string | null;
|
|
22603
|
+
lastScanStatus: string | null;
|
|
22604
|
+
lastScanSummary: hono_utils_types.JSONValue;
|
|
22605
|
+
}>;
|
|
22606
|
+
rescan: SchemaFn<zod.ZodObject<{
|
|
22607
|
+
projectId: zod.ZodString;
|
|
22608
|
+
id: zod.ZodString;
|
|
22609
|
+
envName: zod.ZodString;
|
|
22610
|
+
items: zod.ZodArray<zod.ZodUnknown, "many">;
|
|
22611
|
+
deletions: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
22612
|
+
kind: zod.ZodString;
|
|
22613
|
+
name: zod.ZodString;
|
|
22614
|
+
}, "strip", zod.ZodTypeAny, {
|
|
22615
|
+
name: string;
|
|
22616
|
+
kind: string;
|
|
22617
|
+
}, {
|
|
22618
|
+
name: string;
|
|
22619
|
+
kind: string;
|
|
22620
|
+
}>, "many">>;
|
|
22621
|
+
}, "strip", zod.ZodTypeAny, {
|
|
22622
|
+
id: string;
|
|
22623
|
+
projectId: string;
|
|
22624
|
+
envName: string;
|
|
22625
|
+
items: unknown[];
|
|
22626
|
+
deletions?: {
|
|
22627
|
+
name: string;
|
|
22628
|
+
kind: string;
|
|
22629
|
+
}[] | undefined;
|
|
22630
|
+
}, {
|
|
22631
|
+
id: string;
|
|
22632
|
+
projectId: string;
|
|
22633
|
+
envName: string;
|
|
22634
|
+
items: unknown[];
|
|
22635
|
+
deletions?: {
|
|
22636
|
+
name: string;
|
|
22637
|
+
kind: string;
|
|
22638
|
+
}[] | undefined;
|
|
22639
|
+
}>, {
|
|
22640
|
+
scan: {
|
|
22641
|
+
scanned: any;
|
|
22642
|
+
succeeded: number;
|
|
22643
|
+
failed: number;
|
|
22644
|
+
proposalsCreated: number;
|
|
22645
|
+
};
|
|
22646
|
+
lastScannedAt: string;
|
|
22647
|
+
lastScanStatus: string;
|
|
22648
|
+
} | {
|
|
22649
|
+
scan: {
|
|
22650
|
+
scanned: any;
|
|
22651
|
+
created: number;
|
|
22652
|
+
failed: number;
|
|
22653
|
+
proposalsCreated: number;
|
|
22654
|
+
};
|
|
22655
|
+
lastScannedAt: string;
|
|
22656
|
+
lastScanStatus: string;
|
|
22657
|
+
}>;
|
|
22658
|
+
drift: SchemaFn<zod.ZodObject<{
|
|
22659
|
+
projectId: zod.ZodString;
|
|
22660
|
+
id: zod.ZodString;
|
|
22661
|
+
}, "strip", zod.ZodTypeAny, {
|
|
22662
|
+
id: string;
|
|
22663
|
+
projectId: string;
|
|
22664
|
+
}, {
|
|
22665
|
+
id: string;
|
|
22666
|
+
projectId: string;
|
|
22667
|
+
}>, {
|
|
22668
|
+
source: {
|
|
22669
|
+
id: string;
|
|
22670
|
+
projectId: string | null;
|
|
22671
|
+
envId: string;
|
|
22672
|
+
sourceKind: string;
|
|
22673
|
+
sourceUri: string;
|
|
22674
|
+
reconciliationPolicy: string;
|
|
22675
|
+
lastScannedAt: string | null;
|
|
22676
|
+
lastScanStatus: string | null;
|
|
22677
|
+
lastScanSummary: hono_utils_types.JSONValue;
|
|
22678
|
+
createdAt: string;
|
|
22679
|
+
updatedAt: string;
|
|
22680
|
+
};
|
|
22681
|
+
totals: {
|
|
22682
|
+
entities: number;
|
|
22683
|
+
current: number;
|
|
22684
|
+
stale: number;
|
|
22685
|
+
missing: number;
|
|
22686
|
+
pendingProposals: number;
|
|
22687
|
+
};
|
|
22688
|
+
entities: {
|
|
22689
|
+
id: string;
|
|
22690
|
+
name: string;
|
|
22691
|
+
entityType: string;
|
|
22692
|
+
lastSyncedAt: string | null;
|
|
22693
|
+
driftStatus: _terrantula_types.DriftStatus | null;
|
|
22694
|
+
}[];
|
|
22695
|
+
pendingProposals: {
|
|
22696
|
+
id: string;
|
|
22697
|
+
importSourceId: string;
|
|
22698
|
+
projectId: string | null;
|
|
22699
|
+
envId: string;
|
|
22700
|
+
entityId: string;
|
|
22701
|
+
proposedChanges: hono_utils_types.JSONValue;
|
|
22702
|
+
status: string;
|
|
22703
|
+
createdAt: string;
|
|
22704
|
+
decidedAt: string | null;
|
|
22705
|
+
decidedBy: string | null;
|
|
22706
|
+
}[];
|
|
22707
|
+
}>;
|
|
22708
|
+
approveProposal: SchemaFn<zod.ZodObject<{
|
|
22709
|
+
projectId: zod.ZodString;
|
|
22710
|
+
id: zod.ZodString;
|
|
22711
|
+
proposalId: zod.ZodString;
|
|
22712
|
+
}, "strip", zod.ZodTypeAny, {
|
|
22713
|
+
id: string;
|
|
22714
|
+
projectId: string;
|
|
22715
|
+
proposalId: string;
|
|
22716
|
+
}, {
|
|
22717
|
+
id: string;
|
|
22718
|
+
projectId: string;
|
|
22719
|
+
proposalId: string;
|
|
22720
|
+
}>, {
|
|
22721
|
+
id: string;
|
|
22722
|
+
importSourceId: string;
|
|
22723
|
+
projectId: string | null;
|
|
22724
|
+
envId: string;
|
|
22725
|
+
entityId: string;
|
|
22726
|
+
proposedChanges: hono_utils_types.JSONValue;
|
|
22727
|
+
status: string;
|
|
22728
|
+
createdAt: string;
|
|
22729
|
+
decidedAt: string | null;
|
|
22730
|
+
decidedBy: string | null;
|
|
22731
|
+
}>;
|
|
22732
|
+
rejectProposal: SchemaFn<zod.ZodObject<{
|
|
22733
|
+
projectId: zod.ZodString;
|
|
22734
|
+
id: zod.ZodString;
|
|
22735
|
+
proposalId: zod.ZodString;
|
|
22736
|
+
}, "strip", zod.ZodTypeAny, {
|
|
22737
|
+
id: string;
|
|
22738
|
+
projectId: string;
|
|
22739
|
+
proposalId: string;
|
|
22740
|
+
}, {
|
|
22741
|
+
id: string;
|
|
22742
|
+
projectId: string;
|
|
22743
|
+
proposalId: string;
|
|
22744
|
+
}>, {
|
|
22745
|
+
id: string;
|
|
22746
|
+
importSourceId: string;
|
|
22747
|
+
projectId: string | null;
|
|
22748
|
+
envId: string;
|
|
22749
|
+
entityId: string;
|
|
22750
|
+
proposedChanges: hono_utils_types.JSONValue;
|
|
22751
|
+
status: string;
|
|
22752
|
+
createdAt: string;
|
|
22753
|
+
decidedAt: string | null;
|
|
22754
|
+
decidedBy: string | null;
|
|
22755
|
+
}>;
|
|
22756
|
+
};
|
|
22202
22757
|
exportCatalog: SchemaFn<zod.ZodObject<{
|
|
22203
22758
|
projectId: zod.ZodString;
|
|
22204
22759
|
envName: zod.ZodString;
|
|
@@ -22209,6 +22764,59 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
|
|
|
22209
22764
|
projectId: string;
|
|
22210
22765
|
envName: string;
|
|
22211
22766
|
}>, ExportCatalogResult>;
|
|
22767
|
+
admin: {
|
|
22768
|
+
audit: {
|
|
22769
|
+
list: SchemaFn<zod.ZodObject<{
|
|
22770
|
+
actor: zod.ZodOptional<zod.ZodString>;
|
|
22771
|
+
action: zod.ZodOptional<zod.ZodString>;
|
|
22772
|
+
resourceKind: zod.ZodOptional<zod.ZodString>;
|
|
22773
|
+
since: zod.ZodOptional<zod.ZodString>;
|
|
22774
|
+
until: zod.ZodOptional<zod.ZodString>;
|
|
22775
|
+
limit: zod.ZodOptional<zod.ZodNumber>;
|
|
22776
|
+
offset: zod.ZodOptional<zod.ZodNumber>;
|
|
22777
|
+
}, "strip", zod.ZodTypeAny, {
|
|
22778
|
+
limit?: number | undefined;
|
|
22779
|
+
offset?: number | undefined;
|
|
22780
|
+
action?: string | undefined;
|
|
22781
|
+
resourceKind?: string | undefined;
|
|
22782
|
+
since?: string | undefined;
|
|
22783
|
+
actor?: string | undefined;
|
|
22784
|
+
until?: string | undefined;
|
|
22785
|
+
}, {
|
|
22786
|
+
limit?: number | undefined;
|
|
22787
|
+
offset?: number | undefined;
|
|
22788
|
+
action?: string | undefined;
|
|
22789
|
+
resourceKind?: string | undefined;
|
|
22790
|
+
since?: string | undefined;
|
|
22791
|
+
actor?: string | undefined;
|
|
22792
|
+
until?: string | undefined;
|
|
22793
|
+
}>, AdminAuditListResponse>;
|
|
22794
|
+
};
|
|
22795
|
+
orgs: {
|
|
22796
|
+
list: SchemaFn<zod.ZodObject<{}, "strip", zod.ZodTypeAny, {}, {}>, AdminOrgListResponse>;
|
|
22797
|
+
get: SchemaFn<zod.ZodObject<{
|
|
22798
|
+
id: zod.ZodString;
|
|
22799
|
+
}, "strip", zod.ZodTypeAny, {
|
|
22800
|
+
id: string;
|
|
22801
|
+
}, {
|
|
22802
|
+
id: string;
|
|
22803
|
+
}>, AdminOrgDetail>;
|
|
22804
|
+
suspend: SchemaFn<zod.ZodObject<{
|
|
22805
|
+
id: zod.ZodString;
|
|
22806
|
+
}, "strip", zod.ZodTypeAny, {
|
|
22807
|
+
id: string;
|
|
22808
|
+
}, {
|
|
22809
|
+
id: string;
|
|
22810
|
+
}>, AdminSuspendResponse>;
|
|
22811
|
+
unsuspend: SchemaFn<zod.ZodObject<{
|
|
22812
|
+
id: zod.ZodString;
|
|
22813
|
+
}, "strip", zod.ZodTypeAny, {
|
|
22814
|
+
id: string;
|
|
22815
|
+
}, {
|
|
22816
|
+
id: string;
|
|
22817
|
+
}>, AdminSuspendResponse>;
|
|
22818
|
+
};
|
|
22819
|
+
};
|
|
22212
22820
|
} & {
|
|
22213
22821
|
pools: {
|
|
22214
22822
|
list: SchemaFn<zod.ZodObject<{
|
|
@@ -22470,6 +23078,7 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
|
|
|
22470
23078
|
itemCount: number;
|
|
22471
23079
|
deletionCount: number;
|
|
22472
23080
|
force: boolean;
|
|
23081
|
+
version: number;
|
|
22473
23082
|
}[]>;
|
|
22474
23083
|
get: SchemaFn<zod.ZodObject<{
|
|
22475
23084
|
projectId: zod.ZodString;
|
|
@@ -22566,4 +23175,4 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
|
|
|
22566
23175
|
};
|
|
22567
23176
|
type TerrantulaCloudClient = ReturnType<typeof createClient>;
|
|
22568
23177
|
|
|
22569
|
-
export { AuditExportConfigResponse, AuditExportRunResponse, type CloudAppType, type CreateClientOptions, type ProjectAppType, SchemaFn, type TerrantulaCloudClient, TestConnectionResponse, TokenSource, createClient };
|
|
23178
|
+
export { AdminAuditListResponse, AdminOrgDetail, AdminOrgListResponse, AdminSuspendResponse, AuditExportConfigResponse, AuditExportRunResponse, type CloudAppType, type CreateClientOptions, type ProjectAppType, SchemaFn, type TerrantulaCloudClient, TestConnectionResponse, TokenSource, createClient };
|