@narrative.io/data-collaboration-sdk-ts 0.19.0 → 0.21.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.
@@ -215,7 +215,7 @@ function compileBetween(operand, lower, upper, as) {
215
215
  const operandNql = compileExpression(operand);
216
216
  const lowerNql = compileExpression(lower);
217
217
  const upperNql = compileExpression(upper);
218
- return aliased(`${operandNql} BETWEEN ASYMMETRIC ${lowerNql} AND ${upperNql}`, as);
218
+ return aliased(`${operandNql} BETWEEN ${lowerNql} AND ${upperNql}`, as);
219
219
  }
220
220
  function compileBinaryOperator(op, operands, as) {
221
221
  return aliased(`(${operands.map((e) => compileExpression(e)).join(` ${op} `)})`, as);
@@ -821,30 +821,30 @@ declare const RosettaRequestMessageSchema: z.ZodUnion<[z.ZodObject<{
821
821
  type: z.ZodLiteral<"request">;
822
822
  data: z.ZodObject<{
823
823
  input: z.ZodString;
824
- apiKey: z.ZodOptional<z.ZodString>;
825
- assistantId: z.ZodOptional<z.ZodString>;
824
+ apiKey: z.ZodNullable<z.ZodOptional<z.ZodString>>;
825
+ assistantId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
826
826
  }, "strip", z.ZodTypeAny, {
827
827
  input: string;
828
- apiKey?: string | undefined;
829
- assistantId?: string | undefined;
828
+ apiKey?: string | null | undefined;
829
+ assistantId?: string | null | undefined;
830
830
  }, {
831
831
  input: string;
832
- apiKey?: string | undefined;
833
- assistantId?: string | undefined;
832
+ apiKey?: string | null | undefined;
833
+ assistantId?: string | null | undefined;
834
834
  }>;
835
835
  }, "strip", z.ZodTypeAny, {
836
836
  type: "request";
837
837
  data: {
838
838
  input: string;
839
- apiKey?: string | undefined;
840
- assistantId?: string | undefined;
839
+ apiKey?: string | null | undefined;
840
+ assistantId?: string | null | undefined;
841
841
  };
842
842
  }, {
843
843
  type: "request";
844
844
  data: {
845
845
  input: string;
846
- apiKey?: string | undefined;
847
- assistantId?: string | undefined;
846
+ apiKey?: string | null | undefined;
847
+ assistantId?: string | null | undefined;
848
848
  };
849
849
  }>, z.ZodObject<{
850
850
  type: z.ZodLiteral<"ping">;
@@ -870,8 +870,8 @@ declare const isRosettaRequestMessage: (input: unknown) => input is {
870
870
  type: "request";
871
871
  data: {
872
872
  input: string;
873
- apiKey?: string | undefined;
874
- assistantId?: string | undefined;
873
+ apiKey?: string | null | undefined;
874
+ assistantId?: string | null | undefined;
875
875
  };
876
876
  } | {
877
877
  type: "ping";
@@ -190,10 +190,11 @@ const RequestMessageSchema = z.object({
190
190
  type: z.literal("request"),
191
191
  data: z.object({
192
192
  input: z.string(),
193
- apiKey: z.string().optional(),
193
+ apiKey: z.string().optional().nullable(),
194
194
  assistantId: z
195
195
  .string()
196
196
  .optional()
197
+ .nullable()
197
198
  .describe("The id of the team member/assistant who should handle the request"),
198
199
  }),
199
200
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@narrative.io/data-collaboration-sdk-ts",
3
- "version": "0.19.0",
3
+ "version": "0.21.0",
4
4
  "main": "build/index.js",
5
5
  "repository": "github:narrative-io/data-collaboration-sdk-ts",
6
6
  "source": "src/index.ts",
@@ -23,7 +23,7 @@
23
23
  "@babel/core": "^7.22.5",
24
24
  "@babel/preset-env": "^7.22.5",
25
25
  "@babel/preset-typescript": "^7.18.6",
26
- "@commitlint/cli": "^18.2.0",
26
+ "@commitlint/cli": "^19.0.1",
27
27
  "@commitlint/config-conventional": "^18.1.0",
28
28
  "@types/jest": "^29.5.0",
29
29
  "babel-jest": "^29.4.3",