@pellux/goodvibes-contracts 0.30.2 → 0.33.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.
Files changed (37) hide show
  1. package/README.md +2 -2
  2. package/artifacts/operator-contract.json +41 -418
  3. package/dist/generated/foundation-client-types.d.ts +18 -72
  4. package/dist/generated/foundation-client-types.d.ts.map +1 -1
  5. package/dist/generated/foundation-metadata.d.ts +2 -2
  6. package/dist/generated/foundation-metadata.js +2 -2
  7. package/dist/generated/operator-contract.d.ts.map +1 -1
  8. package/dist/generated/operator-contract.js +41 -418
  9. package/dist/generated/operator-method-ids.d.ts +1 -1
  10. package/dist/generated/operator-method-ids.d.ts.map +1 -1
  11. package/dist/generated/operator-method-ids.js +0 -1
  12. package/dist/generated/runtime-event-domains.d.ts +8 -0
  13. package/dist/generated/runtime-event-domains.d.ts.map +1 -1
  14. package/dist/index.d.ts +4 -3
  15. package/dist/index.d.ts.map +1 -1
  16. package/dist/index.js +38 -6
  17. package/dist/node.d.ts.map +1 -1
  18. package/dist/node.js +26 -2
  19. package/dist/types.d.ts +30 -22
  20. package/dist/types.d.ts.map +1 -1
  21. package/dist/types.js +7 -1
  22. package/dist/zod-schemas/accounts.d.ts +4 -4
  23. package/dist/zod-schemas/accounts.d.ts.map +1 -1
  24. package/dist/zod-schemas/accounts.js +4 -4
  25. package/dist/zod-schemas/events.d.ts +5 -5
  26. package/dist/zod-schemas/events.d.ts.map +1 -1
  27. package/dist/zod-schemas/events.js +4 -3
  28. package/dist/zod-schemas/index.d.ts +2 -2
  29. package/dist/zod-schemas/index.d.ts.map +1 -1
  30. package/dist/zod-schemas/index.js +1 -1
  31. package/dist/zod-schemas/providers.d.ts +30 -30
  32. package/dist/zod-schemas/providers.d.ts.map +1 -1
  33. package/dist/zod-schemas/providers.js +19 -19
  34. package/dist/zod-schemas/session.d.ts +17 -10
  35. package/dist/zod-schemas/session.d.ts.map +1 -1
  36. package/dist/zod-schemas/session.js +20 -6
  37. package/package.json +3 -2
@@ -1,17 +1,17 @@
1
1
  import { z } from 'zod/v4';
2
2
  /**
3
- * Schemas for the provider/model discovery and selection HTTP API.
3
+ * Schemas for the model catalog and global model-selection HTTP API.
4
4
  *
5
5
  * Endpoints:
6
- * GET /api/providersListProvidersResponseSchema
7
- * GET /api/providers/current → CurrentModelResponseSchema
8
- * PATCH /api/providers/current → PatchCurrentModelBodySchema (request) / CurrentModelResponseSchema (response)
6
+ * GET /api/modelsListProviderModelsResponseSchema
7
+ * GET /api/models/current → CurrentModelResponseSchema
8
+ * PATCH /api/models/current → PatchCurrentModelBodySchema (request) / CurrentModelResponseSchema (response)
9
9
  */
10
10
  export declare const ProviderModelRefSchema: z.ZodObject<{
11
11
  registryKey: z.ZodString;
12
12
  provider: z.ZodString;
13
13
  id: z.ZodString;
14
- }, z.core.$strip>;
14
+ }, z.core.$strict>;
15
15
  export type ProviderModelRef = z.infer<typeof ProviderModelRefSchema>;
16
16
  export declare const ProviderModelEntrySchema: z.ZodObject<{
17
17
  id: z.ZodString;
@@ -19,7 +19,7 @@ export declare const ProviderModelEntrySchema: z.ZodObject<{
19
19
  provider: z.ZodString;
20
20
  label: z.ZodOptional<z.ZodString>;
21
21
  contextWindow: z.ZodOptional<z.ZodNumber>;
22
- }, z.core.$strip>;
22
+ }, z.core.$strict>;
23
23
  export type ProviderModelEntry = z.infer<typeof ProviderModelEntrySchema>;
