-
Notifications
You must be signed in to change notification settings - Fork 5.4k
[Components] rumi_ai - new components #16950
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,3 +20,5 @@ components/**/package-lock.json | |
/packages/sdk/examples/.next/ | ||
|
||
**/.claude/settings.local.json | ||
|
||
.cursor |
66 changes: 66 additions & 0 deletions
66
components/rumi_ai/actions/add-session-access/add-session-access.mjs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
import app from "../../rumi_ai.app.mjs"; | ||
|
||
export default { | ||
key: "rumi_ai-add-session-access", | ||
name: "Add Session Access", | ||
description: "Add access to a session for specific email addresses or domains. [See the documentation](https://rumiai.notion.site/Rumi-Public-API-Authentication-02055b7286874bd7b355862f1abe48d9)", | ||
version: "0.0.1", | ||
type: "action", | ||
props: { | ||
app, | ||
sessionId: { | ||
propDefinition: [ | ||
app, | ||
"sessionId", | ||
], | ||
}, | ||
sessionRecurrenceId: { | ||
propDefinition: [ | ||
app, | ||
"sessionRecurrenceId", | ||
], | ||
}, | ||
emails: { | ||
propDefinition: [ | ||
app, | ||
"emails", | ||
], | ||
}, | ||
domains: { | ||
propDefinition: [ | ||
app, | ||
"domains", | ||
], | ||
}, | ||
message: { | ||
propDefinition: [ | ||
app, | ||
"message", | ||
], | ||
}, | ||
}, | ||
async run({ $ }) { | ||
const { | ||
app, | ||
sessionId, | ||
sessionRecurrenceId, | ||
emails, | ||
domains, | ||
message, | ||
} = this; | ||
|
||
const response = await app.addSessionAccess({ | ||
$, | ||
data: { | ||
sessionID: sessionId, | ||
sessionRecurrenceID: sessionRecurrenceId, | ||
emails, | ||
domains, | ||
message, | ||
}, | ||
}); | ||
|
||
$.export("$summary", `Successfully added access to session \`${sessionId}\``); | ||
return response; | ||
}, | ||
}; |
50 changes: 50 additions & 0 deletions
50
components/rumi_ai/actions/ai-stream-query/ai-stream-query.mjs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
import app from "../../rumi_ai.app.mjs"; | ||
|
||
export default { | ||
key: "rumi_ai-ai-stream-query", | ||
name: "AI Stream Query", | ||
description: "Stream an AI query against session memories. [See the documentation](https://rumiai.notion.site/Rumi-Public-API-Authentication-02055b7286874bd7b355862f1abe48d9)", | ||
version: "0.0.1", | ||
type: "action", | ||
props: { | ||
app, | ||
query: { | ||
propDefinition: [ | ||
app, | ||
"query", | ||
], | ||
}, | ||
requestId: { | ||
propDefinition: [ | ||
app, | ||
"requestId", | ||
], | ||
}, | ||
tz: { | ||
propDefinition: [ | ||
app, | ||
"tz", | ||
], | ||
}, | ||
}, | ||
async run({ $ }) { | ||
const { | ||
app, | ||
query, | ||
requestId, | ||
tz, | ||
} = this; | ||
|
||
const response = await app.streamAiQuery({ | ||
$, | ||
data: { | ||
query, | ||
requestId, | ||
tz, | ||
}, | ||
}); | ||
jcortes marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
$.export("$summary", "Successfully executed AI stream query"); | ||
return response; | ||
}, | ||
}; |
105 changes: 105 additions & 0 deletions
105
components/rumi_ai/actions/create-session/create-session.mjs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
import { ConfigurationError } from "@pipedream/platform"; | ||
import app from "../../rumi_ai.app.mjs"; | ||
|
||
export default { | ||
key: "rumi_ai-create-session", | ||
name: "Create Session", | ||
description: "Create a new session/meeting. [See the documentation](https://rumiai.notion.site/Rumi-Public-API-Authentication-02055b7286874bd7b355862f1abe48d9)", | ||
version: "0.0.1", | ||
type: "action", | ||
props: { | ||
app, | ||
sessionTitle: { | ||
propDefinition: [ | ||
app, | ||
"sessionTitle", | ||
], | ||
}, | ||
about: { | ||
description: "A brief description of the session.", | ||
propDefinition: [ | ||
app, | ||
"about", | ||
], | ||
}, | ||
startDateTime: { | ||
propDefinition: [ | ||
app, | ||
"startDateTime", | ||
], | ||
}, | ||
endDateTime: { | ||
propDefinition: [ | ||
app, | ||
"endDateTime", | ||
], | ||
}, | ||
enableRecording: { | ||
propDefinition: [ | ||
app, | ||
"enableRecording", | ||
], | ||
}, | ||
summaAI: { | ||
propDefinition: [ | ||
app, | ||
"summaAI", | ||
], | ||
}, | ||
}, | ||
async run({ $ }) { | ||
const { | ||
app, | ||
sessionTitle, | ||
about, | ||
startDateTime, | ||
endDateTime, | ||
enableRecording, | ||
summaAI, | ||
} = this; | ||
|
||
const startDateTimeObj = new Date(startDateTime); | ||
const endDateTimeObj = new Date(endDateTime); | ||
|
||
if (isNaN(startDateTimeObj.getTime())) { | ||
throw new ConfigurationError("Invalid **Start Date Time** provided"); | ||
} | ||
if (isNaN(endDateTimeObj.getTime())) { | ||
throw new ConfigurationError("Invalid **End Date Time** provided"); | ||
} | ||
if (endDateTimeObj <= startDateTimeObj) { | ||
throw new ConfigurationError("**End Date Time** must be after **Start Date Time**"); | ||
} | ||
|
||
const startTimestamp = Math.floor(startDateTimeObj.getTime() / 1000); | ||
const endTimestamp = Math.floor(endDateTimeObj.getTime() / 1000); | ||
|
||
const response = await app.createSession({ | ||
$, | ||
data: { | ||
sessionTitle, | ||
about, | ||
dataVisibility: "team-visible", | ||
accessStatus: "unlocked", | ||
startTimestamp, | ||
endTimestamp, | ||
sessionSettings: { | ||
enableRecording, | ||
summaAI, | ||
preferredLanguages: [ | ||
"en-US", | ||
], | ||
recurring: 0, | ||
postSessionSummaries: { | ||
recipients: { | ||
email: "everyone", | ||
}, | ||
}, | ||
}, | ||
}, | ||
}); | ||
jcortes marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
$.export("$summary", `Successfully created session: ${sessionTitle}`); | ||
return response; | ||
}, | ||
}; |
22 changes: 22 additions & 0 deletions
22
components/rumi_ai/actions/get-current-user/get-current-user.mjs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import app from "../../rumi_ai.app.mjs"; | ||
|
||
export default { | ||
key: "rumi_ai-get-current-user", | ||
name: "Get Current User", | ||
description: "Get information about the current authenticated user. [See the documentation](https://rumiai.notion.site/Rumi-Public-API-Authentication-02055b7286874bd7b355862f1abe48d9)", | ||
version: "0.0.1", | ||
type: "action", | ||
props: { | ||
app, | ||
}, | ||
async run({ $ }) { | ||
const { app } = this; | ||
|
||
const response = await app.getCurrentUser({ | ||
$, | ||
}); | ||
|
||
$.export("$summary", "Successfully retrieved current user information"); | ||
return response; | ||
}, | ||
}; |
22 changes: 22 additions & 0 deletions
22
components/rumi_ai/actions/get-future-sessions/get-future-sessions.mjs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import app from "../../rumi_ai.app.mjs"; | ||
|
||
export default { | ||
key: "rumi_ai-get-future-sessions", | ||
name: "Get Future Sessions", | ||
description: "Retrieve upcoming/future sessions. [See the documentation](https://rumiai.notion.site/Rumi-Public-API-Authentication-02055b7286874bd7b355862f1abe48d9)", | ||
version: "0.0.1", | ||
type: "action", | ||
props: { | ||
app, | ||
}, | ||
async run({ $ }) { | ||
const { app } = this; | ||
|
||
const response = await app.getFutureSessions({ | ||
$, | ||
}); | ||
|
||
$.export("$summary", `Successfully retrieved \`${response?.data?.sessions?.length}\` future session(s)`); | ||
return response; | ||
}, | ||
}; |
22 changes: 22 additions & 0 deletions
22
components/rumi_ai/actions/get-meeting-types/get-meeting-types.mjs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import app from "../../rumi_ai.app.mjs"; | ||
|
||
export default { | ||
key: "rumi_ai-get-meeting-types", | ||
name: "Get Meeting Types", | ||
description: "Retrieve available meeting types. [See the documentation](https://rumiai.notion.site/Rumi-Public-API-Authentication-02055b7286874bd7b355862f1abe48d9)", | ||
version: "0.0.1", | ||
type: "action", | ||
props: { | ||
app, | ||
}, | ||
async run({ $ }) { | ||
const { app } = this; | ||
|
||
const response = await app.getMeetingTypes({ | ||
$, | ||
}); | ||
|
||
$.export("$summary", `Successfully retrieved \`${response?.data?.meetingTypes?.length}\` meeting type(s)`); | ||
return response; | ||
}, | ||
}; |
34 changes: 34 additions & 0 deletions
34
components/rumi_ai/actions/get-memory-threads/get-memory-threads.mjs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import app from "../../rumi_ai.app.mjs"; | ||
|
||
export default { | ||
key: "rumi_ai-get-memory-threads", | ||
name: "Get Memory Threads", | ||
description: "Retrieve memory threads. [See the documentation](https://rumiai.notion.site/Rumi-Public-API-Authentication-02055b7286874bd7b355862f1abe48d9)", | ||
version: "0.0.1", | ||
type: "action", | ||
props: { | ||
app, | ||
limit: { | ||
propDefinition: [ | ||
app, | ||
"limit", | ||
], | ||
}, | ||
}, | ||
async run({ $ }) { | ||
const { | ||
app, | ||
limit, | ||
} = this; | ||
|
||
const response = await app.getMemoryThreads({ | ||
$, | ||
params: { | ||
limit, | ||
}, | ||
}); | ||
|
||
$.export("$summary", `Successfully retrieved \`${response?.data?.threads?.length}\` memory thread(s)`); | ||
return response; | ||
}, | ||
}; |
33 changes: 33 additions & 0 deletions
33
components/rumi_ai/actions/get-past-sessions/get-past-sessions.mjs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import app from "../../rumi_ai.app.mjs"; | ||
|
||
export default { | ||
key: "rumi_ai-get-past-sessions", | ||
name: "Get Past Sessions", | ||
description: "Retrieve past sessions/meetings. [See the documentation](https://rumiai.notion.site/Rumi-Public-API-Authentication-02055b7286874bd7b355862f1abe48d9)", | ||
version: "0.0.1", | ||
type: "action", | ||
props: { | ||
app, | ||
limit: { | ||
propDefinition: [ | ||
app, | ||
"limit", | ||
], | ||
}, | ||
}, | ||
async run({ $ }) { | ||
const { | ||
app, limit, | ||
} = this; | ||
|
||
const response = await app.getPastSessions({ | ||
$, | ||
params: { | ||
limit, | ||
}, | ||
}); | ||
|
||
$.export("$summary", `Successfully retrieved \`${response?.data?.sessions?.length}\` past session(s)`); | ||
return response; | ||
}, | ||
}; |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.