@pushwoosh/rpc-v2-http-api-data 0.2.121 → 0.2.123
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/accounts.d.ts +13 -3
- package/data.js +1883 -0
- package/inbound_webhooks.d.ts +3 -0
- package/package.json +1 -1
- package/pushwoosh_aibuilder_v1.d.ts +1491 -0
- package/pushwoosh_aibuilder_v1.js +3 -0
- package/pushwoosh_llm_v1.d.ts +68 -0
- package/pushwoosh_llm_v1.js +3 -0
|
@@ -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
|
+
};
|