@keystrokehq/softr 0.1.5 → 0.1.6

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 (181) 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 -0
  4. package/dist/actions/create-database.cjs.map +1 -1
  5. package/dist/actions/create-database.d.cts +3 -19
  6. package/dist/actions/create-database.d.cts.map +1 -1
  7. package/dist/actions/create-database.d.mts +3 -19
  8. package/dist/actions/create-database.d.mts.map +1 -1
  9. package/dist/actions/create-database.mjs +1 -0
  10. package/dist/actions/create-database.mjs.map +1 -1
  11. package/dist/actions/create-record.cjs +1 -0
  12. package/dist/actions/create-record.cjs.map +1 -1
  13. package/dist/actions/create-record.d.cts +3 -19
  14. package/dist/actions/create-record.d.cts.map +1 -1
  15. package/dist/actions/create-record.d.mts +3 -19
  16. package/dist/actions/create-record.d.mts.map +1 -1
  17. package/dist/actions/create-record.mjs +1 -0
  18. package/dist/actions/create-record.mjs.map +1 -1
  19. package/dist/actions/create-table-field.cjs +1 -0
  20. package/dist/actions/create-table-field.cjs.map +1 -1
  21. package/dist/actions/create-table-field.d.cts +3 -21
  22. package/dist/actions/create-table-field.d.cts.map +1 -1
  23. package/dist/actions/create-table-field.d.mts +3 -21
  24. package/dist/actions/create-table-field.d.mts.map +1 -1
  25. package/dist/actions/create-table-field.mjs +1 -0
  26. package/dist/actions/create-table-field.mjs.map +1 -1
  27. package/dist/actions/create-table.cjs +1 -0
  28. package/dist/actions/create-table.cjs.map +1 -1
  29. package/dist/actions/create-table.d.cts +3 -26
  30. package/dist/actions/create-table.d.cts.map +1 -1
  31. package/dist/actions/create-table.d.mts +3 -26
  32. package/dist/actions/create-table.d.mts.map +1 -1
  33. package/dist/actions/create-table.mjs +1 -0
  34. package/dist/actions/create-table.mjs.map +1 -1
  35. package/dist/actions/delete-database.cjs +1 -0
  36. package/dist/actions/delete-database.cjs.map +1 -1
  37. package/dist/actions/delete-database.d.cts +3 -18
  38. package/dist/actions/delete-database.d.cts.map +1 -1
  39. package/dist/actions/delete-database.d.mts +3 -18
  40. package/dist/actions/delete-database.d.mts.map +1 -1
  41. package/dist/actions/delete-database.mjs +1 -0
  42. package/dist/actions/delete-database.mjs.map +1 -1
  43. package/dist/actions/delete-record.cjs +1 -0
  44. package/dist/actions/delete-record.cjs.map +1 -1
  45. package/dist/actions/delete-record.d.cts +3 -19
  46. package/dist/actions/delete-record.d.cts.map +1 -1
  47. package/dist/actions/delete-record.d.mts +3 -19
  48. package/dist/actions/delete-record.d.mts.map +1 -1
  49. package/dist/actions/delete-record.mjs +1 -0
  50. package/dist/actions/delete-record.mjs.map +1 -1
  51. package/dist/actions/delete-table-field.cjs +1 -0
  52. package/dist/actions/delete-table-field.cjs.map +1 -1
  53. package/dist/actions/delete-table-field.d.cts +3 -19
  54. package/dist/actions/delete-table-field.d.cts.map +1 -1
  55. package/dist/actions/delete-table-field.d.mts +3 -19
  56. package/dist/actions/delete-table-field.d.mts.map +1 -1
  57. package/dist/actions/delete-table-field.mjs +1 -0
  58. package/dist/actions/delete-table-field.mjs.map +1 -1
  59. package/dist/actions/delete-table.cjs +1 -0
  60. package/dist/actions/delete-table.cjs.map +1 -1
  61. package/dist/actions/delete-table.d.cts +3 -19
  62. package/dist/actions/delete-table.d.cts.map +1 -1
  63. package/dist/actions/delete-table.d.mts +3 -19
  64. package/dist/actions/delete-table.d.mts.map +1 -1
  65. package/dist/actions/delete-table.mjs +1 -0
  66. package/dist/actions/delete-table.mjs.map +1 -1
  67. package/dist/actions/get-database.cjs +1 -0
  68. package/dist/actions/get-database.cjs.map +1 -1
  69. package/dist/actions/get-database.d.cts +3 -17
  70. package/dist/actions/get-database.d.cts.map +1 -1
  71. package/dist/actions/get-database.d.mts +3 -17
  72. package/dist/actions/get-database.d.mts.map +1 -1
  73. package/dist/actions/get-database.mjs +1 -0
  74. package/dist/actions/get-database.mjs.map +1 -1
  75. package/dist/actions/get-databases.cjs +1 -0
  76. package/dist/actions/get-databases.cjs.map +1 -1
  77. package/dist/actions/get-databases.d.cts +3 -18
  78. package/dist/actions/get-databases.d.cts.map +1 -1
  79. package/dist/actions/get-databases.d.mts +3 -18
  80. package/dist/actions/get-databases.d.mts.map +1 -1
  81. package/dist/actions/get-databases.mjs +1 -0
  82. package/dist/actions/get-databases.mjs.map +1 -1
  83. package/dist/actions/get-record.cjs +1 -0
  84. package/dist/actions/get-record.cjs.map +1 -1
  85. package/dist/actions/get-record.d.cts +3 -19
  86. package/dist/actions/get-record.d.cts.map +1 -1
  87. package/dist/actions/get-record.d.mts +3 -19
  88. package/dist/actions/get-record.d.mts.map +1 -1
  89. package/dist/actions/get-record.mjs +1 -0
  90. package/dist/actions/get-record.mjs.map +1 -1
  91. package/dist/actions/get-records.cjs +1 -0
  92. package/dist/actions/get-records.cjs.map +1 -1
  93. package/dist/actions/get-records.d.cts +3 -20
  94. package/dist/actions/get-records.d.cts.map +1 -1
  95. package/dist/actions/get-records.d.mts +3 -20
  96. package/dist/actions/get-records.d.mts.map +1 -1
  97. package/dist/actions/get-records.mjs +1 -0
  98. package/dist/actions/get-records.mjs.map +1 -1
  99. package/dist/actions/get-table-field.cjs +1 -0
  100. package/dist/actions/get-table-field.cjs.map +1 -1
  101. package/dist/actions/get-table-field.d.cts +3 -19
  102. package/dist/actions/get-table-field.d.cts.map +1 -1
  103. package/dist/actions/get-table-field.d.mts +3 -19
  104. package/dist/actions/get-table-field.d.mts.map +1 -1
  105. package/dist/actions/get-table-field.mjs +1 -0
  106. package/dist/actions/get-table-field.mjs.map +1 -1
  107. package/dist/actions/get-table-views.cjs +1 -0
  108. package/dist/actions/get-table-views.cjs.map +1 -1
  109. package/dist/actions/get-table-views.d.cts +3 -18
  110. package/dist/actions/get-table-views.d.cts.map +1 -1
  111. package/dist/actions/get-table-views.d.mts +3 -18
  112. package/dist/actions/get-table-views.d.mts.map +1 -1
  113. package/dist/actions/get-table-views.mjs +1 -0
  114. package/dist/actions/get-table-views.mjs.map +1 -1
  115. package/dist/actions/get-table.cjs +1 -0
  116. package/dist/actions/get-table.cjs.map +1 -1
  117. package/dist/actions/get-table.d.cts +3 -18
  118. package/dist/actions/get-table.d.cts.map +1 -1
  119. package/dist/actions/get-table.d.mts +3 -18
  120. package/dist/actions/get-table.d.mts.map +1 -1
  121. package/dist/actions/get-table.mjs +1 -0
  122. package/dist/actions/get-table.mjs.map +1 -1
  123. package/dist/actions/get-tables.cjs +1 -0
  124. package/dist/actions/get-tables.cjs.map +1 -1
  125. package/dist/actions/get-tables.d.cts +3 -17
  126. package/dist/actions/get-tables.d.cts.map +1 -1
  127. package/dist/actions/get-tables.d.mts +3 -17
  128. package/dist/actions/get-tables.d.mts.map +1 -1
  129. package/dist/actions/get-tables.mjs +1 -0
  130. package/dist/actions/get-tables.mjs.map +1 -1
  131. package/dist/actions/search-records.cjs +1 -0
  132. package/dist/actions/search-records.cjs.map +1 -1
  133. package/dist/actions/search-records.d.cts +3 -23
  134. package/dist/actions/search-records.d.cts.map +1 -1
  135. package/dist/actions/search-records.d.mts +3 -23
  136. package/dist/actions/search-records.d.mts.map +1 -1
  137. package/dist/actions/search-records.mjs +1 -0
  138. package/dist/actions/search-records.mjs.map +1 -1
  139. package/dist/actions/update-database.cjs +1 -0
  140. package/dist/actions/update-database.cjs.map +1 -1
  141. package/dist/actions/update-database.d.cts +3 -19
  142. package/dist/actions/update-database.d.cts.map +1 -1
  143. package/dist/actions/update-database.d.mts +3 -19
  144. package/dist/actions/update-database.d.mts.map +1 -1
  145. package/dist/actions/update-database.mjs +1 -0
  146. package/dist/actions/update-database.mjs.map +1 -1
  147. package/dist/actions/update-record.cjs +1 -0
  148. package/dist/actions/update-record.cjs.map +1 -1
  149. package/dist/actions/update-record.d.cts +3 -20
  150. package/dist/actions/update-record.d.cts.map +1 -1
  151. package/dist/actions/update-record.d.mts +3 -20
  152. package/dist/actions/update-record.d.mts.map +1 -1
  153. package/dist/actions/update-record.mjs +1 -0
  154. package/dist/actions/update-record.mjs.map +1 -1
  155. package/dist/actions/update-table-field.cjs +1 -0
  156. package/dist/actions/update-table-field.cjs.map +1 -1
  157. package/dist/actions/update-table-field.d.cts +3 -22
  158. package/dist/actions/update-table-field.d.cts.map +1 -1
  159. package/dist/actions/update-table-field.d.mts +3 -22
  160. package/dist/actions/update-table-field.d.mts.map +1 -1
  161. package/dist/actions/update-table-field.mjs +1 -0
  162. package/dist/actions/update-table-field.mjs.map +1 -1
  163. package/dist/actions/update-table.cjs +1 -0
  164. package/dist/actions/update-table.cjs.map +1 -1
  165. package/dist/actions/update-table.d.cts +3 -20
  166. package/dist/actions/update-table.d.cts.map +1 -1
  167. package/dist/actions/update-table.d.mts +3 -20
  168. package/dist/actions/update-table.d.mts.map +1 -1
  169. package/dist/actions/update-table.mjs +1 -0
  170. package/dist/actions/update-table.mjs.map +1 -1
  171. package/dist/app.cjs +5 -4
  172. package/dist/app.cjs.map +1 -1
  173. package/dist/app.d.cts +4 -6
  174. package/dist/app.d.cts.map +1 -1
  175. package/dist/app.d.mts +4 -6
  176. package/dist/app.d.mts.map +1 -1
  177. package/dist/app.mjs +0 -1
  178. package/dist/app.mjs.map +1 -1
  179. package/dist/index.d.cts +1 -1
  180. package/dist/index.d.mts +1 -1
  181. package/package.json +2 -2
