primitive-functions 0.3.0-alpha.13 → 0.3.0-alpha.14

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 (4) hide show
  1. package/README.md +4 -0
  2. package/index.d.ts +3120 -289
  3. package/index.js +18 -0
  4. package/package.json +1 -1
package/index.js CHANGED
@@ -113,6 +113,21 @@ export function ulid() {
113
113
  throw new Error(NOT_PROVIDED);
114
114
  }
115
115
 
116
+ /** A vector's numbers as a db3 vector field's stored base64. The platform copy encodes; this refuses. */
117
+ export function encodeVector() {
118
+ throw new Error(NOT_PROVIDED);
119
+ }
120
+
121
+ /** A stored vector's numbers. The platform copy decodes; this refuses. */
122
+ export function decodeVector() {
123
+ throw new Error(NOT_PROVIDED);
124
+ }
125
+
126
+ /** A stored vector's raw bytes. The platform copy reads them; this refuses. */
127
+ export function vectorBytes() {
128
+ throw new Error(NOT_PROVIDED);
129
+ }
130
+
116
131
  /**
117
132
  * The per-family durable step policies. The stub carries an empty shape rather
118
133
  * than throwing: it is read at module scope by code that only type-checks.
@@ -187,6 +202,9 @@ export default {
187
202
  defineMutation,
188
203
  pMap,
189
204
  ulid,
205
+ encodeVector,
206
+ decodeVector,
207
+ vectorBytes,
190
208
  assertRuntime,
191
209
  assertTrigger,
192
210
  FunctionRuntimeError,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "primitive-functions",
3
- "version": "0.3.0-alpha.13",
3
+ "version": "0.3.0-alpha.14",
4
4
  "description": "The module a Primitive server function imports. Supplied by the platform at invoke time; reserved here so the name is ours before the runtime lands.",
5
5
  "license": "UNLICENSED",
6
6
  "author": "Primitive LLC",