@uptiqai/integrations-sdk 1.3.0 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.Plaid = exports.Wealthbox = exports.TwilioWhatsapp = exports.Stripe = exports.Resend = exports.Redtail = exports.Openai = exports.GoogleOAuth = exports.GoogleGenerativeAIImage = exports.GoogleGenerativeAI = exports.GoogleCloudStorage = exports.Gmail = exports.AzureBlobStorage = exports.AwsS3 = exports.Anthropic = void 0;
17
+ exports.Wealthbox = exports.TwilioWhatsapp = exports.Stripe = exports.Resend = exports.Redtail = exports.Plaid = exports.Openai = exports.Jira = exports.GoogleSlides = exports.GoogleSheets = exports.GoogleOAuth = exports.GoogleGenerativeAIImage = exports.GoogleGenerativeAI = exports.GoogleDrive = exports.GoogleDocs = exports.GoogleCloudStorage = exports.Gmail = exports.Gitlab = exports.AzureBlobStorage = exports.AwsS3 = exports.Anthropic = void 0;
18
18
  const generated_api_1 = require("./generated-api");
19
19
  /**
20
20
  * UPTIQ Integrations SDK
@@ -155,6 +155,63 @@ class AzureBlobStorage {
155
155
  }
156
156
  }
157
157
  exports.AzureBlobStorage = AzureBlobStorage;
158
+ /**
159
+ * Gitlab integration module
160
+ */
161
+ class Gitlab {
162
+ constructor() {
163
+ // Get the generated API methods
164
+ this.api = (0, generated_api_1.getIntegrationsAPI)();
165
+ }
166
+ /** Set GitLab OAuth app credentials for a user */
167
+ setUserCredentials(body) {
168
+ return this.api.gitlabSetUserCredentials(body);
169
+ }
170
+ /** Initiate GitLab OAuth flow */
171
+ oauthInitiate(body) {
172
+ return this.api.gitlabOauthInitiate(body);
173
+ }
174
+ oauthCallback(...args) {
175
+ return this.api.gitlabOauthCallback(...args);
176
+ }
177
+ /** Get the current user */
178
+ getCurrentUser(body) {
179
+ return this.api.gitlabGetCurrentUser(body);
180
+ }
181
+ /** List projects */
182
+ listProjects(body) {
183
+ return this.api.gitlabListProjects(body);
184
+ }
185
+ /** Retrieve a project */
186
+ getProject(body) {
187
+ return this.api.gitlabGetProject(body);
188
+ }
189
+ /** List merge requests */
190
+ listMergeRequests(body) {
191
+ return this.api.gitlabListMergeRequests(body);
192
+ }
193
+ /** Retrieve a merge request */
194
+ getMergeRequest(body) {
195
+ return this.api.gitlabGetMergeRequest(body);
196
+ }
197
+ /** Retrieve merge request diffs */
198
+ getMergeRequestDiffs(body) {
199
+ return this.api.gitlabGetMergeRequestDiffs(body);
200
+ }
201
+ /** Merge a merge request */
202
+ mergeMergeRequest(body) {
203
+ return this.api.gitlabMergeMergeRequest(body);
204
+ }
205
+ /** List merge request notes */
206
+ listMergeRequestNotes(body) {
207
+ return this.api.gitlabListMergeRequestNotes(body);
208
+ }
209
+ /** Add a note to a merge request */
210
+ createMergeRequestNote(body) {
211
+ return this.api.gitlabCreateMergeRequestNote(body);
212
+ }
213
+ }
214
+ exports.Gitlab = Gitlab;
158
215
  /**
159
216
  * Gmail integration module
160
217
  */
