@tai42/api-client 28.0.1 → 30.0.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/client/config-client.d.ts +1 -0
- package/dist/client/config-client.d.ts.map +1 -1
- package/dist/client/index.d.ts +16 -9
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/presets-client.d.ts +1 -0
- package/dist/client/presets-client.d.ts.map +1 -1
- package/dist/client/settings-schema-client.d.ts +13 -9
- package/dist/client/settings-schema-client.d.ts.map +1 -1
- package/dist/client/states-client.d.ts +1 -0
- package/dist/client/states-client.d.ts.map +1 -1
- package/dist/generated/openapi-schemas.d.ts +107 -3
- package/dist/generated/openapi-schemas.d.ts.map +1 -1
- package/dist/generated/openapi-schemas.js +4 -3
- package/dist/generated/openapi-schemas.js.map +1 -1
- package/dist/schemas/config.d.ts +1 -0
- package/dist/schemas/config.d.ts.map +1 -1
- package/dist/schemas/presets.d.ts +2 -0
- package/dist/schemas/presets.d.ts.map +1 -1
- package/dist/schemas/settings-schema.d.ts +24 -11
- package/dist/schemas/settings-schema.d.ts.map +1 -1
- package/dist/schemas/settings-schema.js +4 -21
- package/dist/schemas/settings-schema.js.map +1 -1
- package/package.json +1 -1
- package/src/generated/openapi-schemas.ts +6 -3
- package/src/schemas/settings-schema.ts +5 -22
package/dist/schemas/config.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/** Environment-config and config-mode response schemas. */
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
export declare const envConfig: z.ZodObject<{
|
|
4
|
+
deployment_keys: z.ZodArray<z.ZodString>;
|
|
4
5
|
env: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
5
6
|
secret_keys: z.ZodArray<z.ZodString>;
|
|
6
7
|
}, z.core.$strip>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/schemas/config.ts"],"names":[],"mappings":"AAAA,2DAA2D;AAC3D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/schemas/config.ts"],"names":[],"mappings":"AAAA,2DAA2D;AAC3D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,SAAS;;;;iBAAkB,CAAC;AAGzC;;;;;;GAMG;AACH,eAAO,MAAM,UAAU;;;iBAErB,CAAC"}
|
|
@@ -357,6 +357,7 @@ export declare const holdersPreview: z.ZodObject<{
|
|
|
357
357
|
locator: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
358
358
|
name: z.ZodString;
|
|
359
359
|
summary: z.ZodString;
|
|
360
|
+
tag: z.ZodString;
|
|
360
361
|
}, z.core.$strict>>;
|
|
361
362
|
}, z.core.$strip>;
|
|
362
363
|
export type HoldersPreview = z.infer<typeof holdersPreview>;
|
|
@@ -366,6 +367,7 @@ export declare const referenceHolder: z.ZodObject<{
|
|
|
366
367
|
locator: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
367
368
|
name: z.ZodString;
|
|
368
369
|
summary: z.ZodString;
|
|
370
|
+
tag: z.ZodString;
|
|
369
371
|
}, z.core.$strict>;
|
|
370
372
|
export type ReferenceHolder = z.infer<typeof referenceHolder>;
|
|
371
373
|
/** The preset action a holder preview answers for. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"presets.d.ts","sourceRoot":"","sources":["../../src/schemas/presets.ts"],"names":[],"mappings":"AAAA,8DAA8D;AAC9D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,2EAA2E;AAC3E,eAAO,MAAM,gBAAgB;;;qBAA2C,CAAC;AAEzE;;;;;;;;;GASG;AACH,eAAO,MAAM,YAAY;;;;;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,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAE5D,yFAAyF;AACzF,eAAO,MAAM,eAAe;;;;;;kBAA0B,CAAC;AACvD,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAE9D,sDAAsD;AACtD,MAAM,MAAM,kBAAkB,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAErD;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB;;;iBAAgC,CAAC;AAC9D,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEhE;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB;;;;iBAAkC,CAAC;AACjE,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
|
|
@@ -1,22 +1,35 @@
|
|
|
1
1
|
/** Declarative settings-form schema response. */
|
|
2
|
-
import { z } from 'zod';
|
|
2
|
+
import type { z } from 'zod';
|
|
3
3
|
export declare const settingsSchema: z.ZodObject<{
|
|
4
4
|
groups: z.ZodArray<z.ZodObject<{
|
|
5
|
-
module: z.ZodString;
|
|
6
|
-
name: z.ZodString;
|
|
7
|
-
qualname: z.ZodString;
|
|
8
5
|
fields: z.ZodArray<z.ZodObject<{
|
|
9
|
-
|
|
6
|
+
accepted_env_vars: z.ZodArray<z.ZodString>;
|
|
7
|
+
default: z.ZodDefault<z.ZodNullable<z.ZodUnknown>>;
|
|
8
|
+
default_namespace_var: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
9
|
+
description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
10
10
|
env_var: z.ZodString;
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
key_material: z.ZodDefault<z.ZodBoolean>;
|
|
12
|
+
name: z.ZodString;
|
|
13
|
+
nested_group: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
reload_class: z.ZodDefault<z.ZodEnum<{
|
|
15
|
+
recycle: "recycle";
|
|
16
|
+
hot: "hot";
|
|
17
|
+
excluded: "excluded";
|
|
18
|
+
}>>;
|
|
13
19
|
required: z.ZodBoolean;
|
|
14
20
|
secret: z.ZodBoolean;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
21
|
+
type: z.ZodString;
|
|
22
|
+
value: z.ZodUnknown;
|
|
23
|
+
value_source: z.ZodNullable<z.ZodEnum<{
|
|
24
|
+
stored: "stored";
|
|
25
|
+
deployment: "deployment";
|
|
26
|
+
default_namespace: "default_namespace";
|
|
27
|
+
field_default: "field_default";
|
|
28
|
+
}>>;
|
|
19
29
|
}, z.core.$strip>>;
|
|
30
|
+
module: z.ZodString;
|
|
31
|
+
name: z.ZodString;
|
|
32
|
+
qualname: z.ZodString;
|
|
20
33
|
}, z.core.$strip>>;
|
|
21
34
|
}, z.core.$strip>;
|
|
22
35
|
export type SettingsSchema = z.infer<typeof settingsSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings-schema.d.ts","sourceRoot":"","sources":["../../src/schemas/settings-schema.ts"],"names":[],"mappings":"AAAA,iDAAiD;AACjD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"settings-schema.d.ts","sourceRoot":"","sources":["../../src/schemas/settings-schema.ts"],"names":[],"mappings":"AAAA,iDAAiD;AACjD,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAO7B,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAA6B,CAAC;AACzD,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC"}
|
|
@@ -1,23 +1,6 @@
|
|
|
1
|
-
/** Declarative settings-form schema response. */
|
|
2
|
-
import { z } from 'zod';
|
|
3
1
|
import * as openapi from '../generated/openapi-schemas';
|
|
4
|
-
|
|
5
|
-
//
|
|
6
|
-
// the
|
|
7
|
-
|
|
8
|
-
const settingsField = z.object({
|
|
9
|
-
name: z.string(),
|
|
10
|
-
env_var: z.string(),
|
|
11
|
-
type: z.string(),
|
|
12
|
-
default: jsonValue.nullable(),
|
|
13
|
-
required: z.boolean(),
|
|
14
|
-
secret: z.boolean(),
|
|
15
|
-
description: z.string().nullable(),
|
|
16
|
-
nested_group: z.string().nullable(),
|
|
17
|
-
default_namespace_var: z.string().nullable(),
|
|
18
|
-
value: jsonValue.nullable(),
|
|
19
|
-
});
|
|
20
|
-
export const settingsSchema = openapi.settingsSchemaView.extend({
|
|
21
|
-
groups: z.array(openapi.settingsGroupView.extend({ fields: z.array(settingsField) })),
|
|
22
|
-
});
|
|
2
|
+
// The settings form is auto-rendered from the declarative group/field description the
|
|
3
|
+
// skeleton emits from its typed settings models; the spec types each field, including
|
|
4
|
+
// the `value_source` that names which layer supplied the field's `value`.
|
|
5
|
+
export const settingsSchema = openapi.settingsSchemaView;
|
|
23
6
|
//# sourceMappingURL=settings-schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings-schema.js","sourceRoot":"","sources":["../../src/schemas/settings-schema.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"settings-schema.js","sourceRoot":"","sources":["../../src/schemas/settings-schema.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,OAAO,MAAM,8BAA8B,CAAC;AAExD,sFAAsF;AACtF,sFAAsF;AACtF,0EAA0E;AAC1E,MAAM,CAAC,MAAM,cAAc,GAAG,OAAO,CAAC,kBAAkB,CAAC"}
|
package/package.json
CHANGED
|
@@ -397,7 +397,7 @@ export type DocumentVersionList = z.infer<typeof documentVersionList>;
|
|
|
397
397
|
export const envUpdate = z.object({ "env": z.record(z.string(), z.string()), "secret_keys": z.array(z.string()).nullable().default(null) }).strict();
|
|
398
398
|
export type EnvUpdate = z.infer<typeof envUpdate>;
|
|
399
399
|
|
|
400
|
-
export const envView = z.object({ "env": z.record(z.string(), z.string()), "secret_keys": z.array(z.string()) });
|
|
400
|
+
export const envView = z.object({ "deployment_keys": z.array(z.string()), "env": z.record(z.string(), z.string()), "secret_keys": z.array(z.string()) });
|
|
401
401
|
export type EnvView = z.infer<typeof envView>;
|
|
402
402
|
|
|
403
403
|
export const eraseAck = z.object({ "erased": z.boolean() });
|
|
@@ -454,7 +454,7 @@ export type FormField = z.infer<typeof formField>;
|
|
|
454
454
|
export const formMethod = z.object({ "fields": z.array(formField).min(1), "id": z.string().min(1), "purpose": z.enum(["login","invite"]).default("login"), "shape": z.literal("form").default("form"), "submit_path": z.string(), "title": z.string().min(1) }).strict();
|
|
455
455
|
export type FormMethod = z.infer<typeof formMethod>;
|
|
456
456
|
|
|
457
|
-
export const referenceHolder = z.object({ "kind": z.string().min(1), "locator": z.record(z.string(), z.union([z.string(), z.number().int()])).default({}), "name": z.string().min(1), "summary": z.string().min(1) }).strict();
|
|
457
|
+
export const referenceHolder = z.object({ "kind": z.string().min(1), "locator": z.record(z.string(), z.union([z.string(), z.number().int()])).default({}), "name": z.string().min(1), "summary": z.string().min(1), "tag": z.string().min(1) }).strict();
|
|
458
458
|
export type ReferenceHolder = z.infer<typeof referenceHolder>;
|
|
459
459
|
|
|
460
460
|
export const holdersPreview = z.object({ "action": z.enum(["rename","delete","detach"]), "holders": z.array(referenceHolder) });
|
|
@@ -1051,7 +1051,10 @@ export type SetConnectorClientRequest = z.infer<typeof setConnectorClientRequest
|
|
|
1051
1051
|
export const setMcpSecretEnv = z.object({ "key": z.string().nullable().default(null), "key_hint": z.string().nullable().default(null), "manifest_pointer": z.string(), "value": z.string() });
|
|
1052
1052
|
export type SetMcpSecretEnv = z.infer<typeof setMcpSecretEnv>;
|
|
1053
1053
|
|
|
1054
|
-
export const
|
|
1054
|
+
export const settingsFieldView = z.object({ "accepted_env_vars": z.array(z.string()), "default": z.unknown().nullable().default(null), "default_namespace_var": z.string().nullable().default(null), "description": z.string().nullable().default(null), "env_var": z.string(), "key_material": z.boolean().default(false), "name": z.string(), "nested_group": z.string().nullable().default(null), "reload_class": z.enum(["hot","recycle","excluded"]).default("hot"), "required": z.boolean(), "secret": z.boolean(), "type": z.string(), "value": jsonValue, "value_source": z.enum(["deployment","stored","default_namespace","field_default"]).nullable() });
|
|
1055
|
+
export type SettingsFieldView = z.infer<typeof settingsFieldView>;
|
|
1056
|
+
|
|
1057
|
+
export const settingsGroupView = z.object({ "fields": z.array(settingsFieldView), "module": z.string(), "name": z.string(), "qualname": z.string() });
|
|
1055
1058
|
export type SettingsGroupView = z.infer<typeof settingsGroupView>;
|
|
1056
1059
|
|
|
1057
1060
|
export const settingsSchemaView = z.object({ "groups": z.array(settingsGroupView) });
|
|
@@ -1,27 +1,10 @@
|
|
|
1
1
|
/** Declarative settings-form schema response. */
|
|
2
|
-
import { z } from 'zod';
|
|
2
|
+
import type { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
import * as openapi from '../generated/openapi-schemas';
|
|
5
|
-
import { jsonValue } from './shared';
|
|
6
5
|
|
|
7
|
-
// The settings form is auto-rendered from
|
|
8
|
-
//
|
|
9
|
-
//
|
|
10
|
-
|
|
11
|
-
const settingsField = z.object({
|
|
12
|
-
name: z.string(),
|
|
13
|
-
env_var: z.string(),
|
|
14
|
-
type: z.string(),
|
|
15
|
-
default: jsonValue.nullable(),
|
|
16
|
-
required: z.boolean(),
|
|
17
|
-
secret: z.boolean(),
|
|
18
|
-
description: z.string().nullable(),
|
|
19
|
-
nested_group: z.string().nullable(),
|
|
20
|
-
default_namespace_var: z.string().nullable(),
|
|
21
|
-
value: jsonValue.nullable(),
|
|
22
|
-
});
|
|
23
|
-
|
|
24
|
-
export const settingsSchema = openapi.settingsSchemaView.extend({
|
|
25
|
-
groups: z.array(openapi.settingsGroupView.extend({ fields: z.array(settingsField) })),
|
|
26
|
-
});
|
|
6
|
+
// The settings form is auto-rendered from the declarative group/field description the
|
|
7
|
+
// skeleton emits from its typed settings models; the spec types each field, including
|
|
8
|
+
// the `value_source` that names which layer supplied the field's `value`.
|
|
9
|
+
export const settingsSchema = openapi.settingsSchemaView;
|
|
27
10
|
export type SettingsSchema = z.infer<typeof settingsSchema>;
|