@bubblelab/bubble-core 0.1.28 → 0.1.31

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 (89) hide show
  1. package/dist/bubble-bundle.d.ts +161 -92
  2. package/dist/bubble-factory.d.ts.map +1 -1
  3. package/dist/bubble-factory.js +4 -0
  4. package/dist/bubble-factory.js.map +1 -1
  5. package/dist/bubbles/service-bubble/agi-inc.d.ts +4 -4
  6. package/dist/bubbles/service-bubble/airtable.d.ts +94 -94
  7. package/dist/bubbles/service-bubble/apify/actors/google-maps-scraper.d.ts +2 -2
  8. package/dist/bubbles/service-bubble/apify/actors/instagram-hashtag-scraper.d.ts +20 -20
  9. package/dist/bubbles/service-bubble/apify/actors/instagram-scraper.d.ts +30 -30
  10. package/dist/bubbles/service-bubble/apify/actors/linkedin-posts-search.d.ts +26 -26
  11. package/dist/bubbles/service-bubble/apify/actors/linkedin-profile-posts.d.ts +56 -56
  12. package/dist/bubbles/service-bubble/apify/actors/tiktok-scraper.d.ts +16 -16
  13. package/dist/bubbles/service-bubble/apify/actors/twitter-scraper.d.ts +31 -31
  14. package/dist/bubbles/service-bubble/apify/actors/youtube-scraper.d.ts +8 -8
  15. package/dist/bubbles/service-bubble/apify/apify-scraper.schema.d.ts +153 -153
  16. package/dist/bubbles/service-bubble/apify/apify.d.ts +4 -4
  17. package/dist/bubbles/service-bubble/browserbase/browserbase.d.ts +1 -1
  18. package/dist/bubbles/service-bubble/crustdata/crustdata.d.ts +4 -4
  19. package/dist/bubbles/service-bubble/crustdata/crustdata.schema.d.ts +8 -8
  20. package/dist/bubbles/service-bubble/eleven-labs.d.ts +4 -4
  21. package/dist/bubbles/service-bubble/firecrawl.d.ts +132 -132
  22. package/dist/bubbles/service-bubble/followupboss.d.ts +34 -34
  23. package/dist/bubbles/service-bubble/github.d.ts +122 -122
  24. package/dist/bubbles/service-bubble/gmail.d.ts +391 -391
  25. package/dist/bubbles/service-bubble/google-calendar.d.ts +96 -96
  26. package/dist/bubbles/service-bubble/google-drive.d.ts +46 -46
  27. package/dist/bubbles/service-bubble/google-sheets/google-sheets.d.ts +41 -41
  28. package/dist/bubbles/service-bubble/google-sheets/google-sheets.integration.flow.d.ts +31 -0
  29. package/dist/bubbles/service-bubble/google-sheets/google-sheets.integration.flow.d.ts.map +1 -0
  30. package/dist/bubbles/service-bubble/google-sheets/google-sheets.integration.flow.js +184 -0
  31. package/dist/bubbles/service-bubble/google-sheets/google-sheets.integration.flow.js.map +1 -0
  32. package/dist/bubbles/service-bubble/google-sheets/google-sheets.schema.d.ts +79 -79
  33. package/dist/bubbles/service-bubble/google-sheets.d.ts +1811 -0
  34. package/dist/bubbles/service-bubble/google-sheets.d.ts.map +1 -0
  35. package/dist/bubbles/service-bubble/google-sheets.js +904 -0
  36. package/dist/bubbles/service-bubble/google-sheets.js.map +1 -0
  37. package/dist/bubbles/service-bubble/http.d.ts +12 -12
  38. package/dist/bubbles/service-bubble/insforge-db.d.ts +8 -8
  39. package/dist/bubbles/service-bubble/jira/index.d.ts +5 -0
  40. package/dist/bubbles/service-bubble/jira/index.d.ts.map +1 -0
  41. package/dist/bubbles/service-bubble/jira/index.js +5 -0
  42. package/dist/bubbles/service-bubble/jira/index.js.map +1 -0
  43. package/dist/bubbles/service-bubble/jira/jira.d.ts +2695 -0
  44. package/dist/bubbles/service-bubble/jira/jira.d.ts.map +1 -0
  45. package/dist/bubbles/service-bubble/jira/jira.integration.flow.d.ts +38 -0
  46. package/dist/bubbles/service-bubble/jira/jira.integration.flow.d.ts.map +1 -0
  47. package/dist/bubbles/service-bubble/jira/jira.integration.flow.js +358 -0
  48. package/dist/bubbles/service-bubble/jira/jira.integration.flow.js.map +1 -0
  49. package/dist/bubbles/service-bubble/jira/jira.js +573 -0
  50. package/dist/bubbles/service-bubble/jira/jira.js.map +1 -0
  51. package/dist/bubbles/service-bubble/jira/jira.schema.d.ts +3660 -0
  52. package/dist/bubbles/service-bubble/jira/jira.schema.d.ts.map +1 -0
  53. package/dist/bubbles/service-bubble/jira/jira.schema.js +499 -0
  54. package/dist/bubbles/service-bubble/jira/jira.schema.js.map +1 -0
  55. package/dist/bubbles/service-bubble/jira/jira.utils.d.ts +141 -0
  56. package/dist/bubbles/service-bubble/jira/jira.utils.d.ts.map +1 -0
  57. package/dist/bubbles/service-bubble/jira/jira.utils.js +428 -0
  58. package/dist/bubbles/service-bubble/jira/jira.utils.js.map +1 -0
  59. package/dist/bubbles/service-bubble/notion/notion.d.ts +4 -4
  60. package/dist/bubbles/service-bubble/notion/property-schemas.d.ts +36 -36
  61. package/dist/bubbles/service-bubble/postgresql.d.ts +8 -8
  62. package/dist/bubbles/service-bubble/resend.d.ts +2 -2
  63. package/dist/bubbles/service-bubble/slack/slack.d.ts +114 -114
  64. package/dist/bubbles/service-bubble/slack.d.ts +5869 -0
  65. package/dist/bubbles/service-bubble/slack.d.ts.map +1 -0
  66. package/dist/bubbles/service-bubble/slack.js +1536 -0
  67. package/dist/bubbles/service-bubble/slack.js.map +1 -0
  68. package/dist/bubbles/service-bubble/storage.d.ts +2 -2
  69. package/dist/bubbles/service-bubble/telegram.d.ts +6 -6
  70. package/dist/bubbles/tool-bubble/company-enrichment-tool.d.ts +4 -4
  71. package/dist/bubbles/tool-bubble/google-maps-tool.d.ts +4 -4
  72. package/dist/bubbles/tool-bubble/instagram-tool.d.ts +4 -4
  73. package/dist/bubbles/tool-bubble/linkedin-tool.d.ts +172 -172
  74. package/dist/bubbles/tool-bubble/people-search-tool.d.ts +4 -4
  75. package/dist/bubbles/tool-bubble/reddit-scrape-tool.d.ts +2 -2
  76. package/dist/bubbles/tool-bubble/research-agent-tool.d.ts +4 -4
  77. package/dist/bubbles/tool-bubble/sql-query-tool.d.ts +8 -8
  78. package/dist/bubbles/tool-bubble/tiktok-tool.d.ts +44 -44
  79. package/dist/bubbles/tool-bubble/twitter-tool.d.ts +60 -60
  80. package/dist/bubbles/tool-bubble/web-search-tool.d.ts +4 -4
  81. package/dist/bubbles/tool-bubble/youtube-tool.d.ts +10 -10
  82. package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.d.ts +18 -18
  83. package/dist/bubbles/workflow-bubble/slack-formatter-agent.d.ts +48 -48
  84. package/dist/bubbles.json +1795 -2
  85. package/dist/index.d.ts +2 -0
  86. package/dist/index.d.ts.map +1 -1
  87. package/dist/index.js +1 -0
  88. package/dist/index.js.map +1 -1
  89. package/package.json +2 -2
