@credal/actions 0.1.79 → 0.1.80

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.
package/README.md CHANGED
@@ -13,7 +13,7 @@ We strongly encourage you to develop actions that rely on oauth based credential
13
13
  3. Run `npm run prettier-format` to format the new files
14
14
  4. Create a new provider function in `src/actions/providers/<provider>/<action>.ts` (eg. `src/actions/providers/math/add.ts`) which exports a function using the generated types
15
15
  5. If adding a new action or provider, update `src/actions/actionMapper.ts` and `src/actions/groups.ts`.
16
- 6. In `package.json`, bump the version number.
16
+ 6. In `package.json` and `package-lock.json` (which must be updated in two places), bump the version number.
17
17
  7. Run `npm publish --access public` to publish the new version to npm. (Need to be logged in via `npm login`)
18
18
 
19
19
  ## Usage
@@ -1727,6 +1727,11 @@ exports.snowflakeRunSnowflakeQueryDefinition = {
1727
1727
  type: "number",
1728
1728
  description: "A minimum number of rows required to pass to code interpreter (if enabled)",
1729
1729
  },
1730
+ generateImageViaCodeInterpreter: {
1731
+ enum: [true, false],
1732
+ type: "boolean",
1733
+ description: "Whether we should try to generate an image with results via code interpreter, regardless of if the codeInterpreter limit is reached",
1734
+ },
1730
1735
  },
1731
1736
  },
1732
1737
  output: {
@@ -5679,7 +5684,7 @@ exports.salesforceUpdateRecordDefinition = {
5679
5684
  },
5680
5685
  fieldsToUpdate: {
5681
5686
  type: "object",
5682
- description: "The fields to update on the record",
5687
+ description: "A key,value pair where the keys are the fields to update on the record and the values are the new values of those fields.",
5683
5688
  additionalProperties: {
5684
5689
  type: "string",
5685
5690
  },
@@ -1661,6 +1661,7 @@ export declare const snowflakeRunSnowflakeQueryParamsSchema: z.ZodObject<{
1661
1661
  outputFormat: z.ZodOptional<z.ZodEnum<["json", "csv"]>>;
1662
1662
  limit: z.ZodOptional<z.ZodNumber>;
1663
1663
  codeInterpreterLimit: z.ZodOptional<z.ZodNumber>;
1664
+ generateImageViaCodeInterpreter: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<true>, z.ZodLiteral<false>]>>;
1664
1665
  }, "strip", z.ZodTypeAny, {
1665
1666
  query: string;
1666
1667
  databaseName: string;
@@ -1669,6 +1670,7 @@ export declare const snowflakeRunSnowflakeQueryParamsSchema: z.ZodObject<{
1669
1670
  limit?: number | undefined;
1670
1671
  outputFormat?: "json" | "csv" | undefined;
1671
1672
  codeInterpreterLimit?: number | undefined;
1673
+ generateImageViaCodeInterpreter?: boolean | undefined;
1672
1674
  }, {
1673
1675
  query: string;
1674
1676
  databaseName: string;
@@ -1677,6 +1679,7 @@ export declare const snowflakeRunSnowflakeQueryParamsSchema: z.ZodObject<{
1677
1679
  limit?: number | undefined;
1678
1680
  outputFormat?: "json" | "csv" | undefined;
1679
1681
  codeInterpreterLimit?: number | undefined;
1682
+ generateImageViaCodeInterpreter?: boolean | undefined;
1680
1683
  }>;
1681
1684
  export type snowflakeRunSnowflakeQueryParamsType = z.infer<typeof snowflakeRunSnowflakeQueryParamsSchema>;
1682
1685
  export declare const snowflakeRunSnowflakeQueryOutputSchema: z.ZodObject<{
@@ -530,6 +530,10 @@ exports.snowflakeRunSnowflakeQueryParamsSchema = zod_1.z.object({
530
530
  .number()
531
531
  .describe("A minimum number of rows required to pass to code interpreter (if enabled)")
532
532
  .optional(),
533
+ generateImageViaCodeInterpreter: zod_1.z
534
+ .union([zod_1.z.literal(true), zod_1.z.literal(false)])
535
+ .describe("Whether we should try to generate an image with results via code interpreter, regardless of if the codeInterpreter limit is reached")
536
+ .optional(),
533
537
  });
534
538
  exports.snowflakeRunSnowflakeQueryOutputSchema = zod_1.z.object({
535
539
  format: zod_1.z.enum(["json", "csv"]).describe("The format of the output"),
@@ -2253,7 +2257,9 @@ exports.ashbyUpdateCandidateOutputSchema = zod_1.z.void();
2253
2257
  exports.salesforceUpdateRecordParamsSchema = zod_1.z.object({
2254
2258
  objectType: zod_1.z.string().describe("The Salesforce object type to update (e.g., Lead, Account, Contact)"),
2255
2259
  recordId: zod_1.z.string().describe("The ID of the record to update"),
2256
- fieldsToUpdate: zod_1.z.record(zod_1.z.string()).describe("The fields to update on the record"),
2260
+ fieldsToUpdate: zod_1.z
2261
+ .record(zod_1.z.string())
2262
+ .describe("A key,value pair where the keys are the fields to update on the record and the values are the new values of those fields."),
2257
2263
  });
2258
2264
  exports.salesforceUpdateRecordOutputSchema = zod_1.z.object({
2259
2265
  success: zod_1.z.boolean().describe("Whether the record was successfully updated"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@credal/actions",
3
- "version": "0.1.79",
3
+ "version": "0.1.80",
4
4
  "description": "AI Actions by Credal AI",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",