@credal/actions 0.1.82 → 0.1.83

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.
@@ -5108,7 +5108,11 @@ exports.gongGetGongTranscriptsDefinition = {
5108
5108
  properties: {
5109
5109
  callId: {
5110
5110
  type: "string",
5111
- description: "The ID of the transcript",
5111
+ description: "The ID of the call",
5112
+ },
5113
+ callName: {
5114
+ type: "string",
5115
+ description: "The name of the call",
5112
5116
  },
5113
5117
  transcript: {
5114
5118
  type: "array",
@@ -2303,6 +2303,7 @@ export declare const gongGetGongTranscriptsOutputSchema: z.ZodObject<{
2303
2303
  success: z.ZodBoolean;
2304
2304
  callTranscripts: z.ZodOptional<z.ZodArray<z.ZodObject<{
2305
2305
  callId: z.ZodOptional<z.ZodString>;
2306
+ callName: z.ZodOptional<z.ZodString>;
2306
2307
  transcript: z.ZodOptional<z.ZodArray<z.ZodObject<{
2307
2308
  speakerName: z.ZodOptional<z.ZodString>;
2308
2309
  topic: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -2338,6 +2339,7 @@ export declare const gongGetGongTranscriptsOutputSchema: z.ZodObject<{
2338
2339
  }>, "many">>;
2339
2340
  }, "strip", z.ZodTypeAny, {
2340
2341
  callId?: string | undefined;
2342
+ callName?: string | undefined;
2341
2343
  transcript?: {
2342
2344
  speakerName?: string | undefined;
2343
2345
  topic?: string | null | undefined;
@@ -2349,6 +2351,7 @@ export declare const gongGetGongTranscriptsOutputSchema: z.ZodObject<{
2349
2351
  }[] | undefined;
2350
2352
  }, {
2351
2353
  callId?: string | undefined;
2354
+ callName?: string | undefined;
2352
2355
  transcript?: {
2353
2356
  speakerName?: string | undefined;
2354
2357
  topic?: string | null | undefined;
@@ -2365,6 +2368,7 @@ export declare const gongGetGongTranscriptsOutputSchema: z.ZodObject<{
2365
2368
  error?: string | undefined;
2366
2369
  callTranscripts?: {
2367
2370
  callId?: string | undefined;
2371
+ callName?: string | undefined;
2368
2372
  transcript?: {
2369
2373
  speakerName?: string | undefined;
2370
2374
  topic?: string | null | undefined;
@@ -2380,6 +2384,7 @@ export declare const gongGetGongTranscriptsOutputSchema: z.ZodObject<{
2380
2384
  error?: string | undefined;
2381
2385
  callTranscripts?: {
2382
2386
  callId?: string | undefined;
2387
+ callName?: string | undefined;
2383
2388
  transcript?: {
2384
2389
  speakerName?: string | undefined;
2385
2390
  topic?: string | null | undefined;
@@ -2067,7 +2067,8 @@ exports.gongGetGongTranscriptsOutputSchema = zod_1.z.object({
2067
2067
  callTranscripts: zod_1.z
2068
2068
  .array(zod_1.z
2069
2069
  .object({
2070
- callId: zod_1.z.string().describe("The ID of the transcript").optional(),
2070
+ callId: zod_1.z.string().describe("The ID of the call").optional(),
2071
+ callName: zod_1.z.string().describe("The name of the call").optional(),
2071
2072
  transcript: zod_1.z
2072
2073
  .array(zod_1.z
2073
2074
  .object({
@@ -80,6 +80,7 @@ const CallSchema = zod_1.z
80
80
  primaryUserId: zod_1.z.string(),
81
81
  started: zod_1.z.string(),
82
82
  isPrivate: zod_1.z.boolean(),
83
+ title: zod_1.z.string(),
83
84
  }),
84
85
  parties: zod_1.z.array(zod_1.z
85
86
  .object({
@@ -301,14 +302,14 @@ const getGongTranscripts = (_a) => __awaiter(void 0, [_a], void 0, function* ({
301
302
  }
302
303
  });
303
304
  const callTranscriptsWithNames = callTranscripts.map(callTranscript => {
304
- var _a;
305
+ var _a, _b, _c, _d;
305
306
  const currTranscript = Object.assign({}, callTranscript);
306
307
  currTranscript.transcript = (_a = callTranscript.transcript) === null || _a === void 0 ? void 0 : _a.map(transcript => {
307
308
  var _a;
308
309
  const { speakerId } = transcript, rest = __rest(transcript, ["speakerId"]);
309
310
  return Object.assign(Object.assign({}, rest), { speakerName: (_a = userIdToNameMap[speakerId !== null && speakerId !== void 0 ? speakerId : ""]) !== null && _a !== void 0 ? _a : "Unknown" });
310
311
  });
311
- return currTranscript;
312
+ return Object.assign({ callName: (_d = (_c = (_b = publicCalls.find(call => { var _a; return ((_a = call.metaData) === null || _a === void 0 ? void 0 : _a.id) === callTranscript.callId; })) === null || _b === void 0 ? void 0 : _b.metaData) === null || _c === void 0 ? void 0 : _c.title) !== null && _d !== void 0 ? _d : "" }, currTranscript);
312
313
  });
313
314
  return {
314
315
  success: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@credal/actions",
3
- "version": "0.1.82",
3
+ "version": "0.1.83",
4
4
  "description": "AI Actions by Credal AI",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",