@keystrokehq/softr 0.1.0 → 0.1.3

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.
Files changed (177) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/create-database.cjs +1 -1
  4. package/dist/actions/create-database.cjs.map +1 -1
  5. package/dist/actions/create-database.d.cts +18 -3
  6. package/dist/actions/create-database.d.cts.map +1 -1
  7. package/dist/actions/create-database.d.mts +18 -3
  8. package/dist/actions/create-database.d.mts.map +1 -1
  9. package/dist/actions/create-database.mjs +1 -1
  10. package/dist/actions/create-database.mjs.map +1 -1
  11. package/dist/actions/create-record.cjs +7 -7
  12. package/dist/actions/create-record.cjs.map +1 -1
  13. package/dist/actions/create-record.d.cts +18 -3
  14. package/dist/actions/create-record.d.cts.map +1 -1
  15. package/dist/actions/create-record.d.mts +18 -3
  16. package/dist/actions/create-record.d.mts.map +1 -1
  17. package/dist/actions/create-record.mjs +7 -7
  18. package/dist/actions/create-record.mjs.map +1 -1
  19. package/dist/actions/create-table-field.cjs +13 -13
  20. package/dist/actions/create-table-field.cjs.map +1 -1
  21. package/dist/actions/create-table-field.d.cts +61 -3
  22. package/dist/actions/create-table-field.d.cts.map +1 -1
  23. package/dist/actions/create-table-field.d.mts +61 -3
  24. package/dist/actions/create-table-field.d.mts.map +1 -1
  25. package/dist/actions/create-table-field.mjs +13 -13
  26. package/dist/actions/create-table-field.mjs.map +1 -1
  27. package/dist/actions/create-table.cjs +11 -11
  28. package/dist/actions/create-table.cjs.map +1 -1
  29. package/dist/actions/create-table.d.cts +80 -3
  30. package/dist/actions/create-table.d.cts.map +1 -1
  31. package/dist/actions/create-table.d.mts +80 -3
  32. package/dist/actions/create-table.d.mts.map +1 -1
  33. package/dist/actions/create-table.mjs +11 -11
  34. package/dist/actions/create-table.mjs.map +1 -1
  35. package/dist/actions/delete-database.cjs +2 -2
  36. package/dist/actions/delete-database.cjs.map +1 -1
  37. package/dist/actions/delete-database.d.cts +12 -3
  38. package/dist/actions/delete-database.d.cts.map +1 -1
  39. package/dist/actions/delete-database.d.mts +12 -3
  40. package/dist/actions/delete-database.d.mts.map +1 -1
  41. package/dist/actions/delete-database.mjs +2 -2
  42. package/dist/actions/delete-database.mjs.map +1 -1
  43. package/dist/actions/delete-record.cjs +1 -1
  44. package/dist/actions/delete-record.cjs.map +1 -1
  45. package/dist/actions/delete-record.d.cts +13 -3
  46. package/dist/actions/delete-record.d.cts.map +1 -1
  47. package/dist/actions/delete-record.d.mts +13 -3
  48. package/dist/actions/delete-record.d.mts.map +1 -1
  49. package/dist/actions/delete-record.mjs +1 -1
  50. package/dist/actions/delete-record.mjs.map +1 -1
  51. package/dist/actions/delete-table-field.cjs +3 -3
  52. package/dist/actions/delete-table-field.cjs.map +1 -1
  53. package/dist/actions/delete-table-field.d.cts +14 -3
  54. package/dist/actions/delete-table-field.d.cts.map +1 -1
  55. package/dist/actions/delete-table-field.d.mts +14 -3
  56. package/dist/actions/delete-table-field.d.mts.map +1 -1
  57. package/dist/actions/delete-table-field.mjs +3 -3
  58. package/dist/actions/delete-table-field.mjs.map +1 -1
  59. package/dist/actions/delete-table.cjs +3 -3
  60. package/dist/actions/delete-table.cjs.map +1 -1
  61. package/dist/actions/delete-table.d.cts +14 -3
  62. package/dist/actions/delete-table.d.cts.map +1 -1
  63. package/dist/actions/delete-table.d.mts +14 -3
  64. package/dist/actions/delete-table.d.mts.map +1 -1
  65. package/dist/actions/delete-table.mjs +3 -3
  66. package/dist/actions/delete-table.mjs.map +1 -1
  67. package/dist/actions/get-database.cjs +7 -7
  68. package/dist/actions/get-database.cjs.map +1 -1
  69. package/dist/actions/get-database.d.cts +16 -3
  70. package/dist/actions/get-database.d.cts.map +1 -1
  71. package/dist/actions/get-database.d.mts +16 -3
  72. package/dist/actions/get-database.d.mts.map +1 -1
  73. package/dist/actions/get-database.mjs +7 -7
  74. package/dist/actions/get-database.mjs.map +1 -1
  75. package/dist/actions/get-databases.cjs +7 -7
  76. package/dist/actions/get-databases.cjs.map +1 -1
  77. package/dist/actions/get-databases.d.cts +18 -3
  78. package/dist/actions/get-databases.d.cts.map +1 -1
  79. package/dist/actions/get-databases.d.mts +18 -3
  80. package/dist/actions/get-databases.d.mts.map +1 -1
  81. package/dist/actions/get-databases.mjs +7 -7
  82. package/dist/actions/get-databases.mjs.map +1 -1
  83. package/dist/actions/get-record.cjs +6 -6
  84. package/dist/actions/get-record.cjs.map +1 -1
  85. package/dist/actions/get-record.d.cts +19 -3
  86. package/dist/actions/get-record.d.cts.map +1 -1
  87. package/dist/actions/get-record.d.mts +19 -3
  88. package/dist/actions/get-record.d.mts.map +1 -1
  89. package/dist/actions/get-record.mjs +6 -6
  90. package/dist/actions/get-record.mjs.map +1 -1
  91. package/dist/actions/get-records.cjs +3 -3
  92. package/dist/actions/get-records.cjs.map +1 -1
  93. package/dist/actions/get-records.d.cts +26 -3
  94. package/dist/actions/get-records.d.cts.map +1 -1
  95. package/dist/actions/get-records.d.mts +26 -3
  96. package/dist/actions/get-records.d.mts.map +1 -1
  97. package/dist/actions/get-records.mjs +3 -3
  98. package/dist/actions/get-records.mjs.map +1 -1
  99. package/dist/actions/get-table-field.cjs +5 -5
  100. package/dist/actions/get-table-field.cjs.map +1 -1
  101. package/dist/actions/get-table-field.d.cts +25 -3
  102. package/dist/actions/get-table-field.d.cts.map +1 -1
  103. package/dist/actions/get-table-field.d.mts +25 -3
  104. package/dist/actions/get-table-field.d.mts.map +1 -1
  105. package/dist/actions/get-table-field.mjs +5 -5
  106. package/dist/actions/get-table-field.mjs.map +1 -1
  107. package/dist/actions/get-table-views.cjs +2 -2
  108. package/dist/actions/get-table-views.cjs.map +1 -1
  109. package/dist/actions/get-table-views.d.cts +18 -3
  110. package/dist/actions/get-table-views.d.cts.map +1 -1
  111. package/dist/actions/get-table-views.d.mts +18 -3
  112. package/dist/actions/get-table-views.d.mts.map +1 -1
  113. package/dist/actions/get-table-views.mjs +2 -2
  114. package/dist/actions/get-table-views.mjs.map +1 -1
  115. package/dist/actions/get-table.cjs +11 -11
  116. package/dist/actions/get-table.cjs.map +1 -1
  117. package/dist/actions/get-table.d.cts +64 -3
  118. package/dist/actions/get-table.d.cts.map +1 -1
  119. package/dist/actions/get-table.d.mts +64 -3
  120. package/dist/actions/get-table.d.mts.map +1 -1
  121. package/dist/actions/get-table.mjs +11 -11
  122. package/dist/actions/get-table.mjs.map +1 -1
  123. package/dist/actions/get-tables.cjs +4 -4
  124. package/dist/actions/get-tables.cjs.map +1 -1
  125. package/dist/actions/get-tables.d.cts +17 -3
  126. package/dist/actions/get-tables.d.cts.map +1 -1
  127. package/dist/actions/get-tables.d.mts +17 -3
  128. package/dist/actions/get-tables.d.mts.map +1 -1
  129. package/dist/actions/get-tables.mjs +4 -4
  130. package/dist/actions/get-tables.mjs.map +1 -1
  131. package/dist/actions/search-records.cjs +9 -9
  132. package/dist/actions/search-records.cjs.map +1 -1
  133. package/dist/actions/search-records.d.cts +32 -3
  134. package/dist/actions/search-records.d.cts.map +1 -1
  135. package/dist/actions/search-records.d.mts +32 -3
  136. package/dist/actions/search-records.d.mts.map +1 -1
  137. package/dist/actions/search-records.mjs +9 -9
  138. package/dist/actions/search-records.mjs.map +1 -1
  139. package/dist/actions/update-database.cjs +7 -7
  140. package/dist/actions/update-database.cjs.map +1 -1
  141. package/dist/actions/update-database.d.cts +20 -3
  142. package/dist/actions/update-database.d.cts.map +1 -1
  143. package/dist/actions/update-database.d.mts +20 -3
  144. package/dist/actions/update-database.d.mts.map +1 -1
  145. package/dist/actions/update-database.mjs +7 -7
  146. package/dist/actions/update-database.mjs.map +1 -1
  147. package/dist/actions/update-record.cjs +2 -2
  148. package/dist/actions/update-record.cjs.map +1 -1
  149. package/dist/actions/update-record.d.cts +21 -3
  150. package/dist/actions/update-record.d.cts.map +1 -1
  151. package/dist/actions/update-record.d.mts +21 -3
  152. package/dist/actions/update-record.d.mts.map +1 -1
  153. package/dist/actions/update-record.mjs +2 -2
  154. package/dist/actions/update-record.mjs.map +1 -1
  155. package/dist/actions/update-table-field.cjs +1 -1
  156. package/dist/actions/update-table-field.cjs.map +1 -1
  157. package/dist/actions/update-table-field.d.cts +61 -3
  158. package/dist/actions/update-table-field.d.cts.map +1 -1
  159. package/dist/actions/update-table-field.d.mts +61 -3
  160. package/dist/actions/update-table-field.d.mts.map +1 -1
  161. package/dist/actions/update-table-field.mjs +1 -1
  162. package/dist/actions/update-table-field.mjs.map +1 -1
  163. package/dist/actions/update-table.cjs +12 -12
  164. package/dist/actions/update-table.cjs.map +1 -1
  165. package/dist/actions/update-table.d.cts +36 -3
  166. package/dist/actions/update-table.d.cts.map +1 -1
  167. package/dist/actions/update-table.d.mts +36 -3
  168. package/dist/actions/update-table.d.mts.map +1 -1
  169. package/dist/actions/update-table.mjs +12 -12
  170. package/dist/actions/update-table.mjs.map +1 -1
  171. package/dist/catalog.cjs +13 -1
  172. package/dist/catalog.cjs.map +1 -1
  173. package/dist/catalog.d.cts +12 -0
  174. package/dist/catalog.d.mts +12 -0
  175. package/dist/catalog.mjs +13 -1
  176. package/dist/catalog.mjs.map +1 -1
  177. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"create-table-field.mjs","names":[],"sources":["../../src/actions/create-table-field.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SoftrCreateTableFieldInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"The name of the new field. This will be the display name shown in the table and used to reference the field. Should be descriptive and unique within the table.\"),\n type: z.enum([\"SINGLE_LINE_TEXT\", \"CHECKBOX\", \"CURRENCY\", \"DATETIME\", \"DURATION\", \"EMAIL\", \"SELECT\", \"NUMBER\", \"ATTACHMENT\", \"RATING\", \"LINKED_RECORD\", \"LONG_TEXT\", \"URL\", \"PERCENT\", \"BUTTON\", \"PROGRESS\", \"PHONE\", \"DATE_RANGE\", \"ADDRESS\", \"TIME\", \"LOOKUP\", \"ROLLUP\", \"FORMULA\", \"COUNT\", \"CREATED_AT\", \"UPDATED_AT\", \"CREATED_BY\", \"UPDATED_BY\", \"AUTONUMBER\", \"RECORD_ID\", \"USER\"]).describe(\"The type of the field, which determines what kind of data can be stored. Common types include SINGLE_LINE_TEXT for short text, EMAIL for email addresses, NUMBER for numeric values, CHECKBOX for boolean values, and SELECT for dropdown choices.\"),\n options: z.object({}).describe(\"Configuration options specific to the field type. For SINGLE_LINE_TEXT, can include 'minLength' and 'maxLength' constraints. For SELECT, would include the list of choices. Can be an empty object {} if no specific options are needed.\").optional(),\n tableId: z.string().describe(\"The unique identifier of the table where the field will be added. This specifies which table within the database should receive the new field.\"),\n databaseId: z.string().describe(\"The unique identifier of the database containing the table. This is a UUID format identifier that specifies which database to use.\"),\n}).describe(\"Request parameters for adding a new field to a Softr table.\");\nconst SoftrCreateTableField_FieldDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the newly created field.\"),\n name: z.string().describe(\"The name of the field as specified in the request.\"),\n type: z.string().describe(\"The field type (e.g., SINGLE_LINE_TEXT, EMAIL, NUMBER).\"),\n locked: z.boolean().describe(\"Whether this field is locked and cannot be modified.\"),\n options: z.object({}).describe(\"Configuration options for the field, specific to its type.\"),\n readonly: z.boolean().describe(\"Whether this field is read-only and cannot be edited by users.\"),\n required: z.boolean().describe(\"Whether this field is required and must have a value.\"),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the field was created.\"),\n updatedAt: z.string().describe(\"ISO 8601 timestamp when the field was last updated.\"),\n defaultValue: z.union([z.string(), z.number().int(), z.number(), z.boolean()]).nullable().optional(),\n allowMultipleEntries: z.boolean().describe(\"Whether this field allows multiple entries/values.\"),\n}).describe(\"Detailed information about the created table field.\");\nexport const SoftrCreateTableFieldOutput: z.ZodTypeAny = z.object({\n data: SoftrCreateTableField_FieldDataSchema.nullable(),\n}).describe(\"Response containing the newly created table field information.\");\n\nexport const softrCreateTableField = action(\"SOFTR_CREATE_TABLE_FIELD\", {\n slug: \"softr-create-table-field\",\n name: \"Create Table Field\",\n description: \"Tool to add a new field to a Softr table. Use when you need to add a new column to an existing table, such as adding an email field, a text field, or any other field type to store additional data.\",\n input: SoftrCreateTableFieldInput,\n output: SoftrCreateTableFieldOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2C,EAAE,OAAO;CAC/D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iKAAiK;CAC3L,MAAM,EAAE,KAAK;EAAC;EAAoB;EAAY;EAAY;EAAY;EAAY;EAAS;EAAU;EAAU;EAAc;EAAU;EAAiB;EAAa;EAAO;EAAW;EAAU;EAAY;EAAS;EAAc;EAAW;EAAQ;EAAU;EAAU;EAAW;EAAS;EAAc;EAAc;EAAc;EAAc;EAAc;EAAa;CAAM,CAAC,CAAC,CAAC,SAAS,oPAAoP;CACxnB,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,0OAA0O,CAAC,CAAC,SAAS;CACpR,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gJAAgJ;CAC7K,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI;AACtK,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAM,wCAAsD,EAAE,OAAO;CACnE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CACxE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;CAC9E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;CACnF,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,sDAAsD;CACnF,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,4DAA4D;CAC3F,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,gEAAgE;CAC/F,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,uDAAuD;CACtF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CAC/E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD;CACpF,cAAc,EAAE,MAAM;EAAC,EAAE,OAAO;EAAG,EAAE,OAAO,CAAC,CAAC,IAAI;EAAG,EAAE,OAAO;EAAG,EAAE,QAAQ;CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,sBAAsB,EAAE,QAAQ,CAAC,CAAC,SAAS,oDAAoD;AACjG,CAAC,CAAC,CAAC,SAAS,qDAAqD;AAKjE,MAAa,wBAAwB,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATuD,EAAE,OAAO,EAChE,MAAM,sCAAsC,SAAS,EACvD,CAAC,CAAC,CAAC,SAAS,gEAOF;AACV,CAAC"}
