@terrantula/sdk 0.9.2 → 0.11.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/{chunk-OXOF623W.mjs → chunk-5JCSB6F5.mjs} +40 -1
- package/dist/index.d.mts +146 -0
- package/dist/index.d.ts +146 -0
- package/dist/index.js +40 -1
- package/dist/index.mjs +1 -1
- package/dist/local.d.mts +114 -0
- package/dist/local.d.ts +114 -0
- package/dist/local.js +40 -1
- package/dist/local.mjs +1 -1
- package/package.json +3 -3
|
@@ -461,6 +461,32 @@ function createEntitiesClient(projEnv) {
|
|
|
461
461
|
);
|
|
462
462
|
}
|
|
463
463
|
),
|
|
464
|
+
facets: withSchema(
|
|
465
|
+
z3.object({
|
|
466
|
+
orgId: z3.string().describe("Organization slug"),
|
|
467
|
+
projectId: z3.string().describe("Project name"),
|
|
468
|
+
envName: z3.string().describe("Environment name"),
|
|
469
|
+
kind: z3.array(z3.string()).optional().describe("Filter: entity type names"),
|
|
470
|
+
state: z3.array(z3.string()).optional().describe("Filter: states"),
|
|
471
|
+
owner: z3.array(z3.string()).optional().describe("Filter: owner label values ('' = unset)"),
|
|
472
|
+
cell: z3.array(z3.string()).optional().describe("Filter: cell label values ('' = unset)"),
|
|
473
|
+
search: z3.string().optional().describe("Substring match on name + entity type"),
|
|
474
|
+
cellKey: z3.string().optional().describe("Project cell label key; omit to skip the cell dimension")
|
|
475
|
+
}),
|
|
476
|
+
(params) => {
|
|
477
|
+
const { orgId, projectId, envName, kind, state, owner, cell, search, cellKey } = params;
|
|
478
|
+
const query = {};
|
|
479
|
+
if (kind?.length) query.kind = JSON.stringify(kind);
|
|
480
|
+
if (state?.length) query.state = JSON.stringify(state);
|
|
481
|
+
if (owner?.length) query.owner = JSON.stringify(owner);
|
|
482
|
+
if (cell?.length) query.cell = JSON.stringify(cell);
|
|
483
|
+
if (search) query.search = search;
|
|
484
|
+
if (cellKey) query.cellKey = cellKey;
|
|
485
|
+
return call(
|
|
486
|
+
projEnv(orgId, projectId, envName)["entities"]["facets"].$get({ query })
|
|
487
|
+
);
|
|
488
|
+
}
|
|
489
|
+
),
|
|
464
490
|
get: withSchema(
|
|
465
491
|
z3.object({
|
|
466
492
|
orgId: z3.string().describe("Organization slug"),
|
|
@@ -744,6 +770,18 @@ function createCellsClient(proj) {
|
|
|
744
770
|
})
|
|
745
771
|
);
|
|
746
772
|
}
|
|
773
|
+
),
|
|
774
|
+
recommendations: withSchema(
|
|
775
|
+
z5.object({
|
|
776
|
+
orgId: z5.string().describe("Organization slug"),
|
|
777
|
+
projectId: z5.string().describe("Project ID"),
|
|
778
|
+
name: z5.string().describe("Cell name")
|
|
779
|
+
}),
|
|
780
|
+
(params) => call(
|
|
781
|
+
proj(params.orgId, params.projectId)["cells"][":name"]["recommendations"].$get({
|
|
782
|
+
param: { name: params.name }
|
|
783
|
+
})
|
|
784
|
+
)
|
|
747
785
|
)
|
|
748
786
|
};
|
|
749
787
|
}
|
|
@@ -824,7 +862,8 @@ function createRelationshipsClient(projEnv) {
|
|
|
824
862
|
toEntity: z6.string().uuid().optional().describe("Filter by to-entity ID"),
|
|
825
863
|
fromEntityCell: z6.string().optional().describe("Filter by from-entity cell membership"),
|
|
826
864
|
toEntityCell: z6.string().optional().describe("Filter by to-entity cell membership"),
|
|
827
|
-
limit: z6.coerce.number().int().min(1).max(100).optional().describe("Max results (1-100)")
|
|
865
|
+
limit: z6.coerce.number().int().min(1).max(100).optional().describe("Max results (1-100)"),
|
|
866
|
+
cursor: z6.string().optional().describe("Pagination cursor")
|
|
828
867
|
}),
|
|
829
868
|
(params) => {
|
|
830
869
|
const { orgId, projectId, envName, ...query } = params;
|
package/dist/index.d.mts
CHANGED
|
@@ -302,6 +302,38 @@ declare const projectApp: hono_hono_base.HonoBase<{
|
|
|
302
302
|
};
|
|
303
303
|
};
|
|
304
304
|
}, "/secrets"> | hono_types.MergeSchemaPath<{
|
|
305
|
+
"/facets": {
|
|
306
|
+
$get: {
|
|
307
|
+
input: {
|
|
308
|
+
json?: any;
|
|
309
|
+
query?: {
|
|
310
|
+
[x: string]: string | string[];
|
|
311
|
+
} | undefined;
|
|
312
|
+
};
|
|
313
|
+
output: {
|
|
314
|
+
kind: {
|
|
315
|
+
value: string;
|
|
316
|
+
count: number;
|
|
317
|
+
}[];
|
|
318
|
+
state: {
|
|
319
|
+
value: string;
|
|
320
|
+
count: number;
|
|
321
|
+
}[];
|
|
322
|
+
owner: {
|
|
323
|
+
value: string;
|
|
324
|
+
count: number;
|
|
325
|
+
}[];
|
|
326
|
+
cell: {
|
|
327
|
+
value: string;
|
|
328
|
+
count: number;
|
|
329
|
+
}[];
|
|
330
|
+
total: number;
|
|
331
|
+
};
|
|
332
|
+
outputFormat: "json";
|
|
333
|
+
status: hono_utils_http_status.ContentfulStatusCode;
|
|
334
|
+
};
|
|
335
|
+
};
|
|
336
|
+
}, "/entities"> | hono_types.MergeSchemaPath<{
|
|
305
337
|
"/": {
|
|
306
338
|
$get: {
|
|
307
339
|
input: {
|
|
@@ -8492,6 +8524,55 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
|
|
|
8492
8524
|
projectId: string;
|
|
8493
8525
|
envId: string;
|
|
8494
8526
|
}[]>;
|
|
8527
|
+
facets: SchemaFn<zod.ZodObject<{
|
|
8528
|
+
orgId: zod.ZodString;
|
|
8529
|
+
projectId: zod.ZodString;
|
|
8530
|
+
envName: zod.ZodString;
|
|
8531
|
+
kind: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
8532
|
+
state: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
8533
|
+
owner: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
8534
|
+
cell: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
8535
|
+
search: zod.ZodOptional<zod.ZodString>;
|
|
8536
|
+
cellKey: zod.ZodOptional<zod.ZodString>;
|
|
8537
|
+
}, "strip", zod.ZodTypeAny, {
|
|
8538
|
+
orgId: string;
|
|
8539
|
+
projectId: string;
|
|
8540
|
+
envName: string;
|
|
8541
|
+
search?: string | undefined;
|
|
8542
|
+
owner?: string[] | undefined;
|
|
8543
|
+
cellKey?: string | undefined;
|
|
8544
|
+
state?: string[] | undefined;
|
|
8545
|
+
cell?: string[] | undefined;
|
|
8546
|
+
kind?: string[] | undefined;
|
|
8547
|
+
}, {
|
|
8548
|
+
orgId: string;
|
|
8549
|
+
projectId: string;
|
|
8550
|
+
envName: string;
|
|
8551
|
+
search?: string | undefined;
|
|
8552
|
+
owner?: string[] | undefined;
|
|
8553
|
+
cellKey?: string | undefined;
|
|
8554
|
+
state?: string[] | undefined;
|
|
8555
|
+
cell?: string[] | undefined;
|
|
8556
|
+
kind?: string[] | undefined;
|
|
8557
|
+
}>, {
|
|
8558
|
+
kind: {
|
|
8559
|
+
value: string;
|
|
8560
|
+
count: number;
|
|
8561
|
+
}[];
|
|
8562
|
+
state: {
|
|
8563
|
+
value: string;
|
|
8564
|
+
count: number;
|
|
8565
|
+
}[];
|
|
8566
|
+
owner: {
|
|
8567
|
+
value: string;
|
|
8568
|
+
count: number;
|
|
8569
|
+
}[];
|
|
8570
|
+
cell: {
|
|
8571
|
+
value: string;
|
|
8572
|
+
count: number;
|
|
8573
|
+
}[];
|
|
8574
|
+
total: number;
|
|
8575
|
+
}>;
|
|
8495
8576
|
get: SchemaFn<zod.ZodObject<{
|
|
8496
8577
|
orgId: zod.ZodString;
|
|
8497
8578
|
projectId: zod.ZodString;
|
|
@@ -9143,6 +9224,37 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
|
|
|
9143
9224
|
cellName: string;
|
|
9144
9225
|
entityName: string;
|
|
9145
9226
|
}>;
|
|
9227
|
+
recommendations: SchemaFn<zod.ZodObject<{
|
|
9228
|
+
orgId: zod.ZodString;
|
|
9229
|
+
projectId: zod.ZodString;
|
|
9230
|
+
name: zod.ZodString;
|
|
9231
|
+
}, "strip", zod.ZodTypeAny, {
|
|
9232
|
+
name: string;
|
|
9233
|
+
orgId: string;
|
|
9234
|
+
projectId: string;
|
|
9235
|
+
}, {
|
|
9236
|
+
name: string;
|
|
9237
|
+
orgId: string;
|
|
9238
|
+
projectId: string;
|
|
9239
|
+
}>, {
|
|
9240
|
+
entity: {
|
|
9241
|
+
name: string;
|
|
9242
|
+
id: string;
|
|
9243
|
+
createdAt: string;
|
|
9244
|
+
updatedAt: string;
|
|
9245
|
+
orgId: string;
|
|
9246
|
+
projectId: string;
|
|
9247
|
+
envId: string;
|
|
9248
|
+
state: string;
|
|
9249
|
+
properties: hono_utils_types.JSONValue;
|
|
9250
|
+
entityTypeName: string;
|
|
9251
|
+
labels: hono_utils_types.JSONValue;
|
|
9252
|
+
lastSyncedAt: string | null;
|
|
9253
|
+
syncSource: string | null;
|
|
9254
|
+
};
|
|
9255
|
+
metricValue: number | null;
|
|
9256
|
+
metricName: string | null;
|
|
9257
|
+
}[]>;
|
|
9146
9258
|
};
|
|
9147
9259
|
relationshipTypes: {
|
|
9148
9260
|
list: SchemaFn<zod.ZodObject<{
|
|
@@ -9493,6 +9605,7 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
|
|
|
9493
9605
|
fromEntityCell: zod.ZodOptional<zod.ZodString>;
|
|
9494
9606
|
toEntityCell: zod.ZodOptional<zod.ZodString>;
|
|
9495
9607
|
limit: zod.ZodOptional<zod.ZodNumber>;
|
|
9608
|
+
cursor: zod.ZodOptional<zod.ZodString>;
|
|
9496
9609
|
}, "strip", zod.ZodTypeAny, {
|
|
9497
9610
|
orgId: string;
|
|
9498
9611
|
projectId: string;
|
|
@@ -9500,6 +9613,7 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
|
|
|
9500
9613
|
limit?: number | undefined;
|
|
9501
9614
|
state?: string | undefined;
|
|
9502
9615
|
relationshipType?: string | undefined;
|
|
9616
|
+
cursor?: string | undefined;
|
|
9503
9617
|
fromEntity?: string | undefined;
|
|
9504
9618
|
toEntity?: string | undefined;
|
|
9505
9619
|
fromEntityCell?: string | undefined;
|
|
@@ -9511,6 +9625,7 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
|
|
|
9511
9625
|
limit?: number | undefined;
|
|
9512
9626
|
state?: string | undefined;
|
|
9513
9627
|
relationshipType?: string | undefined;
|
|
9628
|
+
cursor?: string | undefined;
|
|
9514
9629
|
fromEntity?: string | undefined;
|
|
9515
9630
|
toEntity?: string | undefined;
|
|
9516
9631
|
fromEntityCell?: string | undefined;
|
|
@@ -25200,6 +25315,37 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
|
|
|
25200
25315
|
cellName: string;
|
|
25201
25316
|
entityName: string;
|
|
25202
25317
|
}>;
|
|
25318
|
+
recommendations: SchemaFn<zod.ZodObject<{
|
|
25319
|
+
orgId: zod.ZodString;
|
|
25320
|
+
projectId: zod.ZodString;
|
|
25321
|
+
name: zod.ZodString;
|
|
25322
|
+
}, "strip", zod.ZodTypeAny, {
|
|
25323
|
+
name: string;
|
|
25324
|
+
orgId: string;
|
|
25325
|
+
projectId: string;
|
|
25326
|
+
}, {
|
|
25327
|
+
name: string;
|
|
25328
|
+
orgId: string;
|
|
25329
|
+
projectId: string;
|
|
25330
|
+
}>, {
|
|
25331
|
+
entity: {
|
|
25332
|
+
name: string;
|
|
25333
|
+
id: string;
|
|
25334
|
+
createdAt: string;
|
|
25335
|
+
updatedAt: string;
|
|
25336
|
+
orgId: string;
|
|
25337
|
+
projectId: string;
|
|
25338
|
+
envId: string;
|
|
25339
|
+
state: string;
|
|
25340
|
+
properties: hono_utils_types.JSONValue;
|
|
25341
|
+
entityTypeName: string;
|
|
25342
|
+
labels: hono_utils_types.JSONValue;
|
|
25343
|
+
lastSyncedAt: string | null;
|
|
25344
|
+
syncSource: string | null;
|
|
25345
|
+
};
|
|
25346
|
+
metricValue: number | null;
|
|
25347
|
+
metricName: string | null;
|
|
25348
|
+
}[]>;
|
|
25203
25349
|
};
|
|
25204
25350
|
applyRevisions: {
|
|
25205
25351
|
list: SchemaFn<zod.ZodObject<{
|
package/dist/index.d.ts
CHANGED
|
@@ -302,6 +302,38 @@ declare const projectApp: hono_hono_base.HonoBase<{
|
|
|
302
302
|
};
|
|
303
303
|
};
|
|
304
304
|
}, "/secrets"> | hono_types.MergeSchemaPath<{
|
|
305
|
+
"/facets": {
|
|
306
|
+
$get: {
|
|
307
|
+
input: {
|
|
308
|
+
json?: any;
|
|
309
|
+
query?: {
|
|
310
|
+
[x: string]: string | string[];
|
|
311
|
+
} | undefined;
|
|
312
|
+
};
|
|
313
|
+
output: {
|
|
314
|
+
kind: {
|
|
315
|
+
value: string;
|
|
316
|
+
count: number;
|
|
317
|
+
}[];
|
|
318
|
+
state: {
|
|
319
|
+
value: string;
|
|
320
|
+
count: number;
|
|
321
|
+
}[];
|
|
322
|
+
owner: {
|
|
323
|
+
value: string;
|
|
324
|
+
count: number;
|
|
325
|
+
}[];
|
|
326
|
+
cell: {
|
|
327
|
+
value: string;
|
|
328
|
+
count: number;
|
|
329
|
+
}[];
|
|
330
|
+
total: number;
|
|
331
|
+
};
|
|
332
|
+
outputFormat: "json";
|
|
333
|
+
status: hono_utils_http_status.ContentfulStatusCode;
|
|
334
|
+
};
|
|
335
|
+
};
|
|
336
|
+
}, "/entities"> | hono_types.MergeSchemaPath<{
|
|
305
337
|
"/": {
|
|
306
338
|
$get: {
|
|
307
339
|
input: {
|
|
@@ -8492,6 +8524,55 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
|
|
|
8492
8524
|
projectId: string;
|
|
8493
8525
|
envId: string;
|
|
8494
8526
|
}[]>;
|
|
8527
|
+
facets: SchemaFn<zod.ZodObject<{
|
|
8528
|
+
orgId: zod.ZodString;
|
|
8529
|
+
projectId: zod.ZodString;
|
|
8530
|
+
envName: zod.ZodString;
|
|
8531
|
+
kind: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
8532
|
+
state: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
8533
|
+
owner: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
8534
|
+
cell: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
8535
|
+
search: zod.ZodOptional<zod.ZodString>;
|
|
8536
|
+
cellKey: zod.ZodOptional<zod.ZodString>;
|
|
8537
|
+
}, "strip", zod.ZodTypeAny, {
|
|
8538
|
+
orgId: string;
|
|
8539
|
+
projectId: string;
|
|
8540
|
+
envName: string;
|
|
8541
|
+
search?: string | undefined;
|
|
8542
|
+
owner?: string[] | undefined;
|
|
8543
|
+
cellKey?: string | undefined;
|
|
8544
|
+
state?: string[] | undefined;
|
|
8545
|
+
cell?: string[] | undefined;
|
|
8546
|
+
kind?: string[] | undefined;
|
|
8547
|
+
}, {
|
|
8548
|
+
orgId: string;
|
|
8549
|
+
projectId: string;
|
|
8550
|
+
envName: string;
|
|
8551
|
+
search?: string | undefined;
|
|
8552
|
+
owner?: string[] | undefined;
|
|
8553
|
+
cellKey?: string | undefined;
|
|
8554
|
+
state?: string[] | undefined;
|
|
8555
|
+
cell?: string[] | undefined;
|
|
8556
|
+
kind?: string[] | undefined;
|
|
8557
|
+
}>, {
|
|
8558
|
+
kind: {
|
|
8559
|
+
value: string;
|
|
8560
|
+
count: number;
|
|
8561
|
+
}[];
|
|
8562
|
+
state: {
|
|
8563
|
+
value: string;
|
|
8564
|
+
count: number;
|
|
8565
|
+
}[];
|
|
8566
|
+
owner: {
|
|
8567
|
+
value: string;
|
|
8568
|
+
count: number;
|
|
8569
|
+
}[];
|
|
8570
|
+
cell: {
|
|
8571
|
+
value: string;
|
|
8572
|
+
count: number;
|
|
8573
|
+
}[];
|
|
8574
|
+
total: number;
|
|
8575
|
+
}>;
|
|
8495
8576
|
get: SchemaFn<zod.ZodObject<{
|
|
8496
8577
|
orgId: zod.ZodString;
|
|
8497
8578
|
projectId: zod.ZodString;
|
|
@@ -9143,6 +9224,37 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
|
|
|
9143
9224
|
cellName: string;
|
|
9144
9225
|
entityName: string;
|
|
9145
9226
|
}>;
|
|
9227
|
+
recommendations: SchemaFn<zod.ZodObject<{
|
|
9228
|
+
orgId: zod.ZodString;
|
|
9229
|
+
projectId: zod.ZodString;
|
|
9230
|
+
name: zod.ZodString;
|
|
9231
|
+
}, "strip", zod.ZodTypeAny, {
|
|
9232
|
+
name: string;
|
|
9233
|
+
orgId: string;
|
|
9234
|
+
projectId: string;
|
|
9235
|
+
}, {
|
|
9236
|
+
name: string;
|
|
9237
|
+
orgId: string;
|
|
9238
|
+
projectId: string;
|
|
9239
|
+
}>, {
|
|
9240
|
+
entity: {
|
|
9241
|
+
name: string;
|
|
9242
|
+
id: string;
|
|
9243
|
+
createdAt: string;
|
|
9244
|
+
updatedAt: string;
|
|
9245
|
+
orgId: string;
|
|
9246
|
+
projectId: string;
|
|
9247
|
+
envId: string;
|
|
9248
|
+
state: string;
|
|
9249
|
+
properties: hono_utils_types.JSONValue;
|
|
9250
|
+
entityTypeName: string;
|
|
9251
|
+
labels: hono_utils_types.JSONValue;
|
|
9252
|
+
lastSyncedAt: string | null;
|
|
9253
|
+
syncSource: string | null;
|
|
9254
|
+
};
|
|
9255
|
+
metricValue: number | null;
|
|
9256
|
+
metricName: string | null;
|
|
9257
|
+
}[]>;
|
|
9146
9258
|
};
|
|
9147
9259
|
relationshipTypes: {
|
|
9148
9260
|
list: SchemaFn<zod.ZodObject<{
|
|
@@ -9493,6 +9605,7 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
|
|
|
9493
9605
|
fromEntityCell: zod.ZodOptional<zod.ZodString>;
|
|
9494
9606
|
toEntityCell: zod.ZodOptional<zod.ZodString>;
|
|
9495
9607
|
limit: zod.ZodOptional<zod.ZodNumber>;
|
|
9608
|
+
cursor: zod.ZodOptional<zod.ZodString>;
|
|
9496
9609
|
}, "strip", zod.ZodTypeAny, {
|
|
9497
9610
|
orgId: string;
|
|
9498
9611
|
projectId: string;
|
|
@@ -9500,6 +9613,7 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
|
|
|
9500
9613
|
limit?: number | undefined;
|
|
9501
9614
|
state?: string | undefined;
|
|
9502
9615
|
relationshipType?: string | undefined;
|
|
9616
|
+
cursor?: string | undefined;
|
|
9503
9617
|
fromEntity?: string | undefined;
|
|
9504
9618
|
toEntity?: string | undefined;
|
|
9505
9619
|
fromEntityCell?: string | undefined;
|
|
@@ -9511,6 +9625,7 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
|
|
|
9511
9625
|
limit?: number | undefined;
|
|
9512
9626
|
state?: string | undefined;
|
|
9513
9627
|
relationshipType?: string | undefined;
|
|
9628
|
+
cursor?: string | undefined;
|
|
9514
9629
|
fromEntity?: string | undefined;
|
|
9515
9630
|
toEntity?: string | undefined;
|
|
9516
9631
|
fromEntityCell?: string | undefined;
|
|
@@ -25200,6 +25315,37 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
|
|
|
25200
25315
|
cellName: string;
|
|
25201
25316
|
entityName: string;
|
|
25202
25317
|
}>;
|
|
25318
|
+
recommendations: SchemaFn<zod.ZodObject<{
|
|
25319
|
+
orgId: zod.ZodString;
|
|
25320
|
+
projectId: zod.ZodString;
|
|
25321
|
+
name: zod.ZodString;
|
|
25322
|
+
}, "strip", zod.ZodTypeAny, {
|
|
25323
|
+
name: string;
|
|
25324
|
+
orgId: string;
|
|
25325
|
+
projectId: string;
|
|
25326
|
+
}, {
|
|
25327
|
+
name: string;
|
|
25328
|
+
orgId: string;
|
|
25329
|
+
projectId: string;
|
|
25330
|
+
}>, {
|
|
25331
|
+
entity: {
|
|
25332
|
+
name: string;
|
|
25333
|
+
id: string;
|
|
25334
|
+
createdAt: string;
|
|
25335
|
+
updatedAt: string;
|
|
25336
|
+
orgId: string;
|
|
25337
|
+
projectId: string;
|
|
25338
|
+
envId: string;
|
|
25339
|
+
state: string;
|
|
25340
|
+
properties: hono_utils_types.JSONValue;
|
|
25341
|
+
entityTypeName: string;
|
|
25342
|
+
labels: hono_utils_types.JSONValue;
|
|
25343
|
+
lastSyncedAt: string | null;
|
|
25344
|
+
syncSource: string | null;
|
|
25345
|
+
};
|
|
25346
|
+
metricValue: number | null;
|
|
25347
|
+
metricName: string | null;
|
|
25348
|
+
}[]>;
|
|
25203
25349
|
};
|
|
25204
25350
|
applyRevisions: {
|
|
25205
25351
|
list: SchemaFn<zod.ZodObject<{
|
package/dist/index.js
CHANGED
|
@@ -484,6 +484,32 @@ function createEntitiesClient(projEnv) {
|
|
|
484
484
|
);
|
|
485
485
|
}
|
|
486
486
|
),
|
|
487
|
+
facets: withSchema(
|
|
488
|
+
import_zod3.z.object({
|
|
489
|
+
orgId: import_zod3.z.string().describe("Organization slug"),
|
|
490
|
+
projectId: import_zod3.z.string().describe("Project name"),
|
|
491
|
+
envName: import_zod3.z.string().describe("Environment name"),
|
|
492
|
+
kind: import_zod3.z.array(import_zod3.z.string()).optional().describe("Filter: entity type names"),
|
|
493
|
+
state: import_zod3.z.array(import_zod3.z.string()).optional().describe("Filter: states"),
|
|
494
|
+
owner: import_zod3.z.array(import_zod3.z.string()).optional().describe("Filter: owner label values ('' = unset)"),
|
|
495
|
+
cell: import_zod3.z.array(import_zod3.z.string()).optional().describe("Filter: cell label values ('' = unset)"),
|
|
496
|
+
search: import_zod3.z.string().optional().describe("Substring match on name + entity type"),
|
|
497
|
+
cellKey: import_zod3.z.string().optional().describe("Project cell label key; omit to skip the cell dimension")
|
|
498
|
+
}),
|
|
499
|
+
(params) => {
|
|
500
|
+
const { orgId, projectId, envName, kind, state, owner, cell, search, cellKey } = params;
|
|
501
|
+
const query = {};
|
|
502
|
+
if (kind?.length) query.kind = JSON.stringify(kind);
|
|
503
|
+
if (state?.length) query.state = JSON.stringify(state);
|
|
504
|
+
if (owner?.length) query.owner = JSON.stringify(owner);
|
|
505
|
+
if (cell?.length) query.cell = JSON.stringify(cell);
|
|
506
|
+
if (search) query.search = search;
|
|
507
|
+
if (cellKey) query.cellKey = cellKey;
|
|
508
|
+
return call(
|
|
509
|
+
projEnv(orgId, projectId, envName)["entities"]["facets"].$get({ query })
|
|
510
|
+
);
|
|
511
|
+
}
|
|
512
|
+
),
|
|
487
513
|
get: withSchema(
|
|
488
514
|
import_zod3.z.object({
|
|
489
515
|
orgId: import_zod3.z.string().describe("Organization slug"),
|
|
@@ -767,6 +793,18 @@ function createCellsClient(proj) {
|
|
|
767
793
|
})
|
|
768
794
|
);
|
|
769
795
|
}
|
|
796
|
+
),
|
|
797
|
+
recommendations: withSchema(
|
|
798
|
+
import_zod5.z.object({
|
|
799
|
+
orgId: import_zod5.z.string().describe("Organization slug"),
|
|
800
|
+
projectId: import_zod5.z.string().describe("Project ID"),
|
|
801
|
+
name: import_zod5.z.string().describe("Cell name")
|
|
802
|
+
}),
|
|
803
|
+
(params) => call(
|
|
804
|
+
proj(params.orgId, params.projectId)["cells"][":name"]["recommendations"].$get({
|
|
805
|
+
param: { name: params.name }
|
|
806
|
+
})
|
|
807
|
+
)
|
|
770
808
|
)
|
|
771
809
|
};
|
|
772
810
|
}
|
|
@@ -847,7 +885,8 @@ function createRelationshipsClient(projEnv) {
|
|
|
847
885
|
toEntity: import_zod6.z.string().uuid().optional().describe("Filter by to-entity ID"),
|
|
848
886
|
fromEntityCell: import_zod6.z.string().optional().describe("Filter by from-entity cell membership"),
|
|
849
887
|
toEntityCell: import_zod6.z.string().optional().describe("Filter by to-entity cell membership"),
|
|
850
|
-
limit: import_zod6.z.coerce.number().int().min(1).max(100).optional().describe("Max results (1-100)")
|
|
888
|
+
limit: import_zod6.z.coerce.number().int().min(1).max(100).optional().describe("Max results (1-100)"),
|
|
889
|
+
cursor: import_zod6.z.string().optional().describe("Pagination cursor")
|
|
851
890
|
}),
|
|
852
891
|
(params) => {
|
|
853
892
|
const { orgId, projectId, envName, ...query } = params;
|
package/dist/index.mjs
CHANGED
package/dist/local.d.mts
CHANGED
|
@@ -1744,6 +1744,55 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
|
|
|
1744
1744
|
projectId: string;
|
|
1745
1745
|
envId: string;
|
|
1746
1746
|
}[]>;
|
|
1747
|
+
facets: SchemaFn<zod.ZodObject<{
|
|
1748
|
+
orgId: zod.ZodString;
|
|
1749
|
+
projectId: zod.ZodString;
|
|
1750
|
+
envName: zod.ZodString;
|
|
1751
|
+
kind: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
1752
|
+
state: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
1753
|
+
owner: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
1754
|
+
cell: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
1755
|
+
search: zod.ZodOptional<zod.ZodString>;
|
|
1756
|
+
cellKey: zod.ZodOptional<zod.ZodString>;
|
|
1757
|
+
}, "strip", zod.ZodTypeAny, {
|
|
1758
|
+
orgId: string;
|
|
1759
|
+
projectId: string;
|
|
1760
|
+
envName: string;
|
|
1761
|
+
search?: string | undefined;
|
|
1762
|
+
owner?: string[] | undefined;
|
|
1763
|
+
cellKey?: string | undefined;
|
|
1764
|
+
state?: string[] | undefined;
|
|
1765
|
+
cell?: string[] | undefined;
|
|
1766
|
+
kind?: string[] | undefined;
|
|
1767
|
+
}, {
|
|
1768
|
+
orgId: string;
|
|
1769
|
+
projectId: string;
|
|
1770
|
+
envName: string;
|
|
1771
|
+
search?: string | undefined;
|
|
1772
|
+
owner?: string[] | undefined;
|
|
1773
|
+
cellKey?: string | undefined;
|
|
1774
|
+
state?: string[] | undefined;
|
|
1775
|
+
cell?: string[] | undefined;
|
|
1776
|
+
kind?: string[] | undefined;
|
|
1777
|
+
}>, {
|
|
1778
|
+
kind: {
|
|
1779
|
+
value: string;
|
|
1780
|
+
count: number;
|
|
1781
|
+
}[];
|
|
1782
|
+
state: {
|
|
1783
|
+
value: string;
|
|
1784
|
+
count: number;
|
|
1785
|
+
}[];
|
|
1786
|
+
owner: {
|
|
1787
|
+
value: string;
|
|
1788
|
+
count: number;
|
|
1789
|
+
}[];
|
|
1790
|
+
cell: {
|
|
1791
|
+
value: string;
|
|
1792
|
+
count: number;
|
|
1793
|
+
}[];
|
|
1794
|
+
total: number;
|
|
1795
|
+
}>;
|
|
1747
1796
|
get: SchemaFn<zod.ZodObject<{
|
|
1748
1797
|
orgId: zod.ZodString;
|
|
1749
1798
|
projectId: zod.ZodString;
|
|
@@ -2395,6 +2444,37 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
|
|
|
2395
2444
|
cellName: string;
|
|
2396
2445
|
entityName: string;
|
|
2397
2446
|
}>;
|
|
2447
|
+
recommendations: SchemaFn<zod.ZodObject<{
|
|
2448
|
+
orgId: zod.ZodString;
|
|
2449
|
+
projectId: zod.ZodString;
|
|
2450
|
+
name: zod.ZodString;
|
|
2451
|
+
}, "strip", zod.ZodTypeAny, {
|
|
2452
|
+
name: string;
|
|
2453
|
+
orgId: string;
|
|
2454
|
+
projectId: string;
|
|
2455
|
+
}, {
|
|
2456
|
+
name: string;
|
|
2457
|
+
orgId: string;
|
|
2458
|
+
projectId: string;
|
|
2459
|
+
}>, {
|
|
2460
|
+
entity: {
|
|
2461
|
+
name: string;
|
|
2462
|
+
id: string;
|
|
2463
|
+
createdAt: string;
|
|
2464
|
+
updatedAt: string;
|
|
2465
|
+
orgId: string;
|
|
2466
|
+
projectId: string;
|
|
2467
|
+
envId: string;
|
|
2468
|
+
state: string;
|
|
2469
|
+
properties: hono_utils_types.JSONValue;
|
|
2470
|
+
entityTypeName: string;
|
|
2471
|
+
labels: hono_utils_types.JSONValue;
|
|
2472
|
+
lastSyncedAt: string | null;
|
|
2473
|
+
syncSource: string | null;
|
|
2474
|
+
};
|
|
2475
|
+
metricValue: number | null;
|
|
2476
|
+
metricName: string | null;
|
|
2477
|
+
}[]>;
|
|
2398
2478
|
};
|
|
2399
2479
|
relationshipTypes: {
|
|
2400
2480
|
list: SchemaFn<zod.ZodObject<{
|
|
@@ -2745,6 +2825,7 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
|
|
|
2745
2825
|
fromEntityCell: zod.ZodOptional<zod.ZodString>;
|
|
2746
2826
|
toEntityCell: zod.ZodOptional<zod.ZodString>;
|
|
2747
2827
|
limit: zod.ZodOptional<zod.ZodNumber>;
|
|
2828
|
+
cursor: zod.ZodOptional<zod.ZodString>;
|
|
2748
2829
|
}, "strip", zod.ZodTypeAny, {
|
|
2749
2830
|
orgId: string;
|
|
2750
2831
|
projectId: string;
|
|
@@ -2752,6 +2833,7 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
|
|
|
2752
2833
|
limit?: number | undefined;
|
|
2753
2834
|
state?: string | undefined;
|
|
2754
2835
|
relationshipType?: string | undefined;
|
|
2836
|
+
cursor?: string | undefined;
|
|
2755
2837
|
fromEntity?: string | undefined;
|
|
2756
2838
|
toEntity?: string | undefined;
|
|
2757
2839
|
fromEntityCell?: string | undefined;
|
|
@@ -2763,6 +2845,7 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
|
|
|
2763
2845
|
limit?: number | undefined;
|
|
2764
2846
|
state?: string | undefined;
|
|
2765
2847
|
relationshipType?: string | undefined;
|
|
2848
|
+
cursor?: string | undefined;
|
|
2766
2849
|
fromEntity?: string | undefined;
|
|
2767
2850
|
toEntity?: string | undefined;
|
|
2768
2851
|
fromEntityCell?: string | undefined;
|
|
@@ -18452,6 +18535,37 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
|
|
|
18452
18535
|
cellName: string;
|
|
18453
18536
|
entityName: string;
|
|
18454
18537
|
}>;
|
|
18538
|
+
recommendations: SchemaFn<zod.ZodObject<{
|
|
18539
|
+
orgId: zod.ZodString;
|
|
18540
|
+
projectId: zod.ZodString;
|
|
18541
|
+
name: zod.ZodString;
|
|
18542
|
+
}, "strip", zod.ZodTypeAny, {
|
|
18543
|
+
name: string;
|
|
18544
|
+
orgId: string;
|
|
18545
|
+
projectId: string;
|
|
18546
|
+
}, {
|
|
18547
|
+
name: string;
|
|
18548
|
+
orgId: string;
|
|
18549
|
+
projectId: string;
|
|
18550
|
+
}>, {
|
|
18551
|
+
entity: {
|
|
18552
|
+
name: string;
|
|
18553
|
+
id: string;
|
|
18554
|
+
createdAt: string;
|
|
18555
|
+
updatedAt: string;
|
|
18556
|
+
orgId: string;
|
|
18557
|
+
projectId: string;
|
|
18558
|
+
envId: string;
|
|
18559
|
+
state: string;
|
|
18560
|
+
properties: hono_utils_types.JSONValue;
|
|
18561
|
+
entityTypeName: string;
|
|
18562
|
+
labels: hono_utils_types.JSONValue;
|
|
18563
|
+
lastSyncedAt: string | null;
|
|
18564
|
+
syncSource: string | null;
|
|
18565
|
+
};
|
|
18566
|
+
metricValue: number | null;
|
|
18567
|
+
metricName: string | null;
|
|
18568
|
+
}[]>;
|
|
18455
18569
|
};
|
|
18456
18570
|
applyRevisions: {
|
|
18457
18571
|
list: SchemaFn<zod.ZodObject<{
|
package/dist/local.d.ts
CHANGED
|
@@ -1744,6 +1744,55 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
|
|
|
1744
1744
|
projectId: string;
|
|
1745
1745
|
envId: string;
|
|
1746
1746
|
}[]>;
|
|
1747
|
+
facets: SchemaFn<zod.ZodObject<{
|
|
1748
|
+
orgId: zod.ZodString;
|
|
1749
|
+
projectId: zod.ZodString;
|
|
1750
|
+
envName: zod.ZodString;
|
|
1751
|
+
kind: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
1752
|
+
state: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
1753
|
+
owner: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
1754
|
+
cell: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
1755
|
+
search: zod.ZodOptional<zod.ZodString>;
|
|
1756
|
+
cellKey: zod.ZodOptional<zod.ZodString>;
|
|
1757
|
+
}, "strip", zod.ZodTypeAny, {
|
|
1758
|
+
orgId: string;
|
|
1759
|
+
projectId: string;
|
|
1760
|
+
envName: string;
|
|
1761
|
+
search?: string | undefined;
|
|
1762
|
+
owner?: string[] | undefined;
|
|
1763
|
+
cellKey?: string | undefined;
|
|
1764
|
+
state?: string[] | undefined;
|
|
1765
|
+
cell?: string[] | undefined;
|
|
1766
|
+
kind?: string[] | undefined;
|
|
1767
|
+
}, {
|
|
1768
|
+
orgId: string;
|
|
1769
|
+
projectId: string;
|
|
1770
|
+
envName: string;
|
|
1771
|
+
search?: string | undefined;
|
|
1772
|
+
owner?: string[] | undefined;
|
|
1773
|
+
cellKey?: string | undefined;
|
|
1774
|
+
state?: string[] | undefined;
|
|
1775
|
+
cell?: string[] | undefined;
|
|
1776
|
+
kind?: string[] | undefined;
|
|
1777
|
+
}>, {
|
|
1778
|
+
kind: {
|
|
1779
|
+
value: string;
|
|
1780
|
+
count: number;
|
|
1781
|
+
}[];
|
|
1782
|
+
state: {
|
|
1783
|
+
value: string;
|
|
1784
|
+
count: number;
|
|
1785
|
+
}[];
|
|
1786
|
+
owner: {
|
|
1787
|
+
value: string;
|
|
1788
|
+
count: number;
|
|
1789
|
+
}[];
|
|
1790
|
+
cell: {
|
|
1791
|
+
value: string;
|
|
1792
|
+
count: number;
|
|
1793
|
+
}[];
|
|
1794
|
+
total: number;
|
|
1795
|
+
}>;
|
|
1747
1796
|
get: SchemaFn<zod.ZodObject<{
|
|
1748
1797
|
orgId: zod.ZodString;
|
|
1749
1798
|
projectId: zod.ZodString;
|
|
@@ -2395,6 +2444,37 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
|
|
|
2395
2444
|
cellName: string;
|
|
2396
2445
|
entityName: string;
|
|
2397
2446
|
}>;
|
|
2447
|
+
recommendations: SchemaFn<zod.ZodObject<{
|
|
2448
|
+
orgId: zod.ZodString;
|
|
2449
|
+
projectId: zod.ZodString;
|
|
2450
|
+
name: zod.ZodString;
|
|
2451
|
+
}, "strip", zod.ZodTypeAny, {
|
|
2452
|
+
name: string;
|
|
2453
|
+
orgId: string;
|
|
2454
|
+
projectId: string;
|
|
2455
|
+
}, {
|
|
2456
|
+
name: string;
|
|
2457
|
+
orgId: string;
|
|
2458
|
+
projectId: string;
|
|
2459
|
+
}>, {
|
|
2460
|
+
entity: {
|
|
2461
|
+
name: string;
|
|
2462
|
+
id: string;
|
|
2463
|
+
createdAt: string;
|
|
2464
|
+
updatedAt: string;
|
|
2465
|
+
orgId: string;
|
|
2466
|
+
projectId: string;
|
|
2467
|
+
envId: string;
|
|
2468
|
+
state: string;
|
|
2469
|
+
properties: hono_utils_types.JSONValue;
|
|
2470
|
+
entityTypeName: string;
|
|
2471
|
+
labels: hono_utils_types.JSONValue;
|
|
2472
|
+
lastSyncedAt: string | null;
|
|
2473
|
+
syncSource: string | null;
|
|
2474
|
+
};
|
|
2475
|
+
metricValue: number | null;
|
|
2476
|
+
metricName: string | null;
|
|
2477
|
+
}[]>;
|
|
2398
2478
|
};
|
|
2399
2479
|
relationshipTypes: {
|
|
2400
2480
|
list: SchemaFn<zod.ZodObject<{
|
|
@@ -2745,6 +2825,7 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
|
|
|
2745
2825
|
fromEntityCell: zod.ZodOptional<zod.ZodString>;
|
|
2746
2826
|
toEntityCell: zod.ZodOptional<zod.ZodString>;
|
|
2747
2827
|
limit: zod.ZodOptional<zod.ZodNumber>;
|
|
2828
|
+
cursor: zod.ZodOptional<zod.ZodString>;
|
|
2748
2829
|
}, "strip", zod.ZodTypeAny, {
|
|
2749
2830
|
orgId: string;
|
|
2750
2831
|
projectId: string;
|
|
@@ -2752,6 +2833,7 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
|
|
|
2752
2833
|
limit?: number | undefined;
|
|
2753
2834
|
state?: string | undefined;
|
|
2754
2835
|
relationshipType?: string | undefined;
|
|
2836
|
+
cursor?: string | undefined;
|
|
2755
2837
|
fromEntity?: string | undefined;
|
|
2756
2838
|
toEntity?: string | undefined;
|
|
2757
2839
|
fromEntityCell?: string | undefined;
|
|
@@ -2763,6 +2845,7 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
|
|
|
2763
2845
|
limit?: number | undefined;
|
|
2764
2846
|
state?: string | undefined;
|
|
2765
2847
|
relationshipType?: string | undefined;
|
|
2848
|
+
cursor?: string | undefined;
|
|
2766
2849
|
fromEntity?: string | undefined;
|
|
2767
2850
|
toEntity?: string | undefined;
|
|
2768
2851
|
fromEntityCell?: string | undefined;
|
|
@@ -18452,6 +18535,37 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
|
|
|
18452
18535
|
cellName: string;
|
|
18453
18536
|
entityName: string;
|
|
18454
18537
|
}>;
|
|
18538
|
+
recommendations: SchemaFn<zod.ZodObject<{
|
|
18539
|
+
orgId: zod.ZodString;
|
|
18540
|
+
projectId: zod.ZodString;
|
|
18541
|
+
name: zod.ZodString;
|
|
18542
|
+
}, "strip", zod.ZodTypeAny, {
|
|
18543
|
+
name: string;
|
|
18544
|
+
orgId: string;
|
|
18545
|
+
projectId: string;
|
|
18546
|
+
}, {
|
|
18547
|
+
name: string;
|
|
18548
|
+
orgId: string;
|
|
18549
|
+
projectId: string;
|
|
18550
|
+
}>, {
|
|
18551
|
+
entity: {
|
|
18552
|
+
name: string;
|
|
18553
|
+
id: string;
|
|
18554
|
+
createdAt: string;
|
|
18555
|
+
updatedAt: string;
|
|
18556
|
+
orgId: string;
|
|
18557
|
+
projectId: string;
|
|
18558
|
+
envId: string;
|
|
18559
|
+
state: string;
|
|
18560
|
+
properties: hono_utils_types.JSONValue;
|
|
18561
|
+
entityTypeName: string;
|
|
18562
|
+
labels: hono_utils_types.JSONValue;
|
|
18563
|
+
lastSyncedAt: string | null;
|
|
18564
|
+
syncSource: string | null;
|
|
18565
|
+
};
|
|
18566
|
+
metricValue: number | null;
|
|
18567
|
+
metricName: string | null;
|
|
18568
|
+
}[]>;
|
|
18455
18569
|
};
|
|
18456
18570
|
applyRevisions: {
|
|
18457
18571
|
list: SchemaFn<zod.ZodObject<{
|
package/dist/local.js
CHANGED
|
@@ -484,6 +484,32 @@ function createEntitiesClient(projEnv) {
|
|
|
484
484
|
);
|
|
485
485
|
}
|
|
486
486
|
),
|
|
487
|
+
facets: withSchema(
|
|
488
|
+
import_zod3.z.object({
|
|
489
|
+
orgId: import_zod3.z.string().describe("Organization slug"),
|
|
490
|
+
projectId: import_zod3.z.string().describe("Project name"),
|
|
491
|
+
envName: import_zod3.z.string().describe("Environment name"),
|
|
492
|
+
kind: import_zod3.z.array(import_zod3.z.string()).optional().describe("Filter: entity type names"),
|
|
493
|
+
state: import_zod3.z.array(import_zod3.z.string()).optional().describe("Filter: states"),
|
|
494
|
+
owner: import_zod3.z.array(import_zod3.z.string()).optional().describe("Filter: owner label values ('' = unset)"),
|
|
495
|
+
cell: import_zod3.z.array(import_zod3.z.string()).optional().describe("Filter: cell label values ('' = unset)"),
|
|
496
|
+
search: import_zod3.z.string().optional().describe("Substring match on name + entity type"),
|
|
497
|
+
cellKey: import_zod3.z.string().optional().describe("Project cell label key; omit to skip the cell dimension")
|
|
498
|
+
}),
|
|
499
|
+
(params) => {
|
|
500
|
+
const { orgId, projectId, envName, kind, state, owner, cell, search, cellKey } = params;
|
|
501
|
+
const query = {};
|
|
502
|
+
if (kind?.length) query.kind = JSON.stringify(kind);
|
|
503
|
+
if (state?.length) query.state = JSON.stringify(state);
|
|
504
|
+
if (owner?.length) query.owner = JSON.stringify(owner);
|
|
505
|
+
if (cell?.length) query.cell = JSON.stringify(cell);
|
|
506
|
+
if (search) query.search = search;
|
|
507
|
+
if (cellKey) query.cellKey = cellKey;
|
|
508
|
+
return call(
|
|
509
|
+
projEnv(orgId, projectId, envName)["entities"]["facets"].$get({ query })
|
|
510
|
+
);
|
|
511
|
+
}
|
|
512
|
+
),
|
|
487
513
|
get: withSchema(
|
|
488
514
|
import_zod3.z.object({
|
|
489
515
|
orgId: import_zod3.z.string().describe("Organization slug"),
|
|
@@ -767,6 +793,18 @@ function createCellsClient(proj) {
|
|
|
767
793
|
})
|
|
768
794
|
);
|
|
769
795
|
}
|
|
796
|
+
),
|
|
797
|
+
recommendations: withSchema(
|
|
798
|
+
import_zod5.z.object({
|
|
799
|
+
orgId: import_zod5.z.string().describe("Organization slug"),
|
|
800
|
+
projectId: import_zod5.z.string().describe("Project ID"),
|
|
801
|
+
name: import_zod5.z.string().describe("Cell name")
|
|
802
|
+
}),
|
|
803
|
+
(params) => call(
|
|
804
|
+
proj(params.orgId, params.projectId)["cells"][":name"]["recommendations"].$get({
|
|
805
|
+
param: { name: params.name }
|
|
806
|
+
})
|
|
807
|
+
)
|
|
770
808
|
)
|
|
771
809
|
};
|
|
772
810
|
}
|
|
@@ -847,7 +885,8 @@ function createRelationshipsClient(projEnv) {
|
|
|
847
885
|
toEntity: import_zod6.z.string().uuid().optional().describe("Filter by to-entity ID"),
|
|
848
886
|
fromEntityCell: import_zod6.z.string().optional().describe("Filter by from-entity cell membership"),
|
|
849
887
|
toEntityCell: import_zod6.z.string().optional().describe("Filter by to-entity cell membership"),
|
|
850
|
-
limit: import_zod6.z.coerce.number().int().min(1).max(100).optional().describe("Max results (1-100)")
|
|
888
|
+
limit: import_zod6.z.coerce.number().int().min(1).max(100).optional().describe("Max results (1-100)"),
|
|
889
|
+
cursor: import_zod6.z.string().optional().describe("Pagination cursor")
|
|
851
890
|
}),
|
|
852
891
|
(params) => {
|
|
853
892
|
const { orgId, projectId, envName, ...query } = params;
|
package/dist/local.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@terrantula/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "TypeScript SDK for Terrantula — the multi-tenant entity-graph control plane that herds Terraform/OpenTofu cattle.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"terrantula",
|
|
@@ -60,8 +60,8 @@
|
|
|
60
60
|
"test": "bun test"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@terrantula/local": "^0.
|
|
64
|
-
"@terrantula/types": "^0.
|
|
63
|
+
"@terrantula/local": "^0.4.0",
|
|
64
|
+
"@terrantula/types": "^0.4.0",
|
|
65
65
|
"hono": "^4.4.0",
|
|
66
66
|
"zod": "^3.22.0"
|
|
67
67
|
},
|