From f613a0c0797f40cdf6333f9c9396a26e0580e220 Mon Sep 17 00:00:00 2001 From: Nabhag8848 Date: Tue, 28 May 2024 13:43:29 +0530 Subject: [PATCH 1/5] feat: make public-token and api-version header to be common to every endpoints --- fern/definition/api.yml | 3 +++ fern/definition/chat/channels.yml | 6 ------ fern/definition/chat/messages.yml | 6 ------ fern/definition/chat/users.yml | 6 ------ fern/definition/connection.yml | 7 ------- fern/definition/crm/company.yml | 6 ------ fern/definition/crm/contact.yml | 6 ------ fern/definition/crm/deal.yml | 6 ------ fern/definition/crm/event.yml | 6 ------ fern/definition/crm/lead.yml | 6 ------ fern/definition/crm/note.yml | 6 ------ fern/definition/crm/properties.yml | 6 ------ fern/definition/crm/proxy.yml | 6 ------ fern/definition/crm/task.yml | 6 ------ fern/definition/crm/user.yml | 6 ------ fern/definition/field-mapping.yml | 14 -------------- fern/definition/internal/account.yml | 2 -- fern/definition/internal/analytics.yml | 2 -- fern/definition/internal/telemetry.yml | 2 -- fern/definition/sync.yml | 3 --- fern/definition/ticket/collection.yml | 6 ------ fern/definition/ticket/comment.yml | 6 ------ fern/definition/ticket/proxy.yml | 6 ------ fern/definition/ticket/task.yml | 6 ------ fern/definition/ticket/user.yml | 6 ------ fern/generators.yml | 19 +++++++++++++++---- 26 files changed, 18 insertions(+), 142 deletions(-) diff --git a/fern/definition/api.yml b/fern/definition/api.yml index d0bfb7c2f..da95fabfc 100644 --- a/fern/definition/api.yml +++ b/fern/definition/api.yml @@ -1,4 +1,7 @@ name: revert-api +headers: + x-revert-api-token: string + x-api-version: optional error-discrimination: strategy: status-code environments: diff --git a/fern/definition/chat/channels.yml b/fern/definition/chat/channels.yml index 1a37f7a1d..78db86c75 100644 --- a/fern/definition/chat/channels.yml +++ b/fern/definition/chat/channels.yml @@ -16,15 +16,9 @@ service: base-path: /chat/channels auth: false headers: - x-revert-api-token: - type: string - docs: Your official API key for accessing revert apis. x-revert-t-id: type: string docs: The unique customer id used when the customer linked their account. - x-api-version: - type: optional - docs: Optional Revert API version you're using. If missing we default to the latest version of the API. audiences: - external endpoints: diff --git a/fern/definition/chat/messages.yml b/fern/definition/chat/messages.yml index 6c1b563af..d76a1cb59 100644 --- a/fern/definition/chat/messages.yml +++ b/fern/definition/chat/messages.yml @@ -16,15 +16,9 @@ service: base-path: /chat/message auth: false headers: - x-revert-api-token: - type: string - docs: Your official API key for accessing revert apis. x-revert-t-id: type: string docs: The unique customer id used when the customer linked their account. - x-api-version: - type: optional - docs: Optional Revert API version you're using. If missing we default to the latest version of the API. audiences: - external endpoints: diff --git a/fern/definition/chat/users.yml b/fern/definition/chat/users.yml index 444d19810..5785a6bbf 100644 --- a/fern/definition/chat/users.yml +++ b/fern/definition/chat/users.yml @@ -16,15 +16,9 @@ service: base-path: /chat/users auth: false headers: - x-revert-api-token: - type: string - docs: Your official API key for accessing revert apis. x-revert-t-id: type: string docs: The unique customer id used when the customer linked their account. - x-api-version: - type: optional - docs: Optional Revert API version you're using. If missing we default to the latest version of the API. audiences: - external endpoints: diff --git a/fern/definition/connection.yml b/fern/definition/connection.yml index a33963378..b8d40450e 100644 --- a/fern/definition/connection.yml +++ b/fern/definition/connection.yml @@ -73,13 +73,6 @@ types: service: base-path: '' auth: false - headers: - x-revert-api-token: - type: string - docs: Your official API key for accessing revert apis. - x-api-version: - type: optional - docs: Optional Revert API version you're using. If missing we default to the latest version of the API. audiences: - external endpoints: diff --git a/fern/definition/crm/company.yml b/fern/definition/crm/company.yml index c60c31b31..57ee7cfe2 100644 --- a/fern/definition/crm/company.yml +++ b/fern/definition/crm/company.yml @@ -37,15 +37,9 @@ service: base-path: /crm/companies auth: false headers: - x-revert-api-token: - type: string - docs: Your official API key for accessing revert apis. x-revert-t-id: type: string docs: The unique customer id used when the customer linked their account. - x-api-version: - type: optional - docs: Optional Revert API version you're using. If missing we default to the latest version of the API. audiences: - external endpoints: diff --git a/fern/definition/crm/contact.yml b/fern/definition/crm/contact.yml index 0b9285f9a..eb99b7c95 100644 --- a/fern/definition/crm/contact.yml +++ b/fern/definition/crm/contact.yml @@ -38,15 +38,9 @@ service: base-path: /crm/contacts auth: false headers: - x-revert-api-token: - type: string - docs: Your official API key for accessing revert apis. x-revert-t-id: type: string docs: The unique customer id used when the customer linked their account. - x-api-version: - type: optional - docs: Optional Revert API version you're using. If missing we default to the latest version of the API. audiences: - external endpoints: diff --git a/fern/definition/crm/deal.yml b/fern/definition/crm/deal.yml index c26a60076..bae620594 100644 --- a/fern/definition/crm/deal.yml +++ b/fern/definition/crm/deal.yml @@ -38,15 +38,9 @@ service: base-path: /crm/deals auth: false headers: - x-revert-api-token: - type: string - docs: Your official API key for accessing revert apis. x-revert-t-id: type: string docs: The unique customer id used when the customer linked their account. - x-api-version: - type: optional - docs: Optional Revert API version you're using. If missing we default to the latest version of the API. audiences: - external endpoints: diff --git a/fern/definition/crm/event.yml b/fern/definition/crm/event.yml index e416f2da9..e70be9ad5 100644 --- a/fern/definition/crm/event.yml +++ b/fern/definition/crm/event.yml @@ -43,15 +43,9 @@ service: base-path: /crm/events auth: false headers: - x-revert-api-token: - type: string - docs: Your official API key for accessing revert apis. x-revert-t-id: type: string docs: The unique customer id used when the customer linked their account. - x-api-version: - type: optional - docs: Optional Revert API version you're using. If missing we default to the latest version of the API. audiences: - external endpoints: diff --git a/fern/definition/crm/lead.yml b/fern/definition/crm/lead.yml index 30035ad6c..7c77a6f00 100644 --- a/fern/definition/crm/lead.yml +++ b/fern/definition/crm/lead.yml @@ -38,15 +38,9 @@ service: base-path: /crm/leads auth: false headers: - x-revert-api-token: - type: string - docs: Your official API key for accessing revert apis. x-revert-t-id: type: string docs: The unique customer id used when the customer linked their account. - x-api-version: - type: optional - docs: Optional Revert API version you're using. If missing we default to the latest version of the API. audiences: - external endpoints: diff --git a/fern/definition/crm/note.yml b/fern/definition/crm/note.yml index 46e990f8d..a53a70f2f 100644 --- a/fern/definition/crm/note.yml +++ b/fern/definition/crm/note.yml @@ -38,15 +38,9 @@ service: base-path: /crm/notes auth: false headers: - x-revert-api-token: - type: string - docs: Your official API key for accessing revert apis. x-revert-t-id: type: string docs: The unique customer id used when the customer linked their account. - x-api-version: - type: optional - docs: Optional Revert API version you're using. If missing we default to the latest version of the API. audiences: - external endpoints: diff --git a/fern/definition/crm/properties.yml b/fern/definition/crm/properties.yml index 908895e66..bdd29375c 100644 --- a/fern/definition/crm/properties.yml +++ b/fern/definition/crm/properties.yml @@ -28,15 +28,9 @@ service: base-path: /crm/properties auth: false headers: - x-revert-api-token: - type: string - docs: Your official API key for accessing revert apis. x-revert-t-id: type: string docs: The unique customer id used when the customer linked their account. - x-api-version: - type: optional - docs: Optional Revert API version you're using. If missing we default to the latest version of the API. audiences: - external endpoints: diff --git a/fern/definition/crm/proxy.yml b/fern/definition/crm/proxy.yml index c604619b1..91affe444 100644 --- a/fern/definition/crm/proxy.yml +++ b/fern/definition/crm/proxy.yml @@ -20,15 +20,9 @@ service: base-path: /crm/proxy auth: false headers: - x-revert-api-token: - type: string - docs: Your official API key for accessing revert apis. x-revert-t-id: type: string docs: The unique customer id used when the customer linked their account. - x-api-version: - type: optional - docs: Optional Revert API version you're using. If missing we default to the latest version of the API. audiences: - external endpoints: diff --git a/fern/definition/crm/task.yml b/fern/definition/crm/task.yml index 323272a82..823de8af7 100644 --- a/fern/definition/crm/task.yml +++ b/fern/definition/crm/task.yml @@ -38,15 +38,9 @@ service: base-path: /crm/tasks auth: false headers: - x-revert-api-token: - type: string - docs: Your official API key for accessing revert apis. x-revert-t-id: type: string docs: The unique customer id used when the customer linked their account. - x-api-version: - type: optional - docs: Optional Revert API version you're using. If missing we default to the latest version of the API. audiences: - external endpoints: diff --git a/fern/definition/crm/user.yml b/fern/definition/crm/user.yml index 33c275fa9..52463fa8e 100644 --- a/fern/definition/crm/user.yml +++ b/fern/definition/crm/user.yml @@ -36,15 +36,9 @@ service: base-path: /crm/users auth: false headers: - x-revert-api-token: - type: string - docs: Your official API key for accessing revert apis. x-revert-t-id: type: string docs: The unique customer id used when the customer linked their account. - x-api-version: - type: optional - docs: Optional Revert API version you're using. If missing we default to the latest version of the API. audiences: - external endpoints: diff --git a/fern/definition/field-mapping.yml b/fern/definition/field-mapping.yml index 4457ddcf7..897589070 100644 --- a/fern/definition/field-mapping.yml +++ b/fern/definition/field-mapping.yml @@ -78,9 +78,6 @@ service: request: name: GetFieldMappingsRequest headers: - x-revert-api-token: - type: string - docs: Your official API key for accessing revert apis. x-revert-t-id: type: string docs: The unique customer id used when the customer linked their account. @@ -118,9 +115,6 @@ service: request: name: DeleteFieldMappingRequest headers: - x-revert-api-token: - type: string - docs: Your official API key for accessing revert apis. x-revert-t-id: type: string docs: The unique customer id used when the customer linked their account. @@ -136,10 +130,6 @@ service: request: name: CreateAccountFieldMappingRequest body: CreateAccountFieldMappingRequestBody - headers: - x-revert-api-token: - type: string - docs: Your official API key for accessing revert apis. response: CreateAccountFieldMappingResponse errors: - errors.UnAuthorizedError @@ -151,10 +141,6 @@ service: path: '/config' request: name: DeleteAccountFieldMappingConfigRequest - headers: - x-revert-api-token: - type: string - docs: Your official API key for accessing revert apis. response: DeleteAccountFieldMappingConfigResponse errors: - errors.UnAuthorizedError diff --git a/fern/definition/internal/account.yml b/fern/definition/internal/account.yml index c81c1c9b8..2156b9424 100644 --- a/fern/definition/internal/account.yml +++ b/fern/definition/internal/account.yml @@ -12,8 +12,6 @@ types: service: base-path: /internal/account auth: false - headers: - x-revert-api-token: string audiences: - internal endpoints: diff --git a/fern/definition/internal/analytics.yml b/fern/definition/internal/analytics.yml index 1ea100013..a4250dd1c 100644 --- a/fern/definition/internal/analytics.yml +++ b/fern/definition/internal/analytics.yml @@ -11,8 +11,6 @@ types: service: base-path: /internal/analytics auth: false - headers: - x-revert-api-token: string audiences: - internal endpoints: diff --git a/fern/definition/internal/telemetry.yml b/fern/definition/internal/telemetry.yml index 97697572f..4ea73eb4d 100644 --- a/fern/definition/internal/telemetry.yml +++ b/fern/definition/internal/telemetry.yml @@ -12,8 +12,6 @@ types: service: base-path: /internal/telemetry auth: false - headers: - x-revert-api-token: string audiences: - internal endpoints: diff --git a/fern/definition/sync.yml b/fern/definition/sync.yml index 17939644a..44f06e349 100644 --- a/fern/definition/sync.yml +++ b/fern/definition/sync.yml @@ -22,9 +22,6 @@ service: request: name: TriggerSyncRequest headers: - x-revert-api-token: - type: string - docs: Your official API key for accessing revert apis. x-revert-t-id: type: string docs: The unique customer id used when the customer linked their account. diff --git a/fern/definition/ticket/collection.yml b/fern/definition/ticket/collection.yml index 7a6d7d374..cb8a85d09 100644 --- a/fern/definition/ticket/collection.yml +++ b/fern/definition/ticket/collection.yml @@ -14,15 +14,9 @@ service: base-path: /ticket/collections auth: false headers: - x-revert-api-token: - type: string - docs: Your official API key for accessing revert apis. x-revert-t-id: type: string docs: The unique customer id used when the customer linked their account. - x-api-version: - type: optional - docs: Optional Revert API version you're using. If missing we default to the latest version of the API. audiences: - external endpoints: diff --git a/fern/definition/ticket/comment.yml b/fern/definition/ticket/comment.yml index 8581228be..4b13905f3 100644 --- a/fern/definition/ticket/comment.yml +++ b/fern/definition/ticket/comment.yml @@ -26,15 +26,9 @@ service: base-path: /ticket/comments auth: false headers: - x-revert-api-token: - type: string - docs: Your official API key for accessing revert apis. x-revert-t-id: type: string docs: The unique customer id used when the customer linked their account. - x-api-version: - type: optional - docs: Optional Revert API version you're using. If missing we default to the latest version of the API. audiences: - external endpoints: diff --git a/fern/definition/ticket/proxy.yml b/fern/definition/ticket/proxy.yml index abb797046..6b1201131 100644 --- a/fern/definition/ticket/proxy.yml +++ b/fern/definition/ticket/proxy.yml @@ -17,15 +17,9 @@ service: base-path: /ticket/proxy auth: false headers: - x-revert-api-token: - type: string - docs: Your official API key for accessing revert apis. x-revert-t-id: type: string docs: The unique customer id used when the customer linked their account. - x-api-version: - type: optional - docs: Optional Revert API version you're using. If missing we default to the latest version of the API. audiences: - external endpoints: diff --git a/fern/definition/ticket/task.yml b/fern/definition/ticket/task.yml index a1a85248c..1b848f7e1 100644 --- a/fern/definition/ticket/task.yml +++ b/fern/definition/ticket/task.yml @@ -26,15 +26,9 @@ service: base-path: /ticket/tasks auth: false headers: - x-revert-api-token: - type: string - docs: Your official API key for accessing revert apis. x-revert-t-id: type: string docs: The unique customer id used when the customer linked their account. - x-api-version: - type: optional - docs: Optional Revert API version you're using. If missing we default to the latest version of the API. audiences: - external endpoints: diff --git a/fern/definition/ticket/user.yml b/fern/definition/ticket/user.yml index ff7518923..d75b8e4cb 100644 --- a/fern/definition/ticket/user.yml +++ b/fern/definition/ticket/user.yml @@ -20,15 +20,9 @@ service: base-path: /ticket/users auth: false headers: - x-revert-api-token: - type: string - docs: Your official API key for accessing revert apis. x-revert-t-id: type: string docs: The unique customer id used when the customer linked their account. - x-api-version: - type: optional - docs: Optional Revert API version you're using. If missing we default to the latest version of the API. audiences: - external endpoints: diff --git a/fern/generators.yml b/fern/generators.yml index 3d5b93c65..0fd3b6138 100644 --- a/fern/generators.yml +++ b/fern/generators.yml @@ -12,11 +12,11 @@ groups: outputSourceFiles: true - name: fernapi/fern-openapi version: 0.0.28 - config: - format: yaml #options are yaml or jsonx output: location: local-file-system path: ../packages/backend/oas + config: + format: yaml external: audiences: - external @@ -32,12 +32,11 @@ groups: config: namespaceExport: Revert timeoutInSeconds: infinity - - name: fernapi/fern-python-sdk version: 0.7.2 output: location: pypi - package-name: 'revert-api' + package-name: revert-api token: ${PYPI_TOKEN} github: repository: revertinc/revert-python @@ -53,3 +52,15 @@ groups: # workspace-id: ${POSTMAN_WORKSPACE_ID} # github: # repository: revertinc/revert-postman + sdk: + generators: + - name: fernapi/fern-typescript-node-sdk + version: 0.7.2 + output: + location: local-file-system + path: ../node-sdk + - name: fernapi/fern-python-sdk + version: 0.6.0 + output: + location: local-file-system + path: ../python-sdk From f9e3be2265db98c4f1176f1ea51a4bf02802bc36 Mon Sep 17 00:00:00 2001 From: Nabhag8848 Date: Tue, 28 May 2024 14:20:46 +0530 Subject: [PATCH 2/5] feat: generate sdk locally under packages --- .gitignore | 4 ++++ fern/definition/api.yml | 2 +- fern/generators.yml | 4 ++-- package.json | 1 + 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 37f6f6032..ab115d606 100644 --- a/.gitignore +++ b/.gitignore @@ -86,3 +86,7 @@ npm-debug.log* !fern/**/*.yml revert-dev.js .yarn/install-state.gz + +# SDKs +**/node-sdk +**/python-sdk \ No newline at end of file diff --git a/fern/definition/api.yml b/fern/definition/api.yml index da95fabfc..5f931fb6d 100644 --- a/fern/definition/api.yml +++ b/fern/definition/api.yml @@ -1,4 +1,4 @@ -name: revert-api +name: api headers: x-revert-api-token: string x-api-version: optional diff --git a/fern/generators.yml b/fern/generators.yml index 0fd3b6138..fdfd8bcaa 100644 --- a/fern/generators.yml +++ b/fern/generators.yml @@ -58,9 +58,9 @@ groups: version: 0.7.2 output: location: local-file-system - path: ../node-sdk + path: ../packages/node-sdk - name: fernapi/fern-python-sdk version: 0.6.0 output: location: local-file-system - path: ../python-sdk + path: ../packages/python-sdk diff --git a/package.json b/package.json index f83d9069d..0afd7d522 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,7 @@ }, "scripts": { "fern": "fern generate --log-level debug --group local", + "fern-sdk:generate": "fern generate --group sdk", "fern-check": "fern check", "fern-format": "fern format", "fern-upgrade": "fern upgrade --rc", From 337a8cc3a4f1bc2744ddad6ab1c7ae97152a2c4c Mon Sep 17 00:00:00 2001 From: Nabhag8848 Date: Tue, 28 May 2024 17:20:44 +0530 Subject: [PATCH 3/5] fix: generators to have config, and revert fieldMappings and sync changes --- fern/definition/api.yml | 2 +- fern/definition/field-mapping.yml | 14 ++++++++++++++ fern/definition/sync.yml | 3 +++ fern/generators.yml | 11 +++++++++-- 4 files changed, 27 insertions(+), 3 deletions(-) diff --git a/fern/definition/api.yml b/fern/definition/api.yml index 5f931fb6d..da95fabfc 100644 --- a/fern/definition/api.yml +++ b/fern/definition/api.yml @@ -1,4 +1,4 @@ -name: api +name: revert-api headers: x-revert-api-token: string x-api-version: optional diff --git a/fern/definition/field-mapping.yml b/fern/definition/field-mapping.yml index 897589070..4457ddcf7 100644 --- a/fern/definition/field-mapping.yml +++ b/fern/definition/field-mapping.yml @@ -78,6 +78,9 @@ service: request: name: GetFieldMappingsRequest headers: + x-revert-api-token: + type: string + docs: Your official API key for accessing revert apis. x-revert-t-id: type: string docs: The unique customer id used when the customer linked their account. @@ -115,6 +118,9 @@ service: request: name: DeleteFieldMappingRequest headers: + x-revert-api-token: + type: string + docs: Your official API key for accessing revert apis. x-revert-t-id: type: string docs: The unique customer id used when the customer linked their account. @@ -130,6 +136,10 @@ service: request: name: CreateAccountFieldMappingRequest body: CreateAccountFieldMappingRequestBody + headers: + x-revert-api-token: + type: string + docs: Your official API key for accessing revert apis. response: CreateAccountFieldMappingResponse errors: - errors.UnAuthorizedError @@ -141,6 +151,10 @@ service: path: '/config' request: name: DeleteAccountFieldMappingConfigRequest + headers: + x-revert-api-token: + type: string + docs: Your official API key for accessing revert apis. response: DeleteAccountFieldMappingConfigResponse errors: - errors.UnAuthorizedError diff --git a/fern/definition/sync.yml b/fern/definition/sync.yml index 44f06e349..17939644a 100644 --- a/fern/definition/sync.yml +++ b/fern/definition/sync.yml @@ -22,6 +22,9 @@ service: request: name: TriggerSyncRequest headers: + x-revert-api-token: + type: string + docs: Your official API key for accessing revert apis. x-revert-t-id: type: string docs: The unique customer id used when the customer linked their account. diff --git a/fern/generators.yml b/fern/generators.yml index fdfd8bcaa..f4fe89dc0 100644 --- a/fern/generators.yml +++ b/fern/generators.yml @@ -58,9 +58,16 @@ groups: version: 0.7.2 output: location: local-file-system - path: ../packages/node-sdk + path: ../../revert-node-ts/src + config: + namespaceExport: Revert + timeoutInSeconds: infinity + outputSourceFiles: true - name: fernapi/fern-python-sdk version: 0.6.0 output: location: local-file-system - path: ../packages/python-sdk + path: ../../revert-python/src + config: + client_class_name: Revert + timeout_in_seconds: infinity From 30477fa55771ca89e8c6364723f6fd76e651575e Mon Sep 17 00:00:00 2001 From: Nabhag8848 Date: Wed, 29 May 2024 10:58:55 +0530 Subject: [PATCH 4/5] fix: sdk to skip validations --- fern/definition/field-mapping.yml | 14 ------------ fern/definition/internal/account.yml | 10 ++++---- fern/definition/sync.yml | 3 --- fern/generators.yml | 3 ++- packages/backend/oas/openapi.yml | 34 ++-------------------------- 5 files changed, 8 insertions(+), 56 deletions(-) diff --git a/fern/definition/field-mapping.yml b/fern/definition/field-mapping.yml index 4457ddcf7..897589070 100644 --- a/fern/definition/field-mapping.yml +++ b/fern/definition/field-mapping.yml @@ -78,9 +78,6 @@ service: request: name: GetFieldMappingsRequest headers: - x-revert-api-token: - type: string - docs: Your official API key for accessing revert apis. x-revert-t-id: type: string docs: The unique customer id used when the customer linked their account. @@ -118,9 +115,6 @@ service: request: name: DeleteFieldMappingRequest headers: - x-revert-api-token: - type: string - docs: Your official API key for accessing revert apis. x-revert-t-id: type: string docs: The unique customer id used when the customer linked their account. @@ -136,10 +130,6 @@ service: request: name: CreateAccountFieldMappingRequest body: CreateAccountFieldMappingRequestBody - headers: - x-revert-api-token: - type: string - docs: Your official API key for accessing revert apis. response: CreateAccountFieldMappingResponse errors: - errors.UnAuthorizedError @@ -151,10 +141,6 @@ service: path: '/config' request: name: DeleteAccountFieldMappingConfigRequest - headers: - x-revert-api-token: - type: string - docs: Your official API key for accessing revert apis. response: DeleteAccountFieldMappingConfigResponse errors: - errors.UnAuthorizedError diff --git a/fern/definition/internal/account.yml b/fern/definition/internal/account.yml index 2156b9424..8487b1107 100644 --- a/fern/definition/internal/account.yml +++ b/fern/definition/internal/account.yml @@ -52,16 +52,14 @@ service: docs: create Revert App for Account method: POST path: /apps - request: + request: name: CreateRevertAppForAccount - body: - properties: + body: + properties: userId: string tpId: types.TPID environment: string response: GetAccountDetailsResponse - errors: + errors: - errors.UnAuthorizedError - errors.InternalServerError - - diff --git a/fern/definition/sync.yml b/fern/definition/sync.yml index 17939644a..44f06e349 100644 --- a/fern/definition/sync.yml +++ b/fern/definition/sync.yml @@ -22,9 +22,6 @@ service: request: name: TriggerSyncRequest headers: - x-revert-api-token: - type: string - docs: Your official API key for accessing revert apis. x-revert-t-id: type: string docs: The unique customer id used when the customer linked their account. diff --git a/fern/generators.yml b/fern/generators.yml index f4fe89dc0..9ebb71934 100644 --- a/fern/generators.yml +++ b/fern/generators.yml @@ -62,7 +62,8 @@ groups: config: namespaceExport: Revert timeoutInSeconds: infinity - outputSourceFiles: true + outputSourceFiles: false + skipResponseValidation: true - name: fernapi/fern-python-sdk version: 0.6.0 output: diff --git a/packages/backend/oas/openapi.yml b/packages/backend/oas/openapi.yml index 0f5b9df13..6083aaa2a 100644 --- a/packages/backend/oas/openapi.yml +++ b/packages/backend/oas/openapi.yml @@ -2483,12 +2483,6 @@ paths: tags: - FieldMapping parameters: - - name: x-revert-api-token - in: header - description: Your official API key for accessing revert apis. - required: true - schema: - type: string - name: x-revert-t-id in: header description: The unique customer id used when the customer linked their account. @@ -2527,12 +2521,6 @@ paths: tags: - FieldMapping parameters: - - name: x-revert-api-token - in: header - description: Your official API key for accessing revert apis. - required: true - schema: - type: string - name: x-revert-t-id in: header description: The unique customer id used when the customer linked their account. @@ -2570,13 +2558,7 @@ paths: operationId: fieldMapping_createAccountFieldMappingConfig tags: - FieldMapping - parameters: - - name: x-revert-api-token - in: header - description: Your official API key for accessing revert apis. - required: true - schema: - type: string + parameters: [] responses: '200': description: '' @@ -2613,13 +2595,7 @@ paths: operationId: fieldMapping_deleteAccountFieldMappingConfig tags: - FieldMapping - parameters: - - name: x-revert-api-token - in: header - description: Your official API key for accessing revert apis. - required: true - schema: - type: string + parameters: [] responses: '200': description: '' @@ -2909,12 +2885,6 @@ paths: tags: - Sync parameters: - - name: x-revert-api-token - in: header - description: Your official API key for accessing revert apis. - required: true - schema: - type: string - name: x-revert-t-id in: header description: The unique customer id used when the customer linked their account. From 9f637e1f204b0b973ea1a59d780bd6fbcd5e61b6 Mon Sep 17 00:00:00 2001 From: Nabhag8848 Date: Wed, 29 May 2024 11:12:33 +0530 Subject: [PATCH 5/5] fix: let devs generate specific sdk --- fern/generators.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/fern/generators.yml b/fern/generators.yml index 9ebb71934..9cf415b5f 100644 --- a/fern/generators.yml +++ b/fern/generators.yml @@ -52,6 +52,28 @@ groups: # workspace-id: ${POSTMAN_WORKSPACE_ID} # github: # repository: revertinc/revert-postman + node-sdk: + generators: + - name: fernapi/fern-typescript-node-sdk + version: 0.7.2 + output: + location: local-file-system + path: ../../revert-node-ts/src + config: + namespaceExport: Revert + timeoutInSeconds: infinity + outputSourceFiles: false + skipResponseValidation: true + python-sdk: + generators: + - name: fernapi/fern-python-sdk + version: 0.6.0 + output: + location: local-file-system + path: ../../revert-python/src + config: + client_class_name: Revert + timeout_in_seconds: infinity sdk: generators: - name: fernapi/fern-typescript-node-sdk