@adaptic/lumic-utils 1.0.14 → 1.0.15

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 (29) hide show
  1. package/dist/{apollo-client.client-Lu1K9ohp.js → apollo-client.client-DLlWTxt5.js} +4 -5
  2. package/dist/{apollo-client.client-YFsBF7bL.js.map → apollo-client.client-DLlWTxt5.js.map} +1 -1
  3. package/dist/{apollo-client.client-YFsBF7bL.js → apollo-client.client-DcvDB-WD.js} +3 -4
  4. package/dist/{apollo-client.client-Lu1K9ohp.js.map → apollo-client.client-DcvDB-WD.js.map} +1 -1
  5. package/dist/{apollo-client.server-CAtwy7W4.js → apollo-client.server-D9uTrgax.js} +3 -4
  6. package/dist/{apollo-client.server-CWrxRFr9.js.map → apollo-client.server-D9uTrgax.js.map} +1 -1
  7. package/dist/{apollo-client.server-CWrxRFr9.js → apollo-client.server-DqSN1Fiy.js} +3 -4
  8. package/dist/{apollo-client.server-CAtwy7W4.js.map → apollo-client.server-DqSN1Fiy.js.map} +1 -1
  9. package/dist/{index-DT2sMbfH.js → index-BD1cU0P8.js} +5434 -210
  10. package/dist/index-BD1cU0P8.js.map +1 -0
  11. package/dist/{index-CZkVRs3j.js → index-CwQjKm5M.js} +5401 -177
  12. package/dist/index-CwQjKm5M.js.map +1 -0
  13. package/dist/{index-Bc3hrZJm.js → index-YK3guTNp.js} +2 -2
  14. package/dist/{index-Bc3hrZJm.js.map → index-YK3guTNp.js.map} +1 -1
  15. package/dist/{index-DZUGtDjj.js → index-b_XLaqK-.js} +2 -2
  16. package/dist/{index-DZUGtDjj.js.map → index-b_XLaqK-.js.map} +1 -1
  17. package/dist/index.cjs +1 -2
  18. package/dist/index.cjs.map +1 -1
  19. package/dist/index.mjs +1 -2
  20. package/dist/index.mjs.map +1 -1
  21. package/dist/test.cjs +1 -2
  22. package/dist/test.cjs.map +1 -1
  23. package/dist/test.mjs +1 -2
  24. package/dist/test.mjs.map +1 -1
  25. package/dist/types/schemas/openai-schemas.d.ts +20 -20
  26. package/dist/types/schemas/perplexity-schemas.d.ts +40 -40
  27. package/package.json +1 -1
  28. package/dist/index-CZkVRs3j.js.map +0 -1
  29. package/dist/index-DT2sMbfH.js.map +0 -1
@@ -16,43 +16,43 @@ export declare const perplexityResponseSchema: z.ZodObject<{
16
16
  role: z.ZodEnum<["assistant"]>;
17
17
  content: z.ZodString;
18
18
  }, "strip", z.ZodTypeAny, {
19
- role: "assistant";
20
19
  content: string;
21
- }, {
22
20
  role: "assistant";
21
+ }, {
23
22
  content: string;
23
+ role: "assistant";
24
24
  }>;
25
25
  delta: z.ZodOptional<z.ZodObject<{
26
26
  role: z.ZodOptional<z.ZodString>;
27
27
  content: z.ZodOptional<z.ZodString>;
28
28
  }, "strip", z.ZodTypeAny, {
29
- role?: string | undefined;
30
29
  content?: string | undefined;
31
- }, {
32
30
  role?: string | undefined;
31
+ }, {
33
32
  content?: string | undefined;
33
+ role?: string | undefined;
34
34
  }>>;
35
35
  }, "strip", z.ZodTypeAny, {
36
36
  message: {
37
- role: "assistant";
38
37
  content: string;
38
+ role: "assistant";
39
39
  };
40
40
  index: number;
41
41
  finish_reason: "length" | "stop" | "model_length" | null;
42
42
  delta?: {
43
- role?: string | undefined;
44
43
  content?: string | undefined;
44
+ role?: string | undefined;
45
45
  } | undefined;
46
46
  }, {
47
47
  message: {
48
- role: "assistant";
49
48
  content: string;
49
+ role: "assistant";
50
50
  };
51
51
  index: number;
52
52
  finish_reason: "length" | "stop" | "model_length" | null;
53
53
  delta?: {
54
- role?: string | undefined;
55
54
  content?: string | undefined;
55
+ role?: string | undefined;
56
56
  } | undefined;
57
57
  }>, "many">;