24
24
  export declare const ConfiguredViaSchema: z.ZodEnum<{
25
25
  anonymous: "anonymous";
@@ -53,9 +53,9 @@ export declare const ProviderAuthRouteDescriptorSchema: z.ZodObject<{
53
53
  serviceNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
54
54
  providerId: z.ZodOptional<z.ZodString>;
55
55
  repairHints: z.ZodOptional<z.ZodArray<z.ZodString>>;
56
- }, z.core.$strip>;
56
+ }, z.core.$strict>;
57
57
  export type ProviderAuthRouteDescriptor = z.infer<typeof ProviderAuthRouteDescriptorSchema>;
58
- export declare const ProviderEntrySchema: z.ZodObject<{
58
+ export declare const ProviderModelProviderSchema: z.ZodObject<{
59
59
  id: z.ZodString;
60
60
  label: z.ZodString;
61
61
  configured: z.ZodBoolean;
@@ -91,17 +91,17 @@ export declare const ProviderEntrySchema: z.ZodObject<{
91
91
  serviceNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
92
92
  providerId: z.ZodOptional<z.ZodString>;
93
93
  repairHints: z.ZodOptional<z.ZodArray<z.ZodString>>;
94
- }, z.core.$strip>>>;
94
+ }, z.core.$strict>>>;
95
95
  models: z.ZodArray<z.ZodObject<{
96
96
  id: z.ZodString;
97
97
  registryKey: z.ZodString;
98
98
  provider: z.ZodString;
99
99
  label: z.ZodOptional<z.ZodString>;
100
100
  contextWindow: z.ZodOptional<z.ZodNumber>;
101
- }, z.core.$strip>>;
102
- }, z.core.$strip>;
103
- export type ProviderEntry = z.infer<typeof ProviderEntrySchema>;
104
- export declare const ListProvidersResponseSchema: z.ZodObject<{
101
+ }, z.core.$strict>>;
102
+ }, z.core.$strict>;
103
+ export type ProviderModelProvider = z.infer<typeof ProviderModelProviderSchema>;
104
+ export declare const ListProviderModelsResponseSchema: z.ZodObject<{
105
105
  providers: z.ZodArray<z.ZodObject<{
106
106
  id: z.ZodString;
107
107
  label: z.ZodString;
@@ -138,29 +138,29 @@ export declare const ListProvidersResponseSchema: z.ZodObject<{
138
138
  serviceNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
139
139
  providerId: z.ZodOptional<z.ZodString>;
140
140
  repairHints: z.ZodOptional<z.ZodArray<z.ZodString>>;
141
- }, z.core.$strip>>>;
141
+ }, z.core.$strict>>>;
142
142
  models: z.ZodArray<z.ZodObject<{
143
143
  id: z.ZodString;
144
144
  registryKey: z.ZodString;
145
145
  provider: z.ZodString;
146
146
  label: z.ZodOptional<z.ZodString>;
147
147
  contextWindow: z.ZodOptional<z.ZodNumber>;
148
- }, z.core.$strip>>;
149
- }, z.core.$strip>>;
148
+ }, z.core.$strict>>;
149
+ }, z.core.$strict>>;
150
150
  currentModel: z.ZodNullable<z.ZodObject<{
151
151
  registryKey: z.ZodString;
152
152
  provider: z.ZodString;
153
153
  id: z.ZodString;
154
- }, z.core.$strip>>;
155
- secretsResolutionSkipped: z.ZodOptional<z.ZodBoolean>;
156
- }, z.core.$strip>;
157
- export type ListProvidersResponse = z.infer<typeof ListProvidersResponseSchema>;
154
+ }, z.core.$strict>>;
155
+ secretsResolutionSkipped: z.ZodBoolean;
156
+ }, z.core.$strict>;
157
+ export type ListProviderModelsResponse = z.infer<typeof ListProviderModelsResponseSchema>;
158
158
  export declare const CurrentModelResponseSchema: z.ZodObject<{
159
159
  model: z.ZodNullable<z.ZodObject<{
160
160
  registryKey: z.ZodString;
161
161
  provider: z.ZodString;
162
162
  id: z.ZodString;
163
- }, z.core.$strip>>;
163
+ }, z.core.$strict>>;
164
164
  configured: z.ZodBoolean;
