@terrantula/sdk 0.9.2 → 0.10.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.
@@ -744,6 +744,18 @@ function createCellsClient(proj) {
744
744
  })
745
745
  );
746
746
  }
747
+ ),
748
+ recommendations: withSchema(
749
+ z5.object({
750
+ orgId: z5.string().describe("Organization slug"),
751
+ projectId: z5.string().describe("Project ID"),
752
+ name: z5.string().describe("Cell name")
753
+ }),
754
+ (params) => call(
755
+ proj(params.orgId, params.projectId)["cells"][":name"]["recommendations"].$get({
756
+ param: { name: params.name }
757
+ })
758
+ )
747
759
  )
748
760
  };
749
761
  }
package/dist/index.d.mts CHANGED
@@ -9143,6 +9143,37 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
9143
9143
  cellName: string;
9144
9144
  entityName: string;
9145
9145
  }>;
9146
+ recommendations: SchemaFn<zod.ZodObject<{
9147
+ orgId: zod.ZodString;
9148
+ projectId: zod.ZodString;
9149
+ name: zod.ZodString;
9150
+ }, "strip", zod.ZodTypeAny, {
9151
+ name: string;
9152
+ orgId: string;
9153
+ projectId: string;
9154
+ }, {
9155
+ name: string;
9156
+ orgId: string;
9157
+ projectId: string;
9158
+ }>, {
9159
+ entity: {
9160
+ name: string;
9161
+ id: string;
9162
+ createdAt: string;
9163
+ updatedAt: string;
9164
+ orgId: string;
9165
+ projectId: string;
9166
+ envId: string;
9167
+ state: string;
9168
+ properties: hono_utils_types.JSONValue;
9169
+ entityTypeName: string;
9170
+ labels: hono_utils_types.JSONValue;
9171
+ lastSyncedAt: string | null;
9172
+ syncSource: string | null;
9173
+ };
9174
+ metricValue: number | null;
9175
+ metricName: string | null;
9176
+ }[]>;
9146
9177
  };
9147
9178
  relationshipTypes: {
9148
9179
  list: SchemaFn<zod.ZodObject<{
@@ -25200,6 +25231,37 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
25200
25231
  cellName: string;
25201
25232
  entityName: string;
25202
25233
  }>;
25234
+ recommendations: SchemaFn<zod.ZodObject<{
25235
+ orgId: zod.ZodString;
25236
+ projectId: zod.ZodString;
25237
+ name: zod.ZodString;
25238
+ }, "strip", zod.ZodTypeAny, {
25239
+ name: string;
25240
+ orgId: string;
25241
+ projectId: string;
25242
+ }, {
25243
+ name: string;
25244
+ orgId: string;
25245
+ projectId: string;
25246
+ }>, {
25247
+ entity: {
25248
+ name: string;
25249
+ id: string;
25250
+ createdAt: string;
25251
+ updatedAt: string;
25252
+ orgId: string;
25253
+ projectId: string;
25254
+ envId: string;
25255
+ state: string;
25256
+ properties: hono_utils_types.JSONValue;
25257
+ entityTypeName: string;
25258
+ labels: hono_utils_types.JSONValue;
25259
+ lastSyncedAt: string | null;
25260
+ syncSource: string | null;
25261
+ };
25262
+ metricValue: number | null;
25263
+ metricName: string | null;
25264
+ }[]>;
25203
25265
  };
25204
25266
  applyRevisions: {
25205
25267
  list: SchemaFn<zod.ZodObject<{
package/dist/index.d.ts CHANGED
@@ -9143,6 +9143,37 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
9143
9143
  cellName: string;
9144
9144
  entityName: string;
9145
9145
  }>;
9146
+ recommendations: SchemaFn<zod.ZodObject<{
9147
+ orgId: zod.ZodString;
9148
+ projectId: zod.ZodString;
9149
+ name: zod.ZodString;
9150
+ }, "strip", zod.ZodTypeAny, {
9151
+ name: string;
9152
+ orgId: string;
9153
+ projectId: string;
9154
+ }, {
9155
+ name: string;
9156
+ orgId: string;
9157
+ projectId: string;
9158
+ }>, {
9159
+ entity: {
9160
+ name: string;
9161
+ id: string;
9162
+ createdAt: string;
9163
+ updatedAt: string;
9164
+ orgId: string;
9165
+ projectId: string;
9166
+ envId: string;
9167
+ state: string;
9168
+ properties: hono_utils_types.JSONValue;
9169
+ entityTypeName: string;
9170
+ labels: hono_utils_types.JSONValue;
9171
+ lastSyncedAt: string | null;
9172
+ syncSource: string | null;
9173
+ };
9174
+ metricValue: number | null;
9175
+ metricName: string | null;
9176
+ }[]>;
9146
9177
  };
