Skip to content

Commit

Permalink
sync source by url endpoint, changes to input variables for send mess…
Browse files Browse the repository at this point in the history
…age (#104)

* sync osurce by url endpoint

* type correction

* body

* uuid for input

* stream

* stream

---------

Co-authored-by: Ria Balli <[email protected]>
  • Loading branch information
rb0000 and Ria Balli authored Nov 21, 2024
1 parent b08f0e2 commit 95e1a6a
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 7 deletions.
14 changes: 7 additions & 7 deletions fern/definition/copilots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,10 @@ service:
userEmail: [email protected]
inputVariables: [
{
name: "input1", urls: ["https://drive.google.com/file/d/123456/view"],
name: "input1", ids: [82e4b12a-6990-45d4-8ebd-85c00e030c24],
},
{
name: "input2", urls: ["https://drive.google.com/file/d/123457/view", "https://drive.google.com/file/d/123458/view"]
name: "input2", ids: [82e4b12a-6990-45d4-8ebd-85c00e030c25, 82e4b12a-6990-45d4-8ebd-85c00e030c26],
}
]
response:
Expand Down Expand Up @@ -241,10 +241,10 @@ service:
email: [email protected]
inputVariables: [
{
name: "input1", urls: ["https://drive.google.com/file/d/123456/view"],
name: "input1", ids: [82e4b12a-6990-45d4-8ebd-85c00e030c24],
},
{
name: "input2", urls: ["https://drive.google.com/file/d/123457/view", "https://drive.google.com/file/d/123458/view"]
name: "input2", ids: [82e4b12a-6990-45d4-8ebd-85c00e030c25, 82e4b12a-6990-45d4-8ebd-85c00e030c26],
}
]
response:
Expand Down Expand Up @@ -297,10 +297,10 @@ service:
email: [email protected]
inputVariables: [
{
name: "input1", urls: ["https://drive.google.com/file/d/123456/view"],
name: "input1", ids: [82e4b12a-6990-45d4-8ebd-85c00e030c26],
},
{
name: "input2", urls: ["https://drive.google.com/file/d/123457/view", "https://drive.google.com/file/d/123458/view"]
name: "input2", ids: [82e4b12a-6990-45d4-8ebd-85c00e030c25, 82e4b12a-6990-45d4-8ebd-85c00e030c24],
}
]
response:
Expand Down Expand Up @@ -441,7 +441,7 @@ types:
InputVariable:
properties:
name: string
urls: list<string>
ids: list<uuid>

MessageReply:
properties:
Expand Down
21 changes: 21 additions & 0 deletions fern/definition/documentCatalog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,20 @@ service:
response:
body:
documentId: 82e4b12a-6990-45d4-8ebd-85c00e030c24
syncSourceByUrl:
path: /syncSourceByUrl
docs: Sync a document from a source URL, permissions applied. Does not support recursive web search.
method: POST
request: SyncSourceByUrlRequest
response: SyncSourceByUrlResponse
examples:
- name: Example0
request:
sourceUrl: "https://drive.google.com/file/d/123456/view"
uploadAsUserEmail: "[email protected]"
response:
body:
sourceId: 82e4b12a-6990-45d4-8ebd-85c00e030c24
metadata:
path: /metadata
docs: Bulk patch metadata for documents, synced natively by Credal or manual API uploads
Expand Down Expand Up @@ -105,3 +119,10 @@ types:
properties:
sources: list<DocumentMetadataPatch>
uploadAsUserEmail: string
SyncSourceByUrlRequest:
properties:
uploadAsUserEmail: string
sourceUrl: string
SyncSourceByUrlResponse:
properties:
sourceId: uuid

0 comments on commit 95e1a6a

Please sign in to comment.