Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
224 commits
Select commit Hold shift + click to select a range
a67b04c
feat: added Document schema
chime3 Aug 9, 2024
f39a986
feat: added google driver helper
chime3 Aug 9, 2024
78867fe
feat: added google drive document handler
chime3 Aug 9, 2024
f1d9fa1
Merge branch 'feature/youtube-handler' into feature/85-google-drive-d…
chime3 Aug 12, 2024
a3f9b22
feat: added limit file size 5MB
chime3 Aug 12, 2024
840eebd
fix: added size
chime3 Aug 12, 2024
30c6f45
Merge branch 'feature/youtube-handler' into feature/85-google-drive-d…
chime3 Aug 13, 2024
2783dcb
fix: updated document type
chime3 Aug 13, 2024
a0add40
fix: updated id prefix
chime3 Aug 13, 2024
7562372
feat: added unit test for google drive document
chime3 Aug 13, 2024
ff42579
feat: extract indexable text from google spreadsheet and present…
chime3 Aug 14, 2024
d69d232
feat: doc/docx/ppt/pptx/xls/xlsx parser
chime3 Aug 20, 2024
1541038
Merge branch 'feature/youtube-handler' into feature/85-google-drive-d…
chime3 Aug 20, 2024
7d1afc4
Support sync v force sync on connections page
Aug 20, 2024
7dc1981
Merge branch 'develop' into feature/85-google-drive-document
chime3 Aug 21, 2024
b78a6dd
fix: google unit test
chime3 Aug 21, 2024
eb25f8a
fix: sync handler status
chime3 Aug 21, 2024
ade7e18
fix: gdrive unit test
chime3 Aug 21, 2024
fba7787
Refactor gmail to use items range tracker
Aug 21, 2024
386493f
Refactor common tests to work within the items range tracker architec…
Aug 21, 2024
5426c77
Update gmail tests to pass using updated common tests
Aug 21, 2024
f0570c5
feat: added sync message
chime3 Aug 21, 2024
c90598b
Merge branch 'develop' into feature/89-mvp
Aug 21, 2024
dcaa381
Fix incorrect sync status in common tests
Aug 21, 2024
83a4f07
refactor: optimized youtube sync
chime3 Aug 22, 2024
6cfade0
Merge branch 'fix/92-youtube-items-range-tracker' into feature/85-goo…
chime3 Aug 22, 2024
a079e24
refactor: optimize sync and fields
chime3 Aug 22, 2024
255b286
Support enable / disable of private data on AI page
Aug 22, 2024
e85b5a8
fix: use parent googleauth
chime3 Aug 23, 2024
07bbf34
Refactor how static web pages are served. Start splitting UI into dev…
Aug 23, 2024
14612c7
Fix navigation between user and developer interfaces
Aug 23, 2024
694c563
fix: remove break time stamp
chime3 Aug 23, 2024
8ded695
Merge branch 'fix/92-youtube-items-range-tracker' into feature/85-goo…
chime3 Aug 23, 2024
f3d1920
feat: added FILE schema
chime3 Aug 23, 2024
0d8ce32
feat: extract file extension
chime3 Aug 23, 2024
7fd638d
Fix privateData checkbox
Aug 23, 2024
83912ec
Support Groq. Refactor to easily support multiple LLM services.
Aug 24, 2024
b213caa
Improve API endpoints. Add universal search.
Aug 24, 2024
acdcd60
Improve API dashboard.
Aug 24, 2024
474201a
Close event source connection to server when log modal is closed
Aug 24, 2024
6aec966
Add search endpoints to API playground. Make improvements to search e…
Aug 24, 2024
7d7944e
Fix API state loading
Aug 25, 2024
177e3c5
Make routes and results more consistent. Fix minor UI issues. Remove …
Aug 25, 2024
92672b8
Adding LLM endpoints to API playground
Aug 25, 2024
de784fc
Sipmlify sync manager and sync endpoints.
Aug 25, 2024
1afb619
Fix updated endpoint paths
Aug 25, 2024
308bf1a
fix: getExtension function
chime3 Aug 26, 2024
de265b6
fix: added nullish coalescing
chime3 Aug 26, 2024
d07652c
feat: added indexable text
chime3 Aug 26, 2024
6242a92
chore: remove console
chime3 Aug 26, 2024
eccf6d0
Merge branch 'feature/89-mvp' into fix/92-youtube-items-range-tracker
chime3 Aug 26, 2024
e48d8ef
Merge branch 'fix/92-youtube-items-range-tracker' into feature/85-goo…
chime3 Aug 26, 2024
ae0e365
Fix force sync button
Aug 26, 2024
064229c
Remove console.log
Aug 26, 2024
2167d7d
Refactor to support timeframe restrictions on AI prompts
Aug 26, 2024
6f307fb
fix: updated schema and unit test
chime3 Aug 26, 2024
746d9e6
feat: added comments for MAX_BATCH_SIZE
chime3 Aug 26, 2024
dec1855
Merge pull request #93 from verida/fix/92-youtube-items-range-tracker
chime3 Aug 26, 2024
2614faf
Fix provider connect URL
Aug 27, 2024
7901030
Set default google batchsize to 50
Aug 27, 2024
7320924
Increase gdrive timeout to handle local downloads
Aug 27, 2024
a1e2de3
Support network cache garbage collection
Aug 27, 2024
cdcf403
Support generics on keyword and schema searches. Support searching sc…
Aug 27, 2024
828b704
Fix issues with fetching data for AI prompts.
Aug 27, 2024
2ecb046
fix: typo error
chime3 Aug 27, 2024
a45a9d3
fix: removed unused variable
chime3 Aug 28, 2024
b5a1559
chore: update dependencies
chime3 Aug 28, 2024
837b13a
Support toName in email
Aug 29, 2024
8fda382
Update shcmea indexable fields
Aug 29, 2024
f2f64b6
Add timing logs. Support email shortlist. Tweak the prompt to better …
Aug 29, 2024
dd64f08
Fix google auth handler to stop deleting refresh token when a new acc…
Aug 29, 2024
1149f5a
Fix Browse Data page
Aug 29, 2024
5ab1215
Support delete row and destroy database from the Browse Data page
Aug 29, 2024
f1fbcfa
fix: typo error
chime3 Aug 29, 2024
0ee1243
Merge branch 'feature/89-mvp' into feature/85-google-drive-document
chime3 Aug 29, 2024
6514509
Touch network cache when syncing. Support devmode. Delete any cached …
Aug 29, 2024
bad6cdb
feat: added size limit
chime3 Aug 29, 2024
de0d978
fix: added exception and skipped folders
chime3 Aug 29, 2024
0006021
fix: remove comments
chime3 Aug 30, 2024
08f19a1
Improve performance and quality of personal prompt with telegram mess…
Aug 30, 2024
9411877
Fix issue with most importnt search results not being returned
Aug 30, 2024
b87bd83
Resolve issue with google handlers where the last page of results wou…
Sep 2, 2024
658d577
Fix handler log messages always being logged as error
Sep 2, 2024
580011d
Enable File RAG for private AI
Sep 2, 2024
1ad0183
Fix files not processing in private AI
Sep 2, 2024
2d80fb6
Add more detail to console output
Sep 2, 2024
15ea07a
Add missing File schema in data service.
Sep 2, 2024
2251600
Fix bug with files not being included in private AI processing
Sep 2, 2024
6feae77
Merge branch 'feature/89-mvp' into feature/85-google-drive-document
chime3 Sep 2, 2024
aaa28eb
Fix: refactored Gdrive document handler
chime3 Sep 2, 2024
3a5f80b
fix: refactored Gdrive document handler
chime3 Sep 2, 2024
3fe6589
Merge pull request #86 from verida/feature/85-google-drive-document
chime3 Sep 2, 2024
13e4274
Fix issues with indexing files for private AI
Sep 2, 2024
f12d417
Move breakTimestamp config to root of config. Support custom config p…
Sep 2, 2024
8084630
Fix avatar profile display on connection screen
Sep 2, 2024
d6d55b6
Feature/100 reorganize providers endpoint (#101)
tahpot Sep 3, 2024
4f14306
Improve AI page layout
Sep 3, 2024
be9e181
Disable databases for telegram
Sep 3, 2024
a371bdc
Fix connection page to use updated provider response
Sep 3, 2024
9a3cc7e
feat: added calendar schema and handler
chime3 Sep 4, 2024
3a769cf
fix: added comment
chime3 Sep 4, 2024
c097a9c
feat: added event schema and handler
chime3 Sep 4, 2024
f1fb820
feat: define calendar data types
chime3 Sep 4, 2024
687e8dc
fix: start & end date time info
chime3 Sep 5, 2024
3aa8880
feat: added calendar scope and handlers
chime3 Sep 5, 2024
765f541
feat: added timezone lib
chime3 Sep 5, 2024
d1980de
refactor: calendar buildresults function
chime3 Sep 5, 2024
13aa5eb
Merge branch 'develop' into feature/94-google-calendar-event
chime3 Sep 5, 2024
2776521
feat: added calendar unit test
chime3 Sep 5, 2024
e2b332d
refactor: calendar event handler
chime3 Sep 5, 2024
69913a2
feat: added calendar helper
chime3 Sep 6, 2024
38cacdb
fix: added date as required field
chime3 Sep 6, 2024
b421eab
feat: added event and calendar into web interface
chime3 Sep 9, 2024
9e347a6
fix: removed date from DateTimeInfo
chime3 Sep 9, 2024
bbf6b81
feat: added calendar event unit test
chime3 Sep 9, 2024
c947acc
fix: modified common unit test config
chime3 Sep 10, 2024
b18c841
fix: updated google unit test doc
chime3 Sep 10, 2024
6bd26cd
fix: typo error in data.js
chime3 Sep 10, 2024
8a86ab1
Fix: Attendees may be empty
Sep 11, 2024
c11f390
feat: added slack installer oauth
chime3 Sep 16, 2024
5b5a264
feat: added chat message handler
chime3 Sep 17, 2024
08296e9
feat: added slack chat message handler
chime3 Sep 18, 2024
408030b
feat: refactored chat-message handler
chime3 Sep 20, 2024
005232d
fix: slack chat message sync
chime3 Sep 22, 2024
54b70a5
docs: added slack config guides
chime3 Sep 23, 2024
1ff60f0
fix: updated slack user profile
chime3 Sep 23, 2024
3691144
feat: added slack unit test
chime3 Sep 23, 2024
9a97768
Merge branch 'develop' into feature/94-google-calendar-event
chime3 Sep 23, 2024
90925c8
fix: typo error
chime3 Sep 24, 2024
1edf307
Merge branch 'develop' into feature/94-google-calendar-event
chime3 Sep 24, 2024
47f25f7
Merge branch 'feature/94-google-calendar-event' into feature/98-slack…
chime3 Sep 24, 2024
1cb89f8
Merge branch 'develop' into feature/98-slack-connector
chime3 Sep 25, 2024
5110fa1
fix: changed providerId function name
chime3 Sep 25, 2024
d5b5cc0
Merge branch 'develop' into feature/98-slack-connector
chime3 Sep 25, 2024
bfa79cc
fix: sourceAccountId
chime3 Sep 25, 2024
8e78b22
feat: added sourceAccountId
chime3 Sep 25, 2024
283d794
feat: added slack unit test
chime3 Sep 25, 2024
e624956
fix: google unit tests with refactor
chime3 Sep 25, 2024
2be079b
fix: added readableId
chime3 Sep 26, 2024
f595570
Merge branch 'develop' into feature/94-google-calendar-event
Sep 30, 2024
6f04a6c
Merge branch 'develop' into feature/94-google-calendar-event
Sep 30, 2024
adcaee3
Fix provider.getAccountId() after refactor
Sep 30, 2024
aa551b0
chore: removed unused var
chime3 Oct 1, 2024
8d36327
feat: added calendar schema into web interface
chime3 Oct 1, 2024
3c9cfd7
fix: added synData field
chime3 Oct 2, 2024
c2dd316
feat: added custom config for calendar event
chime3 Oct 2, 2024
3986588
refactor: updated calendar event handler
chime3 Oct 2, 2024
d4017bc
feat: added custom config interface
chime3 Oct 2, 2024
6e995e4
Merge branch 'develop' into feature/98-slack-connector
Oct 3, 2024
c6e5401
Some code cleanup and fixing sync handler status
Oct 3, 2024
fdc8070
fix: refactoring and unit tests
chime3 Oct 3, 2024
9763cc2
Merge branch 'develop' into feature/94-google-calendar-event
chime3 Oct 3, 2024
9fdfbc8
fix: updated syn handler status bug
chime3 Oct 3, 2024
e621cab
fix: batch sync item count
chime3 Oct 4, 2024
4d57541
fix: invalid datetime value
chime3 Oct 4, 2024
5917b8c
Improve range tracker import / export to be more robust
Oct 7, 2024
83a9380
fix: removed total batchsize comparison
chime3 Oct 7, 2024
2259266
Merge branch 'develop' into feature/94-google-calendar-event
chime3 Oct 7, 2024
eaf7515
fix: update calendar syncdata
chime3 Oct 7, 2024
3fc649d
Merge branch 'develop' into feature/94-google-calendar-event
chime3 Oct 7, 2024
1db2deb
Merge branch 'develop' into feature/94-google-calendar-event
chime3 Oct 7, 2024
f373e3c
fix: removed static value
chime3 Oct 8, 2024
92c07bf
fix: removed Unkown value
chime3 Oct 9, 2024
7a90afa
fix: renamed batchsize fields
chime3 Oct 10, 2024
b180b33
fix: rename fields interface
chime3 Oct 10, 2024
41a8b43
refactor: bunch update based on record ID and pagetoken
chime3 Oct 10, 2024
ca86053
fix: event batch size error
chime3 Oct 10, 2024
4972870
fix: modified unit tests for custom handler config
chime3 Oct 10, 2024
e702924
Merge branch 'develop' into feature/94-google-calendar-event
chime3 Oct 10, 2024
ad98a7b
Revert google drive batch size change
Oct 10, 2024
fc677ab
fix: nextrange function
chime3 Oct 11, 2024
a27ce44
feat: added calendar event helper function
chime3 Oct 11, 2024
f23aaf2
fix: modified calendar event handler config
chime3 Oct 11, 2024
83851b0
chore: revert common unit test
chime3 Oct 11, 2024
1155617
feat: added calendar event unit tests
chime3 Oct 11, 2024
f1700fd
Merge branch 'develop' into feature/98-slack-connector
chime3 Oct 15, 2024
7933682
fix: removed total slack message count comparision
chime3 Oct 15, 2024
e5f223c
fix: refactor chat message handler
chime3 Oct 15, 2024
f90d3af
fix: added slack helper function
chime3 Oct 17, 2024
b6e1f2b
feat: added readme notes
chime3 Oct 17, 2024
2494615
Merge branch 'develop' into feature/98-slack-connector
chime3 Oct 18, 2024
6ed1bf7
fix: renamed handler label
chime3 Oct 18, 2024
9ebe84a
Merge branch 'develop' into feature/94-google-calendar-event
Oct 21, 2024
75f2fb2
Merge branch 'develop' into feature/94-google-calendar-event
chime3 Oct 21, 2024
ae06b52
fix: revert item range tracker
chime3 Oct 21, 2024
709b97a
Merge branch 'develop' into feature/94-google-calendar-event
chime3 Oct 22, 2024
c890296
Add test to ensure date only events are handled. Add uri property to …
Oct 22, 2024
abbf86a
Fetch all calendars, don't limit by batch size
Oct 22, 2024
9eb1df8
Merge branch 'feature/94-google-calendar-event' into feature/98-slack…
chime3 Oct 23, 2024
8f91f1c
fix: removed calendar handler
chime3 Oct 23, 2024
150e4d1
chore: yarn build
chime3 Oct 23, 2024
dd35c69
Merge branch 'develop' into feature/98-slack-connector
chime3 Oct 23, 2024
24315a8
fix: removed grouplimit
chime3 Oct 23, 2024
56daea6
refactor: convert timeline to cursor based pagination
chime3 Oct 23, 2024
5475f3a
docs: updated slack read me
chime3 Oct 23, 2024
a7063e8
fix: update db syncdata
chime3 Oct 23, 2024
4f9e832
Merge branch 'develop' into feature/94-google-calendar-event
chime3 Oct 23, 2024
40dd6a1
fix: removed grouplimit
chime3 Oct 23, 2024
30ad38b
Merge branch 'feature/94-google-calendar-event' into feature/98-slack…
chime3 Oct 24, 2024
061487f
fix: removed archived channels
chime3 Oct 24, 2024
51b7a41
feat: updated slack unit tests
chime3 Oct 24, 2024
ed7a937
fix: removed total batch size config
chime3 Oct 24, 2024
bc76c4d
fix: added chat message schem to slack record
chime3 Oct 24, 2024
5e08648
feat: added bulk user info to improve performance
chime3 Oct 24, 2024
f7f7592
feat: added a slack unit test case to check user info correct
chime3 Oct 24, 2024
b402f2c
Merge branch 'develop' into feature/98-slack-connector
chime3 Oct 24, 2024
cbc1818
Remvoe unused include
Oct 25, 2024
a14ce91
fix: used channelTypes config
chime3 Oct 28, 2024
70a037e
fix: use MAX_BATCH_SIZE
chime3 Oct 28, 2024
b5ca5ce
fix: removed schema record type field
chime3 Oct 28, 2024
17ceaf3
Merge branch 'develop' into feature/98-slack-connector
chime3 Oct 28, 2024
45b16d6
Fix tests not working
Nov 1, 2024
38daba7
Add slack public notes
Nov 1, 2024
13486f1
feat: added max batch size config for slack
chime3 Nov 4, 2024
4672ca8
fix: rewrite for loop
chime3 Nov 4, 2024
24359e7
feat: added channel types
chime3 Nov 18, 2024
34ad2d7
feat: added test cases for timestamps comparison
chime3 Nov 18, 2024
f14fdf0
Merge branch 'develop' into feature/98-slack-connector
chime3 Nov 18, 2024
8de8425
Merge branch 'develop' into feature/98-slack-connector
chime3 Nov 18, 2024
22a871f
Merge branch 'develop' into feature/98-slack-connector
chime3 Dec 23, 2024
347ebda
Chore: slack deps
chime3 Dec 23, 2024
a2ece97
feat: set slack status as active
chime3 Dec 23, 2024
aebe7cc
Merge branch 'develop' into feature/98-slack-connector
chime3 Jan 10, 2025
1bc1b60
Merge branch 'develop' into feature/98-slack-connector
chime3 Jan 27, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified assets/slack/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@
"@notionhq/client": "^2.2.15",
"@oauth-everything/passport-discord": "^1.0.2",
"@sapphire/snowflake": "^3.4.2",
"@slack/oauth": "^3.0.1",
"@slack/web-api": "^7.4.0",
"@superfaceai/passport-twitter-oauth2": "^1.2.3",
"@tensorflow-models/universal-sentence-encoder": "^1.3.3",
"@verida/account-node": "^4.4.1",
Expand All @@ -54,7 +56,7 @@
"@verida/verifiable-credentials": "^4.4.0",
"@verida/web3": "^4.4.0",
"aws-serverless-express": "^3.4.0",
"axios": "^1.7.2",
"axios": "^1.7.7",
"body-parser": "^1.19.0",
"closevector-node": "^0.1.6",
"cors": "^2.8.5",
Expand Down
2 changes: 1 addition & 1 deletion src/providers/BaseSyncHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,6 @@ export default class BaseSyncHandler extends EventEmitter {
}

protected buildItemId(itemId: string) {
return `${this.provider.getProviderName()}-${this.connection.profile.id}-${itemId}`
return `${this.provider.getProviderId()}-${this.connection.profile.id}-${itemId}`
}
}
6 changes: 3 additions & 3 deletions src/providers/google/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ Before running the unit tests, ensure that you have the following set up:
1. **YouTube Account**: A YouTube account with some activity is required. This activity includes uploaded videos, subscriptions, and liked videos.