58
58
  usage: z.ZodOptional<z.ZodObject<{
@@ -81,43 +81,43 @@ export declare const perplexityResponseSchema: z.ZodObject<{
81
81
  role: z.ZodEnum<["assistant"]>;
82
82
  content: z.ZodString;
83
83
  }, "strip", z.ZodTypeAny, {
84
- role: "assistant";
85
84
  content: string;
86
- }, {
87
85
  role: "assistant";
86
+ }, {
88
87
  content: string;
88
+ role: "assistant";
89
89
  }>;
90
90
  delta: z.ZodOptional<z.ZodObject<{
91
91
  role: z.ZodOptional<z.ZodString>;
92
92
  content: z.ZodOptional<z.ZodString>;
93
93
  }, "strip", z.ZodTypeAny, {
94
- role?: string | undefined;
95
94
  content?: string | undefined;
96
- }, {
97
95
  role?: string | undefined;
96
+ }, {
98
97
  content?: string | undefined;
98
+ role?: string | undefined;
99
99
  }>>;
100
100
  }, "strip", z.ZodTypeAny, {
101
101
  message: {
102
- role: "assistant";
103
102
  content: string;
103
+ role: "assistant";
104
104
  };
105
105
  index: number;
106
106
  finish_reason: "length" | "stop" | "model_length" | null;
107
107
  delta?: {
108
- role?: string | undefined;
109
108
  content?: string | undefined;
109
+ role?: string | undefined;
110
110
  } | undefined;
111
111
  }, {
112
112
  message: {
113
- role: "assistant";
114
113
  content: string;
114
+ role: "assistant";
115
115
  };
116
116
  index: number;
117
117
  finish_reason: "length" | "stop" | "model_length" | null;
118
118
  delta?: {
119
- role?: string | undefined;
120
119
  content?: string | undefined;
120
+ role?: string | undefined;
121
121
  } | undefined;
122
122
  }>, "many">;
123
123
  usage: z.ZodOptional<z.ZodObject<{
@@ -146,43 +146,43 @@ export declare const perplexityResponseSchema: z.ZodObject<{
146
146
  role: z.ZodEnum<["assistant"]>;
147
147
  content: z.ZodString;
148
148
  }, "strip", z.ZodTypeAny, {
149
- role: "assistant";
150
149
  content: string;
151
- }, {
152
150
  role: "assistant";
151
+ }, {
153
152
  content: string;
153
+ role: "assistant";
154
154
  }>;
155
155
  delta: z.ZodOptional<z.ZodObject<{
156
156
  role: z.ZodOptional<z.ZodString>;
157
157
  content: z.ZodOptional<z.ZodString>;
158
158
  }, "strip", z.ZodTypeAny, {
159
- role?: string | undefined;
160
159
  content?: string | undefined;
161
- }, {
162
160
  role?: string | undefined;
161
+ }, {
163
162
  content?: string | undefined;
163
+ role?: string | undefined;
164
164
  }>>;
165
165
  }, "strip", z.ZodTypeAny, {
166
166
  message: {
167
- role: "assistant";
168
167
  content: string;
168
+ role: "assistant";
169
169
  };
170
170
  index: number;
171
171
  finish_reason: "length" | "stop" | "model_length" | null;
172
172
  delta?: {
173
- role?: string | undefined;
174
173
  content?: string | undefined;
174
+ role?: string | undefined;
175
175
  } | undefined;
176
176
  }, {
177
177
  message: {
178
- role: "assistant";
179
178
  content: string;
179
+ role: "assistant";
180
180
  };
181
181
  index: number;
182
182
  finish_reason: "length" | "stop" | "model_length" | null;
183
183
  delta?: {
184
- role?: string | undefined;
185
184
  content?: string | undefined;
185
+ role?: string | undefined;
186
186
  } | undefined;
187
187
  }>, "many">;