165
165
  configuredVia: z.ZodOptional<z.ZodEnum<{
166
166
  anonymous: "anonymous";
@@ -193,12 +193,12 @@ export declare const CurrentModelResponseSchema: z.ZodObject<{
193
193
  serviceNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
194
194
  providerId: z.ZodOptional<z.ZodString>;
195
195
  repairHints: z.ZodOptional<z.ZodArray<z.ZodString>>;
196
- }, z.core.$strip>>>;
197
- }, z.core.$strip>;
196
+ }, z.core.$strict>>>;
197
+ }, z.core.$strict>;
198
198
  export type CurrentModelResponse = z.infer<typeof CurrentModelResponseSchema>;
199
199
  export declare const PatchCurrentModelBodySchema: z.ZodObject<{
200
200
  registryKey: z.ZodString;
201
- }, z.core.$strip>;
201
+ }, z.core.$strict>;
202
202
  export type PatchCurrentModelBody = z.infer<typeof PatchCurrentModelBodySchema>;
203
203
  export declare const PatchCurrentModelErrorSchema: z.ZodObject<{
204
204
  error: z.ZodString;
@@ -209,14 +209,14 @@ export declare const PatchCurrentModelErrorSchema: z.ZodObject<{
209
209
  SET_MODEL_FAILED: "SET_MODEL_FAILED";
210
210
  }>;
211
211
  missingEnvVars: z.ZodOptional<z.ZodArray<z.ZodString>>;
212
- }, z.core.$strip>;
212
+ }, z.core.$strict>;
213
213
  export type PatchCurrentModelError = z.infer<typeof PatchCurrentModelErrorSchema>;
214
214
  export declare const PatchCurrentModelResponseSchema: z.ZodObject<{
215
215
  model: z.ZodNullable<z.ZodObject<{
216
216
  registryKey: z.ZodString;
217
217
  provider: z.ZodString;
218
218
  id: z.ZodString;
219
- }, z.core.$strip>>;
219
+ }, z.core.$strict>>;
220
220
  configured: z.ZodBoolean;
221
221
  configuredVia: z.ZodOptional<z.ZodEnum<{
222
222
  anonymous: "anonymous";
@@ -249,9 +249,9 @@ export declare const PatchCurrentModelResponseSchema: z.ZodObject<{
249
249
  serviceNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
250
250
  providerId: z.ZodOptional<z.ZodString>;
251
251
  repairHints: z.ZodOptional<z.ZodArray<z.ZodString>>;
252
- }, z.core.$strip>>>;
252
+ }, z.core.$strict>>>;
253
253
  persisted: z.ZodBoolean;
254
- }, z.core.$strip>;
254
+ }, z.core.$strict>;
255
255
  export type PatchCurrentModelResponse = z.infer<typeof PatchCurrentModelResponseSchema>;
256
256
  /**
257
257
  * SSE event shape emitted on `model.changed` events.
@@ -265,7 +265,7 @@ export declare const ModelChangedEventSchema: z.ZodObject<{
265
265
  previous: z.ZodOptional<z.ZodObject<{
266
266
  registryKey: z.ZodString;
267
267
  provider: z.ZodString;
268
- }, z.core.$strip>>;
269
- }, z.core.$strip>;
268
+ }, z.core.$strict>>;
269
+ }, z.core.$strict>;
270
270
  export type ModelChangedEvent = z.infer<typeof ModelChangedEventSchema>;
271
271
  //# sourceMappingURL=providers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"providers.d.ts","sourceRoot":"","sources":["../../src/zod-schemas/providers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B;;;;;;;GAOG;AAEH,eAAO,MAAM,sBAAsB;;;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,CAAC,CAAC;AAEhF,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAIlC,CAAC;AACZ,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC;AAE1F,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAK5B,CAAC;AACZ,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E,eAAO,MAAM,2BAA2B;;kBAE7B,CAAC;AACZ,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF,eAAO,MAAM,4BAA4B;;;;;;;;;kBAI9B,CAAC;AACZ,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAElF,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAEjC,CAAC;AACZ,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AAExF;;;;GAIG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;kBAQzB,CAAC;AACZ,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
@@ -1,24 +1,24 @@
1
1
  import { z } from 'zod/v4';
2
2
  /**
3
- * Schemas for the provider/model discovery and selection HTTP API.
3
+ * Schemas for the model catalog and global model-selection HTTP API.
4
4
  *
5
5
  * Endpoints:
6
- * GET /api/providersListProvidersResponseSchema
7
- * GET /api/providers/current → CurrentModelResponseSchema
8
- * PATCH /api/providers/current → PatchCurrentModelBodySchema (request) / CurrentModelResponseSchema (response)
6
+ * GET /api/modelsListProviderModelsResponseSchema
7
+ * GET /api/models/current → CurrentModelResponseSchema
8
+ * PATCH /api/models/current → PatchCurrentModelBodySchema (request) / CurrentModelResponseSchema (response)
9
9
  */