2. **YouTube Data**: Make sure your YouTube account has:
- **Favorites**: At least 14 videos you have liked.
- **Following**: At least 14 Channels you have subscribed to.
- **Posts**: At least 14 videos you have uploaded.
- **Favorites**: At least 4 videos you have liked.
- **Following**: At least 4 Channels you have subscribed to.
- **Posts**: At least 4 videos you have uploaded.
3. **Activity**: Make sure you have made activities within the last 24 hours.

## Running the Tests
Expand Down
12 changes: 12 additions & 0 deletions src/providers/slack/NOTES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

# Setup

Slack only permits users to extract their data by installing the Verida Data Connector application into the Slack workspace. You will require an administrator to approve this application installation before you can start to sync your data.

# Sync

The following data is syncronized:

- DMs
- Public channels you can access
- Private channels you can access
38 changes: 38 additions & 0 deletions src/providers/slack/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Slack APP configuration

1. Please go to [Slack API Apps](https://api.slack.com/apps)
2. Create new app
- Select `From scratch`
- Add `App Name` and select a workspace to be used for development
3. You can get `client ID` and `client Secret` from the `Basic Information` section
4. Add redirect URL and scopes in `OAuth & Permissions` section
- Redirect URL: `https://127.0.0.1:5021/callback/slack`
- There are two types of tokens: bot and user, and add following scopes: `channels:history`, `channels:read`, `groups:read`, `users:read`, `im:read`, `im:history`

# Notes
Slack workspaces might have many public channels and spam messages that are less relevant to users' privacy, so **DM/Private** groups have priority.

Slack `ItemsRangeTracker` is based on timestamps, which are used as the IDs of chat message records due to the nature of its API.

Slack supports two types of pagination: timeline-based and cursor-based

### Timeline Based
```
const response = await apiClient.conversations.history({
channel,
limit,
oldest, // from timestamp
latest // end timestamp
});
```

### Cursor Based
```
const response = await apiClient.conversations.history({
channel,
limit,
cursor, // next_cursor from response_metadata
});
```

We use Cusor-based pagination here which is equal to 'pageToken` from Google to provide consistency.
Loading
Loading