1
+ {"version":3,"file":"create-table-field.mjs","names":[],"sources":["../../src/actions/create-table-field.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SoftrCreateTableFieldInput = z.object({\n name: z.string().describe(\"The name of the new field. This will be the display name shown in the table and used to reference the field. Should be descriptive and unique within the table.\"),\n type: z.enum([\"SINGLE_LINE_TEXT\", \"CHECKBOX\", \"CURRENCY\", \"DATETIME\", \"DURATION\", \"EMAIL\", \"SELECT\", \"NUMBER\", \"ATTACHMENT\", \"RATING\", \"LINKED_RECORD\", \"LONG_TEXT\", \"URL\", \"PERCENT\", \"BUTTON\", \"PROGRESS\", \"PHONE\", \"DATE_RANGE\", \"ADDRESS\", \"TIME\", \"LOOKUP\", \"ROLLUP\", \"FORMULA\", \"COUNT\", \"CREATED_AT\", \"UPDATED_AT\", \"CREATED_BY\", \"UPDATED_BY\", \"AUTONUMBER\", \"RECORD_ID\", \"USER\"]).describe(\"The type of the field, which determines what kind of data can be stored. Common types include SINGLE_LINE_TEXT for short text, EMAIL for email addresses, NUMBER for numeric values, CHECKBOX for boolean values, and SELECT for dropdown choices.\"),\n options: z.record(z.string(), z.unknown()).describe(\"Configuration options specific to the field type. For SINGLE_LINE_TEXT, can include 'minLength' and 'maxLength' constraints. For SELECT, would include the list of choices. Can be an empty object {} if no specific options are needed.\").optional(),\n tableId: z.string().describe(\"The unique identifier of the table where the field will be added. This specifies which table within the database should receive the new field.\"),\n databaseId: z.string().describe(\"The unique identifier of the database containing the table. This is a UUID format identifier that specifies which database to use.\"),\n}).describe(\"Request parameters for adding a new field to a Softr table.\");\nconst SoftrCreateTableField_FieldDataSchema = z.object({\n id: z.string().describe(\"Unique identifier for the newly created field.\").nullable(),\n name: z.string().describe(\"The name of the field as specified in the request.\").nullable(),\n type: z.string().describe(\"The field type (e.g., SINGLE_LINE_TEXT, EMAIL, NUMBER).\").nullable(),\n locked: z.boolean().describe(\"Whether this field is locked and cannot be modified.\").nullable(),\n options: z.record(z.string(), z.unknown()).describe(\"Configuration options for the field, specific to its type.\"),\n readonly: z.boolean().describe(\"Whether this field is read-only and cannot be edited by users.\").nullable(),\n required: z.boolean().describe(\"Whether this field is required and must have a value.\").nullable(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the field was created.\").nullable(),\n updatedAt: z.string().describe(\"ISO 8601 timestamp when the field was last updated.\").nullable(),\n defaultValue: z.union([z.string(), z.number().int(), z.number(), z.boolean()]).nullable().optional(),\n allowMultipleEntries: z.boolean().describe(\"Whether this field allows multiple entries/values.\").nullable(),\n}).passthrough().describe(\"Detailed information about the created table field.\");\nexport const SoftrCreateTableFieldOutput = z.object({\n data: SoftrCreateTableField_FieldDataSchema.nullable(),\n}).passthrough().describe(\"Response containing the newly created table field information.\");\n\nexport const softrCreateTableField = action(\"SOFTR_CREATE_TABLE_FIELD\", {\n slug: \"softr-create-table-field\",\n name: \"Create Table Field\",\n description: \"Tool to add a new field to a Softr table. Use when you need to add a new column to an existing table, such as adding an email field, a text field, or any other field type to store additional data.\",\n input: SoftrCreateTableFieldInput,\n output: SoftrCreateTableFieldOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6B,EAAE,OAAO;CACjD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iKAA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G,EAAE,OAAO,CAAC,CAAC,IAAI;EAAG,EAAE,OAAO;EAAG,EAAE,QAAQ;CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,sBAAsB,EAAE,QAAQ,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;AAC5G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAK/E,MAAa,wBAAwB,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATyC,EAAE,OAAO,EAClD,MAAM,sCAAsC,SAAS,EACvD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gEAOhB;AACV,CAAC"}
@@ -39,15 +39,15 @@ const SoftrCreateTableInput = zod.z.object({
39
39
  "USER"
40
40
  ]).describe("The type of the field. Must be one of the supported field types."),
41
41
  options: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Optional configuration object for the field. Required for certain field types like SELECT (must contain 'choices' array).").optional()
42
- }).describe("Definition of a field in the table.")).describe("Collection of field definitions for the table. At least one field is required. Each field must have a name and type."),
42
+ }).passthrough().describe("Definition of a field in the table.")).describe("Collection of field definitions for the table. At least one field is required. Each field must have a name and type."),
43
43
  database_id: zod.z.string().describe("The unique identifier of the database where the table will be created."),