@@ -167,6 +224,10 @@ class Gmail {
167
224
  authStart(body) {
168
225
  return this.api.gmailAuthStart(body);
169
226
  }
227
+ /** Set Gmail OAuth app credentials for a user */
228
+ setUserCredentials(body) {
229
+ return this.api.gmailSetUserCredentials(body);
230
+ }
170
231
  oauthCallback(...args) {
171
232
  return this.api.gmailOauthCallback(...args);
172
233
  }
@@ -174,6 +235,34 @@ class Gmail {
174
235
  sendEmail(body) {
175
236
  return this.api.gmailSendEmail(body);
176
237
  }
238
+ /** Search or list Gmail messages */
239
+ listMessages(body) {
240
+ return this.api.gmailListMessages(body);
241
+ }
242
+ /** Read a Gmail message */
243
+ getMessage(body) {
244
+ return this.api.gmailGetMessage(body);
245
+ }
246
+ /** Create a Gmail draft */
247
+ createDraft(body) {
248
+ return this.api.gmailCreateDraft(body);
249
+ }
250
+ /** List Gmail labels */
251
+ listLabels(body) {
252
+ return this.api.gmailListLabels(body);
253
+ }
254
+ /** Create a Gmail label */
255
+ createLabel(body) {
256
+ return this.api.gmailCreateLabel(body);
257
+ }
258
+ /** Update a Gmail label */
259
+ updateLabel(body) {
260
+ return this.api.gmailUpdateLabel(body);
261
+ }
262
+ /** Delete a Gmail label */
263
+ deleteLabel(body) {
264
+ return this.api.gmailDeleteLabel(body);
265
+ }
177
266
  }
178
267
  exports.Gmail = Gmail;
179
268
  /**
@@ -233,6 +322,100 @@ class GoogleCloudStorage {
233
322
  }
234
323
  }
235
324
  exports.GoogleCloudStorage = GoogleCloudStorage;
325
+ /**
326
+ * GoogleDocs integration module
327
+ */
328
+ class GoogleDocs {
329
+ constructor() {
330
+ // Get the generated API methods
331
+ this.api = (0, generated_api_1.getIntegrationsAPI)();
332
+ }
333
+ /** Start Google Docs OAuth flow */
334
+ authStart(body) {
335
+ return this.api.googleDocsAuthStart(body);
336
+ }
337
+ /** Set Google Docs OAuth app credentials for a user */
338
+ setUserCredentials(body) {
339
+ return this.api.googleDocsSetUserCredentials(body);
340
+ }
341
+ oauthCallback(...args) {
342
+ return this.api.googleDocsOauthCallback(...args);
343
+ }
344
+ /** Create a Google Docs document */
345
+ createDocument(body) {
346
+ return this.api.googleDocsCreateDocument(body);
347
+ }
348
+ /** Read a Google Docs document */
349
+ getDocument(body) {
350
+ return this.api.googleDocsGetDocument(body);
351
+ }
352
+ /** Edit a Google Docs document */
353
+ batchUpdateDocument(body) {
354
+ return this.api.googleDocsBatchUpdateDocument(body);
355
+ }
356
+ /** Select Google Docs documents */
357
+ selectDocumentsLegacy(body) {
358
+ return this.api.googleDocsSelectDocumentsLegacy(body);
359
+ }
360
+ /** Select Google Docs documents */
361
+ selectDocuments(body) {
362
+ return this.api.googleDocsSelectDocuments(body);
363
+ }
364
+ }
365
+ exports.GoogleDocs = GoogleDocs;
366
+ /**
367
+ * GoogleDrive integration module
368
+ */
369
+ class GoogleDrive {
370
+ constructor() {
371
+ // Get the generated API methods
372
+ this.api = (0, generated_api_1.getIntegrationsAPI)();
373
+ }
374
+ /** Start Google Drive OAuth flow */
375
+ authStart(body) {
376
+ return this.api.googleDriveAuthStart(body);
377
+ }
378
+ /** Set Google Drive OAuth app credentials for a user */
379
+ setUserCredentials(body) {
380
+ return this.api.googleDriveSetUserCredentials(body);
381
+ }
382
+ oauthCallback(...args) {
383
+ return this.api.googleDriveOauthCallback(...args);
384
+ }
385
+ createFile(body) {
386
+ return this.api.googleDriveCreateFile(body);
387
+ }
388
+ listFiles(...args) {
389
+ return this.api.googleDriveListFiles(...args);
390
+ }
391
+ updateFile(body) {
392
+ return this.api.googleDriveUpdateFile(body);
393
+ }
394
+ deleteFile(body) {
395
+ return this.api.googleDriveDeleteFile(body);
396
+ }
397
+ /** Get a Google Drive file */
398
+ getFile(body) {
399
+ return this.api.googleDriveGetFile(body);
400
+ }
401
+ copyFile(body) {
402
+ return this.api.googleDriveCopyFile(body);
403
+ }
404
+ createPermission(body) {
405
+ return this.api.googleDriveCreatePermission(body);
406
+ }
407
+ deletePermission(body) {
408
+ return this.api.googleDriveDeletePermission(body);
409
+ }
410
+ /** List Google Drive file permissions */
411
+ listPermissions(body) {
412
+ return this.api.googleDriveListPermissions(body);
413
+ }
414
+ selectDocuments(body) {
415
+ return this.api.googleDriveSelectDocuments(body);
416
+ }
417
+ }
418
+ exports.GoogleDrive = GoogleDrive;
236
419
  /**
237
420
  * GoogleGenerativeAI integration module
238
421
  */
@@ -294,6 +477,161 @@ class GoogleOAuth {
294
477
  }
295
478
  }
