@credal/actions 0.1.79 → 0.1.81

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
@@ -1725,7 +1725,11 @@ exports.snowflakeRunSnowflakeQueryDefinition = {
1725
1725
  },
1726
1726
  codeInterpreterLimit: {
1727
1727
  type: "number",
1728
- description: "A minimum number of rows required to pass to code interpreter (if enabled)",
1728
+ description: "A minimum number of rows required to pass to code interpreter for analysis and image generation (if enabled)",
1729
+ },
1730
+ codeInterpreterImageGenLimit: {
1731
+ type: "number",
1732
+ description: "A minimum number of rows required to pass to code interpreter for image generation only (if enabled)",
1729
1733
  },
1730
1734
  },
1731
1735
  },
@@ -5679,7 +5683,7 @@ exports.salesforceUpdateRecordDefinition = {
5679
5683
  },
5680
5684
  fieldsToUpdate: {
5681
5685
  type: "object",
5682
- description: "The fields to update on the record",
5686
+ 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
5687
  additionalProperties: {
5684
5688
  type: "string",
5685
5689
  },
@@ -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
+ codeInterpreterImageGenLimit: z.ZodOptional<z.ZodNumber>;
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
+ codeInterpreterImageGenLimit?: number | 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
+ codeInterpreterImageGenLimit?: number | undefined;
1680
1683
  }>;
1681
1684
  export type snowflakeRunSnowflakeQueryParamsType = z.infer<typeof snowflakeRunSnowflakeQueryParamsSchema>;
1682
1685
  export declare const snowflakeRunSnowflakeQueryOutputSchema: z.ZodObject<{
@@ -528,7 +528,11 @@ exports.snowflakeRunSnowflakeQueryParamsSchema = zod_1.z.object({
528
528
  limit: zod_1.z.number().describe("A limit on the number of rows to return").optional(),
529
529
  codeInterpreterLimit: zod_1.z
530
530
  .number()
531
- .describe("A minimum number of rows required to pass to code interpreter (if enabled)")
531
+ .describe("A minimum number of rows required to pass to code interpreter for analysis and image generation (if enabled)")
532
+ .optional(),
533
+ codeInterpreterImageGenLimit: zod_1.z
534
+ .number()
535
+ .describe("A minimum number of rows required to pass to code interpreter for image generation only (if enabled)")
532
536
  .optional(),
533
537
  });
534
538
  exports.snowflakeRunSnowflakeQueryOutputSchema = zod_1.z.object({
@@ -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.81",
4
4
  "description": "AI Actions by Credal AI",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",