diff --git a/fern/definition/copilots.yml b/fern/definition/copilots.yml index 4c42de4..77b0c3a 100644 --- a/fern/definition/copilots.yml +++ b/fern/definition/copilots.yml @@ -133,10 +133,10 @@ service: userEmail: ravin@credal.ai 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: @@ -241,10 +241,10 @@ service: email: ravin@credal.ai 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: @@ -297,10 +297,10 @@ service: email: ravin@credal.ai 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: @@ -441,7 +441,7 @@ types: InputVariable: properties: name: string - urls: list + ids: list MessageReply: properties: diff --git a/fern/definition/documentCatalog.yml b/fern/definition/documentCatalog.yml index c2d6e28..fece761 100644 --- a/fern/definition/documentCatalog.yml +++ b/fern/definition/documentCatalog.yml @@ -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: "ria@credal.ai" + 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 @@ -105,3 +119,10 @@ types: properties: sources: list uploadAsUserEmail: string + SyncSourceByUrlRequest: + properties: + uploadAsUserEmail: string + sourceUrl: string + SyncSourceByUrlResponse: + properties: + sourceId: uuid