296
479
  exports.GoogleOAuth = GoogleOAuth;
480
+ /**
481
+ * GoogleSheets integration module
482
+ */
483
+ class GoogleSheets {
484
+ constructor() {
485
+ // Get the generated API methods
486
+ this.api = (0, generated_api_1.getIntegrationsAPI)();
487
+ }
488
+ /** Start Google Sheets OAuth flow */
489
+ authStart(body) {
490
+ return this.api.googleSheetsAuthStart(body);
491
+ }
492
+ /** Set Google Sheets OAuth app credentials for a user */
493
+ setUserCredentials(body) {
494
+ return this.api.googleSheetsSetUserCredentials(body);
495
+ }
496
+ oauthCallback(...args) {
497
+ return this.api.googleSheetsOauthCallback(...args);
498
+ }
499
+ /** Create a Google Sheets spreadsheet */
500
+ createSpreadsheet(body) {
501
+ return this.api.googleSheetsCreateSpreadsheet(body);
502
+ }
503
+ /** Read values from a Google Sheets spreadsheet */
504
+ getValues(body) {
505
+ return this.api.googleSheetsGetValues(body);
506
+ }
507
+ /** Update values in a Google Sheets spreadsheet */
508
+ updateValues(body) {
509
+ return this.api.googleSheetsUpdateValues(body);
510
+ }
511
+ /** Append rows to a Google Sheets spreadsheet */
512
+ appendValues(body) {
513
+ return this.api.googleSheetsAppendValues(body);
514
+ }
515
+ /** Apply structural changes to a Google Sheets spreadsheet */
516
+ batchUpdate(body) {
517
+ return this.api.googleSheetsBatchUpdate(body);
518
+ }
519
+ /** Select Google Sheets spreadsheets */
520
+ selectSpreadsheets(body) {
521
+ return this.api.googleSheetsSelectSpreadsheets(body);
522
+ }
523
+ }
524
+ exports.GoogleSheets = GoogleSheets;
525
+ /**
526
+ * GoogleSlides integration module
527
+ */
528
+ class GoogleSlides {
529
+ constructor() {
530
+ // Get the generated API methods
531
+ this.api = (0, generated_api_1.getIntegrationsAPI)();
532
+ }
533
+ /** Start Google Slides OAuth flow */
534
+ authStart(body) {
535
+ return this.api.googleSlidesAuthStart(body);
536
+ }
537
+ /** Set Google Slides OAuth app credentials for a user */
538
+ setUserCredentials(body) {
539
+ return this.api.googleSlidesSetUserCredentials(body);
540
+ }
541
+ oauthCallback(...args) {
542
+ return this.api.googleSlidesOauthCallback(...args);
543
+ }
544
+ /** Create a Google Slides presentation */
545
+ createPresentation(body) {
546
+ return this.api.googleSlidesCreatePresentation(body);
547
+ }
548
+ /** Get a Google Slides presentation */
549
+ getPresentation(body) {
550
+ return this.api.googleSlidesGetPresentation(body);
551
+ }
552
+ /** Edit a Google Slides presentation */
553
+ batchUpdatePresentation(body) {
554
+ return this.api.googleSlidesBatchUpdatePresentation(body);
555
+ }
556
+ }
557
+ exports.GoogleSlides = GoogleSlides;
558
+ /**
559
+ * Jira integration module
560
+ */
561
+ class Jira {
562
+ constructor() {
563
+ // Get the generated API methods
564
+ this.api = (0, generated_api_1.getIntegrationsAPI)();
565
+ }
566
+ /** Initiate Jira OAuth flow */
567
+ oauthInitiate(body) {
568
+ return this.api.jiraOauthInitiate(body);
569
+ }
570
+ /** Set Jira OAuth app credentials for a user */
571
+ setUserCredentials(body) {
572
+ return this.api.jiraSetUserCredentials(body);
573
+ }
574
+ oauthCallback(...args) {
575
+ return this.api.jiraOauthCallback(...args);
576
+ }
577
+ /** Create an issue */
578
+ createIssue(body) {
579
+ return this.api.jiraCreateIssue(body);
580
+ }
581
+ /** Search issues with JQL */
582
+ searchIssues(body) {
583
+ return this.api.jiraSearchIssues(body);
584
+ }
585
+ /** Retrieve an issue */
586
+ getIssue(body) {
587
+ return this.api.jiraGetIssue(body);
588
+ }
589
+ /** Update an issue */
590
+ updateIssue(body) {
591
+ return this.api.jiraUpdateIssue(body);
592
+ }
593
+ /** Add a comment to an issue */
594
+ addComment(body) {
595
+ return this.api.jiraAddComment(body);
596
+ }
597
+ /** List projects */
598
+ listProjects(body) {
599
+ return this.api.jiraListProjects(body);
600
+ }
601
+ /** List issue transitions */
602
+ listTransitions(body) {
603
+ return this.api.jiraListTransitions(body);
604
+ }
605
+ /** Transition an issue */
606
+ transitionIssue(body) {
607
+ return this.api.jiraTransitionIssue(body);
608
+ }
609
+ /** List boards */
610
+ listBoards(body) {
611
+ return this.api.jiraListBoards(body);
612
+ }
613
+ /** List sprints for a board */
614
+ listSprints(body) {
615
+ return this.api.jiraListSprints(body);
616
+ }
617
+ /** Create a sprint */
618
+ createSprint(body) {
619
+ return this.api.jiraCreateSprint(body);
620
+ }
621
+ /** Update a sprint */
622
+ updateSprint(body) {
623
+ return this.api.jiraUpdateSprint(body);
624
+ }
625
+ /** Move issues to the backlog */
626
+ moveIssuesToBacklog(body) {
627
+ return this.api.jiraMoveIssuesToBacklog(body);
628
+ }
629
+ /** Move issues to a sprint */
630
+ moveIssuesToSprint(body) {
631
+ return this.api.jiraMoveIssuesToSprint(body);
632
+ }
633
+ }
634
+ exports.Jira = Jira;
297
635
  /**
298
636
  * Openai integration module
299
637
  */
