From 033263795009e02774375e5ec279e7ee050d9f5e Mon Sep 17 00:00:00 2001 From: OpenInt Bot Date: Sun, 19 Jan 2025 21:47:32 -0800 Subject: [PATCH] new openint version --- sdks/sdk-openint/openint.oas.types.d.ts | 247 ++++++++++++++++-------- sdks/sdk-openint/package.json | 2 +- 2 files changed, 164 insertions(+), 85 deletions(-) diff --git a/sdks/sdk-openint/openint.oas.types.d.ts b/sdks/sdk-openint/openint.oas.types.d.ts index 3cdc75c..0e38421 100644 --- a/sdks/sdk-openint/openint.oas.types.d.ts +++ b/sdks/sdk-openint/openint.oas.types.d.ts @@ -1372,7 +1372,7 @@ export interface paths { patch?: never trace?: never } - '/unified/etl/read/{stream}': { + '/unified/sync/read/{stream}': { parameters: { query?: never header?: never @@ -1380,7 +1380,7 @@ export interface paths { cookie?: never } /** Read Stream */ - get: operations['etl-readStream'] + get: operations['sync-readStream'] put?: never post?: never delete?: never @@ -1389,7 +1389,7 @@ export interface paths { patch?: never trace?: never } - '/unified/etl/discover': { + '/unified/sync/discover': { parameters: { query?: never header?: never @@ -1397,7 +1397,7 @@ export interface paths { cookie?: never } /** Discover */ - get: operations['etl-discover'] + get: operations['sync-discover'] put?: never post?: never delete?: never @@ -1406,7 +1406,7 @@ export interface paths { patch?: never trace?: never } - '/unified/etl/read': { + '/unified/sync/read': { parameters: { query?: never header?: never @@ -1416,14 +1416,14 @@ export interface paths { get?: never put?: never /** Read Data */ - post: operations['etl-read'] + post: operations['sync-read'] delete?: never options?: never head?: never patch?: never trace?: never } - '/unified/etl/write': { + '/unified/sync/write': { parameters: { query?: never header?: never @@ -1433,14 +1433,31 @@ export interface paths { get?: never put?: never /** Write Data */ - post: operations['etl-write'] + post: operations['sync-write'] delete?: never options?: never head?: never patch?: never trace?: never } - '/unified/file-storage/drive': { + '/unified/file-storage/drive-groups': { + parameters: { + query?: never + header?: never + path?: never + cookie?: never + } + /** List drive groups */ + get: operations['fileStorage-listDriveGroups'] + put?: never + post?: never + delete?: never + options?: never + head?: never + patch?: never + trace?: never + } + '/unified/file-storage/drives': { parameters: { query?: never header?: never @@ -1457,15 +1474,15 @@ export interface paths { patch?: never trace?: never } - '/unified/file-storage/drive/{driveId}': { + '/unified/file-storage/files': { parameters: { query?: never header?: never path?: never cookie?: never } - /** Get drive */ - get: operations['fileStorage-getDrive'] + /** List files */ + get: operations['fileStorage-listFiles'] put?: never post?: never delete?: never @@ -1474,15 +1491,15 @@ export interface paths { patch?: never trace?: never } - '/unified/file-storage/drive/{driveId}/folder': { + '/unified/file-storage/files/{id}': { parameters: { query?: never header?: never path?: never cookie?: never } - /** List folders */ - get: operations['fileStorage-listFolders'] + /** Get file */ + get: operations['fileStorage-getFile'] put?: never post?: never delete?: never @@ -1491,15 +1508,15 @@ export interface paths { patch?: never trace?: never } - '/unified/file-storage/drive/{driveId}/folder/{folderId}': { + '/unified/file-storage/files/{id}/export': { parameters: { query?: never header?: never path?: never cookie?: never } - /** Get folder */ - get: operations['fileStorage-getFolder'] + /** Export file */ + get: operations['fileStorage-exportFile'] put?: never post?: never delete?: never @@ -1508,15 +1525,15 @@ export interface paths { patch?: never trace?: never } - '/unified/file-storage/drive/{driveId}/file': { + '/unified/file-storage/files/{id}/download': { parameters: { query?: never header?: never path?: never cookie?: never } - /** List files */ - get: operations['fileStorage-listFiles'] + /** Download file */ + get: operations['fileStorage-downloadFile'] put?: never post?: never delete?: never @@ -1525,15 +1542,15 @@ export interface paths { patch?: never trace?: never } - '/unified/file-storage/drive/{driveId}/file/{fileId}': { + '/unified/file-storage/folders': { parameters: { query?: never header?: never path?: never cookie?: never } - /** Get file */ - get: operations['fileStorage-getFile'] + /** List folders */ + get: operations['fileStorage-listFolders'] put?: never post?: never delete?: never @@ -2436,42 +2453,49 @@ export interface components { [key: string]: unknown } } - /** @description A unified representation of a storage drive */ - 'unified.drive': { + /** @description A unified representation of a drive group */ + 'unified.drivegroup': { id: string name: string + description?: string | null + updated_at?: string | null created_at?: string | null - modified_at?: string | null - raw_data?: { - [key: string]: unknown - } } - /** @description A unified representation of a folder within a drive */ - 'unified.folder': { + /** @description A unified representation of a storage drive */ + 'unified.drive': { id: string name: string - parent_id?: string | null - drive_id: string + description?: string | null + updated_at?: string | null created_at?: string | null - modified_at?: string | null - raw_data?: { - [key: string]: unknown - } } - /** @description A unified representation of a file within a drive */ + /** @description A unified representation of a file */ 'unified.file': { id: string - name: string - file_url?: string | null - download_url?: string | null + name?: string | null + description?: string | null + /** @enum {string} */ + type: 'file' | 'folder' | 'url' + path?: string | null mime_type?: string | null + downloadable: boolean size?: number | null - drive_id: string - created_at?: string | null - modified_at?: string | null - raw_data?: { - [key: string]: unknown + permissions: { + download: boolean } + exportable: boolean + export_formats?: string[] | null + updated_at?: string | null + created_at?: string | null + } + /** @description A unified representation of a folder */ + 'unified.folder': { + id: string + name: string + description?: string | null + path: string + updated_at?: string | null + created_at?: string | null } } responses: never @@ -3930,6 +3954,7 @@ export interface operations { page_size?: number search_text?: string connector_config_ids?: string[] + customer_integration_filters?: string[] } header?: never path?: never @@ -7999,7 +8024,7 @@ export interface operations { } } } - 'etl-readStream': { + 'sync-readStream': { parameters: { query?: { sync_mode?: 'full' | 'incremental' @@ -8057,7 +8082,7 @@ export interface operations { } } } - 'etl-discover': { + 'sync-discover': { parameters: { query?: never header?: never @@ -8096,7 +8121,7 @@ export interface operations { } } } - 'etl-read': { + 'sync-read': { parameters: { query?: never header?: never @@ -8174,7 +8199,7 @@ export interface operations { } } } - 'etl-write': { + 'sync-write': { parameters: { query?: never header?: never @@ -8250,7 +8275,7 @@ export interface operations { } } } - 'fileStorage-listDrives': { + 'fileStorage-listDriveGroups': { parameters: { query?: { sync_mode?: 'full' | 'incremental' @@ -8272,7 +8297,7 @@ export interface operations { 'application/json': { next_cursor?: string | null has_next_page: boolean - items: components['schemas']['unified.drive'][] + items: components['schemas']['unified.drivegroup'][] } } } @@ -8305,13 +8330,16 @@ export interface operations { } } } - 'fileStorage-getDrive': { + 'fileStorage-listDrives': { parameters: { - query?: never - header?: never - path: { - driveId: string + query?: { + sync_mode?: 'full' | 'incremental' + cursor?: string | null + page_size?: number + driveGroupId?: string } + header?: never + path?: never cookie?: never } requestBody?: never @@ -8322,7 +8350,11 @@ export interface operations { [name: string]: unknown } content: { - 'application/json': components['schemas']['unified.drive'] + 'application/json': { + next_cursor?: string | null + has_next_page: boolean + items: components['schemas']['unified.drive'][] + } } } /** @description Invalid input data */ @@ -8354,17 +8386,17 @@ export interface operations { } } } - 'fileStorage-listFolders': { + 'fileStorage-listFiles': { parameters: { query?: { sync_mode?: 'full' | 'incremental' cursor?: string | null page_size?: number + driveId?: string + folderId?: string } header?: never - path: { - driveId: string - } + path?: never cookie?: never } requestBody?: never @@ -8378,7 +8410,7 @@ export interface operations { 'application/json': { next_cursor?: string | null has_next_page: boolean - items: components['schemas']['unified.folder'][] + items: components['schemas']['unified.file'][] } } } @@ -8411,13 +8443,12 @@ export interface operations { } } } - 'fileStorage-getFolder': { + 'fileStorage-getFile': { parameters: { query?: never header?: never path: { - driveId: string - folderId: string + id: string } cookie?: never } @@ -8429,7 +8460,7 @@ export interface operations { [name: string]: unknown } content: { - 'application/json': components['schemas']['unified.folder'] + 'application/json': components['schemas']['unified.file'] } } /** @description Invalid input data */ @@ -8461,17 +8492,14 @@ export interface operations { } } } - 'fileStorage-listFiles': { + 'fileStorage-exportFile': { parameters: { - query?: { - sync_mode?: 'full' | 'incremental' - cursor?: string | null - page_size?: number - folderId?: string | null + query: { + format: string } header?: never path: { - driveId: string + id: string } cookie?: never } @@ -8483,11 +8511,7 @@ export interface operations { [name: string]: unknown } content: { - 'application/json': { - next_cursor?: string | null - has_next_page: boolean - items: components['schemas']['unified.file'][] - } + 'application/json': unknown } } /** @description Invalid input data */ @@ -8519,13 +8543,12 @@ export interface operations { } } } - 'fileStorage-getFile': { + 'fileStorage-downloadFile': { parameters: { query?: never header?: never path: { - driveId: string - fileId: string + id: string } cookie?: never } @@ -8537,7 +8560,63 @@ export interface operations { [name: string]: unknown } content: { - 'application/json': components['schemas']['unified.file'] + 'application/json': unknown + } + } + /** @description Invalid input data */ + 400: { + headers: { + [name: string]: unknown + } + content: { + 'application/json': components['schemas']['error.BAD_REQUEST'] + } + } + /** @description Not found */ + 404: { + headers: { + [name: string]: unknown + } + content: { + 'application/json': components['schemas']['error.NOT_FOUND'] + } + } + /** @description Internal server error */ + 500: { + headers: { + [name: string]: unknown + } + content: { + 'application/json': components['schemas']['error.INTERNAL_SERVER_ERROR'] + } + } + } + } + 'fileStorage-listFolders': { + parameters: { + query?: { + sync_mode?: 'full' | 'incremental' + cursor?: string | null + page_size?: number + driveId?: string + } + header?: never + path?: never + cookie?: never + } + requestBody?: never + responses: { + /** @description Successful response */ + 200: { + headers: { + [name: string]: unknown + } + content: { + 'application/json': { + next_cursor?: string | null + has_next_page: boolean + items: components['schemas']['unified.folder'][] + } } } /** @description Invalid input data */ diff --git a/sdks/sdk-openint/package.json b/sdks/sdk-openint/package.json index 4ccbbbf..c178ca7 100644 --- a/sdks/sdk-openint/package.json +++ b/sdks/sdk-openint/package.json @@ -1,6 +1,6 @@ { "name": "@opensdks/sdk-openint", - "version": "0.1.6", + "version": "0.1.7", "type": "module", "exports": { ".": {