@pushwoosh/rpc-gateway-ai-assistant 0.1.226 → 0.1.228
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/data.js +65 -0
- package/package.json +1 -1
- package/pushwoosh_aibuilder_v1.d.ts +21 -1
- package/pushwoosh_llm_v1.d.ts +68 -0
- package/pushwoosh_llm_v1.js +3 -0
package/data.js
CHANGED
|
@@ -271,6 +271,14 @@ export const data = {
|
|
|
271
271
|
"backgroundGradient": {
|
|
272
272
|
"type": "pushwoosh.aibuilder.v1.BackgroundGradient",
|
|
273
273
|
"optional": true
|
|
274
|
+
},
|
|
275
|
+
"showShadow": {
|
|
276
|
+
"type": "boolean",
|
|
277
|
+
"optional": true
|
|
278
|
+
},
|
|
279
|
+
"borderRadius": {
|
|
280
|
+
"type": "number",
|
|
281
|
+
"optional": true
|
|
274
282
|
}
|
|
275
283
|
}
|
|
276
284
|
},
|
|
@@ -2406,6 +2414,63 @@ export const data = {
|
|
|
2406
2414
|
}
|
|
2407
2415
|
}
|
|
2408
2416
|
},
|
|
2417
|
+
"pushwoosh.llm.v1.LlmPolicy": {
|
|
2418
|
+
"type": "E",
|
|
2419
|
+
"values": [
|
|
2420
|
+
"LLM_POLICY_UNSPECIFIED",
|
|
2421
|
+
"LLM_POLICY_MODEL",
|
|
2422
|
+
"LLM_POLICY_CONTEXT",
|
|
2423
|
+
"LLM_POLICY_CLIENT"
|
|
2424
|
+
]
|
|
2425
|
+
},
|
|
2426
|
+
"pushwoosh.llm.v1.LlmField": {
|
|
2427
|
+
"type": "I",
|
|
2428
|
+
"fields": {
|
|
2429
|
+
"policy": {
|
|
2430
|
+
"type": "pushwoosh.llm.v1.LlmPolicy"
|
|
2431
|
+
},
|
|
2432
|
+
"pattern": {
|
|
2433
|
+
"type": "string",
|
|
2434
|
+
"optional": true
|
|
2435
|
+
},
|
|
2436
|
+
"minLength": {
|
|
2437
|
+
"type": "number",
|
|
2438
|
+
"optional": true
|
|
2439
|
+
},
|
|
2440
|
+
"minItems": {
|
|
2441
|
+
"type": "number",
|
|
2442
|
+
"optional": true
|
|
2443
|
+
},
|
|
2444
|
+
"maxItems": {
|
|
2445
|
+
"type": "number",
|
|
2446
|
+
"optional": true
|
|
2447
|
+
},
|
|
2448
|
+
"minimum": {
|
|
2449
|
+
"type": "number",
|
|
2450
|
+
"optional": true
|
|
2451
|
+
},
|
|
2452
|
+
"maximum": {
|
|
2453
|
+
"type": "number",
|
|
2454
|
+
"optional": true
|
|
2455
|
+
},
|
|
2456
|
+
"allowUnspecified": {
|
|
2457
|
+
"type": "boolean",
|
|
2458
|
+
"optional": true
|
|
2459
|
+
},
|
|
2460
|
+
"excludeValues": {
|
|
2461
|
+
"type": "string",
|
|
2462
|
+
"array": true
|
|
2463
|
+
},
|
|
2464
|
+
"variantEnum": {
|
|
2465
|
+
"type": "boolean",
|
|
2466
|
+
"optional": true
|
|
2467
|
+
},
|
|
2468
|
+
"noNull": {
|
|
2469
|
+
"type": "boolean",
|
|
2470
|
+
"optional": true
|
|
2471
|
+
}
|
|
2472
|
+
}
|
|
2473
|
+
},
|
|
2409
2474
|
"pushwoosh.templates.v1.TemplatesService": {
|
|
2410
2475
|
"type": "S",
|
|
2411
2476
|
"key": "templates",
|
package/package.json
CHANGED
|
@@ -303,6 +303,20 @@ export type DocumentSettings = {
|
|
|
303
303
|
*/
|
|
304
304
|
backgroundImage?: string;
|
|
305
305
|
backgroundGradient?: BackgroundGradient;
|
|
306
|
+
/**
|
|
307
|
+
* Soft drop shadow around the content column, rendered only when a painted
|
|
308
|
+
* backdrop (background_color / gradient / image) is present.
|
|
309
|
+
*
|
|
310
|
+
* Wire contract:
|
|
311
|
+
* - Unset = shown (the default look); false is the explicit opt-out.
|
|
312
|
+
* - Client-managed: render-only chrome, the LLM never sees this field.
|
|
313
|
+
*/
|
|
314
|
+
showShadow?: boolean;
|
|
315
|
+
/**
|
|
316
|
+
* Corner rounding of the content column, px. Unset (or 0) = square.
|
|
317
|
+
* Client-managed render-only chrome, like show_shadow.
|
|
318
|
+
*/
|
|
319
|
+
borderRadius?: number;
|
|
306
320
|
};
|
|
307
321
|
export type TextBlock = {
|
|
308
322
|
variant: string;
|
|
@@ -433,7 +447,12 @@ export type ListItem = {
|
|
|
433
447
|
*/
|
|
434
448
|
export type List = {
|
|
435
449
|
items: ListItem[];
|
|
436
|
-
/**
|
|
450
|
+
/**
|
|
451
|
+
* true = numbered (<ol>), false/unset = bulleted (<ul>).
|
|
452
|
+
* CONTEXT for now to keep the generated schema byte-compatible with the
|
|
453
|
+
* legacy hand-written one; candidate for MODEL (the block-gen prompt
|
|
454
|
+
* already promises numbered lists).
|
|
455
|
+
*/
|
|
437
456
|
ordered: boolean;
|
|
438
457
|
/**
|
|
439
458
|
* Text variant of the entries (same registry as TextBlock.variant);
|
|
@@ -690,6 +709,7 @@ export type AiBuilderColumns = {
|
|
|
690
709
|
export type AiBuilderColumn = {
|
|
691
710
|
image?: Image;
|
|
692
711
|
content: Content;
|
|
712
|
+
/** no_null: empty string (not JSON null) is this field's "unset" idiom. */
|
|
693
713
|
width?: string;
|
|
694
714
|
/**
|
|
695
715
|
* Container padding of this column, wrapping BOTH the image slot and the
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LlmPolicy is the LLM write-access class of a document field. The JSON
|
|
3
|
+
* Schema for strict structured output is generated from these annotations
|
|
4
|
+
* (internal/aibuilder/llmschema); a reachable field without one fails the
|
|
5
|
+
* build-time exhaustiveness check, so every new proto field forces an
|
|
6
|
+
* explicit decision.
|
|
7
|
+
*/
|
|
8
|
+
export type LlmPolicy =
|
|
9
|
+
/**
|
|
10
|
+
* Not classified. The schema generator refuses to build — this is the
|
|
11
|
+
* fail-loud state, never a valid annotation.
|
|
12
|
+
*/
|
|
13
|
+
'LLM_POLICY_UNSPECIFIED'
|
|
14
|
+
/**
|
|
15
|
+
* In the LLM output schema: the model sees the field and re-emits it on
|
|
16
|
+
* every (re)generation.
|
|
17
|
+
*/
|
|
18
|
+
| 'LLM_POLICY_MODEL'
|
|
19
|
+
/**
|
|
20
|
+
* Read-only context: shown to the model in <current_block> / planner
|
|
21
|
+
* summaries but absent from the output schema. Preserved in code across
|
|
22
|
+
* regeneration (preserveClientManagedFields).
|
|
23
|
+
*/
|
|
24
|
+
| 'LLM_POLICY_CONTEXT'
|
|
25
|
+
/**
|
|
26
|
+
* Invisible to the model entirely (pure client round-trip data:
|
|
27
|
+
* translations maps, media ids, user-authored code). Preserved in code.
|
|
28
|
+
*/
|
|
29
|
+
| 'LLM_POLICY_CLIENT';
|
|
30
|
+
/**
|
|
31
|
+
* LlmField carries the policy plus the JSON-Schema constraints applied when
|
|
32
|
+
* the field is rendered into the strict-output schema. Constraint fields are
|
|
33
|
+
* honoured only for policy = LLM_POLICY_MODEL.
|
|
34
|
+
*/
|
|
35
|
+
export type LlmField = {
|
|
36
|
+
policy: LlmPolicy;
|
|
37
|
+
/** String fields: regex the decoder must match (e.g. hex colours). */
|
|
38
|
+
pattern?: string;
|
|
39
|
+
/** String fields: JSON-Schema minLength. */
|
|
40
|
+
minLength?: number;
|
|
41
|
+
/** Repeated fields: JSON-Schema minItems / maxItems. */
|
|
42
|
+
minItems?: number;
|
|
43
|
+
maxItems?: number;
|
|
44
|
+
/** Numeric fields: JSON-Schema minimum / maximum. */
|
|
45
|
+
minimum?: number;
|
|
46
|
+
maximum?: number;
|
|
47
|
+
/**
|
|
48
|
+
* Enum fields: include the *_UNSPECIFIED value in the schema enum (used
|
|
49
|
+
* where UNSPECIFIED means "inherit" and is a valid model choice).
|
|
50
|
+
*/
|
|
51
|
+
allowUnspecified?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Enum fields: value names dropped from the schema enum (deprecated
|
|
54
|
+
* values kept only for wire compatibility, e.g. CARD_IMAGE_FIT_FILL).
|
|
55
|
+
*/
|
|
56
|
+
excludeValues: string[];
|
|
57
|
+
/**
|
|
58
|
+
* String fields whose enum is the document's text-variant keys, resolved
|
|
59
|
+
* per request (TextBlock.variant).
|
|
60
|
+
*/
|
|
61
|
+
variantEnum?: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* Proto-optional string fields that must NOT become nullable in the
|
|
64
|
+
* schema — empty string is the field's own "unset" idiom
|
|
65
|
+
* (AiBuilderColumn.width).
|
|
66
|
+
*/
|
|
67
|
+
noNull?: boolean;
|
|
68
|
+
};
|