@@ -316,6 +654,95 @@ class Openai {
316
654
  }
317
655
  }
318
656
  exports.Openai = Openai;
657
+ /**
658
+ * Plaid integration module
659
+ */
660
+ class Plaid {
661
+ constructor() {
662
+ // Get the generated API methods
663
+ this.api = (0, generated_api_1.getIntegrationsAPI)();
664
+ }
665
+ /** Start Plaid Hosted Link */
666
+ startHostedLink(body) {
667
+ return this.api.plaidStartHostedLink(body);
668
+ }
669
+ /** Set Plaid user credentials */
670
+ setUserCredentials(body) {
671
+ return this.api.plaidSetUserCredentials(body);
672
+ }
673
+ hostedLinkCallback(...args) {
674
+ return this.api.plaidHostedLinkCallback(...args);
675
+ }
676
+ /** Get accounts for the linked Item */
677
+ getAccounts(body) {
678
+ return this.api.plaidGetAccounts(body);
679
+ }
680
+ /** Get real-time account balances */
681
+ getAccountsBalance(body) {
682
+ return this.api.plaidGetAccountsBalance(body);
683
+ }
684
+ /** Get Auth (ACH) numbers */
685
+ getAuth(body) {
686
+ return this.api.plaidGetAuth(body);
687
+ }
688
+ /** Sync transactions (cursor-based) */
689
+ transactionsSync(body) {
690
+ return this.api.plaidTransactionsSync(body);
691
+ }
692
+ /** Get recurring transactions */
693
+ getRecurringTransactions(body) {
694
+ return this.api.plaidGetRecurringTransactions(body);
695
+ }
696
+ /** Get transactions (legacy date range) */
697
+ getTransactions(body) {
698
+ return this.api.plaidGetTransactions(body);
699
+ }
700
+ /** Get Identity */
701
+ getIdentity(body) {
702
+ return this.api.plaidGetIdentity(body);
703
+ }
704
+ /** Get Item metadata for the user’s linked Item */
705
+ getItem(body) {
706
+ return this.api.plaidGetItem(body);
707
+ }
708
+ /** Remove Item at Plaid and drop stored tokens */
709
+ removeItem(body) {
710
+ return this.api.plaidRemoveItem(body);
711
+ }
712
+ /** Get institution by ID */
713
+ getInstitutionById(body) {
714
+ return this.api.plaidGetInstitutionById(body);
715
+ }
716
+ /** Get investment holdings */
717
+ getInvestmentHoldings(body) {
718
+ return this.api.plaidGetInvestmentHoldings(body);
719
+ }
720
+ /** Get investment transactions */
721
+ getInvestmentTransactions(body) {
722
+ return this.api.plaidGetInvestmentTransactions(body);
723
+ }
724
+ /** Get liabilities */
725
+ getLiabilities(body) {
726
+ return this.api.plaidGetLiabilities(body);
727
+ }
728
+ /** Create Asset Report */
729
+ createAssetReport(body) {
730
+ return this.api.plaidCreateAssetReport(body);
731
+ }
732
+ /** Get Asset Report */
733
+ getAssetReport(body) {
734
+ return this.api.plaidGetAssetReport(body);
735
+ }
736
+ /** Refresh Asset Report */
737
+ refreshAssetReport(body) {
738
+ return this.api.plaidRefreshAssetReport(body);
739
+ }
740
+ /** Get Asset Report PDF */
741
+ getAssetReportPdf(body) {
742
+ return this.api.plaidGetAssetReportPdf(body);
743
+ }
744
+ }
745
+ exports.Plaid = Plaid;
319
746
  /**
320
747
  * Redtail integration module
321
748
  */