188
188
  usage: z.ZodOptional<z.ZodObject<{
@@ -215,43 +215,43 @@ export declare const validatePerplexityResponse: (data: unknown) => z.objectInpu
215
215
  role: z.ZodEnum<["assistant"]>;
216
216
  content: z.ZodString;
217
217
  }, "strip", z.ZodTypeAny, {
218
- role: "assistant";
219
218
  content: string;
220
- }, {
221
219
  role: "assistant";
220
+ }, {
222
221
  content: string;
222
+ role: "assistant";
223
223
  }>;
224
224
  delta: z.ZodOptional<z.ZodObject<{
225
225
  role: z.ZodOptional<z.ZodString>;
226
226
  content: z.ZodOptional<z.ZodString>;
227
227
  }, "strip", z.ZodTypeAny, {
228
- role?: string | undefined;
229
228
  content?: string | undefined;
230
- }, {
231
229
  role?: string | undefined;
230
+ }, {
232
231
  content?: string | undefined;
232
+ role?: string | undefined;
233
233
  }>>;
234
234
  }, "strip", z.ZodTypeAny, {
235
235
  message: {
236
- role: "assistant";
237
236
  content: string;
237
+ role: "assistant";
238
238
  };
239
239
  index: number;
240
240
  finish_reason: "length" | "stop" | "model_length" | null;
241
241
  delta?: {
242
- role?: string | undefined;
243
242
  content?: string | undefined;
243
+ role?: string | undefined;
244
244
  } | undefined;
245
245
  }, {
246
246
  message: {
247
- role: "assistant";
248
247
  content: string;
248
+ role: "assistant";
249
249
  };
250
250
  index: number;
251
251
  finish_reason: "length" | "stop" | "model_length" | null;
252
252
  delta?: {
253
- role?: string | undefined;
254
253
  content?: string | undefined;
254
+ role?: string | undefined;
255
255
  } | undefined;
256
256
  }>, "many">;
257
257
  usage: z.ZodOptional<z.ZodObject<{
@@ -282,43 +282,43 @@ export declare const safeValidatePerplexityResponse: (data: unknown) => import("
282
282
  role: z.ZodEnum<["assistant"]>;
283
283
  content: z.ZodString;
284
284
  }, "strip", z.ZodTypeAny, {
285
- role: "assistant";
286
285
  content: string;
287
- }, {
288
286
  role: "assistant";
287
+ }, {
289
288
  content: string;
289
+ role: "assistant";
290
290
  }>;
291
291
  delta: z.ZodOptional<z.ZodObject<{
292
292
  role: z.ZodOptional<z.ZodString>;
293
293
  content: z.ZodOptional<z.ZodString>;
294
294
  }, "strip", z.ZodTypeAny, {
295
- role?: string | undefined;
296
295
  content?: string | undefined;
297
- }, {
298
296
  role?: string | undefined;
297
+ }, {
299
298
  content?: string | undefined;
299
+ role?: string | undefined;
300
300
  }>>;
301
301
  }, "strip", z.ZodTypeAny, {
302
302
  message: {
303
- role: "assistant";
304
303
  content: string;
304
+ role: "assistant";
305
305
  };
306
306
  index: number;
307
307
  finish_reason: "length" | "stop" | "model_length" | null;
308
308
  delta?: {
309
- role?: string | undefined;
310
309
  content?: string | undefined;
310
+ role?: string | undefined;
311
311
  } | undefined;
312
312
  }, {
313
313
  message: {
314
- role: "assistant";
315
314
  content: string;
315
+ role: "assistant";
316
316
  };
317
317
  index: number;
318
318
  finish_reason: "length" | "stop" | "model_length" | null;
319
319
  delta?: {
320
- role?: string | undefined;
321
320
  content?: string | undefined;
321
+ role?: string | undefined;
322
322
  } | undefined;
323
323
  }>, "many">;
324
324
  usage: z.ZodOptional<z.ZodObject<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adaptic/lumic-utils",
3
- "version": "1.0.14",
3
+ "version": "1.0.15",
4
4
  "description": "NPM repo set of utility functions usable across the entire organisation.",
5
5
  "always-build-npm": false,
6
6
  "type": "module",