{"id":28965914,"url":"https://github.com/devflowinc/trieve-client-ts","last_synced_at":"2025-06-24T07:10:35.026Z","repository":{"id":265848901,"uuid":"751231781","full_name":"devflowinc/trieve-client-ts","owner":"devflowinc","description":"TypeScript SDK for Trieve","archived":false,"fork":false,"pushed_at":"2024-02-01T07:35:38.000Z","size":98,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-22T05:17:06.659Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devflowinc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-02-01T07:35:06.000Z","updated_at":"2024-09-06T06:40:21.000Z","dependencies_parsed_at":"2024-12-01T07:51:51.813Z","dependency_job_id":"d8447b7d-21de-4256-a0c0-2a7e6dd5a81b","html_url":"https://github.com/devflowinc/trieve-client-ts","commit_stats":null,"previous_names":["devflowinc/trieve-client-ts"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/devflowinc/trieve-client-ts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devflowinc%2Ftrieve-client-ts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devflowinc%2Ftrieve-client-ts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devflowinc%2Ftrieve-client-ts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devflowinc%2Ftrieve-client-ts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devflowinc","download_url":"https://codeload.github.com/devflowinc/trieve-client-ts/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devflowinc%2Ftrieve-client-ts/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261624969,"owners_count":23186121,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-24T07:10:34.218Z","updated_at":"2025-06-24T07:10:34.995Z","avatar_url":"https://github.com/devflowinc.png","language":"TypeScript","readme":"## @\n\nThis generator creates TypeScript/JavaScript client that utilizes fetch-api.\n\n### Building\n\nTo build and compile the typescript sources to javascript use:\n```\nnpm install\nnpm run build\n```\n\n### Publishing\n\nFirst build the package then run ```npm publish```\n\n### Consuming\n\nNavigate to the folder of your consuming project and run one of the following commands.\n\n_published:_\n\n```\nnpm install @ --save\n```\n\n_unPublished (not recommended):_\n\n```\nnpm install PATH_TO_GENERATED_PACKAGE --save\n```\n\n### Usage\n\nBelow code snippet shows exemplary usage of the configuration and the API based \non the typical `PetStore` example used for OpenAPI. \n\n```\nimport * as your_api from 'your_api_package'\n\n// Covers all auth methods included in your OpenAPI yaml definition\nconst authConfig: your_api.AuthMethodsConfiguration = {\n    \"api_key\": \"YOUR_API_KEY\"\n}\n\n// Implements a simple middleware to modify requests before (`pre`) they are sent\n// and after (`post`) they have been received \nclass Test implements your_api.Middleware {\n    pre(context: your_api.RequestContext): Promise\u003cyour_api.RequestContext\u003e {\n        // Modify context here and return\n        return Promise.resolve(context);\n    }\n\n    post(context: your_api.ResponseContext): Promise\u003cyour_api.ResponseContext\u003e {\n        return Promise.resolve(context);\n    }\n\n}\n\n// Create configuration parameter object\nconst configurationParameters = {\n    httpApi: new your_api.JQueryHttpLibrary(), // Can also be ignored - default is usually fine\n    baseServer: your_api.servers[0], // First server is default\n    authMethods: authConfig, // No auth is default\n    promiseMiddleware: [new Test()],\n}\n\n// Convert to actual configuration\nconst config = your_api.createConfiguration(configurationParameters);\n\n// Use configuration with your_api\nconst api = new your_api.PetApi(config);\nyour_api.Pet p = new your_api.Pet();\np.name = \"My new pet\";\np.photoUrls = [];\np.tags = [];\np.status = \"available\";\nPromise\u003cyour_api.Pet\u003e createdPet = api.addPet(p);\n\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevflowinc%2Ftrieve-client-ts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevflowinc%2Ftrieve-client-ts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevflowinc%2Ftrieve-client-ts/lists"}