@camstack/types 1.2.345 → 1.2.346
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/capabilities/training-provider.cap.d.ts +19 -2
- package/dist/index.js +16 -3
- package/dist/index.mjs +16 -3
- package/package.json +1 -1
|
@@ -101,17 +101,26 @@ export declare const TrainingProviderDescriptorSchema: z.ZodObject<{
|
|
|
101
101
|
tokenId: z.ZodOptional<z.ZodString>;
|
|
102
102
|
environment: z.ZodOptional<z.ZodString>;
|
|
103
103
|
hasTokenSecret: z.ZodOptional<z.ZodBoolean>;
|
|
104
|
+
tokenSecretView: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
105
|
+
$secret: z.ZodNullable<z.ZodString>;
|
|
106
|
+
v: z.ZodLiteral<1>;
|
|
107
|
+
set: z.ZodLiteral<true>;
|
|
108
|
+
inline: z.ZodOptional<z.ZodLiteral<true>>;
|
|
109
|
+
}, z.core.$strip>>>;
|
|
104
110
|
}, z.core.$strip>;
|
|
105
111
|
export type TrainingProviderDescriptor = z.infer<typeof TrainingProviderDescriptorSchema>;
|
|
106
112
|
/**
|
|
107
113
|
* Patch one entry's name, credentials and defaults. Pin with owning `{ addonId }`.
|
|
108
114
|
* An omitted or empty `tokenSecret` means KEEP the stored secret (D787).
|
|
115
|
+
* `{ $secretClear: true }` clears it.
|
|
109
116
|
*/
|
|
110
117
|
export declare const TrainingProviderUpdateEntryInputSchema: z.ZodObject<{
|
|
111
118
|
entryId: z.ZodString;
|
|
112
119
|
name: z.ZodString;
|
|
113
120
|
tokenId: z.ZodOptional<z.ZodString>;
|
|
114
|
-
tokenSecret: z.ZodOptional<z.ZodString
|
|
121
|
+
tokenSecret: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
122
|
+
$secretClear: z.ZodLiteral<true>;
|
|
123
|
+
}, z.core.$strip>]>>;
|
|
115
124
|
environment: z.ZodOptional<z.ZodString>;
|
|
116
125
|
gpuType: z.ZodOptional<z.ZodString>;
|
|
117
126
|
region: z.ZodOptional<z.ZodString>;
|
|
@@ -224,6 +233,12 @@ export declare const trainingProviderCapability: {
|
|
|
224
233
|
tokenId: z.ZodOptional<z.ZodString>;
|
|
225
234
|
environment: z.ZodOptional<z.ZodString>;
|
|
226
235
|
hasTokenSecret: z.ZodOptional<z.ZodBoolean>;
|
|
236
|
+
tokenSecretView: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
237
|
+
$secret: z.ZodNullable<z.ZodString>;
|
|
238
|
+
v: z.ZodLiteral<1>;
|
|
239
|
+
set: z.ZodLiteral<true>;
|
|
240
|
+
inline: z.ZodOptional<z.ZodLiteral<true>>;
|
|
241
|
+
}, z.core.$strip>>>;
|
|
227
242
|
}, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
228
243
|
/** Creatable types for the Add-entry dialog. Concat-fans. */
|
|
229
244
|
readonly describeTypes: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
@@ -264,7 +279,9 @@ export declare const trainingProviderCapability: {
|
|
|
264
279
|
entryId: z.ZodString;
|
|
265
280
|
name: z.ZodString;
|
|
266
281
|
tokenId: z.ZodOptional<z.ZodString>;
|
|
267
|
-
tokenSecret: z.ZodOptional<z.ZodString
|
|
282
|
+
tokenSecret: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
283
|
+
$secretClear: z.ZodLiteral<true>;
|
|
284
|
+
}, z.core.$strip>]>>;
|
|
268
285
|
environment: z.ZodOptional<z.ZodString>;
|
|
269
286
|
gpuType: z.ZodOptional<z.ZodString>;
|
|
270
287
|
region: z.ZodOptional<z.ZodString>;
|
package/dist/index.js
CHANGED
|
@@ -50012,21 +50012,34 @@ var TrainingProviderDescriptorSchema = zod.z.object({
|
|
|
50012
50012
|
defaults: TrainingProviderDefaultsSchema,
|
|
50013
50013
|
/**
|
|
50014
50014
|
* Non-secret account fields for the Providers form (e.g. Modal token id).
|
|
50015
|
-
*
|
|
50015
|
+
* The secret itself never appears — only a keychain {@link SecretFieldView}
|
|
50016
|
+
* (or `hasTokenSecret` for older clients).
|
|
50016
50017
|
*/
|
|
50017
50018
|
tokenId: zod.z.string().optional(),
|
|
50018
50019
|
environment: zod.z.string().optional(),
|
|
50019
|
-
hasTokenSecret: zod.z.boolean().optional()
|
|
50020
|
+
hasTokenSecret: zod.z.boolean().optional(),
|
|
50021
|
+
/**
|
|
50022
|
+
* Keychain view for the entry's token secret — for `SecretFieldControl` on
|
|
50023
|
+
* edit. Create has no view (`null` / omitted); the form uses a plain
|
|
50024
|
+
* `PasswordInput` instead.
|
|
50025
|
+
*/
|
|
50026
|
+
tokenSecretView: zod.z.object({
|
|
50027
|
+
$secret: zod.z.string().nullable(),
|
|
50028
|
+
v: zod.z.literal(1),
|
|
50029
|
+
set: zod.z.literal(true),
|
|
50030
|
+
inline: zod.z.literal(true).optional()
|
|
50031
|
+
}).nullable().optional()
|
|
50020
50032
|
});
|
|
50021
50033
|
/**
|
|
50022
50034
|
* Patch one entry's name, credentials and defaults. Pin with owning `{ addonId }`.
|
|
50023
50035
|
* An omitted or empty `tokenSecret` means KEEP the stored secret (D787).
|
|
50036
|
+
* `{ $secretClear: true }` clears it.
|
|
50024
50037
|
*/
|
|
50025
50038
|
var TrainingProviderUpdateEntryInputSchema = zod.z.object({
|
|
50026
50039
|
entryId: zod.z.string().min(1),
|
|
50027
50040
|
name: zod.z.string().min(1),
|
|
50028
50041
|
tokenId: zod.z.string().optional(),
|
|
50029
|
-
tokenSecret: zod.z.string().optional(),
|
|
50042
|
+
tokenSecret: zod.z.union([zod.z.string(), zod.z.object({ $secretClear: zod.z.literal(true) })]).optional(),
|
|
50030
50043
|
environment: zod.z.string().optional(),
|
|
50031
50044
|
gpuType: zod.z.string().optional(),
|
|
50032
50045
|
region: zod.z.string().optional(),
|
package/dist/index.mjs
CHANGED
|
@@ -50011,21 +50011,34 @@ var TrainingProviderDescriptorSchema = z.object({
|
|
|
50011
50011
|
defaults: TrainingProviderDefaultsSchema,
|
|
50012
50012
|
/**
|
|
50013
50013
|
* Non-secret account fields for the Providers form (e.g. Modal token id).
|
|
50014
|
-
*
|
|
50014
|
+
* The secret itself never appears — only a keychain {@link SecretFieldView}
|
|
50015
|
+
* (or `hasTokenSecret` for older clients).
|
|
50015
50016
|
*/
|
|
50016
50017
|
tokenId: z.string().optional(),
|
|
50017
50018
|
environment: z.string().optional(),
|
|
50018
|
-
hasTokenSecret: z.boolean().optional()
|
|
50019
|
+
hasTokenSecret: z.boolean().optional(),
|
|
50020
|
+
/**
|
|
50021
|
+
* Keychain view for the entry's token secret — for `SecretFieldControl` on
|
|
50022
|
+
* edit. Create has no view (`null` / omitted); the form uses a plain
|
|
50023
|
+
* `PasswordInput` instead.
|
|
50024
|
+
*/
|
|
50025
|
+
tokenSecretView: z.object({
|
|
50026
|
+
$secret: z.string().nullable(),
|
|
50027
|
+
v: z.literal(1),
|
|
50028
|
+
set: z.literal(true),
|
|
50029
|
+
inline: z.literal(true).optional()
|
|
50030
|
+
}).nullable().optional()
|
|
50019
50031
|
});
|
|
50020
50032
|
/**
|
|
50021
50033
|
* Patch one entry's name, credentials and defaults. Pin with owning `{ addonId }`.
|
|
50022
50034
|
* An omitted or empty `tokenSecret` means KEEP the stored secret (D787).
|
|
50035
|
+
* `{ $secretClear: true }` clears it.
|
|
50023
50036
|
*/
|
|
50024
50037
|
var TrainingProviderUpdateEntryInputSchema = z.object({
|
|
50025
50038
|
entryId: z.string().min(1),
|
|
50026
50039
|
name: z.string().min(1),
|
|
50027
50040
|
tokenId: z.string().optional(),
|
|
50028
|
-
tokenSecret: z.string().optional(),
|
|
50041
|
+
tokenSecret: z.union([z.string(), z.object({ $secretClear: z.literal(true) })]).optional(),
|
|
50029
50042
|
environment: z.string().optional(),
|
|
50030
50043
|
gpuType: z.string().optional(),
|
|
50031
50044
|
region: z.string().optional(),
|