44
44
  description: zod.z.string().describe("Optional description of the table to explain its purpose.").optional(),
45
45
  primary_field_name: zod.z.string().describe("Designates which field serves as the primary identifier for records in this table. Must match the name of one of the fields in the fields array.").optional()
46
46
  }).describe("Request parameters for creating a new table in a Softr database.");
47
47
  const SoftrCreateTable_ResponseFieldSchema = zod.z.object({
48
- id: zod.z.string().describe("Unique identifier of the field."),
49
- name: zod.z.string().describe("The name of the field."),
50
- type: zod.z.string().describe("The type of the field."),
48
+ id: zod.z.string().describe("Unique identifier of the field.").nullable(),
49
+ name: zod.z.string().describe("The name of the field.").nullable(),
50
+ type: zod.z.string().describe("The type of the field.").nullable(),
51
51
  locked: zod.z.boolean().describe("Whether the field is locked.").nullable().optional(),
52
52
  options: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Configuration options for the field.").nullable().optional(),
53
53
  readonly: zod.z.boolean().describe("Whether the field is read-only.").nullable().optional(),
@@ -57,18 +57,18 @@ const SoftrCreateTable_ResponseFieldSchema = zod.z.object({
57
57
  updatedAt: zod.z.string().describe("Timestamp when the field was last updated.").nullable().optional(),
58
58
  defaultValue: zod.z.string().describe("Default value for the field.").nullable().optional(),
59
59
  allowMultipleEntries: zod.z.boolean().describe("Whether multiple entries are allowed for this field.").nullable().optional()
60
- }).describe("Field information in the response.");
60
+ }).passthrough().describe("Field information in the response.");
61
61
  const SoftrCreateTable_TableDataSchema = zod.z.object({
62
- id: zod.z.string().describe("Unique identifier of the created table."),
63
- name: zod.z.string().describe("Name of the table."),
62
+ id: zod.z.string().describe("Unique identifier of the created table.").nullable(),
63
+ name: zod.z.string().describe("Name of the table.").nullable(),
64
64
  fields: zod.z.array(SoftrCreateTable_ResponseFieldSchema).describe("List of fields in the created table."),
65
- createdAt: zod.z.string().describe("Timestamp when the table was created."),
66
- updatedAt: zod.z.string().describe("Timestamp when the table was last updated."),
65
+ createdAt: zod.z.string().describe("Timestamp when the table was created.").nullable(),
66
+ updatedAt: zod.z.string().describe("Timestamp when the table was last updated.").nullable(),
67
67
  description: zod.z.string().describe("Description of the table.").nullable().optional(),
68
68
  defaultViewId: zod.z.string().describe("ID of the default view for this table.").nullable().optional(),
69
69
  primaryFieldId: zod.z.string().describe("ID of the field designated as the primary identifier.").nullable().optional()
70
- }).describe("The created table data.");
71
- const SoftrCreateTableOutput = zod.z.object({ data: SoftrCreateTable_TableDataSchema.nullable() }).describe("Response from creating a table in Softr database.");
70
+ }).passthrough().describe("The created table data.");
71
+ const SoftrCreateTableOutput = zod.z.object({ data: SoftrCreateTable_TableDataSchema.nullable() }).passthrough().describe("Response from creating a table in Softr database.");
72
72
  const softrCreateTable = require_action.action("SOFTR_CREATE_TABLE", {
73
73
  slug: "softr-create-table",
74
74
  name: "Create Table",
@@ -1 +1 @@
1
- {"version":3,"file":"create-table.cjs","names":["z","action"],"sources":["../../src/actions/create-table.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SoftrCreateTableInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"The name of the new table.\"),\n fields: z.array(z.object({\n name: z.string().describe(\"The name of the field.\"),\n type: z.enum([\"SINGLE_LINE_TEXT\", \"CHECKBOX\", \"CURRENCY\", \"DATETIME\", \"DURATION\", \"EMAIL\", \"SELECT\", \"NUMBER\", \"ATTACHMENT\", \"RATING\", \"LINKED_RECORD\", \"LONG_TEXT\", \"URL\", \"PERCENT\", \"BUTTON\", \"PROGRESS\", \"PHONE\", \"DATE_RANGE\", \"ADDRESS\", \"TIME\", \"LOOKUP\", \"ROLLUP\", \"FORMULA\", \"COUNT\", \"CREATED_AT\", \"UPDATED_AT\", \"CREATED_BY\", \"UPDATED_BY\", \"AUTONUMBER\", \"RECORD_ID\", \"USER\"]).describe(\"The type of the field. Must be one of the supported field types.\"),\n options: z.record(z.string(), z.unknown()).describe(\"Optional configuration object for the field. Required for certain field types like SELECT (must contain 'choices' array).\").optional(),\n}).describe(\"Definition of a field in the table.\")).describe(\"Collection of field definitions for the table. At least one field is required. Each field must have a name and type.\"),\n database_id: z.string().describe(\"The unique identifier of the database where the table will be created.\"),\n description: z.string().describe(\"Optional description of the table to explain its purpose.\").optional(),\n primary_field_name: z.string().describe(\"Designates which field serves as the primary identifier for records in this table. Must match the name of one of the fields in the fields array.\").optional(),\n}).describe(\"Request parameters for creating a new table in a Softr database.\");\nconst SoftrCreateTable_ResponseFieldSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the field.\"),\n name: z.string().describe(\"The name of the field.\"),\n type: z.string().describe(\"The type of the field.\"),\n locked: z.boolean().describe(\"Whether the field is locked.\").nullable().optional(),\n options: z.record(z.string(), z.unknown()).describe(\"Configuration options for the field.\").nullable().optional(),\n readonly: z.boolean().describe(\"Whether the field is read-only.\").nullable().optional(),\n required: z.boolean().describe(\"Whether the field is required.\").nullable().optional(),\n aiOptions: z.record(z.string(), z.unknown()).describe(\"AI configuration options for the field.\").nullable().optional(),\n createdAt: z.string().describe(\"Timestamp when the field was created.\").nullable().optional(),\n updatedAt: z.string().describe(\"Timestamp when the field was last updated.\").nullable().optional(),\n defaultValue: z.string().describe(\"Default value for the field.\").nullable().optional(),\n allowMultipleEntries: z.boolean().describe(\"Whether multiple entries are allowed for this field.\").nullable().optional(),\n}).describe(\"Field information in the response.\");\nconst SoftrCreateTable_TableDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the created table.\"),\n name: z.string().describe(\"Name of the table.\"),\n fields: z.array(SoftrCreateTable_ResponseFieldSchema).describe(\"List of fields in the created table.\"),\n createdAt: z.string().describe(\"Timestamp when the table was created.\"),\n updatedAt: z.string().describe(\"Timestamp when the table was last updated.\"),\n description: z.string().describe(\"Description of the table.\").nullable().optional(),\n defaultViewId: z.string().describe(\"ID of the default view for this table.\").nullable().optional(),\n primaryFieldId: z.string().describe(\"ID of the field designated as the primary identifier.\").nullable().optional(),\n}).describe(\"The created table data.\");\nexport const SoftrCreateTableOutput: z.ZodTypeAny = z.object({\n data: SoftrCreateTable_TableDataSchema.nullable(),\n}).describe(\"Response from creating a table in Softr database.\");\n\nexport const softrCreateTable = action(\"SOFTR_CREATE_TABLE\", {\n slug: \"softr-create-table\",\n name: \"Create Table\",\n description: \"Tool to create a new table within a specified Softr database. Use when you need to add a new data structure with custom fields to organize information.\",\n input: SoftrCreateTableInput,\n output: SoftrCreateTableOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAsCA,IAAAA,EAAE,OAAO;CAC1D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CACtD,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EACzB,MAAMA,IAAAA,EAAE,OAAO,CAAC,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AwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnH,CAAC,CAAC,CAAC,SAAS,yBAAyB;AACrC,MAAa,yBAAuCA,IAAAA,EAAE,OAAO,EAC3D,MAAM,iCAAiC,SAAS,EAClD,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAE/D,MAAa,mBAAmBC,eAAAA,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-table.cjs","names":["z","action"],"sources":["../../src/actions/create-table.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SoftrCreateTableInput = z.object({\n name: z.string().describe(\"The name of the new table.\"),\n fields: z.array(z.object({\n name: z.string().describe(\"The name of the field.\"),\n type: z.enum([\"SINGLE_LINE_TEXT\", \"CHECKBOX\", \"CURRENCY\", \"DATETIME\", \"DURATION\", \"EMAIL\", \"SELECT\", \"NUMBER\", \"ATTACHMENT\", \"RATING\", \"LINKED_RECORD\", \"LONG_TEXT\", \"URL\", \"PERCENT\", \"BUTTON\", \"PROGRESS\", \"PHONE\", \"DATE_RANGE\", \"ADDRESS\", \"TIME\", \"LOOKUP\", \"ROLLUP\", \"FORMULA\", \"COUNT\", \"CREATED_AT\", \"UPDATED_AT\", \"CREATED_BY\", \"UPDATED_BY\", \"AUTONUMBER\", \"RECORD_ID\", \"USER\"]).describe(\"The type of the field. Must be one of the supported field types.\"),\n options: z.record(z.string(), z.unknown()).describe(\"Optional configuration object for the field. Required for certain field types like SELECT (must contain 'choices' array).\").optional(),\n}).passthrough().describe(\"Definition of a field in the table.\")).describe(\"Collection of field definitions for the table. At least one field is required. Each field must have a name and type.\"),\n database_id: z.string().describe(\"The unique identifier of the database where the table will be created.\"),\n description: z.string().describe(\"Optional description of the table to explain its purpose.\").optional(),\n primary_field_name: z.string().describe(\"Designates which field serves as the primary identifier for records in this table. Must match the name of one of the fields in the fields array.\").optional(),\n}).describe(\"Request parameters for creating a new table in a Softr database.\");\nconst SoftrCreateTable_ResponseFieldSchema = z.object({\n id: z.string().describe(\"Unique identifier of the field.\").nullable(),\n name: z.string().describe(\"The name of the field.\").nullable(),\n type: z.string().describe(\"The type of the field.\").nullable(),\n locked: z.boolean().describe(\"Whether the field is locked.\").nullable().optional(),\n options: z.record(z.string(), z.unknown()).describe(\"Configuration options for the field.\").nullable().optional(),\n readonly: z.boolean().describe(\"Whether the field is read-only.\").nullable().optional(),\n required: z.boolean().describe(\"Whether the field is required.\").nullable().optional(),\n aiOptions: z.record(z.string(), z.unknown()).describe(\"AI configuration options for the field.\").nullable().optional(),\n createdAt: z.string().describe(\"Timestamp when the field was created.\").nullable().optional(),\n updatedAt: z.string().describe(\"Timestamp when the field was last updated.\").nullable().optional(),\n defaultValue: z.string().describe(\"Default value for the field.\").nullable().optional(),\n allowMultipleEntries: z.boolean().describe(\"Whether multiple entries are allowed for this field.\").nullable().optional(),\n}).passthrough().describe(\"Field information in the response.\");\nconst SoftrCreateTable_TableDataSchema = z.object({\n id: z.string().describe(\"Unique identifier of the created table.\").nullable(),\n name: z.string().describe(\"Name of the table.\").nullable(),\n fields: z.array(SoftrCreateTable_ResponseFieldSchema).describe(\"List of fields in the created table.\"),\n createdAt: z.string().describe(\"Timestamp when the table was created.\").nullable(),\n updatedAt: z.string().describe(\"Timestamp when the table was last updated.\").nullable(),\n description: z.string().describe(\"Description of the table.\").nullable().optional(),\n defaultViewId: z.string().describe(\"ID of the default view for this table.\").nullable().optional(),\n primaryFieldId: z.string().describe(\"ID of the field designated as the primary identifier.\").nullable().optional(),\n}).passthrough().describe(\"The created table data.\");\nexport const SoftrCreateTableOutput = z.object({\n data: SoftrCreateTable_TableDataSchema.nullable(),\n}).passthrough().describe(\"Response from creating a table in Softr database.\");\n\nexport const softrCreateTable = action(\"SOFTR_CREATE_TABLE\", {\n slug: \"softr-create-table\",\n name: \"Create Table\",\n description: \"Tool to create a new table within a specified Softr database. Use when you need to add a new data structure with custom fields to organize information.\",\n input: SoftrCreateTableInput,\n output: SoftrCreateTableOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAwBA,IAAAA,EAAE,OAAO;CAC5C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CACtD,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EACzB,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;EAClD,MAAMA,IAAAA,EAAE,KAAK;GAAC;GAAoB;GAAY;GAAY;GAAY;GAAY;GAAS;GAAU;GAAU;GAAc;GAAU;GAAiB;GAAa;GAAO;GAAW;GAAU;GAAY;GAAS;GAAc;GAAW;GAAQ;GAAU;GAAU;GAAW;GAAS;GAAc;GAAc;GAAc;GAAc;GAAc;GAAa;EAAM,CAAC,CAAC,CAAC,SAAS,kEAAkE;EACtc,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2HAA2H,CAAC,CAAC,SAAS;CAC5L,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,CAAC,SAAS,sHAAsH;CAC/L,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE;CACzG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACvG,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kJAAkJ,CAAC,CAAC,SAAS;AACvM,CAAC,CAAC,CAAC,SAAS,kEAAkE;AAC9E,MAAM,uCAAuCA,IAAAA,EAAE,OAAO;CACpD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,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OAAO;CAChD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC5E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CACzD,QAAQA,IAAAA,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,sCAAsC;CACrG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CACjF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACtF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yBAAyB;AACnD,MAAa,yBAAyBA,IAAAA,EAAE,OAAO,EAC7C,MAAM,iCAAiC,SAAS,EAClD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAE7E,MAAa,mBAAmBC,eAAAA,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,86 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-table.d.ts
4
- declare const SoftrCreateTableInput: z.ZodTypeAny;
5
- declare const SoftrCreateTableOutput: z.ZodTypeAny;
6
- declare const softrCreateTable: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SoftrCreateTableInput: z.ZodObject<{
5
+ name: z.ZodString;
6
+ fields: z.ZodArray<z.ZodObject<{
7
+ name: z.ZodString;
8
+ type: z.ZodEnum<{
9
+ SINGLE_LINE_TEXT: "SINGLE_LINE_TEXT";
10
+ CHECKBOX: "CHECKBOX";
11
+ CURRENCY: "CURRENCY";
12
+ DATETIME: "DATETIME";
13
+ DURATION: "DURATION";
14
+ EMAIL: "EMAIL";
15
+ SELECT: "SELECT";
16
+ NUMBER: "NUMBER";
17
+ ATTACHMENT: "ATTACHMENT";
18
+ RATING: "RATING";
19
+ LINKED_RECORD: "LINKED_RECORD";
20
+ LONG_TEXT: "LONG_TEXT";
21
+ URL: "URL";
22
+ PERCENT: "PERCENT";
23
+ BUTTON: "BUTTON";
24
+ PROGRESS: "PROGRESS";
25
+ PHONE: "PHONE";
26
+ DATE_RANGE: "DATE_RANGE";
27
+ ADDRESS: "ADDRESS";
28
+ TIME: "TIME";
29
+ LOOKUP: "LOOKUP";
30
+ ROLLUP: "ROLLUP";
31
+ FORMULA: "FORMULA";
32
+ COUNT: "COUNT";
33
+ CREATED_AT: "CREATED_AT";
34
+ UPDATED_AT: "UPDATED_AT";
35
+ CREATED_BY: "CREATED_BY";
36
+ UPDATED_BY: "UPDATED_BY";
37
+ AUTONUMBER: "AUTONUMBER";
38
+ RECORD_ID: "RECORD_ID";
39
+ USER: "USER";
40
+ }>;
41
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
42
+ }, z.core.$loose>>;
43
+ database_id: z.ZodString;
44
+ description: z.ZodOptional<z.ZodString>;
45
+ primary_field_name: z.ZodOptional<z.ZodString>;
46
+ }, z.core.$strip>;
47
+ declare const SoftrCreateTableOutput: z.ZodObject<{
48
+ data: z.ZodNullable<z.ZodObject<{
49
+ id: z.ZodNullable<z.ZodString>;
50
+ name: z.ZodNullable<z.ZodString>;
51
+ fields: z.ZodArray<z.ZodObject<{
52
+ id: z.ZodNullable<z.ZodString>;
53
+ name: z.ZodNullable<z.ZodString>;
54
+ type: z.ZodNullable<z.ZodString>;
55
+ locked: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
56
+ options: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
57
+ readonly: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
58
+ required: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
59
+ aiOptions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
60
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
61
+ updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
62
+ defaultValue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
63
+ allowMultipleEntries: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
64
+ }, z.core.$loose>>;
65
+ createdAt: z.ZodNullable<z.ZodString>;
66
+ updatedAt: z.ZodNullable<z.ZodString>;
67
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
68
+ defaultViewId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
69
+ primaryFieldId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
70
+ }, z.core.$loose>>;
71
+ }, z.core.$loose>;
72
+ declare const softrCreateTable: import("@keystrokehq/action").WorkflowActionDefinition<{
73
+ name: string;
74
+ fields: {
75
+ [x: string]: unknown;
76
+ name: string;
77
+ type: "SINGLE_LINE_TEXT" | "CHECKBOX" | "CURRENCY" | "DATETIME" | "DURATION" | "EMAIL" | "SELECT" | "NUMBER" | "ATTACHMENT" | "RATING" | "LINKED_RECORD" | "LONG_TEXT" | "URL" | "PERCENT" | "BUTTON" | "PROGRESS" | "PHONE" | "DATE_RANGE" | "ADDRESS" | "TIME" | "LOOKUP" | "ROLLUP" | "FORMULA" | "COUNT" | "CREATED_AT" | "UPDATED_AT" | "CREATED_BY" | "UPDATED_BY" | "AUTONUMBER" | "RECORD_ID" | "USER";
78
+ options?: Record<string, unknown> | undefined;
79
+ }[];
80
+ database_id: string;
81
+ description?: string | undefined;
82
+ primary_field_name?: string | undefined;
83
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
84
  //#endregion
8
85
  export { softrCreateTable };
9
86
  //# sourceMappingURL=create-table.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-table.d.cts","names":[],"sources":["../../src/actions/create-table.ts"],"mappings":";;;cAIa,qBAAA,EAAuB,CAAA,CAAE,UAUyC;AAAA,cAyBlE,sBAAA,EAAwB,CAAA,CAAE,UAEyB;AAAA,cAEnD,gBAAA,gCAAgB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"create-table.d.cts","names":[],"sources":["../../src/actions/create-table.ts"],"mappings":";;;cAIa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAmCrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;cAItB,gBAAA,gCAAgB,wBAAA;;;;;;cAM3B,MAAA;EAAA"}
@@ -1,9 +1,86 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-table.d.ts
4
- declare const SoftrCreateTableInput: z.ZodTypeAny;
5
- declare const SoftrCreateTableOutput: z.ZodTypeAny;
6
- declare const softrCreateTable: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SoftrCreateTableInput: z.ZodObject<{
5
+ name: z.ZodString;
6
+ fields: z.ZodArray<z.ZodObject<{
7
+ name: z.ZodString;
8
+ type: z.ZodEnum<{
9
+ SINGLE_LINE_TEXT: "SINGLE_LINE_TEXT";
10
+ CHECKBOX: "CHECKBOX";
11
+ CURRENCY: "CURRENCY";
12
+ DATETIME: "DATETIME";
13
+ DURATION: "DURATION";
14
+ EMAIL: "EMAIL";
15
+ SELECT: "SELECT";
16
+ NUMBER: "NUMBER";
17
+ ATTACHMENT: "ATTACHMENT";
18
+ RATING: "RATING";
19
+ LINKED_RECORD: "LINKED_RECORD";
20
+ LONG_TEXT: "LONG_TEXT";
21
+ URL: "URL";
22
+ PERCENT: "PERCENT";
23
+ BUTTON: "BUTTON";
24
+ PROGRESS: "PROGRESS";
25
+ PHONE: "PHONE";
26
+ DATE_RANGE: "DATE_RANGE";
27
+ ADDRESS: "ADDRESS";
28
+ TIME: "TIME";
29
+ LOOKUP: "LOOKUP";
30
+ ROLLUP: "ROLLUP";
31
+ FORMULA: "FORMULA";
32
+ COUNT: "COUNT";
33
+ CREATED_AT: "CREATED_AT";
34
+ UPDATED_AT: "UPDATED_AT";
35
+ CREATED_BY: "CREATED_BY";
36
+ UPDATED_BY: "UPDATED_BY";
37
+ AUTONUMBER: "AUTONUMBER";
38
+ RECORD_ID: "RECORD_ID";
39
+ USER: "USER";
40
+ }>;
41
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
42
+ }, z.core.$loose>>;
43
+ database_id: z.ZodString;
44
+ description: z.ZodOptional<z.ZodString>;
45
+ primary_field_name: z.ZodOptional<z.ZodString>;
46
+ }, z.core.$strip>;
47
+ declare const SoftrCreateTableOutput: z.ZodObject<{
48
+ data: z.ZodNullable<z.ZodObject<{
49
+ id: z.ZodNullable<z.ZodString>;
50
+ name: z.ZodNullable<z.ZodString>;
51
+ fields: z.ZodArray<z.ZodObject<{
52
+ id: z.ZodNullable<z.ZodString>;
53
+ name: z.ZodNullable<z.ZodString>;
54
+ type: z.ZodNullable<z.ZodString>;
55
+ locked: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
56
+ options: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
57
+ readonly: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
58
+ required: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
59
+ aiOptions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
60
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
61
+ updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
62
+ defaultValue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
63
+ allowMultipleEntries: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
64
+ }, z.core.$loose>>;
65
+ createdAt: z.ZodNullable<z.ZodString>;
66
+ updatedAt: z.ZodNullable<z.ZodString>;
67
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
68
+ defaultViewId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
69
+ primaryFieldId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
70
+ }, z.core.$loose>>;
71
+ }, z.core.$loose>;
72
+ declare const softrCreateTable: import("@keystrokehq/action").WorkflowActionDefinition<{
73
+ name: string;
74
+ fields: {
75
+ [x: string]: unknown;
76
+ name: string;
77
+ type: "SINGLE_LINE_TEXT" | "CHECKBOX" | "CURRENCY" | "DATETIME" | "DURATION" | "EMAIL" | "SELECT" | "NUMBER" | "ATTACHMENT" | "RATING" | "LINKED_RECORD" | "LONG_TEXT" | "URL" | "PERCENT" | "BUTTON" | "PROGRESS" | "PHONE" | "DATE_RANGE" | "ADDRESS" | "TIME" | "LOOKUP" | "ROLLUP" | "FORMULA" | "COUNT" | "CREATED_AT" | "UPDATED_AT" | "CREATED_BY" | "UPDATED_BY" | "AUTONUMBER" | "RECORD_ID" | "USER";
78
+ options?: Record<string, unknown> | undefined;
79
+ }[];
80
+ database_id: string;
81
+ description?: string | undefined;
82
+ primary_field_name?: string | undefined;
83
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
84
  //#endregion
8
85
  export { softrCreateTable };
9
86
  //# sourceMappingURL=create-table.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-table.d.mts","names":[],"sources":["../../src/actions/create-table.ts"],"mappings":";;;cAIa,qBAAA,EAAuB,CAAA,CAAE,UAUyC;AAAA,cAyBlE,sBAAA,EAAwB,CAAA,CAAE,UAEyB;AAAA,cAEnD,gBAAA,gCAAgB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"create-table.d.mts","names":[],"sources":["../../src/actions/create-table.ts"],"mappings":";;;cAIa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAmCrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;cAItB,gBAAA,gCAAgB,wBAAA;;;;;;cAM3B,MAAA;EAAA"}
@@ -39,15 +39,15 @@ const SoftrCreateTableInput = z.object({
39
39
  "USER"
40
40
  ]).describe("The type of the field. Must be one of the supported field types."),
41
41
  options: z.record(z.string(), z.unknown()).describe("Optional configuration object for the field. Required for certain field types like SELECT (must contain 'choices' array).").optional()
42
- }).describe("Definition of a field in the table.")).describe("Collection of field definitions for the table. At least one field is required. Each field must have a name and type."),
42
+ }).passthrough().describe("Definition of a field in the table.")).describe("Collection of field definitions for the table. At least one field is required. Each field must have a name and type."),
43
43
  database_id: z.string().describe("The unique identifier of the database where the table will be created."),
44
44
  description: z.string().describe("Optional description of the table to explain its purpose.").optional(),
45
45
  primary_field_name: z.string().describe("Designates which field serves as the primary identifier for records in this table. Must match the name of one of the fields in the fields array.").optional()
46
46
  }).describe("Request parameters for creating a new table in a Softr database.");