@@ -1,3 +1,5 @@
1
+ import { softr } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-table-views.d.ts
@@ -15,24 +17,7 @@ declare const SoftrGetTableViewsOutput: z.ZodObject<{
15
17
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
18
  }, z.core.$loose>>;
17
19
  }, z.core.$loose>;
18
- declare const softrGetTableViews: import("@keystrokehq/action").WorkflowActionDefinition<{
19
- table_id: string;
20
- database_id: string;
21
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"softr", z.ZodObject<{
22
- connectionId: z.ZodString;
23
- entityId: z.ZodString;
24
- instanceId: z.ZodString;
25
- }, z.core.$strip>, z.ZodObject<{
26
- generic_api_key: z.ZodString;
27
- generic_id: z.ZodString;
28
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"softr", z.ZodObject<{
29
- connectionId: z.ZodString;
30
- entityId: z.ZodString;
31
- instanceId: z.ZodString;
32
- }, z.core.$strip>, z.ZodObject<{
33
- generic_api_key: z.ZodString;
34
- generic_id: z.ZodString;
35
- }, z.core.$strip>>]>;
20
+ declare const softrGetTableViews: AppAction<typeof SoftrGetTableViewsInput, typeof SoftrGetTableViewsOutput, typeof softr.credential>;
36
21
  //#endregion
37
22
  export { softrGetTableViews };
38
23
  //# sourceMappingURL=get-table-views.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-table-views.d.mts","names":[],"sources":["../../src/actions/get-table-views.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;cAYvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;cAIxB,kBAAA,gCAAkB,wBAAA"}
1
+ {"version":3,"file":"get-table-views.d.mts","names":[],"sources":["../../src/actions/get-table-views.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;cAYvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;cAIxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/get-table-views.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-table-views.mjs","names":[],"sources":["../../src/actions/get-table-views.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SoftrGetTableViewsInput = z.object({\n table_id: z.string().describe(\"The unique identifier of the table whose views are to be retrieved.\"),\n database_id: z.string().describe(\"The unique identifier of the database containing the table.\"),\n}).describe(\"Request model for retrieving all views for a specified table.\");\nconst SoftrGetTableViews_TableViewSchema = z.object({\n id: z.string().describe(\"The unique identifier of the view.\").nullable().optional(),\n name: z.string().describe(\"The name of the view.\").nullable().optional(),\n tableId: z.string().describe(\"The identifier of the table this view belongs to.\").nullable().optional(),\n createdAt: z.string().describe(\"Timestamp when the view was created.\").nullable().optional(),\n updatedAt: z.string().describe(\"Timestamp when the view was last updated.\").nullable().optional(),\n description: z.string().describe(\"Description of the view.\").nullable().optional(),\n}).passthrough().describe(\"Model representing a single table view.\");\nexport const SoftrGetTableViewsOutput = z.object({\n data: z.array(SoftrGetTableViews_TableViewSchema).describe(\"List of table views.\"),\n}).passthrough().describe(\"Response model containing all views for a specified table.\");\n\nexport const softrGetTableViews = action(\"SOFTR_GET_TABLE_VIEWS\", {\n slug: \"softr-get-table-views\",\n name: \"Get Table Views\",\n description: \"Tool to retrieve all views for a specified table in a Softr database. Use when you need to list or inspect available views for a table.\",\n input: SoftrGetTableViewsInput,\n output: SoftrGetTableViewsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0B,EAAE,OAAO;CAC9C,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE;CACnG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;AAChG,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,qCAAqC,EAAE,OAAO;CAClD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAKnE,MAAa,qBAAqB,OAAO,yBAAyB;CAChE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATsC,EAAE,OAAO,EAC/C,MAAM,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,sBAAsB,EACnF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4DAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"get-table-views.mjs","names":[],"sources":["../../src/actions/get-table-views.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { softr } from \"../app\";\n\nexport const SoftrGetTableViewsInput = z.object({\n table_id: z.string().describe(\"The unique identifier of the table whose views are to be retrieved.\"),\n database_id: z.string().describe(\"The unique identifier of the database containing the table.\"),\n}).describe(\"Request model for retrieving all views for a specified table.\");\nconst SoftrGetTableViews_TableViewSchema = z.object({\n id: z.string().describe(\"The unique identifier of the view.\").nullable().optional(),\n name: z.string().describe(\"The name of the view.\").nullable().optional(),\n tableId: z.string().describe(\"The identifier of the table this view belongs to.\").nullable().optional(),\n createdAt: z.string().describe(\"Timestamp when the view was created.\").nullable().optional(),\n updatedAt: z.string().describe(\"Timestamp when the view was last updated.\").nullable().optional(),\n description: z.string().describe(\"Description of the view.\").nullable().optional(),\n}).passthrough().describe(\"Model representing a single table view.\");\nexport const SoftrGetTableViewsOutput = z.object({\n data: z.array(SoftrGetTableViews_TableViewSchema).describe(\"List of table views.\"),\n}).passthrough().describe(\"Response model containing all views for a specified table.\");\n\nexport const softrGetTableViews: AppAction<\n typeof SoftrGetTableViewsInput,\n typeof SoftrGetTableViewsOutput,\n typeof softr.credential\n> = action(\"SOFTR_GET_TABLE_VIEWS\", {\n slug: \"softr-get-table-views\",\n name: \"Get Table Views\",\n description: \"Tool to retrieve all views for a specified table in a Softr database. Use when you need to list or inspect available views for a table.\",\n input: SoftrGetTableViewsInput,\n output: SoftrGetTableViewsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,0BAA0B,EAAE,OAAO;CAC9C,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE;CACnG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;AAChG,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,qCAAqC,EAAE,OAAO;CAClD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAKnE,MAAa,qBAIT,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbsC,EAAE,OAAO,EAC/C,MAAM,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,sBAAsB,EACnF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4DAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/get-table.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-table.cjs","names":["z","action"],"sources":["../../src/actions/get-table.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SoftrGetTableInput = z.object({\n table_id: z.string().describe(\"The unique identifier of the table to retrieve\"),\n database_id: z.string().describe(\"The unique identifier of the database containing the table\"),\n}).describe(\"Request model for retrieving a specific table by ID.\");\nconst SoftrGetTable_FieldTypeSchema = 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(\"Enumeration of field types supported in Softr tables.\");\nconst SoftrGetTable_TableFieldSchema = z.object({\n id: z.string().describe(\"Unique identifier of the field\").nullable(),\n name: z.string().describe(\"Name of the field\").nullable(),\n type: SoftrGetTable_FieldTypeSchema.nullable(),\n locked: z.boolean().describe(\"Whether the field is locked\").nullable().optional(),\n options: z.record(z.string(), z.unknown()).describe(\"Type-specific 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 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(\"Represents a field in a Softr table.\");\nconst SoftrGetTable_TableDataSchema = z.object({\n id: z.string().describe(\"Unique identifier of the table\").nullable(),\n name: z.string().describe(\"Name of the table\").nullable(),\n fields: z.array(SoftrGetTable_TableFieldSchema).describe(\"List of fields defined in the 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 the table\").nullable(),\n primaryFieldId: z.string().describe(\"ID of the primary field in the table\").nullable(),\n}).passthrough().describe(\"Represents the data structure of a Softr table.\");\nexport const SoftrGetTableOutput = z.object({\n data: SoftrGetTable_TableDataSchema.nullable(),\n}).passthrough().describe(\"Response model containing the retrieved table details.\");\n\nexport const softrGetTable = action(\"SOFTR_GET_TABLE\", {\n slug: \"softr-get-table\",\n name: \"Get Table\",\n description: \"Tool to retrieve details for a specific table by ID. Use when you need to inspect table structure, fields, or metadata.\",\n input: SoftrGetTableInput,\n output: SoftrGetTableOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qBAAqBA,IAAAA,EAAE,OAAO;CACzC,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CAC9E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;AAC/F,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAM,gCAAgCA,IAAAA,EAAE,KAAK;CAAC;CAAoB;CAAY;CAAY;CAAY;CAAY;CAAS;CAAU;CAAU;CAAc;CAAU;CAAiB;CAAa;CAAO;CAAW;CAAU;CAAY;CAAS;CAAc;CAAW;CAAQ;CAAU;CAAU;CAAW;CAAS;CAAc;CAAc;CAAc;CAAc;CA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,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACnE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;CACxD,QAAQA,IAAAA,EAAE,MAAM,8BAA8B,CAAC,CAAC,SAAS,qCAAqC;CAC9F,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAChF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACrF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACpF,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;AACvF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAC3E,MAAa,sBAAsBA,IAAAA,EAAE,OAAO,EAC1C,MAAM,8BAA8B,SAAS,EAC/C,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wDAAwD;AAElF,MAAa,gBAAgBC,eAAAA,OAAO,mBAAmB;CACrD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-table.cjs","names":["z","action"],"sources":["../../src/actions/get-table.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { softr } from \"../app\";\n\nexport const SoftrGetTableInput = z.object({\n table_id: z.string().describe(\"The unique identifier of the table to retrieve\"),\n database_id: z.string().describe(\"The unique identifier of the database containing the table\"),\n}).describe(\"Request model for retrieving a specific table by ID.\");\nconst SoftrGetTable_FieldTypeSchema = 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(\"Enumeration of field types supported in Softr tables.\");\nconst SoftrGetTable_TableFieldSchema = z.object({\n id: z.string().describe(\"Unique identifier of the field\").nullable(),\n name: z.string().describe(\"Name of the field\").nullable(),\n type: SoftrGetTable_FieldTypeSchema.nullable(),\n locked: z.boolean().describe(\"Whether the field is locked\").nullable().optional(),\n options: z.record(z.string(), z.unknown()).describe(\"Type-specific 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 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(\"Represents a field in a Softr table.\");\nconst SoftrGetTable_TableDataSchema = z.object({\n id: z.string().describe(\"Unique identifier of the table\").nullable(),\n name: z.string().describe(\"Name of the table\").nullable(),\n fields: z.array(SoftrGetTable_TableFieldSchema).describe(\"List of fields defined in the 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 the table\").nullable(),\n primaryFieldId: z.string().describe(\"ID of the primary field in the table\").nullable(),\n}).passthrough().describe(\"Represents the data structure of a Softr table.\");\nexport const SoftrGetTableOutput = z.object({\n data: SoftrGetTable_TableDataSchema.nullable(),\n}).passthrough().describe(\"Response model containing the retrieved table details.\");\n\nexport const softrGetTable: AppAction<\n typeof SoftrGetTableInput,\n typeof SoftrGetTableOutput,\n typeof softr.credential\n> = action(\"SOFTR_GET_TABLE\", {\n slug: \"softr-get-table\",\n name: \"Get Table\",\n description: \"Tool to retrieve details for a specific table by ID. Use when you need to inspect table structure, fields, or metadata.\",\n input: SoftrGetTableInput,\n output: SoftrGetTableOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,qBAAqBA,IAAAA,EAAE,OAAO;CACzC,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CAC9E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;AAC/F,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAM,gCAAgCA,IAAAA,EAAE,KAAK;CAAC;CAAoB;CAAY;CAAY;CAAY;CAAY;CAAS;CAAU;CAAU;CAAc;CAAU;CAAiB;CAAa;CAAO;CAAW;CAAU;CAAY;CAAS;CAAc;CAAW;CAAQ;CAAU;CAAU;CAAW;CAAS;CAAc;CAAc;CAAc;CAAc;CAAc;CAAa;AAAM,CAAC,CAAC,CAAC,SAAS,uDAAuD;AAC3d,MAAM,iCAAiCA,IAAAA,EAAE,OAAO;CAC9C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACnE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;CACxD,MAAM,8BAA8B,SAAS;CAC7C,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,SAASA,IAAAA,EAAE,OAAOA,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C,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACpF,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;AACvF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAC3E,MAAa,sBAAsBA,IAAAA,EAAE,OAAO,EAC1C,MAAM,8BAA8B,SAAS,EAC/C,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wDAAwD;AAElF,MAAa,gBAITC,eAAAA,OAAO,mBAAmB;CAC5B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { softr } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-table.d.ts
@@ -61,24 +63,7 @@ declare const SoftrGetTableOutput: z.ZodObject<{
61
63
  primaryFieldId: z.ZodNullable<z.ZodString>;
62
64
  }, z.core.$loose>>;
63
65
  }, z.core.$loose>;
64
- declare const softrGetTable: import("@keystrokehq/action").WorkflowActionDefinition<{
65
- table_id: string;
66
- database_id: string;
67
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"softr", z.ZodObject<{
68
- connectionId: z.ZodString;
69
- entityId: z.ZodString;
70
- instanceId: z.ZodString;
71
- }, z.core.$strip>, z.ZodObject<{
72
- generic_api_key: z.ZodString;
73
- generic_id: z.ZodString;
74
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"softr", z.ZodObject<{
75
- connectionId: z.ZodString;
76
- entityId: z.ZodString;
77
- instanceId: z.ZodString;
78
- }, z.core.$strip>, z.ZodObject<{
79
- generic_api_key: z.ZodString;
80
- generic_id: z.ZodString;
81
- }, z.core.$strip>>]>;
66
+ declare const softrGetTable: AppAction<typeof SoftrGetTableInput, typeof SoftrGetTableOutput, typeof softr.credential>;
82
67
  //#endregion
83
68
  export { softrGetTable };
84
69
  //# sourceMappingURL=get-table.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-table.d.cts","names":[],"sources":["../../src/actions/get-table.ts"],"mappings":";;;cAIa,kBAAA,EAAkB,CAAA,CAAA,SAAA;;;;cA4BlB,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAInB,aAAA,gCAAa,wBAAA"}
1
+ {"version":3,"file":"get-table.d.cts","names":[],"sources":["../../src/actions/get-table.ts"],"mappings":";;;;;cAMa,kBAAA,EAAkB,CAAA,CAAA,SAAA;;;;cA4BlB,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAInB,aAAA,EAAe,SAAA,QACnB,kBAAA,SACA,mBAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { softr } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-table.d.ts
@@ -61,24 +63,7 @@ declare const SoftrGetTableOutput: z.ZodObject<{
61
63
  primaryFieldId: z.ZodNullable<z.ZodString>;
62
64
  }, z.core.$loose>>;
63
65
  }, z.core.$loose>;
64
- declare const softrGetTable: import("@keystrokehq/action").WorkflowActionDefinition<{
65
- table_id: string;
66
- database_id: string;
67
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"softr", z.ZodObject<{
68
- connectionId: z.ZodString;
69
- entityId: z.ZodString;
70
- instanceId: z.ZodString;
71
- }, z.core.$strip>, z.ZodObject<{
72
- generic_api_key: z.ZodString;
73
- generic_id: z.ZodString;
74
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"softr", z.ZodObject<{
75
- connectionId: z.ZodString;
76
- entityId: z.ZodString;
77
- instanceId: z.ZodString;
78
- }, z.core.$strip>, z.ZodObject<{
79
- generic_api_key: z.ZodString;
80
- generic_id: z.ZodString;
81
- }, z.core.$strip>>]>;
66
+ declare const softrGetTable: AppAction<typeof SoftrGetTableInput, typeof SoftrGetTableOutput, typeof softr.credential>;
82
67
  //#endregion
83
68
  export { softrGetTable };
84
69
  //# sourceMappingURL=get-table.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-table.d.mts","names":[],"sources":["../../src/actions/get-table.ts"],"mappings":";;;cAIa,kBAAA,EAAkB,CAAA,CAAA,SAAA;;;;cA4BlB,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAInB,aAAA,gCAAa,wBAAA"}
1
+ {"version":3,"file":"get-table.d.mts","names":[],"sources":["../../src/actions/get-table.ts"],"mappings":";;;;;cAMa,kBAAA,EAAkB,CAAA,CAAA,SAAA;;;;cA4BlB,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAInB,aAAA,EAAe,SAAA,QACnB,kBAAA,SACA,mBAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/get-table.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-table.mjs","names":[],"sources":["../../src/actions/get-table.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SoftrGetTableInput = z.object({\n table_id: z.string().describe(\"The unique identifier of the table to retrieve\"),\n database_id: z.string().describe(\"The unique identifier of the database containing the table\"),\n}).describe(\"Request model for retrieving a specific table by ID.\");\nconst SoftrGetTable_FieldTypeSchema = 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(\"Enumeration of field types supported in Softr tables.\");\nconst SoftrGetTable_TableFieldSchema = z.object({\n id: z.string().describe(\"Unique identifier of the field\").nullable(),\n name: z.string().describe(\"Name of the field\").nullable(),\n type: SoftrGetTable_FieldTypeSchema.nullable(),\n locked: z.boolean().describe(\"Whether the field is locked\").nullable().optional(),\n options: z.record(z.string(), z.unknown()).describe(\"Type-specific 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 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(\"Represents a field in a Softr table.\");\nconst SoftrGetTable_TableDataSchema = z.object({\n id: z.string().describe(\"Unique identifier of the table\").nullable(),\n name: z.string().describe(\"Name of the table\").nullable(),\n fields: z.array(SoftrGetTable_TableFieldSchema).describe(\"List of fields defined in the 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 the table\").nullable(),\n primaryFieldId: z.string().describe(\"ID of the primary field in the table\").nullable(),\n}).passthrough().describe(\"Represents the data structure of a Softr table.\");\nexport const SoftrGetTableOutput = z.object({\n data: SoftrGetTable_TableDataSchema.nullable(),\n}).passthrough().describe(\"Response model containing the retrieved table details.\");\n\nexport const softrGetTable = action(\"SOFTR_GET_TABLE\", {\n slug: \"softr-get-table\",\n name: \"Get Table\",\n description: \"Tool to retrieve details for a specific table by ID. Use when you need to inspect table structure, fields, or metadata.\",\n input: SoftrGetTableInput,\n output: SoftrGetTableOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qBAAqB,EAAE,OAAO;CACzC,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CAC9E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;AAC/F,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAM,gCAAgC,EAAE,KAAK;CAAC;CAAoB;CAAY;CAAY;CAAY;CAAY;CAAS;CAAU;CAAU;CAAc;CAAU;CAAiB;CAAa;CAAO;CAAW;CAAU;CAAY;CAAS;CAAc;CAAW;CAAQ;CAAU;CAAU;CAAW;CAAS;CAAc;CAAc;CAAc;CAAc;CAAc;CAAa;AAAM,CAAC,CAAC,CAAC,SAAS,uDAAuD;AAC3d,MAAM,iCAAiC,EAAE,OAAO;CAC9C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACnE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;CACxD,MAAM,8BAA8B,SAAS;CAC7C,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,C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,SAAS,iDAAiD;AAK3E,MAAa,gBAAgB,OAAO,mBAAmB;CACrD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATiC,EAAE,OAAO,EAC1C,MAAM,8BAA8B,SAAS,EAC/C,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wDAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"get-table.mjs","names":[],"sources":["../../src/actions/get-table.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { softr } from \"../app\";\n\nexport const SoftrGetTableInput = z.object({\n table_id: z.string().describe(\"The unique identifier of the table to retrieve\"),\n database_id: z.string().describe(\"The unique identifier of the database containing the table\"),\n}).describe(\"Request model for retrieving a specific table by ID.\");\nconst SoftrGetTable_FieldTypeSchema = 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(\"Enumeration of field types supported in Softr tables.\");\nconst SoftrGetTable_TableFieldSchema = z.object({\n id: z.string().describe(\"Unique identifier of the field\").nullable(),\n name: z.string().describe(\"Name of the field\").nullable(),\n type: SoftrGetTable_FieldTypeSchema.nullable(),\n locked: z.boolean().describe(\"Whether the field is locked\").nullable().optional(),\n options: z.record(z.string(), z.unknown()).describe(\"Type-specific 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 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(\"Represents a field in a Softr table.\");\nconst SoftrGetTable_TableDataSchema = z.object({\n id: z.string().describe(\"Unique identifier of the table\").nullable(),\n name: z.string().describe(\"Name of the table\").nullable(),\n fields: z.array(SoftrGetTable_TableFieldSchema).describe(\"List of fields defined in the 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 the table\").nullable(),\n primaryFieldId: z.string().describe(\"ID of the primary field in the table\").nullable(),\n}).passthrough().describe(\"Represents the data structure of a Softr table.\");\nexport const SoftrGetTableOutput = z.object({\n data: SoftrGetTable_TableDataSchema.nullable(),\n}).passthrough().describe(\"Response model containing the retrieved table details.\");\n\nexport const softrGetTable: AppAction<\n typeof SoftrGetTableInput,\n typeof SoftrGetTableOutput,\n typeof softr.credential\n> = action(\"SOFTR_GET_TABLE\", {\n slug: \"softr-get-table\",\n name: \"Get Table\",\n description: \"Tool to retrieve details for a specific table by ID. Use when you need to inspect table structure, fields, or metadata.\",\n input: SoftrGetTableInput,\n output: SoftrGetTableOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,qBAAqB,EAAE,OAAO;CACzC,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CAC9E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;AAC/F,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAM,gCAAgC,EAAE,KAAK;CAAC;CAAoB;CAAY;CAAY;CAAY;CAAY;CAAS;CAAU;CAAU;CAA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AAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACnE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;CACxD,QAAQ,EAAE,MAAM,8BAA8B,CAAC,CAAC,SAAS,qCAAqC;CAC9F,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAChF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACrF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACpF,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;AACvF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAK3E,MAAa,gBAIT,OAAO,mBAAmB;CAC5B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbiC,EAAE,OAAO,EAC1C,MAAM,8BAA8B,SAAS,EAC/C,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wDAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/get-tables.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-tables.cjs","names":["z","action"],"sources":["../../src/actions/get-tables.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SoftrGetTablesInput = z.object({\n databaseId: z.string().describe(\"The unique identifier of the database to retrieve tables from.\"),\n});\nconst SoftrGetTables_TableSchema = z.object({\n id: z.string().describe(\"Unique identifier for the table.\").nullable(),\n name: z.string().describe(\"Name of the table.\").nullable(),\n createdAt: z.string().describe(\"ISO 8601 timestamp of when the table was created.\").nullable().optional(),\n updatedAt: z.string().describe(\"ISO 8601 timestamp of when the table was last updated.\").nullable().optional(),\n description: z.string().describe(\"Optional description of the table.\").nullable().optional(),\n defaultViewId: z.string().describe(\"Identifier of the default view for the table.\").nullable().optional(),\n primaryFieldId: z.string().describe(\"Identifier of the primary field in the table.\").nullable().optional(),\n}).passthrough().describe(\"Represents a table within a Softr database.\");\nexport const SoftrGetTablesOutput = z.object({\n data: z.array(SoftrGetTables_TableSchema).describe(\"Array of table objects within the specified database.\"),\n}).passthrough().describe(\"Response containing all tables in a database.\");\n\nexport const softrGetTables = action(\"SOFTR_GET_TABLES\", {\n slug: \"softr-get-tables\",\n name: \"Get Tables\",\n description: \"Retrieves all tables within a specified Softr database. Use when you need to list or explore the tables available in a database.\",\n input: SoftrGetTablesInput,\n output: SoftrGetTablesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sBAAsBA,IAAAA,EAAE,OAAO,EAC1C,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,EAClG,CAAC;AACD,MAAM,6BAA6BA,IAAAA,EAAE,OAAO;CAC1C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACrE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CACzD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AACvE,MAAa,uBAAuBA,IAAAA,EAAE,OAAO,EAC3C,MAAMA,IAAAA,EAAE,MAAM,0BAA0B,CAAC,CAAC,SAAS,uDAAuD,EAC5G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAA+C;AAEzE,MAAa,iBAAiBC,eAAAA,OAAO,oBAAoB;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-tables.cjs","names":["z","action"],"sources":["../../src/actions/get-tables.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { softr } from \"../app\";\n\nexport const SoftrGetTablesInput = z.object({\n databaseId: z.string().describe(\"The unique identifier of the database to retrieve tables from.\"),\n});\nconst SoftrGetTables_TableSchema = z.object({\n id: z.string().describe(\"Unique identifier for the table.\").nullable(),\n name: z.string().describe(\"Name of the table.\").nullable(),\n createdAt: z.string().describe(\"ISO 8601 timestamp of when the table was created.\").nullable().optional(),\n updatedAt: z.string().describe(\"ISO 8601 timestamp of when the table was last updated.\").nullable().optional(),\n description: z.string().describe(\"Optional description of the table.\").nullable().optional(),\n defaultViewId: z.string().describe(\"Identifier of the default view for the table.\").nullable().optional(),\n primaryFieldId: z.string().describe(\"Identifier of the primary field in the table.\").nullable().optional(),\n}).passthrough().describe(\"Represents a table within a Softr database.\");\nexport const SoftrGetTablesOutput = z.object({\n data: z.array(SoftrGetTables_TableSchema).describe(\"Array of table objects within the specified database.\"),\n}).passthrough().describe(\"Response containing all tables in a database.\");\n\nexport const softrGetTables: AppAction<\n typeof SoftrGetTablesInput,\n typeof SoftrGetTablesOutput,\n typeof softr.credential\n> = action(\"SOFTR_GET_TABLES\", {\n slug: \"softr-get-tables\",\n name: \"Get Tables\",\n description: \"Retrieves all tables within a specified Softr database. Use when you need to list or explore the tables available in a database.\",\n input: SoftrGetTablesInput,\n output: SoftrGetTablesOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,sBAAsBA,IAAAA,EAAE,OAAO,EAC1C,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,EAClG,CAAC;AACD,MAAM,6BAA6BA,IAAAA,EAAE,OAAO;CAC1C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACrE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CACzD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AACvE,MAAa,uBAAuBA,IAAAA,EAAE,OAAO,EAC3C,MAAMA,IAAAA,EAAE,MAAM,0BAA0B,CAAC,CAAC,SAAS,uDAAuD,EAC5G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAA+C;AAEzE,MAAa,iBAITC,eAAAA,OAAO,oBAAoB;CAC7B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { softr } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-tables.d.ts
@@ -15,23 +17,7 @@ declare const SoftrGetTablesOutput: z.ZodObject<{
15
17
  primaryFieldId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
18
  }, z.core.$loose>>;
17
19
  }, z.core.$loose>;
18
- declare const softrGetTables: import("@keystrokehq/action").WorkflowActionDefinition<{
19
- databaseId: string;
20
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"softr", z.ZodObject<{
21
- connectionId: z.ZodString;
22
- entityId: z.ZodString;
23
- instanceId: z.ZodString;
24
- }, z.core.$strip>, z.ZodObject<{
25
- generic_api_key: z.ZodString;
26
- generic_id: z.ZodString;
27
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"softr", z.ZodObject<{
28
- connectionId: z.ZodString;
29
- entityId: z.ZodString;
30
- instanceId: z.ZodString;
31
- }, z.core.$strip>, z.ZodObject<{
32
- generic_api_key: z.ZodString;
33
- generic_id: z.ZodString;
34
- }, z.core.$strip>>]>;
20
+ declare const softrGetTables: AppAction<typeof SoftrGetTablesInput, typeof SoftrGetTablesOutput, typeof softr.credential>;
35
21
  //#endregion
36
22
  export { softrGetTables };
37
23
  //# sourceMappingURL=get-tables.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-tables.d.cts","names":[],"sources":["../../src/actions/get-tables.ts"],"mappings":";;;cAIa,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;cAYnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;cAIpB,cAAA,gCAAc,wBAAA"}
1
+ {"version":3,"file":"get-tables.d.cts","names":[],"sources":["../../src/actions/get-tables.ts"],"mappings":";;;;;cAMa,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;cAYnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;cAIpB,cAAA,EAAgB,SAAA,QACpB,mBAAA,SACA,oBAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { softr } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-tables.d.ts
@@ -15,23 +17,7 @@ declare const SoftrGetTablesOutput: z.ZodObject<{
15
17
  primaryFieldId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
18
  }, z.core.$loose>>;
17
19
  }, z.core.$loose>;
18
- declare const softrGetTables: import("@keystrokehq/action").WorkflowActionDefinition<{
19
- databaseId: string;
20
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"softr", z.ZodObject<{
21
- connectionId: z.ZodString;
22
- entityId: z.ZodString;
23
- instanceId: z.ZodString;
24
- }, z.core.$strip>, z.ZodObject<{
25
- generic_api_key: z.ZodString;
26
- generic_id: z.ZodString;
27
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"softr", z.ZodObject<{
28
- connectionId: z.ZodString;
29
- entityId: z.ZodString;
30
- instanceId: z.ZodString;
31
- }, z.core.$strip>, z.ZodObject<{
32
- generic_api_key: z.ZodString;
33
- generic_id: z.ZodString;
34
- }, z.core.$strip>>]>;
20
+ declare const softrGetTables: AppAction<typeof SoftrGetTablesInput, typeof SoftrGetTablesOutput, typeof softr.credential>;
35
21
  //#endregion
36
22
  export { softrGetTables };
37
23
  //# sourceMappingURL=get-tables.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-tables.d.mts","names":[],"sources":["../../src/actions/get-tables.ts"],"mappings":";;;cAIa,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;cAYnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;cAIpB,cAAA,gCAAc,wBAAA"}
1
+ {"version":3,"file":"get-tables.d.mts","names":[],"sources":["../../src/actions/get-tables.ts"],"mappings":";;;;;cAMa,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;cAYnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;cAIpB,cAAA,EAAgB,SAAA,QACpB,mBAAA,SACA,oBAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/get-tables.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-tables.mjs","names":[],"sources":["../../src/actions/get-tables.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SoftrGetTablesInput = z.object({\n databaseId: z.string().describe(\"The unique identifier of the database to retrieve tables from.\"),\n});\nconst SoftrGetTables_TableSchema = z.object({\n id: z.string().describe(\"Unique identifier for the table.\").nullable(),\n name: z.string().describe(\"Name of the table.\").nullable(),\n createdAt: z.string().describe(\"ISO 8601 timestamp of when the table was created.\").nullable().optional(),\n updatedAt: z.string().describe(\"ISO 8601 timestamp of when the table was last updated.\").nullable().optional(),\n description: z.string().describe(\"Optional description of the table.\").nullable().optional(),\n defaultViewId: z.string().describe(\"Identifier of the default view for the table.\").nullable().optional(),\n primaryFieldId: z.string().describe(\"Identifier of the primary field in the table.\").nullable().optional(),\n}).passthrough().describe(\"Represents a table within a Softr database.\");\nexport const SoftrGetTablesOutput = z.object({\n data: z.array(SoftrGetTables_TableSchema).describe(\"Array of table objects within the specified database.\"),\n}).passthrough().describe(\"Response containing all tables in a database.\");\n\nexport const softrGetTables = action(\"SOFTR_GET_TABLES\", {\n slug: \"softr-get-tables\",\n name: \"Get Tables\",\n description: \"Retrieves all tables within a specified Softr database. Use when you need to list or explore the tables available in a database.\",\n input: SoftrGetTablesInput,\n output: SoftrGetTablesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sBAAsB,EAAE,OAAO,EAC1C,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,EAClG,CAAC;AACD,MAAM,6BAA6B,EAAE,OAAO;CAC1C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACrE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CACzD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AAKvE,MAAa,iBAAiB,OAAO,oBAAoB;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATkC,EAAE,OAAO,EAC3C,MAAM,EAAE,MAAM,0BAA0B,CAAC,CAAC,SAAS,uDAAuD,EAC5G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"get-tables.mjs","names":[],"sources":["../../src/actions/get-tables.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { softr } from \"../app\";\n\nexport const SoftrGetTablesInput = z.object({\n databaseId: z.string().describe(\"The unique identifier of the database to retrieve tables from.\"),\n});\nconst SoftrGetTables_TableSchema = z.object({\n id: z.string().describe(\"Unique identifier for the table.\").nullable(),\n name: z.string().describe(\"Name of the table.\").nullable(),\n createdAt: z.string().describe(\"ISO 8601 timestamp of when the table was created.\").nullable().optional(),\n updatedAt: z.string().describe(\"ISO 8601 timestamp of when the table was last updated.\").nullable().optional(),\n description: z.string().describe(\"Optional description of the table.\").nullable().optional(),\n defaultViewId: z.string().describe(\"Identifier of the default view for the table.\").nullable().optional(),\n primaryFieldId: z.string().describe(\"Identifier of the primary field in the table.\").nullable().optional(),\n}).passthrough().describe(\"Represents a table within a Softr database.\");\nexport const SoftrGetTablesOutput = z.object({\n data: z.array(SoftrGetTables_TableSchema).describe(\"Array of table objects within the specified database.\"),\n}).passthrough().describe(\"Response containing all tables in a database.\");\n\nexport const softrGetTables: AppAction<\n typeof SoftrGetTablesInput,\n typeof SoftrGetTablesOutput,\n typeof softr.credential\n> = action(\"SOFTR_GET_TABLES\", {\n slug: \"softr-get-tables\",\n name: \"Get Tables\",\n description: \"Retrieves all tables within a specified Softr database. Use when you need to list or explore the tables available in a database.\",\n input: SoftrGetTablesInput,\n output: SoftrGetTablesOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,sBAAsB,EAAE,OAAO,EAC1C,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,EAClG,CAAC;AACD,MAAM,6BAA6B,EAAE,OAAO;CAC1C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACrE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CACzD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AAKvE,MAAa,iBAIT,OAAO,oBAAoB;CAC7B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbkC,EAAE,OAAO,EAC3C,MAAM,EAAE,MAAM,0BAA0B,CAAC,CAAC,SAAS,uDAAuD,EAC5G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/search-records.ts
@@ -1 +1 @@
1
- {"version":3,"file":"search-records.cjs","names":["z","action"],"sources":["../../src/actions/search-records.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SoftrSearchRecordsInput = z.object({\n filter: z.record(z.string(), z.unknown()).describe(\"Filter conditions for searching records. Structure varies based on table schema and filter requirements.\").optional(),\n paging: z.object({\n limit: z.number().int().default(10).describe(\"Maximum number of records to return per request. Must be between 1 and 100. Defaults to 10.\").optional(),\n offset: z.number().int().default(0).describe(\"Number of records to skip. Use for pagination. Defaults to 0.\").optional(),\n}).describe(\"Pagination options for record search.\").optional(),\n table_id: z.string().describe(\"The unique identifier of the table to search records in.\"),\n database_id: z.string().describe(\"The unique identifier of the database containing the table.\"),\n}).describe(\"Request model for searching records in a Softr database table.\");\nconst SoftrSearchRecords_RecordFieldsSchema = z.record(z.string(), z.unknown()).describe(\"Custom fields for a record. Structure varies based on the table schema.\");\nconst SoftrSearchRecords_RecordSchema = z.object({\n id: z.string().describe(\"Unique identifier of the record.\").nullable(),\n fields: SoftrSearchRecords_RecordFieldsSchema.nullable(),\n tableId: z.string().describe(\"Identifier of the table this record belongs to.\").nullable().optional(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the record was created.\").nullable(),\n updatedAt: z.string().describe(\"ISO 8601 timestamp when the record was last updated.\").nullable(),\n}).passthrough().describe(\"Represents a single record from a Softr table.\");\nconst SoftrSearchRecords_SearchMetadataSchema = z.object({\n limit: z.number().int().describe(\"Maximum number of records requested.\").nullable(),\n total: z.number().int().describe(\"Total number of records matching the filter criteria.\").nullable(),\n offset: z.number().int().describe(\"Number of records skipped in this result set.\").nullable(),\n}).passthrough().describe(\"Metadata about the search results and pagination.\");\nexport const SoftrSearchRecordsOutput = z.object({\n data: z.array(SoftrSearchRecords_RecordSchema).describe(\"List of records matching the search criteria.\"),\n metadata: SoftrSearchRecords_SearchMetadataSchema.nullable(),\n}).passthrough().describe(\"Response model containing search results and metadata.\");\n\nexport const softrSearchRecords = action(\"SOFTR_SEARCH_RECORDS\", {\n slug: \"softr-search-records\",\n name: \"Search Records\",\n description: \"Tool to search records in a Softr database table with filtering and pagination. Use when you need to retrieve records from a specific table, optionally filtered by field values and paginated for large result sets.\",\n input: SoftrSearchRecordsInput,\n output: SoftrSearchRecordsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS;CACxK,QAAQA,IAAAA,EAAE,OAAO;EACjB,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS;EACrJ,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,+DAA+D,CAAC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C/C,MAAMA,IAAAA,EAAE,MAAM,+BAA+B,CAAC,CAAC,SAAS,+CAA+C;CACvG,UAAU,wCAAwC,SAAS;AAC7D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wDAAwD;AAElF,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"search-records.cjs","names":["z","action"],"sources":["../../src/actions/search-records.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { softr } from \"../app\";\n\nexport const SoftrSearchRecordsInput = z.object({\n filter: z.record(z.string(), z.unknown()).describe(\"Filter conditions for searching records. Structure varies based on table schema and filter requirements.\").optional(),\n paging: z.object({\n limit: z.number().int().default(10).describe(\"Maximum number of records to return per request. Must be between 1 and 100. Defaults to 10.\").optional(),\n offset: z.number().int().default(0).describe(\"Number of records to skip. Use for pagination. Defaults to 0.\").optional(),\n}).describe(\"Pagination options for record search.\").optional(),\n table_id: z.string().describe(\"The unique identifier of the table to search records in.\"),\n database_id: z.string().describe(\"The unique identifier of the database containing the table.\"),\n}).describe(\"Request model for searching records in a Softr database table.\");\nconst SoftrSearchRecords_RecordFieldsSchema = z.record(z.string(), z.unknown()).describe(\"Custom fields for a record. Structure varies based on the table schema.\");\nconst SoftrSearchRecords_RecordSchema = z.object({\n id: z.string().describe(\"Unique identifier of the record.\").nullable(),\n fields: SoftrSearchRecords_RecordFieldsSchema.nullable(),\n tableId: z.string().describe(\"Identifier of the table this record belongs to.\").nullable().optional(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the record was created.\").nullable(),\n updatedAt: z.string().describe(\"ISO 8601 timestamp when the record was last updated.\").nullable(),\n}).passthrough().describe(\"Represents a single record from a Softr table.\");\nconst SoftrSearchRecords_SearchMetadataSchema = z.object({\n limit: z.number().int().describe(\"Maximum number of records requested.\").nullable(),\n total: z.number().int().describe(\"Total number of records matching the filter criteria.\").nullable(),\n offset: z.number().int().describe(\"Number of records skipped in this result set.\").nullable(),\n}).passthrough().describe(\"Metadata about the search results and pagination.\");\nexport const SoftrSearchRecordsOutput = z.object({\n data: z.array(SoftrSearchRecords_RecordSchema).describe(\"List of records matching the search criteria.\"),\n metadata: SoftrSearchRecords_SearchMetadataSchema.nullable(),\n}).passthrough().describe(\"Response model containing search results and metadata.\");\n\nexport const softrSearchRecords: AppAction<\n typeof SoftrSearchRecordsInput,\n typeof SoftrSearchRecordsOutput,\n typeof softr.credential\n> = action(\"SOFTR_SEARCH_RECORDS\", {\n slug: \"softr-search-records\",\n name: \"Search Records\",\n description: \"Tool to search records in a Softr database table with filtering and pagination. Use when you need to retrieve records from a specific table, optionally filtered by field values and paginated for large result sets.\",\n input: SoftrSearchRecordsInput,\n output: SoftrSearchRecordsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS;CACxK,QAAQA,IAAAA,EAAE,OAAO;EACjB,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS;EACrJ,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CACzH,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC5D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;CACxF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;AAChG,CAAC,CAAC,CAAC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M;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { softr } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/search-records.d.ts
@@ -24,29 +26,7 @@ declare const SoftrSearchRecordsOutput: z.ZodObject<{
24
26
  offset: z.ZodNullable<z.ZodNumber>;
25
27
  }, z.core.$loose>>;
26
28
  }, z.core.$loose>;
27
- declare const softrSearchRecords: import("@keystrokehq/action").WorkflowActionDefinition<{
28
- table_id: string;
29
- database_id: string;
30
- filter?: Record<string, unknown> | undefined;
31
- paging?: {
32
- limit?: number | undefined;
33
- offset?: number | undefined;
34
- } | undefined;
35
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"softr", z.ZodObject<{
36
- connectionId: z.ZodString;
37
- entityId: z.ZodString;
38
- instanceId: z.ZodString;
39
- }, z.core.$strip>, z.ZodObject<{
40
- generic_api_key: z.ZodString;
41
- generic_id: z.ZodString;
42
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"softr", z.ZodObject<{
43
- connectionId: z.ZodString;
44
- entityId: z.ZodString;
45
- instanceId: z.ZodString;
46
- }, z.core.$strip>, z.ZodObject<{
47
- generic_api_key: z.ZodString;
48
- generic_id: z.ZodString;
49
- }, z.core.$strip>>]>;
29
+ declare const softrSearchRecords: AppAction<typeof SoftrSearchRecordsInput, typeof SoftrSearchRecordsOutput, typeof softr.credential>;
50
30
  //#endregion
51
31
  export { softrSearchRecords };
52
32
  //# sourceMappingURL=search-records.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"search-records.d.cts","names":[],"sources":["../../src/actions/search-records.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;cAsBvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAKxB,kBAAA,gCAAkB,wBAAA"}
1
+ {"version":3,"file":"search-records.d.cts","names":[],"sources":["../../src/actions/search-records.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;cAsBvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAKxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { softr } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/search-records.d.ts
@@ -24,29 +26,7 @@ declare const SoftrSearchRecordsOutput: z.ZodObject<{
24
26
  offset: z.ZodNullable<z.ZodNumber>;
25
27
  }, z.core.$loose>>;
26
28
  }, z.core.$loose>;
27
- declare const softrSearchRecords: import("@keystrokehq/action").WorkflowActionDefinition<{
28
- table_id: string;
29
- database_id: string;
30
- filter?: Record<string, unknown> | undefined;
31
- paging?: {
32
- limit?: number | undefined;
33
- offset?: number | undefined;
34
- } | undefined;
35
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"softr", z.ZodObject<{
36
- connectionId: z.ZodString;
37
- entityId: z.ZodString;
38
- instanceId: z.ZodString;
39
- }, z.core.$strip>, z.ZodObject<{
40
- generic_api_key: z.ZodString;
41
- generic_id: z.ZodString;
42
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"softr", z.ZodObject<{
43
- connectionId: z.ZodString;
44
- entityId: z.ZodString;
45
- instanceId: z.ZodString;
46
- }, z.core.$strip>, z.ZodObject<{
47
- generic_api_key: z.ZodString;
48
- generic_id: z.ZodString;
49
- }, z.core.$strip>>]>;
29
+ declare const softrSearchRecords: AppAction<typeof SoftrSearchRecordsInput, typeof SoftrSearchRecordsOutput, typeof softr.credential>;
50
30
  //#endregion
51
31
  export { softrSearchRecords };
52
32
  //# sourceMappingURL=search-records.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"search-records.d.mts","names":[],"sources":["../../src/actions/search-records.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;cAsBvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAKxB,kBAAA,gCAAkB,wBAAA"}
1
+ {"version":3,"file":"search-records.d.mts","names":[],"sources":["../../src/actions/search-records.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;cAsBvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAKxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/search-records.ts
@@ -1 +1 @@
1
- {"version":3,"file":"search-records.mjs","names":[],"sources":["../../src/actions/search-records.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SoftrSearchRecordsInput = z.object({\n filter: z.record(z.string(), z.unknown()).describe(\"Filter conditions for searching records. Structure varies based on table schema and filter requirements.\").optional(),\n paging: z.object({\n limit: z.number().int().default(10).describe(\"Maximum number of records to return per request. Must be between 1 and 100. Defaults to 10.\").optional(),\n offset: z.number().int().default(0).describe(\"Number of records to skip. Use for pagination. Defaults to 0.\").optional(),\n}).describe(\"Pagination options for record search.\").optional(),\n table_id: z.string().describe(\"The unique identifier of the table to search records in.\"),\n database_id: z.string().describe(\"The unique identifier of the database containing the table.\"),\n}).describe(\"Request model for searching records in a Softr database table.\");\nconst SoftrSearchRecords_RecordFieldsSchema = z.record(z.string(), z.unknown()).describe(\"Custom fields for a record. Structure varies based on the table schema.\");\nconst SoftrSearchRecords_RecordSchema = z.object({\n id: z.string().describe(\"Unique identifier of the record.\").nullable(),\n fields: SoftrSearchRecords_RecordFieldsSchema.nullable(),\n tableId: z.string().describe(\"Identifier of the table this record belongs to.\").nullable().optional(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the record was created.\").nullable(),\n updatedAt: z.string().describe(\"ISO 8601 timestamp when the record was last updated.\").nullable(),\n}).passthrough().describe(\"Represents a single record from a Softr table.\");\nconst SoftrSearchRecords_SearchMetadataSchema = z.object({\n limit: z.number().int().describe(\"Maximum number of records requested.\").nullable(),\n total: z.number().int().describe(\"Total number of records matching the filter criteria.\").nullable(),\n offset: z.number().int().describe(\"Number of records skipped in this result set.\").nullable(),\n}).passthrough().describe(\"Metadata about the search results and pagination.\");\nexport const SoftrSearchRecordsOutput = z.object({\n data: z.array(SoftrSearchRecords_RecordSchema).describe(\"List of records matching the search criteria.\"),\n metadata: SoftrSearchRecords_SearchMetadataSchema.nullable(),\n}).passthrough().describe(\"Response model containing search results and metadata.\");\n\nexport const softrSearchRecords = action(\"SOFTR_SEARCH_RECORDS\", {\n slug: \"softr-search-records\",\n name: \"Search Records\",\n description: \"Tool to search records in a Softr database table with filtering and pagination. Use when you need to retrieve records from a specific table, optionally filtered by field values and paginated for large result sets.\",\n input: SoftrSearchRecordsInput,\n output: SoftrSearchRecordsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0B,EAAE,OAAO;CAC9C,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS;CACxK,QAAQ,EAAE,OAAO;EACjB,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS;EACrJ,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CACzH,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;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CAAC,SAAS,wDAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"search-records.mjs","names":[],"sources":["../../src/actions/search-records.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { softr } from \"../app\";\n\nexport const SoftrSearchRecordsInput = z.object({\n filter: z.record(z.string(), z.unknown()).describe(\"Filter conditions for searching records. Structure varies based on table schema and filter requirements.\").optional(),\n paging: z.object({\n limit: z.number().int().default(10).describe(\"Maximum number of records to return per request. Must be between 1 and 100. Defaults to 10.\").optional(),\n offset: z.number().int().default(0).describe(\"Number of records to skip. Use for pagination. Defaults to 0.\").optional(),\n}).describe(\"Pagination options for record search.\").optional(),\n table_id: z.string().describe(\"The unique identifier of the table to search records in.\"),\n database_id: z.string().describe(\"The unique identifier of the database containing the table.\"),\n}).describe(\"Request model for searching records in a Softr database table.\");\nconst SoftrSearchRecords_RecordFieldsSchema = z.record(z.string(), z.unknown()).describe(\"Custom fields for a record. Structure varies based on the table schema.\");\nconst SoftrSearchRecords_RecordSchema = z.object({\n id: z.string().describe(\"Unique identifier of the record.\").nullable(),\n fields: SoftrSearchRecords_RecordFieldsSchema.nullable(),\n tableId: z.string().describe(\"Identifier of the table this record belongs to.\").nullable().optional(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the record was created.\").nullable(),\n updatedAt: z.string().describe(\"ISO 8601 timestamp when the record was last updated.\").nullable(),\n}).passthrough().describe(\"Represents a single record from a Softr table.\");\nconst SoftrSearchRecords_SearchMetadataSchema = z.object({\n limit: z.number().int().describe(\"Maximum number of records requested.\").nullable(),\n total: z.number().int().describe(\"Total number of records matching the filter criteria.\").nullable(),\n offset: z.number().int().describe(\"Number of records skipped in this result set.\").nullable(),\n}).passthrough().describe(\"Metadata about the search results and pagination.\");\nexport const SoftrSearchRecordsOutput = z.object({\n data: z.array(SoftrSearchRecords_RecordSchema).describe(\"List of records matching the search criteria.\"),\n metadata: SoftrSearchRecords_SearchMetadataSchema.nullable(),\n}).passthrough().describe(\"Response model containing search results and metadata.\");\n\nexport const softrSearchRecords: AppAction<\n typeof SoftrSearchRecordsInput,\n typeof SoftrSearchRecordsOutput,\n typeof softr.credential\n> = action(\"SOFTR_SEARCH_RECORDS\", {\n slug: \"softr-search-records\",\n name: \"Search Records\",\n description: \"Tool to search records in a Softr database table with filtering and pagination. Use when you need to retrieve records from a specific table, optionally filtered by field values and paginated for large result sets.\",\n input: SoftrSearchRecordsInput,\n output: SoftrSearchRecordsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,0BAA0B,EAAE,OAAO;CAC9C,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS;CACxK,QAAQ,EAAE,OAAO;EACjB,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS;EACrJ,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CACzH,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC5D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;CACxF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;AAChG,CAAC,CAAC,CAAC,SAAS,gEAAgE;AAC5E,MAAM,wCAAwC,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yEAAyE;AAClK,MAAM,kCAAkC,EAAE,OAAO;CAC/C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACrE,QAAQ,sCAAsC,SAAS;CACvD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC3F,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;AAClG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAAgD;AAC1E,MAAM,0CAA0C,EAAE,OAAO;CACvD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAClF,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CACnG,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAM7E,MAAa,qBAIT,OAAO,wBAAwB;CACjC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAdsC,EAAE,OAAO;EAC/C,MAAM,EAAE,MAAM,+BAA+B,CAAC,CAAC,SAAS,+CAA+C;EACvG,UAAU,wCAAwC,SAAS;CAC7D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wDAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/update-database.ts
@@ -1 +1 @@
1
- {"version":3,"file":"update-database.cjs","names":["z","action"],"sources":["../../src/actions/update-database.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SoftrUpdateDatabaseInput = z.object({\n name: z.string().describe(\"The new name for the database\").optional(),\n database_id: z.string().describe(\"The unique identifier of the database to update\"),\n description: z.string().describe(\"The new description for the database\").optional(),\n}).describe(\"Request model for updating a database's name and/or description.\");\nconst SoftrUpdateDatabase_DatabaseSchema = z.object({\n id: z.string().describe(\"Unique identifier of the database\").nullable(),\n name: z.string().describe(\"Name of the database\").nullable(),\n createdAt: z.string().describe(\"Timestamp when the database was created\").nullable(),\n updatedAt: z.string().describe(\"Timestamp when the database was last updated\").nullable(),\n description: z.string().describe(\"Description of the database\").nullable().optional(),\n workspaceId: z.string().describe(\"ID of the workspace this database belongs to\").nullable(),\n}).passthrough().describe(\"Database object model\");\nexport const SoftrUpdateDatabaseOutput = z.object({\n data: SoftrUpdateDatabase_DatabaseSchema.nullable(),\n}).passthrough().describe(\"Response model for update database action\");\n\nexport const softrUpdateDatabase = action(\"SOFTR_UPDATE_DATABASE\", {\n slug: \"softr-update-database\",\n name: \"Update Database\",\n description: \"Tool to update an existing database's name and/or description. Use when you need to modify database metadata after creation.\",\n input: SoftrUpdateDatabaseInput,\n output: SoftrUpdateDatabaseOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACpE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;CAClF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;AACpF,CAAC,CAAC,CAAC,SAAS,kEAAkE;AAC9E,MAAM,qCAAqCA,IAAAA,EAAE,OAAO;CAClD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACtE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC3D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACnF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACxF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uBAAuB;AACjD,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,MAAM,mCAAmC,SAAS,EACpD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AAErE,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"update-database.cjs","names":["z","action"],"sources":["../../src/actions/update-database.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { softr } from \"../app\";\n\nexport const SoftrUpdateDatabaseInput = z.object({\n name: z.string().describe(\"The new name for the database\").optional(),\n database_id: z.string().describe(\"The unique identifier of the database to update\"),\n description: z.string().describe(\"The new description for the database\").optional(),\n}).describe(\"Request model for updating a database's name and/or description.\");\nconst SoftrUpdateDatabase_DatabaseSchema = z.object({\n id: z.string().describe(\"Unique identifier of the database\").nullable(),\n name: z.string().describe(\"Name of the database\").nullable(),\n createdAt: z.string().describe(\"Timestamp when the database was created\").nullable(),\n updatedAt: z.string().describe(\"Timestamp when the database was last updated\").nullable(),\n description: z.string().describe(\"Description of the database\").nullable().optional(),\n workspaceId: z.string().describe(\"ID of the workspace this database belongs to\").nullable(),\n}).passthrough().describe(\"Database object model\");\nexport const SoftrUpdateDatabaseOutput = z.object({\n data: SoftrUpdateDatabase_DatabaseSchema.nullable(),\n}).passthrough().describe(\"Response model for update database action\");\n\nexport const softrUpdateDatabase: AppAction<\n typeof SoftrUpdateDatabaseInput,\n typeof SoftrUpdateDatabaseOutput,\n typeof softr.credential\n> = action(\"SOFTR_UPDATE_DATABASE\", {\n slug: \"softr-update-database\",\n name: \"Update Database\",\n description: \"Tool to update an existing database's name and/or description. Use when you need to modify database metadata after creation.\",\n input: SoftrUpdateDatabaseInput,\n output: SoftrUpdateDatabaseOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACpE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;CAClF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;AACpF,CAAC,CAAC,CAAC,SAAS,kEAAkE;AAC9E,MAAM,qCAAqCA,IAAAA,EAAE,OAAO;CAClD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACtE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC3D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACnF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACxF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uBAAuB;AACjD,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,MAAM,mCAAmC,SAAS,EACpD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AAErE,MAAa,sBAITC,eAAAA,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { softr } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/update-database.d.ts
@@ -16,25 +18,7 @@ declare const SoftrUpdateDatabaseOutput: z.ZodObject<{
16
18
  workspaceId: z.ZodNullable<z.ZodString>;
17
19
  }, z.core.$loose>>;
18
20
  }, z.core.$loose>;
19
- declare const softrUpdateDatabase: import("@keystrokehq/action").WorkflowActionDefinition<{
20
- database_id: string;
21
- name?: string | undefined;
22
- description?: string | undefined;
23
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"softr", z.ZodObject<{
24
- connectionId: z.ZodString;
25
- entityId: z.ZodString;
26
- instanceId: z.ZodString;
27
- }, z.core.$strip>, z.ZodObject<{
28
- generic_api_key: z.ZodString;
29
- generic_id: z.ZodString;
30
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"softr", z.ZodObject<{
31
- connectionId: z.ZodString;
32
- entityId: z.ZodString;
33
- instanceId: z.ZodString;
34
- }, z.core.$strip>, z.ZodObject<{
35
- generic_api_key: z.ZodString;
36
- generic_id: z.ZodString;
37
- }, z.core.$strip>>]>;
21
+ declare const softrUpdateDatabase: AppAction<typeof SoftrUpdateDatabaseInput, typeof SoftrUpdateDatabaseOutput, typeof softr.credential>;
38
22
  //#endregion
39
23
  export { softrUpdateDatabase };
40
24
  //# sourceMappingURL=update-database.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-database.d.cts","names":[],"sources":["../../src/actions/update-database.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;cAaxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;cAIzB,mBAAA,gCAAmB,wBAAA"}
1
+ {"version":3,"file":"update-database.d.cts","names":[],"sources":["../../src/actions/update-database.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;cAaxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;cAIzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { softr } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/update-database.d.ts
@@ -16,25 +18,7 @@ declare const SoftrUpdateDatabaseOutput: z.ZodObject<{
16
18
  workspaceId: z.ZodNullable<z.ZodString>;
17
19
  }, z.core.$loose>>;
18
20
  }, z.core.$loose>;
19
- declare const softrUpdateDatabase: import("@keystrokehq/action").WorkflowActionDefinition<{
20
- database_id: string;
21
- name?: string | undefined;
22
- description?: string | undefined;
23
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"softr", z.ZodObject<{
24
- connectionId: z.ZodString;
25
- entityId: z.ZodString;
26
- instanceId: z.ZodString;
27
- }, z.core.$strip>, z.ZodObject<{
28
- generic_api_key: z.ZodString;
29
- generic_id: z.ZodString;
30
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"softr", z.ZodObject<{
31
- connectionId: z.ZodString;
32
- entityId: z.ZodString;
33
- instanceId: z.ZodString;
34
- }, z.core.$strip>, z.ZodObject<{
35
- generic_api_key: z.ZodString;
36
- generic_id: z.ZodString;
37
- }, z.core.$strip>>]>;
21
+ declare const softrUpdateDatabase: AppAction<typeof SoftrUpdateDatabaseInput, typeof SoftrUpdateDatabaseOutput, typeof softr.credential>;
38
22
  //#endregion
39
23
  export { softrUpdateDatabase };
40
24
  //# sourceMappingURL=update-database.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-database.d.mts","names":[],"sources":["../../src/actions/update-database.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;cAaxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;cAIzB,mBAAA,gCAAmB,wBAAA"}
1
+ {"version":3,"file":"update-database.d.mts","names":[],"sources":["../../src/actions/update-database.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;cAaxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;cAIzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/update-database.ts
@@ -1 +1 @@
1
- {"version":3,"file":"update-database.mjs","names":[],"sources":["../../src/actions/update-database.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SoftrUpdateDatabaseInput = z.object({\n name: z.string().describe(\"The new name for the database\").optional(),\n database_id: z.string().describe(\"The unique identifier of the database to update\"),\n description: z.string().describe(\"The new description for the database\").optional(),\n}).describe(\"Request model for updating a database's name and/or description.\");\nconst SoftrUpdateDatabase_DatabaseSchema = z.object({\n id: z.string().describe(\"Unique identifier of the database\").nullable(),\n name: z.string().describe(\"Name of the database\").nullable(),\n createdAt: z.string().describe(\"Timestamp when the database was created\").nullable(),\n updatedAt: z.string().describe(\"Timestamp when the database was last updated\").nullable(),\n description: z.string().describe(\"Description of the database\").nullable().optional(),\n workspaceId: z.string().describe(\"ID of the workspace this database belongs to\").nullable(),\n}).passthrough().describe(\"Database object model\");\nexport const SoftrUpdateDatabaseOutput = z.object({\n data: SoftrUpdateDatabase_DatabaseSchema.nullable(),\n}).passthrough().describe(\"Response model for update database action\");\n\nexport const softrUpdateDatabase = action(\"SOFTR_UPDATE_DATABASE\", {\n slug: \"softr-update-database\",\n name: \"Update Database\",\n description: \"Tool to update an existing database's name and/or description. Use when you need to modify database metadata after creation.\",\n input: SoftrUpdateDatabaseInput,\n output: SoftrUpdateDatabaseOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACpE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;CAClF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;AACpF,CAAC,CAAC,CAAC,SAAS,kEAAkE;AAC9E,MAAM,qCAAqC,EAAE,OAAO;CAClD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACtE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC3D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACnF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACxF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uBAAuB;AAKjD,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATuC,EAAE,OAAO,EAChD,MAAM,mCAAmC,SAAS,EACpD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"update-database.mjs","names":[],"sources":["../../src/actions/update-database.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { softr } from \"../app\";\n\nexport const SoftrUpdateDatabaseInput = z.object({\n name: z.string().describe(\"The new name for the database\").optional(),\n database_id: z.string().describe(\"The unique identifier of the database to update\"),\n description: z.string().describe(\"The new description for the database\").optional(),\n}).describe(\"Request model for updating a database's name and/or description.\");\nconst SoftrUpdateDatabase_DatabaseSchema = z.object({\n id: z.string().describe(\"Unique identifier of the database\").nullable(),\n name: z.string().describe(\"Name of the database\").nullable(),\n createdAt: z.string().describe(\"Timestamp when the database was created\").nullable(),\n updatedAt: z.string().describe(\"Timestamp when the database was last updated\").nullable(),\n description: z.string().describe(\"Description of the database\").nullable().optional(),\n workspaceId: z.string().describe(\"ID of the workspace this database belongs to\").nullable(),\n}).passthrough().describe(\"Database object model\");\nexport const SoftrUpdateDatabaseOutput = z.object({\n data: SoftrUpdateDatabase_DatabaseSchema.nullable(),\n}).passthrough().describe(\"Response model for update database action\");\n\nexport const softrUpdateDatabase: AppAction<\n typeof SoftrUpdateDatabaseInput,\n typeof SoftrUpdateDatabaseOutput,\n typeof softr.credential\n> = action(\"SOFTR_UPDATE_DATABASE\", {\n slug: \"softr-update-database\",\n name: \"Update Database\",\n description: \"Tool to update an existing database's name and/or description. Use when you need to modify database metadata after creation.\",\n input: SoftrUpdateDatabaseInput,\n output: SoftrUpdateDatabaseOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACpE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;CAClF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;AACpF,CAAC,CAAC,CAAC,SAAS,kEAAkE;AAC9E,MAAM,qCAAqC,EAAE,OAAO;CAClD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACtE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC3D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACnF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACxF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uBAAuB;AAKjD,MAAa,sBAIT,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbuC,EAAE,OAAO,EAChD,MAAM,mCAAmC,SAAS,EACpD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAWhB;AACV,CAAC"}