10
10
  export const ProviderModelRefSchema = z.object({
11
11
  registryKey: z.string(),
12
12
  provider: z.string(),
13
13
  id: z.string(),
14
- });
14
+ }).strict();
15
15
  export const ProviderModelEntrySchema = z.object({
16
16
  id: z.string(),
17
17
  registryKey: z.string(),
18
18
  provider: z.string(),
19
19
  label: z.string().optional(),
20
20
  contextWindow: z.number().optional(),
21
- });
21
+ }).strict();
22
22
  export const ConfiguredViaSchema = z.enum(['env', 'secrets', 'subscription', 'anonymous']);
23
23
  export const ProviderAuthRouteDescriptorSchema = z.object({
24
24
  route: z.enum(['api-key', 'secret-ref', 'service-oauth', 'subscription-oauth', 'anonymous', 'none']),
@@ -32,8 +32,8 @@ export const ProviderAuthRouteDescriptorSchema = z.object({
32
32
  serviceNames: z.array(z.string()).optional(),
33
33
  providerId: z.string().optional(),
34
34
  repairHints: z.array(z.string()).optional(),
35
- });
36
- export const ProviderEntrySchema = z.object({
35
+ }).strict();
36
+ export const ProviderModelProviderSchema = z.object({
37
37
  id: z.string(),
38
38
  label: z.string(),
39
39
  configured: z.boolean(),
@@ -41,29 +41,29 @@ export const ProviderEntrySchema = z.object({
41
41
  envVars: z.array(z.string()),
42
42
  routes: z.array(ProviderAuthRouteDescriptorSchema).optional(),
43
43
  models: z.array(ProviderModelEntrySchema),
44
- });
45
- export const ListProvidersResponseSchema = z.object({
46
- providers: z.array(ProviderEntrySchema),
44
+ }).strict();
45
+ export const ListProviderModelsResponseSchema = z.object({
46
+ providers: z.array(ProviderModelProviderSchema),
47
47
  currentModel: ProviderModelRefSchema.nullable(),
48
- secretsResolutionSkipped: z.boolean().optional(),
49
- });
48
+ secretsResolutionSkipped: z.boolean(),
49
+ }).strict();
50
50
  export const CurrentModelResponseSchema = z.object({
51
51
  model: ProviderModelRefSchema.nullable(),
52
52
  configured: z.boolean(),
53
53
  configuredVia: ConfiguredViaSchema.optional(),
54
54
  routes: z.array(ProviderAuthRouteDescriptorSchema).optional(),
55
- });
55
+ }).strict();
56
56
  export const PatchCurrentModelBodySchema = z.object({
57
57
  registryKey: z.string().min(1),
58
- });
58
+ }).strict();
59
59
  export const PatchCurrentModelErrorSchema = z.object({
60
60
  error: z.string(),
61
61
  code: z.enum(['INVALID_REQUEST', 'MODEL_NOT_FOUND', 'PROVIDER_NOT_CONFIGURED', 'SET_MODEL_FAILED']),
62
62
  missingEnvVars: z.array(z.string()).optional(),
63
- });
63
+ }).strict();
64
64
  export const PatchCurrentModelResponseSchema = CurrentModelResponseSchema.extend({
65
65
  persisted: z.boolean(),
66
- });
66
+ }).strict();
67
67
  /**
68
68
  * SSE event shape emitted on `model.changed` events.
69
69
  *
@@ -76,5 +76,5 @@ export const ModelChangedEventSchema = z.object({
76
76
  previous: z.object({
77
77
  registryKey: z.string(),
78
78
  provider: z.string(),
79
- }).optional(),
80
- });
79
+ }).strict().optional(),
80
+ }).strict();
@@ -1,22 +1,29 @@
1
1
  import { z } from 'zod/v4';
2
2
  /**
3
- * Minimal schema for `control.status` response.
3
+ * Schema for `control.status` response.
4
4
  *
5
5
  * Matches `OperatorMethodOutputMap["control.status"]`.
6
6
  */