47
47
  const SoftrCreateTable_ResponseFieldSchema = z.object({
48
- id: z.string().describe("Unique identifier of the field."),
49
- name: z.string().describe("The name of the field."),
50
- type: z.string().describe("The type of the field."),
48
+ id: z.string().describe("Unique identifier of the field.").nullable(),
49
+ name: z.string().describe("The name of the field.").nullable(),
50
+ type: z.string().describe("The type of the field.").nullable(),
51
51
  locked: z.boolean().describe("Whether the field is locked.").nullable().optional(),
52
52
  options: z.record(z.string(), z.unknown()).describe("Configuration options for the field.").nullable().optional(),
53
53
  readonly: z.boolean().describe("Whether the field is read-only.").nullable().optional(),
@@ -57,23 +57,23 @@ const SoftrCreateTable_ResponseFieldSchema = z.object({
57
57
  updatedAt: z.string().describe("Timestamp when the field was last updated.").nullable().optional(),
58
58
  defaultValue: z.string().describe("Default value for the field.").nullable().optional(),
59
59
  allowMultipleEntries: z.boolean().describe("Whether multiple entries are allowed for this field.").nullable().optional()
60
- }).describe("Field information in the response.");
60
+ }).passthrough().describe("Field information in the response.");
61
61
  const SoftrCreateTable_TableDataSchema = z.object({
62
- id: z.string().describe("Unique identifier of the created table."),
63
- name: z.string().describe("Name of the table."),
62
+ id: z.string().describe("Unique identifier of the created table.").nullable(),
63
+ name: z.string().describe("Name of the table.").nullable(),
64
64
  fields: z.array(SoftrCreateTable_ResponseFieldSchema).describe("List of fields in the created table."),
65
- createdAt: z.string().describe("Timestamp when the table was created."),
66
- updatedAt: z.string().describe("Timestamp when the table was last updated."),
65
+ createdAt: z.string().describe("Timestamp when the table was created.").nullable(),
66
+ updatedAt: z.string().describe("Timestamp when the table was last updated.").nullable(),
67
67
  description: z.string().describe("Description of the table.").nullable().optional(),
68
68
  defaultViewId: z.string().describe("ID of the default view for this table.").nullable().optional(),
69
69
  primaryFieldId: z.string().describe("ID of the field designated as the primary identifier.").nullable().optional()
70
- }).describe("The created table data.");
70
+ }).passthrough().describe("The created table data.");
71
71
  const softrCreateTable = action("SOFTR_CREATE_TABLE", {
72
72
  slug: "softr-create-table",
73
73
  name: "Create Table",
74
74
  description: "Tool to create a new table within a specified Softr database. Use when you need to add a new data structure with custom fields to organize information.",
75
75
  input: SoftrCreateTableInput,
76
- output: z.object({ data: SoftrCreateTable_TableDataSchema.nullable() }).describe("Response from creating a table in Softr database.")
76
+ output: z.object({ data: SoftrCreateTable_TableDataSchema.nullable() }).passthrough().describe("Response from creating a table in Softr database.")
77
77
  });
