Skip to content

Commit

Permalink
add swift-carbon integration test (#675)
Browse files Browse the repository at this point in the history
  • Loading branch information
eddiechayes authored Apr 3, 2024
1 parent 7d29c4d commit bf3153a
Show file tree
Hide file tree
Showing 165 changed files with 41,333 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,238 @@
description: Connect external data to LLMs, no matter the source.
examples: {}
examples_2: {}
examples_3:
/health:
get:
'200':
application/json: {}
/integrations/gitbook/spaces:
get:
'200':
application/json: {}
/integrations/gitbook/sync:
post:
'200':
application/json: {}
/integrations/gmail/user_labels:
get:
'200':
application/json: {}
/integrations/oauth_url:
post:
'200':
application/json: {}
/integrations/outlook/user_categories:
get:
'200':
application/json: {}
/integrations/outlook/user_folders:
get:
'200':
application/json: {}
/process_sitemap:
get:
'200':
application/json: {}
/scrape_sitemap:
post:
'200':
application/json: {}
/web_scrape:
post:
'200':
application/json: {}
ignoreObjectsWithNoProperties: true
operationIds:
/add_webhook:
post: Webhooks_addUrl
/auth/v1/access_token:
get: Auth_getAccessToken
/auth/v1/white_labeling:
get: Auth_getWhiteLabeling
/create_user_file_tags:
post: Files_createUserFileTags
/delete_files:
post: Files_deleteMany
/delete_files_v2:
post: Files_deleteV2
/delete_user_file_tags:
post: Files_deleteFileTags
/delete_users:
post: Users_delete
/delete_webhook/{webhook_id}:
delete: Webhooks_deleteUrl
/deletefile/{file_id}:
delete: Files_delete
/embeddings:
post: Embeddings_getDocuments
/fetch_urls:
get: Utilities_fetchUrls
/fetch_youtube_transcript:
get: Utilities_fetchYoutubeTranscripts
/health:
get: Health_check
/integrations/confluence/list:
post: Integrations_listConfluencePages
/integrations/confluence/sync:
post: Integrations_syncConfluence
/integrations/connect:
post: Integrations_connectDataSource
/integrations/files/sync:
post: Integrations_syncFiles
/integrations/freshdesk:
post: Integrations_connectFreshdesk
/integrations/gitbook:
post: Integrations_connectGitbook
/integrations/gitbook/spaces:
get: Integrations_listGitbookSpaces
/integrations/gitbook/sync:
post: Integrations_syncGitbook
/integrations/gmail/sync:
post: Integrations_syncGmail
/integrations/gmail/user_labels:
get: Integrations_listLabels
/integrations/items/list:
post: Integrations_listDataSourceItems
/integrations/items/sync:
post: Integrations_syncDataSourceItems
/integrations/oauth_url:
post: Integrations_getOauthUrl
/integrations/outlook/sync:
post: Integrations_syncOutlook
/integrations/outlook/user_categories:
get: Integrations_listOutlookCategories
/integrations/outlook/user_folders:
get: Integrations_listFolders
/integrations/rss_feed:
post: Integrations_syncRssFeed
/integrations/s3:
post: Integrations_createAwsIamUser
/integrations/s3/files:
post: Integrations_syncS3Files
/modify_user_configuration:
post: Users_toggleUserFeatures
/organization:
get: Organizations_get
/parsed_file/{file_id}:
get: Files_getParsedFile
/process_sitemap:
get: Utilities_processSitemap
/raw_file/{file_id}:
get: Files_getRawFile
/resync_file:
post: Files_resync
/revoke_access_token:
post: DataSources_revokeAccessToken
/scrape_sitemap:
post: Utilities_scrapeSitemap
/search_urls:
get: Utilities_searchUrls
/text_chunks:
post: Embeddings_getEmbeddingsAndChunks
/update_users:
post: Users_updateUsers
/upload_chunks_and_embeddings:
post: Embeddings_uploadChunksAndEmbeddings
/upload_file_from_url:
post: Files_uploadFromUrl
/upload_text:
post: Files_uploadText
/uploadfile:
post: Files_upload
/user:
post: Users_get
/user_data_sources:
post: DataSources_queryUserDataSources
/user_files:
post: Files_queryUserFilesDeprecated
/user_files_v2:
post: Files_queryUserFiles
/web_scrape:
post: Utilities_scrapeWeb
/webhooks:
post: Webhooks_urls
operationTags: {}
renameTags: {}
requestSchemaNames:
/web_scrape:
post:
application/json: UtilitiesScrapeWebRequest
responseDescriptions: {}
responseSchemaNames:
/health:
get:
'200':
application/json: HealthCheckResponse
/integrations/gitbook/spaces:
get:
'200':
application/json: IntegrationsListGitbookSpacesResponse
/integrations/gitbook/sync:
post:
'200':
application/json: IntegrationsSyncGitbookResponse
/integrations/gmail/user_labels:
get:
'200':
application/json: IntegrationsListLabelsResponse
/integrations/oauth_url:
post:
'200':
application/json: IntegrationsGetOauthUrlResponse
/integrations/outlook/user_categories:
get:
'200':
application/json: IntegrationsListOutlookCategoriesResponse
/integrations/outlook/user_folders:
get:
'200':
application/json: IntegrationsListFoldersResponse
/process_sitemap:
get:
'200':
application/json: UtilitiesProcessSitemapResponse
/scrape_sitemap:
post:
'200':
application/json: UtilitiesScrapeSitemapResponse
/user_files:
post:
'200':
application/json: FilesQueryUserFilesDeprecatedResponse
/web_scrape:
post:
'200':
application/json: UtilitiesScrapeWebResponse
securityParameters:
chunk_overlap:
query: false
chunk_size:
query: false
data_source_id:
query: false
embedding_model:
query: false
generate_sparse_vectors:
query: false
id:
query: false
max_items_per_chunk:
query: false
parse_pdf_tables_with_ocr:
query: false
prepend_filename_to_chunks:
query: false
query:
query: false
raw:
query: false
set_page_as_boundary:
query: false
skip_embedding_generation:
query: false
url:
query: false
use_ocr:
query: false
validServerUrls: {}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.5.8

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
extends:
- .konfig/ruleset.js
7 changes: 7 additions & 0 deletions generator/konfig-integration-tests/sdks/swift-carbon/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Copyright (c) 2024- Konfig, Inc. (https://konfigthis.com)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# konfig

|Language|Version|Package Manager|README|Source|
|-|-|-|-|-|
|Swift|0.1.0|[CocoaPods](https://cocoapods.org/pods/Carbon)|[README](https://github.com/Carbon-for-Developers/carbon-sdks/tree/HEAD/swift#readme)|[Source](https://github.com/Carbon-for-Developers/carbon-sdks/tree/HEAD/swift)|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
39 changes: 39 additions & 0 deletions generator/konfig-integration-tests/sdks/swift-carbon/konfig.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# yaml-language-server: $schema=https://unpkg.com/konfig-lib@latest/konfig-yaml.schema.json

outputDirectory: /tmp/carbon-sdks-out
specRemotePath: https://api.carbon.ai/openapi.json
specInputPath: openapi.json
specPath: openapi-fixed.json
readmeHeader:
title: Carbon
image: header.png
url: https://carbon.ai
securitySchemeOverride:
security:
- apiKey: []
customerId: []
- accessToken: []
securitySchemes:
apiKey:
type: apiKey
name: authorization
in: header
x-konfig-prefix: 'Bearer '
accessToken:
type: apiKey
name: authorization
in: header
x-konfig-prefix: 'Token '
customerId:
type: apiKey
name: customer-id
in: header
generators:
swift:
version: 0.1.0
projectName: Carbon
podAuthors: carbon.ai
outputDirectory: swift
git:
userId: Carbon-for-Developers
repoId: carbon-sdks/tree/main/swift
7,393 changes: 7,393 additions & 0 deletions generator/konfig-integration-tests/sdks/swift-carbon/openapi-fixed.json

Large diffs are not rendered by default.

Loading

0 comments on commit bf3153a

Please sign in to comment.