@bubblelab/bubble-core 0.1.0

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 (275) hide show
  1. package/LICENSE.txt +202 -0
  2. package/dist/bubble-bundle.d.ts +2021 -0
  3. package/dist/bubble-factory.d.ts +161 -0
  4. package/dist/bubble-factory.d.ts.map +1 -0
  5. package/dist/bubble-factory.js +426 -0
  6. package/dist/bubble-factory.js.map +1 -0
  7. package/dist/bubble-flow/bubble-flow-class.d.ts +19 -0
  8. package/dist/bubble-flow/bubble-flow-class.d.ts.map +1 -0
  9. package/dist/bubble-flow/bubble-flow-class.js +23 -0
  10. package/dist/bubble-flow/bubble-flow-class.js.map +1 -0
  11. package/dist/bubble-flow/sample/data-analyst-flow.d.ts +15 -0
  12. package/dist/bubble-flow/sample/data-analyst-flow.d.ts.map +1 -0
  13. package/dist/bubble-flow/sample/data-analyst-flow.js +63 -0
  14. package/dist/bubble-flow/sample/data-analyst-flow.js.map +1 -0
  15. package/dist/bubble-flow/sample/error-ts.d.ts +23 -0
  16. package/dist/bubble-flow/sample/error-ts.d.ts.map +1 -0
  17. package/dist/bubble-flow/sample/error-ts.js +31 -0
  18. package/dist/bubble-flow/sample/error-ts.js.map +1 -0
  19. package/dist/bubble-flow/sample/sanitytest.d.ts +10 -0
  20. package/dist/bubble-flow/sample/sanitytest.d.ts.map +1 -0
  21. package/dist/bubble-flow/sample/sanitytest.js +13 -0
  22. package/dist/bubble-flow/sample/sanitytest.js.map +1 -0
  23. package/dist/bubble-flow/sample/simple-webhook-2.d.ts +19 -0
  24. package/dist/bubble-flow/sample/simple-webhook-2.d.ts.map +1 -0
  25. package/dist/bubble-flow/sample/simple-webhook-2.js +23 -0
  26. package/dist/bubble-flow/sample/simple-webhook-2.js.map +1 -0
  27. package/dist/bubble-flow/sample/simple-webhook.d.ts +10 -0
  28. package/dist/bubble-flow/sample/simple-webhook.d.ts.map +1 -0
  29. package/dist/bubble-flow/sample/simple-webhook.js +18 -0
  30. package/dist/bubble-flow/sample/simple-webhook.js.map +1 -0
  31. package/dist/bubble-flow/sample/simplified-data-analysis.flow.d.ts +29 -0
  32. package/dist/bubble-flow/sample/simplified-data-analysis.flow.d.ts.map +1 -0
  33. package/dist/bubble-flow/sample/simplified-data-analysis.flow.js +150 -0
  34. package/dist/bubble-flow/sample/simplified-data-analysis.flow.js.map +1 -0
  35. package/dist/bubble-flow/sample/slack-v0.1.d.ts +10 -0
  36. package/dist/bubble-flow/sample/slack-v0.1.d.ts.map +1 -0
  37. package/dist/bubble-flow/sample/slack-v0.1.js +59 -0
  38. package/dist/bubble-flow/sample/slack-v0.1.js.map +1 -0
  39. package/dist/bubble-flow/sample/slackagenttest.d.ts +10 -0
  40. package/dist/bubble-flow/sample/slackagenttest.d.ts.map +1 -0
  41. package/dist/bubble-flow/sample/slackagenttest.js +59 -0
  42. package/dist/bubble-flow/sample/slackagenttest.js.map +1 -0
  43. package/dist/bubble-trigger/index.d.ts +2 -0
  44. package/dist/bubble-trigger/index.d.ts.map +1 -0
  45. package/dist/bubble-trigger/index.js +2 -0
  46. package/dist/bubble-trigger/index.js.map +1 -0
  47. package/dist/bubble-trigger/types.d.ts +87 -0
  48. package/dist/bubble-trigger/types.d.ts.map +1 -0
  49. package/dist/bubble-trigger/types.js +14 -0
  50. package/dist/bubble-trigger/types.js.map +1 -0
  51. package/dist/bubbles/service-bubble/ai-agent.d.ts +428 -0
  52. package/dist/bubbles/service-bubble/ai-agent.d.ts.map +1 -0
  53. package/dist/bubbles/service-bubble/ai-agent.js +881 -0
  54. package/dist/bubbles/service-bubble/ai-agent.js.map +1 -0
  55. package/dist/bubbles/service-bubble/gmail.d.ts +3073 -0
  56. package/dist/bubbles/service-bubble/gmail.d.ts.map +1 -0
  57. package/dist/bubbles/service-bubble/gmail.js +908 -0
  58. package/dist/bubbles/service-bubble/gmail.js.map +1 -0
  59. package/dist/bubbles/service-bubble/google-calendar.d.ts +3377 -0
  60. package/dist/bubbles/service-bubble/google-calendar.d.ts.map +1 -0
  61. package/dist/bubbles/service-bubble/google-calendar.js +527 -0
  62. package/dist/bubbles/service-bubble/google-calendar.js.map +1 -0
  63. package/dist/bubbles/service-bubble/google-drive.d.ts +1152 -0
  64. package/dist/bubbles/service-bubble/google-drive.d.ts.map +1 -0
  65. package/dist/bubbles/service-bubble/google-drive.js +943 -0
  66. package/dist/bubbles/service-bubble/google-drive.js.map +1 -0
  67. package/dist/bubbles/service-bubble/google-sheets.d.ts +1811 -0
  68. package/dist/bubbles/service-bubble/google-sheets.d.ts.map +1 -0
  69. package/dist/bubbles/service-bubble/google-sheets.js +904 -0
  70. package/dist/bubbles/service-bubble/google-sheets.js.map +1 -0
  71. package/dist/bubbles/service-bubble/hello-world.d.ts +74 -0
  72. package/dist/bubbles/service-bubble/hello-world.d.ts.map +1 -0
  73. package/dist/bubbles/service-bubble/hello-world.js +67 -0
  74. package/dist/bubbles/service-bubble/hello-world.js.map +1 -0
  75. package/dist/bubbles/service-bubble/http.d.ts +134 -0
  76. package/dist/bubbles/service-bubble/http.d.ts.map +1 -0
  77. package/dist/bubbles/service-bubble/http.js +184 -0
  78. package/dist/bubbles/service-bubble/http.js.map +1 -0
  79. package/dist/bubbles/service-bubble/postgresql.d.ts +180 -0
  80. package/dist/bubbles/service-bubble/postgresql.d.ts.map +1 -0
  81. package/dist/bubbles/service-bubble/postgresql.js +448 -0
  82. package/dist/bubbles/service-bubble/postgresql.js.map +1 -0
  83. package/dist/bubbles/service-bubble/resend.d.ts +301 -0
  84. package/dist/bubbles/service-bubble/resend.d.ts.map +1 -0
  85. package/dist/bubbles/service-bubble/resend.js +253 -0
  86. package/dist/bubbles/service-bubble/resend.js.map +1 -0
  87. package/dist/bubbles/service-bubble/slack.d.ts +5869 -0
  88. package/dist/bubbles/service-bubble/slack.d.ts.map +1 -0
  89. package/dist/bubbles/service-bubble/slack.js +1536 -0
  90. package/dist/bubbles/service-bubble/slack.js.map +1 -0
  91. package/dist/bubbles/service-bubble/storage.d.ts +571 -0
  92. package/dist/bubbles/service-bubble/storage.d.ts.map +1 -0
  93. package/dist/bubbles/service-bubble/storage.js +504 -0
  94. package/dist/bubbles/service-bubble/storage.js.map +1 -0
  95. package/dist/bubbles/tool-bubble/bubbleflow-validation-tool.d.ts +308 -0
  96. package/dist/bubbles/tool-bubble/bubbleflow-validation-tool.d.ts.map +1 -0
  97. package/dist/bubbles/tool-bubble/bubbleflow-validation-tool.js +285 -0
  98. package/dist/bubbles/tool-bubble/bubbleflow-validation-tool.js.map +1 -0
  99. package/dist/bubbles/tool-bubble/chart-js-tool.d.ts +416 -0
  100. package/dist/bubbles/tool-bubble/chart-js-tool.d.ts.map +1 -0
  101. package/dist/bubbles/tool-bubble/chart-js-tool.js +570 -0
  102. package/dist/bubbles/tool-bubble/chart-js-tool.js.map +1 -0
  103. package/dist/bubbles/tool-bubble/get-bubble-details-tool.d.ts +99 -0
  104. package/dist/bubbles/tool-bubble/get-bubble-details-tool.d.ts.map +1 -0
  105. package/dist/bubbles/tool-bubble/get-bubble-details-tool.js +645 -0
  106. package/dist/bubbles/tool-bubble/get-bubble-details-tool.js.map +1 -0
  107. package/dist/bubbles/tool-bubble/list-bubbles-tool.d.ts +112 -0
  108. package/dist/bubbles/tool-bubble/list-bubbles-tool.d.ts.map +1 -0
  109. package/dist/bubbles/tool-bubble/list-bubbles-tool.js +82 -0
  110. package/dist/bubbles/tool-bubble/list-bubbles-tool.js.map +1 -0
  111. package/dist/bubbles/tool-bubble/reddit-scrape-tool.d.ts +413 -0
  112. package/dist/bubbles/tool-bubble/reddit-scrape-tool.d.ts.map +1 -0
  113. package/dist/bubbles/tool-bubble/reddit-scrape-tool.js +327 -0
  114. package/dist/bubbles/tool-bubble/reddit-scrape-tool.js.map +1 -0
  115. package/dist/bubbles/tool-bubble/research-agent-tool.d.ts +122 -0
  116. package/dist/bubbles/tool-bubble/research-agent-tool.d.ts.map +1 -0
  117. package/dist/bubbles/tool-bubble/research-agent-tool.js +343 -0
  118. package/dist/bubbles/tool-bubble/research-agent-tool.js.map +1 -0
  119. package/dist/bubbles/tool-bubble/sql-query-tool.d.ts +131 -0
  120. package/dist/bubbles/tool-bubble/sql-query-tool.d.ts.map +1 -0
  121. package/dist/bubbles/tool-bubble/sql-query-tool.js +147 -0
  122. package/dist/bubbles/tool-bubble/sql-query-tool.js.map +1 -0
  123. package/dist/bubbles/tool-bubble/tool-template.d.ts +257 -0
  124. package/dist/bubbles/tool-bubble/tool-template.d.ts.map +1 -0
  125. package/dist/bubbles/tool-bubble/tool-template.js +238 -0
  126. package/dist/bubbles/tool-bubble/tool-template.js.map +1 -0
  127. package/dist/bubbles/tool-bubble/virtual-file-editor-example.d.ts +8 -0
  128. package/dist/bubbles/tool-bubble/virtual-file-editor-example.d.ts.map +1 -0
  129. package/dist/bubbles/tool-bubble/virtual-file-editor-example.js +65 -0
  130. package/dist/bubbles/tool-bubble/virtual-file-editor-example.js.map +1 -0
  131. package/dist/bubbles/tool-bubble/virtual-file-editor.tool.d.ts +125 -0
  132. package/dist/bubbles/tool-bubble/virtual-file-editor.tool.d.ts.map +1 -0
  133. package/dist/bubbles/tool-bubble/virtual-file-editor.tool.js +169 -0
  134. package/dist/bubbles/tool-bubble/virtual-file-editor.tool.js.map +1 -0
  135. package/dist/bubbles/tool-bubble/web-crawl-tool.d.ts +218 -0
  136. package/dist/bubbles/tool-bubble/web-crawl-tool.d.ts.map +1 -0
  137. package/dist/bubbles/tool-bubble/web-crawl-tool.js +255 -0
  138. package/dist/bubbles/tool-bubble/web-crawl-tool.js.map +1 -0
  139. package/dist/bubbles/tool-bubble/web-extract-tool.d.ts +134 -0
  140. package/dist/bubbles/tool-bubble/web-extract-tool.d.ts.map +1 -0
  141. package/dist/bubbles/tool-bubble/web-extract-tool.js +175 -0
  142. package/dist/bubbles/tool-bubble/web-extract-tool.js.map +1 -0
  143. package/dist/bubbles/tool-bubble/web-scrape-tool.d.ts +228 -0
  144. package/dist/bubbles/tool-bubble/web-scrape-tool.d.ts.map +1 -0
  145. package/dist/bubbles/tool-bubble/web-scrape-tool.js +214 -0
  146. package/dist/bubbles/tool-bubble/web-scrape-tool.js.map +1 -0
  147. package/dist/bubbles/tool-bubble/web-search-tool.d.ts +134 -0
  148. package/dist/bubbles/tool-bubble/web-search-tool.d.ts.map +1 -0
  149. package/dist/bubbles/tool-bubble/web-search-tool.js +155 -0
  150. package/dist/bubbles/tool-bubble/web-search-tool.js.map +1 -0
  151. package/dist/bubbles/workflow-bubble/bubbleflow-generator.workflow.d.ts +114 -0
  152. package/dist/bubbles/workflow-bubble/bubbleflow-generator.workflow.d.ts.map +1 -0
  153. package/dist/bubbles/workflow-bubble/bubbleflow-generator.workflow.js +777 -0
  154. package/dist/bubbles/workflow-bubble/bubbleflow-generator.workflow.js.map +1 -0
  155. package/dist/bubbles/workflow-bubble/bubblscript-generateor.workflow.d.ts +97 -0
  156. package/dist/bubbles/workflow-bubble/bubblscript-generateor.workflow.d.ts.map +1 -0
  157. package/dist/bubbles/workflow-bubble/bubblscript-generateor.workflow.js +327 -0
  158. package/dist/bubbles/workflow-bubble/bubblscript-generateor.workflow.js.map +1 -0
  159. package/dist/bubbles/workflow-bubble/database-analyzer.workflow.d.ts +303 -0
  160. package/dist/bubbles/workflow-bubble/database-analyzer.workflow.d.ts.map +1 -0
  161. package/dist/bubbles/workflow-bubble/database-analyzer.workflow.js +297 -0
  162. package/dist/bubbles/workflow-bubble/database-analyzer.workflow.js.map +1 -0
  163. package/dist/bubbles/workflow-bubble/file-editor-agent.workflow.d.ts +157 -0
  164. package/dist/bubbles/workflow-bubble/file-editor-agent.workflow.d.ts.map +1 -0
  165. package/dist/bubbles/workflow-bubble/file-editor-agent.workflow.js +310 -0
  166. package/dist/bubbles/workflow-bubble/file-editor-agent.workflow.js.map +1 -0
  167. package/dist/bubbles/workflow-bubble/generate-document.workflow.d.ts +543 -0
  168. package/dist/bubbles/workflow-bubble/generate-document.workflow.d.ts.map +1 -0
  169. package/dist/bubbles/workflow-bubble/generate-document.workflow.js +628 -0
  170. package/dist/bubbles/workflow-bubble/generate-document.workflow.js.map +1 -0
  171. package/dist/bubbles/workflow-bubble/parse-document.workflow.d.ts +679 -0
  172. package/dist/bubbles/workflow-bubble/parse-document.workflow.d.ts.map +1 -0
  173. package/dist/bubbles/workflow-bubble/parse-document.workflow.js +604 -0
  174. package/dist/bubbles/workflow-bubble/parse-document.workflow.js.map +1 -0
  175. package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.d.ts +1011 -0
  176. package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.d.ts.map +1 -0
  177. package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.js +841 -0
  178. package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.js.map +1 -0
  179. package/dist/bubbles/workflow-bubble/pdf-ocr.workflow.d.ts +883 -0
  180. package/dist/bubbles/workflow-bubble/pdf-ocr.workflow.d.ts.map +1 -0
  181. package/dist/bubbles/workflow-bubble/pdf-ocr.workflow.js +781 -0
  182. package/dist/bubbles/workflow-bubble/pdf-ocr.workflow.js.map +1 -0
  183. package/dist/bubbles/workflow-bubble/slack-data-assistant.workflow.d.ts +300 -0
  184. package/dist/bubbles/workflow-bubble/slack-data-assistant.workflow.d.ts.map +1 -0
  185. package/dist/bubbles/workflow-bubble/slack-data-assistant.workflow.js +508 -0
  186. package/dist/bubbles/workflow-bubble/slack-data-assistant.workflow.js.map +1 -0
  187. package/dist/bubbles/workflow-bubble/slack-formatter-agent.d.ts +731 -0
  188. package/dist/bubbles/workflow-bubble/slack-formatter-agent.d.ts.map +1 -0
  189. package/dist/bubbles/workflow-bubble/slack-formatter-agent.js +690 -0
  190. package/dist/bubbles/workflow-bubble/slack-formatter-agent.js.map +1 -0
  191. package/dist/bubbles/workflow-bubble/slack-notifier.workflow.d.ts +401 -0
  192. package/dist/bubbles/workflow-bubble/slack-notifier.workflow.d.ts.map +1 -0
  193. package/dist/bubbles/workflow-bubble/slack-notifier.workflow.js +382 -0
  194. package/dist/bubbles/workflow-bubble/slack-notifier.workflow.js.map +1 -0
  195. package/dist/bubbles/workflow-bubble/workflow-template.d.ts +144 -0
  196. package/dist/bubbles/workflow-bubble/workflow-template.d.ts.map +1 -0
  197. package/dist/bubbles/workflow-bubble/workflow-template.js +124 -0
  198. package/dist/bubbles/workflow-bubble/workflow-template.js.map +1 -0
  199. package/dist/index.d.ts +46 -0
  200. package/dist/index.d.ts.map +1 -0
  201. package/dist/index.js +53 -0
  202. package/dist/index.js.map +1 -0
  203. package/dist/logging/BubbleLogger.d.ts +146 -0
  204. package/dist/logging/BubbleLogger.d.ts.map +1 -0
  205. package/dist/logging/BubbleLogger.js +472 -0
  206. package/dist/logging/BubbleLogger.js.map +1 -0
  207. package/dist/logging/StreamingBubbleLogger.d.ts +85 -0
  208. package/dist/logging/StreamingBubbleLogger.d.ts.map +1 -0
  209. package/dist/logging/StreamingBubbleLogger.js +340 -0
  210. package/dist/logging/StreamingBubbleLogger.js.map +1 -0
  211. package/dist/types/ai-models.d.ts +4 -0
  212. package/dist/types/ai-models.d.ts.map +1 -0
  213. package/dist/types/ai-models.js +14 -0
  214. package/dist/types/ai-models.js.map +1 -0
  215. package/dist/types/available-tools.d.ts +4 -0
  216. package/dist/types/available-tools.d.ts.map +1 -0
  217. package/dist/types/available-tools.js +19 -0
  218. package/dist/types/available-tools.js.map +1 -0
  219. package/dist/types/base-bubble-class.d.ts +47 -0
  220. package/dist/types/base-bubble-class.d.ts.map +1 -0
  221. package/dist/types/base-bubble-class.js +212 -0
  222. package/dist/types/base-bubble-class.js.map +1 -0
  223. package/dist/types/bubble-errors.d.ts +44 -0
  224. package/dist/types/bubble-errors.d.ts.map +1 -0
  225. package/dist/types/bubble-errors.js +51 -0
  226. package/dist/types/bubble-errors.js.map +1 -0
  227. package/dist/types/bubble.d.ts +73 -0
  228. package/dist/types/bubble.d.ts.map +1 -0
  229. package/dist/types/bubble.js +2 -0
  230. package/dist/types/bubble.js.map +1 -0
  231. package/dist/types/credentials.d.ts +6 -0
  232. package/dist/types/credentials.d.ts.map +1 -0
  233. package/dist/types/credentials.js +6 -0
  234. package/dist/types/credentials.js.map +1 -0
  235. package/dist/types/service-bubble-class.d.ts +31 -0
  236. package/dist/types/service-bubble-class.d.ts.map +1 -0
  237. package/dist/types/service-bubble-class.js +36 -0
  238. package/dist/types/service-bubble-class.js.map +1 -0
  239. package/dist/types/streaming-events.d.ts +18 -0
  240. package/dist/types/streaming-events.d.ts.map +1 -0
  241. package/dist/types/streaming-events.js +5 -0
  242. package/dist/types/streaming-events.js.map +1 -0
  243. package/dist/types/tool-bubble-class.d.ts +19 -0
  244. package/dist/types/tool-bubble-class.d.ts.map +1 -0
  245. package/dist/types/tool-bubble-class.js +48 -0
  246. package/dist/types/tool-bubble-class.js.map +1 -0
  247. package/dist/types/workflow-bubble-class.d.ts +25 -0
  248. package/dist/types/workflow-bubble-class.d.ts.map +1 -0
  249. package/dist/types/workflow-bubble-class.js +30 -0
  250. package/dist/types/workflow-bubble-class.js.map +1 -0
  251. package/dist/utils/bubbleflow-parser.d.ts +32 -0
  252. package/dist/utils/bubbleflow-parser.d.ts.map +1 -0
  253. package/dist/utils/bubbleflow-parser.js +332 -0
  254. package/dist/utils/bubbleflow-parser.js.map +1 -0
  255. package/dist/utils/bubbleflow-validation.d.ts +9 -0
  256. package/dist/utils/bubbleflow-validation.d.ts.map +1 -0
  257. package/dist/utils/bubbleflow-validation.js +116 -0
  258. package/dist/utils/bubbleflow-validation.js.map +1 -0
  259. package/dist/utils/json-parsing.d.ts +20 -0
  260. package/dist/utils/json-parsing.d.ts.map +1 -0
  261. package/dist/utils/json-parsing.js +394 -0
  262. package/dist/utils/json-parsing.js.map +1 -0
  263. package/dist/utils/mock-data-generator.d.ts +43 -0
  264. package/dist/utils/mock-data-generator.d.ts.map +1 -0
  265. package/dist/utils/mock-data-generator.js +312 -0
  266. package/dist/utils/mock-data-generator.js.map +1 -0
  267. package/dist/utils/param-helper.d.ts +2 -0
  268. package/dist/utils/param-helper.d.ts.map +1 -0
  269. package/dist/utils/param-helper.js +5 -0
  270. package/dist/utils/param-helper.js.map +1 -0
  271. package/dist/utils/source-bubble-parser.d.ts +31 -0
  272. package/dist/utils/source-bubble-parser.d.ts.map +1 -0
  273. package/dist/utils/source-bubble-parser.js +231 -0
  274. package/dist/utils/source-bubble-parser.js.map +1 -0
  275. package/package.json +63 -0
