@mirra-messenger/sdk 0.4.0 → 0.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/client.d.ts +112 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +147 -0
- package/dist/client.js.map +1 -1
- package/dist/generated/adapters.d.ts +692 -30
- package/dist/generated/adapters.d.ts.map +1 -1
- package/dist/generated/adapters.js +706 -35
- package/dist/generated/adapters.js.map +1 -1
- package/dist/types.d.ts +168 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/README.md +0 -470
|
@@ -68,6 +68,9 @@ export interface FlowsValidateTriggerArgs {
|
|
|
68
68
|
flowId: string;
|
|
69
69
|
event: any;
|
|
70
70
|
}
|
|
71
|
+
export interface FlowsGetFlowsByEventTypeArgs {
|
|
72
|
+
eventType: string;
|
|
73
|
+
}
|
|
71
74
|
export interface UserUpdateProfileArgs {
|
|
72
75
|
username?: string;
|
|
73
76
|
email?: string;
|
|
@@ -124,6 +127,10 @@ export interface MemoryCreateArgs {
|
|
|
124
127
|
}
|
|
125
128
|
export interface MemorySearchArgs {
|
|
126
129
|
query: string;
|
|
130
|
+
types?: any[];
|
|
131
|
+
startTime?: number;
|
|
132
|
+
endTime?: number;
|
|
133
|
+
propertyFilters?: any;
|
|
127
134
|
limit?: number;
|
|
128
135
|
}
|
|
129
136
|
export interface MemoryQueryArgs {
|
|
@@ -229,8 +236,6 @@ export interface TelegramSearchMessagesArgs {
|
|
|
229
236
|
senderId?: string;
|
|
230
237
|
}
|
|
231
238
|
export interface TelegramGetRecentContactsArgs {
|
|
232
|
-
sinceDate?: string;
|
|
233
|
-
onlyNewContacts?: boolean;
|
|
234
239
|
limit?: number;
|
|
235
240
|
}
|
|
236
241
|
export interface TelegramGetChatMessagesArgs {
|
|
@@ -300,12 +305,6 @@ export interface GoogleGmailDeleteDraftArgs {
|
|
|
300
305
|
export interface GoogleGmailListDraftsArgs {
|
|
301
306
|
maxResults?: number;
|
|
302
307
|
}
|
|
303
|
-
export interface GoogleGmailMarkAsReadArgs {
|
|
304
|
-
messageId: string;
|
|
305
|
-
}
|
|
306
|
-
export interface GoogleGmailMarkAsUnreadArgs {
|
|
307
|
-
messageId: string;
|
|
308
|
-
}
|
|
309
308
|
export interface GoogleGmailDeleteEmailArgs {
|
|
310
309
|
messageId: string;
|
|
311
310
|
}
|
|
@@ -329,6 +328,26 @@ export interface GoogleCalendarGetEventsArgs {
|
|
|
329
328
|
maxResults?: number;
|
|
330
329
|
query?: string;
|
|
331
330
|
}
|
|
331
|
+
export interface GoogleCalendarGetEventArgs {
|
|
332
|
+
eventId: string;
|
|
333
|
+
}
|
|
334
|
+
export interface GoogleCalendarUpdateEventArgs {
|
|
335
|
+
eventId: string;
|
|
336
|
+
summary?: string;
|
|
337
|
+
description?: string;
|
|
338
|
+
location?: string;
|
|
339
|
+
start?: any;
|
|
340
|
+
end?: any;
|
|
341
|
+
}
|
|
342
|
+
export interface GoogleCalendarDeleteEventArgs {
|
|
343
|
+
eventId: string;
|
|
344
|
+
}
|
|
345
|
+
export interface GoogleCalendarSearchEventsArgs {
|
|
346
|
+
query: string;
|
|
347
|
+
timeMin?: string;
|
|
348
|
+
timeMax?: string;
|
|
349
|
+
maxResults?: number;
|
|
350
|
+
}
|
|
332
351
|
export interface GoogleDriveListFilesArgs {
|
|
333
352
|
query?: string;
|
|
334
353
|
pageSize?: number;
|
|
@@ -350,6 +369,26 @@ export interface GoogleDriveShareFileArgs {
|
|
|
350
369
|
email?: string;
|
|
351
370
|
role?: string;
|
|
352
371
|
}
|
|
372
|
+
export interface GoogleDriveDownloadFileArgs {
|
|
373
|
+
fileId: string;
|
|
374
|
+
}
|
|
375
|
+
export interface GoogleDriveMoveFileArgs {
|
|
376
|
+
fileId: string;
|
|
377
|
+
folderId: string;
|
|
378
|
+
}
|
|
379
|
+
export interface GoogleDriveDeleteFileArgs {
|
|
380
|
+
fileId: string;
|
|
381
|
+
permanently?: boolean;
|
|
382
|
+
}
|
|
383
|
+
export interface GoogleDriveSearchFilesArgs {
|
|
384
|
+
query: string;
|
|
385
|
+
pageSize?: number;
|
|
386
|
+
}
|
|
387
|
+
export interface GoogleDriveUpdateFileArgs {
|
|
388
|
+
fileId: string;
|
|
389
|
+
name?: string;
|
|
390
|
+
description?: string;
|
|
391
|
+
}
|
|
353
392
|
export interface GoogleSheetsCreateSpreadsheetArgs {
|
|
354
393
|
title: string;
|
|
355
394
|
}
|
|
@@ -367,6 +406,92 @@ export interface GoogleSheetsAppendRowArgs {
|
|
|
367
406
|
sheetName: string;
|
|
368
407
|
values: any[];
|
|
369
408
|
}
|
|
409
|
+
export interface GoogleSheetsGetSpreadsheetArgs {
|
|
410
|
+
spreadsheetId: string;
|
|
411
|
+
}
|
|
412
|
+
export interface GoogleSheetsInsertAtCellArgs {
|
|
413
|
+
spreadsheetId: string;
|
|
414
|
+
cell: string;
|
|
415
|
+
value: string;
|
|
416
|
+
bold?: boolean;
|
|
417
|
+
italic?: boolean;
|
|
418
|
+
foregroundColor?: string;
|
|
419
|
+
backgroundColor?: string;
|
|
420
|
+
}
|
|
421
|
+
export interface GoogleSheetsInsertFormulaArgs {
|
|
422
|
+
spreadsheetId: string;
|
|
423
|
+
cell: string;
|
|
424
|
+
formula: string;
|
|
425
|
+
note?: string;
|
|
426
|
+
}
|
|
427
|
+
export interface GoogleSheetsFormatRangeArgs {
|
|
428
|
+
spreadsheetId: string;
|
|
429
|
+
range: string;
|
|
430
|
+
bold?: boolean;
|
|
431
|
+
italic?: boolean;
|
|
432
|
+
foregroundColor?: string;
|
|
433
|
+
backgroundColor?: string;
|
|
434
|
+
borders?: boolean;
|
|
435
|
+
}
|
|
436
|
+
export interface GoogleSheetsCreateChartArgs {
|
|
437
|
+
spreadsheetId: string;
|
|
438
|
+
sheetId: number;
|
|
439
|
+
dataRange: string;
|
|
440
|
+
chartType: string;
|
|
441
|
+
title: string;
|
|
442
|
+
position: any;
|
|
443
|
+
}
|
|
444
|
+
export interface GoogleSheetsFindAndReplaceArgs {
|
|
445
|
+
spreadsheetId: string;
|
|
446
|
+
findText: string;
|
|
447
|
+
replaceText: string;
|
|
448
|
+
sheetName?: string;
|
|
449
|
+
matchCase?: boolean;
|
|
450
|
+
matchEntireCell?: boolean;
|
|
451
|
+
}
|
|
452
|
+
export interface GoogleSheetsInsertMultipleRowsArgs {
|
|
453
|
+
spreadsheetId: string;
|
|
454
|
+
sheetName: string;
|
|
455
|
+
rowsData: any[];
|
|
456
|
+
startingRow?: number;
|
|
457
|
+
formattingOptions?: any;
|
|
458
|
+
}
|
|
459
|
+
export interface GoogleSheetsClearRangeArgs {
|
|
460
|
+
spreadsheetId: string;
|
|
461
|
+
sheetName: string;
|
|
462
|
+
range: string;
|
|
463
|
+
}
|
|
464
|
+
export interface GoogleSheetsInsertRowsArgs {
|
|
465
|
+
spreadsheetId: string;
|
|
466
|
+
sheetId: number;
|
|
467
|
+
startRowIndex: number;
|
|
468
|
+
numRows: number;
|
|
469
|
+
}
|
|
470
|
+
export interface GoogleSheetsDeleteRowsArgs {
|
|
471
|
+
spreadsheetId: string;
|
|
472
|
+
sheetId: number;
|
|
473
|
+
startRowIndex: number;
|
|
474
|
+
numRows: number;
|
|
475
|
+
}
|
|
476
|
+
export interface GoogleSheetsInsertColumnsArgs {
|
|
477
|
+
spreadsheetId: string;
|
|
478
|
+
sheetId: number;
|
|
479
|
+
startColumnIndex: number;
|
|
480
|
+
numColumns: number;
|
|
481
|
+
}
|
|
482
|
+
export interface GoogleSheetsDeleteColumnsArgs {
|
|
483
|
+
spreadsheetId: string;
|
|
484
|
+
sheetId: number;
|
|
485
|
+
startColumnIndex: number;
|
|
486
|
+
numColumns: number;
|
|
487
|
+
}
|
|
488
|
+
export interface GoogleSheetsCopyRangeArgs {
|
|
489
|
+
spreadsheetId: string;
|
|
490
|
+
sourceSheetId: number;
|
|
491
|
+
sourceRange: string;
|
|
492
|
+
targetSheetId: number;
|
|
493
|
+
targetStartCell: string;
|
|
494
|
+
}
|
|
370
495
|
export interface GoogleDocsCreateDocumentArgs {
|
|
371
496
|
title: string;
|
|
372
497
|
}
|
|
@@ -382,6 +507,55 @@ export interface GoogleDocsReplaceTextArgs {
|
|
|
382
507
|
searchText: string;
|
|
383
508
|
replaceText: string;
|
|
384
509
|
}
|
|
510
|
+
export interface GoogleDocsGetDocumentContentArgs {
|
|
511
|
+
documentId: string;
|
|
512
|
+
}
|
|
513
|
+
export interface GoogleDocsInsertTextAtPositionArgs {
|
|
514
|
+
documentId: string;
|
|
515
|
+
text: string;
|
|
516
|
+
position: number;
|
|
517
|
+
}
|
|
518
|
+
export interface GoogleDocsInsertTextAfterArgs {
|
|
519
|
+
documentId: string;
|
|
520
|
+
searchText: string;
|
|
521
|
+
textToInsert: string;
|
|
522
|
+
occurrence?: number;
|
|
523
|
+
}
|
|
524
|
+
export interface GoogleDocsInsertHeadingArgs {
|
|
525
|
+
documentId: string;
|
|
526
|
+
text: string;
|
|
527
|
+
level: number;
|
|
528
|
+
position?: number;
|
|
529
|
+
insertAfterText?: string;
|
|
530
|
+
}
|
|
531
|
+
export interface GoogleDocsInsertListArgs {
|
|
532
|
+
documentId: string;
|
|
533
|
+
items: any[];
|
|
534
|
+
listType: string;
|
|
535
|
+
position?: number;
|
|
536
|
+
insertAfterText?: string;
|
|
537
|
+
}
|
|
538
|
+
export interface GoogleDocsInsertTableArgs {
|
|
539
|
+
documentId: string;
|
|
540
|
+
data: any[];
|
|
541
|
+
hasHeader?: boolean;
|
|
542
|
+
position?: number;
|
|
543
|
+
insertAfterText?: string;
|
|
544
|
+
}
|
|
545
|
+
export interface GoogleDocsUpdateDocumentContentArgs {
|
|
546
|
+
documentId: string;
|
|
547
|
+
newContent: string;
|
|
548
|
+
}
|
|
549
|
+
export interface GoogleDocsCreateSectionArgs {
|
|
550
|
+
documentId: string;
|
|
551
|
+
heading: string;
|
|
552
|
+
content: string;
|
|
553
|
+
}
|
|
554
|
+
export interface GoogleDocsFindInsertionPointArgs {
|
|
555
|
+
documentId: string;
|
|
556
|
+
position: number;
|
|
557
|
+
searchText?: string;
|
|
558
|
+
}
|
|
385
559
|
export interface JiraCreateIssueArgs {
|
|
386
560
|
projectKey: string;
|
|
387
561
|
summary: string;
|
|
@@ -427,6 +601,16 @@ export interface JiraListAssignableUsersArgs {
|
|
|
427
601
|
export interface JiraGetIssueTypesArgs {
|
|
428
602
|
projectKey: string;
|
|
429
603
|
}
|
|
604
|
+
export interface JiraDiscoverExtendedArgs {
|
|
605
|
+
query: string;
|
|
606
|
+
limit?: number;
|
|
607
|
+
}
|
|
608
|
+
export interface JiraExecuteExtendedArgs {
|
|
609
|
+
operationId: string;
|
|
610
|
+
pathParams?: any;
|
|
611
|
+
queryParams?: any;
|
|
612
|
+
body?: any;
|
|
613
|
+
}
|
|
430
614
|
export interface TwitterPostTweetArgs {
|
|
431
615
|
text: string;
|
|
432
616
|
}
|
|
@@ -485,6 +669,16 @@ export interface TrelloDeleteCheckItemArgs {
|
|
|
485
669
|
checklistId: string;
|
|
486
670
|
checkItemId: string;
|
|
487
671
|
}
|
|
672
|
+
export interface TrelloDiscoverExtendedArgs {
|
|
673
|
+
query: string;
|
|
674
|
+
limit?: number;
|
|
675
|
+
}
|
|
676
|
+
export interface TrelloExecuteExtendedArgs {
|
|
677
|
+
operationId: string;
|
|
678
|
+
pathParams?: any;
|
|
679
|
+
queryParams?: any;
|
|
680
|
+
body?: any;
|
|
681
|
+
}
|
|
488
682
|
export interface JupiterSwapArgs {
|
|
489
683
|
inputMint: string;
|
|
490
684
|
outputMint: string;
|
|
@@ -501,6 +695,15 @@ export interface JupiterGetTokenSecurityArgs {
|
|
|
501
695
|
export interface JupiterSearchTokensArgs {
|
|
502
696
|
query: string;
|
|
503
697
|
}
|
|
698
|
+
export interface JupiterRefreshSwapArgs {
|
|
699
|
+
feedItemId: string;
|
|
700
|
+
swapId: string;
|
|
701
|
+
inputMint: string;
|
|
702
|
+
outputMint: string;
|
|
703
|
+
amount: number;
|
|
704
|
+
inputDecimals: number;
|
|
705
|
+
slippageBps?: number;
|
|
706
|
+
}
|
|
504
707
|
export interface CryptoGetPriceArgs {
|
|
505
708
|
tokenAddress: string;
|
|
506
709
|
chainName?: string;
|
|
@@ -521,6 +724,15 @@ export interface CryptoMonitorPriceArgs {
|
|
|
521
724
|
export interface CryptoUnsubscribeAssetArgs {
|
|
522
725
|
tokenAddress: string;
|
|
523
726
|
}
|
|
727
|
+
export interface CryptoRefreshTransactionArgs {
|
|
728
|
+
feedItemId: string;
|
|
729
|
+
transferId: string;
|
|
730
|
+
recipient: string;
|
|
731
|
+
token: string;
|
|
732
|
+
amount: number;
|
|
733
|
+
tokenMint?: string;
|
|
734
|
+
tokenDecimals?: number;
|
|
735
|
+
}
|
|
524
736
|
export interface ScriptsCreateScriptArgs {
|
|
525
737
|
name: string;
|
|
526
738
|
description?: string;
|
|
@@ -592,6 +804,71 @@ export interface ScriptsModifyFlowScriptArgs {
|
|
|
592
804
|
export interface ScriptsLintScriptArgs {
|
|
593
805
|
code: string;
|
|
594
806
|
}
|
|
807
|
+
export interface FeedbackReportBugArgs {
|
|
808
|
+
title: string;
|
|
809
|
+
description: string;
|
|
810
|
+
severity: string;
|
|
811
|
+
stepsToReproduce?: any[];
|
|
812
|
+
expectedBehavior?: string;
|
|
813
|
+
actualBehavior?: string;
|
|
814
|
+
errorDetails?: any;
|
|
815
|
+
context?: any;
|
|
816
|
+
llmAnalysis?: string;
|
|
817
|
+
}
|
|
818
|
+
export interface FeedbackReportToolFailureArgs {
|
|
819
|
+
adapterType: string;
|
|
820
|
+
operation: string;
|
|
821
|
+
errorMessage: string;
|
|
822
|
+
errorCode?: string;
|
|
823
|
+
errorStack?: string;
|
|
824
|
+
args?: any;
|
|
825
|
+
llmAnalysis?: string;
|
|
826
|
+
suggestedFix?: string;
|
|
827
|
+
context?: any;
|
|
828
|
+
}
|
|
829
|
+
export interface FeedbackReportMissingCapabilityArgs {
|
|
830
|
+
userRequest: string;
|
|
831
|
+
reason: string;
|
|
832
|
+
suggestedCapability?: string;
|
|
833
|
+
relatedAdapters?: any[];
|
|
834
|
+
context?: any;
|
|
835
|
+
}
|
|
836
|
+
export interface FeedbackSubmitFeedbackArgs {
|
|
837
|
+
sentiment: string;
|
|
838
|
+
feedback: string;
|
|
839
|
+
category?: string;
|
|
840
|
+
context?: any;
|
|
841
|
+
}
|
|
842
|
+
export interface FeedbackSubmitFeatureRequestArgs {
|
|
843
|
+
title: string;
|
|
844
|
+
description: string;
|
|
845
|
+
useCase?: string;
|
|
846
|
+
priority?: string;
|
|
847
|
+
}
|
|
848
|
+
export interface MirraMessagingSendMessageArgs {
|
|
849
|
+
recipientId: string;
|
|
850
|
+
content: string;
|
|
851
|
+
automation?: any;
|
|
852
|
+
}
|
|
853
|
+
export interface MirraMessagingSendGroupMessageArgs {
|
|
854
|
+
groupId: string;
|
|
855
|
+
content: string;
|
|
856
|
+
automation?: any;
|
|
857
|
+
}
|
|
858
|
+
export interface MirraMessagingGetContactsArgs {
|
|
859
|
+
limit?: number;
|
|
860
|
+
offset?: number;
|
|
861
|
+
}
|
|
862
|
+
export interface MirraMessagingFindContactArgs {
|
|
863
|
+
query: string;
|
|
864
|
+
}
|
|
865
|
+
export interface MirraMessagingGetChatsArgs {
|
|
866
|
+
scope?: string;
|
|
867
|
+
limit?: number;
|
|
868
|
+
}
|
|
869
|
+
export interface MirraMessagingGetGroupsArgs {
|
|
870
|
+
limit?: number;
|
|
871
|
+
}
|
|
595
872
|
/**
|
|
596
873
|
* Flows Adapter
|
|
597
874
|
* Category: internal
|
|
@@ -724,6 +1001,11 @@ Returns detailed information about trigger matching, including which conditions
|
|
|
724
1001
|
* @param args.event - Event object to test against the trigger (must match IntegrationEvent structure)
|
|
725
1002
|
*/
|
|
726
1003
|
validateTrigger: (args: FlowsValidateTriggerArgs) => Promise<any>;
|
|
1004
|
+
/**
|
|
1005
|
+
* Get all active flows that are triggered by a specific event type. Used by frontend to show flow selection for targeted execution (e.g., call.action flows).
|
|
1006
|
+
* @param args.eventType - Event type to filter by (e.g., "call.action", "call.ended", "telegram.message")
|
|
1007
|
+
*/
|
|
1008
|
+
getFlowsByEventType: (args: FlowsGetFlowsByEventTypeArgs) => Promise<any>;
|
|
727
1009
|
};
|
|
728
1010
|
/**
|
|
729
1011
|
* User Adapter
|
|
@@ -835,17 +1117,21 @@ declare function createMemoryAdapter(sdk: MirraSDK): {
|
|
|
835
1117
|
*/
|
|
836
1118
|
create: (args: MemoryCreateArgs) => Promise<any>;
|
|
837
1119
|
/**
|
|
838
|
-
* Semantic search across memory entities
|
|
839
|
-
* @param args.query - Search query text
|
|
840
|
-
* @param args.
|
|
1120
|
+
* Semantic search across memory entities with advanced filtering
|
|
1121
|
+
* @param args.query - Search query text for semantic matching
|
|
1122
|
+
* @param args.types - Filter by entity types (e.g., ["TASK", "NOTE", "IDEA"]) (optional)
|
|
1123
|
+
* @param args.startTime - Filter entities created after this timestamp (Unix milliseconds) (optional)
|
|
1124
|
+
* @param args.endTime - Filter entities created before this timestamp (Unix milliseconds) (optional)
|
|
1125
|
+
* @param args.propertyFilters - Filter by entity properties: { status: ["completed"], tags: ["urgent"], priority: ["high"], roles: ["task"], contexts: ["work"] } (optional)
|
|
1126
|
+
* @param args.limit - Maximum number of results (default: 50, max: 100) (optional)
|
|
841
1127
|
*/
|
|
842
1128
|
search: (args: MemorySearchArgs) => Promise<any>;
|
|
843
1129
|
/**
|
|
844
|
-
* Query entities with filters
|
|
845
|
-
* @param args.type -
|
|
846
|
-
* @param args.filters - Additional filters (optional)
|
|
847
|
-
* @param args.limit - Maximum results (default: 50, max: 100) (optional)
|
|
848
|
-
* @param args.offset - Pagination offset (default: 0) (optional)
|
|
1130
|
+
* Query memory entities with filters. Returns lightweight summaries with normalized fields: id, type, name, description, status, priority, createdAt, updatedAt
|
|
1131
|
+
* @param args.type - Semantic type filter (e.g., "task", "note", "idea", "reminder", "contact", "document"). Matches against meta_item_type, subType, or semantic_roles (optional)
|
|
1132
|
+
* @param args.filters - Additional filters (not yet implemented) (optional)
|
|
1133
|
+
* @param args.limit - Maximum results (default: 50, max: 100). Use smaller limits to get complete results without truncation (optional)
|
|
1134
|
+
* @param args.offset - Pagination offset for fetching more results (default: 0) (optional)
|
|
849
1135
|
*/
|
|
850
1136
|
query: (args: MemoryQueryArgs) => Promise<any>;
|
|
851
1137
|
/**
|
|
@@ -1046,9 +1332,7 @@ declare function createTelegramAdapter(sdk: MirraSDK): {
|
|
|
1046
1332
|
*/
|
|
1047
1333
|
searchMessages: (args: TelegramSearchMessagesArgs) => Promise<any>;
|
|
1048
1334
|
/**
|
|
1049
|
-
* Get recent contacts from Telegram,
|
|
1050
|
-
* @param args.sinceDate - ISO date string - only return contacts with activity since this date (optional)
|
|
1051
|
-
* @param args.onlyNewContacts - If true, only return contacts that are new (first message after sinceDate) (optional)
|
|
1335
|
+
* Get recent private chat contacts from Telegram, ordered by most recent activity. Uses the cached chat list filtered for 1:1 conversations.
|
|
1052
1336
|
* @param args.limit - Maximum number of contacts to return (default: 100, max: 100) (optional)
|
|
1053
1337
|
*/
|
|
1054
1338
|
getRecentContacts: (args: TelegramGetRecentContactsArgs) => Promise<any>;
|
|
@@ -1151,16 +1435,6 @@ declare function createGoogleGmailAdapter(sdk: MirraSDK): {
|
|
|
1151
1435
|
* @param args.maxResults - Maximum number of drafts to return (default: 10) (optional)
|
|
1152
1436
|
*/
|
|
1153
1437
|
listDrafts: (args: GoogleGmailListDraftsArgs) => Promise<any>;
|
|
1154
|
-
/**
|
|
1155
|
-
* Mark an email as read
|
|
1156
|
-
* @param args.messageId - Gmail message ID to mark as read
|
|
1157
|
-
*/
|
|
1158
|
-
markAsRead: (args: GoogleGmailMarkAsReadArgs) => Promise<any>;
|
|
1159
|
-
/**
|
|
1160
|
-
* Mark an email as unread
|
|
1161
|
-
* @param args.messageId - Gmail message ID to mark as unread
|
|
1162
|
-
*/
|
|
1163
|
-
markAsUnread: (args: GoogleGmailMarkAsUnreadArgs) => Promise<any>;
|
|
1164
1438
|
/**
|
|
1165
1439
|
* Delete an email
|
|
1166
1440
|
* @param args.messageId - Gmail message ID to delete
|
|
@@ -1198,6 +1472,34 @@ declare function createGoogleCalendarAdapter(sdk: MirraSDK): {
|
|
|
1198
1472
|
* @param args.query - Search query to filter events (optional)
|
|
1199
1473
|
*/
|
|
1200
1474
|
getEvents: (args: GoogleCalendarGetEventsArgs) => Promise<any>;
|
|
1475
|
+
/**
|
|
1476
|
+
* Get a specific calendar event by ID
|
|
1477
|
+
* @param args.eventId - Calendar event ID
|
|
1478
|
+
*/
|
|
1479
|
+
getEvent: (args: GoogleCalendarGetEventArgs) => Promise<any>;
|
|
1480
|
+
/**
|
|
1481
|
+
* Update an existing calendar event
|
|
1482
|
+
* @param args.eventId - Calendar event ID to update
|
|
1483
|
+
* @param args.summary - Updated event title/summary (optional)
|
|
1484
|
+
* @param args.description - Updated event description (optional)
|
|
1485
|
+
* @param args.location - Updated event location (optional)
|
|
1486
|
+
* @param args.start - Updated start time object with dateTime and optional timeZone (optional)
|
|
1487
|
+
* @param args.end - Updated end time object with dateTime and optional timeZone (optional)
|
|
1488
|
+
*/
|
|
1489
|
+
updateEvent: (args: GoogleCalendarUpdateEventArgs) => Promise<any>;
|
|
1490
|
+
/**
|
|
1491
|
+
* Delete a calendar event
|
|
1492
|
+
* @param args.eventId - Calendar event ID to delete
|
|
1493
|
+
*/
|
|
1494
|
+
deleteEvent: (args: GoogleCalendarDeleteEventArgs) => Promise<any>;
|
|
1495
|
+
/**
|
|
1496
|
+
* Search calendar events by text query
|
|
1497
|
+
* @param args.query - Search query to filter events
|
|
1498
|
+
* @param args.timeMin - Start time for events to search (ISO 8601) (optional)
|
|
1499
|
+
* @param args.timeMax - End time for events to search (ISO 8601) (optional)
|
|
1500
|
+
* @param args.maxResults - Maximum number of events to return (default: 50, max: 100) (optional)
|
|
1501
|
+
*/
|
|
1502
|
+
searchEvents: (args: GoogleCalendarSearchEventsArgs) => Promise<any>;
|
|
1201
1503
|
};
|
|
1202
1504
|
/**
|
|
1203
1505
|
* Google Drive Adapter
|
|
@@ -1235,6 +1537,36 @@ declare function createGoogleDriveAdapter(sdk: MirraSDK): {
|
|
|
1235
1537
|
* @param args.role - Permission role: reader, writer, commenter (default: reader) (optional)
|
|
1236
1538
|
*/
|
|
1237
1539
|
shareFile: (args: GoogleDriveShareFileArgs) => Promise<any>;
|
|
1540
|
+
/**
|
|
1541
|
+
* Download a file from Google Drive. For Google Docs/Sheets, exports as PDF/XLSX. Returns base64-encoded data.
|
|
1542
|
+
* @param args.fileId - ID of the file to download
|
|
1543
|
+
*/
|
|
1544
|
+
downloadFile: (args: GoogleDriveDownloadFileArgs) => Promise<any>;
|
|
1545
|
+
/**
|
|
1546
|
+
* Move a file to a different folder
|
|
1547
|
+
* @param args.fileId - ID of the file to move
|
|
1548
|
+
* @param args.folderId - ID of the destination folder
|
|
1549
|
+
*/
|
|
1550
|
+
moveFile: (args: GoogleDriveMoveFileArgs) => Promise<any>;
|
|
1551
|
+
/**
|
|
1552
|
+
* Delete a file or folder. By default moves to trash; set permanently=true to delete forever.
|
|
1553
|
+
* @param args.fileId - ID of the file or folder to delete
|
|
1554
|
+
* @param args.permanently - If true, permanently delete instead of moving to trash (default: false) (optional)
|
|
1555
|
+
*/
|
|
1556
|
+
deleteFile: (args: GoogleDriveDeleteFileArgs) => Promise<any>;
|
|
1557
|
+
/**
|
|
1558
|
+
* Search for files using Google Drive query syntax
|
|
1559
|
+
* @param args.query - Search query using Drive syntax (e.g., "name contains 'report'", "mimeType='application/pdf'")
|
|
1560
|
+
* @param args.pageSize - Maximum number of files to return (default: 20) (optional)
|
|
1561
|
+
*/
|
|
1562
|
+
searchFiles: (args: GoogleDriveSearchFilesArgs) => Promise<any>;
|
|
1563
|
+
/**
|
|
1564
|
+
* Update file metadata (name, description)
|
|
1565
|
+
* @param args.fileId - ID of the file to update
|
|
1566
|
+
* @param args.name - New name for the file (optional)
|
|
1567
|
+
* @param args.description - New description for the file (optional)
|
|
1568
|
+
*/
|
|
1569
|
+
updateFile: (args: GoogleDriveUpdateFileArgs) => Promise<any>;
|
|
1238
1570
|
};
|
|
1239
1571
|
/**
|
|
1240
1572
|
* Google Sheets Adapter
|
|
@@ -1266,6 +1598,118 @@ declare function createGoogleSheetsAdapter(sdk: MirraSDK): {
|
|
|
1266
1598
|
* @param args.values - Row values to append
|
|
1267
1599
|
*/
|
|
1268
1600
|
appendRow: (args: GoogleSheetsAppendRowArgs) => Promise<any>;
|
|
1601
|
+
/**
|
|
1602
|
+
* Get spreadsheet metadata and properties
|
|
1603
|
+
* @param args.spreadsheetId - ID of the spreadsheet
|
|
1604
|
+
*/
|
|
1605
|
+
getSpreadsheet: (args: GoogleSheetsGetSpreadsheetArgs) => Promise<any>;
|
|
1606
|
+
/**
|
|
1607
|
+
* Insert a value at a specific cell with optional formatting
|
|
1608
|
+
* @param args.spreadsheetId - ID of the spreadsheet
|
|
1609
|
+
* @param args.cell - Cell reference in format SheetName!A1
|
|
1610
|
+
* @param args.value - Value to insert
|
|
1611
|
+
* @param args.bold - Make text bold (optional)
|
|
1612
|
+
* @param args.italic - Make text italic (optional)
|
|
1613
|
+
* @param args.foregroundColor - Text color (hex or named color) (optional)
|
|
1614
|
+
* @param args.backgroundColor - Cell background color (hex or named color) (optional)
|
|
1615
|
+
*/
|
|
1616
|
+
insertAtCell: (args: GoogleSheetsInsertAtCellArgs) => Promise<any>;
|
|
1617
|
+
/**
|
|
1618
|
+
* Insert a formula at a specific cell
|
|
1619
|
+
* @param args.spreadsheetId - ID of the spreadsheet
|
|
1620
|
+
* @param args.cell - Cell reference in format SheetName!A1
|
|
1621
|
+
* @param args.formula - Formula to insert (with or without leading =)
|
|
1622
|
+
* @param args.note - Optional note to add to the cell (optional)
|
|
1623
|
+
*/
|
|
1624
|
+
insertFormula: (args: GoogleSheetsInsertFormulaArgs) => Promise<any>;
|
|
1625
|
+
/**
|
|
1626
|
+
* Apply formatting to a range of cells
|
|
1627
|
+
* @param args.spreadsheetId - ID of the spreadsheet
|
|
1628
|
+
* @param args.range - Range in format SheetName!A1:B10
|
|
1629
|
+
* @param args.bold - Make text bold (optional)
|
|
1630
|
+
* @param args.italic - Make text italic (optional)
|
|
1631
|
+
* @param args.foregroundColor - Text color (hex or named color) (optional)
|
|
1632
|
+
* @param args.backgroundColor - Cell background color (hex or named color) (optional)
|
|
1633
|
+
* @param args.borders - Add borders to cells (optional)
|
|
1634
|
+
*/
|
|
1635
|
+
formatRange: (args: GoogleSheetsFormatRangeArgs) => Promise<any>;
|
|
1636
|
+
/**
|
|
1637
|
+
* Create a chart from spreadsheet data
|
|
1638
|
+
* @param args.spreadsheetId - ID of the spreadsheet
|
|
1639
|
+
* @param args.sheetId - ID of the sheet containing data
|
|
1640
|
+
* @param args.dataRange - Data range for the chart (e.g., A1:B10)
|
|
1641
|
+
* @param args.chartType - Chart type: BAR, LINE, AREA, PIE, or SCATTER
|
|
1642
|
+
* @param args.title - Chart title
|
|
1643
|
+
* @param args.position - Chart position with row, column, rowCount, columnCount
|
|
1644
|
+
*/
|
|
1645
|
+
createChart: (args: GoogleSheetsCreateChartArgs) => Promise<any>;
|
|
1646
|
+
/**
|
|
1647
|
+
* Find and replace text in a spreadsheet
|
|
1648
|
+
* @param args.spreadsheetId - ID of the spreadsheet
|
|
1649
|
+
* @param args.findText - Text to find
|
|
1650
|
+
* @param args.replaceText - Text to replace with
|
|
1651
|
+
* @param args.sheetName - Limit search to specific sheet (optional)
|
|
1652
|
+
* @param args.matchCase - Case-sensitive search (optional)
|
|
1653
|
+
* @param args.matchEntireCell - Match entire cell content only (optional)
|
|
1654
|
+
*/
|
|
1655
|
+
findAndReplace: (args: GoogleSheetsFindAndReplaceArgs) => Promise<any>;
|
|
1656
|
+
/**
|
|
1657
|
+
* Insert multiple rows of data at once
|
|
1658
|
+
* @param args.spreadsheetId - ID of the spreadsheet
|
|
1659
|
+
* @param args.sheetName - Name of the sheet
|
|
1660
|
+
* @param args.rowsData - 2D array of row data to insert
|
|
1661
|
+
* @param args.startingRow - Row number to start insertion (1-indexed). If not provided, appends to end (optional)
|
|
1662
|
+
* @param args.formattingOptions - Optional formatting to apply (bold, italic, foregroundColor, backgroundColor, borders) (optional)
|
|
1663
|
+
*/
|
|
1664
|
+
insertMultipleRows: (args: GoogleSheetsInsertMultipleRowsArgs) => Promise<any>;
|
|
1665
|
+
/**
|
|
1666
|
+
* Clear content from a range of cells
|
|
1667
|
+
* @param args.spreadsheetId - ID of the spreadsheet
|
|
1668
|
+
* @param args.sheetName - Name of the sheet
|
|
1669
|
+
* @param args.range - Range to clear (e.g., A1:B10)
|
|
1670
|
+
*/
|
|
1671
|
+
clearRange: (args: GoogleSheetsClearRangeArgs) => Promise<any>;
|
|
1672
|
+
/**
|
|
1673
|
+
* Insert empty rows at a specific position in a sheet. IMPORTANT: Requires numeric sheetId (get from getSpreadsheet), not sheet name. Row indices are 0-indexed (row 1 in UI = index 0).
|
|
1674
|
+
* @param args.spreadsheetId - ID of the spreadsheet
|
|
1675
|
+
* @param args.sheetId - Numeric sheet ID (get from getSpreadsheet response: sheets[0].properties.sheetId). This is NOT the sheet name.
|
|
1676
|
+
* @param args.startRowIndex - Row index to start inserting at (0-indexed). To insert before row 5 in the UI, use index 4.
|
|
1677
|
+
* @param args.numRows - Number of rows to insert
|
|
1678
|
+
*/
|
|
1679
|
+
insertRows: (args: GoogleSheetsInsertRowsArgs) => Promise<any>;
|
|
1680
|
+
/**
|
|
1681
|
+
* Delete rows from a sheet. IMPORTANT: Requires numeric sheetId (get from getSpreadsheet), not sheet name. Row indices are 0-indexed (row 1 in UI = index 0).
|
|
1682
|
+
* @param args.spreadsheetId - ID of the spreadsheet
|
|
1683
|
+
* @param args.sheetId - Numeric sheet ID (get from getSpreadsheet response: sheets[0].properties.sheetId). This is NOT the sheet name.
|
|
1684
|
+
* @param args.startRowIndex - Row index to start deleting from (0-indexed). To delete row 5 in the UI, use index 4.
|
|
1685
|
+
* @param args.numRows - Number of rows to delete
|
|
1686
|
+
*/
|
|
1687
|
+
deleteRows: (args: GoogleSheetsDeleteRowsArgs) => Promise<any>;
|
|
1688
|
+
/**
|
|
1689
|
+
* Insert empty columns at a specific position in a sheet. IMPORTANT: Requires numeric sheetId (get from getSpreadsheet), not sheet name. Column indices are 0-indexed (A=0, B=1, C=2, etc.).
|
|
1690
|
+
* @param args.spreadsheetId - ID of the spreadsheet
|
|
1691
|
+
* @param args.sheetId - Numeric sheet ID (get from getSpreadsheet response: sheets[0].properties.sheetId). This is NOT the sheet name.
|
|
1692
|
+
* @param args.startColumnIndex - Column index to start inserting at (0-indexed: A=0, B=1, C=2, D=3, etc.). To insert before column D, use index 3.
|
|
1693
|
+
* @param args.numColumns - Number of columns to insert
|
|
1694
|
+
*/
|
|
1695
|
+
insertColumns: (args: GoogleSheetsInsertColumnsArgs) => Promise<any>;
|
|
1696
|
+
/**
|
|
1697
|
+
* Delete columns from a sheet. IMPORTANT: Requires numeric sheetId (get from getSpreadsheet), not sheet name. Column indices are 0-indexed (A=0, B=1, C=2, etc.).
|
|
1698
|
+
* @param args.spreadsheetId - ID of the spreadsheet
|
|
1699
|
+
* @param args.sheetId - Numeric sheet ID (get from getSpreadsheet response: sheets[0].properties.sheetId). This is NOT the sheet name.
|
|
1700
|
+
* @param args.startColumnIndex - Column index to start deleting from (0-indexed: A=0, B=1, C=2, D=3, etc.). To delete column D, use index 3.
|
|
1701
|
+
* @param args.numColumns - Number of columns to delete
|
|
1702
|
+
*/
|
|
1703
|
+
deleteColumns: (args: GoogleSheetsDeleteColumnsArgs) => Promise<any>;
|
|
1704
|
+
/**
|
|
1705
|
+
* Copy data from one range to another location within the same spreadsheet. IMPORTANT: Requires numeric sheetIds (get from getSpreadsheet), not sheet names. Can copy within same sheet or across sheets.
|
|
1706
|
+
* @param args.spreadsheetId - ID of the spreadsheet
|
|
1707
|
+
* @param args.sourceSheetId - Numeric sheet ID of the source sheet (get from getSpreadsheet response: sheets[n].properties.sheetId)
|
|
1708
|
+
* @param args.sourceRange - Source range in A1 notation WITHOUT sheet name (e.g., "A1:C5", not "Sheet1!A1:C5")
|
|
1709
|
+
* @param args.targetSheetId - Numeric sheet ID of the target sheet (can be same as sourceSheetId to copy within same sheet)
|
|
1710
|
+
* @param args.targetStartCell - Target start cell in A1 notation (e.g., "E1"). The copied data will fill cells starting from this position.
|
|
1711
|
+
*/
|
|
1712
|
+
copyRange: (args: GoogleSheetsCopyRangeArgs) => Promise<any>;
|
|
1269
1713
|
};
|
|
1270
1714
|
/**
|
|
1271
1715
|
* Google Docs Adapter
|
|
@@ -1295,6 +1739,73 @@ declare function createGoogleDocsAdapter(sdk: MirraSDK): {
|
|
|
1295
1739
|
* @param args.replaceText - Text to replace with
|
|
1296
1740
|
*/
|
|
1297
1741
|
replaceText: (args: GoogleDocsReplaceTextArgs) => Promise<any>;
|
|
1742
|
+
/**
|
|
1743
|
+
* Get the text content of a Google Doc
|
|
1744
|
+
* @param args.documentId - ID of the document
|
|
1745
|
+
*/
|
|
1746
|
+
getDocumentContent: (args: GoogleDocsGetDocumentContentArgs) => Promise<any>;
|
|
1747
|
+
/**
|
|
1748
|
+
* Insert text at a specific position in the document
|
|
1749
|
+
* @param args.documentId - ID of the document
|
|
1750
|
+
* @param args.text - Text to insert
|
|
1751
|
+
* @param args.position - Character position to insert at (1-indexed)
|
|
1752
|
+
*/
|
|
1753
|
+
insertTextAtPosition: (args: GoogleDocsInsertTextAtPositionArgs) => Promise<any>;
|
|
1754
|
+
/**
|
|
1755
|
+
* Insert text after a search string in the document
|
|
1756
|
+
* @param args.documentId - ID of the document
|
|
1757
|
+
* @param args.searchText - Text to search for
|
|
1758
|
+
* @param args.textToInsert - Text to insert after the search text
|
|
1759
|
+
* @param args.occurrence - Which occurrence to insert after (default: 1) (optional)
|
|
1760
|
+
*/
|
|
1761
|
+
insertTextAfter: (args: GoogleDocsInsertTextAfterArgs) => Promise<any>;
|
|
1762
|
+
/**
|
|
1763
|
+
* Insert a heading into the document
|
|
1764
|
+
* @param args.documentId - ID of the document
|
|
1765
|
+
* @param args.text - Heading text
|
|
1766
|
+
* @param args.level - Heading level (1-6)
|
|
1767
|
+
* @param args.position - Character position to insert at (optional)
|
|
1768
|
+
* @param args.insertAfterText - Insert after this text instead of at position (optional)
|
|
1769
|
+
*/
|
|
1770
|
+
insertHeading: (args: GoogleDocsInsertHeadingArgs) => Promise<any>;
|
|
1771
|
+
/**
|
|
1772
|
+
* Insert a bulleted or numbered list into the document
|
|
1773
|
+
* @param args.documentId - ID of the document
|
|
1774
|
+
* @param args.items - Array of list items
|
|
1775
|
+
* @param args.listType - Type of list: "bulleted" or "numbered"
|
|
1776
|
+
* @param args.position - Character position to insert at (optional)
|
|
1777
|
+
* @param args.insertAfterText - Insert after this text instead of at position (optional)
|
|
1778
|
+
*/
|
|
1779
|
+
insertList: (args: GoogleDocsInsertListArgs) => Promise<any>;
|
|
1780
|
+
/**
|
|
1781
|
+
* Insert a table into the document
|
|
1782
|
+
* @param args.documentId - ID of the document
|
|
1783
|
+
* @param args.data - 2D array of table data (rows x columns)
|
|
1784
|
+
* @param args.hasHeader - Whether the first row is a header (default: true) (optional)
|
|
1785
|
+
* @param args.position - Character position to insert at (optional)
|
|
1786
|
+
* @param args.insertAfterText - Insert after this text instead of at position (optional)
|
|
1787
|
+
*/
|
|
1788
|
+
insertTable: (args: GoogleDocsInsertTableArgs) => Promise<any>;
|
|
1789
|
+
/**
|
|
1790
|
+
* Replace the entire content of a document
|
|
1791
|
+
* @param args.documentId - ID of the document
|
|
1792
|
+
* @param args.newContent - New content to replace existing content
|
|
1793
|
+
*/
|
|
1794
|
+
updateDocumentContent: (args: GoogleDocsUpdateDocumentContentArgs) => Promise<any>;
|
|
1795
|
+
/**
|
|
1796
|
+
* Create a new section with a heading and content
|
|
1797
|
+
* @param args.documentId - ID of the document
|
|
1798
|
+
* @param args.heading - Section heading text
|
|
1799
|
+
* @param args.content - Section content text
|
|
1800
|
+
*/
|
|
1801
|
+
createSection: (args: GoogleDocsCreateSectionArgs) => Promise<any>;
|
|
1802
|
+
/**
|
|
1803
|
+
* Find the character position for insertion based on position or search text
|
|
1804
|
+
* @param args.documentId - ID of the document
|
|
1805
|
+
* @param args.position - Position to find (1 for start, -1 for end)
|
|
1806
|
+
* @param args.searchText - Text to search for (returns position after this text) (optional)
|
|
1807
|
+
*/
|
|
1808
|
+
findInsertionPoint: (args: GoogleDocsFindInsertionPointArgs) => Promise<any>;
|
|
1298
1809
|
};
|
|
1299
1810
|
/**
|
|
1300
1811
|
* Jira Adapter
|
|
@@ -1378,6 +1889,20 @@ declare function createJiraAdapter(sdk: MirraSDK): {
|
|
|
1378
1889
|
* @param args.projectKey - Project key (e.g., "PROJ")
|
|
1379
1890
|
*/
|
|
1380
1891
|
getIssueTypes: (args: JiraGetIssueTypesArgs) => Promise<any>;
|
|
1892
|
+
/**
|
|
1893
|
+
* Search Jira API for available operations beyond core tools
|
|
1894
|
+
* @param args.query - Describe what you want to do (e.g., "add label to card")
|
|
1895
|
+
* @param args.limit - Max results to return (default 5) (optional)
|
|
1896
|
+
*/
|
|
1897
|
+
discoverExtended: (args: JiraDiscoverExtendedArgs) => Promise<any>;
|
|
1898
|
+
/**
|
|
1899
|
+
* Execute a Jira API operation by operationId
|
|
1900
|
+
* @param args.operationId - The operationId from discoverExtended results
|
|
1901
|
+
* @param args.pathParams - Path parameters, e.g., { id: "abc123" } (optional)
|
|
1902
|
+
* @param args.queryParams - Query string parameters (optional)
|
|
1903
|
+
* @param args.body - Request body for POST/PUT/PATCH operations (optional)
|
|
1904
|
+
*/
|
|
1905
|
+
executeExtended: (args: JiraExecuteExtendedArgs) => Promise<any>;
|
|
1381
1906
|
};
|
|
1382
1907
|
/**
|
|
1383
1908
|
* Twitter Adapter
|
|
@@ -1390,7 +1915,7 @@ declare function createTwitterAdapter(sdk: MirraSDK): {
|
|
|
1390
1915
|
*/
|
|
1391
1916
|
postTweet: (args: TwitterPostTweetArgs) => Promise<any>;
|
|
1392
1917
|
/**
|
|
1393
|
-
* Retrieve tweets from a Twitter user
|
|
1918
|
+
* Retrieve tweets from a Twitter user. Must provide either userId OR userName.
|
|
1394
1919
|
* @param args.userId - Twitter user ID (recommended for stability and speed) (optional)
|
|
1395
1920
|
* @param args.userName - Twitter username/screen name (alternative to userId) (optional)
|
|
1396
1921
|
* @param args.cursor - Pagination cursor for next page of results (optional)
|
|
@@ -1480,6 +2005,20 @@ declare function createTrelloAdapter(sdk: MirraSDK): {
|
|
|
1480
2005
|
* @param args.checkItemId - The ID of the check item to delete
|
|
1481
2006
|
*/
|
|
1482
2007
|
deleteCheckItem: (args: TrelloDeleteCheckItemArgs) => Promise<any>;
|
|
2008
|
+
/**
|
|
2009
|
+
* Search Trello API for available operations beyond core tools
|
|
2010
|
+
* @param args.query - Describe what you want to do (e.g., "add label to card")
|
|
2011
|
+
* @param args.limit - Max results to return (default 5) (optional)
|
|
2012
|
+
*/
|
|
2013
|
+
discoverExtended: (args: TrelloDiscoverExtendedArgs) => Promise<any>;
|
|
2014
|
+
/**
|
|
2015
|
+
* Execute a Trello API operation by operationId
|
|
2016
|
+
* @param args.operationId - The operationId from discoverExtended results
|
|
2017
|
+
* @param args.pathParams - Path parameters, e.g., { id: "abc123" } (optional)
|
|
2018
|
+
* @param args.queryParams - Query string parameters (optional)
|
|
2019
|
+
* @param args.body - Request body for POST/PUT/PATCH operations (optional)
|
|
2020
|
+
*/
|
|
2021
|
+
executeExtended: (args: TrelloExecuteExtendedArgs) => Promise<any>;
|
|
1483
2022
|
};
|
|
1484
2023
|
/**
|
|
1485
2024
|
* Jupiter Adapter
|
|
@@ -1510,6 +2049,17 @@ declare function createJupiterAdapter(sdk: MirraSDK): {
|
|
|
1510
2049
|
* @param args.query - Search query (symbol, name, or mint address)
|
|
1511
2050
|
*/
|
|
1512
2051
|
searchTokens: (args: JupiterSearchTokensArgs) => Promise<any>;
|
|
2052
|
+
/**
|
|
2053
|
+
* Refresh an expired swap with new quote and transaction
|
|
2054
|
+
* @param args.feedItemId - Feed item ID containing the swap to refresh
|
|
2055
|
+
* @param args.swapId - Original swap ID
|
|
2056
|
+
* @param args.inputMint - Input token mint address
|
|
2057
|
+
* @param args.outputMint - Output token mint address
|
|
2058
|
+
* @param args.amount - Amount to swap (in UI units)
|
|
2059
|
+
* @param args.inputDecimals - Input token decimals
|
|
2060
|
+
* @param args.slippageBps - Slippage tolerance in basis points (optional)
|
|
2061
|
+
*/
|
|
2062
|
+
refreshSwap: (args: JupiterRefreshSwapArgs) => Promise<any>;
|
|
1513
2063
|
};
|
|
1514
2064
|
/**
|
|
1515
2065
|
* Crypto Adapter
|
|
@@ -1548,6 +2098,17 @@ declare function createCryptoAdapter(sdk: MirraSDK): {
|
|
|
1548
2098
|
* @param args.tokenAddress - Token address to stop monitoring
|
|
1549
2099
|
*/
|
|
1550
2100
|
unsubscribeAsset: (args: CryptoUnsubscribeAssetArgs) => Promise<any>;
|
|
2101
|
+
/**
|
|
2102
|
+
* Refresh an expired transaction with new blockhash and updated details
|
|
2103
|
+
* @param args.feedItemId - Feed item ID containing the transaction to refresh
|
|
2104
|
+
* @param args.transferId - Original transfer ID
|
|
2105
|
+
* @param args.recipient - Recipient address
|
|
2106
|
+
* @param args.token - Token symbol or mint address
|
|
2107
|
+
* @param args.amount - Amount to send
|
|
2108
|
+
* @param args.tokenMint - Token mint address (optional, will resolve if not provided) (optional)
|
|
2109
|
+
* @param args.tokenDecimals - Token decimals (optional) (optional)
|
|
2110
|
+
*/
|
|
2111
|
+
refreshTransaction: (args: CryptoRefreshTransactionArgs) => Promise<any>;
|
|
1551
2112
|
};
|
|
1552
2113
|
/**
|
|
1553
2114
|
* Scripts Adapter
|
|
@@ -1668,6 +2229,105 @@ declare function createScriptsAdapter(sdk: MirraSDK): {
|
|
|
1668
2229
|
*/
|
|
1669
2230
|
lintScript: (args: ScriptsLintScriptArgs) => Promise<any>;
|
|
1670
2231
|
};
|
|
2232
|
+
/**
|
|
2233
|
+
* Feedback Adapter
|
|
2234
|
+
* Category: internal
|
|
2235
|
+
*/
|
|
2236
|
+
declare function createFeedbackAdapter(sdk: MirraSDK): {
|
|
2237
|
+
/**
|
|
2238
|
+
* Report a bug with detailed context and reproduction steps
|
|
2239
|
+
* @param args.title - Brief bug description
|
|
2240
|
+
* @param args.description - Detailed description of the bug
|
|
2241
|
+
* @param args.severity - Bug severity: critical, high, medium, or low
|
|
2242
|
+
* @param args.stepsToReproduce - Steps to reproduce the bug (optional)
|
|
2243
|
+
* @param args.expectedBehavior - What should happen (optional)
|
|
2244
|
+
* @param args.actualBehavior - What actually happens (optional)
|
|
2245
|
+
* @param args.errorDetails - Error details: { message, stack, code } (optional)
|
|
2246
|
+
* @param args.context - Additional context: { conversationId, recentMessages, platform, appVersion } (optional)
|
|
2247
|
+
* @param args.llmAnalysis - LLM analysis of the issue (optional)
|
|
2248
|
+
*/
|
|
2249
|
+
reportBug: (args: FeedbackReportBugArgs) => Promise<any>;
|
|
2250
|
+
/**
|
|
2251
|
+
* Auto-report tool or adapter failures for debugging
|
|
2252
|
+
* @param args.adapterType - Adapter type (e.g., jupiter, crypto)
|
|
2253
|
+
* @param args.operation - Operation that failed (e.g., swap, sendToken)
|
|
2254
|
+
* @param args.errorMessage - Error message from the failure
|
|
2255
|
+
* @param args.errorCode - Error code if available (optional)
|
|
2256
|
+
* @param args.errorStack - Error stack trace (optional)
|
|
2257
|
+
* @param args.args - Sanitized arguments that caused the failure (optional)
|
|
2258
|
+
* @param args.llmAnalysis - LLM analysis of why it failed (optional)
|
|
2259
|
+
* @param args.suggestedFix - LLM suggested fix (optional)
|
|
2260
|
+
* @param args.context - Additional context: { conversationId, userId, timestamp } (optional)
|
|
2261
|
+
*/
|
|
2262
|
+
reportToolFailure: (args: FeedbackReportToolFailureArgs) => Promise<any>;
|
|
2263
|
+
/**
|
|
2264
|
+
* Report when LLM cannot fulfill a user request
|
|
2265
|
+
* @param args.userRequest - What the user asked for
|
|
2266
|
+
* @param args.reason - Why it could not be fulfilled
|
|
2267
|
+
* @param args.suggestedCapability - What capability would enable this (optional)
|
|
2268
|
+
* @param args.relatedAdapters - Adapters that might be relevant (optional)
|
|
2269
|
+
* @param args.context - Additional context: { conversationId } (optional)
|
|
2270
|
+
*/
|
|
2271
|
+
reportMissingCapability: (args: FeedbackReportMissingCapabilityArgs) => Promise<any>;
|
|
2272
|
+
/**
|
|
2273
|
+
* Submit general user feedback
|
|
2274
|
+
* @param args.sentiment - Sentiment: positive, negative, or neutral
|
|
2275
|
+
* @param args.feedback - Feedback content
|
|
2276
|
+
* @param args.category - Category: ux, performance, feature, or general (optional)
|
|
2277
|
+
* @param args.context - Additional context: { feature, screen } (optional)
|
|
2278
|
+
*/
|
|
2279
|
+
submitFeedback: (args: FeedbackSubmitFeedbackArgs) => Promise<any>;
|
|
2280
|
+
/**
|
|
2281
|
+
* Submit a feature request
|
|
2282
|
+
* @param args.title - Feature title
|
|
2283
|
+
* @param args.description - Feature description
|
|
2284
|
+
* @param args.useCase - Why the user needs this feature (optional)
|
|
2285
|
+
* @param args.priority - Priority: high, medium, or low (optional)
|
|
2286
|
+
*/
|
|
2287
|
+
submitFeatureRequest: (args: FeedbackSubmitFeatureRequestArgs) => Promise<any>;
|
|
2288
|
+
};
|
|
2289
|
+
/**
|
|
2290
|
+
* Mirra Messaging Adapter
|
|
2291
|
+
* Category: communication
|
|
2292
|
+
*/
|
|
2293
|
+
declare function createMirraMessagingAdapter(sdk: MirraSDK): {
|
|
2294
|
+
/**
|
|
2295
|
+
* Send a direct message to a contact. The message is sent as the authenticated user with optional automation metadata.
|
|
2296
|
+
* @param args.recipientId - User ID of the recipient (use findContact to look up by username)
|
|
2297
|
+
* @param args.content - Message text content
|
|
2298
|
+
* @param args.automation - Automation metadata: { source: "sdk" | "flow", flowId?: string, flowTitle?: string } (optional)
|
|
2299
|
+
*/
|
|
2300
|
+
sendMessage: (args: MirraMessagingSendMessageArgs) => Promise<any>;
|
|
2301
|
+
/**
|
|
2302
|
+
* Send a message to a group chat. The message is sent as the authenticated user with optional automation metadata.
|
|
2303
|
+
* @param args.groupId - Group ID to send the message to
|
|
2304
|
+
* @param args.content - Message text content
|
|
2305
|
+
* @param args.automation - Automation metadata: { source: "sdk" | "flow", flowId?: string, flowTitle?: string } (optional)
|
|
2306
|
+
*/
|
|
2307
|
+
sendGroupMessage: (args: MirraMessagingSendGroupMessageArgs) => Promise<any>;
|
|
2308
|
+
/**
|
|
2309
|
+
* Get list of accepted contacts for the user
|
|
2310
|
+
* @param args.limit - Maximum number of contacts to return (default 50) (optional)
|
|
2311
|
+
* @param args.offset - Offset for pagination (default 0) (optional)
|
|
2312
|
+
*/
|
|
2313
|
+
getContacts: (args: MirraMessagingGetContactsArgs) => Promise<any>;
|
|
2314
|
+
/**
|
|
2315
|
+
* Find a contact by username or partial name match
|
|
2316
|
+
* @param args.query - Username or name to search for
|
|
2317
|
+
*/
|
|
2318
|
+
findContact: (args: MirraMessagingFindContactArgs) => Promise<any>;
|
|
2319
|
+
/**
|
|
2320
|
+
* Get list of chat instances for the user
|
|
2321
|
+
* @param args.scope - Filter by scope: direct, user, group, or all (default all) (optional)
|
|
2322
|
+
* @param args.limit - Maximum number of chats to return (default 50) (optional)
|
|
2323
|
+
*/
|
|
2324
|
+
getChats: (args: MirraMessagingGetChatsArgs) => Promise<any>;
|
|
2325
|
+
/**
|
|
2326
|
+
* Get list of groups the user is a member of
|
|
2327
|
+
* @param args.limit - Maximum number of groups to return (default 50) (optional)
|
|
2328
|
+
*/
|
|
2329
|
+
getGroups: (args: MirraMessagingGetGroupsArgs) => Promise<any>;
|
|
2330
|
+
};
|
|
1671
2331
|
export declare const generatedAdapters: {
|
|
1672
2332
|
flows: typeof createFlowsAdapter;
|
|
1673
2333
|
user: typeof createUserAdapter;
|
|
@@ -1688,6 +2348,8 @@ export declare const generatedAdapters: {
|
|
|
1688
2348
|
jupiter: typeof createJupiterAdapter;
|
|
1689
2349
|
crypto: typeof createCryptoAdapter;
|
|
1690
2350
|
scripts: typeof createScriptsAdapter;
|
|
2351
|
+
feedback: typeof createFeedbackAdapter;
|
|
2352
|
+
mirraMessaging: typeof createMirraMessagingAdapter;
|
|
1691
2353
|
};
|
|
1692
2354
|
export {};
|
|
1693
2355
|
//# sourceMappingURL=adapters.d.ts.map
|