@credal/actions 0.2.184 → 0.2.186

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.
@@ -33,7 +33,8 @@ export declare enum ProviderName {
33
33
  NOTION = "notion",
34
34
  GITLAB = "gitlab",
35
35
  LINEAR = "linear",
36
- HUBSPOT = "hubspot"
36
+ HUBSPOT = "hubspot",
37
+ BOXUSER = "boxUser"
37
38
  }
38
39
  export declare enum ActionName {
39
40
  FILLTEMPLATE = "fillTemplate",
@@ -50,6 +51,7 @@ export declare enum ActionName {
50
51
  GETCHANNELMESSAGES = "getChannelMessages",
51
52
  GETCHANNELMEMBERS = "getChannelMembers",
52
53
  SEARCHSLACK = "searchSlack",
54
+ SEARCHSLACKRTS = "searchSlackRTS",
53
55
  ADD = "add",
54
56
  OVERWRITEPAGE = "overwritePage",
55
57
  FETCHPAGECONTENT = "fetchPageContent",
@@ -97,6 +99,8 @@ export declare enum ActionName {
97
99
  CREATESPREADSHEET = "createSpreadsheet",
98
100
  UPDATESPREADSHEET = "updateSpreadsheet",
99
101
  APPENDROWSTOSPREADSHEET = "appendRowsToSpreadsheet",
102
+ DELETEROWFROMSPREADSHEET = "deleteRowFromSpreadsheet",
103
+ UPDATEROWSINSPREADSHEET = "updateRowsInSpreadsheet",
100
104
  CREATEPRESENTATION = "createPresentation",
101
105
  UPDATEPRESENTATION = "updatePresentation",
102
106
  GETPRESENTATION = "getPresentation",
@@ -125,9 +129,12 @@ export declare enum ActionName {
125
129
  CREATECASE = "createCase",
126
130
  GENERATESALESREPORT = "generateSalesReport",
127
131
  SEARCHALLSALESFORCERECORDS = "searchAllSalesforceRecords",
132
+ LISTREPORTS = "listReports",
133
+ EXECUTEREPORT = "executeReport",
128
134
  SEARCHSALESFORCERECORDS = "searchSalesforceRecords",
129
135
  GETSALESFORCERECORDSBYQUERY = "getSalesforceRecordsByQuery",
130
136
  GETRECORD = "getRecord",
137
+ GETREPORTMETADATA = "getReportMetadata",
131
138
  CREATEDOCUMENT = "createDocument",
132
139
  UPDATEDOCUMENT = "updateDocument",
133
140
  MESSAGETEAMSCHAT = "messageTeamsChat",
@@ -5435,6 +5442,92 @@ export declare const googleOauthAppendRowsToSpreadsheetOutputSchema: z.ZodObject
5435
5442
  }>;
5436
5443
  export type googleOauthAppendRowsToSpreadsheetOutputType = z.infer<typeof googleOauthAppendRowsToSpreadsheetOutputSchema>;
5437
5444
  export type googleOauthAppendRowsToSpreadsheetFunction = ActionFunction<googleOauthAppendRowsToSpreadsheetParamsType, AuthParamsType, googleOauthAppendRowsToSpreadsheetOutputType>;
5445
+ export declare const googleOauthDeleteRowFromSpreadsheetParamsSchema: z.ZodObject<{
5446
+ spreadsheetId: z.ZodString;
5447
+ sheetId: z.ZodNumber;
5448
+ rowIndex: z.ZodNumber;
5449
+ }, "strip", z.ZodTypeAny, {
5450
+ spreadsheetId: string;
5451
+ sheetId: number;
5452
+ rowIndex: number;
5453
+ }, {
5454
+ spreadsheetId: string;
5455
+ sheetId: number;
5456
+ rowIndex: number;
5457
+ }>;
5458
+ export type googleOauthDeleteRowFromSpreadsheetParamsType = z.infer<typeof googleOauthDeleteRowFromSpreadsheetParamsSchema>;
5459
+ export declare const googleOauthDeleteRowFromSpreadsheetOutputSchema: z.ZodObject<{
5460
+ success: z.ZodBoolean;
5461
+ spreadsheetUrl: z.ZodOptional<z.ZodString>;
5462
+ replies: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "strip", z.ZodAny, z.objectOutputType<{}, z.ZodAny, "strip">, z.objectInputType<{}, z.ZodAny, "strip">>, "many">>;
5463
+ error: z.ZodOptional<z.ZodString>;
5464
+ }, "strip", z.ZodTypeAny, {
5465
+ success: boolean;
5466
+ error?: string | undefined;
5467
+ spreadsheetUrl?: string | undefined;
5468
+ replies?: z.objectOutputType<{}, z.ZodAny, "strip">[] | undefined;
5469
+ }, {
5470
+ success: boolean;
5471
+ error?: string | undefined;
5472
+ spreadsheetUrl?: string | undefined;
5473
+ replies?: z.objectInputType<{}, z.ZodAny, "strip">[] | undefined;
5474
+ }>;
5475
+ export type googleOauthDeleteRowFromSpreadsheetOutputType = z.infer<typeof googleOauthDeleteRowFromSpreadsheetOutputSchema>;
5476
+ export type googleOauthDeleteRowFromSpreadsheetFunction = ActionFunction<googleOauthDeleteRowFromSpreadsheetParamsType, AuthParamsType, googleOauthDeleteRowFromSpreadsheetOutputType>;
5477
+ export declare const googleOauthUpdateRowsInSpreadsheetParamsSchema: z.ZodObject<{
5478
+ spreadsheetId: z.ZodString;
5479
+ sheetName: z.ZodOptional<z.ZodString>;
5480
+ startRow: z.ZodNumber;
5481
+ rows: z.ZodArray<z.ZodArray<z.ZodObject<{
5482
+ stringValue: z.ZodString;
5483
+ }, "strip", z.ZodTypeAny, {
5484
+ stringValue: string;
5485
+ }, {
5486
+ stringValue: string;
5487
+ }>, "many">, "many">;
5488
+ }, "strip", z.ZodTypeAny, {
5489
+ spreadsheetId: string;
5490
+ rows: {
5491
+ stringValue: string;
5492
+ }[][];
5493
+ startRow: number;
5494
+ sheetName?: string | undefined;
5495
+ }, {
5496
+ spreadsheetId: string;
5497
+ rows: {
5498
+ stringValue: string;
5499
+ }[][];
5500
+ startRow: number;
5501
+ sheetName?: string | undefined;
5502
+ }>;
5503
+ export type googleOauthUpdateRowsInSpreadsheetParamsType = z.infer<typeof googleOauthUpdateRowsInSpreadsheetParamsSchema>;
5504
+ export declare const googleOauthUpdateRowsInSpreadsheetOutputSchema: z.ZodObject<{
5505
+ success: z.ZodBoolean;
5506
+ spreadsheetUrl: z.ZodOptional<z.ZodString>;
5507
+ updatedRange: z.ZodOptional<z.ZodString>;
5508
+ updatedRows: z.ZodOptional<z.ZodNumber>;
5509
+ updatedColumns: z.ZodOptional<z.ZodNumber>;
5510
+ updatedCells: z.ZodOptional<z.ZodNumber>;
5511
+ error: z.ZodOptional<z.ZodString>;
5512
+ }, "strip", z.ZodTypeAny, {
5513
+ success: boolean;
5514
+ error?: string | undefined;
5515
+ spreadsheetUrl?: string | undefined;
5516
+ updatedRange?: string | undefined;
5517
+ updatedRows?: number | undefined;
5518
+ updatedColumns?: number | undefined;
5519
+ updatedCells?: number | undefined;
5520
+ }, {
5521
+ success: boolean;
5522
+ error?: string | undefined;
5523
+ spreadsheetUrl?: string | undefined;
5524
+ updatedRange?: string | undefined;
5525
+ updatedRows?: number | undefined;
5526
+ updatedColumns?: number | undefined;
5527
+ updatedCells?: number | undefined;
5528
+ }>;
5529
+ export type googleOauthUpdateRowsInSpreadsheetOutputType = z.infer<typeof googleOauthUpdateRowsInSpreadsheetOutputSchema>;
5530
+ export type googleOauthUpdateRowsInSpreadsheetFunction = ActionFunction<googleOauthUpdateRowsInSpreadsheetParamsType, AuthParamsType, googleOauthUpdateRowsInSpreadsheetOutputType>;
5438
5531
  export declare const googleOauthCreatePresentationParamsSchema: z.ZodObject<{
5439
5532
  title: z.ZodString;
5440
5533
  pageSize: z.ZodOptional<z.ZodObject<{
@@ -7102,6 +7195,46 @@ export declare const salesforceSearchAllSalesforceRecordsOutputSchema: z.ZodObje
7102
7195
  }>;
7103
7196
  export type salesforceSearchAllSalesforceRecordsOutputType = z.infer<typeof salesforceSearchAllSalesforceRecordsOutputSchema>;
7104
7197
  export type salesforceSearchAllSalesforceRecordsFunction = ActionFunction<salesforceSearchAllSalesforceRecordsParamsType, AuthParamsType, salesforceSearchAllSalesforceRecordsOutputType>;
7198
+ export declare const salesforceListReportsParamsSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
7199
+ export type salesforceListReportsParamsType = z.infer<typeof salesforceListReportsParamsSchema>;
7200
+ export declare const salesforceListReportsOutputSchema: z.ZodObject<{
7201
+ success: z.ZodBoolean;
7202
+ reports: z.ZodOptional<z.ZodArray<z.ZodObject<{}, "strip", z.ZodAny, z.objectOutputType<{}, z.ZodAny, "strip">, z.objectInputType<{}, z.ZodAny, "strip">>, "many">>;
7203
+ error: z.ZodOptional<z.ZodString>;
7204
+ }, "strip", z.ZodTypeAny, {
7205
+ success: boolean;
7206
+ error?: string | undefined;
7207
+ reports?: z.objectOutputType<{}, z.ZodAny, "strip">[] | undefined;
7208
+ }, {
7209
+ success: boolean;
7210
+ error?: string | undefined;
7211
+ reports?: z.objectInputType<{}, z.ZodAny, "strip">[] | undefined;
7212
+ }>;
7213
+ export type salesforceListReportsOutputType = z.infer<typeof salesforceListReportsOutputSchema>;
7214
+ export type salesforceListReportsFunction = ActionFunction<salesforceListReportsParamsType, AuthParamsType, salesforceListReportsOutputType>;
7215
+ export declare const salesforceExecuteReportParamsSchema: z.ZodObject<{
7216
+ reportId: z.ZodString;
7217
+ includeDetails: z.ZodOptional<z.ZodBoolean>;
7218
+ }, "strip", z.ZodTypeAny, {
7219
+ reportId: string;
7220
+ includeDetails?: boolean | undefined;
7221
+ }, {
7222
+ reportId: string;
7223
+ includeDetails?: boolean | undefined;
7224
+ }>;
7225
+ export type salesforceExecuteReportParamsType = z.infer<typeof salesforceExecuteReportParamsSchema>;
7226
+ export declare const salesforceExecuteReportOutputSchema: z.ZodObject<{
7227
+ success: z.ZodBoolean;
7228
+ error: z.ZodOptional<z.ZodString>;
7229
+ }, "strip", z.ZodTypeAny, {
7230
+ success: boolean;
7231
+ error?: string | undefined;
7232
+ }, {
7233
+ success: boolean;
7234
+ error?: string | undefined;
7235
+ }>;
7236
+ export type salesforceExecuteReportOutputType = z.infer<typeof salesforceExecuteReportOutputSchema>;
7237
+ export type salesforceExecuteReportFunction = ActionFunction<salesforceExecuteReportParamsType, AuthParamsType, salesforceExecuteReportOutputType>;
7105
7238
  export declare const salesforceSearchSalesforceRecordsParamsSchema: z.ZodObject<{
7106
7239
  keyword: z.ZodString;
7107
7240
  recordType: z.ZodString;
@@ -7293,6 +7426,95 @@ export declare const salesforceGetRecordOutputSchema: z.ZodObject<{
7293
7426
  }>;
7294
7427
  export type salesforceGetRecordOutputType = z.infer<typeof salesforceGetRecordOutputSchema>;
7295
7428
  export type salesforceGetRecordFunction = ActionFunction<salesforceGetRecordParamsType, AuthParamsType, salesforceGetRecordOutputType>;
7429
+ export declare const salesforceGetReportMetadataParamsSchema: z.ZodObject<{
7430
+ reportId: z.ZodString;
7431
+ }, "strip", z.ZodTypeAny, {
7432
+ reportId: string;
7433
+ }, {
7434
+ reportId: string;
7435
+ }>;
7436
+ export type salesforceGetReportMetadataParamsType = z.infer<typeof salesforceGetReportMetadataParamsSchema>;
7437
+ export declare const salesforceGetReportMetadataOutputSchema: z.ZodObject<{
7438
+ success: z.ZodBoolean;
7439
+ metadata: z.ZodOptional<z.ZodObject<{
7440
+ reportType: z.ZodOptional<z.ZodObject<{
7441
+ type: z.ZodOptional<z.ZodString>;
7442
+ label: z.ZodOptional<z.ZodString>;
7443
+ }, "strip", z.ZodTypeAny, {
7444
+ type?: string | undefined;
7445
+ label?: string | undefined;
7446
+ }, {
7447
+ type?: string | undefined;
7448
+ label?: string | undefined;
7449
+ }>>;
7450
+ detailColumns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
7451
+ reportFilters: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
7452
+ reportBooleanFilter: z.ZodOptional<z.ZodString>;
7453
+ standardDateFilter: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodAny, z.objectOutputType<{}, z.ZodAny, "strip">, z.objectInputType<{}, z.ZodAny, "strip">>>;
7454
+ groupingsDown: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
7455
+ groupingsAcross: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
7456
+ scope: z.ZodOptional<z.ZodString>;
7457
+ }, "strip", z.ZodTypeAny, {
7458
+ reportType?: {
7459
+ type?: string | undefined;
7460
+ label?: string | undefined;
7461
+ } | undefined;
7462
+ detailColumns?: string[] | undefined;
7463
+ reportFilters?: any[] | undefined;
7464
+ reportBooleanFilter?: string | undefined;
7465
+ standardDateFilter?: z.objectOutputType<{}, z.ZodAny, "strip"> | undefined;
7466
+ groupingsDown?: any[] | undefined;
7467
+ groupingsAcross?: any[] | undefined;
7468
+ scope?: string | undefined;
7469
+ }, {
7470
+ reportType?: {
7471
+ type?: string | undefined;
7472
+ label?: string | undefined;
7473
+ } | undefined;
7474
+ detailColumns?: string[] | undefined;
7475
+ reportFilters?: any[] | undefined;
7476
+ reportBooleanFilter?: string | undefined;
7477
+ standardDateFilter?: z.objectInputType<{}, z.ZodAny, "strip"> | undefined;
7478
+ groupingsDown?: any[] | undefined;
7479
+ groupingsAcross?: any[] | undefined;
7480
+ scope?: string | undefined;
7481
+ }>>;
7482
+ error: z.ZodOptional<z.ZodString>;
7483
+ }, "strip", z.ZodTypeAny, {
7484
+ success: boolean;
7485
+ error?: string | undefined;
7486
+ metadata?: {
7487
+ reportType?: {
7488
+ type?: string | undefined;
7489
+ label?: string | undefined;
7490
+ } | undefined;
7491
+ detailColumns?: string[] | undefined;
7492
+ reportFilters?: any[] | undefined;
7493
+ reportBooleanFilter?: string | undefined;
7494
+ standardDateFilter?: z.objectOutputType<{}, z.ZodAny, "strip"> | undefined;
7495
+ groupingsDown?: any[] | undefined;
7496
+ groupingsAcross?: any[] | undefined;
7497
+ scope?: string | undefined;
7498
+ } | undefined;
7499
+ }, {
7500
+ success: boolean;
7501
+ error?: string | undefined;
7502
+ metadata?: {
7503
+ reportType?: {
7504
+ type?: string | undefined;
7505
+ label?: string | undefined;
7506
+ } | undefined;
7507
+ detailColumns?: string[] | undefined;
7508
+ reportFilters?: any[] | undefined;
7509
+ reportBooleanFilter?: string | undefined;
7510
+ standardDateFilter?: z.objectInputType<{}, z.ZodAny, "strip"> | undefined;
7511
+ groupingsDown?: any[] | undefined;
7512
+ groupingsAcross?: any[] | undefined;
7513
+ scope?: string | undefined;
7514
+ } | undefined;
7515
+ }>;
7516
+ export type salesforceGetReportMetadataOutputType = z.infer<typeof salesforceGetReportMetadataOutputSchema>;
7517
+ export type salesforceGetReportMetadataFunction = ActionFunction<salesforceGetReportMetadataParamsType, AuthParamsType, salesforceGetReportMetadataOutputType>;
7296
7518
  export declare const microsoftCreateDocumentParamsSchema: z.ZodObject<{
7297
7519
  siteId: z.ZodOptional<z.ZodString>;
7298
7520
  name: z.ZodString;
@@ -9522,14 +9744,6 @@ export declare const gitlabGetMergeRequestOutputSchema: z.ZodObject<{
9522
9744
  author_email: string;
9523
9745
  }>, "many">;
9524
9746
  }, "strip", z.ZodTypeAny, {
9525
- commits: {
9526
- message: string;
9527
- id: string;
9528
- created_at: string;
9529
- title: string;
9530
- author_name: string;
9531
- author_email: string;
9532
- }[];
9533
9747
  metadata: {
9534
9748
  description: string;
9535
9749
  id: number;
@@ -9554,6 +9768,14 @@ export declare const gitlabGetMergeRequestOutputSchema: z.ZodObject<{
9554
9768
  };
9555
9769
  target_sha?: string | undefined;
9556
9770
  };
9771
+ commits: {
9772
+ message: string;
9773
+ id: string;
9774
+ created_at: string;
9775
+ title: string;
9776
+ author_name: string;
9777
+ author_email: string;
9778
+ }[];
9557
9779
  changes: {
9558
9780
  old_path: string;
9559
9781
  new_path: string;
@@ -9563,14 +9785,6 @@ export declare const gitlabGetMergeRequestOutputSchema: z.ZodObject<{
9563
9785
  deleted_file: boolean;
9564
9786
  }[];
9565
9787
  }, {
9566
- commits: {
9567
- message: string;
9568
- id: string;
9569
- created_at: string;
9570
- title: string;
9571
- author_name: string;
9572
- author_email: string;
9573
- }[];
9574
9788
  metadata: {
9575
9789
  description: string;
9576
9790
  id: number;
@@ -9595,6 +9809,14 @@ export declare const gitlabGetMergeRequestOutputSchema: z.ZodObject<{
9595
9809
  };
9596
9810
  target_sha?: string | undefined;
9597
9811
  };
9812
+ commits: {
9813
+ message: string;
9814
+ id: string;
9815
+ created_at: string;
9816
+ title: string;
9817
+ author_name: string;
9818
+ author_email: string;
9819
+ }[];
9598
9820
  changes: {
9599
9821
  old_path: string;
9600
9822
  new_path: string;
@@ -9608,14 +9830,6 @@ export declare const gitlabGetMergeRequestOutputSchema: z.ZodObject<{
9608
9830
  success: boolean;
9609
9831
  error?: string | undefined;
9610
9832
  results?: {
9611
- commits: {
9612
- message: string;
9613
- id: string;
9614
- created_at: string;
9615
- title: string;
9616
- author_name: string;
9617
- author_email: string;
9618
- }[];
9619
9833
  metadata: {
9620
9834
  description: string;
9621
9835
  id: number;
@@ -9640,6 +9854,14 @@ export declare const gitlabGetMergeRequestOutputSchema: z.ZodObject<{
9640
9854
  };
9641
9855
  target_sha?: string | undefined;
9642
9856
  };
9857
+ commits: {
9858
+ message: string;
9859
+ id: string;
9860
+ created_at: string;
9861
+ title: string;
9862
+ author_name: string;
9863
+ author_email: string;
9864
+ }[];
9643
9865
  changes: {
9644
9866
  old_path: string;
9645
9867
  new_path: string;
@@ -9653,14 +9875,6 @@ export declare const gitlabGetMergeRequestOutputSchema: z.ZodObject<{
9653
9875
  success: boolean;
9654
9876
  error?: string | undefined;
9655
9877
  results?: {
9656
- commits: {
9657
- message: string;
9658
- id: string;
9659
- created_at: string;
9660
- title: string;
9661
- author_name: string;
9662
- author_email: string;
9663
- }[];
9664
9878
  metadata: {
9665
9879
  description: string;
9666
9880
  id: number;
@@ -9685,6 +9899,14 @@ export declare const gitlabGetMergeRequestOutputSchema: z.ZodObject<{
9685
9899
  };
9686
9900
  target_sha?: string | undefined;
9687
9901
  };
9902
+ commits: {
9903
+ message: string;
9904
+ id: string;
9905
+ created_at: string;
9906
+ title: string;
9907
+ author_name: string;
9908
+ author_email: string;
9909
+ }[];
9688
9910
  changes: {
9689
9911
  old_path: string;
9690
9912
  new_path: string;
@@ -35,6 +35,7 @@ export var ProviderName;
35
35
  ProviderName["GITLAB"] = "gitlab";
36
36
  ProviderName["LINEAR"] = "linear";
37
37
  ProviderName["HUBSPOT"] = "hubspot";
38
+ ProviderName["BOXUSER"] = "boxUser";
38
39
  })(ProviderName || (ProviderName = {}));
39
40
  export var ActionName;
40
41
  (function (ActionName) {
@@ -52,6 +53,7 @@ export var ActionName;
52
53
  ActionName["GETCHANNELMESSAGES"] = "getChannelMessages";
53
54
  ActionName["GETCHANNELMEMBERS"] = "getChannelMembers";
54
55
  ActionName["SEARCHSLACK"] = "searchSlack";
56
+ ActionName["SEARCHSLACKRTS"] = "searchSlackRTS";
55
57
  ActionName["ADD"] = "add";
56
58
  ActionName["OVERWRITEPAGE"] = "overwritePage";
57
59
  ActionName["FETCHPAGECONTENT"] = "fetchPageContent";
@@ -99,6 +101,8 @@ export var ActionName;
99
101
  ActionName["CREATESPREADSHEET"] = "createSpreadsheet";
100
102
  ActionName["UPDATESPREADSHEET"] = "updateSpreadsheet";
101
103
  ActionName["APPENDROWSTOSPREADSHEET"] = "appendRowsToSpreadsheet";
104
+ ActionName["DELETEROWFROMSPREADSHEET"] = "deleteRowFromSpreadsheet";
105
+ ActionName["UPDATEROWSINSPREADSHEET"] = "updateRowsInSpreadsheet";
102
106
  ActionName["CREATEPRESENTATION"] = "createPresentation";
103
107
  ActionName["UPDATEPRESENTATION"] = "updatePresentation";
104
108
  ActionName["GETPRESENTATION"] = "getPresentation";
@@ -127,9 +131,12 @@ export var ActionName;
127
131
  ActionName["CREATECASE"] = "createCase";
128
132
  ActionName["GENERATESALESREPORT"] = "generateSalesReport";
129
133
  ActionName["SEARCHALLSALESFORCERECORDS"] = "searchAllSalesforceRecords";
134
+ ActionName["LISTREPORTS"] = "listReports";
135
+ ActionName["EXECUTEREPORT"] = "executeReport";
130
136
  ActionName["SEARCHSALESFORCERECORDS"] = "searchSalesforceRecords";
131
137
  ActionName["GETSALESFORCERECORDSBYQUERY"] = "getSalesforceRecordsByQuery";
132
138
  ActionName["GETRECORD"] = "getRecord";
139
+ ActionName["GETREPORTMETADATA"] = "getReportMetadata";
133
140
  ActionName["CREATEDOCUMENT"] = "createDocument";
134
141
  ActionName["UPDATEDOCUMENT"] = "updateDocument";
135
142
  ActionName["MESSAGETEAMSCHAT"] = "messageTeamsChat";
@@ -2509,6 +2516,52 @@ export const googleOauthAppendRowsToSpreadsheetOutputSchema = z.object({
2509
2516
  spreadsheetUrl: z.string().describe("The URL of the updated spreadsheet").optional(),
2510
2517
  error: z.string().describe("The error that occurred if the spreadsheet was not updated successfully").optional(),
2511
2518
  });
2519
+ export const googleOauthDeleteRowFromSpreadsheetParamsSchema = z.object({
2520
+ spreadsheetId: z
2521
+ .string()
2522
+ .describe('The ID of the Google Spreadsheet. This should be provided by the user. Can be found in the URL of the spreadsheet. For example, "1bWp1w2OVwH19mkXEiLIaP8As7N-9c_3EXF_Eo5d5Nm0".'),
2523
+ sheetId: z
2524
+ .number()
2525
+ .int()
2526
+ .describe('The ID of the specific sheet within the spreadsheet (not the sheet name). Sheet ID is 0 for the first sheet. Can be found in the URL after "gid=". For example, if the URL is "...#gid=123456789", the sheetId is 123456789.'),
2527
+ rowIndex: z
2528
+ .number()
2529
+ .int()
2530
+ .describe("The 0-based index of the row to delete. For example, to delete the first row (excluding headers if row 0 is headers), use rowIndex 1. To delete the header row, use rowIndex 0."),
2531
+ });
2532
+ export const googleOauthDeleteRowFromSpreadsheetOutputSchema = z.object({
2533
+ success: z.boolean().describe("Whether the row was deleted successfully"),
2534
+ spreadsheetUrl: z.string().describe("The URL of the updated spreadsheet").optional(),
2535
+ replies: z.array(z.object({}).catchall(z.any())).describe("The replies from the batchUpdate request").optional(),
2536
+ error: z.string().describe("The error that occurred if the row was not deleted successfully").optional(),
2537
+ });
2538
+ export const googleOauthUpdateRowsInSpreadsheetParamsSchema = z.object({
2539
+ spreadsheetId: z
2540
+ .string()
2541
+ .describe('The ID of the Google Spreadsheet. This should be provided by the user. Can be found in the URL of the spreadsheet. For example, "1bWp1w2OVwH19mkXEiLIaP8As7N-9c_3EXF_Eo5d5Nm0".'),
2542
+ sheetName: z
2543
+ .string()
2544
+ .describe('The name of the SHEET to update. This should be provided by the user. For example, "Sheet1". Defaults to "Sheet1" if not provided.')
2545
+ .optional(),
2546
+ startRow: z
2547
+ .number()
2548
+ .int()
2549
+ .describe("The row number to start updating from (1-based). For example, to update starting from the first row, use 1. To start from the second row, use 2."),
2550
+ rows: z
2551
+ .array(z
2552
+ .array(z.object({ stringValue: z.string().describe("The value of the cell") }))
2553
+ .describe("A list of cells for this row"))
2554
+ .describe("Rows of cells to update in the spreadsheet. Each row will be written sequentially starting from startRow."),
2555
+ });
2556
+ export const googleOauthUpdateRowsInSpreadsheetOutputSchema = z.object({
2557
+ success: z.boolean().describe("Whether the rows were updated successfully"),
2558
+ spreadsheetUrl: z.string().describe("The URL of the updated spreadsheet").optional(),
2559
+ updatedRange: z.string().describe("The range that was updated in A1 notation").optional(),
2560
+ updatedRows: z.number().int().describe("The number of rows that were updated").optional(),
2561
+ updatedColumns: z.number().int().describe("The number of columns that were updated").optional(),
2562
+ updatedCells: z.number().int().describe("The total number of cells that were updated").optional(),
2563
+ error: z.string().describe("The error that occurred if the rows were not updated successfully").optional(),
2564
+ });
2512
2565
  export const googleOauthCreatePresentationParamsSchema = z.object({
2513
2566
  title: z.string().describe("The title of the presentation"),
2514
2567
  pageSize: z
@@ -3659,6 +3712,23 @@ export const salesforceSearchAllSalesforceRecordsOutputSchema = z.object({
3659
3712
  .optional(),
3660
3713
  error: z.string().describe("The error that occurred if the records were not successfully retrieved").optional(),
3661
3714
  });
3715
+ export const salesforceListReportsParamsSchema = z.object({});
3716
+ export const salesforceListReportsOutputSchema = z.object({
3717
+ success: z.boolean().describe("Whether the reports were successfully retrieved"),
3718
+ reports: z
3719
+ .array(z.object({}).catchall(z.any()).describe("A Salesforce report"))
3720
+ .describe("List of available reports")
3721
+ .optional(),
3722
+ error: z.string().describe("The error that occurred if the reports were not successfully retrieved").optional(),
3723
+ });
3724
+ export const salesforceExecuteReportParamsSchema = z.object({
3725
+ reportId: z.string().describe("Id for the report to execute"),
3726
+ includeDetails: z.boolean().describe("Whether to include detailed report metadata in the response").optional(),
3727
+ });
3728
+ export const salesforceExecuteReportOutputSchema = z.object({
3729
+ success: z.boolean().describe("Whether the report was successfully executed"),
3730
+ error: z.string().describe("The error that occurred if the report was not successfully executed").optional(),
3731
+ });
3662
3732
  export const salesforceSearchSalesforceRecordsParamsSchema = z.object({
3663
3733
  keyword: z.string().describe("The keyword to search for"),
3664
3734
  recordType: z.string().describe("The type of record to search for"),
@@ -3712,6 +3782,35 @@ export const salesforceGetRecordOutputSchema = z.object({
3712
3782
  record: z.record(z.string()).describe("The retrieved record data").optional(),
3713
3783
  error: z.string().describe("The error that occurred if the record was not successfully retrieved").optional(),
3714
3784
  });
3785
+ export const salesforceGetReportMetadataParamsSchema = z.object({
3786
+ reportId: z.string().describe("Id for the report to retrieve metadata for"),
3787
+ });
3788
+ export const salesforceGetReportMetadataOutputSchema = z.object({
3789
+ success: z.boolean().describe("Whether the report metadata was successfully retrieved"),
3790
+ metadata: z
3791
+ .object({
3792
+ reportType: z
3793
+ .object({
3794
+ type: z.string().describe("The type of the report").optional(),
3795
+ label: z.string().describe("The label of the report type").optional(),
3796
+ })
3797
+ .describe("Report type information")
3798
+ .optional(),
3799
+ detailColumns: z.array(z.string()).describe("Detail columns in the report").optional(),
3800
+ reportFilters: z.array(z.any()).describe("Filters applied to the report").optional(),
3801
+ reportBooleanFilter: z.string().describe("Boolean filter logic for the report").optional(),
3802
+ standardDateFilter: z.object({}).catchall(z.any()).describe("Standard date filter configuration").optional(),
3803
+ groupingsDown: z.array(z.any()).describe("Row groupings for the report").optional(),
3804
+ groupingsAcross: z.array(z.any()).describe("Column groupings for matrix reports").optional(),
3805
+ scope: z.string().describe("The scope of the report").optional(),
3806
+ })
3807
+ .describe("Filtered metadata from the report")
3808
+ .optional(),
3809
+ error: z
3810
+ .string()
3811
+ .describe("The error that occurred if the report metadata was not successfully retrieved")
3812
+ .optional(),
3813
+ });
3715
3814
  export const microsoftCreateDocumentParamsSchema = z.object({
3716
3815
  siteId: z.string().describe("The ID of the site where the document will be created").optional(),
3717
3816
  name: z.string().describe("The name of the new document (include extension like .docx or .xlsx)"),
@@ -0,0 +1,7 @@
1
+ import type { googleOauthDeleteRowFromSpreadsheetFunction } from "../../autogen/types.js";
2
+ /**
3
+ * Deletes a row from a Google Spreadsheet using OAuth authentication
4
+ * https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets/batchUpdate
5
+ */
6
+ declare const deleteRowFromSpreadsheet: googleOauthDeleteRowFromSpreadsheetFunction;
7
+ export default deleteRowFromSpreadsheet;
@@ -0,0 +1,56 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ import { axiosClient } from "../../util/axiosClient.js";
11
+ import { MISSING_AUTH_TOKEN } from "../../util/missingAuthConstants.js";
12
+ /**
13
+ * Deletes a row from a Google Spreadsheet using OAuth authentication
14
+ * https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets/batchUpdate
15
+ */
16
+ const deleteRowFromSpreadsheet = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
17
+ if (!authParams.authToken) {
18
+ throw new Error(MISSING_AUTH_TOKEN);
19
+ }
20
+ const { spreadsheetId, sheetId, rowIndex } = params;
21
+ const batchUpdateUrl = `https://sheets.googleapis.com/v4/spreadsheets/${spreadsheetId}:batchUpdate`;
22
+ try {
23
+ yield axiosClient.post(batchUpdateUrl, {
24
+ requests: [
25
+ {
26
+ deleteDimension: {
27
+ range: {
28
+ sheetId: sheetId,
29
+ dimension: "ROWS",
30
+ startIndex: rowIndex,
31
+ endIndex: rowIndex + 1,
32
+ },
33
+ },
34
+ },
35
+ ],
36
+ }, {
37
+ headers: {
38
+ Authorization: `Bearer ${authParams.authToken}`,
39
+ "Content-Type": "application/json",
40
+ },
41
+ });
42
+ const spreadsheetUrl = `https://docs.google.com/spreadsheets/d/${spreadsheetId}`;
43
+ return {
44
+ success: true,
45
+ spreadsheetUrl,
46
+ };
47
+ }
48
+ catch (error) {
49
+ console.error("Error deleting row from spreadsheet", error);
50
+ return {
51
+ success: false,
52
+ error: error instanceof Error ? error.message : "Unknown error",
53
+ };
54
+ }
55
+ });
56
+ export default deleteRowFromSpreadsheet;
@@ -0,0 +1,7 @@
1
+ import type { googleOauthUpdateRowsInSpreadsheetFunction } from "../../autogen/types.js";
2
+ /**
3
+ * Updates one or more rows in a Google Spreadsheet using OAuth authentication
4
+ * https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets.values/update
5
+ */
6
+ declare const updateRowsInSpreadsheet: googleOauthUpdateRowsInSpreadsheetFunction;
7
+ export default updateRowsInSpreadsheet;
@@ -0,0 +1,63 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ import { axiosClient } from "../../util/axiosClient.js";
11
+ import { MISSING_AUTH_TOKEN } from "../../util/missingAuthConstants.js";
12
+ /**
13
+ * Updates one or more rows in a Google Spreadsheet using OAuth authentication
14
+ * https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets.values/update
15
+ */
16
+ const updateRowsInSpreadsheet = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
17
+ if (!authParams.authToken) {
18
+ throw new Error(MISSING_AUTH_TOKEN);
19
+ }
20
+ const { spreadsheetId, sheetName, startRow, rows } = params;
21
+ if (rows.length === 0) {
22
+ throw new Error("rows array cannot be empty");
23
+ }
24
+ const values = rows.map(row => row.map(cell => cell.stringValue));
25
+ if (startRow < 1) {
26
+ throw new Error("startRow must be >= 1");
27
+ }
28
+ const endRow = startRow + rows.length - 1;
29
+ const range = `'${sheetName !== null && sheetName !== void 0 ? sheetName : "Sheet1"}'!A${startRow}:ZZ${endRow}`;
30
+ const updateUrl = `https://sheets.googleapis.com/v4/spreadsheets/${spreadsheetId}/values/${encodeURIComponent(range)}`;
31
+ try {
32
+ const response = yield axiosClient.put(updateUrl, {
33
+ values,
34
+ majorDimension: "ROWS",
35
+ range,
36
+ }, {
37
+ headers: {
38
+ Authorization: `Bearer ${authParams.authToken}`,
39
+ "Content-Type": "application/json",
40
+ },
41
+ params: {
42
+ valueInputOption: "USER_ENTERED",
43
+ },
44
+ });
45
+ const spreadsheetUrl = `https://docs.google.com/spreadsheets/d/${spreadsheetId}`;
46
+ return {
47
+ success: true,
48
+ spreadsheetUrl,
49
+ updatedRange: response.data.updatedRange,
50
+ updatedRows: response.data.updatedRows,
51
+ updatedColumns: response.data.updatedColumns,
52
+ updatedCells: response.data.updatedCells,
53
+ };
54
+ }
55
+ catch (error) {
56
+ console.error("Error updating rows in spreadsheet", error);
57
+ return {
58
+ success: false,
59
+ error: error instanceof Error ? error.message : "Unknown error",
60
+ };
61
+ }
62
+ });
63
+ export default updateRowsInSpreadsheet;