@@ -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
+ operation: "read_values";
15
+ range: string;
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
+ operation: "read_values";
23
+ range: string;
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
+ operation: "write_values";
41
+ range: string;
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
+ operation: "write_values";
50
+ range: string;
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
+ operation: "update_values";
68
+ range: string;
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
+ operation: "update_values";
77
+ range: string;
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
+ operation: "append_values";
96
+ range: string;
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
+ operation: "append_values";
106
+ range: string;
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
+ operation: "clear_values";
120
+ range: string;
121
+ spreadsheet_id: string;
122
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
123
+ }, {
124
+ operation: "clear_values";
125
+ range: string;
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
+ error: string;
269
+ success: boolean;
270
+ operation: "read_values";
271
+ values?: (string | number | boolean)[][] | undefined;
272
+ range?: string | undefined;
273
+ major_dimension?: string | undefined;
274
+ }, {
275
+ error: string;
276
+ success: boolean;
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
+ error: string;
304
+ success: boolean;
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
+ error: string;
317
+ success: boolean;
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
+ error: string;
351
+ success: boolean;
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
+ error: string;
364
+ success: boolean;
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
+ error: string;
386
+ success: boolean;
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
+ error: string;
395
+ success: boolean;
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
+ error: string;
409
+ success: boolean;
410
+ operation: "clear_values";
411
+ cleared_range?: string | undefined;
412
+ }, {
413
+ error: string;
414
+ success: boolean;
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
+ error: string;
436
+ success: boolean;
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
+ error: string;
445
+ success: boolean;
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
+ error: string;
478
+ success: boolean;
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
+ error: string;
492
+ success: boolean;
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
+ sheetId: number;
544
+ index: number;
545
+ sheetType?: string | undefined;
546
+ gridProperties?: {
547
+ rowCount?: number | undefined;
548
+ columnCount?: number | undefined;
549
+ } | undefined;
550
+ }, {
551
+ title: string;
552
+ sheetId: number;
553
+ index: 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
+ sheetId: number;
564
+ index: 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
+ sheetId: number;
575
+ index: 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
+ sheetId: number;
596
+ index: 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
+ sheetId: number;
617
+ index: 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
+ error: string;
630
+ success: boolean;
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
+ sheetId: number;
644
+ index: 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
+ error: string;
656
+ success: boolean;
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
+ sheetId: number;
670
+ index: 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
+ sheetId: number;
720
+ index: number;
721
+ sheetType?: string | undefined;
722
+ gridProperties?: {
723
+ rowCount?: number | undefined;
724
+ columnCount?: number | undefined;
725
+ } | undefined;
726
+ }, {
727
+ title: string;
728
+ sheetId: number;
729
+ index: 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
+ sheetId: number;
740
+ index: 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
+ sheetId: number;
751
+ index: 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
+ sheetId: number;
772
+ index: 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
+ sheetId: number;
793
+ index: 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
+ error: string;
806
+ success: boolean;
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
+ sheetId: number;
820
+ index: 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
+ error: string;
832
+ success: boolean;
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
+ sheetId: number;
846
+ index: 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
+ error: string;
864
+ success: boolean;
865
+ operation: "add_sheet";
866
+ sheet_title?: string | undefined;
867
+ sheet_id?: number | undefined;
868
+ }, {
869
+ error: string;
870
+ success: boolean;
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
+ error: string;
881
+ success: boolean;
882
+ operation: "delete_sheet";
883
+ deleted_sheet_id?: number | undefined;
884
+ }, {
885
+ error: string;
886
+ success: boolean;
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
+ operation: "read_values";
913
+ range: string;
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
+ operation: "read_values";
921
+ range: string;
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
+ operation: "write_values";
939
+ range: string;
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
+ operation: "write_values";
948
+ range: string;
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
+ operation: "update_values";
966
+ range: string;
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
+ operation: "update_values";
975
+ range: string;
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
+ operation: "append_values";
994
+ range: string;
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
+ operation: "append_values";
1004
+ range: string;
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
+ operation: "clear_values";
1018
+ range: string;
1019
+ spreadsheet_id: string;
1020
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
1021
+ }, {
1022
+ operation: "clear_values";
1023
+ range: string;
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
+ error: string;
1167
+ success: boolean;
1168
+ operation: "read_values";
1169
+ values?: (string | number | boolean)[][] | undefined;
1170
+ range?: string | undefined;
1171
+ major_dimension?: string | undefined;
1172
+ }, {
1173
+ error: string;
1174
+ success: boolean;
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
+ error: string;
1202
+ success: boolean;
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
+ error: string;
1215
+ success: boolean;
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
+ error: string;
1249
+ success: boolean;
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
+ error: string;
1262
+ success: boolean;
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
+ error: string;
1284
+ success: boolean;
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
+ error: string;
1293
+ success: boolean;
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
+ error: string;
1307
+ success: boolean;
1308
+ operation: "clear_values";
1309
+ cleared_range?: string | undefined;
1310
+ }, {
1311
+ error: string;
1312
+ success: boolean;
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
+ error: string;
1334
+ success: boolean;
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
+ error: string;
1343
+ success: boolean;
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
+ error: string;
1376
+ success: boolean;
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
+ error: string;
1390
+ success: boolean;
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
+ sheetId: number;
1442
+ index: number;
1443
+ sheetType?: string | undefined;
1444
+ gridProperties?: {
1445
+ rowCount?: number | undefined;
1446
+ columnCount?: number | undefined;
1447
+ } | undefined;
1448
+ }, {
1449
+ title: string;
1450
+ sheetId: number;
1451
+ index: 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
+ sheetId: number;
1462
+ index: 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
+ sheetId: number;
1473
+ index: 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
+ sheetId: number;
1494
+ index: 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
+ sheetId: number;
1515
+ index: 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
+ error: string;
1528
+ success: boolean;
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
+ sheetId: number;
1542
+ index: 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
+ error: string;
1554
+ success: boolean;
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
+ sheetId: number;
1568
+ index: 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
+ sheetId: number;
1618
+ index: number;
1619
+ sheetType?: string | undefined;
1620
+ gridProperties?: {
1621
+ rowCount?: number | undefined;
1622
+ columnCount?: number | undefined;
1623
+ } | undefined;
1624
+ }, {
1625
+ title: string;
1626
+ sheetId: number;
1627
+ index: 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
+ sheetId: number;
1638
+ index: 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
+ sheetId: number;
1649
+ index: 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
+ sheetId: number;
1670
+ index: 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
+ sheetId: number;
1691
+ index: 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
+ error: string;
1704
+ success: boolean;
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
+ sheetId: number;
1718
+ index: 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
+ error: string;
1730
+ success: boolean;
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
+ sheetId: number;
1744
+ index: 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
+ error: string;
1762
+ success: boolean;
1763
+ operation: "add_sheet";
1764
+ sheet_title?: string | undefined;
1765
+ sheet_id?: number | undefined;
1766
+ }, {
1767
+ error: string;
1768
+ success: boolean;
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
+ error: string;
1779
+ success: boolean;
1780
+ operation: "delete_sheet";
1781
+ deleted_sheet_id?: number | undefined;
1782
+ }, {
1783
+ error: string;
1784
+ success: boolean;
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