78
78
  //#endregion
79
79
  export { softrCreateTable };
@@ -1 +1 @@
1
- {"version":3,"file":"create-table.mjs","names":[],"sources":["../../src/actions/create-table.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SoftrCreateTableInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"The name of the new table.\"),\n fields: z.array(z.object({\n name: z.string().describe(\"The name of the field.\"),\n type: z.enum([\"SINGLE_LINE_TEXT\", \"CHECKBOX\", \"CURRENCY\", \"DATETIME\", \"DURATION\", \"EMAIL\", \"SELECT\", \"NUMBER\", \"ATTACHMENT\", \"RATING\", \"LINKED_RECORD\", \"LONG_TEXT\", \"URL\", \"PERCENT\", \"BUTTON\", \"PROGRESS\", \"PHONE\", \"DATE_RANGE\", \"ADDRESS\", \"TIME\", \"LOOKUP\", \"ROLLUP\", \"FORMULA\", \"COUNT\", \"CREATED_AT\", \"UPDATED_AT\", \"CREATED_BY\", \"UPDATED_BY\", \"AUTONUMBER\", \"RECORD_ID\", \"USER\"]).describe(\"The type of the field. Must be one of the supported field types.\"),\n options: z.record(z.string(), z.unknown()).describe(\"Optional configuration object for the field. Required for certain field types like SELECT (must contain 'choices' array).\").optional(),\n}).describe(\"Definition of a field in the table.\")).describe(\"Collection of field definitions for the table. At least one field is required. Each field must have a name and type.\"),\n database_id: z.string().describe(\"The unique identifier of the database where the table will be created.\"),\n description: z.string().describe(\"Optional description of the table to explain its purpose.\").optional(),\n primary_field_name: z.string().describe(\"Designates which field serves as the primary identifier for records in this table. Must match the name of one of the fields in the fields array.\").optional(),\n}).describe(\"Request parameters for creating a new table in a Softr database.\");\nconst SoftrCreateTable_ResponseFieldSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the field.\"),\n name: z.string().describe(\"The name of the field.\"),\n type: z.string().describe(\"The type of the field.\"),\n locked: z.boolean().describe(\"Whether the field is locked.\").nullable().optional(),\n options: z.record(z.string(), z.unknown()).describe(\"Configuration options for the field.\").nullable().optional(),\n readonly: z.boolean().describe(\"Whether the field is read-only.\").nullable().optional(),\n required: z.boolean().describe(\"Whether the field is required.\").nullable().optional(),\n aiOptions: z.record(z.string(), z.unknown()).describe(\"AI configuration options for the field.\").nullable().optional(),\n createdAt: z.string().describe(\"Timestamp when the field was created.\").nullable().optional(),\n updatedAt: z.string().describe(\"Timestamp when the field was last updated.\").nullable().optional(),\n defaultValue: z.string().describe(\"Default value for the field.\").nullable().optional(),\n allowMultipleEntries: z.boolean().describe(\"Whether multiple entries are allowed for this field.\").nullable().optional(),\n}).describe(\"Field information in the response.\");\nconst SoftrCreateTable_TableDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the created table.\"),\n name: z.string().describe(\"Name of the table.\"),\n fields: z.array(SoftrCreateTable_ResponseFieldSchema).describe(\"List of fields in the created table.\"),\n createdAt: z.string().describe(\"Timestamp when the table was created.\"),\n updatedAt: z.string().describe(\"Timestamp when the table was last updated.\"),\n description: z.string().describe(\"Description of the table.\").nullable().optional(),\n defaultViewId: z.string().describe(\"ID of the default view for this table.\").nullable().optional(),\n primaryFieldId: z.string().describe(\"ID of the field designated as the primary identifier.\").nullable().optional(),\n}).describe(\"The created table data.\");\nexport const SoftrCreateTableOutput: z.ZodTypeAny = z.object({\n data: SoftrCreateTable_TableDataSchema.nullable(),\n}).describe(\"Response from creating a table in Softr database.\");\n\nexport const softrCreateTable = action(\"SOFTR_CREATE_TABLE\", {\n slug: \"softr-create-table\",\n name: \"Create Table\",\n description: \"Tool to create a new table within a specified Softr database. Use when you need to add a new data structure with custom fields to organize information.\",\n input: SoftrCreateTableInput,\n output: SoftrCreateTableOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAsC,EAAE,OAAO;CAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B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sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATkD,EAAE,OAAO,EAC3D,MAAM,iCAAiC,SAAS,EAClD,CAAC,CAAC,CAAC,SAAS,mDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"create-table.mjs","names":[],"sources":["../../src/actions/create-table.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SoftrCreateTableInput = z.object({\n name: z.string().describe(\"The name of the new table.\"),\n fields: z.array(z.object({\n name: z.string().describe(\"The name of the field.\"),\n type: z.enum([\"SINGLE_LINE_TEXT\", \"CHECKBOX\", \"CURRENCY\", \"DATETIME\", \"DURATION\", \"EMAIL\", \"SELECT\", \"NUMBER\", \"ATTACHMENT\", \"RATING\", \"LINKED_RECORD\", \"LONG_TEXT\", \"URL\", \"PERCENT\", \"BUTTON\", \"PROGRESS\", \"PHONE\", \"DATE_RANGE\", \"ADDRESS\", \"TIME\", \"LOOKUP\", \"ROLLUP\", \"FORMULA\", \"COUNT\", \"CREATED_AT\", \"UPDATED_AT\", \"CREATED_BY\", \"UPDATED_BY\", \"AUTONUMBER\", \"RECORD_ID\", \"USER\"]).describe(\"The type of the field. Must be one of the supported field types.\"),\n options: z.record(z.string(), z.unknown()).describe(\"Optional configuration object for the field. Required for certain field types like SELECT (must contain 'choices' array).\").optional(),\n}).passthrough().describe(\"Definition of a field in the table.\")).describe(\"Collection of field definitions for the table. At least one field is required. Each field must have a name and type.\"),\n database_id: z.string().describe(\"The unique identifier of the database where the table will be created.\"),\n description: z.string().describe(\"Optional description of the table to explain its purpose.\").optional(),\n primary_field_name: z.string().describe(\"Designates which field serves as the primary identifier for records in this table. Must match the name of one of the fields in the fields array.\").optional(),\n}).describe(\"Request parameters for creating a new table in a Softr database.\");\nconst SoftrCreateTable_ResponseFieldSchema = z.object({\n id: z.string().describe(\"Unique identifier of the field.\").nullable(),\n name: z.string().describe(\"The name of the field.\").nullable(),\n type: z.string().describe(\"The type of the field.\").nullable(),\n locked: z.boolean().describe(\"Whether the field is locked.\").nullable().optional(),\n options: z.record(z.string(), z.unknown()).describe(\"Configuration options for the field.\").nullable().optional(),\n readonly: z.boolean().describe(\"Whether the field is read-only.\").nullable().optional(),\n required: z.boolean().describe(\"Whether the field is required.\").nullable().optional(),\n aiOptions: z.record(z.string(), z.unknown()).describe(\"AI configuration options for the field.\").nullable().optional(),\n createdAt: z.string().describe(\"Timestamp when the field was created.\").nullable().optional(),\n updatedAt: z.string().describe(\"Timestamp when the field was last updated.\").nullable().optional(),\n defaultValue: z.string().describe(\"Default value for the field.\").nullable().optional(),\n allowMultipleEntries: z.boolean().describe(\"Whether multiple entries are allowed for this field.\").nullable().optional(),\n}).passthrough().describe(\"Field information in the response.\");\nconst SoftrCreateTable_TableDataSchema = z.object({\n id: z.string().describe(\"Unique identifier of the created table.\").nullable(),\n name: z.string().describe(\"Name of the table.\").nullable(),\n fields: z.array(SoftrCreateTable_ResponseFieldSchema).describe(\"List of fields in the created table.\"),\n createdAt: z.string().describe(\"Timestamp when the table was created.\").nullable(),\n updatedAt: z.string().describe(\"Timestamp when the table was last updated.\").nullable(),\n description: z.string().describe(\"Description of the table.\").nullable().optional(),\n defaultViewId: z.string().describe(\"ID of the default view for this table.\").nullable().optional(),\n primaryFieldId: z.string().describe(\"ID of the field designated as the primary identifier.\").nullable().optional(),\n}).passthrough().describe(\"The created table data.\");\nexport const SoftrCreateTableOutput = z.object({\n data: SoftrCreateTable_TableDataSchema.nullable(),\n}).passthrough().describe(\"Response from creating a table in Softr database.\");\n\nexport const softrCreateTable = action(\"SOFTR_CREATE_TABLE\", {\n slug: \"softr-create-table\",\n name: \"Create Table\",\n description: \"Tool to create a new table within a specified Softr database. Use when you need to add a new data structure with custom fields to organize information.\",\n input: SoftrCreateTableInput,\n output: SoftrCreateTableOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAwB,EAAE,OAAO;CAC5C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS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CAAC,CAAC,SAAS;CACjG,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yBAAyB;AAKnD,MAAa,mBAAmB,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAToC,EAAE,OAAO,EAC7C,MAAM,iCAAiC,SAAS,EAClD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAOhB;AACV,CAAC"}
@@ -6,9 +6,9 @@ const SoftrDeleteDatabaseInput = zod.z.object({
6
6
  database_id: zod.z.string().describe("The unique identifier of the database to delete. This is the database ID from Softr.")
7
7
  }).describe("Request model for deleting a database.");
8
8
  const SoftrDeleteDatabaseOutput = zod.z.object({
9
- message: zod.z.string().describe("A confirmation message indicating the outcome of the database deletion operation."),
9
+ message: zod.z.string().describe("A confirmation message indicating the outcome of the database deletion operation.").nullable(),
10
10
  success: zod.z.boolean().default(true).describe("Indicates whether the database was successfully deleted.").nullable().optional()
11
- }).describe("Response model for database deletion.");
11
+ }).passthrough().describe("Response model for database deletion.");
12
12
  const softrDeleteDatabase = require_action.action("SOFTR_DELETE_DATABASE", {
13
13
  slug: "softr-delete-database",
14
14
  name: "Delete database",
@@ -1 +1 @@
1
- {"version":3,"file":"delete-database.cjs","names":["z","action"],"sources":["../../src/actions/delete-database.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SoftrDeleteDatabaseInput: z.ZodTypeAny = z.object({\n force: z.boolean().default(false).describe(\"If true, deletes the database even if it contains tables or records. If false (default), deletion will fail if the database is not empty. Use with caution as this operation is irreversible.\").optional(),\n database_id: z.string().describe(\"The unique identifier of the database to delete. This is the database ID from Softr.\"),\n}).describe(\"Request model for deleting a database.\");\nexport const SoftrDeleteDatabaseOutput: z.ZodTypeAny = z.object({\n message: z.string().describe(\"A confirmation message indicating the outcome of the database deletion operation.\"),\n success: z.boolean().default(true).describe(\"Indicates whether the database was successfully deleted.\").nullable().optional(),\n}).describe(\"Response model for database deletion.\");\n\nexport const softrDeleteDatabase = action(\"SOFTR_DELETE_DATABASE\", {\n slug: \"softr-delete-database\",\n name: \"Delete database\",\n description: \"Tool to delete a specific database by its ID from Softr. Use when you need to remove a database. The database must be empty unless the 'force' parameter is set to true. This operation is irreversible.\",\n input: SoftrDeleteDatabaseInput,\n output: SoftrDeleteDatabaseOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyCA,IAAAA,EAAE,OAAO;CAC7D,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,+LAA+L,CAAC,CAAC,SAAS;CACrP,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF;AACzH,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAa,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;CAChH,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9H,CAAC,CAAC,CAAC,SAAS,uCAAuC;AAEnD,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"delete-database.cjs","names":["z","action"],"sources":["../../src/actions/delete-database.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SoftrDeleteDatabaseInput = z.object({\n force: z.boolean().default(false).describe(\"If true, deletes the database even if it contains tables or records. If false (default), deletion will fail if the database is not empty. Use with caution as this operation is irreversible.\").optional(),\n database_id: z.string().describe(\"The unique identifier of the database to delete. This is the database ID from Softr.\"),\n}).describe(\"Request model for deleting a database.\");\nexport const SoftrDeleteDatabaseOutput = z.object({\n message: z.string().describe(\"A confirmation message indicating the outcome of the database deletion operation.\").nullable(),\n success: z.boolean().default(true).describe(\"Indicates whether the database was successfully deleted.\").nullable().optional(),\n}).passthrough().describe(\"Response model for database deletion.\");\n\nexport const softrDeleteDatabase = action(\"SOFTR_DELETE_DATABASE\", {\n slug: \"softr-delete-database\",\n name: \"Delete database\",\n description: \"Tool to delete a specific database by its ID from Softr. Use when you need to remove a database. The database must be empty unless the 'force' parameter is set to true. This operation is irreversible.\",\n input: SoftrDeleteDatabaseInput,\n output: SoftrDeleteDatabaseOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,+LAA+L,CAAC,CAAC,SAAS;CACrP,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF;AACzH,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;CAC3H,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AAEjE,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,18 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/delete-database.d.ts
4
- declare const SoftrDeleteDatabaseInput: z.ZodTypeAny;
5
- declare const SoftrDeleteDatabaseOutput: z.ZodTypeAny;
6
- declare const softrDeleteDatabase: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SoftrDeleteDatabaseInput: z.ZodObject<{
5
+ force: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
6
+ database_id: z.ZodString;
7
+ }, z.core.$strip>;
8
+ declare const SoftrDeleteDatabaseOutput: z.ZodObject<{
9
+ message: z.ZodNullable<z.ZodString>;
10
+ success: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
11
+ }, z.core.$loose>;
12
+ declare const softrDeleteDatabase: import("@keystrokehq/action").WorkflowActionDefinition<{
13
+ database_id: string;
14
+ force?: boolean | undefined;
15
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
16
  //#endregion
8
17
  export { softrDeleteDatabase };
9
18
  //# sourceMappingURL=delete-database.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-database.d.cts","names":[],"sources":["../../src/actions/delete-database.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAGY;AAAA,cACxC,yBAAA,EAA2B,CAAA,CAAE,UAGU;AAAA,cAEvC,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"delete-database.d.cts","names":[],"sources":["../../src/actions/delete-database.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;cAIxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;cAKzB,mBAAA,gCAAmB,wBAAA"}
@@ -1,9 +1,18 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/delete-database.d.ts
4
- declare const SoftrDeleteDatabaseInput: z.ZodTypeAny;
5
- declare const SoftrDeleteDatabaseOutput: z.ZodTypeAny;
6
- declare const softrDeleteDatabase: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SoftrDeleteDatabaseInput: z.ZodObject<{
5
+ force: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
6
+ database_id: z.ZodString;
7
+ }, z.core.$strip>;
8
+ declare const SoftrDeleteDatabaseOutput: z.ZodObject<{
9
+ message: z.ZodNullable<z.ZodString>;
10
+ success: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
11
+ }, z.core.$loose>;
12
+ declare const softrDeleteDatabase: import("@keystrokehq/action").WorkflowActionDefinition<{
13
+ database_id: string;
14
+ force?: boolean | undefined;
15
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
16
  //#endregion
8
17
  export { softrDeleteDatabase };
9
18
  //# sourceMappingURL=delete-database.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-database.d.mts","names":[],"sources":["../../src/actions/delete-database.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAGY;AAAA,cACxC,yBAAA,EAA2B,CAAA,CAAE,UAGU;AAAA,cAEvC,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"delete-database.d.mts","names":[],"sources":["../../src/actions/delete-database.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;cAIxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;cAKzB,mBAAA,gCAAmB,wBAAA"}
@@ -9,9 +9,9 @@ const softrDeleteDatabase = action("SOFTR_DELETE_DATABASE", {
9
9
  database_id: z.string().describe("The unique identifier of the database to delete. This is the database ID from Softr.")
10
10
  }).describe("Request model for deleting a database."),
11
11
  output: z.object({
12
- message: z.string().describe("A confirmation message indicating the outcome of the database deletion operation."),
12
+ message: z.string().describe("A confirmation message indicating the outcome of the database deletion operation.").nullable(),
13
13
  success: z.boolean().default(true).describe("Indicates whether the database was successfully deleted.").nullable().optional()
14
- }).describe("Response model for database deletion.")
14
+ }).passthrough().describe("Response model for database deletion.")
15
15
  });
16
16
  //#endregion
17
17
  export { softrDeleteDatabase };
@@ -1 +1 @@
1
- {"version":3,"file":"delete-database.mjs","names":[],"sources":["../../src/actions/delete-database.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SoftrDeleteDatabaseInput: z.ZodTypeAny = z.object({\n force: z.boolean().default(false).describe(\"If true, deletes the database even if it contains tables or records. If false (default), deletion will fail if the database is not empty. Use with caution as this operation is irreversible.\").optional(),\n database_id: z.string().describe(\"The unique identifier of the database to delete. This is the database ID from Softr.\"),\n}).describe(\"Request model for deleting a database.\");\nexport const SoftrDeleteDatabaseOutput: z.ZodTypeAny = z.object({\n message: z.string().describe(\"A confirmation message indicating the outcome of the database deletion operation.\"),\n success: z.boolean().default(true).describe(\"Indicates whether the database was successfully deleted.\").nullable().optional(),\n}).describe(\"Response model for database deletion.\");\n\nexport const softrDeleteDatabase = action(\"SOFTR_DELETE_DATABASE\", {\n slug: \"softr-delete-database\",\n name: \"Delete database\",\n description: \"Tool to delete a specific database by its ID from Softr. Use when you need to remove a database. The database must be empty unless the 'force' parameter is set to true. This operation is irreversible.\",\n input: SoftrDeleteDatabaseInput,\n output: SoftrDeleteDatabaseOutput,\n});\n"],"mappings":";;AAaA,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAboD,EAAE,OAAO;EAC7D,OAAO,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,+LAA+L,CAAC,CAAC,SAAS;EACrP,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF;CACzH,CAAC,CAAC,CAAC,SAAS,wCAUH;CACP,QAVqD,EAAE,OAAO;EAC9D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;EAChH,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,CAAC,CAAC,CAAC,SAAS,uCAOF;AACV,CAAC"}
1
+ {"version":3,"file":"delete-database.mjs","names":[],"sources":["../../src/actions/delete-database.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SoftrDeleteDatabaseInput = z.object({\n force: z.boolean().default(false).describe(\"If true, deletes the database even if it contains tables or records. If false (default), deletion will fail if the database is not empty. Use with caution as this operation is irreversible.\").optional(),\n database_id: z.string().describe(\"The unique identifier of the database to delete. This is the database ID from Softr.\"),\n}).describe(\"Request model for deleting a database.\");\nexport const SoftrDeleteDatabaseOutput = z.object({\n message: z.string().describe(\"A confirmation message indicating the outcome of the database deletion operation.\").nullable(),\n success: z.boolean().default(true).describe(\"Indicates whether the database was successfully deleted.\").nullable().optional(),\n}).passthrough().describe(\"Response model for database deletion.\");\n\nexport const softrDeleteDatabase = action(\"SOFTR_DELETE_DATABASE\", {\n slug: \"softr-delete-database\",\n name: \"Delete database\",\n description: \"Tool to delete a specific database by its ID from Softr. Use when you need to remove a database. The database must be empty unless the 'force' parameter is set to true. This operation is irreversible.\",\n input: SoftrDeleteDatabaseInput,\n output: SoftrDeleteDatabaseOutput,\n});\n"],"mappings":";;AAaA,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAbsC,EAAE,OAAO;EAC/C,OAAO,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,+LAA+L,CAAC,CAAC,SAAS;EACrP,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF;CACzH,CAAC,CAAC,CAAC,SAAS,wCAUH;CACP,QAVuC,EAAE,OAAO;EAChD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;EAC3H,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAOhB;AACV,CAAC"}
@@ -6,7 +6,7 @@ const SoftrDeleteRecordInput = zod.z.object({
6
6
  record_id: zod.z.string().describe("The unique identifier of the record to delete"),
7
7
  database_id: zod.z.string().describe("The unique identifier of the database containing the table")
8
8
  }).describe("Request parameters for deleting a record from a Softr table.");
9
- const SoftrDeleteRecordOutput = zod.z.object({ message: zod.z.string().describe("Confirmation message indicating the record was successfully deleted") }).describe("Response confirming successful record deletion.");
9
+ const SoftrDeleteRecordOutput = zod.z.object({ message: zod.z.string().describe("Confirmation message indicating the record was successfully deleted").nullable() }).passthrough().describe("Response confirming successful record deletion.");
10
10
  const softrDeleteRecord = require_action.action("SOFTR_DELETE_RECORD", {
11
11
  slug: "softr-delete-record",
12
12
  name: "Delete Record",
@@ -1 +1 @@
1
- {"version":3,"file":"delete-record.cjs","names":["z","action"],"sources":["../../src/actions/delete-record.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SoftrDeleteRecordInput: z.ZodTypeAny = z.object({\n table_id: z.string().describe(\"The unique identifier of the table containing the record\"),\n record_id: z.string().describe(\"The unique identifier of the record to delete\"),\n database_id: z.string().describe(\"The unique identifier of the database containing the table\"),\n}).describe(\"Request parameters for deleting a record from a Softr table.\");\nexport const SoftrDeleteRecordOutput: z.ZodTypeAny = z.object({\n message: z.string().describe(\"Confirmation message indicating the record was successfully deleted\"),\n}).describe(\"Response confirming successful record deletion.\");\n\nexport const softrDeleteRecord = action(\"SOFTR_DELETE_RECORD\", {\n slug: \"softr-delete-record\",\n name: \"Delete Record\",\n description: \"Tool to delete a record from a Softr database table. Use when you need to permanently remove a specific record.\",\n input: SoftrDeleteRecordInput,\n output: SoftrDeleteRecordOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAuCA,IAAAA,EAAE,OAAO;CAC3D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;CACxF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CAC9E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;AAC/F,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAa,0BAAwCA,IAAAA,EAAE,OAAO,EAC5D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,EACpG,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAE7D,MAAa,oBAAoBC,eAAAA,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"delete-record.cjs","names":["z","action"],"sources":["../../src/actions/delete-record.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SoftrDeleteRecordInput = z.object({\n table_id: z.string().describe(\"The unique identifier of the table containing the record\"),\n record_id: z.string().describe(\"The unique identifier of the record to delete\"),\n database_id: z.string().describe(\"The unique identifier of the database containing the table\"),\n}).describe(\"Request parameters for deleting a record from a Softr table.\");\nexport const SoftrDeleteRecordOutput = z.object({\n message: z.string().describe(\"Confirmation message indicating the record was successfully deleted\").nullable(),\n}).passthrough().describe(\"Response confirming successful record deletion.\");\n\nexport const softrDeleteRecord = action(\"SOFTR_DELETE_RECORD\", {\n slug: \"softr-delete-record\",\n name: \"Delete Record\",\n description: \"Tool to delete a record from a Softr database table. Use when you need to permanently remove a specific record.\",\n input: SoftrDeleteRecordInput,\n output: SoftrDeleteRecordOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;CACxF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CAC9E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;AAC/F,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAa,0BAA0BA,IAAAA,EAAE,OAAO,EAC9C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS,EAC/G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAE3E,MAAa,oBAAoBC,eAAAA,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,19 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/delete-record.d.ts
4
- declare const SoftrDeleteRecordInput: z.ZodTypeAny;
5
- declare const SoftrDeleteRecordOutput: z.ZodTypeAny;
6
- declare const softrDeleteRecord: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SoftrDeleteRecordInput: z.ZodObject<{
5
+ table_id: z.ZodString;
6
+ record_id: z.ZodString;
7
+ database_id: z.ZodString;
8
+ }, z.core.$strip>;
9
+ declare const SoftrDeleteRecordOutput: z.ZodObject<{
10
+ message: z.ZodNullable<z.ZodString>;
11
+ }, z.core.$loose>;
12
+ declare const softrDeleteRecord: import("@keystrokehq/action").WorkflowActionDefinition<{
13
+ table_id: string;
14
+ record_id: string;
15
+ database_id: string;
16
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
17
  //#endregion
8
18
  export { softrDeleteRecord };
9
19
  //# sourceMappingURL=delete-record.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-record.d.cts","names":[],"sources":["../../src/actions/delete-record.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAIoC;AAAA,cAC9D,uBAAA,EAAyB,CAAA,CAAE,UAEsB;AAAA,cAEjD,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"delete-record.d.cts","names":[],"sources":["../../src/actions/delete-record.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;cAKtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;cAIvB,iBAAA,gCAAiB,wBAAA"}
@@ -1,9 +1,19 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/delete-record.d.ts
4
- declare const SoftrDeleteRecordInput: z.ZodTypeAny;
5
- declare const SoftrDeleteRecordOutput: z.ZodTypeAny;
6
- declare const softrDeleteRecord: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SoftrDeleteRecordInput: z.ZodObject<{
5
+ table_id: z.ZodString;
6
+ record_id: z.ZodString;
7
+ database_id: z.ZodString;
8
+ }, z.core.$strip>;
9
+ declare const SoftrDeleteRecordOutput: z.ZodObject<{
10
+ message: z.ZodNullable<z.ZodString>;
11
+ }, z.core.$loose>;
12
+ declare const softrDeleteRecord: import("@keystrokehq/action").WorkflowActionDefinition<{
13
+ table_id: string;
14
+ record_id: string;
15
+ database_id: string;
16
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
17
  //#endregion
8
18
  export { softrDeleteRecord };
9
19
  //# sourceMappingURL=delete-record.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-record.d.mts","names":[],"sources":["../../src/actions/delete-record.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAIoC;AAAA,cAC9D,uBAAA,EAAyB,CAAA,CAAE,UAEsB;AAAA,cAEjD,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"delete-record.d.mts","names":[],"sources":["../../src/actions/delete-record.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;cAKtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;cAIvB,iBAAA,gCAAiB,wBAAA"}