@keystrokehq/softr 0.1.0 → 0.1.2

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 (167) 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.map +1 -1
  4. package/dist/actions/create-database.d.cts +18 -3
  5. package/dist/actions/create-database.d.cts.map +1 -1
  6. package/dist/actions/create-database.d.mts +18 -3
  7. package/dist/actions/create-database.d.mts.map +1 -1
  8. package/dist/actions/create-database.mjs.map +1 -1
  9. package/dist/actions/create-record.cjs +3 -3
  10. package/dist/actions/create-record.cjs.map +1 -1
  11. package/dist/actions/create-record.d.cts +18 -3
  12. package/dist/actions/create-record.d.cts.map +1 -1
  13. package/dist/actions/create-record.d.mts +18 -3
  14. package/dist/actions/create-record.d.mts.map +1 -1
  15. package/dist/actions/create-record.mjs +3 -3
  16. package/dist/actions/create-record.mjs.map +1 -1
  17. package/dist/actions/create-table-field.cjs +9 -9
  18. package/dist/actions/create-table-field.cjs.map +1 -1
  19. package/dist/actions/create-table-field.d.cts +61 -3
  20. package/dist/actions/create-table-field.d.cts.map +1 -1
  21. package/dist/actions/create-table-field.d.mts +61 -3
  22. package/dist/actions/create-table-field.d.mts.map +1 -1
  23. package/dist/actions/create-table-field.mjs +9 -9
  24. package/dist/actions/create-table-field.mjs.map +1 -1
  25. package/dist/actions/create-table.cjs +7 -7
  26. package/dist/actions/create-table.cjs.map +1 -1
  27. package/dist/actions/create-table.d.cts +79 -3
  28. package/dist/actions/create-table.d.cts.map +1 -1
  29. package/dist/actions/create-table.d.mts +79 -3
  30. package/dist/actions/create-table.d.mts.map +1 -1
  31. package/dist/actions/create-table.mjs +7 -7
  32. package/dist/actions/create-table.mjs.map +1 -1
  33. package/dist/actions/delete-database.cjs +1 -1
  34. package/dist/actions/delete-database.cjs.map +1 -1
  35. package/dist/actions/delete-database.d.cts +12 -3
  36. package/dist/actions/delete-database.d.cts.map +1 -1
  37. package/dist/actions/delete-database.d.mts +12 -3
  38. package/dist/actions/delete-database.d.mts.map +1 -1
  39. package/dist/actions/delete-database.mjs +1 -1
  40. package/dist/actions/delete-database.mjs.map +1 -1
  41. package/dist/actions/delete-record.cjs +1 -1
  42. package/dist/actions/delete-record.cjs.map +1 -1
  43. package/dist/actions/delete-record.d.cts +13 -3
  44. package/dist/actions/delete-record.d.cts.map +1 -1
  45. package/dist/actions/delete-record.d.mts +13 -3
  46. package/dist/actions/delete-record.d.mts.map +1 -1
  47. package/dist/actions/delete-record.mjs +1 -1
  48. package/dist/actions/delete-record.mjs.map +1 -1
  49. package/dist/actions/delete-table-field.cjs +2 -2
  50. package/dist/actions/delete-table-field.cjs.map +1 -1
  51. package/dist/actions/delete-table-field.d.cts +14 -3
  52. package/dist/actions/delete-table-field.d.cts.map +1 -1
  53. package/dist/actions/delete-table-field.d.mts +14 -3
  54. package/dist/actions/delete-table-field.d.mts.map +1 -1
  55. package/dist/actions/delete-table-field.mjs +2 -2
  56. package/dist/actions/delete-table-field.mjs.map +1 -1
  57. package/dist/actions/delete-table.cjs +2 -2
  58. package/dist/actions/delete-table.cjs.map +1 -1
  59. package/dist/actions/delete-table.d.cts +14 -3
  60. package/dist/actions/delete-table.d.cts.map +1 -1
  61. package/dist/actions/delete-table.d.mts +14 -3
  62. package/dist/actions/delete-table.d.mts.map +1 -1
  63. package/dist/actions/delete-table.mjs +2 -2
  64. package/dist/actions/delete-table.mjs.map +1 -1
  65. package/dist/actions/get-database.cjs +5 -5
  66. package/dist/actions/get-database.cjs.map +1 -1
  67. package/dist/actions/get-database.d.cts +16 -3
  68. package/dist/actions/get-database.d.cts.map +1 -1
  69. package/dist/actions/get-database.d.mts +16 -3
  70. package/dist/actions/get-database.d.mts.map +1 -1
  71. package/dist/actions/get-database.mjs +5 -5
  72. package/dist/actions/get-database.mjs.map +1 -1
  73. package/dist/actions/get-databases.cjs +5 -5
  74. package/dist/actions/get-databases.cjs.map +1 -1
  75. package/dist/actions/get-databases.d.cts +18 -3
  76. package/dist/actions/get-databases.d.cts.map +1 -1
  77. package/dist/actions/get-databases.d.mts +18 -3
  78. package/dist/actions/get-databases.d.mts.map +1 -1
  79. package/dist/actions/get-databases.mjs +5 -5
  80. package/dist/actions/get-databases.mjs.map +1 -1
  81. package/dist/actions/get-record.cjs +3 -3
  82. package/dist/actions/get-record.cjs.map +1 -1
  83. package/dist/actions/get-record.d.cts +19 -3
  84. package/dist/actions/get-record.d.cts.map +1 -1
  85. package/dist/actions/get-record.d.mts +19 -3
  86. package/dist/actions/get-record.d.mts.map +1 -1
  87. package/dist/actions/get-record.mjs +3 -3
  88. package/dist/actions/get-record.mjs.map +1 -1
  89. package/dist/actions/get-records.cjs.map +1 -1
  90. package/dist/actions/get-records.d.cts +26 -3
  91. package/dist/actions/get-records.d.cts.map +1 -1
  92. package/dist/actions/get-records.d.mts +26 -3
  93. package/dist/actions/get-records.d.mts.map +1 -1
  94. package/dist/actions/get-records.mjs.map +1 -1
  95. package/dist/actions/get-table-field.cjs +3 -3
  96. package/dist/actions/get-table-field.cjs.map +1 -1
  97. package/dist/actions/get-table-field.d.cts +25 -3
  98. package/dist/actions/get-table-field.d.cts.map +1 -1
  99. package/dist/actions/get-table-field.d.mts +25 -3
  100. package/dist/actions/get-table-field.d.mts.map +1 -1
  101. package/dist/actions/get-table-field.mjs +3 -3
  102. package/dist/actions/get-table-field.mjs.map +1 -1
  103. package/dist/actions/get-table-views.cjs.map +1 -1
  104. package/dist/actions/get-table-views.d.cts +18 -3
  105. package/dist/actions/get-table-views.d.cts.map +1 -1
  106. package/dist/actions/get-table-views.d.mts +18 -3
  107. package/dist/actions/get-table-views.d.mts.map +1 -1
  108. package/dist/actions/get-table-views.mjs.map +1 -1
  109. package/dist/actions/get-table.cjs +8 -8
  110. package/dist/actions/get-table.cjs.map +1 -1
  111. package/dist/actions/get-table.d.cts +64 -3
  112. package/dist/actions/get-table.d.cts.map +1 -1
  113. package/dist/actions/get-table.d.mts +64 -3
  114. package/dist/actions/get-table.d.mts.map +1 -1
  115. package/dist/actions/get-table.mjs +8 -8
  116. package/dist/actions/get-table.mjs.map +1 -1
  117. package/dist/actions/get-tables.cjs +2 -2
  118. package/dist/actions/get-tables.cjs.map +1 -1
  119. package/dist/actions/get-tables.d.cts +17 -3
  120. package/dist/actions/get-tables.d.cts.map +1 -1
  121. package/dist/actions/get-tables.d.mts +17 -3
  122. package/dist/actions/get-tables.d.mts.map +1 -1
  123. package/dist/actions/get-tables.mjs +2 -2
  124. package/dist/actions/get-tables.mjs.map +1 -1
  125. package/dist/actions/search-records.cjs +6 -6
  126. package/dist/actions/search-records.cjs.map +1 -1
  127. package/dist/actions/search-records.d.cts +32 -3
  128. package/dist/actions/search-records.d.cts.map +1 -1
  129. package/dist/actions/search-records.d.mts +32 -3
  130. package/dist/actions/search-records.d.mts.map +1 -1
  131. package/dist/actions/search-records.mjs +6 -6
  132. package/dist/actions/search-records.mjs.map +1 -1
  133. package/dist/actions/update-database.cjs +5 -5
  134. package/dist/actions/update-database.cjs.map +1 -1
  135. package/dist/actions/update-database.d.cts +20 -3
  136. package/dist/actions/update-database.d.cts.map +1 -1
  137. package/dist/actions/update-database.d.mts +20 -3
  138. package/dist/actions/update-database.d.mts.map +1 -1
  139. package/dist/actions/update-database.mjs +5 -5
  140. package/dist/actions/update-database.mjs.map +1 -1
  141. package/dist/actions/update-record.cjs.map +1 -1
  142. package/dist/actions/update-record.d.cts +21 -3
  143. package/dist/actions/update-record.d.cts.map +1 -1
  144. package/dist/actions/update-record.d.mts +21 -3
  145. package/dist/actions/update-record.d.mts.map +1 -1
  146. package/dist/actions/update-record.mjs.map +1 -1
  147. package/dist/actions/update-table-field.cjs.map +1 -1
  148. package/dist/actions/update-table-field.d.cts +61 -3
  149. package/dist/actions/update-table-field.d.cts.map +1 -1
  150. package/dist/actions/update-table-field.d.mts +61 -3
  151. package/dist/actions/update-table-field.d.mts.map +1 -1
  152. package/dist/actions/update-table-field.mjs.map +1 -1
  153. package/dist/actions/update-table.cjs +9 -9
  154. package/dist/actions/update-table.cjs.map +1 -1
  155. package/dist/actions/update-table.d.cts +36 -3
  156. package/dist/actions/update-table.d.cts.map +1 -1
  157. package/dist/actions/update-table.d.mts +36 -3
  158. package/dist/actions/update-table.d.mts.map +1 -1
  159. package/dist/actions/update-table.mjs +9 -9
  160. package/dist/actions/update-table.mjs.map +1 -1
  161. package/dist/catalog.cjs +13 -1
  162. package/dist/catalog.cjs.map +1 -1
  163. package/dist/catalog.d.cts +12 -0
  164. package/dist/catalog.d.mts +12 -0
  165. package/dist/catalog.mjs +13 -1
  166. package/dist/catalog.mjs.map +1 -1
  167. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"action.cjs","names":["softr","executeSoftrTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { softr } from \"./app\";\nimport { executeSoftrTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return softr.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeSoftrTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,MAAM,OAAO;EAClB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,iBAAiB,MAAM,KAAgC,CAAC;EACxF;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.cjs","names":["softr","executeSoftrTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { softr } from \"./app\";\nimport { executeSoftrTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return softr.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeSoftrTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,MAAM,OAAO;EAClB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,iBAAiB,MAAM,KAAgC,CAAC;EACxF;CACF,CAAC;AACH"}
@@ -1 +1 @@
1
- {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { softr } from \"./app\";\nimport { executeSoftrTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return softr.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeSoftrTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,MAAM,OAAO;EAClB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,iBAAiB,MAAM,KAAgC,CAAC;EACxF;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { softr } from \"./app\";\nimport { executeSoftrTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return softr.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeSoftrTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,MAAM,OAAO;EAClB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,iBAAiB,MAAM,KAAgC,CAAC;EACxF;CACF,CAAC;AACH"}
@@ -1 +1 @@
1
- {"version":3,"file":"create-database.cjs","names":["z","action"],"sources":["../../src/actions/create-database.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SoftrCreateDatabaseInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"The name of the new database. Choose a descriptive name that helps identify the database purpose. This will be displayed in the Softr interface.\"),\n description: z.string().describe(\"Optional description of the database. Provide additional context about the database purpose, data structure, or usage guidelines.\").optional(),\n workspaceId: z.string().describe(\"The ID of the workspace where the database will be created. This is a required parameter that identifies which workspace will contain the new database.\"),\n}).describe(\"Request parameters for creating a new database in Softr workspace.\");\nexport const SoftrCreateDatabaseOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the newly created database\").nullable().optional(),\n name: z.string().describe(\"Name of the created database\").nullable().optional(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the database was created\").nullable().optional(),\n updatedAt: z.string().describe(\"ISO 8601 timestamp when the database was last updated\").nullable().optional(),\n description: z.string().describe(\"Description of the database\").nullable().optional(),\n workspaceId: z.string().describe(\"ID of the workspace containing the database\").nullable().optional(),\n}).describe(\"Response model returned after creating a Softr database.\");\n\nexport const softrCreateDatabase = action(\"SOFTR_CREATE_DATABASE\", {\n slug: \"softr-create-database\",\n name: \"Create Database\",\n description: \"Tool to create a new database in a Softr workspace. Use when you need to set up a new database for storing data within a specific Softr workspace.\",\n input: SoftrCreateDatabaseInput,\n output: SoftrCreateDatabaseOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyCA,IAAAA,EAAE,OAAO;CAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kJAAkJ;CAC5K,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mIAAmI,CAAC,CAAC,SAAS;CAC/K,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yJAAyJ;AAC5L,CAAC,CAAC,CAAC,SAAS,oEAAoE;AAChF,MAAa,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,SAAS,0DAA0D;AAEtE,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-database.cjs","names":["z","action"],"sources":["../../src/actions/create-database.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SoftrCreateDatabaseInput = z.object({\n name: z.string().describe(\"The name of the new database. Choose a descriptive name that helps identify the database purpose. This will be displayed in the Softr interface.\"),\n description: z.string().describe(\"Optional description of the database. Provide additional context about the database purpose, data structure, or usage guidelines.\").optional(),\n workspaceId: z.string().describe(\"The ID of the workspace where the database will be created. This is a required parameter that identifies which workspace will contain the new database.\"),\n}).describe(\"Request parameters for creating a new database in Softr workspace.\");\nexport const SoftrCreateDatabaseOutput = z.object({\n id: z.string().describe(\"Unique identifier of the newly created database\").nullable().optional(),\n name: z.string().describe(\"Name of the created database\").nullable().optional(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the database was created\").nullable().optional(),\n updatedAt: z.string().describe(\"ISO 8601 timestamp when the database was last updated\").nullable().optional(),\n description: z.string().describe(\"Description of the database\").nullable().optional(),\n workspaceId: z.string().describe(\"ID of the workspace containing the database\").nullable().optional(),\n}).describe(\"Response model returned after creating a Softr database.\");\n\nexport const softrCreateDatabase = action(\"SOFTR_CREATE_DATABASE\", {\n slug: \"softr-create-database\",\n name: \"Create Database\",\n description: \"Tool to create a new database in a Softr workspace. Use when you need to set up a new database for storing data within a specific Softr workspace.\",\n input: SoftrCreateDatabaseInput,\n output: SoftrCreateDatabaseOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kJAAkJ;CAC5K,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mIAAmI,CAAC,CAAC,SAAS;CAC/K,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yJAAyJ;AAC5L,CAAC,CAAC,CAAC,SAAS,oEAAoE;AAChF,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,SAAS,0DAA0D;AAEtE,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,24 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-database.d.ts
4
- declare const SoftrCreateDatabaseInput: z.ZodTypeAny;
5
- declare const SoftrCreateDatabaseOutput: z.ZodTypeAny;
6
- declare const softrCreateDatabase: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SoftrCreateDatabaseInput: z.ZodObject<{
5
+ name: z.ZodString;
6
+ description: z.ZodOptional<z.ZodString>;
7
+ workspaceId: z.ZodString;
8
+ }, z.core.$strip>;
9
+ declare const SoftrCreateDatabaseOutput: z.ZodObject<{
10
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ workspaceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ }, z.core.$strip>;
17
+ declare const softrCreateDatabase: import("@keystrokehq/action").WorkflowActionDefinition<{
18
+ name: string;
19
+ workspaceId: string;
20
+ description?: string | undefined;
21
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
22
  //#endregion
8
23
  export { softrCreateDatabase };
9
24
  //# sourceMappingURL=create-database.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-database.d.cts","names":[],"sources":["../../src/actions/create-database.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAIwC;AAAA,cACpE,yBAAA,EAA2B,CAAA,CAAE,UAO6B;AAAA,cAE1D,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"create-database.d.cts","names":[],"sources":["../../src/actions/create-database.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;cAKxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;cASzB,mBAAA,gCAAmB,wBAAA"}
@@ -1,9 +1,24 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-database.d.ts
4
- declare const SoftrCreateDatabaseInput: z.ZodTypeAny;
5
- declare const SoftrCreateDatabaseOutput: z.ZodTypeAny;
6
- declare const softrCreateDatabase: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SoftrCreateDatabaseInput: z.ZodObject<{
5
+ name: z.ZodString;
6
+ description: z.ZodOptional<z.ZodString>;
7
+ workspaceId: z.ZodString;
8
+ }, z.core.$strip>;
9
+ declare const SoftrCreateDatabaseOutput: z.ZodObject<{
10
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ workspaceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ }, z.core.$strip>;
17
+ declare const softrCreateDatabase: import("@keystrokehq/action").WorkflowActionDefinition<{
18
+ name: string;
19
+ workspaceId: string;
20
+ description?: string | undefined;
21
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
22
  //#endregion
8
23
  export { softrCreateDatabase };
9
24
  //# sourceMappingURL=create-database.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-database.d.mts","names":[],"sources":["../../src/actions/create-database.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAIwC;AAAA,cACpE,yBAAA,EAA2B,CAAA,CAAE,UAO6B;AAAA,cAE1D,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"create-database.d.mts","names":[],"sources":["../../src/actions/create-database.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;cAKxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;cASzB,mBAAA,gCAAmB,wBAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"create-database.mjs","names":[],"sources":["../../src/actions/create-database.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SoftrCreateDatabaseInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"The name of the new database. Choose a descriptive name that helps identify the database purpose. This will be displayed in the Softr interface.\"),\n description: z.string().describe(\"Optional description of the database. Provide additional context about the database purpose, data structure, or usage guidelines.\").optional(),\n workspaceId: z.string().describe(\"The ID of the workspace where the database will be created. This is a required parameter that identifies which workspace will contain the new database.\"),\n}).describe(\"Request parameters for creating a new database in Softr workspace.\");\nexport const SoftrCreateDatabaseOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the newly created database\").nullable().optional(),\n name: z.string().describe(\"Name of the created database\").nullable().optional(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the database was created\").nullable().optional(),\n updatedAt: z.string().describe(\"ISO 8601 timestamp when the database was last updated\").nullable().optional(),\n description: z.string().describe(\"Description of the database\").nullable().optional(),\n workspaceId: z.string().describe(\"ID of the workspace containing the database\").nullable().optional(),\n}).describe(\"Response model returned after creating a Softr database.\");\n\nexport const softrCreateDatabase = action(\"SOFTR_CREATE_DATABASE\", {\n slug: \"softr-create-database\",\n name: \"Create Database\",\n description: \"Tool to create a new database in a Softr workspace. Use when you need to set up a new database for storing data within a specific Softr workspace.\",\n input: SoftrCreateDatabaseInput,\n output: SoftrCreateDatabaseOutput,\n});\n"],"mappings":";;AAkBA,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlBoD,EAAE,OAAO;EAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kJAAkJ;EAC5K,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,mIAAmI,CAAC,CAAC,SAAS;EAC/K,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,yJAAyJ;CAC5L,CAAC,CAAC,CAAC,SAAS,oEAcH;CACP,QAdqD,EAAE,OAAO;EAC9D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/F,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5G,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,CAAC,CAAC,CAAC,SAAS,0DAOF;AACV,CAAC"}
1
+ {"version":3,"file":"create-database.mjs","names":[],"sources":["../../src/actions/create-database.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SoftrCreateDatabaseInput = z.object({\n name: z.string().describe(\"The name of the new database. Choose a descriptive name that helps identify the database purpose. This will be displayed in the Softr interface.\"),\n description: z.string().describe(\"Optional description of the database. Provide additional context about the database purpose, data structure, or usage guidelines.\").optional(),\n workspaceId: z.string().describe(\"The ID of the workspace where the database will be created. This is a required parameter that identifies which workspace will contain the new database.\"),\n}).describe(\"Request parameters for creating a new database in Softr workspace.\");\nexport const SoftrCreateDatabaseOutput = z.object({\n id: z.string().describe(\"Unique identifier of the newly created database\").nullable().optional(),\n name: z.string().describe(\"Name of the created database\").nullable().optional(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the database was created\").nullable().optional(),\n updatedAt: z.string().describe(\"ISO 8601 timestamp when the database was last updated\").nullable().optional(),\n description: z.string().describe(\"Description of the database\").nullable().optional(),\n workspaceId: z.string().describe(\"ID of the workspace containing the database\").nullable().optional(),\n}).describe(\"Response model returned after creating a Softr database.\");\n\nexport const softrCreateDatabase = action(\"SOFTR_CREATE_DATABASE\", {\n slug: \"softr-create-database\",\n name: \"Create Database\",\n description: \"Tool to create a new database in a Softr workspace. Use when you need to set up a new database for storing data within a specific Softr workspace.\",\n input: SoftrCreateDatabaseInput,\n output: SoftrCreateDatabaseOutput,\n});\n"],"mappings":";;AAkBA,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlBsC,EAAE,OAAO;EAC/C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kJAAkJ;EAC5K,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,mIAAmI,CAAC,CAAC,SAAS;EAC/K,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,yJAAyJ;CAC5L,CAAC,CAAC,CAAC,SAAS,oEAcH;CACP,QAduC,EAAE,OAAO;EAChD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/F,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5G,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,CAAC,CAAC,CAAC,SAAS,0DAOF;AACV,CAAC"}
@@ -7,10 +7,10 @@ const SoftrCreateRecordInput = zod.z.object({
7
7
  database_id: zod.z.string().describe("The unique identifier of the database where the record will be created")
8
8
  }).describe("Request schema for CreateRecord");
9
9
  const SoftrCreateRecord_RecordDataSchema = zod.z.object({
10
- id: zod.z.string().describe("Unique identifier for the created record"),
10
+ id: zod.z.string().describe("Unique identifier for the created record").nullable(),
11
11
  fields: zod.z.object({}).describe("The field values of the created record, mapped by field ID"),
12
- createdAt: zod.z.string().describe("Timestamp when the record was created (ISO 8601 format)"),
13
- updatedAt: zod.z.string().describe("Timestamp when the record was last updated (ISO 8601 format)")
12
+ createdAt: zod.z.string().describe("Timestamp when the record was created (ISO 8601 format)").nullable(),
13
+ updatedAt: zod.z.string().describe("Timestamp when the record was last updated (ISO 8601 format)").nullable()
14
14
  }).describe("Schema for the created record data");
15
15
  const SoftrCreateRecordOutput = zod.z.object({ data: SoftrCreateRecord_RecordDataSchema.nullable() }).describe("Response schema for CreateRecord");
16
16
  const softrCreateRecord = require_action.action("SOFTR_CREATE_RECORD", {
@@ -1 +1 @@
1
- {"version":3,"file":"create-record.cjs","names":["z","action"],"sources":["../../src/actions/create-record.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SoftrCreateRecordInput: z.ZodTypeAny = z.object({\n fields: z.object({}).describe(\"Field values for the new record. This is a mapping of field IDs to their values. Field IDs are specific to your table schema in Softr. Example: {'c63tL': 'test@example.com', 'o0JWv': 'Test User'}\"),\n table_id: z.string().describe(\"The unique identifier of the table where the record will be created\"),\n database_id: z.string().describe(\"The unique identifier of the database where the record will be created\"),\n}).describe(\"Request schema for CreateRecord\");\nconst SoftrCreateRecord_RecordDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the created record\"),\n fields: z.object({}).describe(\"The field values of the created record, mapped by field ID\"),\n createdAt: z.string().describe(\"Timestamp when the record was created (ISO 8601 format)\"),\n updatedAt: z.string().describe(\"Timestamp when the record was last updated (ISO 8601 format)\"),\n}).describe(\"Schema for the created record data\");\nexport const SoftrCreateRecordOutput: z.ZodTypeAny = z.object({\n data: SoftrCreateRecord_RecordDataSchema.nullable(),\n}).describe(\"Response schema for CreateRecord\");\n\nexport const softrCreateRecord = action(\"SOFTR_CREATE_RECORD\", {\n slug: \"softr-create-record\",\n name: \"Create Record\",\n description: \"Creates a new record in a Softr database table. Use when you need to add new data to a specific table in your Softr database.\",\n input: SoftrCreateRecordInput,\n output: SoftrCreateRecordOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAuCA,IAAAA,EAAE,OAAO;CAC3D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,qMAAqM;CACnO,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE;CACnG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE;AAC3G,CAAC,CAAC,CAAC,SAAS,iCAAiC;AAC7C,MAAM,qCAAmDA,IAAAA,EAAE,OAAO;CAChE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CAClE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,4DAA4D;CAC1F,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;CACxF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;AAC/F,CAAC,CAAC,CAAC,SAAS,oCAAoC;AAChD,MAAa,0BAAwCA,IAAAA,EAAE,OAAO,EAC5D,MAAM,mCAAmC,SAAS,EACpD,CAAC,CAAC,CAAC,SAAS,kCAAkC;AAE9C,MAAa,oBAAoBC,eAAAA,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-record.cjs","names":["z","action"],"sources":["../../src/actions/create-record.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SoftrCreateRecordInput = z.object({\n fields: z.object({}).describe(\"Field values for the new record. This is a mapping of field IDs to their values. Field IDs are specific to your table schema in Softr. Example: {'c63tL': 'test@example.com', 'o0JWv': 'Test User'}\"),\n table_id: z.string().describe(\"The unique identifier of the table where the record will be created\"),\n database_id: z.string().describe(\"The unique identifier of the database where the record will be created\"),\n}).describe(\"Request schema for CreateRecord\");\nconst SoftrCreateRecord_RecordDataSchema = z.object({\n id: z.string().describe(\"Unique identifier for the created record\").nullable(),\n fields: z.object({}).describe(\"The field values of the created record, mapped by field ID\"),\n createdAt: z.string().describe(\"Timestamp when the record was created (ISO 8601 format)\").nullable(),\n updatedAt: z.string().describe(\"Timestamp when the record was last updated (ISO 8601 format)\").nullable(),\n}).describe(\"Schema for the created record data\");\nexport const SoftrCreateRecordOutput = z.object({\n data: SoftrCreateRecord_RecordDataSchema.nullable(),\n}).describe(\"Response schema for CreateRecord\");\n\nexport const softrCreateRecord = action(\"SOFTR_CREATE_RECORD\", {\n slug: \"softr-create-record\",\n name: \"Create Record\",\n description: \"Creates a new record in a Softr database table. Use when you need to add new data to a specific table in your Softr database.\",\n input: SoftrCreateRecordInput,\n output: SoftrCreateRecordOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,qMAAqM;CACnO,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE;CACnG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE;AAC3G,CAAC,CAAC,CAAC,SAAS,iCAAiC;AAC7C,MAAM,qCAAqCA,IAAAA,EAAE,OAAO;CAClD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC7E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,4DAA4D;CAC1F,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CACnG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,SAAS,oCAAoC;AAChD,MAAa,0BAA0BA,IAAAA,EAAE,OAAO,EAC9C,MAAM,mCAAmC,SAAS,EACpD,CAAC,CAAC,CAAC,SAAS,kCAAkC;AAE9C,MAAa,oBAAoBC,eAAAA,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,24 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-record.d.ts
4
- declare const SoftrCreateRecordInput: z.ZodTypeAny;
5
- declare const SoftrCreateRecordOutput: z.ZodTypeAny;
6
- declare const softrCreateRecord: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SoftrCreateRecordInput: z.ZodObject<{
5
+ fields: z.ZodObject<{}, z.core.$strip>;
6
+ table_id: z.ZodString;
7
+ database_id: z.ZodString;
8
+ }, z.core.$strip>;
9
+ declare const SoftrCreateRecordOutput: z.ZodObject<{
10
+ data: z.ZodNullable<z.ZodObject<{
11
+ id: z.ZodNullable<z.ZodString>;
12
+ fields: z.ZodObject<{}, z.core.$strip>;
13
+ createdAt: z.ZodNullable<z.ZodString>;
14
+ updatedAt: z.ZodNullable<z.ZodString>;
15
+ }, z.core.$strip>>;
16
+ }, z.core.$strip>;
17
+ declare const softrCreateRecord: import("@keystrokehq/action").WorkflowActionDefinition<{
18
+ fields: Record<string, never>;
19
+ table_id: string;
20
+ database_id: string;
21
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
22
  //#endregion
8
23
  export { softrCreateRecord };
9
24
  //# sourceMappingURL=create-record.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-record.d.cts","names":[],"sources":["../../src/actions/create-record.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAIO;AAAA,cAOjC,uBAAA,EAAyB,CAAA,CAAE,UAEO;AAAA,cAElC,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"create-record.d.cts","names":[],"sources":["../../src/actions/create-record.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;cAWtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;cAIvB,iBAAA,gCAAiB,wBAAA;UAM5B,MAAA"}
@@ -1,9 +1,24 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-record.d.ts
4
- declare const SoftrCreateRecordInput: z.ZodTypeAny;
5
- declare const SoftrCreateRecordOutput: z.ZodTypeAny;
6
- declare const softrCreateRecord: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SoftrCreateRecordInput: z.ZodObject<{
5
+ fields: z.ZodObject<{}, z.core.$strip>;
6
+ table_id: z.ZodString;
7
+ database_id: z.ZodString;
8
+ }, z.core.$strip>;
9
+ declare const SoftrCreateRecordOutput: z.ZodObject<{
10
+ data: z.ZodNullable<z.ZodObject<{
11
+ id: z.ZodNullable<z.ZodString>;
12
+ fields: z.ZodObject<{}, z.core.$strip>;
13
+ createdAt: z.ZodNullable<z.ZodString>;
14
+ updatedAt: z.ZodNullable<z.ZodString>;
15
+ }, z.core.$strip>>;
16
+ }, z.core.$strip>;
17
+ declare const softrCreateRecord: import("@keystrokehq/action").WorkflowActionDefinition<{
18
+ fields: Record<string, never>;
19
+ table_id: string;
20
+ database_id: string;
21
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
22
  //#endregion
8
23
  export { softrCreateRecord };
9
24
  //# sourceMappingURL=create-record.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-record.d.mts","names":[],"sources":["../../src/actions/create-record.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAIO;AAAA,cAOjC,uBAAA,EAAyB,CAAA,CAAE,UAEO;AAAA,cAElC,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"create-record.d.mts","names":[],"sources":["../../src/actions/create-record.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;cAWtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;cAIvB,iBAAA,gCAAiB,wBAAA;UAM5B,MAAA"}
@@ -7,10 +7,10 @@ const SoftrCreateRecordInput = z.object({
7
7
  database_id: z.string().describe("The unique identifier of the database where the record will be created")
8
8
  }).describe("Request schema for CreateRecord");
9
9
  const SoftrCreateRecord_RecordDataSchema = z.object({
10
- id: z.string().describe("Unique identifier for the created record"),
10
+ id: z.string().describe("Unique identifier for the created record").nullable(),
11
11
  fields: z.object({}).describe("The field values of the created record, mapped by field ID"),
12
- createdAt: z.string().describe("Timestamp when the record was created (ISO 8601 format)"),
13
- updatedAt: z.string().describe("Timestamp when the record was last updated (ISO 8601 format)")
12
+ createdAt: z.string().describe("Timestamp when the record was created (ISO 8601 format)").nullable(),
13
+ updatedAt: z.string().describe("Timestamp when the record was last updated (ISO 8601 format)").nullable()
14
14
  }).describe("Schema for the created record data");
15
15
  const softrCreateRecord = action("SOFTR_CREATE_RECORD", {
16
16
  slug: "softr-create-record",
@@ -1 +1 @@
1
- {"version":3,"file":"create-record.mjs","names":[],"sources":["../../src/actions/create-record.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SoftrCreateRecordInput: z.ZodTypeAny = z.object({\n fields: z.object({}).describe(\"Field values for the new record. This is a mapping of field IDs to their values. Field IDs are specific to your table schema in Softr. Example: {'c63tL': 'test@example.com', 'o0JWv': 'Test User'}\"),\n table_id: z.string().describe(\"The unique identifier of the table where the record will be created\"),\n database_id: z.string().describe(\"The unique identifier of the database where the record will be created\"),\n}).describe(\"Request schema for CreateRecord\");\nconst SoftrCreateRecord_RecordDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the created record\"),\n fields: z.object({}).describe(\"The field values of the created record, mapped by field ID\"),\n createdAt: z.string().describe(\"Timestamp when the record was created (ISO 8601 format)\"),\n updatedAt: z.string().describe(\"Timestamp when the record was last updated (ISO 8601 format)\"),\n}).describe(\"Schema for the created record data\");\nexport const SoftrCreateRecordOutput: z.ZodTypeAny = z.object({\n data: SoftrCreateRecord_RecordDataSchema.nullable(),\n}).describe(\"Response schema for CreateRecord\");\n\nexport const softrCreateRecord = action(\"SOFTR_CREATE_RECORD\", {\n slug: \"softr-create-record\",\n name: \"Create Record\",\n description: \"Creates a new record in a Softr database table. Use when you need to add new data to a specific table in your Softr database.\",\n input: SoftrCreateRecordInput,\n output: SoftrCreateRecordOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAuC,EAAE,OAAO;CAC3D,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,qMAAqM;CACnO,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE;CACnG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE;AAC3G,CAAC,CAAC,CAAC,SAAS,iCAAiC;AAC7C,MAAM,qCAAmD,EAAE,OAAO;CAChE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CAClE,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,4DAA4D;CAC1F,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;CACxF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;AAC/F,CAAC,CAAC,CAAC,SAAS,oCAAoC;AAKhD,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATmD,EAAE,OAAO,EAC5D,MAAM,mCAAmC,SAAS,EACpD,CAAC,CAAC,CAAC,SAAS,kCAOF;AACV,CAAC"}
1
+ {"version":3,"file":"create-record.mjs","names":[],"sources":["../../src/actions/create-record.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SoftrCreateRecordInput = z.object({\n fields: z.object({}).describe(\"Field values for the new record. This is a mapping of field IDs to their values. Field IDs are specific to your table schema in Softr. Example: {'c63tL': 'test@example.com', 'o0JWv': 'Test User'}\"),\n table_id: z.string().describe(\"The unique identifier of the table where the record will be created\"),\n database_id: z.string().describe(\"The unique identifier of the database where the record will be created\"),\n}).describe(\"Request schema for CreateRecord\");\nconst SoftrCreateRecord_RecordDataSchema = z.object({\n id: z.string().describe(\"Unique identifier for the created record\").nullable(),\n fields: z.object({}).describe(\"The field values of the created record, mapped by field ID\"),\n createdAt: z.string().describe(\"Timestamp when the record was created (ISO 8601 format)\").nullable(),\n updatedAt: z.string().describe(\"Timestamp when the record was last updated (ISO 8601 format)\").nullable(),\n}).describe(\"Schema for the created record data\");\nexport const SoftrCreateRecordOutput = z.object({\n data: SoftrCreateRecord_RecordDataSchema.nullable(),\n}).describe(\"Response schema for CreateRecord\");\n\nexport const softrCreateRecord = action(\"SOFTR_CREATE_RECORD\", {\n slug: \"softr-create-record\",\n name: \"Create Record\",\n description: \"Creates a new record in a Softr database table. Use when you need to add new data to a specific table in your Softr database.\",\n input: SoftrCreateRecordInput,\n output: SoftrCreateRecordOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyB,EAAE,OAAO;CAC7C,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,qMAAqM;CACnO,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE;CACnG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE;AAC3G,CAAC,CAAC,CAAC,SAAS,iCAAiC;AAC7C,MAAM,qCAAqC,EAAE,OAAO;CAClD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC7E,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,4DAA4D;CAC1F,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CACnG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,SAAS,oCAAoC;AAKhD,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATqC,EAAE,OAAO,EAC9C,MAAM,mCAAmC,SAAS,EACpD,CAAC,CAAC,CAAC,SAAS,kCAOF;AACV,CAAC"}
@@ -41,22 +41,22 @@ const SoftrCreateTableFieldInput = zod.z.object({
41
41
  databaseId: zod.z.string().describe("The unique identifier of the database containing the table. This is a UUID format identifier that specifies which database to use.")
42
42
  }).describe("Request parameters for adding a new field to a Softr table.");
43
43
  const SoftrCreateTableField_FieldDataSchema = zod.z.object({
44
- id: zod.z.string().describe("Unique identifier for the newly created field."),
45
- name: zod.z.string().describe("The name of the field as specified in the request."),
46
- type: zod.z.string().describe("The field type (e.g., SINGLE_LINE_TEXT, EMAIL, NUMBER)."),
47
- locked: zod.z.boolean().describe("Whether this field is locked and cannot be modified."),
44
+ id: zod.z.string().describe("Unique identifier for the newly created field.").nullable(),
45
+ name: zod.z.string().describe("The name of the field as specified in the request.").nullable(),
46
+ type: zod.z.string().describe("The field type (e.g., SINGLE_LINE_TEXT, EMAIL, NUMBER).").nullable(),
47
+ locked: zod.z.boolean().describe("Whether this field is locked and cannot be modified.").nullable(),
48
48
  options: zod.z.object({}).describe("Configuration options for the field, specific to its type."),
49
- readonly: zod.z.boolean().describe("Whether this field is read-only and cannot be edited by users."),
50
- required: zod.z.boolean().describe("Whether this field is required and must have a value."),
51
- createdAt: zod.z.string().describe("ISO 8601 timestamp when the field was created."),
52
- updatedAt: zod.z.string().describe("ISO 8601 timestamp when the field was last updated."),
49
+ readonly: zod.z.boolean().describe("Whether this field is read-only and cannot be edited by users.").nullable(),
50
+ required: zod.z.boolean().describe("Whether this field is required and must have a value.").nullable(),
51
+ createdAt: zod.z.string().describe("ISO 8601 timestamp when the field was created.").nullable(),
52
+ updatedAt: zod.z.string().describe("ISO 8601 timestamp when the field was last updated.").nullable(),
53
53
  defaultValue: zod.z.union([
54
54
  zod.z.string(),
55
55
  zod.z.number().int(),
56
56
  zod.z.number(),
57
57
  zod.z.boolean()
58
58
  ]).nullable().optional(),
59
- allowMultipleEntries: zod.z.boolean().describe("Whether this field allows multiple entries/values.")
59
+ allowMultipleEntries: zod.z.boolean().describe("Whether this field allows multiple entries/values.").nullable()
60
60
  }).describe("Detailed information about the created table field.");
61
61
  const SoftrCreateTableFieldOutput = zod.z.object({ data: SoftrCreateTableField_FieldDataSchema.nullable() }).describe("Response containing the newly created table field information.");
62
62
  const softrCreateTableField = require_action.action("SOFTR_CREATE_TABLE_FIELD", {
@@ -1 +1 @@
1
- {"version":3,"file":"create-table-field.cjs","names":["z","action"],"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,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iKAAiK;CAC3L,MAAMA,IAAAA,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,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,0OAA0O,CAAC,CAAC,SAAS;CACpR,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gJAAgJ;CAC7K,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI;AACtK,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAM,wCAAsDA,IAAAA,EAAE,OAAO;CACnE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CACxE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;CAC9E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;CACnF,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,sDAAsD;CACnF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,4DAA4D;CAC3F,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gEAAgE;CAC/F,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,uDAAuD;CACtF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CAC/E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD;CACpF,cAAcA,IAAAA,EAAE,MAAM;EAACA,IAAAA,EAAE,OAAO;EAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI;EAAGA,IAAAA,EAAE,OAAO;EAAGA,IAAAA,EAAE,QAAQ;CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,sBAAsBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,oDAAoD;AACjG,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAa,8BAA4CA,IAAAA,EAAE,OAAO,EAChE,MAAM,sCAAsC,SAAS,EACvD,CAAC,CAAC,CAAC,SAAS,gEAAgE;AAE5E,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-table-field.cjs","names":["z","action"],"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.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.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.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.\").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}).describe(\"Detailed information about the created table field.\");\nexport const SoftrCreateTableFieldOutput = 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,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iKAAiK;CAC3L,MAAMA,IAAAA,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,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,0OAA0O,CAAC,CAAC,SAAS;CACpR,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gJAAgJ;CAC7K,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI;AACtK,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAM,wCAAwCA,IAAAA,EAAE,OAAO;CACrD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACnF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CACzF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CAC9F,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC9F,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,4DAA4D;CAC3F,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CAC1G,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CACjG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAC1F,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CAC/F,cAAcA,IAAAA,EAAE,MAAM;EAACA,IAAAA,EAAE,OAAO;EAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI;EAAGA,IAAAA,EAAE,OAAO;EAAGA,IAAAA,EAAE,QAAQ;CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,sBAAsBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;AAC5G,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,MAAM,sCAAsC,SAAS,EACvD,CAAC,CAAC,CAAC,SAAS,gEAAgE;AAE5E,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,67 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-table-field.d.ts
4
- declare const SoftrCreateTableFieldInput: z.ZodTypeAny;
5
- declare const SoftrCreateTableFieldOutput: z.ZodTypeAny;
6
- declare const softrCreateTableField: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SoftrCreateTableFieldInput: z.ZodObject<{
5
+ name: z.ZodString;
6
+ type: z.ZodEnum<{
7
+ SINGLE_LINE_TEXT: "SINGLE_LINE_TEXT";
8
+ CHECKBOX: "CHECKBOX";
9
+ CURRENCY: "CURRENCY";
10
+ DATETIME: "DATETIME";
11
+ DURATION: "DURATION";
12
+ EMAIL: "EMAIL";
13
+ SELECT: "SELECT";
14
+ NUMBER: "NUMBER";
15
+ ATTACHMENT: "ATTACHMENT";
16
+ RATING: "RATING";
17
+ LINKED_RECORD: "LINKED_RECORD";
18
+ LONG_TEXT: "LONG_TEXT";
19
+ URL: "URL";
20
+ PERCENT: "PERCENT";
21
+ BUTTON: "BUTTON";
22
+ PROGRESS: "PROGRESS";
23
+ PHONE: "PHONE";
24
+ DATE_RANGE: "DATE_RANGE";
25
+ ADDRESS: "ADDRESS";
26
+ TIME: "TIME";
27
+ LOOKUP: "LOOKUP";
28
+ ROLLUP: "ROLLUP";
29
+ FORMULA: "FORMULA";
30
+ COUNT: "COUNT";
31
+ CREATED_AT: "CREATED_AT";
32
+ UPDATED_AT: "UPDATED_AT";
33
+ CREATED_BY: "CREATED_BY";
34
+ UPDATED_BY: "UPDATED_BY";
35
+ AUTONUMBER: "AUTONUMBER";
36
+ RECORD_ID: "RECORD_ID";
37
+ USER: "USER";
38
+ }>;
39
+ options: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
40
+ tableId: z.ZodString;
41
+ databaseId: z.ZodString;
42
+ }, z.core.$strip>;
43
+ declare const SoftrCreateTableFieldOutput: z.ZodObject<{
44
+ data: z.ZodNullable<z.ZodObject<{
45
+ id: z.ZodNullable<z.ZodString>;
46
+ name: z.ZodNullable<z.ZodString>;
47
+ type: z.ZodNullable<z.ZodString>;
48
+ locked: z.ZodNullable<z.ZodBoolean>;
49
+ options: z.ZodObject<{}, z.core.$strip>;
50
+ readonly: z.ZodNullable<z.ZodBoolean>;
51
+ required: z.ZodNullable<z.ZodBoolean>;
52
+ createdAt: z.ZodNullable<z.ZodString>;
53
+ updatedAt: z.ZodNullable<z.ZodString>;
54
+ defaultValue: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNumber, z.ZodBoolean]>>>;
55
+ allowMultipleEntries: z.ZodNullable<z.ZodBoolean>;
56
+ }, z.core.$strip>>;
57
+ }, z.core.$strip>;
58
+ declare const softrCreateTableField: import("@keystrokehq/action").WorkflowActionDefinition<{
59
+ name: string;
60
+ 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";
61
+ tableId: string;
62
+ databaseId: string;
63
+ options?: Record<string, never> | undefined;
64
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
65
  //#endregion
8
66
  export { softrCreateTableField };
9
67
  //# sourceMappingURL=create-table-field.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-table-field.d.cts","names":[],"sources":["../../src/actions/create-table-field.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAM+B;AAAA,cAc7D,2BAAA,EAA6B,CAAA,CAAE,UAEiC;AAAA,cAEhE,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"create-table-field.d.cts","names":[],"sources":["../../src/actions/create-table-field.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAoB1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAI3B,qBAAA,gCAAqB,wBAAA;;;;;YAMhC,MAAA;AAAA"}
@@ -1,9 +1,67 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-table-field.d.ts
4
- declare const SoftrCreateTableFieldInput: z.ZodTypeAny;
5
- declare const SoftrCreateTableFieldOutput: z.ZodTypeAny;
6
- declare const softrCreateTableField: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SoftrCreateTableFieldInput: z.ZodObject<{
5
+ name: z.ZodString;
6
+ type: z.ZodEnum<{
7
+ SINGLE_LINE_TEXT: "SINGLE_LINE_TEXT";
8
+ CHECKBOX: "CHECKBOX";
9
+ CURRENCY: "CURRENCY";
10
+ DATETIME: "DATETIME";
11
+ DURATION: "DURATION";
12
+ EMAIL: "EMAIL";
13
+ SELECT: "SELECT";
14
+ NUMBER: "NUMBER";
15
+ ATTACHMENT: "ATTACHMENT";
16
+ RATING: "RATING";
17
+ LINKED_RECORD: "LINKED_RECORD";
18
+ LONG_TEXT: "LONG_TEXT";
19
+ URL: "URL";
20
+ PERCENT: "PERCENT";
21
+ BUTTON: "BUTTON";
22
+ PROGRESS: "PROGRESS";
23
+ PHONE: "PHONE";
24
+ DATE_RANGE: "DATE_RANGE";
25
+ ADDRESS: "ADDRESS";
26
+ TIME: "TIME";
27
+ LOOKUP: "LOOKUP";
28
+ ROLLUP: "ROLLUP";
29
+ FORMULA: "FORMULA";
30
+ COUNT: "COUNT";
31
+ CREATED_AT: "CREATED_AT";
32
+ UPDATED_AT: "UPDATED_AT";
33
+ CREATED_BY: "CREATED_BY";
34
+ UPDATED_BY: "UPDATED_BY";
35
+ AUTONUMBER: "AUTONUMBER";
36
+ RECORD_ID: "RECORD_ID";
37
+ USER: "USER";
38
+ }>;
39
+ options: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
40
+ tableId: z.ZodString;
41
+ databaseId: z.ZodString;
42
+ }, z.core.$strip>;
43
+ declare const SoftrCreateTableFieldOutput: z.ZodObject<{
44
+ data: z.ZodNullable<z.ZodObject<{
45
+ id: z.ZodNullable<z.ZodString>;
46
+ name: z.ZodNullable<z.ZodString>;
47
+ type: z.ZodNullable<z.ZodString>;
48
+ locked: z.ZodNullable<z.ZodBoolean>;
49
+ options: z.ZodObject<{}, z.core.$strip>;
50
+ readonly: z.ZodNullable<z.ZodBoolean>;
51
+ required: z.ZodNullable<z.ZodBoolean>;
52
+ createdAt: z.ZodNullable<z.ZodString>;
53
+ updatedAt: z.ZodNullable<z.ZodString>;
54
+ defaultValue: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNumber, z.ZodBoolean]>>>;
55
+ allowMultipleEntries: z.ZodNullable<z.ZodBoolean>;
56
+ }, z.core.$strip>>;
57
+ }, z.core.$strip>;
58
+ declare const softrCreateTableField: import("@keystrokehq/action").WorkflowActionDefinition<{
59
+ name: string;
60
+ 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";
61
+ tableId: string;
62
+ databaseId: string;
63
+ options?: Record<string, never> | undefined;
64
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
65
  //#endregion
8
66
  export { softrCreateTableField };
9
67
  //# sourceMappingURL=create-table-field.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-table-field.d.mts","names":[],"sources":["../../src/actions/create-table-field.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAM+B;AAAA,cAc7D,2BAAA,EAA6B,CAAA,CAAE,UAEiC;AAAA,cAEhE,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"create-table-field.d.mts","names":[],"sources":["../../src/actions/create-table-field.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAoB1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAI3B,qBAAA,gCAAqB,wBAAA;;;;;YAMhC,MAAA;AAAA"}
@@ -41,22 +41,22 @@ const SoftrCreateTableFieldInput = z.object({
41
41
  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.")
42
42
  }).describe("Request parameters for adding a new field to a Softr table.");
43
43
  const SoftrCreateTableField_FieldDataSchema = z.object({
44
- id: z.string().describe("Unique identifier for the newly created field."),
45
- name: z.string().describe("The name of the field as specified in the request."),
46
- type: z.string().describe("The field type (e.g., SINGLE_LINE_TEXT, EMAIL, NUMBER)."),
47
- locked: z.boolean().describe("Whether this field is locked and cannot be modified."),
44
+ id: z.string().describe("Unique identifier for the newly created field.").nullable(),
45
+ name: z.string().describe("The name of the field as specified in the request.").nullable(),
46
+ type: z.string().describe("The field type (e.g., SINGLE_LINE_TEXT, EMAIL, NUMBER).").nullable(),
47
+ locked: z.boolean().describe("Whether this field is locked and cannot be modified.").nullable(),
48
48
  options: z.object({}).describe("Configuration options for the field, specific to its type."),
49
- readonly: z.boolean().describe("Whether this field is read-only and cannot be edited by users."),
50
- required: z.boolean().describe("Whether this field is required and must have a value."),
51
- createdAt: z.string().describe("ISO 8601 timestamp when the field was created."),
52
- updatedAt: z.string().describe("ISO 8601 timestamp when the field was last updated."),
49
+ readonly: z.boolean().describe("Whether this field is read-only and cannot be edited by users.").nullable(),
50
+ required: z.boolean().describe("Whether this field is required and must have a value.").nullable(),
51
+ createdAt: z.string().describe("ISO 8601 timestamp when the field was created.").nullable(),
52
+ updatedAt: z.string().describe("ISO 8601 timestamp when the field was last updated.").nullable(),
53
53
  defaultValue: z.union([
54
54
  z.string(),
55
55
  z.number().int(),
56
56
  z.number(),
57
57
  z.boolean()
58
58
  ]).nullable().optional(),
59
- allowMultipleEntries: z.boolean().describe("Whether this field allows multiple entries/values.")
59
+ allowMultipleEntries: z.boolean().describe("Whether this field allows multiple entries/values.").nullable()
60
60
  }).describe("Detailed information about the created table field.");
61
61
  const softrCreateTableField = action("SOFTR_CREATE_TABLE_FIELD", {
62
62
  slug: "softr-create-table-field",
@@ -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.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.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.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.\").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}).describe(\"Detailed information about the created table field.\");\nexport const SoftrCreateTableFieldOutput = 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,6BAA6B,EAAE,OAAO;CACjD,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,wCAAwC,EAAE,OAAO;CACrD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACnF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CACzF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CAC9F,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC9F,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,4DAA4D;CAC3F,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CAC1G,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CACjG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAC1F,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CAC/F,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,CAAC,CAAC,SAAS;AAC5G,CAAC,CAAC,CAAC,SAAS,qDAAqD;AAKjE,MAAa,wBAAwB,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATyC,EAAE,OAAO,EAClD,MAAM,sCAAsC,SAAS,EACvD,CAAC,CAAC,CAAC,SAAS,gEAOF;AACV,CAAC"}
@@ -45,9 +45,9 @@ const SoftrCreateTableInput = zod.z.object({
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(),
@@ -59,11 +59,11 @@ const SoftrCreateTable_ResponseFieldSchema = zod.z.object({
59
59
  allowMultipleEntries: zod.z.boolean().describe("Whether multiple entries are allowed for this field.").nullable().optional()
60
60
  }).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()