9147
9178
  relationshipTypes: {
9148
9179
  list: SchemaFn<zod.ZodObject<{
@@ -25200,6 +25231,37 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
25200
25231
  cellName: string;
25201
25232
  entityName: string;
25202
25233
  }>;
25234
+ recommendations: SchemaFn<zod.ZodObject<{
25235
+ orgId: zod.ZodString;
25236
+ projectId: zod.ZodString;
25237
+ name: zod.ZodString;
25238
+ }, "strip", zod.ZodTypeAny, {
25239
+ name: string;
25240
+ orgId: string;
25241
+ projectId: string;
25242
+ }, {
25243
+ name: string;
25244
+ orgId: string;
25245
+ projectId: string;
25246
+ }>, {
25247
+ entity: {
25248
+ name: string;
25249
+ id: string;
25250
+ createdAt: string;
25251
+ updatedAt: string;
25252
+ orgId: string;
25253
+ projectId: string;
25254
+ envId: string;
25255
+ state: string;
25256
+ properties: hono_utils_types.JSONValue;
25257
+ entityTypeName: string;
25258
+ labels: hono_utils_types.JSONValue;
25259
+ lastSyncedAt: string | null;
25260
+ syncSource: string | null;
25261
+ };
25262
+ metricValue: number | null;
25263
+ metricName: string | null;
25264
+ }[]>;
25203
25265
  };
25204
25266
  applyRevisions: {
25205
25267
  list: SchemaFn<zod.ZodObject<{
package/dist/index.js CHANGED
@@ -767,6 +767,18 @@ function createCellsClient(proj) {
767
767
  })
768
768
  );
769
769
  }
770
+ ),
771
+ recommendations: withSchema(
772
+ import_zod5.z.object({
773
+ orgId: import_zod5.z.string().describe("Organization slug"),
774
+ projectId: import_zod5.z.string().describe("Project ID"),
775
+ name: import_zod5.z.string().describe("Cell name")
776
+ }),
777
+ (params) => call(
778
+ proj(params.orgId, params.projectId)["cells"][":name"]["recommendations"].$get({
779
+ param: { name: params.name }
780
+ })
781
+ )
770
782
  )
771
783
  };
772
784
  }
package/dist/index.mjs CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  TerrantulaError,
3
3
  createClient,
4
4
  withSchema
5
- } from "./chunk-OXOF623W.mjs";
5
+ } from "./chunk-D2JXYF4W.mjs";
6
6
  export {
7
7
  TerrantulaError,
8
8
  createClient,
package/dist/local.d.mts CHANGED
@@ -2395,6 +2395,37 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
2395
2395
  cellName: string;
2396
2396
  entityName: string;
2397
2397
  }>;
2398
+ recommendations: SchemaFn<zod.ZodObject<{
2399
+ orgId: zod.ZodString;
2400
+ projectId: zod.ZodString;
2401
+ name: zod.ZodString;
2402
+ }, "strip", zod.ZodTypeAny, {
2403
+ name: string;
2404
+ orgId: string;
2405
+ projectId: string;
2406
+ }, {
2407
+ name: string;
2408
+ orgId: string;
2409
+ projectId: string;
2410
+ }>, {
2411
+ entity: {
2412
+ name: string;
2413
+ id: string;
2414
+ createdAt: string;
2415
+ updatedAt: string;
2416
+ orgId: string;
2417
+ projectId: string;
2418
+ envId: string;
2419
+ state: string;
2420
+ properties: hono_utils_types.JSONValue;
2421
+ entityTypeName: string;
2422
+ labels: hono_utils_types.JSONValue;
2423
+ lastSyncedAt: string | null;
2424
+ syncSource: string | null;
2425
+ };
2426
+ metricValue: number | null;
2427
+ metricName: string | null;
2428
+ }[]>;
2398
2429
  };
2399
2430
  relationshipTypes: {
2400
2431
  list: SchemaFn<zod.ZodObject<{
@@ -18452,6 +18483,37 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
18452
18483
  cellName: string;
18453
18484
  entityName: string;
18454
18485
  }>;
18486
+ recommendations: SchemaFn<zod.ZodObject<{
18487
+ orgId: zod.ZodString;
18488
+ projectId: zod.ZodString;
18489
+ name: zod.ZodString;
18490
+ }, "strip", zod.ZodTypeAny, {
18491
+ name: string;
18492
+ orgId: string;
18493
+ projectId: string;
18494
+ }, {
18495
+ name: string;
18496
+ orgId: string;
18497
+ projectId: string;
18498
+ }>, {
18499
+ entity: {
18500
+ name: string;
18501
+ id: string;
18502
+ createdAt: string;
18503
+ updatedAt: string;
18504
+ orgId: string;
18505
+ projectId: string;
18506
+ envId: string;
18507
+ state: string;
18508
+ properties: hono_utils_types.JSONValue;
18509
+ entityTypeName: string;
18510
+ labels: hono_utils_types.JSONValue;
18511
+ lastSyncedAt: string | null;
18512
+ syncSource: string | null;
18513
+ };
18514
+ metricValue: number | null;
18515
+ metricName: string | null;
18516
+ }[]>;
18455
18517
  };
