@terrantula/sdk 0.9.1 → 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.
- package/dist/{chunk-OXOF623W.mjs → chunk-D2JXYF4W.mjs} +12 -0
- package/dist/index.d.mts +79 -0
- package/dist/index.d.ts +79 -0
- package/dist/index.js +12 -0
- package/dist/index.mjs +1 -1
- package/dist/local.d.mts +78 -0
- package/dist/local.d.ts +78 -0
- package/dist/local.js +12 -0
- package/dist/local.mjs +1 -1
- package/package.json +8 -8
|
@@ -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
|
@@ -2460,6 +2460,7 @@ declare const projectApp: hono_hono_base.HonoBase<{
|
|
|
2460
2460
|
syncSource: string | null;
|
|
2461
2461
|
};
|
|
2462
2462
|
metricValue: number | null;
|
|
2463
|
+
metricName: string | null;
|
|
2463
2464
|
}[];
|
|
2464
2465
|
outputFormat: "json";
|
|
2465
2466
|
status: hono_utils_http_status.ContentfulStatusCode;
|
|
@@ -8528,6 +8529,8 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
|
|
|
8528
8529
|
state: zod.ZodOptional<zod.ZodString>;
|
|
8529
8530
|
properties: zod.ZodDefault<zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>>;
|
|
8530
8531
|
labels: zod.ZodDefault<zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>>;
|
|
8532
|
+
syncSource: zod.ZodOptional<zod.ZodString>;
|
|
8533
|
+
lastSyncedAt: zod.ZodOptional<zod.ZodString>;
|
|
8531
8534
|
} & {
|
|
8532
8535
|
orgId: zod.ZodString;
|
|
8533
8536
|
projectId: zod.ZodString;
|
|
@@ -8542,6 +8545,8 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
|
|
|
8542
8545
|
kind: "Entity";
|
|
8543
8546
|
labels: Record<string, string>;
|
|
8544
8547
|
state?: string | undefined;
|
|
8548
|
+
lastSyncedAt?: string | undefined;
|
|
8549
|
+
syncSource?: string | undefined;
|
|
8545
8550
|
}, {
|
|
8546
8551
|
name: string;
|
|
8547
8552
|
orgId: string;
|
|
@@ -8552,6 +8557,8 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
|
|
|
8552
8557
|
state?: string | undefined;
|
|
8553
8558
|
properties?: Record<string, unknown> | undefined;
|
|
8554
8559
|
labels?: Record<string, string> | undefined;
|
|
8560
|
+
lastSyncedAt?: string | undefined;
|
|
8561
|
+
syncSource?: string | undefined;
|
|
8555
8562
|
}>, {
|
|
8556
8563
|
error: string;
|
|
8557
8564
|
} | {
|
|
@@ -9136,6 +9143,37 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
|
|
|
9136
9143
|
cellName: string;
|
|
9137
9144
|
entityName: string;
|
|
9138
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
|
+
}[]>;
|
|
9139
9177
|
};
|
|
9140
9178
|
relationshipTypes: {
|
|
9141
9179
|
list: SchemaFn<zod.ZodObject<{
|
|
@@ -22330,6 +22368,8 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
|
|
|
22330
22368
|
state: zod.ZodOptional<zod.ZodString>;
|
|
22331
22369
|
properties: zod.ZodDefault<zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>>;
|
|
22332
22370
|
labels: zod.ZodDefault<zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>>;
|
|
22371
|
+
syncSource: zod.ZodOptional<zod.ZodString>;
|
|
22372
|
+
lastSyncedAt: zod.ZodOptional<zod.ZodString>;
|
|
22333
22373
|
}, "strip", zod.ZodTypeAny, {
|
|
22334
22374
|
name: string;
|
|
22335
22375
|
properties: Record<string, unknown>;
|
|
@@ -22337,6 +22377,8 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
|
|
|
22337
22377
|
kind: "Entity";
|
|
22338
22378
|
labels: Record<string, string>;
|
|
22339
22379
|
state?: string | undefined;
|
|
22380
|
+
lastSyncedAt?: string | undefined;
|
|
22381
|
+
syncSource?: string | undefined;
|
|
22340
22382
|
}, {
|
|
22341
22383
|
name: string;
|
|
22342
22384
|
entityType: string;
|
|
@@ -22344,6 +22386,8 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
|
|
|
22344
22386
|
state?: string | undefined;
|
|
22345
22387
|
properties?: Record<string, unknown> | undefined;
|
|
22346
22388
|
labels?: Record<string, string> | undefined;
|
|
22389
|
+
lastSyncedAt?: string | undefined;
|
|
22390
|
+
syncSource?: string | undefined;
|
|
22347
22391
|
}>, zod.ZodObject<{
|
|
22348
22392
|
kind: zod.ZodLiteral<"Relationship">;
|
|
22349
22393
|
relationshipType: zod.ZodString;
|
|
@@ -22947,6 +22991,8 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
|
|
|
22947
22991
|
kind: "Entity";
|
|
22948
22992
|
labels: Record<string, string>;
|
|
22949
22993
|
state?: string | undefined;
|
|
22994
|
+
lastSyncedAt?: string | undefined;
|
|
22995
|
+
syncSource?: string | undefined;
|
|
22950
22996
|
} | {
|
|
22951
22997
|
from: string;
|
|
22952
22998
|
properties: Record<string, unknown>;
|
|
@@ -23510,6 +23556,8 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
|
|
|
23510
23556
|
state?: string | undefined;
|
|
23511
23557
|
properties?: Record<string, unknown> | undefined;
|
|
23512
23558
|
labels?: Record<string, string> | undefined;
|
|
23559
|
+
lastSyncedAt?: string | undefined;
|
|
23560
|
+
syncSource?: string | undefined;
|
|
23513
23561
|
} | {
|
|
23514
23562
|
from: string;
|
|
23515
23563
|
relationshipType: string;
|
|
@@ -25183,6 +25231,37 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
|
|
|
25183
25231
|
cellName: string;
|
|
25184
25232
|
entityName: string;
|
|
25185
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
|
+
}[]>;
|
|
25186
25265
|
};
|
|
25187
25266
|
applyRevisions: {
|
|
25188
25267
|
list: SchemaFn<zod.ZodObject<{
|
package/dist/index.d.ts
CHANGED
|
@@ -2460,6 +2460,7 @@ declare const projectApp: hono_hono_base.HonoBase<{
|
|
|
2460
2460
|
syncSource: string | null;
|
|
2461
2461
|
};
|
|
2462
2462
|
metricValue: number | null;
|
|
2463
|
+
metricName: string | null;
|
|
2463
2464
|
}[];
|
|
2464
2465
|
outputFormat: "json";
|
|
2465
2466
|
status: hono_utils_http_status.ContentfulStatusCode;
|
|
@@ -8528,6 +8529,8 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
|
|
|
8528
8529
|
state: zod.ZodOptional<zod.ZodString>;
|
|
8529
8530
|
properties: zod.ZodDefault<zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>>;
|
|
8530
8531
|
labels: zod.ZodDefault<zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>>;
|
|
8532
|
+
syncSource: zod.ZodOptional<zod.ZodString>;
|
|
8533
|
+
lastSyncedAt: zod.ZodOptional<zod.ZodString>;
|
|
8531
8534
|
} & {
|
|
8532
8535
|
orgId: zod.ZodString;
|
|
8533
8536
|
projectId: zod.ZodString;
|
|
@@ -8542,6 +8545,8 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
|
|
|
8542
8545
|
kind: "Entity";
|
|
8543
8546
|
labels: Record<string, string>;
|
|
8544
8547
|
state?: string | undefined;
|
|
8548
|
+
lastSyncedAt?: string | undefined;
|
|
8549
|
+
syncSource?: string | undefined;
|
|
8545
8550
|
}, {
|
|
8546
8551
|
name: string;
|
|
8547
8552
|
orgId: string;
|
|
@@ -8552,6 +8557,8 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
|
|
|
8552
8557
|
state?: string | undefined;
|
|
8553
8558
|
properties?: Record<string, unknown> | undefined;
|
|
8554
8559
|
labels?: Record<string, string> | undefined;
|
|
8560
|
+
lastSyncedAt?: string | undefined;
|
|
8561
|
+
syncSource?: string | undefined;
|
|
8555
8562
|
}>, {
|
|
8556
8563
|
error: string;
|
|
8557
8564
|
} | {
|
|
@@ -9136,6 +9143,37 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
|
|
|
9136
9143
|
cellName: string;
|
|
9137
9144
|
entityName: string;
|
|
9138
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
|
+
}[]>;
|
|
9139
9177
|
};
|
|
9140
9178
|
relationshipTypes: {
|
|
9141
9179
|
list: SchemaFn<zod.ZodObject<{
|
|
@@ -22330,6 +22368,8 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
|
|
|
22330
22368
|
state: zod.ZodOptional<zod.ZodString>;
|
|
22331
22369
|
properties: zod.ZodDefault<zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>>;
|
|
22332
22370
|
labels: zod.ZodDefault<zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>>;
|
|
22371
|
+
syncSource: zod.ZodOptional<zod.ZodString>;
|
|
22372
|
+
lastSyncedAt: zod.ZodOptional<zod.ZodString>;
|
|
22333
22373
|
}, "strip", zod.ZodTypeAny, {
|
|
22334
22374
|
name: string;
|
|
22335
22375
|
properties: Record<string, unknown>;
|
|
@@ -22337,6 +22377,8 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
|
|
|
22337
22377
|
kind: "Entity";
|
|
22338
22378
|
labels: Record<string, string>;
|
|
22339
22379
|
state?: string | undefined;
|
|
22380
|
+
lastSyncedAt?: string | undefined;
|
|
22381
|
+
syncSource?: string | undefined;
|
|
22340
22382
|
}, {
|
|
22341
22383
|
name: string;
|
|
22342
22384
|
entityType: string;
|
|
@@ -22344,6 +22386,8 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
|
|
|
22344
22386
|
state?: string | undefined;
|
|
22345
22387
|
properties?: Record<string, unknown> | undefined;
|
|
22346
22388
|
labels?: Record<string, string> | undefined;
|
|
22389
|
+
lastSyncedAt?: string | undefined;
|
|
22390
|
+
syncSource?: string | undefined;
|
|
22347
22391
|
}>, zod.ZodObject<{
|
|
22348
22392
|
kind: zod.ZodLiteral<"Relationship">;
|
|
22349
22393
|
relationshipType: zod.ZodString;
|
|
@@ -22947,6 +22991,8 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
|
|
|
22947
22991
|
kind: "Entity";
|
|
22948
22992
|
labels: Record<string, string>;
|
|
22949
22993
|
state?: string | undefined;
|
|
22994
|
+
lastSyncedAt?: string | undefined;
|
|
22995
|
+
syncSource?: string | undefined;
|
|
22950
22996
|
} | {
|
|
22951
22997
|
from: string;
|
|
22952
22998
|
properties: Record<string, unknown>;
|
|
@@ -23510,6 +23556,8 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
|
|
|
23510
23556
|
state?: string | undefined;
|
|
23511
23557
|
properties?: Record<string, unknown> | undefined;
|
|
23512
23558
|
labels?: Record<string, string> | undefined;
|
|
23559
|
+
lastSyncedAt?: string | undefined;
|
|
23560
|
+
syncSource?: string | undefined;
|
|
23513
23561
|
} | {
|
|
23514
23562
|
from: string;
|
|
23515
23563
|
relationshipType: string;
|
|
@@ -25183,6 +25231,37 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
|
|
|
25183
25231
|
cellName: string;
|
|
25184
25232
|
entityName: string;
|
|
25185
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
|
+
}[]>;
|
|
25186
25265
|
};
|
|
25187
25266
|
applyRevisions: {
|
|
25188
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
package/dist/local.d.mts
CHANGED
|
@@ -1781,6 +1781,8 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
|
|
|
1781
1781
|
state: zod.ZodOptional<zod.ZodString>;
|
|
1782
1782
|
properties: zod.ZodDefault<zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>>;
|
|
1783
1783
|
labels: zod.ZodDefault<zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>>;
|
|
1784
|
+
syncSource: zod.ZodOptional<zod.ZodString>;
|
|
1785
|
+
lastSyncedAt: zod.ZodOptional<zod.ZodString>;
|
|
1784
1786
|
} & {
|
|
1785
1787
|
orgId: zod.ZodString;
|
|
1786
1788
|
projectId: zod.ZodString;
|
|
@@ -1795,6 +1797,8 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
|
|
|
1795
1797
|
kind: "Entity";
|
|
1796
1798
|
labels: Record<string, string>;
|
|
1797
1799
|
state?: string | undefined;
|
|
1800
|
+
lastSyncedAt?: string | undefined;
|
|
1801
|
+
syncSource?: string | undefined;
|
|
1798
1802
|
}, {
|
|
1799
1803
|
name: string;
|
|
1800
1804
|
orgId: string;
|
|
@@ -1805,6 +1809,8 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
|
|
|
1805
1809
|
state?: string | undefined;
|
|
1806
1810
|
properties?: Record<string, unknown> | undefined;
|
|
1807
1811
|
labels?: Record<string, string> | undefined;
|
|
1812
|
+
lastSyncedAt?: string | undefined;
|
|
1813
|
+
syncSource?: string | undefined;
|
|
1808
1814
|
}>, {
|
|
1809
1815
|
error: string;
|
|
1810
1816
|
} | {
|
|
@@ -2389,6 +2395,37 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
|
|
|
2389
2395
|
cellName: string;
|
|
2390
2396
|
entityName: string;
|
|
2391
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
|
+
}[]>;
|
|
2392
2429
|
};
|
|
2393
2430
|
relationshipTypes: {
|
|
2394
2431
|
list: SchemaFn<zod.ZodObject<{
|
|
@@ -15583,6 +15620,8 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
|
|
|
15583
15620
|
state: zod.ZodOptional<zod.ZodString>;
|
|
15584
15621
|
properties: zod.ZodDefault<zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>>;
|
|
15585
15622
|
labels: zod.ZodDefault<zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>>;
|
|
15623
|
+
syncSource: zod.ZodOptional<zod.ZodString>;
|
|
15624
|
+
lastSyncedAt: zod.ZodOptional<zod.ZodString>;
|
|
15586
15625
|
}, "strip", zod.ZodTypeAny, {
|
|
15587
15626
|
name: string;
|
|
15588
15627
|
properties: Record<string, unknown>;
|
|
@@ -15590,6 +15629,8 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
|
|
|
15590
15629
|
kind: "Entity";
|
|
15591
15630
|
labels: Record<string, string>;
|
|
15592
15631
|
state?: string | undefined;
|
|
15632
|
+
lastSyncedAt?: string | undefined;
|
|
15633
|
+
syncSource?: string | undefined;
|
|
15593
15634
|
}, {
|
|
15594
15635
|
name: string;
|
|
15595
15636
|
entityType: string;
|
|
@@ -15597,6 +15638,8 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
|
|
|
15597
15638
|
state?: string | undefined;
|
|
15598
15639
|
properties?: Record<string, unknown> | undefined;
|
|
15599
15640
|
labels?: Record<string, string> | undefined;
|
|
15641
|
+
lastSyncedAt?: string | undefined;
|
|
15642
|
+
syncSource?: string | undefined;
|
|
15600
15643
|
}>, zod.ZodObject<{
|
|
15601
15644
|
kind: zod.ZodLiteral<"Relationship">;
|
|
15602
15645
|
relationshipType: zod.ZodString;
|
|
@@ -16200,6 +16243,8 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
|
|
|
16200
16243
|
kind: "Entity";
|
|
16201
16244
|
labels: Record<string, string>;
|
|
16202
16245
|
state?: string | undefined;
|
|
16246
|
+
lastSyncedAt?: string | undefined;
|
|
16247
|
+
syncSource?: string | undefined;
|
|
16203
16248
|
} | {
|
|
16204
16249
|
from: string;
|
|
16205
16250
|
properties: Record<string, unknown>;
|
|
@@ -16763,6 +16808,8 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
|
|
|
16763
16808
|
state?: string | undefined;
|
|
16764
16809
|
properties?: Record<string, unknown> | undefined;
|
|
16765
16810
|
labels?: Record<string, string> | undefined;
|
|
16811
|
+
lastSyncedAt?: string | undefined;
|
|
16812
|
+
syncSource?: string | undefined;
|
|
16766
16813
|
} | {
|
|
16767
16814
|
from: string;
|
|
16768
16815
|
relationshipType: string;
|
|
@@ -18436,6 +18483,37 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
|
|
|
18436
18483
|
cellName: string;
|
|
18437
18484
|
entityName: string;
|
|
18438
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
|
+
}[]>;
|
|
18439
18517
|
};
|
|
18440
18518
|
applyRevisions: {
|
|
18441
18519
|
list: SchemaFn<zod.ZodObject<{
|
package/dist/local.d.ts
CHANGED
|
@@ -1781,6 +1781,8 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
|
|
|
1781
1781
|
state: zod.ZodOptional<zod.ZodString>;
|
|
1782
1782
|
properties: zod.ZodDefault<zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>>;
|
|
1783
1783
|
labels: zod.ZodDefault<zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>>;
|
|
1784
|
+
syncSource: zod.ZodOptional<zod.ZodString>;
|
|
1785
|
+
lastSyncedAt: zod.ZodOptional<zod.ZodString>;
|
|
1784
1786
|
} & {
|
|
1785
1787
|
orgId: zod.ZodString;
|
|
1786
1788
|
projectId: zod.ZodString;
|
|
@@ -1795,6 +1797,8 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
|
|
|
1795
1797
|
kind: "Entity";
|
|
1796
1798
|
labels: Record<string, string>;
|
|
1797
1799
|
state?: string | undefined;
|
|
1800
|
+
lastSyncedAt?: string | undefined;
|
|
1801
|
+
syncSource?: string | undefined;
|
|
1798
1802
|
}, {
|
|
1799
1803
|
name: string;
|
|
1800
1804
|
orgId: string;
|
|
@@ -1805,6 +1809,8 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
|
|
|
1805
1809
|
state?: string | undefined;
|
|
1806
1810
|
properties?: Record<string, unknown> | undefined;
|
|
1807
1811
|
labels?: Record<string, string> | undefined;
|
|
1812
|
+
lastSyncedAt?: string | undefined;
|
|
1813
|
+
syncSource?: string | undefined;
|
|
1808
1814
|
}>, {
|
|
1809
1815
|
error: string;
|
|
1810
1816
|
} | {
|
|
@@ -2389,6 +2395,37 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
|
|
|
2389
2395
|
cellName: string;
|
|
2390
2396
|
entityName: string;
|
|
2391
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
|
+
}[]>;
|
|
2392
2429
|
};
|
|
2393
2430
|
relationshipTypes: {
|
|
2394
2431
|
list: SchemaFn<zod.ZodObject<{
|
|
@@ -15583,6 +15620,8 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
|
|
|
15583
15620
|
state: zod.ZodOptional<zod.ZodString>;
|
|
15584
15621
|
properties: zod.ZodDefault<zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>>;
|
|
15585
15622
|
labels: zod.ZodDefault<zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>>;
|
|
15623
|
+
syncSource: zod.ZodOptional<zod.ZodString>;
|
|
15624
|
+
lastSyncedAt: zod.ZodOptional<zod.ZodString>;
|
|
15586
15625
|
}, "strip", zod.ZodTypeAny, {
|
|
15587
15626
|
name: string;
|
|
15588
15627
|
properties: Record<string, unknown>;
|
|
@@ -15590,6 +15629,8 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
|
|
|
15590
15629
|
kind: "Entity";
|
|
15591
15630
|
labels: Record<string, string>;
|
|
15592
15631
|
state?: string | undefined;
|
|
15632
|
+
lastSyncedAt?: string | undefined;
|
|
15633
|
+
syncSource?: string | undefined;
|
|
15593
15634
|
}, {
|
|
15594
15635
|
name: string;
|
|
15595
15636
|
entityType: string;
|
|
@@ -15597,6 +15638,8 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
|
|
|
15597
15638
|
state?: string | undefined;
|
|
15598
15639
|
properties?: Record<string, unknown> | undefined;
|
|
15599
15640
|
labels?: Record<string, string> | undefined;
|
|
15641
|
+
lastSyncedAt?: string | undefined;
|
|
15642
|
+
syncSource?: string | undefined;
|
|
15600
15643
|
}>, zod.ZodObject<{
|
|
15601
15644
|
kind: zod.ZodLiteral<"Relationship">;
|
|
15602
15645
|
relationshipType: zod.ZodString;
|
|
@@ -16200,6 +16243,8 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
|
|
|
16200
16243
|
kind: "Entity";
|
|
16201
16244
|
labels: Record<string, string>;
|
|
16202
16245
|
state?: string | undefined;
|
|
16246
|
+
lastSyncedAt?: string | undefined;
|
|
16247
|
+
syncSource?: string | undefined;
|
|
16203
16248
|
} | {
|
|
16204
16249
|
from: string;
|
|
16205
16250
|
properties: Record<string, unknown>;
|
|
@@ -16763,6 +16808,8 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
|
|
|
16763
16808
|
state?: string | undefined;
|
|
16764
16809
|
properties?: Record<string, unknown> | undefined;
|
|
16765
16810
|
labels?: Record<string, string> | undefined;
|
|
16811
|
+
lastSyncedAt?: string | undefined;
|
|
16812
|
+
syncSource?: string | undefined;
|
|
16766
16813
|
} | {
|
|
16767
16814
|
from: string;
|
|
16768
16815
|
relationshipType: string;
|
|
@@ -18436,6 +18483,37 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
|
|
|
18436
18483
|
cellName: string;
|
|
18437
18484
|
entityName: string;
|
|
18438
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
|
+
}[]>;
|
|
18439
18517
|
};
|
|
18440
18518
|
applyRevisions: {
|
|
18441
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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@terrantula/sdk",
|
|
3
|
-
"version": "0.
|
|
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",
|
|
@@ -60,17 +60,17 @@
|
|
|
60
60
|
"test": "bun test"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@terrantula/local": "^0.
|
|
64
|
-
"@terrantula/types": "^0.
|
|
63
|
+
"@terrantula/local": "^0.3.0",
|
|
64
|
+
"@terrantula/types": "^0.3.0",
|
|
65
65
|
"hono": "^4.4.0",
|
|
66
66
|
"zod": "^3.22.0"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
|
-
"@terrantula/api": "
|
|
70
|
-
"@terrantula/auth": "
|
|
71
|
-
"@terrantula/orgs": "
|
|
72
|
-
"@terrantula/projects": "
|
|
73
|
-
"@terrantula/github": "
|
|
69
|
+
"@terrantula/api": "0.1.0",
|
|
70
|
+
"@terrantula/auth": "0.1.0",
|
|
71
|
+
"@terrantula/orgs": "0.1.0",
|
|
72
|
+
"@terrantula/projects": "0.1.0",
|
|
73
|
+
"@terrantula/github": "0.1.0",
|
|
74
74
|
"bun-types": "latest",
|
|
75
75
|
"tsup": "^8.0.0",
|
|
76
76
|
"typescript": "^5.4.0"
|