@terrantula/sdk 0.8.0 → 0.9.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-NVHWMOWP.mjs → chunk-OXOF623W.mjs} +128 -114
- package/dist/index.d.mts +430 -246
- package/dist/index.d.ts +430 -246
- package/dist/index.js +128 -114
- package/dist/index.mjs +1 -1
- package/dist/local.d.mts +301 -209
- package/dist/local.d.ts +301 -209
- package/dist/local.js +128 -114
- package/dist/local.mjs +1 -1
- package/dist/{projects-BxDuMQLR.d.mts → projects-CT3fGCOp.d.mts} +2 -2
- package/dist/{projects-BxDuMQLR.d.ts → projects-CT3fGCOp.d.ts} +2 -2
- package/package.json +3 -3
package/dist/local.mjs
CHANGED
|
@@ -6,10 +6,10 @@ declare class TerrantulaError extends Error {
|
|
|
6
6
|
readonly body: unknown;
|
|
7
7
|
constructor(status: number, body: unknown);
|
|
8
8
|
}
|
|
9
|
-
type SchemaFn<S extends z.ZodObject<z.ZodRawShape>, R> = ((params: z.
|
|
9
|
+
type SchemaFn<S extends z.ZodObject<z.ZodRawShape>, R> = ((params: z.input<S>) => Promise<R>) & {
|
|
10
10
|
readonly schema: S;
|
|
11
11
|
};
|
|
12
|
-
declare function withSchema<S extends z.ZodObject<z.ZodRawShape>, R>(schema: S, fn: (params: z.
|
|
12
|
+
declare function withSchema<S extends z.ZodObject<z.ZodRawShape>, R>(schema: S, fn: (params: z.input<S>) => Promise<R>): SchemaFn<S, R>;
|
|
13
13
|
/** A static token string or a (possibly async) factory that returns one. */
|
|
14
14
|
type TokenSource = string | (() => string | Promise<string>);
|
|
15
15
|
|
|
@@ -6,10 +6,10 @@ declare class TerrantulaError extends Error {
|
|
|
6
6
|
readonly body: unknown;
|
|
7
7
|
constructor(status: number, body: unknown);
|
|
8
8
|
}
|
|
9
|
-
type SchemaFn<S extends z.ZodObject<z.ZodRawShape>, R> = ((params: z.
|
|
9
|
+
type SchemaFn<S extends z.ZodObject<z.ZodRawShape>, R> = ((params: z.input<S>) => Promise<R>) & {
|
|
10
10
|
readonly schema: S;
|
|
11
11
|
};
|
|
12
|
-
declare function withSchema<S extends z.ZodObject<z.ZodRawShape>, R>(schema: S, fn: (params: z.
|
|
12
|
+
declare function withSchema<S extends z.ZodObject<z.ZodRawShape>, R>(schema: S, fn: (params: z.input<S>) => Promise<R>): SchemaFn<S, R>;
|
|
13
13
|
/** A static token string or a (possibly async) factory that returns one. */
|
|
14
14
|
type TokenSource = string | (() => string | Promise<string>);
|
|
15
15
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@terrantula/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.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.0
|
|
64
|
-
"@terrantula/types": "^0.2.
|
|
63
|
+
"@terrantula/local": "^0.1.0",
|
|
64
|
+
"@terrantula/types": "^0.2.1",
|
|
65
65
|
"hono": "^4.4.0",
|
|
66
66
|
"zod": "^3.22.0"
|
|
67
67
|
},
|