Skip to content

Commit

Permalink
Add typescript-carbon integration test (#553)
Browse files Browse the repository at this point in the history
* add typescript-carbon integration test

* remove python generator from konfig.yaml

* add snapshot
  • Loading branch information
eddiechayes authored Feb 9, 2024
1 parent 6a8bd07 commit 813faab
Show file tree
Hide file tree
Showing 162 changed files with 34,263 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,174 @@
description: Connect external data to LLMs, no matter the source.
examples: {}
examples_2: {}
examples_3:
/health:
get:
'200':
application/json: {}
/integrations/oauth_url:
post:
'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_user_file_tags:
post: Files_deleteFileTags
/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/files/sync:
post: Integrations_syncFiles
/integrations/freshdesk:
post: Integrations_connectFreshdesk
/integrations/gmail/sync:
post: Integrations_syncGmail
/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/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
/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/oauth_url:
post:
'200':
application/json: IntegrationsGetOauthUrlResponse
/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
embedding_model:
query: false
generate_sparse_vectors:
query: false
id:
query: false
max_items_per_chunk:
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.1

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
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"recommendations": [
"stoplight.spectral",
"redhat.vscode-yaml",
"csharpier.csharpier-vscode"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"spectral.enable": true,
"files.associations": {
".konfigignore": "ignore"
},
"python.testing.pytestArgs": [
"python",
"-o",
"cache_dir=python/.pytest_cache"
],
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true,
"dotnet-test-explorer.testProjectPath": "**/*.sln",
"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter",
"editor.formatOnSave": true
},
"files.insertFinalNewline": false,
"terminal.integrated.scrollback": 50000,
"black-formatter.importStrategy": "fromEnvironment",
"python.formatting.provider": "none",
"python.analysis.typeCheckingMode": "basic",
"python.testing.unittestArgs": [
"-v",
"-s",
"./python",
"-p",
"test_*.py"
],
"java.compile.nullAnalysis.mode": "automatic",
"ruby.useBundler": true,
"ruby.useLanguageServer": true,
"ruby.intellisense": "rubyLocate",
"ruby.lint": {
"rubocop": {
"useBundler": true
}
},
"ruby.format": "rubocop",
"[csharp]": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "csharpier.csharpier-vscode"
}
}
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|
|-|-|-|-|-|
|TypeScript|0.1.1|[npm](https://www.npmjs.com/package/carbon-typescript-sdk/v/0.1.1)|[README](https://github.com/konfig-dev/carbon-sdks/tree/main/typescript#readme)|[Source](https://github.com/konfig-dev/carbon-sdks/tree/main/typescript)|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# 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:
typescript:
version: 0.1.1
npmName: carbon-typescript-sdk
outputDirectory: typescript
clientName: Carbon
removeDefaultConfigurationParameters: true
useSecurityKeyNameAsPropertyName: true
readmeSnippet: snippets/typescriptReadmeGettingStartedSnippet.ts
git:
userId: konfig-dev
repoId: carbon-sdks/tree/main/typescript
5,868 changes: 5,868 additions & 0 deletions generator/konfig-integration-tests/sdks/typescript-carbon/openapi-fixed.json

Large diffs are not rendered by default.

Loading

0 comments on commit 813faab

Please sign in to comment.