18456
18518
  applyRevisions: {
18457
18519
  list: SchemaFn<zod.ZodObject<{
package/dist/local.d.ts CHANGED
@@ -2395,6 +2395,37 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
2395
2395
  cellName: string;
2396
2396
  entityName: string;
2397
2397
  }>;
2398
+ recommendations: SchemaFn<zod.ZodObject<{
2399
+ orgId: zod.ZodString;
2400
+ projectId: zod.ZodString;
2401
+ name: zod.ZodString;
2402
+ }, "strip", zod.ZodTypeAny, {
2403
+ name: string;
2404
+ orgId: string;
2405
+ projectId: string;
2406
+ }, {
2407
+ name: string;
2408
+ orgId: string;
2409
+ projectId: string;
2410
+ }>, {
2411
+ entity: {
2412
+ name: string;
2413
+ id: string;
2414
+ createdAt: string;
2415
+ updatedAt: string;
2416
+ orgId: string;
2417
+ projectId: string;
2418
+ envId: string;
2419
+ state: string;
2420
+ properties: hono_utils_types.JSONValue;
2421
+ entityTypeName: string;
2422
+ labels: hono_utils_types.JSONValue;
2423
+ lastSyncedAt: string | null;
2424
+ syncSource: string | null;
2425
+ };
2426
+ metricValue: number | null;
2427
+ metricName: string | null;
2428
+ }[]>;
2398
2429
  };
2399
2430
  relationshipTypes: {
2400
2431
  list: SchemaFn<zod.ZodObject<{
@@ -18452,6 +18483,37 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
18452
18483
  cellName: string;
18453
18484
  entityName: string;
18454
18485
  }>;
18486
+ recommendations: SchemaFn<zod.ZodObject<{
18487
+ orgId: zod.ZodString;
18488
+ projectId: zod.ZodString;
18489
+ name: zod.ZodString;
18490
+ }, "strip", zod.ZodTypeAny, {
18491
+ name: string;
18492
+ orgId: string;
18493
+ projectId: string;
18494
+ }, {
18495
+ name: string;
18496
+ orgId: string;
18497
+ projectId: string;
18498
+ }>, {
18499
+ entity: {
18500
+ name: string;
18501
+ id: string;
18502
+ createdAt: string;
18503
+ updatedAt: string;
18504
+ orgId: string;
18505
+ projectId: string;
18506
+ envId: string;
18507
+ state: string;
18508
+ properties: hono_utils_types.JSONValue;
18509
+ entityTypeName: string;
18510
+ labels: hono_utils_types.JSONValue;
18511
+ lastSyncedAt: string | null;
18512
+ syncSource: string | null;
18513
+ };
18514
+ metricValue: number | null;
18515
+ metricName: string | null;
18516
+ }[]>;
18455
18517
  };
18456
18518
  applyRevisions: {
18457
18519
  list: SchemaFn<zod.ZodObject<{
package/dist/local.js CHANGED
@@ -767,6 +767,18 @@ function createCellsClient(proj) {
767
767
  })
768
768
  );
769
769
  }
770
+ ),
771
+ recommendations: withSchema(
772
+ import_zod5.z.object({
773
+ orgId: import_zod5.z.string().describe("Organization slug"),
774
+ projectId: import_zod5.z.string().describe("Project ID"),
775
+ name: import_zod5.z.string().describe("Cell name")
776
+ }),
777
+ (params) => call(
778
+ proj(params.orgId, params.projectId)["cells"][":name"]["recommendations"].$get({
779
+ param: { name: params.name }
780
+ })
781
+ )
770
782
  )
771
783
  };
772
784
  }
package/dist/local.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createClient
3
- } from "./chunk-OXOF623W.mjs";
3
+ } from "./chunk-D2JXYF4W.mjs";
4
4
 
5
5
  // src/local.ts
6
6
  import { createLocalApp, openLocalDb } from "@terrantula/local";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@terrantula/sdk",
3
- "version": "0.9.2",
3
+ "version": "0.10.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",