@@ -714,6 +1141,10 @@ class Wealthbox {
714
1141
  oauthInitiate(body) {
715
1142
  return this.api.wealthboxOauthInitiate(body);
716
1143
  }
1144
+ /** Set Wealthbox OAuth app credentials for a user */
1145
+ setUserCredentials(body) {
1146
+ return this.api.wealthboxSetUserCredentials(body);
1147
+ }
717
1148
  oauthCallback(...args) {
718
1149
  return this.api.wealthboxOauthCallback(...args);
719
1150
  }
@@ -915,91 +1346,6 @@ class Wealthbox {
915
1346
  }
916
1347
  }
917
1348
  exports.Wealthbox = Wealthbox;
918
- /**
919
- * Plaid integration module
920
- */
921
- class Plaid {
922
- constructor() {
923
- // Get the generated API methods
924
- this.api = (0, generated_api_1.getIntegrationsAPI)();
925
- }
926
- /** Start Plaid Hosted Link */
927
- startHostedLink(body) {
928
- return this.api.plaidStartHostedLink(body);
929
- }
930
- hostedLinkCallback(...args) {
931
- return this.api.plaidHostedLinkCallback(...args);
932
- }
933
- /** Get accounts for the linked Item */
934
- getAccounts(body) {
935
- return this.api.plaidGetAccounts(body);
936
- }
937
- /** Get real-time account balances */
938
- getAccountsBalance(body) {
939
- return this.api.plaidGetAccountsBalance(body);
940
- }
941
- /** Get Auth (ACH) numbers */
942
- getAuth(body) {
943
- return this.api.plaidGetAuth(body);
944
- }
945
- /** Sync transactions (cursor-based) */
946
- transactionsSync(body) {
947
- return this.api.plaidTransactionsSync(body);
948
- }
949
- /** Get recurring transactions */
950
- getRecurringTransactions(body) {
951
- return this.api.plaidGetRecurringTransactions(body);
952
- }
953
- /** Get transactions (legacy date range) */
954
- getTransactions(body) {
955
- return this.api.plaidGetTransactions(body);
956
- }
957
- /** Get Identity */
958
- getIdentity(body) {
959
- return this.api.plaidGetIdentity(body);
960
- }
961
- /** Get Item metadata for the user’s linked Item */
962
- getItem(body) {
963
- return this.api.plaidGetItem(body);
964
- }
965
- /** Remove Item at Plaid and drop stored tokens */
966
- removeItem(body) {
967
- return this.api.plaidRemoveItem(body);
968
- }
969
- /** Get institution by ID */
970
- getInstitutionById(body) {
971
- return this.api.plaidGetInstitutionById(body);
972
- }
973
- /** Get investment holdings */
974
- getInvestmentHoldings(body) {
975
- return this.api.plaidGetInvestmentHoldings(body);
976
- }
977
- /** Get investment transactions */
978
- getInvestmentTransactions(body) {
979
- return this.api.plaidGetInvestmentTransactions(body);
980
- }
981
- /** Get liabilities */
982
- getLiabilities(body) {
983
- return this.api.plaidGetLiabilities(body);
984
- }
985
- /** Create Asset Report */
986
- createAssetReport(body) {
987
- return this.api.plaidCreateAssetReport(body);
988
- }
989
- /** Get Asset Report */
990
- getAssetReport(body) {
991
- return this.api.plaidGetAssetReport(body);
992
- }
993
- /** Refresh Asset Report */
994
- refreshAssetReport(body) {
995
- return this.api.plaidRefreshAssetReport(body);
996
- }
997
- /** Get Asset Report PDF */
998
- getAssetReportPdf(body) {
999
- return this.api.plaidGetAssetReportPdf(body);
1000
- }
1001
- }
1002
- exports.Plaid = Plaid;
1003
1349
  // Re-export all types from generated API
1004
1350
  __exportStar(require("./generated-api"), exports);
1005
1351
  //# sourceMappingURL=index.js.map