@narrative.io/data-collaboration-sdk-ts 0.0.101 → 0.0.103

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.
@@ -1,3 +1,4 @@
1
+ import type { Mapping } from '../mappings/types';
1
2
  export interface Dataset {
2
3
  id: number;
3
4
  company_id: number;
@@ -12,6 +13,7 @@ export interface Dataset {
12
13
  write_mode: DatasetWriteMode;
13
14
  last_snapshot_created_at?: string;
14
15
  active_dataset_stored_bytes?: number;
16
+ mappings?: Mapping[];
15
17
  }
16
18
  export interface DatasetColumnSummary {
17
19
  id: number;
@@ -822,24 +822,29 @@ declare const RosettaRequestMessageSchema: z.ZodUnion<[z.ZodObject<{
822
822
  data: z.ZodObject<{
823
823
  input: z.ZodString;
824
824
  apiKey: z.ZodOptional<z.ZodString>;
825
+ team_member: z.ZodOptional<z.ZodString>;
825
826
  }, "strip", z.ZodTypeAny, {
826
827
  input: string;
827
828
  apiKey?: string | undefined;
829
+ team_member?: string | undefined;
828
830
  }, {
829
831
  input: string;
830
832
  apiKey?: string | undefined;
833
+ team_member?: string | undefined;
831
834
  }>;
832
835
  }, "strip", z.ZodTypeAny, {
833
836
  type: "request";
834
837
  data: {
835
838
  input: string;
836
839
  apiKey?: string | undefined;
840
+ team_member?: string | undefined;
837
841
  };
838
842
  }, {
839
843
  type: "request";
840
844
  data: {
841
845
  input: string;
842
846
  apiKey?: string | undefined;
847
+ team_member?: string | undefined;
843
848
  };
844
849
  }>, z.ZodObject<{
845
850
  type: z.ZodLiteral<"ping">;
@@ -866,6 +871,7 @@ declare const isRosettaRequestMessage: (input: unknown) => input is {
866
871
  data: {
867
872
  input: string;
868
873
  apiKey?: string | undefined;
874
+ team_member?: string | undefined;
869
875
  };
870
876
  } | {
871
877
  type: "ping";
@@ -166,7 +166,8 @@ const RequestMessageSchema = z.object({
166
166
  type: z.literal('request'),
167
167
  data: z.object({
168
168
  input: z.string(),
169
- apiKey: z.string().optional()
169
+ apiKey: z.string().optional(),
170
+ team_member: z.string().optional().describe('The team member who should handle the request')
170
171
  })
171
172
  });
172
173
  const PingEventSchema = z.object({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@narrative.io/data-collaboration-sdk-ts",
3
- "version": "0.0.101",
3
+ "version": "0.0.103",
4
4
  "main": "build/index.js",
5
5
  "repository": "github:narrative-io/data-collaboration-sdk-ts",
6
6
  "source": "src/index.ts",