7
7
  export declare const ControlStatusResponseSchema: z.ZodObject<{
8
8
  status: z.ZodString;
9
9
  version: z.ZodString;
10
- }, z.core.$strip>;
10
+ }, z.core.$strict>;
11
11
  export type ControlStatusResponse = z.infer<typeof ControlStatusResponseSchema>;
12
- /**
13
- * Minimal schema for `local_auth.status` response.
14
- *
15
- * Matches `OperatorMethodOutputMap["local_auth.status"]`.
16
- */
17
12
  export declare const LocalAuthStatusResponseSchema: z.ZodObject<{
18
- enabled: z.ZodOptional<z.ZodBoolean>;
19
- bootstrapped: z.ZodOptional<z.ZodBoolean>;
20
- }, z.core.$catchall<z.ZodUnknown>>;
13
+ userStorePath: z.ZodString;
14
+ bootstrapCredentialPath: z.ZodString;
15
+ bootstrapCredentialPresent: z.ZodBoolean;
16
+ userCount: z.ZodNumber;
17
+ sessionCount: z.ZodNumber;
18
+ users: z.ZodArray<z.ZodObject<{
19
+ username: z.ZodString;
20
+ roles: z.ZodArray<z.ZodString>;
21
+ }, z.core.$strict>>;
22
+ sessions: z.ZodArray<z.ZodObject<{
23
+ tokenFingerprint: z.ZodString;
24
+ username: z.ZodString;
25
+ expiresAt: z.ZodNumber;
26
+ }, z.core.$strict>>;
27
+ }, z.core.$strict>;
21
28
  export type LocalAuthStatusResponse = z.infer<typeof LocalAuthStatusResponseSchema>;
22
29
  //# sourceMappingURL=session.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../src/zod-schemas/session.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B;;;;GAIG;AACH,eAAO,MAAM,2BAA2B;;;iBAGtC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF;;;;GAIG;AACH,eAAO,MAAM,6BAA6B;;;kCAGlB,CAAC;AAEzB,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC"}
1
+ {"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../src/zod-schemas/session.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B;;;;GAIG;AACH,eAAO,MAAM,2BAA2B;;;kBAG7B,CAAC;AAEZ,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAkBhF,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;kBAQ/B,CAAC;AAEZ,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC"}
@@ -1,19 +1,33 @@
1
1
  import { z } from 'zod/v4';
2
2
  /**
3
- * Minimal schema for `control.status` response.
3
+ * Schema for `control.status` response.
4
4
  *
5
5
  * Matches `OperatorMethodOutputMap["control.status"]`.
6
6
  */
7
7
  export const ControlStatusResponseSchema = z.object({
8
8
  status: z.string(),
9
9
  version: z.string(),
10
- });
10
+ }).strict();
11
11
  /**
12
- * Minimal schema for `local_auth.status` response.
12
+ * Schema for `local_auth.status` response.
13
13
  *
14
14
  * Matches `OperatorMethodOutputMap["local_auth.status"]`.
15
15
  */
16
+ const LocalAuthUserSchema = z.object({
17
+ username: z.string(),
18
+ roles: z.array(z.string()),
19
+ }).strict();
20
+ const LocalAuthSessionSchema = z.object({
21
+ tokenFingerprint: z.string(),
22
+ username: z.string(),
23
+ expiresAt: z.number(),
24
+ }).strict();
16
25
  export const LocalAuthStatusResponseSchema = z.object({
17
- enabled: z.boolean().optional(),
18
- bootstrapped: z.boolean().optional(),
19
- }).catchall(z.unknown());
26
+ userStorePath: z.string(),
27
+ bootstrapCredentialPath: z.string(),
28
+ bootstrapCredentialPresent: z.boolean(),
29
+ userCount: z.number(),
30
+ sessionCount: z.number(),
31
+ users: z.array(LocalAuthUserSchema),
32
+ sessions: z.array(LocalAuthSessionSchema),
33
+ }).strict();
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "@pellux/goodvibes-contracts",
3
- "version": "0.30.2",
3
+ "version": "0.33.0",
4
4
  "engines": {
5
- "node": ">=20.0.0"
5
+ "bun": "1.3.10",
6
+ "node": ">=22.0.0"
6
7
  },
7
8
  "description": "Runtime-neutral GoodVibes operator and peer contract artifacts, generated ids, and lookup helpers.",
8
9
  "type": "module",