bem-ai-sdk 0.27.0 → 0.28.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/CHANGELOG.md +11 -0
- package/package.json +1 -1
- package/resources/entities/entities.d.mts +10 -0
- package/resources/entities/entities.d.mts.map +1 -1
- package/resources/entities/entities.d.ts +10 -0
- package/resources/entities/entities.d.ts.map +1 -1
- package/resources/entities/entities.js.map +1 -1
- package/resources/entities/entities.mjs.map +1 -1
- package/resources/errors.d.mts +9 -0
- package/resources/errors.d.mts.map +1 -1
- package/resources/errors.d.ts +9 -0
- package/resources/errors.d.ts.map +1 -1
- package/resources/functions/functions.d.mts +338 -8
- package/resources/functions/functions.d.mts.map +1 -1
- package/resources/functions/functions.d.ts +338 -8
- package/resources/functions/functions.d.ts.map +1 -1
- package/resources/functions/functions.js +2 -2
- package/resources/functions/functions.js.map +1 -1
- package/resources/functions/functions.mjs +2 -2
- package/resources/functions/functions.mjs.map +1 -1
- package/resources/functions/versions.d.mts +133 -1
- package/resources/functions/versions.d.mts.map +1 -1
- package/resources/functions/versions.d.ts +133 -1
- package/resources/functions/versions.d.ts.map +1 -1
- package/resources/knowledge-graph.d.mts +18 -0
- package/resources/knowledge-graph.d.mts.map +1 -1
- package/resources/knowledge-graph.d.ts +18 -0
- package/resources/knowledge-graph.d.ts.map +1 -1
- package/resources/outputs.d.mts +80 -2
- package/resources/outputs.d.mts.map +1 -1
- package/resources/outputs.d.ts +80 -2
- package/resources/outputs.d.ts.map +1 -1
- package/resources/workflows/workflows.d.mts +8 -0
- package/resources/workflows/workflows.d.mts.map +1 -1
- package/resources/workflows/workflows.d.ts +8 -0
- package/resources/workflows/workflows.d.ts.map +1 -1
- package/resources/workflows/workflows.js.map +1 -1
- package/resources/workflows/workflows.mjs.map +1 -1
- package/src/resources/entities/entities.ts +12 -0
- package/src/resources/errors.ts +10 -0
- package/src/resources/functions/functions.ts +395 -8
- package/src/resources/functions/versions.ts +153 -1
- package/src/resources/knowledge-graph.ts +21 -0
- package/src/resources/outputs.ts +101 -1
- package/src/resources/workflows/workflows.ts +9 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -98,6 +98,13 @@ export namespace KnowledgeGraphRetrieveResponse {
|
|
|
98
98
|
*/
|
|
99
99
|
canonical: string;
|
|
100
100
|
|
|
101
|
+
/**
|
|
102
|
+
* Hops from the center node when the request centers the graph on one entity
|
|
103
|
+
* (`nodeID`). The center is depth 0. When the request is uncentered (no `nodeID`),
|
|
104
|
+
* this is 0 for every node.
|
|
105
|
+
*/
|
|
106
|
+
depth: number;
|
|
107
|
+
|
|
101
108
|
/**
|
|
102
109
|
* Total mentions of this entity across all parsed documents.
|
|
103
110
|
*/
|
|
@@ -127,6 +134,20 @@ export interface KnowledgeGraphRetrieveParams {
|
|
|
127
134
|
*/
|
|
128
135
|
limit?: number;
|
|
129
136
|
|
|
137
|
+
/**
|
|
138
|
+
* Maximum hops from the center node. Only meaningful with `nodeID`. Defaults to 2
|
|
139
|
+
* and is clamped down to a system maximum (5).
|
|
140
|
+
*/
|
|
141
|
+
maxDepth?: number;
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Center the graph on this entity (`ent_...`) and only return the subgraph within
|
|
145
|
+
* `maxDepth` hops of it; every node then carries its `depth` (hops from the
|
|
146
|
+
* center, center = 0). Omit for the uncentered whole-graph view. `rootNodeID` and
|
|
147
|
+
* `focusNodeID` are accepted as aliases.
|
|
148
|
+
*/
|
|
149
|
+
nodeID?: string;
|
|
150
|
+
|
|
130
151
|
/**
|
|
131
152
|
* Case-insensitive substring match on canonical names. Both endpoints of an edge
|
|
132
153
|
* must match for the edge (and its nodes) to be returned.
|
package/src/resources/outputs.ts
CHANGED
|
@@ -85,7 +85,8 @@ export type Event =
|
|
|
85
85
|
| Event.PayloadShapingEvent
|
|
86
86
|
| Event.EvaluationEvent
|
|
87
87
|
| Event.CollectionProcessingEvent
|
|
88
|
-
| Event.SendEvent
|
|
88
|
+
| Event.SendEvent
|
|
89
|
+
| Event.RenderEvent;
|
|
89
90
|
|
|
90
91
|
export namespace Event {
|
|
91
92
|
export interface TransformEvent {
|
|
@@ -1836,6 +1837,103 @@ export namespace Event {
|
|
|
1836
1837
|
httpStatusCode: number;
|
|
1837
1838
|
}
|
|
1838
1839
|
}
|
|
1840
|
+
|
|
1841
|
+
export interface RenderEvent {
|
|
1842
|
+
/**
|
|
1843
|
+
* Wall-clock seconds spent generating the output docx through the template.
|
|
1844
|
+
*/
|
|
1845
|
+
docxRenderSeconds: number;
|
|
1846
|
+
|
|
1847
|
+
/**
|
|
1848
|
+
* Unique ID generated by bem to identify the event.
|
|
1849
|
+
*/
|
|
1850
|
+
eventID: string;
|
|
1851
|
+
|
|
1852
|
+
/**
|
|
1853
|
+
* Unique identifier of function that this event is associated with.
|
|
1854
|
+
*/
|
|
1855
|
+
functionID: string;
|
|
1856
|
+
|
|
1857
|
+
/**
|
|
1858
|
+
* Unique name of function that this event is associated with.
|
|
1859
|
+
*/
|
|
1860
|
+
functionName: string;
|
|
1861
|
+
|
|
1862
|
+
/**
|
|
1863
|
+
* Short-lived presigned HTTPS URL the recipient can GET to download the rendered
|
|
1864
|
+
* docx. Bearer-token semantics: possession equals access. Treat as a credential —
|
|
1865
|
+
* do not log full URLs or store beyond the delivery window. The URL expires after
|
|
1866
|
+
* the platform-configured TTL; the next API serialization mints a fresh one.
|
|
1867
|
+
*/
|
|
1868
|
+
outputDownloadURL: string;
|
|
1869
|
+
|
|
1870
|
+
/**
|
|
1871
|
+
* The unique ID you use internally to refer to this data point, propagated from
|
|
1872
|
+
* the original function input.
|
|
1873
|
+
*/
|
|
1874
|
+
referenceID: string;
|
|
1875
|
+
|
|
1876
|
+
/**
|
|
1877
|
+
* Wall-clock seconds spent validating the upstream JSON against the doc-type
|
|
1878
|
+
* schema.
|
|
1879
|
+
*/
|
|
1880
|
+
validationSeconds: number;
|
|
1881
|
+
|
|
1882
|
+
/**
|
|
1883
|
+
* Unique identifier of workflow call that this event is associated with.
|
|
1884
|
+
*/
|
|
1885
|
+
callID?: string;
|
|
1886
|
+
|
|
1887
|
+
/**
|
|
1888
|
+
* Timestamp indicating when the event was created.
|
|
1889
|
+
*/
|
|
1890
|
+
createdAt?: string;
|
|
1891
|
+
|
|
1892
|
+
eventType?: 'render';
|
|
1893
|
+
|
|
1894
|
+
/**
|
|
1895
|
+
* Unique identifier of function call that this event is associated with.
|
|
1896
|
+
*/
|
|
1897
|
+
functionCallID?: string;
|
|
1898
|
+
|
|
1899
|
+
/**
|
|
1900
|
+
* The attempt number of the function call that created this event. 1 indexed.
|
|
1901
|
+
*/
|
|
1902
|
+
functionCallTryNumber?: number;
|
|
1903
|
+
|
|
1904
|
+
/**
|
|
1905
|
+
* Version number of function that this event is associated with.
|
|
1906
|
+
*/
|
|
1907
|
+
functionVersionNum?: number;
|
|
1908
|
+
|
|
1909
|
+
/**
|
|
1910
|
+
* The inbound email that triggered this event.
|
|
1911
|
+
*/
|
|
1912
|
+
inboundEmail?: ErrorsAPI.InboundEmailEvent;
|
|
1913
|
+
|
|
1914
|
+
metadata?: RenderEvent.Metadata;
|
|
1915
|
+
|
|
1916
|
+
/**
|
|
1917
|
+
* Unique identifier of workflow that this event is associated with.
|
|
1918
|
+
*/
|
|
1919
|
+
workflowID?: string;
|
|
1920
|
+
|
|
1921
|
+
/**
|
|
1922
|
+
* Name of workflow that this event is associated with.
|
|
1923
|
+
*/
|
|
1924
|
+
workflowName?: string;
|
|
1925
|
+
|
|
1926
|
+
/**
|
|
1927
|
+
* Version number of workflow that this event is associated with.
|
|
1928
|
+
*/
|
|
1929
|
+
workflowVersionNum?: number;
|
|
1930
|
+
}
|
|
1931
|
+
|
|
1932
|
+
export namespace RenderEvent {
|
|
1933
|
+
export interface Metadata {
|
|
1934
|
+
durationFunctionToEventSeconds?: number;
|
|
1935
|
+
}
|
|
1936
|
+
}
|
|
1839
1937
|
}
|
|
1840
1938
|
|
|
1841
1939
|
/**
|
|
@@ -1851,7 +1949,9 @@ export type InputType =
|
|
|
1851
1949
|
| 'json'
|
|
1852
1950
|
| 'heif'
|
|
1853
1951
|
| 'm4a'
|
|
1952
|
+
| 'mov'
|
|
1854
1953
|
| 'mp3'
|
|
1954
|
+
| 'mp4'
|
|
1855
1955
|
| 'pdf'
|
|
1856
1956
|
| 'png'
|
|
1857
1957
|
| 'text'
|
|
@@ -803,6 +803,15 @@ export interface WorkflowCallParams {
|
|
|
803
803
|
*/
|
|
804
804
|
wait?: boolean;
|
|
805
805
|
|
|
806
|
+
/**
|
|
807
|
+
* Body param: Optional bucket NAME that entities extracted by the workflow's parse
|
|
808
|
+
* function(s) land in. Resolution precedence: this call-level bucket > the parse
|
|
809
|
+
* function's configured `defaultBucket` > the account+environment default bucket.
|
|
810
|
+
* A non-existent bucket name returns 400, but only when the workflow contains a
|
|
811
|
+
* parse function; on a parse-free workflow it is ignored.
|
|
812
|
+
*/
|
|
813
|
+
bucket?: string;
|
|
814
|
+
|
|
806
815
|
/**
|
|
807
816
|
* Body param: Your reference ID for tracking this call.
|
|
808
817
|
*/
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.28.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.28.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.28.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.28.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|