@@ -0,0 +1,1811 @@
1
+ import { z } from 'zod';
2
+ import { ServiceBubble } from '../../types/service-bubble-class.js';
3
+ import type { BubbleContext } from '../../types/bubble.js';
4
+ import { CredentialType } from '@bubblelab/shared-schemas';
5
+ declare const GoogleSheetsParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{
6
+ operation: z.ZodLiteral<"read_values">;
7
+ spreadsheet_id: z.ZodString;
8
+ range: z.ZodString;
9
+ major_dimension: z.ZodDefault<z.ZodOptional<z.ZodEnum<["ROWS", "COLUMNS"]>>>;
10
+ value_render_option: z.ZodDefault<z.ZodOptional<z.ZodEnum<["FORMATTED_VALUE", "UNFORMATTED_VALUE", "FORMULA"]>>>;
11
+ date_time_render_option: z.ZodDefault<z.ZodOptional<z.ZodEnum<["SERIAL_NUMBER", "FORMATTED_STRING"]>>>;
12
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
13
+ }, "strip", z.ZodTypeAny, {
14
+ range: string;
15
+ operation: "read_values";
16
+ spreadsheet_id: string;
17
+ major_dimension: "ROWS" | "COLUMNS";
18
+ value_render_option: "FORMATTED_VALUE" | "UNFORMATTED_VALUE" | "FORMULA";
19
+ date_time_render_option: "SERIAL_NUMBER" | "FORMATTED_STRING";
20
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
21
+ }, {
22
+ range: string;
23
+ operation: "read_values";
24
+ spreadsheet_id: string;
25
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
26
+ major_dimension?: "ROWS" | "COLUMNS" | undefined;
27
+ value_render_option?: "FORMATTED_VALUE" | "UNFORMATTED_VALUE" | "FORMULA" | undefined;
28
+ date_time_render_option?: "SERIAL_NUMBER" | "FORMATTED_STRING" | undefined;
29
+ }>, z.ZodObject<{
30
+ operation: z.ZodLiteral<"write_values">;
31
+ spreadsheet_id: z.ZodString;
32
+ range: z.ZodString;
33
+ values: z.ZodArray<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>, "many">, "many">;
34
+ major_dimension: z.ZodDefault<z.ZodOptional<z.ZodEnum<["ROWS", "COLUMNS"]>>>;
35
+ value_input_option: z.ZodDefault<z.ZodOptional<z.ZodEnum<["RAW", "USER_ENTERED"]>>>;
36
+ include_values_in_response: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
37
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
38
+ }, "strip", z.ZodTypeAny, {
39
+ values: (string | number | boolean)[][];
40
+ range: string;
41
+ operation: "write_values";
42
+ spreadsheet_id: string;
43
+ major_dimension: "ROWS" | "COLUMNS";
44
+ value_input_option: "RAW" | "USER_ENTERED";
45
+ include_values_in_response: boolean;
46
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
47
+ }, {
48
+ values: (string | number | boolean)[][];
49
+ range: string;
50
+ operation: "write_values";
51
+ spreadsheet_id: string;
52
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
53
+ major_dimension?: "ROWS" | "COLUMNS" | undefined;
54
+ value_input_option?: "RAW" | "USER_ENTERED" | undefined;
55
+ include_values_in_response?: boolean | undefined;
56
+ }>, z.ZodObject<{
57
+ operation: z.ZodLiteral<"update_values">;
58
+ spreadsheet_id: z.ZodString;
59
+ range: z.ZodString;
60
+ values: z.ZodArray<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>, "many">, "many">;
61
+ major_dimension: z.ZodDefault<z.ZodOptional<z.ZodEnum<["ROWS", "COLUMNS"]>>>;
62
+ value_input_option: z.ZodDefault<z.ZodOptional<z.ZodEnum<["RAW", "USER_ENTERED"]>>>;
63
+ include_values_in_response: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
64
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
65
+ }, "strip", z.ZodTypeAny, {
66
+ values: (string | number | boolean)[][];
67
+ range: string;
68
+ operation: "update_values";
69
+ spreadsheet_id: string;
70
+ major_dimension: "ROWS" | "COLUMNS";
71
+ value_input_option: "RAW" | "USER_ENTERED";
72
+ include_values_in_response: boolean;
73
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
74
+ }, {
75
+ values: (string | number | boolean)[][];
76
+ range: string;
77
+ operation: "update_values";
78
+ spreadsheet_id: string;
79
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
80
+ major_dimension?: "ROWS" | "COLUMNS" | undefined;
81
+ value_input_option?: "RAW" | "USER_ENTERED" | undefined;
82
+ include_values_in_response?: boolean | undefined;
83
+ }>, z.ZodObject<{
84
+ operation: z.ZodLiteral<"append_values">;
85
+ spreadsheet_id: z.ZodString;
86
+ range: z.ZodString;
87
+ values: z.ZodArray<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>, "many">, "many">;
88
+ major_dimension: z.ZodDefault<z.ZodOptional<z.ZodEnum<["ROWS", "COLUMNS"]>>>;
89
+ value_input_option: z.ZodDefault<z.ZodOptional<z.ZodEnum<["RAW", "USER_ENTERED"]>>>;
90
+ insert_data_option: z.ZodDefault<z.ZodOptional<z.ZodEnum<["OVERWRITE", "INSERT_ROWS"]>>>;
91
+ include_values_in_response: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
92
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
93
+ }, "strip", z.ZodTypeAny, {
94
+ values: (string | number | boolean)[][];
95
+ range: string;
96
+ operation: "append_values";
97
+ spreadsheet_id: string;
98
+ major_dimension: "ROWS" | "COLUMNS";
99
+ value_input_option: "RAW" | "USER_ENTERED";
100
+ include_values_in_response: boolean;
101
+ insert_data_option: "OVERWRITE" | "INSERT_ROWS";
102
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
103
+ }, {
104
+ values: (string | number | boolean)[][];
105
+ range: string;
106
+ operation: "append_values";
107
+ spreadsheet_id: string;
108
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
109
+ major_dimension?: "ROWS" | "COLUMNS" | undefined;
110
+ value_input_option?: "RAW" | "USER_ENTERED" | undefined;
111
+ include_values_in_response?: boolean | undefined;
112
+ insert_data_option?: "OVERWRITE" | "INSERT_ROWS" | undefined;
113
+ }>, z.ZodObject<{
114
+ operation: z.ZodLiteral<"clear_values">;
115
+ spreadsheet_id: z.ZodString;
116
+ range: z.ZodString;
117
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
118
+ }, "strip", z.ZodTypeAny, {
119
+ range: string;
120
+ operation: "clear_values";
121
+ spreadsheet_id: string;
122
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
123
+ }, {
124
+ range: string;
125
+ operation: "clear_values";
126
+ spreadsheet_id: string;
127
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
128
+ }>, z.ZodObject<{
129
+ operation: z.ZodLiteral<"batch_read_values">;
130
+ spreadsheet_id: z.ZodString;
131
+ ranges: z.ZodArray<z.ZodString, "many">;
132
+ major_dimension: z.ZodDefault<z.ZodOptional<z.ZodEnum<["ROWS", "COLUMNS"]>>>;
133
+ value_render_option: z.ZodDefault<z.ZodOptional<z.ZodEnum<["FORMATTED_VALUE", "UNFORMATTED_VALUE", "FORMULA"]>>>;
134
+ date_time_render_option: z.ZodDefault<z.ZodOptional<z.ZodEnum<["SERIAL_NUMBER", "FORMATTED_STRING"]>>>;
135
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
136
+ }, "strip", z.ZodTypeAny, {
137
+ operation: "batch_read_values";
138
+ spreadsheet_id: string;
139
+ major_dimension: "ROWS" | "COLUMNS";
140
+ value_render_option: "FORMATTED_VALUE" | "UNFORMATTED_VALUE" | "FORMULA";
141
+ date_time_render_option: "SERIAL_NUMBER" | "FORMATTED_STRING";
142
+ ranges: string[];
143
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
144
+ }, {
145
+ operation: "batch_read_values";
146
+ spreadsheet_id: string;
147
+ ranges: string[];
148
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
149
+ major_dimension?: "ROWS" | "COLUMNS" | undefined;
150
+ value_render_option?: "FORMATTED_VALUE" | "UNFORMATTED_VALUE" | "FORMULA" | undefined;
151
+ date_time_render_option?: "SERIAL_NUMBER" | "FORMATTED_STRING" | undefined;
152
+ }>, z.ZodObject<{
153
+ operation: z.ZodLiteral<"batch_update_values">;
154
+ spreadsheet_id: z.ZodString;
155
+ value_ranges: z.ZodArray<z.ZodObject<{
156
+ range: z.ZodString;
157
+ values: z.ZodArray<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>, "many">, "many">;
158
+ major_dimension: z.ZodDefault<z.ZodOptional<z.ZodEnum<["ROWS", "COLUMNS"]>>>;
159
+ }, "strip", z.ZodTypeAny, {
160
+ values: (string | number | boolean)[][];
161
+ range: string;
162
+ major_dimension: "ROWS" | "COLUMNS";
163
+ }, {
164
+ values: (string | number | boolean)[][];
165
+ range: string;
166
+ major_dimension?: "ROWS" | "COLUMNS" | undefined;
167
+ }>, "many">;
168
+ value_input_option: z.ZodDefault<z.ZodOptional<z.ZodEnum<["RAW", "USER_ENTERED"]>>>;
169
+ include_values_in_response: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
170
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
171
+ }, "strip", z.ZodTypeAny, {
172
+ operation: "batch_update_values";
173
+ spreadsheet_id: string;
174
+ value_input_option: "RAW" | "USER_ENTERED";
175
+ include_values_in_response: boolean;
176
+ value_ranges: {
177
+ values: (string | number | boolean)[][];
178
+ range: string;
179
+ major_dimension: "ROWS" | "COLUMNS";
180
+ }[];
181
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
182
+ }, {
183
+ operation: "batch_update_values";
184
+ spreadsheet_id: string;
185
+ value_ranges: {
186
+ values: (string | number | boolean)[][];
187
+ range: string;
188
+ major_dimension?: "ROWS" | "COLUMNS" | undefined;
189
+ }[];
190
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
191
+ value_input_option?: "RAW" | "USER_ENTERED" | undefined;
192
+ include_values_in_response?: boolean | undefined;
193
+ }>, z.ZodObject<{
194
+ operation: z.ZodLiteral<"get_spreadsheet_info">;
195
+ spreadsheet_id: z.ZodString;
196
+ include_grid_data: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
197
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
198
+ }, "strip", z.ZodTypeAny, {
199
+ operation: "get_spreadsheet_info";
200
+ spreadsheet_id: string;
201
+ include_grid_data: boolean;
202
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
203
+ }, {
204
+ operation: "get_spreadsheet_info";
205
+ spreadsheet_id: string;
206
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
207
+ include_grid_data?: boolean | undefined;
208
+ }>, z.ZodObject<{
209
+ operation: z.ZodLiteral<"create_spreadsheet">;
210
+ title: z.ZodString;
211
+ sheet_titles: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
212
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
213
+ }, "strip", z.ZodTypeAny, {
214
+ title: string;
215
+ operation: "create_spreadsheet";
216
+ sheet_titles: string[];
217
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
218
+ }, {
219
+ title: string;
220
+ operation: "create_spreadsheet";
221
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
222
+ sheet_titles?: string[] | undefined;
223
+ }>, z.ZodObject<{
224
+ operation: z.ZodLiteral<"add_sheet">;
225
+ spreadsheet_id: z.ZodString;
226
+ sheet_title: z.ZodString;
227
+ row_count: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
228
+ column_count: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
229
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
230
+ }, "strip", z.ZodTypeAny, {
231
+ operation: "add_sheet";
232
+ spreadsheet_id: string;
233
+ sheet_title: string;
234
+ row_count: number;
235
+ column_count: number;
236
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
237
+ }, {
238
+ operation: "add_sheet";
239
+ spreadsheet_id: string;
240
+ sheet_title: string;
241
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
242
+ row_count?: number | undefined;
243
+ column_count?: number | undefined;
244
+ }>, z.ZodObject<{
245
+ operation: z.ZodLiteral<"delete_sheet">;
246
+ spreadsheet_id: z.ZodString;
247
+ sheet_id: z.ZodNumber;
248
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
249
+ }, "strip", z.ZodTypeAny, {
250
+ operation: "delete_sheet";
251
+ spreadsheet_id: string;
252
+ sheet_id: number;
253
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
254
+ }, {
255
+ operation: "delete_sheet";
256
+ spreadsheet_id: string;
257
+ sheet_id: number;
258
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
259
+ }>]>;
260
+ declare const GoogleSheetsResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{
261
+ operation: z.ZodLiteral<"read_values">;
262
+ success: z.ZodBoolean;
263
+ range: z.ZodOptional<z.ZodString>;
264
+ values: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>, "many">, "many">>;
265
+ major_dimension: z.ZodOptional<z.ZodString>;
266
+ error: z.ZodString;
267
+ }, "strip", z.ZodTypeAny, {
268
+ success: boolean;
269
+ error: string;
270
+ operation: "read_values";
271
+ values?: (string | number | boolean)[][] | undefined;
272
+ range?: string | undefined;
273
+ major_dimension?: string | undefined;
274
+ }, {
275
+ success: boolean;
276
+ error: string;
277
+ operation: "read_values";
278
+ values?: (string | number | boolean)[][] | undefined;
279
+ range?: string | undefined;
280
+ major_dimension?: string | undefined;
281
+ }>, z.ZodObject<{
282
+ operation: z.ZodLiteral<"write_values">;
283
+ success: z.ZodBoolean;
284
+ updated_range: z.ZodOptional<z.ZodString>;
285
+ updated_rows: z.ZodOptional<z.ZodNumber>;
286
+ updated_columns: z.ZodOptional<z.ZodNumber>;
287
+ updated_cells: z.ZodOptional<z.ZodNumber>;
288
+ updated_data: z.ZodOptional<z.ZodObject<{
289
+ range: z.ZodString;
290
+ majorDimension: z.ZodOptional<z.ZodEnum<["ROWS", "COLUMNS"]>>;
291
+ values: z.ZodArray<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>, "many">, "many">;
292
+ }, "strip", z.ZodTypeAny, {
293
+ values: (string | number | boolean)[][];
294
+ range: string;
295
+ majorDimension?: "ROWS" | "COLUMNS" | undefined;
296
+ }, {
297
+ values: (string | number | boolean)[][];
298
+ range: string;
299
+ majorDimension?: "ROWS" | "COLUMNS" | undefined;
300
+ }>>;
301
+ error: z.ZodString;
302
+ }, "strip", z.ZodTypeAny, {
303
+ success: boolean;
304
+ error: string;
305
+ operation: "write_values";
306
+ updated_range?: string | undefined;
307
+ updated_rows?: number | undefined;
308
+ updated_columns?: number | undefined;
309
+ updated_cells?: number | undefined;
310
+ updated_data?: {
311
+ values: (string | number | boolean)[][];
312
+ range: string;
313
+ majorDimension?: "ROWS" | "COLUMNS" | undefined;
314
+ } | undefined;
315
+ }, {
316
+ success: boolean;
317
+ error: string;
318
+ operation: "write_values";
319
+ updated_range?: string | undefined;
320
+ updated_rows?: number | undefined;
321
+ updated_columns?: number | undefined;
322
+ updated_cells?: number | undefined;
323
+ updated_data?: {
324
+ values: (string | number | boolean)[][];
325
+ range: string;
326
+ majorDimension?: "ROWS" | "COLUMNS" | undefined;
327
+ } | undefined;
328
+ }>, z.ZodObject<{
329
+ operation: z.ZodLiteral<"update_values">;
330
+ success: z.ZodBoolean;
331
+ updated_range: z.ZodOptional<z.ZodString>;
332
+ updated_rows: z.ZodOptional<z.ZodNumber>;
333
+ updated_columns: z.ZodOptional<z.ZodNumber>;
334
+ updated_cells: z.ZodOptional<z.ZodNumber>;
335
+ updated_data: z.ZodOptional<z.ZodObject<{
336
+ range: z.ZodString;
337
+ majorDimension: z.ZodOptional<z.ZodEnum<["ROWS", "COLUMNS"]>>;
338
+ values: z.ZodArray<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>, "many">, "many">;
339
+ }, "strip", z.ZodTypeAny, {
340
+ values: (string | number | boolean)[][];
341
+ range: string;
342
+ majorDimension?: "ROWS" | "COLUMNS" | undefined;
343
+ }, {
344
+ values: (string | number | boolean)[][];
345
+ range: string;
346
+ majorDimension?: "ROWS" | "COLUMNS" | undefined;
347
+ }>>;
348
+ error: z.ZodString;
349
+ }, "strip", z.ZodTypeAny, {
350
+ success: boolean;
351
+ error: string;
352
+ operation: "update_values";
353
+ updated_range?: string | undefined;
354
+ updated_rows?: number | undefined;
355
+ updated_columns?: number | undefined;
356
+ updated_cells?: number | undefined;
357
+ updated_data?: {
358
+ values: (string | number | boolean)[][];
359
+ range: string;
360
+ majorDimension?: "ROWS" | "COLUMNS" | undefined;
361
+ } | undefined;
362
+ }, {
363
+ success: boolean;
364
+ error: string;
365
+ operation: "update_values";
366
+ updated_range?: string | undefined;
367
+ updated_rows?: number | undefined;
368
+ updated_columns?: number | undefined;
369
+ updated_cells?: number | undefined;
370
+ updated_data?: {
371
+ values: (string | number | boolean)[][];
372
+ range: string;
373
+ majorDimension?: "ROWS" | "COLUMNS" | undefined;
374
+ } | undefined;
375
+ }>, z.ZodObject<{
376
+ operation: z.ZodLiteral<"append_values">;
377
+ success: z.ZodBoolean;
378
+ table_range: z.ZodOptional<z.ZodString>;
379
+ updated_range: z.ZodOptional<z.ZodString>;
380
+ updated_rows: z.ZodOptional<z.ZodNumber>;
381
+ updated_columns: z.ZodOptional<z.ZodNumber>;
382
+ updated_cells: z.ZodOptional<z.ZodNumber>;
383
+ error: z.ZodString;
384
+ }, "strip", z.ZodTypeAny, {
385
+ success: boolean;
386
+ error: string;
387
+ operation: "append_values";
388
+ updated_range?: string | undefined;
389
+ updated_rows?: number | undefined;
390
+ updated_columns?: number | undefined;
391
+ updated_cells?: number | undefined;
392
+ table_range?: string | undefined;
393
+ }, {
394
+ success: boolean;
395
+ error: string;
396
+ operation: "append_values";
397
+ updated_range?: string | undefined;
398
+ updated_rows?: number | undefined;
399
+ updated_columns?: number | undefined;
400
+ updated_cells?: number | undefined;
401
+ table_range?: string | undefined;
402
+ }>, z.ZodObject<{
403
+ operation: z.ZodLiteral<"clear_values">;
404
+ success: z.ZodBoolean;
405
+ cleared_range: z.ZodOptional<z.ZodString>;
406
+ error: z.ZodString;
407
+ }, "strip", z.ZodTypeAny, {
408
+ success: boolean;
409
+ error: string;
410
+ operation: "clear_values";
411
+ cleared_range?: string | undefined;
412
+ }, {
413
+ success: boolean;
414
+ error: string;
415
+ operation: "clear_values";
416
+ cleared_range?: string | undefined;
417
+ }>, z.ZodObject<{
418
+ operation: z.ZodLiteral<"batch_read_values">;
419
+ success: z.ZodBoolean;
420
+ value_ranges: z.ZodOptional<z.ZodArray<z.ZodObject<{
421
+ range: z.ZodString;
422
+ majorDimension: z.ZodOptional<z.ZodEnum<["ROWS", "COLUMNS"]>>;
423
+ values: z.ZodArray<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>, "many">, "many">;
424
+ }, "strip", z.ZodTypeAny, {
425
+ values: (string | number | boolean)[][];
426
+ range: string;
427
+ majorDimension?: "ROWS" | "COLUMNS" | undefined;
428
+ }, {
429
+ values: (string | number | boolean)[][];
430
+ range: string;
431
+ majorDimension?: "ROWS" | "COLUMNS" | undefined;
432
+ }>, "many">>;
433
+ error: z.ZodString;
434
+ }, "strip", z.ZodTypeAny, {
435
+ success: boolean;
436
+ error: string;
437
+ operation: "batch_read_values";
438
+ value_ranges?: {
439
+ values: (string | number | boolean)[][];
440
+ range: string;
441
+ majorDimension?: "ROWS" | "COLUMNS" | undefined;
442
+ }[] | undefined;
443
+ }, {
444
+ success: boolean;
445
+ error: string;
446
+ operation: "batch_read_values";
447
+ value_ranges?: {
448
+ values: (string | number | boolean)[][];
449
+ range: string;
450
+ majorDimension?: "ROWS" | "COLUMNS" | undefined;
451
+ }[] | undefined;
452
+ }>, z.ZodObject<{
453
+ operation: z.ZodLiteral<"batch_update_values">;
454
+ success: z.ZodBoolean;
455
+ total_updated_rows: z.ZodOptional<z.ZodNumber>;
456
+ total_updated_columns: z.ZodOptional<z.ZodNumber>;
457
+ total_updated_cells: z.ZodOptional<z.ZodNumber>;
458
+ total_updated_sheets: z.ZodOptional<z.ZodNumber>;
459
+ responses: z.ZodOptional<z.ZodArray<z.ZodObject<{
460
+ updated_range: z.ZodOptional<z.ZodString>;
461
+ updated_rows: z.ZodOptional<z.ZodNumber>;
462
+ updated_columns: z.ZodOptional<z.ZodNumber>;
463
+ updated_cells: z.ZodOptional<z.ZodNumber>;
464
+ }, "strip", z.ZodTypeAny, {
465
+ updated_range?: string | undefined;
466
+ updated_rows?: number | undefined;
467
+ updated_columns?: number | undefined;
468
+ updated_cells?: number | undefined;
469
+ }, {
470
+ updated_range?: string | undefined;
471
+ updated_rows?: number | undefined;
472
+ updated_columns?: number | undefined;
473
+ updated_cells?: number | undefined;
474
+ }>, "many">>;
475
+ error: z.ZodString;
476
+ }, "strip", z.ZodTypeAny, {
477
+ success: boolean;
478
+ error: string;
479
+ operation: "batch_update_values";
480
+ total_updated_rows?: number | undefined;
481
+ total_updated_columns?: number | undefined;
482
+ total_updated_cells?: number | undefined;
483
+ total_updated_sheets?: number | undefined;
484
+ responses?: {
485
+ updated_range?: string | undefined;
486
+ updated_rows?: number | undefined;
487
+ updated_columns?: number | undefined;
488
+ updated_cells?: number | undefined;
489
+ }[] | undefined;
490
+ }, {
491
+ success: boolean;
492
+ error: string;
493
+ operation: "batch_update_values";
494
+ total_updated_rows?: number | undefined;
495
+ total_updated_columns?: number | undefined;
496
+ total_updated_cells?: number | undefined;
497
+ total_updated_sheets?: number | undefined;
498
+ responses?: {
499
+ updated_range?: string | undefined;
500
+ updated_rows?: number | undefined;
501
+ updated_columns?: number | undefined;
502
+ updated_cells?: number | undefined;
503
+ }[] | undefined;
504
+ }>, z.ZodObject<{
505
+ operation: z.ZodLiteral<"get_spreadsheet_info">;
506
+ success: z.ZodBoolean;
507
+ spreadsheet: z.ZodOptional<z.ZodObject<{
508
+ spreadsheetId: z.ZodString;
509
+ properties: z.ZodOptional<z.ZodObject<{
510
+ title: z.ZodString;
511
+ locale: z.ZodOptional<z.ZodString>;
512
+ autoRecalc: z.ZodOptional<z.ZodString>;
513
+ timeZone: z.ZodOptional<z.ZodString>;
514
+ }, "strip", z.ZodTypeAny, {
515
+ title: string;
516
+ locale?: string | undefined;
517
+ autoRecalc?: string | undefined;
518
+ timeZone?: string | undefined;
519
+ }, {
520
+ title: string;
521
+ locale?: string | undefined;
522
+ autoRecalc?: string | undefined;
523
+ timeZone?: string | undefined;
524
+ }>>;
525
+ sheets: z.ZodOptional<z.ZodArray<z.ZodObject<{
526
+ properties: z.ZodObject<{
527
+ sheetId: z.ZodNumber;
528
+ title: z.ZodString;
529
+ index: z.ZodNumber;
530
+ sheetType: z.ZodOptional<z.ZodString>;
531
+ gridProperties: z.ZodOptional<z.ZodObject<{
532
+ rowCount: z.ZodOptional<z.ZodNumber>;
533
+ columnCount: z.ZodOptional<z.ZodNumber>;
534
+ }, "strip", z.ZodTypeAny, {
535
+ rowCount?: number | undefined;
536
+ columnCount?: number | undefined;
537
+ }, {
538
+ rowCount?: number | undefined;
539
+ columnCount?: number | undefined;
540
+ }>>;
541
+ }, "strip", z.ZodTypeAny, {
542
+ title: string;
543
+ index: number;
544
+ sheetId: number;
545
+ sheetType?: string | undefined;
546
+ gridProperties?: {
547
+ rowCount?: number | undefined;
548
+ columnCount?: number | undefined;
549
+ } | undefined;
550
+ }, {
551
+ title: string;
552
+ index: number;
553
+ sheetId: number;
554
+ sheetType?: string | undefined;
555
+ gridProperties?: {
556
+ rowCount?: number | undefined;
557
+ columnCount?: number | undefined;
558
+ } | undefined;
559
+ }>;
560
+ }, "strip", z.ZodTypeAny, {
561
+ properties: {
562
+ title: string;
563
+ index: number;
564
+ sheetId: number;
565
+ sheetType?: string | undefined;
566
+ gridProperties?: {
567
+ rowCount?: number | undefined;
568
+ columnCount?: number | undefined;
569
+ } | undefined;
570
+ };
571
+ }, {
572
+ properties: {
573
+ title: string;
574
+ index: number;
575
+ sheetId: number;
576
+ sheetType?: string | undefined;
577
+ gridProperties?: {
578
+ rowCount?: number | undefined;
579
+ columnCount?: number | undefined;
580
+ } | undefined;
581
+ };
582
+ }>, "many">>;
583
+ spreadsheetUrl: z.ZodOptional<z.ZodString>;
584
+ }, "strip", z.ZodTypeAny, {
585
+ spreadsheetId: string;
586
+ properties?: {
587
+ title: string;
588
+ locale?: string | undefined;
589
+ autoRecalc?: string | undefined;
590
+ timeZone?: string | undefined;
591
+ } | undefined;
592
+ sheets?: {
593
+ properties: {
594
+ title: string;
595
+ index: number;
596
+ sheetId: number;
597
+ sheetType?: string | undefined;
598
+ gridProperties?: {
599
+ rowCount?: number | undefined;
600
+ columnCount?: number | undefined;
601
+ } | undefined;
602
+ };
603
+ }[] | undefined;
604
+ spreadsheetUrl?: string | undefined;
605
+ }, {
606
+ spreadsheetId: string;
607
+ properties?: {
608
+ title: string;
609
+ locale?: string | undefined;
610
+ autoRecalc?: string | undefined;
611
+ timeZone?: string | undefined;
612
+ } | undefined;
613
+ sheets?: {
614
+ properties: {
615
+ title: string;
616
+ index: number;
617
+ sheetId: number;
618
+ sheetType?: string | undefined;
619
+ gridProperties?: {
620
+ rowCount?: number | undefined;
621
+ columnCount?: number | undefined;
622
+ } | undefined;
623
+ };
624
+ }[] | undefined;
625
+ spreadsheetUrl?: string | undefined;
626
+ }>>;
627
+ error: z.ZodString;
628
+ }, "strip", z.ZodTypeAny, {
629
+ success: boolean;
630
+ error: string;
631
+ operation: "get_spreadsheet_info";
632
+ spreadsheet?: {
633
+ spreadsheetId: string;
634
+ properties?: {
635
+ title: string;
636
+ locale?: string | undefined;
637
+ autoRecalc?: string | undefined;
638
+ timeZone?: string | undefined;
639
+ } | undefined;
640
+ sheets?: {
641
+ properties: {
642
+ title: string;
643
+ index: number;
644
+ sheetId: number;
645
+ sheetType?: string | undefined;
646
+ gridProperties?: {
647
+ rowCount?: number | undefined;
648
+ columnCount?: number | undefined;
649
+ } | undefined;
650
+ };
651
+ }[] | undefined;
652
+ spreadsheetUrl?: string | undefined;
653
+ } | undefined;
654
+ }, {
655
+ success: boolean;
656
+ error: string;
657
+ operation: "get_spreadsheet_info";
658
+ spreadsheet?: {
659
+ spreadsheetId: string;
660
+ properties?: {
661
+ title: string;
662
+ locale?: string | undefined;
663
+ autoRecalc?: string | undefined;
664
+ timeZone?: string | undefined;
665
+ } | undefined;
666
+ sheets?: {
667
+ properties: {
668
+ title: string;
669
+ index: number;
670
+ sheetId: number;
671
+ sheetType?: string | undefined;
672
+ gridProperties?: {
673
+ rowCount?: number | undefined;
674
+ columnCount?: number | undefined;
675
+ } | undefined;
676
+ };
677
+ }[] | undefined;
678
+ spreadsheetUrl?: string | undefined;
679
+ } | undefined;
680
+ }>, z.ZodObject<{
681
+ operation: z.ZodLiteral<"create_spreadsheet">;
682
+ success: z.ZodBoolean;
683
+ spreadsheet: z.ZodOptional<z.ZodObject<{
684
+ spreadsheetId: z.ZodString;
685
+ properties: z.ZodOptional<z.ZodObject<{
686
+ title: z.ZodString;
687
+ locale: z.ZodOptional<z.ZodString>;
688
+ autoRecalc: z.ZodOptional<z.ZodString>;
689
+ timeZone: z.ZodOptional<z.ZodString>;
690
+ }, "strip", z.ZodTypeAny, {
691
+ title: string;
692
+ locale?: string | undefined;
693
+ autoRecalc?: string | undefined;
694
+ timeZone?: string | undefined;
695
+ }, {
696
+ title: string;
697
+ locale?: string | undefined;
698
+ autoRecalc?: string | undefined;
699
+ timeZone?: string | undefined;
700
+ }>>;
701
+ sheets: z.ZodOptional<z.ZodArray<z.ZodObject<{
702
+ properties: z.ZodObject<{
703
+ sheetId: z.ZodNumber;
704
+ title: z.ZodString;
705
+ index: z.ZodNumber;
706
+ sheetType: z.ZodOptional<z.ZodString>;
707
+ gridProperties: z.ZodOptional<z.ZodObject<{
708
+ rowCount: z.ZodOptional<z.ZodNumber>;
709
+ columnCount: z.ZodOptional<z.ZodNumber>;
710
+ }, "strip", z.ZodTypeAny, {
711
+ rowCount?: number | undefined;
712
+ columnCount?: number | undefined;
713
+ }, {
714
+ rowCount?: number | undefined;
715
+ columnCount?: number | undefined;
716
+ }>>;
717
+ }, "strip", z.ZodTypeAny, {
718
+ title: string;
719
+ index: number;
720
+ sheetId: number;
721
+ sheetType?: string | undefined;
722
+ gridProperties?: {
723
+ rowCount?: number | undefined;
724
+ columnCount?: number | undefined;
725
+ } | undefined;
726
+ }, {
727
+ title: string;
728
+ index: number;
729
+ sheetId: number;
730
+ sheetType?: string | undefined;
731
+ gridProperties?: {
732
+ rowCount?: number | undefined;
733
+ columnCount?: number | undefined;
734
+ } | undefined;
735
+ }>;
736
+ }, "strip", z.ZodTypeAny, {
737
+ properties: {
738
+ title: string;
739
+ index: number;
740
+ sheetId: number;
741
+ sheetType?: string | undefined;
742
+ gridProperties?: {
743
+ rowCount?: number | undefined;
744
+ columnCount?: number | undefined;
745
+ } | undefined;
746
+ };
747
+ }, {
748
+ properties: {
749
+ title: string;
750
+ index: number;
751
+ sheetId: number;
752
+ sheetType?: string | undefined;
753
+ gridProperties?: {
754
+ rowCount?: number | undefined;
755
+ columnCount?: number | undefined;
756
+ } | undefined;
757
+ };
758
+ }>, "many">>;
759
+ spreadsheetUrl: z.ZodOptional<z.ZodString>;
760
+ }, "strip", z.ZodTypeAny, {
761
+ spreadsheetId: string;
762
+ properties?: {
763
+ title: string;
764
+ locale?: string | undefined;
765
+ autoRecalc?: string | undefined;
766
+ timeZone?: string | undefined;
767
+ } | undefined;
768
+ sheets?: {
769
+ properties: {
770
+ title: string;
771
+ index: number;
772
+ sheetId: number;
773
+ sheetType?: string | undefined;
774
+ gridProperties?: {
775
+ rowCount?: number | undefined;
776
+ columnCount?: number | undefined;
777
+ } | undefined;
778
+ };
779
+ }[] | undefined;
780
+ spreadsheetUrl?: string | undefined;
781
+ }, {
782
+ spreadsheetId: string;
783
+ properties?: {
784
+ title: string;
785
+ locale?: string | undefined;
786
+ autoRecalc?: string | undefined;
787
+ timeZone?: string | undefined;
788
+ } | undefined;
789
+ sheets?: {
790
+ properties: {
791
+ title: string;
792
+ index: number;
793
+ sheetId: number;
794
+ sheetType?: string | undefined;
795
+ gridProperties?: {
796
+ rowCount?: number | undefined;
797
+ columnCount?: number | undefined;
798
+ } | undefined;
799
+ };
800
+ }[] | undefined;
801
+ spreadsheetUrl?: string | undefined;
802
+ }>>;
803
+ error: z.ZodString;
804
+ }, "strip", z.ZodTypeAny, {
805
+ success: boolean;
806
+ error: string;
807
+ operation: "create_spreadsheet";
808
+ spreadsheet?: {
809
+ spreadsheetId: string;
810
+ properties?: {
811
+ title: string;
812
+ locale?: string | undefined;
813
+ autoRecalc?: string | undefined;
814
+ timeZone?: string | undefined;
815
+ } | undefined;
816
+ sheets?: {
817
+ properties: {
818
+ title: string;
819
+ index: number;
820
+ sheetId: number;
821
+ sheetType?: string | undefined;
822
+ gridProperties?: {
823
+ rowCount?: number | undefined;
824
+ columnCount?: number | undefined;
825
+ } | undefined;
826
+ };
827
+ }[] | undefined;
828
+ spreadsheetUrl?: string | undefined;
829
+ } | undefined;
830
+ }, {
831
+ success: boolean;
832
+ error: string;
833
+ operation: "create_spreadsheet";
834
+ spreadsheet?: {
835
+ spreadsheetId: string;
836
+ properties?: {
837
+ title: string;
838
+ locale?: string | undefined;
839
+ autoRecalc?: string | undefined;
840
+ timeZone?: string | undefined;
841
+ } | undefined;
842
+ sheets?: {
843
+ properties: {
844
+ title: string;
845
+ index: number;
846
+ sheetId: number;
847
+ sheetType?: string | undefined;
848
+ gridProperties?: {
849
+ rowCount?: number | undefined;
850
+ columnCount?: number | undefined;
851
+ } | undefined;
852
+ };
853
+ }[] | undefined;
854
+ spreadsheetUrl?: string | undefined;
855
+ } | undefined;
856
+ }>, z.ZodObject<{
857
+ operation: z.ZodLiteral<"add_sheet">;
858
+ success: z.ZodBoolean;
859
+ sheet_id: z.ZodOptional<z.ZodNumber>;
860
+ sheet_title: z.ZodOptional<z.ZodString>;
861
+ error: z.ZodString;
862
+ }, "strip", z.ZodTypeAny, {
863
+ success: boolean;
864
+ error: string;
865
+ operation: "add_sheet";
866
+ sheet_title?: string | undefined;
867
+ sheet_id?: number | undefined;
868
+ }, {
869
+ success: boolean;
870
+ error: string;
871
+ operation: "add_sheet";
872
+ sheet_title?: string | undefined;
873
+ sheet_id?: number | undefined;
874
+ }>, z.ZodObject<{
875
+ operation: z.ZodLiteral<"delete_sheet">;
876
+ success: z.ZodBoolean;
877
+ deleted_sheet_id: z.ZodOptional<z.ZodNumber>;
878
+ error: z.ZodString;
879
+ }, "strip", z.ZodTypeAny, {
880
+ success: boolean;
881
+ error: string;
882
+ operation: "delete_sheet";
883
+ deleted_sheet_id?: number | undefined;
884
+ }, {
885
+ success: boolean;
886
+ error: string;
887
+ operation: "delete_sheet";
888
+ deleted_sheet_id?: number | undefined;
889
+ }>]>;
890
+ type GoogleSheetsResult = z.output<typeof GoogleSheetsResultSchema>;
891
+ type GoogleSheetsParams = z.input<typeof GoogleSheetsParamsSchema>;
892
+ export type GoogleSheetsOperationResult<T extends GoogleSheetsParams['operation']> = Extract<GoogleSheetsResult, {
893
+ operation: T;
894
+ }>;
895
+ export type GoogleSheetsParamsInput = z.input<typeof GoogleSheetsParamsSchema>;
896
+ export declare class GoogleSheetsBubble<T extends GoogleSheetsParams = GoogleSheetsParams> extends ServiceBubble<T, Extract<GoogleSheetsResult, {
897
+ operation: T['operation'];
898
+ }>> {
899
+ static readonly type: "service";
900
+ static readonly service = "google-sheets";
901
+ static readonly authType: "oauth";
902
+ static readonly bubbleName = "google-sheets";
903
+ static readonly schema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{
904
+ operation: z.ZodLiteral<"read_values">;
905
+ spreadsheet_id: z.ZodString;
906
+ range: z.ZodString;
907
+ major_dimension: z.ZodDefault<z.ZodOptional<z.ZodEnum<["ROWS", "COLUMNS"]>>>;
908
+ value_render_option: z.ZodDefault<z.ZodOptional<z.ZodEnum<["FORMATTED_VALUE", "UNFORMATTED_VALUE", "FORMULA"]>>>;
909
+ date_time_render_option: z.ZodDefault<z.ZodOptional<z.ZodEnum<["SERIAL_NUMBER", "FORMATTED_STRING"]>>>;
910
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
911
+ }, "strip", z.ZodTypeAny, {
912
+ range: string;
913
+ operation: "read_values";
914
+ spreadsheet_id: string;
915
+ major_dimension: "ROWS" | "COLUMNS";
916
+ value_render_option: "FORMATTED_VALUE" | "UNFORMATTED_VALUE" | "FORMULA";
917
+ date_time_render_option: "SERIAL_NUMBER" | "FORMATTED_STRING";
918
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
919
+ }, {
920
+ range: string;
921
+ operation: "read_values";
922
+ spreadsheet_id: string;
923
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
924
+ major_dimension?: "ROWS" | "COLUMNS" | undefined;
925
+ value_render_option?: "FORMATTED_VALUE" | "UNFORMATTED_VALUE" | "FORMULA" | undefined;
926
+ date_time_render_option?: "SERIAL_NUMBER" | "FORMATTED_STRING" | undefined;
927
+ }>, z.ZodObject<{
928
+ operation: z.ZodLiteral<"write_values">;
929
+ spreadsheet_id: z.ZodString;
930
+ range: z.ZodString;
931
+ values: z.ZodArray<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>, "many">, "many">;
932
+ major_dimension: z.ZodDefault<z.ZodOptional<z.ZodEnum<["ROWS", "COLUMNS"]>>>;
933
+ value_input_option: z.ZodDefault<z.ZodOptional<z.ZodEnum<["RAW", "USER_ENTERED"]>>>;
934
+ include_values_in_response: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
935
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
936
+ }, "strip", z.ZodTypeAny, {
937
+ values: (string | number | boolean)[][];
938
+ range: string;
939
+ operation: "write_values";
940
+ spreadsheet_id: string;
941
+ major_dimension: "ROWS" | "COLUMNS";
942
+ value_input_option: "RAW" | "USER_ENTERED";
943
+ include_values_in_response: boolean;
944
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
945
+ }, {
946
+ values: (string | number | boolean)[][];
947
+ range: string;
948
+ operation: "write_values";
949
+ spreadsheet_id: string;
950
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
951
+ major_dimension?: "ROWS" | "COLUMNS" | undefined;
952
+ value_input_option?: "RAW" | "USER_ENTERED" | undefined;
953
+ include_values_in_response?: boolean | undefined;
954
+ }>, z.ZodObject<{
955
+ operation: z.ZodLiteral<"update_values">;
956
+ spreadsheet_id: z.ZodString;
957
+ range: z.ZodString;
958
+ values: z.ZodArray<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>, "many">, "many">;
959
+ major_dimension: z.ZodDefault<z.ZodOptional<z.ZodEnum<["ROWS", "COLUMNS"]>>>;
960
+ value_input_option: z.ZodDefault<z.ZodOptional<z.ZodEnum<["RAW", "USER_ENTERED"]>>>;
961
+ include_values_in_response: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
962
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
963
+ }, "strip", z.ZodTypeAny, {
964
+ values: (string | number | boolean)[][];
965
+ range: string;
966
+ operation: "update_values";
967
+ spreadsheet_id: string;
968
+ major_dimension: "ROWS" | "COLUMNS";
969
+ value_input_option: "RAW" | "USER_ENTERED";
970
+ include_values_in_response: boolean;
971
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
972
+ }, {
973
+ values: (string | number | boolean)[][];
974
+ range: string;
975
+ operation: "update_values";
976
+ spreadsheet_id: string;
977
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
978
+ major_dimension?: "ROWS" | "COLUMNS" | undefined;
979
+ value_input_option?: "RAW" | "USER_ENTERED" | undefined;
980
+ include_values_in_response?: boolean | undefined;
981
+ }>, z.ZodObject<{
982
+ operation: z.ZodLiteral<"append_values">;
983
+ spreadsheet_id: z.ZodString;
984
+ range: z.ZodString;
985
+ values: z.ZodArray<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>, "many">, "many">;
986
+ major_dimension: z.ZodDefault<z.ZodOptional<z.ZodEnum<["ROWS", "COLUMNS"]>>>;
987
+ value_input_option: z.ZodDefault<z.ZodOptional<z.ZodEnum<["RAW", "USER_ENTERED"]>>>;
988
+ insert_data_option: z.ZodDefault<z.ZodOptional<z.ZodEnum<["OVERWRITE", "INSERT_ROWS"]>>>;
989
+ include_values_in_response: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
990
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
991
+ }, "strip", z.ZodTypeAny, {
992
+ values: (string | number | boolean)[][];
993
+ range: string;
994
+ operation: "append_values";
995
+ spreadsheet_id: string;
996
+ major_dimension: "ROWS" | "COLUMNS";
997
+ value_input_option: "RAW" | "USER_ENTERED";
998
+ include_values_in_response: boolean;
999
+ insert_data_option: "OVERWRITE" | "INSERT_ROWS";
1000
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
1001
+ }, {
1002
+ values: (string | number | boolean)[][];
1003
+ range: string;
1004
+ operation: "append_values";
1005
+ spreadsheet_id: string;
1006
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
1007
+ major_dimension?: "ROWS" | "COLUMNS" | undefined;
1008
+ value_input_option?: "RAW" | "USER_ENTERED" | undefined;
1009
+ include_values_in_response?: boolean | undefined;
1010
+ insert_data_option?: "OVERWRITE" | "INSERT_ROWS" | undefined;
1011
+ }>, z.ZodObject<{
1012
+ operation: z.ZodLiteral<"clear_values">;
1013
+ spreadsheet_id: z.ZodString;
1014
+ range: z.ZodString;
1015
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
1016
+ }, "strip", z.ZodTypeAny, {
1017
+ range: string;
1018
+ operation: "clear_values";
1019
+ spreadsheet_id: string;
1020
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
1021
+ }, {
1022
+ range: string;
1023
+ operation: "clear_values";
1024
+ spreadsheet_id: string;
1025
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
1026
+ }>, z.ZodObject<{
1027
+ operation: z.ZodLiteral<"batch_read_values">;
1028
+ spreadsheet_id: z.ZodString;
1029
+ ranges: z.ZodArray<z.ZodString, "many">;
1030
+ major_dimension: z.ZodDefault<z.ZodOptional<z.ZodEnum<["ROWS", "COLUMNS"]>>>;
1031
+ value_render_option: z.ZodDefault<z.ZodOptional<z.ZodEnum<["FORMATTED_VALUE", "UNFORMATTED_VALUE", "FORMULA"]>>>;
1032
+ date_time_render_option: z.ZodDefault<z.ZodOptional<z.ZodEnum<["SERIAL_NUMBER", "FORMATTED_STRING"]>>>;
1033
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
1034
+ }, "strip", z.ZodTypeAny, {
1035
+ operation: "batch_read_values";
1036
+ spreadsheet_id: string;
1037
+ major_dimension: "ROWS" | "COLUMNS";
1038
+ value_render_option: "FORMATTED_VALUE" | "UNFORMATTED_VALUE" | "FORMULA";
1039
+ date_time_render_option: "SERIAL_NUMBER" | "FORMATTED_STRING";
1040
+ ranges: string[];
1041
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
1042
+ }, {
1043
+ operation: "batch_read_values";
1044
+ spreadsheet_id: string;
1045
+ ranges: string[];
1046
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
1047
+ major_dimension?: "ROWS" | "COLUMNS" | undefined;
1048
+ value_render_option?: "FORMATTED_VALUE" | "UNFORMATTED_VALUE" | "FORMULA" | undefined;
1049
+ date_time_render_option?: "SERIAL_NUMBER" | "FORMATTED_STRING" | undefined;
1050
+ }>, z.ZodObject<{
1051
+ operation: z.ZodLiteral<"batch_update_values">;
1052
+ spreadsheet_id: z.ZodString;
1053
+ value_ranges: z.ZodArray<z.ZodObject<{
1054
+ range: z.ZodString;
1055
+ values: z.ZodArray<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>, "many">, "many">;
1056
+ major_dimension: z.ZodDefault<z.ZodOptional<z.ZodEnum<["ROWS", "COLUMNS"]>>>;
1057
+ }, "strip", z.ZodTypeAny, {
1058
+ values: (string | number | boolean)[][];
1059
+ range: string;
1060
+ major_dimension: "ROWS" | "COLUMNS";
1061
+ }, {
1062
+ values: (string | number | boolean)[][];
1063
+ range: string;
1064
+ major_dimension?: "ROWS" | "COLUMNS" | undefined;
1065
+ }>, "many">;
1066
+ value_input_option: z.ZodDefault<z.ZodOptional<z.ZodEnum<["RAW", "USER_ENTERED"]>>>;
1067
+ include_values_in_response: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1068
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
1069
+ }, "strip", z.ZodTypeAny, {
1070
+ operation: "batch_update_values";
1071
+ spreadsheet_id: string;
1072
+ value_input_option: "RAW" | "USER_ENTERED";
1073
+ include_values_in_response: boolean;
1074
+ value_ranges: {
1075
+ values: (string | number | boolean)[][];
1076
+ range: string;
1077
+ major_dimension: "ROWS" | "COLUMNS";
1078
+ }[];
1079
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
1080
+ }, {
1081
+ operation: "batch_update_values";
1082
+ spreadsheet_id: string;
1083
+ value_ranges: {
1084
+ values: (string | number | boolean)[][];
1085
+ range: string;
1086
+ major_dimension?: "ROWS" | "COLUMNS" | undefined;
1087
+ }[];
1088
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
1089
+ value_input_option?: "RAW" | "USER_ENTERED" | undefined;
1090
+ include_values_in_response?: boolean | undefined;
1091
+ }>, z.ZodObject<{
1092
+ operation: z.ZodLiteral<"get_spreadsheet_info">;
1093
+ spreadsheet_id: z.ZodString;
1094
+ include_grid_data: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1095
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
1096
+ }, "strip", z.ZodTypeAny, {
1097
+ operation: "get_spreadsheet_info";
1098
+ spreadsheet_id: string;
1099
+ include_grid_data: boolean;
1100
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
1101
+ }, {
1102
+ operation: "get_spreadsheet_info";
1103
+ spreadsheet_id: string;
1104
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
1105
+ include_grid_data?: boolean | undefined;
1106
+ }>, z.ZodObject<{
1107
+ operation: z.ZodLiteral<"create_spreadsheet">;
1108
+ title: z.ZodString;
1109
+ sheet_titles: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1110
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
1111
+ }, "strip", z.ZodTypeAny, {
1112
+ title: string;
1113
+ operation: "create_spreadsheet";
1114
+ sheet_titles: string[];
1115
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
1116
+ }, {
1117
+ title: string;
1118
+ operation: "create_spreadsheet";
1119
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
1120
+ sheet_titles?: string[] | undefined;
1121
+ }>, z.ZodObject<{
1122
+ operation: z.ZodLiteral<"add_sheet">;
1123
+ spreadsheet_id: z.ZodString;
1124
+ sheet_title: z.ZodString;
1125
+ row_count: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1126
+ column_count: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1127
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
1128
+ }, "strip", z.ZodTypeAny, {
1129
+ operation: "add_sheet";
1130
+ spreadsheet_id: string;
1131
+ sheet_title: string;
1132
+ row_count: number;
1133
+ column_count: number;
1134
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
1135
+ }, {
1136
+ operation: "add_sheet";
1137
+ spreadsheet_id: string;
1138
+ sheet_title: string;
1139
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
1140
+ row_count?: number | undefined;
1141
+ column_count?: number | undefined;
1142
+ }>, z.ZodObject<{
1143
+ operation: z.ZodLiteral<"delete_sheet">;
1144
+ spreadsheet_id: z.ZodString;
1145
+ sheet_id: z.ZodNumber;
1146
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
1147
+ }, "strip", z.ZodTypeAny, {
1148
+ operation: "delete_sheet";
1149
+ spreadsheet_id: string;
1150
+ sheet_id: number;
1151
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
1152
+ }, {
1153
+ operation: "delete_sheet";
1154
+ spreadsheet_id: string;
1155
+ sheet_id: number;
1156
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
1157
+ }>]>;
1158
+ static readonly resultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{
1159
+ operation: z.ZodLiteral<"read_values">;
1160
+ success: z.ZodBoolean;
1161
+ range: z.ZodOptional<z.ZodString>;
1162
+ values: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>, "many">, "many">>;
1163
+ major_dimension: z.ZodOptional<z.ZodString>;
1164
+ error: z.ZodString;
1165
+ }, "strip", z.ZodTypeAny, {
1166
+ success: boolean;
1167
+ error: string;
1168
+ operation: "read_values";
1169
+ values?: (string | number | boolean)[][] | undefined;
1170
+ range?: string | undefined;
1171
+ major_dimension?: string | undefined;
1172
+ }, {
1173
+ success: boolean;
1174
+ error: string;
1175
+ operation: "read_values";
1176
+ values?: (string | number | boolean)[][] | undefined;
1177
+ range?: string | undefined;
1178
+ major_dimension?: string | undefined;
1179
+ }>, z.ZodObject<{
1180
+ operation: z.ZodLiteral<"write_values">;
1181
+ success: z.ZodBoolean;
1182
+ updated_range: z.ZodOptional<z.ZodString>;
1183
+ updated_rows: z.ZodOptional<z.ZodNumber>;
1184
+ updated_columns: z.ZodOptional<z.ZodNumber>;
1185
+ updated_cells: z.ZodOptional<z.ZodNumber>;
1186
+ updated_data: z.ZodOptional<z.ZodObject<{
1187
+ range: z.ZodString;
1188
+ majorDimension: z.ZodOptional<z.ZodEnum<["ROWS", "COLUMNS"]>>;
1189
+ values: z.ZodArray<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>, "many">, "many">;
1190
+ }, "strip", z.ZodTypeAny, {
1191
+ values: (string | number | boolean)[][];
1192
+ range: string;
1193
+ majorDimension?: "ROWS" | "COLUMNS" | undefined;
1194
+ }, {
1195
+ values: (string | number | boolean)[][];
1196
+ range: string;
1197
+ majorDimension?: "ROWS" | "COLUMNS" | undefined;
1198
+ }>>;
1199
+ error: z.ZodString;
1200
+ }, "strip", z.ZodTypeAny, {
1201
+ success: boolean;
1202
+ error: string;
1203
+ operation: "write_values";
1204
+ updated_range?: string | undefined;
1205
+ updated_rows?: number | undefined;
1206
+ updated_columns?: number | undefined;
1207
+ updated_cells?: number | undefined;
1208
+ updated_data?: {
1209
+ values: (string | number | boolean)[][];
1210
+ range: string;
1211
+ majorDimension?: "ROWS" | "COLUMNS" | undefined;
1212
+ } | undefined;
1213
+ }, {
1214
+ success: boolean;
1215
+ error: string;
1216
+ operation: "write_values";
1217
+ updated_range?: string | undefined;
1218
+ updated_rows?: number | undefined;
1219
+ updated_columns?: number | undefined;
1220
+ updated_cells?: number | undefined;
1221
+ updated_data?: {
1222
+ values: (string | number | boolean)[][];
1223
+ range: string;
1224
+ majorDimension?: "ROWS" | "COLUMNS" | undefined;
1225
+ } | undefined;
1226
+ }>, z.ZodObject<{
1227
+ operation: z.ZodLiteral<"update_values">;
1228
+ success: z.ZodBoolean;
1229
+ updated_range: z.ZodOptional<z.ZodString>;
1230
+ updated_rows: z.ZodOptional<z.ZodNumber>;
1231
+ updated_columns: z.ZodOptional<z.ZodNumber>;
1232
+ updated_cells: z.ZodOptional<z.ZodNumber>;
1233
+ updated_data: z.ZodOptional<z.ZodObject<{
1234
+ range: z.ZodString;
1235
+ majorDimension: z.ZodOptional<z.ZodEnum<["ROWS", "COLUMNS"]>>;
1236
+ values: z.ZodArray<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>, "many">, "many">;
1237
+ }, "strip", z.ZodTypeAny, {
1238
+ values: (string | number | boolean)[][];
1239
+ range: string;
1240
+ majorDimension?: "ROWS" | "COLUMNS" | undefined;
1241
+ }, {
1242
+ values: (string | number | boolean)[][];
1243
+ range: string;
1244
+ majorDimension?: "ROWS" | "COLUMNS" | undefined;
1245
+ }>>;
1246
+ error: z.ZodString;
1247
+ }, "strip", z.ZodTypeAny, {
1248
+ success: boolean;
1249
+ error: string;
1250
+ operation: "update_values";
1251
+ updated_range?: string | undefined;
1252
+ updated_rows?: number | undefined;
1253
+ updated_columns?: number | undefined;
1254
+ updated_cells?: number | undefined;
1255
+ updated_data?: {
1256
+ values: (string | number | boolean)[][];
1257
+ range: string;
1258
+ majorDimension?: "ROWS" | "COLUMNS" | undefined;
1259
+ } | undefined;
1260
+ }, {
1261
+ success: boolean;
1262
+ error: string;
1263
+ operation: "update_values";
1264
+ updated_range?: string | undefined;
1265
+ updated_rows?: number | undefined;
1266
+ updated_columns?: number | undefined;
1267
+ updated_cells?: number | undefined;
1268
+ updated_data?: {
1269
+ values: (string | number | boolean)[][];
1270
+ range: string;
1271
+ majorDimension?: "ROWS" | "COLUMNS" | undefined;
1272
+ } | undefined;
1273
+ }>, z.ZodObject<{
1274
+ operation: z.ZodLiteral<"append_values">;
1275
+ success: z.ZodBoolean;
1276
+ table_range: z.ZodOptional<z.ZodString>;
1277
+ updated_range: z.ZodOptional<z.ZodString>;
1278
+ updated_rows: z.ZodOptional<z.ZodNumber>;
1279
+ updated_columns: z.ZodOptional<z.ZodNumber>;
1280
+ updated_cells: z.ZodOptional<z.ZodNumber>;
1281
+ error: z.ZodString;
1282
+ }, "strip", z.ZodTypeAny, {
1283
+ success: boolean;
1284
+ error: string;
1285
+ operation: "append_values";
1286
+ updated_range?: string | undefined;
1287
+ updated_rows?: number | undefined;
1288
+ updated_columns?: number | undefined;
1289
+ updated_cells?: number | undefined;
1290
+ table_range?: string | undefined;
1291
+ }, {
1292
+ success: boolean;
1293
+ error: string;
1294
+ operation: "append_values";
1295
+ updated_range?: string | undefined;
1296
+ updated_rows?: number | undefined;
1297
+ updated_columns?: number | undefined;
1298
+ updated_cells?: number | undefined;
1299
+ table_range?: string | undefined;
1300
+ }>, z.ZodObject<{
1301
+ operation: z.ZodLiteral<"clear_values">;
1302
+ success: z.ZodBoolean;
1303
+ cleared_range: z.ZodOptional<z.ZodString>;
1304
+ error: z.ZodString;
1305
+ }, "strip", z.ZodTypeAny, {
1306
+ success: boolean;
1307
+ error: string;
1308
+ operation: "clear_values";
1309
+ cleared_range?: string | undefined;
1310
+ }, {
1311
+ success: boolean;
1312
+ error: string;
1313
+ operation: "clear_values";
1314
+ cleared_range?: string | undefined;
1315
+ }>, z.ZodObject<{
1316
+ operation: z.ZodLiteral<"batch_read_values">;
1317
+ success: z.ZodBoolean;
1318
+ value_ranges: z.ZodOptional<z.ZodArray<z.ZodObject<{
1319
+ range: z.ZodString;
1320
+ majorDimension: z.ZodOptional<z.ZodEnum<["ROWS", "COLUMNS"]>>;
1321
+ values: z.ZodArray<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>, "many">, "many">;
1322
+ }, "strip", z.ZodTypeAny, {
1323
+ values: (string | number | boolean)[][];
1324
+ range: string;
1325
+ majorDimension?: "ROWS" | "COLUMNS" | undefined;
1326
+ }, {
1327
+ values: (string | number | boolean)[][];
1328
+ range: string;
1329
+ majorDimension?: "ROWS" | "COLUMNS" | undefined;
1330
+ }>, "many">>;
1331
+ error: z.ZodString;
1332
+ }, "strip", z.ZodTypeAny, {
1333
+ success: boolean;
1334
+ error: string;
1335
+ operation: "batch_read_values";
1336
+ value_ranges?: {
1337
+ values: (string | number | boolean)[][];
1338
+ range: string;
1339
+ majorDimension?: "ROWS" | "COLUMNS" | undefined;
1340
+ }[] | undefined;
1341
+ }, {
1342
+ success: boolean;
1343
+ error: string;
1344
+ operation: "batch_read_values";
1345
+ value_ranges?: {
1346
+ values: (string | number | boolean)[][];
1347
+ range: string;
1348
+ majorDimension?: "ROWS" | "COLUMNS" | undefined;
1349
+ }[] | undefined;
1350
+ }>, z.ZodObject<{
1351
+ operation: z.ZodLiteral<"batch_update_values">;
1352
+ success: z.ZodBoolean;
1353
+ total_updated_rows: z.ZodOptional<z.ZodNumber>;
1354
+ total_updated_columns: z.ZodOptional<z.ZodNumber>;
1355
+ total_updated_cells: z.ZodOptional<z.ZodNumber>;
1356
+ total_updated_sheets: z.ZodOptional<z.ZodNumber>;
1357
+ responses: z.ZodOptional<z.ZodArray<z.ZodObject<{
1358
+ updated_range: z.ZodOptional<z.ZodString>;
1359
+ updated_rows: z.ZodOptional<z.ZodNumber>;
1360
+ updated_columns: z.ZodOptional<z.ZodNumber>;
1361
+ updated_cells: z.ZodOptional<z.ZodNumber>;
1362
+ }, "strip", z.ZodTypeAny, {
1363
+ updated_range?: string | undefined;
1364
+ updated_rows?: number | undefined;
1365
+ updated_columns?: number | undefined;
1366
+ updated_cells?: number | undefined;
1367
+ }, {
1368
+ updated_range?: string | undefined;
1369
+ updated_rows?: number | undefined;
1370
+ updated_columns?: number | undefined;
1371
+ updated_cells?: number | undefined;
1372
+ }>, "many">>;
1373
+ error: z.ZodString;
1374
+ }, "strip", z.ZodTypeAny, {
1375
+ success: boolean;
1376
+ error: string;
1377
+ operation: "batch_update_values";
1378
+ total_updated_rows?: number | undefined;
1379
+ total_updated_columns?: number | undefined;
1380
+ total_updated_cells?: number | undefined;
1381
+ total_updated_sheets?: number | undefined;
1382
+ responses?: {
1383
+ updated_range?: string | undefined;
1384
+ updated_rows?: number | undefined;
1385
+ updated_columns?: number | undefined;
1386
+ updated_cells?: number | undefined;
1387
+ }[] | undefined;
1388
+ }, {
1389
+ success: boolean;
1390
+ error: string;
1391
+ operation: "batch_update_values";
1392
+ total_updated_rows?: number | undefined;
1393
+ total_updated_columns?: number | undefined;
1394
+ total_updated_cells?: number | undefined;
1395
+ total_updated_sheets?: number | undefined;
1396
+ responses?: {
1397
+ updated_range?: string | undefined;
1398
+ updated_rows?: number | undefined;
1399
+ updated_columns?: number | undefined;
1400
+ updated_cells?: number | undefined;
1401
+ }[] | undefined;
1402
+ }>, z.ZodObject<{
1403
+ operation: z.ZodLiteral<"get_spreadsheet_info">;
1404
+ success: z.ZodBoolean;
1405
+ spreadsheet: z.ZodOptional<z.ZodObject<{
1406
+ spreadsheetId: z.ZodString;
1407
+ properties: z.ZodOptional<z.ZodObject<{
1408
+ title: z.ZodString;
1409
+ locale: z.ZodOptional<z.ZodString>;
1410
+ autoRecalc: z.ZodOptional<z.ZodString>;
1411
+ timeZone: z.ZodOptional<z.ZodString>;
1412
+ }, "strip", z.ZodTypeAny, {
1413
+ title: string;
1414
+ locale?: string | undefined;
1415
+ autoRecalc?: string | undefined;
1416
+ timeZone?: string | undefined;
1417
+ }, {
1418
+ title: string;
1419
+ locale?: string | undefined;
1420
+ autoRecalc?: string | undefined;
1421
+ timeZone?: string | undefined;
1422
+ }>>;
1423
+ sheets: z.ZodOptional<z.ZodArray<z.ZodObject<{
1424
+ properties: z.ZodObject<{
1425
+ sheetId: z.ZodNumber;
1426
+ title: z.ZodString;
1427
+ index: z.ZodNumber;
1428
+ sheetType: z.ZodOptional<z.ZodString>;
1429
+ gridProperties: z.ZodOptional<z.ZodObject<{
1430
+ rowCount: z.ZodOptional<z.ZodNumber>;
1431
+ columnCount: z.ZodOptional<z.ZodNumber>;
1432
+ }, "strip", z.ZodTypeAny, {
1433
+ rowCount?: number | undefined;
1434
+ columnCount?: number | undefined;
1435
+ }, {
1436
+ rowCount?: number | undefined;
1437
+ columnCount?: number | undefined;
1438
+ }>>;
1439
+ }, "strip", z.ZodTypeAny, {
1440
+ title: string;
1441
+ index: number;
1442
+ sheetId: number;
1443
+ sheetType?: string | undefined;
1444
+ gridProperties?: {
1445
+ rowCount?: number | undefined;
1446
+ columnCount?: number | undefined;
1447
+ } | undefined;
1448
+ }, {
1449
+ title: string;
1450
+ index: number;
1451
+ sheetId: number;
1452
+ sheetType?: string | undefined;
1453
+ gridProperties?: {
1454
+ rowCount?: number | undefined;
1455
+ columnCount?: number | undefined;
1456
+ } | undefined;
1457
+ }>;
1458
+ }, "strip", z.ZodTypeAny, {
1459
+ properties: {
1460
+ title: string;
1461
+ index: number;
1462
+ sheetId: number;
1463
+ sheetType?: string | undefined;
1464
+ gridProperties?: {
1465
+ rowCount?: number | undefined;
1466
+ columnCount?: number | undefined;
1467
+ } | undefined;
1468
+ };
1469
+ }, {
1470
+ properties: {
1471
+ title: string;
1472
+ index: number;
1473
+ sheetId: number;
1474
+ sheetType?: string | undefined;
1475
+ gridProperties?: {
1476
+ rowCount?: number | undefined;
1477
+ columnCount?: number | undefined;
1478
+ } | undefined;
1479
+ };
1480
+ }>, "many">>;
1481
+ spreadsheetUrl: z.ZodOptional<z.ZodString>;
1482
+ }, "strip", z.ZodTypeAny, {
1483
+ spreadsheetId: string;
1484
+ properties?: {
1485
+ title: string;
1486
+ locale?: string | undefined;
1487
+ autoRecalc?: string | undefined;
1488
+ timeZone?: string | undefined;
1489
+ } | undefined;
1490
+ sheets?: {
1491
+ properties: {
1492
+ title: string;
1493
+ index: number;
1494
+ sheetId: number;
1495
+ sheetType?: string | undefined;
1496
+ gridProperties?: {
1497
+ rowCount?: number | undefined;
1498
+ columnCount?: number | undefined;
1499
+ } | undefined;
1500
+ };
1501
+ }[] | undefined;
1502
+ spreadsheetUrl?: string | undefined;
1503
+ }, {
1504
+ spreadsheetId: string;
1505
+ properties?: {
1506
+ title: string;
1507
+ locale?: string | undefined;
1508
+ autoRecalc?: string | undefined;
1509
+ timeZone?: string | undefined;
1510
+ } | undefined;
1511
+ sheets?: {
1512
+ properties: {
1513
+ title: string;
1514
+ index: number;
1515
+ sheetId: number;
1516
+ sheetType?: string | undefined;
1517
+ gridProperties?: {
1518
+ rowCount?: number | undefined;
1519
+ columnCount?: number | undefined;
1520
+ } | undefined;
1521
+ };
1522
+ }[] | undefined;
1523
+ spreadsheetUrl?: string | undefined;
1524
+ }>>;
1525
+ error: z.ZodString;
1526
+ }, "strip", z.ZodTypeAny, {
1527
+ success: boolean;
1528
+ error: string;
1529
+ operation: "get_spreadsheet_info";
1530
+ spreadsheet?: {
1531
+ spreadsheetId: string;
1532
+ properties?: {
1533
+ title: string;
1534
+ locale?: string | undefined;
1535
+ autoRecalc?: string | undefined;
1536
+ timeZone?: string | undefined;
1537
+ } | undefined;
1538
+ sheets?: {
1539
+ properties: {
1540
+ title: string;
1541
+ index: number;
1542
+ sheetId: number;
1543
+ sheetType?: string | undefined;
1544
+ gridProperties?: {
1545
+ rowCount?: number | undefined;
1546
+ columnCount?: number | undefined;
1547
+ } | undefined;
1548
+ };
1549
+ }[] | undefined;
1550
+ spreadsheetUrl?: string | undefined;
1551
+ } | undefined;
1552
+ }, {
1553
+ success: boolean;
1554
+ error: string;
1555
+ operation: "get_spreadsheet_info";
1556
+ spreadsheet?: {
1557
+ spreadsheetId: string;
1558
+ properties?: {
1559
+ title: string;
1560
+ locale?: string | undefined;
1561
+ autoRecalc?: string | undefined;
1562
+ timeZone?: string | undefined;
1563
+ } | undefined;
1564
+ sheets?: {
1565
+ properties: {
1566
+ title: string;
1567
+ index: number;
1568
+ sheetId: number;
1569
+ sheetType?: string | undefined;
1570
+ gridProperties?: {
1571
+ rowCount?: number | undefined;
1572
+ columnCount?: number | undefined;
1573
+ } | undefined;
1574
+ };
1575
+ }[] | undefined;
1576
+ spreadsheetUrl?: string | undefined;
1577
+ } | undefined;
1578
+ }>, z.ZodObject<{
1579
+ operation: z.ZodLiteral<"create_spreadsheet">;
1580
+ success: z.ZodBoolean;
1581
+ spreadsheet: z.ZodOptional<z.ZodObject<{
1582
+ spreadsheetId: z.ZodString;
1583
+ properties: z.ZodOptional<z.ZodObject<{
1584
+ title: z.ZodString;
1585
+ locale: z.ZodOptional<z.ZodString>;
1586
+ autoRecalc: z.ZodOptional<z.ZodString>;
1587
+ timeZone: z.ZodOptional<z.ZodString>;
1588
+ }, "strip", z.ZodTypeAny, {
1589
+ title: string;
1590
+ locale?: string | undefined;
1591
+ autoRecalc?: string | undefined;
1592
+ timeZone?: string | undefined;
1593
+ }, {
1594
+ title: string;
1595
+ locale?: string | undefined;
1596
+ autoRecalc?: string | undefined;
1597
+ timeZone?: string | undefined;
1598
+ }>>;
1599
+ sheets: z.ZodOptional<z.ZodArray<z.ZodObject<{
1600
+ properties: z.ZodObject<{
1601
+ sheetId: z.ZodNumber;
1602
+ title: z.ZodString;
1603
+ index: z.ZodNumber;
1604
+ sheetType: z.ZodOptional<z.ZodString>;
1605
+ gridProperties: z.ZodOptional<z.ZodObject<{
1606
+ rowCount: z.ZodOptional<z.ZodNumber>;
1607
+ columnCount: z.ZodOptional<z.ZodNumber>;
1608
+ }, "strip", z.ZodTypeAny, {
1609
+ rowCount?: number | undefined;
1610
+ columnCount?: number | undefined;
1611
+ }, {
1612
+ rowCount?: number | undefined;
1613
+ columnCount?: number | undefined;
1614
+ }>>;
1615
+ }, "strip", z.ZodTypeAny, {
1616
+ title: string;
1617
+ index: number;
1618
+ sheetId: number;
1619
+ sheetType?: string | undefined;
1620
+ gridProperties?: {
1621
+ rowCount?: number | undefined;
1622
+ columnCount?: number | undefined;
1623
+ } | undefined;
1624
+ }, {
1625
+ title: string;
1626
+ index: number;
1627
+ sheetId: number;
1628
+ sheetType?: string | undefined;
1629
+ gridProperties?: {
1630
+ rowCount?: number | undefined;
1631
+ columnCount?: number | undefined;
1632
+ } | undefined;
1633
+ }>;
1634
+ }, "strip", z.ZodTypeAny, {
1635
+ properties: {
1636
+ title: string;
1637
+ index: number;
1638
+ sheetId: number;
1639
+ sheetType?: string | undefined;
1640
+ gridProperties?: {
1641
+ rowCount?: number | undefined;
1642
+ columnCount?: number | undefined;
1643
+ } | undefined;
1644
+ };
1645
+ }, {
1646
+ properties: {
1647
+ title: string;
1648
+ index: number;
1649
+ sheetId: number;
1650
+ sheetType?: string | undefined;
1651
+ gridProperties?: {
1652
+ rowCount?: number | undefined;
1653
+ columnCount?: number | undefined;
1654
+ } | undefined;
1655
+ };
1656
+ }>, "many">>;
1657
+ spreadsheetUrl: z.ZodOptional<z.ZodString>;
1658
+ }, "strip", z.ZodTypeAny, {
1659
+ spreadsheetId: string;
1660
+ properties?: {
1661
+ title: string;
1662
+ locale?: string | undefined;
1663
+ autoRecalc?: string | undefined;
1664
+ timeZone?: string | undefined;
1665
+ } | undefined;
1666
+ sheets?: {
1667
+ properties: {
1668
+ title: string;
1669
+ index: number;
1670
+ sheetId: number;
1671
+ sheetType?: string | undefined;
1672
+ gridProperties?: {
1673
+ rowCount?: number | undefined;
1674
+ columnCount?: number | undefined;
1675
+ } | undefined;
1676
+ };
1677
+ }[] | undefined;
1678
+ spreadsheetUrl?: string | undefined;
1679
+ }, {
1680
+ spreadsheetId: string;
1681
+ properties?: {
1682
+ title: string;
1683
+ locale?: string | undefined;
1684
+ autoRecalc?: string | undefined;
1685
+ timeZone?: string | undefined;
1686
+ } | undefined;
1687
+ sheets?: {
1688
+ properties: {
1689
+ title: string;
1690
+ index: number;
1691
+ sheetId: number;
1692
+ sheetType?: string | undefined;
1693
+ gridProperties?: {
1694
+ rowCount?: number | undefined;
1695
+ columnCount?: number | undefined;
1696
+ } | undefined;
1697
+ };
1698
+ }[] | undefined;
1699
+ spreadsheetUrl?: string | undefined;
1700
+ }>>;
1701
+ error: z.ZodString;
1702
+ }, "strip", z.ZodTypeAny, {
1703
+ success: boolean;
1704
+ error: string;
1705
+ operation: "create_spreadsheet";
1706
+ spreadsheet?: {
1707
+ spreadsheetId: string;
1708
+ properties?: {
1709
+ title: string;
1710
+ locale?: string | undefined;
1711
+ autoRecalc?: string | undefined;
1712
+ timeZone?: string | undefined;
1713
+ } | undefined;
1714
+ sheets?: {
1715
+ properties: {
1716
+ title: string;
1717
+ index: number;
1718
+ sheetId: number;
1719
+ sheetType?: string | undefined;
1720
+ gridProperties?: {
1721
+ rowCount?: number | undefined;
1722
+ columnCount?: number | undefined;
1723
+ } | undefined;
1724
+ };
1725
+ }[] | undefined;
1726
+ spreadsheetUrl?: string | undefined;
1727
+ } | undefined;
1728
+ }, {
1729
+ success: boolean;
1730
+ error: string;
1731
+ operation: "create_spreadsheet";
1732
+ spreadsheet?: {
1733
+ spreadsheetId: string;
1734
+ properties?: {
1735
+ title: string;
1736
+ locale?: string | undefined;
1737
+ autoRecalc?: string | undefined;
1738
+ timeZone?: string | undefined;
1739
+ } | undefined;
1740
+ sheets?: {
1741
+ properties: {
1742
+ title: string;
1743
+ index: number;
1744
+ sheetId: number;
1745
+ sheetType?: string | undefined;
1746
+ gridProperties?: {
1747
+ rowCount?: number | undefined;
1748
+ columnCount?: number | undefined;
1749
+ } | undefined;
1750
+ };
1751
+ }[] | undefined;
1752
+ spreadsheetUrl?: string | undefined;
1753
+ } | undefined;
1754
+ }>, z.ZodObject<{
1755
+ operation: z.ZodLiteral<"add_sheet">;
1756
+ success: z.ZodBoolean;
1757
+ sheet_id: z.ZodOptional<z.ZodNumber>;
1758
+ sheet_title: z.ZodOptional<z.ZodString>;
1759
+ error: z.ZodString;
1760
+ }, "strip", z.ZodTypeAny, {
1761
+ success: boolean;
1762
+ error: string;
1763
+ operation: "add_sheet";
1764
+ sheet_title?: string | undefined;
1765
+ sheet_id?: number | undefined;
1766
+ }, {
1767
+ success: boolean;
1768
+ error: string;
1769
+ operation: "add_sheet";
1770
+ sheet_title?: string | undefined;
1771
+ sheet_id?: number | undefined;
1772
+ }>, z.ZodObject<{
1773
+ operation: z.ZodLiteral<"delete_sheet">;
1774
+ success: z.ZodBoolean;
1775
+ deleted_sheet_id: z.ZodOptional<z.ZodNumber>;
1776
+ error: z.ZodString;
1777
+ }, "strip", z.ZodTypeAny, {
1778
+ success: boolean;
1779
+ error: string;
1780
+ operation: "delete_sheet";
1781
+ deleted_sheet_id?: number | undefined;
1782
+ }, {
1783
+ success: boolean;
1784
+ error: string;
1785
+ operation: "delete_sheet";
1786
+ deleted_sheet_id?: number | undefined;
1787
+ }>]>;
1788
+ static readonly shortDescription = "Google Sheets integration for spreadsheet operations";
1789
+ static readonly longDescription = "\n Google Sheets service integration for comprehensive spreadsheet data management.\n Use cases:\n - Read and write spreadsheet data with flexible ranges\n - Batch operations for efficient data processing\n - Create and manage spreadsheets and sheets\n - Clear and append data with various formatting options\n - Handle formulas, formatted values, and raw data\n \n Security Features:\n - OAuth 2.0 authentication with Google\n - Scoped access permissions for Google Sheets\n - Secure data validation and sanitization\n - User-controlled access to spreadsheet data\n ";
1790
+ static readonly alias = "sheets";
1791
+ constructor(params?: T, context?: BubbleContext);
1792
+ testCredential(): Promise<boolean>;
1793
+ private makeSheetsApiRequest;
1794
+ protected performAction(context?: BubbleContext): Promise<Extract<GoogleSheetsResult, {
1795
+ operation: T['operation'];
1796
+ }>>;
1797
+ private readValues;
1798
+ private writeValues;
1799
+ private updateValues;
1800
+ private appendValues;
1801
+ private clearValues;
1802
+ private batchReadValues;
1803
+ private batchUpdateValues;
1804
+ private getSpreadsheetInfo;
1805
+ private createSpreadsheet;
1806
+ private addSheet;
1807
+ private deleteSheet;
1808
+ protected chooseCredential(): string | undefined;
1809
+ }
1810
+ export {};
1811
+ //# sourceMappingURL=google-sheets.d.ts.map