ragie_ruby_sdk 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/README.md +291 -0
- data/Rakefile +10 -0
- data/docs/AccessTokenCredentials.md +18 -0
- data/docs/AsyncDocumentMetadataUpdate.md +18 -0
- data/docs/AudioModalityData.md +20 -0
- data/docs/AuthenticatorConfluenceConnection.md +22 -0
- data/docs/AuthenticatorDropboxConnection.md +24 -0
- data/docs/AuthenticatorGmailConnection.md +24 -0
- data/docs/AuthenticatorGoogleDriveConnection.md +24 -0
- data/docs/AuthenticatorHubspotConnection.md +26 -0
- data/docs/AuthenticatorJiraConnection.md +20 -0
- data/docs/AuthenticatorList.md +20 -0
- data/docs/AuthenticatorNotionConnection.md +26 -0
- data/docs/AuthenticatorOnedriveConnection.md +24 -0
- data/docs/AuthenticatorSalesforceConnection.md +24 -0
- data/docs/AuthenticatorSharepointConnection.md +24 -0
- data/docs/AuthenticatorSlackConnection.md +24 -0
- data/docs/AuthenticatorsApi.md +293 -0
- data/docs/BackblazeCredentials.md +24 -0
- data/docs/BaseGetAuthenticator.md +22 -0
- data/docs/BetaApi.md +363 -0
- data/docs/Body.md +22 -0
- data/docs/BodyCreateDocument.md +28 -0
- data/docs/BodyUpdateDocumentFile.md +20 -0
- data/docs/BucketData.md +22 -0
- data/docs/ConfluenceData.md +24 -0
- data/docs/Connection.md +44 -0
- data/docs/Connection1.md +106 -0
- data/docs/Connection2.md +91 -0
- data/docs/ConnectionBase.md +22 -0
- data/docs/ConnectionLimitExceededWebhook.md +22 -0
- data/docs/ConnectionLimitExceededWebhookPayload.md +24 -0
- data/docs/ConnectionLimitParams.md +18 -0
- data/docs/ConnectionList.md +20 -0
- data/docs/ConnectionStats.md +20 -0
- data/docs/ConnectionSyncFinishedWebhook.md +22 -0
- data/docs/ConnectionSyncFinishedWebhookPayload.md +24 -0
- data/docs/ConnectionSyncProgressWebhook.md +22 -0
- data/docs/ConnectionSyncProgressWebhookPayload.md +42 -0
- data/docs/ConnectionSyncStartedWebhook.md +22 -0
- data/docs/ConnectionSyncStartedWebhookPayload.md +32 -0
- data/docs/ConnectionsApi.md +790 -0
- data/docs/ConnectorSource.md +15 -0
- data/docs/ConnectorSourceTypeInfo.md +24 -0
- data/docs/CreateAuthenticatorConnection.md +28 -0
- data/docs/CreateDocumentFromUrlParams.md +28 -0
- data/docs/CreateDocumentRawParams.md +26 -0
- data/docs/CreateGoogleAuthenticator.md +28 -0
- data/docs/CreateInstructionParams.md +30 -0
- data/docs/CreatePartitionParams.md +42 -0
- data/docs/Data.md +15 -0
- data/docs/DefaultApi.md +77 -0
- data/docs/DeleteConnectionPayload.md +18 -0
- data/docs/Document.md +36 -0
- data/docs/DocumentChunk.md +26 -0
- data/docs/DocumentChunkDetail.md +28 -0
- data/docs/DocumentChunkDetailModalityData.md +79 -0
- data/docs/DocumentChunkList.md +20 -0
- data/docs/DocumentDelete.md +18 -0
- data/docs/DocumentDeleteWebhook.md +22 -0
- data/docs/DocumentDeleteWebhookPayload.md +30 -0
- data/docs/DocumentFileUpdate.md +18 -0
- data/docs/DocumentGet.md +38 -0
- data/docs/DocumentList.md +20 -0
- data/docs/DocumentMetadataUpdate.md +18 -0
- data/docs/DocumentRawUpdate.md +18 -0
- data/docs/DocumentSummary.md +20 -0
- data/docs/DocumentUpdateWebhook.md +22 -0
- data/docs/DocumentUpdateWebhookPayload.md +34 -0
- data/docs/DocumentUrlUpdate.md +18 -0
- data/docs/DocumentWithContent.md +38 -0
- data/docs/DocumentsApi.md +1221 -0
- data/docs/EnterpriseApi.md +363 -0
- data/docs/EntitiesApi.md +436 -0
- data/docs/Entity.md +30 -0
- data/docs/EntityExtractedWebhook.md +22 -0
- data/docs/EntityExtractedWebhookPayload.md +34 -0
- data/docs/EntityList.md +20 -0
- data/docs/ErrorMessage.md +18 -0
- data/docs/FolderData.md +20 -0
- data/docs/FreshdeskCredentials.md +20 -0
- data/docs/FreshdeskData.md +20 -0
- data/docs/GmailData.md +18 -0
- data/docs/GoogleFolderData.md +22 -0
- data/docs/HTTPValidationError.md +18 -0
- data/docs/HubspotData.md +30 -0
- data/docs/Instruction.md +36 -0
- data/docs/IntercomCredentials.md +22 -0
- data/docs/IntercomData.md +28 -0
- data/docs/Link.md +20 -0
- data/docs/ListConnectorSourceTypeInfo.md +18 -0
- data/docs/MediaModeParam.md +22 -0
- data/docs/MediaType.md +15 -0
- data/docs/MetadataValue.md +15 -0
- data/docs/MetadataValue1.md +53 -0
- data/docs/Mode.md +22 -0
- data/docs/Mode1.md +22 -0
- data/docs/Mode2.md +49 -0
- data/docs/Mode2OneOf.md +22 -0
- data/docs/OAuthCredentials.md +26 -0
- data/docs/OAuthRefreshTokenCredentials.md +18 -0
- data/docs/OAuthUrlCreate.md +34 -0
- data/docs/OAuthUrlResponse.md +18 -0
- data/docs/OnedriveData.md +22 -0
- data/docs/Pagination.md +20 -0
- data/docs/Partition.md +24 -0
- data/docs/PartitionDetail.md +26 -0
- data/docs/PartitionLimitExceededWebhook.md +22 -0
- data/docs/PartitionLimitExceededWebhookPayload.md +20 -0
- data/docs/PartitionLimitParams.md +40 -0
- data/docs/PartitionLimitResetWebhook.md +22 -0
- data/docs/PartitionLimitResetWebhookPayload.md +18 -0
- data/docs/PartitionLimits.md +40 -0
- data/docs/PartitionList.md +20 -0
- data/docs/PartitionStats.md +42 -0
- data/docs/PartitionStrategy.md +22 -0
- data/docs/PartitionsApi.md +363 -0
- data/docs/PatchDocumentMetadataParams.md +20 -0
- data/docs/Payload.md +84 -0
- data/docs/PublicBackblazeConnection.md +22 -0
- data/docs/PublicCreateConnection.md +28 -0
- data/docs/PublicFreshdeskConnection.md +24 -0
- data/docs/PublicGCSConnection.md +22 -0
- data/docs/PublicIntercomConnection.md +22 -0
- data/docs/PublicS3CompatibleConnection.md +22 -0
- data/docs/PublicZendeskConnection.md +22 -0
- data/docs/ResponseOK.md +18 -0
- data/docs/ResponsePatchdocumentmetadata.md +20 -0
- data/docs/Retrieval.md +18 -0
- data/docs/RetrievalsApi.md +75 -0
- data/docs/RetrieveParams.md +30 -0
- data/docs/S3CompatibleCredentials.md +24 -0
- data/docs/ScoredChunk.md +34 -0
- data/docs/SetConnectionEnabledPayload.md +20 -0
- data/docs/SharepointData.md +20 -0
- data/docs/SharepointFileData.md +22 -0
- data/docs/SharepointSiteData.md +20 -0
- data/docs/SlackData.md +20 -0
- data/docs/Source.md +15 -0
- data/docs/Status.md +15 -0
- data/docs/UpdateDocumentFromUrlParams.md +20 -0
- data/docs/UpdateDocumentRawParams.md +18 -0
- data/docs/UpdateInstructionParams.md +18 -0
- data/docs/ValidationError.md +22 -0
- data/docs/ValidationErrorLocInner.md +15 -0
- data/docs/VideoModalityData.md +20 -0
- data/docs/WordTimestamp.md +24 -0
- data/docs/ZendeskCredentials.md +22 -0
- data/docs/ZendeskData.md +18 -0
- data/git_push.sh +57 -0
- data/lib/ragie_ruby_sdk/api/authenticators_api.rb +298 -0
- data/lib/ragie_ruby_sdk/api/beta_api.rb +366 -0
- data/lib/ragie_ruby_sdk/api/connections_api.rb +777 -0
- data/lib/ragie_ruby_sdk/api/default_api.rb +90 -0
- data/lib/ragie_ruby_sdk/api/documents_api.rb +1206 -0
- data/lib/ragie_ruby_sdk/api/enterprise_api.rb +366 -0
- data/lib/ragie_ruby_sdk/api/entities_api.rb +438 -0
- data/lib/ragie_ruby_sdk/api/partitions_api.rb +361 -0
- data/lib/ragie_ruby_sdk/api/retrievals_api.rb +88 -0
- data/lib/ragie_ruby_sdk/api_client.rb +393 -0
- data/lib/ragie_ruby_sdk/api_error.rb +58 -0
- data/lib/ragie_ruby_sdk/configuration.rb +308 -0
- data/lib/ragie_ruby_sdk/models/access_token_credentials.rb +237 -0
- data/lib/ragie_ruby_sdk/models/async_document_metadata_update.rb +237 -0
- data/lib/ragie_ruby_sdk/models/audio_modality_data.rb +267 -0
- data/lib/ragie_ruby_sdk/models/authenticator_confluence_connection.rb +315 -0
- data/lib/ragie_ruby_sdk/models/authenticator_dropbox_connection.rb +340 -0
- data/lib/ragie_ruby_sdk/models/authenticator_gmail_connection.rb +340 -0
- data/lib/ragie_ruby_sdk/models/authenticator_google_drive_connection.rb +342 -0
- data/lib/ragie_ruby_sdk/models/authenticator_hubspot_connection.rb +365 -0
- data/lib/ragie_ruby_sdk/models/authenticator_jira_connection.rb +287 -0
- data/lib/ragie_ruby_sdk/models/authenticator_list.rb +265 -0
- data/lib/ragie_ruby_sdk/models/authenticator_notion_connection.rb +366 -0
- data/lib/ragie_ruby_sdk/models/authenticator_onedrive_connection.rb +340 -0
- data/lib/ragie_ruby_sdk/models/authenticator_salesforce_connection.rb +341 -0
- data/lib/ragie_ruby_sdk/models/authenticator_sharepoint_connection.rb +340 -0
- data/lib/ragie_ruby_sdk/models/authenticator_slack_connection.rb +340 -0
- data/lib/ragie_ruby_sdk/models/backblaze_credentials.rb +315 -0
- data/lib/ragie_ruby_sdk/models/base_get_authenticator.rb +290 -0
- data/lib/ragie_ruby_sdk/models/body.rb +111 -0
- data/lib/ragie_ruby_sdk/models/body_create_document.rb +292 -0
- data/lib/ragie_ruby_sdk/models/body_update_document_file.rb +250 -0
- data/lib/ragie_ruby_sdk/models/bucket_data.rb +258 -0
- data/lib/ragie_ruby_sdk/models/confluence_data.rb +315 -0
- data/lib/ragie_ruby_sdk/models/connection.rb +521 -0
- data/lib/ragie_ruby_sdk/models/connection1.rb +73 -0
- data/lib/ragie_ruby_sdk/models/connection2.rb +63 -0
- data/lib/ragie_ruby_sdk/models/connection_base.rb +274 -0
- data/lib/ragie_ruby_sdk/models/connection_limit_exceeded_webhook.rb +313 -0
- data/lib/ragie_ruby_sdk/models/connection_limit_exceeded_webhook_payload.rb +327 -0
- data/lib/ragie_ruby_sdk/models/connection_limit_params.rb +236 -0
- data/lib/ragie_ruby_sdk/models/connection_list.rb +265 -0
- data/lib/ragie_ruby_sdk/models/connection_stats.rb +263 -0
- data/lib/ragie_ruby_sdk/models/connection_sync_finished_webhook.rb +313 -0
- data/lib/ragie_ruby_sdk/models/connection_sync_finished_webhook_payload.rb +317 -0
- data/lib/ragie_ruby_sdk/models/connection_sync_progress_webhook.rb +313 -0
- data/lib/ragie_ruby_sdk/models/connection_sync_progress_webhook_payload.rb +551 -0
- data/lib/ragie_ruby_sdk/models/connection_sync_started_webhook.rb +313 -0
- data/lib/ragie_ruby_sdk/models/connection_sync_started_webhook_payload.rb +421 -0
- data/lib/ragie_ruby_sdk/models/connector_source.rb +55 -0
- data/lib/ragie_ruby_sdk/models/connector_source_type_info.rb +337 -0
- data/lib/ragie_ruby_sdk/models/create_authenticator_connection.rb +307 -0
- data/lib/ragie_ruby_sdk/models/create_document_from_url_params.rb +306 -0
- data/lib/ragie_ruby_sdk/models/create_document_raw_params.rb +279 -0
- data/lib/ragie_ruby_sdk/models/create_google_authenticator.rb +360 -0
- data/lib/ragie_ruby_sdk/models/create_instruction_params.rb +373 -0
- data/lib/ragie_ruby_sdk/models/create_partition_params.rb +537 -0
- data/lib/ragie_ruby_sdk/models/data.rb +105 -0
- data/lib/ragie_ruby_sdk/models/delete_connection_payload.rb +237 -0
- data/lib/ragie_ruby_sdk/models/document.rb +425 -0
- data/lib/ragie_ruby_sdk/models/document_chunk.rb +313 -0
- data/lib/ragie_ruby_sdk/models/document_chunk_detail.rb +323 -0
- data/lib/ragie_ruby_sdk/models/document_chunk_detail_modality_data.rb +55 -0
- data/lib/ragie_ruby_sdk/models/document_chunk_list.rb +265 -0
- data/lib/ragie_ruby_sdk/models/document_delete.rb +237 -0
- data/lib/ragie_ruby_sdk/models/document_delete_webhook.rb +313 -0
- data/lib/ragie_ruby_sdk/models/document_delete_webhook_payload.rb +353 -0
- data/lib/ragie_ruby_sdk/models/document_file_update.rb +237 -0
- data/lib/ragie_ruby_sdk/models/document_get.rb +453 -0
- data/lib/ragie_ruby_sdk/models/document_list.rb +265 -0
- data/lib/ragie_ruby_sdk/models/document_metadata_update.rb +240 -0
- data/lib/ragie_ruby_sdk/models/document_raw_update.rb +237 -0
- data/lib/ragie_ruby_sdk/models/document_summary.rb +263 -0
- data/lib/ragie_ruby_sdk/models/document_update_webhook.rb +313 -0
- data/lib/ragie_ruby_sdk/models/document_update_webhook_payload.rb +391 -0
- data/lib/ragie_ruby_sdk/models/document_url_update.rb +237 -0
- data/lib/ragie_ruby_sdk/models/document_with_content.rb +451 -0
- data/lib/ragie_ruby_sdk/models/entity.rb +381 -0
- data/lib/ragie_ruby_sdk/models/entity_extracted_webhook.rb +313 -0
- data/lib/ragie_ruby_sdk/models/entity_extracted_webhook_payload.rb +421 -0
- data/lib/ragie_ruby_sdk/models/entity_list.rb +265 -0
- data/lib/ragie_ruby_sdk/models/error_message.rb +237 -0
- data/lib/ragie_ruby_sdk/models/folder_data.rb +263 -0
- data/lib/ragie_ruby_sdk/models/freshdesk_credentials.rb +263 -0
- data/lib/ragie_ruby_sdk/models/freshdesk_data.rb +263 -0
- data/lib/ragie_ruby_sdk/models/gmail_data.rb +221 -0
- data/lib/ragie_ruby_sdk/models/google_folder_data.rb +289 -0
- data/lib/ragie_ruby_sdk/models/http_validation_error.rb +222 -0
- data/lib/ragie_ruby_sdk/models/hubspot_data.rb +393 -0
- data/lib/ragie_ruby_sdk/models/instruction.rb +451 -0
- data/lib/ragie_ruby_sdk/models/intercom_credentials.rb +290 -0
- data/lib/ragie_ruby_sdk/models/intercom_data.rb +367 -0
- data/lib/ragie_ruby_sdk/models/link.rb +263 -0
- data/lib/ragie_ruby_sdk/models/list_connector_source_type_info.rb +239 -0
- data/lib/ragie_ruby_sdk/models/media_mode_param.rb +287 -0
- data/lib/ragie_ruby_sdk/models/media_type.rb +104 -0
- data/lib/ragie_ruby_sdk/models/metadata_value.rb +106 -0
- data/lib/ragie_ruby_sdk/models/metadata_value1.rb +107 -0
- data/lib/ragie_ruby_sdk/models/mode.rb +105 -0
- data/lib/ragie_ruby_sdk/models/mode1.rb +104 -0
- data/lib/ragie_ruby_sdk/models/mode2.rb +106 -0
- data/lib/ragie_ruby_sdk/models/mode2_one_of.rb +287 -0
- data/lib/ragie_ruby_sdk/models/o_auth_credentials.rb +350 -0
- data/lib/ragie_ruby_sdk/models/o_auth_refresh_token_credentials.rb +237 -0
- data/lib/ragie_ruby_sdk/models/o_auth_url_create.rb +370 -0
- data/lib/ragie_ruby_sdk/models/o_auth_url_response.rb +237 -0
- data/lib/ragie_ruby_sdk/models/onedrive_data.rb +289 -0
- data/lib/ragie_ruby_sdk/models/pagination.rb +247 -0
- data/lib/ragie_ruby_sdk/models/partition.rb +299 -0
- data/lib/ragie_ruby_sdk/models/partition_detail.rb +325 -0
- data/lib/ragie_ruby_sdk/models/partition_limit_exceeded_webhook.rb +313 -0
- data/lib/ragie_ruby_sdk/models/partition_limit_exceeded_webhook_payload.rb +287 -0
- data/lib/ragie_ruby_sdk/models/partition_limit_params.rb +511 -0
- data/lib/ragie_ruby_sdk/models/partition_limit_reset_webhook.rb +313 -0
- data/lib/ragie_ruby_sdk/models/partition_limit_reset_webhook_payload.rb +237 -0
- data/lib/ragie_ruby_sdk/models/partition_limits.rb +511 -0
- data/lib/ragie_ruby_sdk/models/partition_list.rb +265 -0
- data/lib/ragie_ruby_sdk/models/partition_stats.rb +562 -0
- data/lib/ragie_ruby_sdk/models/partition_strategy.rb +104 -0
- data/lib/ragie_ruby_sdk/models/patch_document_metadata_params.rb +252 -0
- data/lib/ragie_ruby_sdk/models/payload.rb +60 -0
- data/lib/ragie_ruby_sdk/models/public_backblaze_connection.rb +313 -0
- data/lib/ragie_ruby_sdk/models/public_create_connection.rb +307 -0
- data/lib/ragie_ruby_sdk/models/public_freshdesk_connection.rb +340 -0
- data/lib/ragie_ruby_sdk/models/public_gcs_connection.rb +315 -0
- data/lib/ragie_ruby_sdk/models/public_intercom_connection.rb +313 -0
- data/lib/ragie_ruby_sdk/models/public_s3_compatible_connection.rb +313 -0
- data/lib/ragie_ruby_sdk/models/public_zendesk_connection.rb +313 -0
- data/lib/ragie_ruby_sdk/models/response_ok.rb +222 -0
- data/lib/ragie_ruby_sdk/models/response_patchdocumentmetadata.rb +104 -0
- data/lib/ragie_ruby_sdk/models/retrieval.rb +239 -0
- data/lib/ragie_ruby_sdk/models/retrieve_params.rb +305 -0
- data/lib/ragie_ruby_sdk/models/s3_compatible_credentials.rb +299 -0
- data/lib/ragie_ruby_sdk/models/scored_chunk.rb +434 -0
- data/lib/ragie_ruby_sdk/models/set_connection_enabled_payload.rb +281 -0
- data/lib/ragie_ruby_sdk/models/sharepoint_data.rb +265 -0
- data/lib/ragie_ruby_sdk/models/sharepoint_file_data.rb +313 -0
- data/lib/ragie_ruby_sdk/models/sharepoint_site_data.rb +263 -0
- data/lib/ragie_ruby_sdk/models/slack_data.rb +263 -0
- data/lib/ragie_ruby_sdk/models/source.rb +105 -0
- data/lib/ragie_ruby_sdk/models/status.rb +103 -0
- data/lib/ragie_ruby_sdk/models/update_document_from_url_params.rb +247 -0
- data/lib/ragie_ruby_sdk/models/update_document_raw_params.rb +237 -0
- data/lib/ragie_ruby_sdk/models/update_instruction_params.rb +238 -0
- data/lib/ragie_ruby_sdk/models/validation_error.rb +291 -0
- data/lib/ragie_ruby_sdk/models/validation_error_loc_inner.rb +104 -0
- data/lib/ragie_ruby_sdk/models/video_modality_data.rb +267 -0
- data/lib/ragie_ruby_sdk/models/word_timestamp.rb +315 -0
- data/lib/ragie_ruby_sdk/models/zendesk_credentials.rb +289 -0
- data/lib/ragie_ruby_sdk/models/zendesk_data.rb +237 -0
- data/lib/ragie_ruby_sdk/version.rb +15 -0
- data/lib/ragie_ruby_sdk.rb +185 -0
- data/ragie_ruby_sdk.gemspec +39 -0
- data/spec/api/authenticators_api_spec.rb +85 -0
- data/spec/api/beta_api_spec.rb +97 -0
- data/spec/api/connections_api_spec.rb +173 -0
- data/spec/api/default_api_spec.rb +47 -0
- data/spec/api/documents_api_spec.rb +260 -0
- data/spec/api/enterprise_api_spec.rb +97 -0
- data/spec/api/entities_api_spec.rb +110 -0
- data/spec/api/partitions_api_spec.rb +97 -0
- data/spec/api/retrievals_api_spec.rb +46 -0
- data/spec/models/access_token_credentials_spec.rb +36 -0
- data/spec/models/async_document_metadata_update_spec.rb +36 -0
- data/spec/models/audio_modality_data_spec.rb +46 -0
- data/spec/models/authenticator_confluence_connection_spec.rb +52 -0
- data/spec/models/authenticator_dropbox_connection_spec.rb +58 -0
- data/spec/models/authenticator_gmail_connection_spec.rb +58 -0
- data/spec/models/authenticator_google_drive_connection_spec.rb +58 -0
- data/spec/models/authenticator_hubspot_connection_spec.rb +64 -0
- data/spec/models/authenticator_jira_connection_spec.rb +46 -0
- data/spec/models/authenticator_list_spec.rb +42 -0
- data/spec/models/authenticator_notion_connection_spec.rb +64 -0
- data/spec/models/authenticator_onedrive_connection_spec.rb +58 -0
- data/spec/models/authenticator_salesforce_connection_spec.rb +58 -0
- data/spec/models/authenticator_sharepoint_connection_spec.rb +58 -0
- data/spec/models/authenticator_slack_connection_spec.rb +58 -0
- data/spec/models/backblaze_credentials_spec.rb +54 -0
- data/spec/models/base_get_authenticator_spec.rb +48 -0
- data/spec/models/body_create_document_spec.rb +66 -0
- data/spec/models/body_spec.rb +21 -0
- data/spec/models/body_update_document_file_spec.rb +42 -0
- data/spec/models/bucket_data_spec.rb +48 -0
- data/spec/models/confluence_data_spec.rb +54 -0
- data/spec/models/connection1_spec.rb +44 -0
- data/spec/models/connection2_spec.rb +44 -0
- data/spec/models/connection_base_spec.rb +48 -0
- data/spec/models/connection_limit_exceeded_webhook_payload_spec.rb +58 -0
- data/spec/models/connection_limit_exceeded_webhook_spec.rb +52 -0
- data/spec/models/connection_limit_params_spec.rb +36 -0
- data/spec/models/connection_list_spec.rb +42 -0
- data/spec/models/connection_spec.rb +118 -0
- data/spec/models/connection_stats_spec.rb +42 -0
- data/spec/models/connection_sync_finished_webhook_payload_spec.rb +54 -0
- data/spec/models/connection_sync_finished_webhook_spec.rb +52 -0
- data/spec/models/connection_sync_progress_webhook_payload_spec.rb +108 -0
- data/spec/models/connection_sync_progress_webhook_spec.rb +52 -0
- data/spec/models/connection_sync_started_webhook_payload_spec.rb +78 -0
- data/spec/models/connection_sync_started_webhook_spec.rb +52 -0
- data/spec/models/connector_source_spec.rb +30 -0
- data/spec/models/connector_source_type_info_spec.rb +54 -0
- data/spec/models/create_authenticator_connection_spec.rb +66 -0
- data/spec/models/create_document_from_url_params_spec.rb +66 -0
- data/spec/models/create_document_raw_params_spec.rb +60 -0
- data/spec/models/create_google_authenticator_spec.rb +70 -0
- data/spec/models/create_instruction_params_spec.rb +76 -0
- data/spec/models/create_partition_params_spec.rb +108 -0
- data/spec/models/data_spec.rb +21 -0
- data/spec/models/delete_connection_payload_spec.rb +36 -0
- data/spec/models/document_chunk_detail_modality_data_spec.rb +44 -0
- data/spec/models/document_chunk_detail_spec.rb +66 -0
- data/spec/models/document_chunk_list_spec.rb +42 -0
- data/spec/models/document_chunk_spec.rb +60 -0
- data/spec/models/document_delete_spec.rb +36 -0
- data/spec/models/document_delete_webhook_payload_spec.rb +72 -0
- data/spec/models/document_delete_webhook_spec.rb +52 -0
- data/spec/models/document_file_update_spec.rb +36 -0
- data/spec/models/document_get_spec.rb +96 -0
- data/spec/models/document_list_spec.rb +42 -0
- data/spec/models/document_metadata_update_spec.rb +36 -0
- data/spec/models/document_raw_update_spec.rb +36 -0
- data/spec/models/document_spec.rb +90 -0
- data/spec/models/document_summary_spec.rb +42 -0
- data/spec/models/document_update_webhook_payload_spec.rb +84 -0
- data/spec/models/document_update_webhook_spec.rb +52 -0
- data/spec/models/document_url_update_spec.rb +36 -0
- data/spec/models/document_with_content_spec.rb +96 -0
- data/spec/models/entity_extracted_webhook_payload_spec.rb +84 -0
- data/spec/models/entity_extracted_webhook_spec.rb +52 -0
- data/spec/models/entity_list_spec.rb +42 -0
- data/spec/models/entity_spec.rb +72 -0
- data/spec/models/error_message_spec.rb +36 -0
- data/spec/models/folder_data_spec.rb +42 -0
- data/spec/models/freshdesk_credentials_spec.rb +42 -0
- data/spec/models/freshdesk_data_spec.rb +42 -0
- data/spec/models/gmail_data_spec.rb +36 -0
- data/spec/models/google_folder_data_spec.rb +48 -0
- data/spec/models/http_validation_error_spec.rb +36 -0
- data/spec/models/hubspot_data_spec.rb +72 -0
- data/spec/models/instruction_spec.rb +94 -0
- data/spec/models/intercom_credentials_spec.rb +48 -0
- data/spec/models/intercom_data_spec.rb +66 -0
- data/spec/models/link_spec.rb +42 -0
- data/spec/models/list_connector_source_type_info_spec.rb +36 -0
- data/spec/models/media_mode_param_spec.rb +56 -0
- data/spec/models/media_type_spec.rb +21 -0
- data/spec/models/metadata_value1_spec.rb +32 -0
- data/spec/models/metadata_value_spec.rb +21 -0
- data/spec/models/mode1_spec.rb +21 -0
- data/spec/models/mode2_one_of_spec.rb +56 -0
- data/spec/models/mode2_spec.rb +32 -0
- data/spec/models/mode_spec.rb +21 -0
- data/spec/models/o_auth_credentials_spec.rb +64 -0
- data/spec/models/o_auth_refresh_token_credentials_spec.rb +36 -0
- data/spec/models/o_auth_url_create_spec.rb +88 -0
- data/spec/models/o_auth_url_response_spec.rb +36 -0
- data/spec/models/onedrive_data_spec.rb +48 -0
- data/spec/models/pagination_spec.rb +42 -0
- data/spec/models/partition_detail_spec.rb +60 -0
- data/spec/models/partition_limit_exceeded_webhook_payload_spec.rb +46 -0
- data/spec/models/partition_limit_exceeded_webhook_spec.rb +52 -0
- data/spec/models/partition_limit_params_spec.rb +102 -0
- data/spec/models/partition_limit_reset_webhook_payload_spec.rb +36 -0
- data/spec/models/partition_limit_reset_webhook_spec.rb +52 -0
- data/spec/models/partition_limits_spec.rb +102 -0
- data/spec/models/partition_list_spec.rb +42 -0
- data/spec/models/partition_spec.rb +54 -0
- data/spec/models/partition_stats_spec.rb +108 -0
- data/spec/models/partition_strategy_spec.rb +21 -0
- data/spec/models/patch_document_metadata_params_spec.rb +42 -0
- data/spec/models/payload_spec.rb +44 -0
- data/spec/models/public_backblaze_connection_spec.rb +52 -0
- data/spec/models/public_create_connection_spec.rb +66 -0
- data/spec/models/public_freshdesk_connection_spec.rb +58 -0
- data/spec/models/public_gcs_connection_spec.rb +52 -0
- data/spec/models/public_intercom_connection_spec.rb +52 -0
- data/spec/models/public_s3_compatible_connection_spec.rb +52 -0
- data/spec/models/public_zendesk_connection_spec.rb +52 -0
- data/spec/models/response_ok_spec.rb +36 -0
- data/spec/models/response_patchdocumentmetadata_spec.rb +21 -0
- data/spec/models/retrieval_spec.rb +36 -0
- data/spec/models/retrieve_params_spec.rb +72 -0
- data/spec/models/s3_compatible_credentials_spec.rb +54 -0
- data/spec/models/scored_chunk_spec.rb +84 -0
- data/spec/models/set_connection_enabled_payload_spec.rb +46 -0
- data/spec/models/sharepoint_data_spec.rb +42 -0
- data/spec/models/sharepoint_file_data_spec.rb +52 -0
- data/spec/models/sharepoint_site_data_spec.rb +42 -0
- data/spec/models/slack_data_spec.rb +42 -0
- data/spec/models/source_spec.rb +21 -0
- data/spec/models/status_spec.rb +21 -0
- data/spec/models/update_document_from_url_params_spec.rb +42 -0
- data/spec/models/update_document_raw_params_spec.rb +36 -0
- data/spec/models/update_instruction_params_spec.rb +36 -0
- data/spec/models/validation_error_loc_inner_spec.rb +21 -0
- data/spec/models/validation_error_spec.rb +48 -0
- data/spec/models/video_modality_data_spec.rb +46 -0
- data/spec/models/word_timestamp_spec.rb +54 -0
- data/spec/models/zendesk_credentials_spec.rb +48 -0
- data/spec/models/zendesk_data_spec.rb +36 -0
- data/spec/spec_helper.rb +111 -0
- metadata +680 -0
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Ragie API
|
|
3
|
+
|
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.14.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
# Common files
|
|
14
|
+
require 'ragie_ruby_sdk/api_client'
|
|
15
|
+
require 'ragie_ruby_sdk/api_error'
|
|
16
|
+
require 'ragie_ruby_sdk/version'
|
|
17
|
+
require 'ragie_ruby_sdk/configuration'
|
|
18
|
+
|
|
19
|
+
# Models
|
|
20
|
+
require 'ragie_ruby_sdk/models/access_token_credentials'
|
|
21
|
+
require 'ragie_ruby_sdk/models/async_document_metadata_update'
|
|
22
|
+
require 'ragie_ruby_sdk/models/audio_modality_data'
|
|
23
|
+
require 'ragie_ruby_sdk/models/authenticator_confluence_connection'
|
|
24
|
+
require 'ragie_ruby_sdk/models/authenticator_dropbox_connection'
|
|
25
|
+
require 'ragie_ruby_sdk/models/authenticator_gmail_connection'
|
|
26
|
+
require 'ragie_ruby_sdk/models/authenticator_google_drive_connection'
|
|
27
|
+
require 'ragie_ruby_sdk/models/authenticator_hubspot_connection'
|
|
28
|
+
require 'ragie_ruby_sdk/models/authenticator_jira_connection'
|
|
29
|
+
require 'ragie_ruby_sdk/models/authenticator_list'
|
|
30
|
+
require 'ragie_ruby_sdk/models/authenticator_notion_connection'
|
|
31
|
+
require 'ragie_ruby_sdk/models/authenticator_onedrive_connection'
|
|
32
|
+
require 'ragie_ruby_sdk/models/authenticator_salesforce_connection'
|
|
33
|
+
require 'ragie_ruby_sdk/models/authenticator_sharepoint_connection'
|
|
34
|
+
require 'ragie_ruby_sdk/models/authenticator_slack_connection'
|
|
35
|
+
require 'ragie_ruby_sdk/models/backblaze_credentials'
|
|
36
|
+
require 'ragie_ruby_sdk/models/base_get_authenticator'
|
|
37
|
+
require 'ragie_ruby_sdk/models/body'
|
|
38
|
+
require 'ragie_ruby_sdk/models/body_create_document'
|
|
39
|
+
require 'ragie_ruby_sdk/models/body_update_document_file'
|
|
40
|
+
require 'ragie_ruby_sdk/models/bucket_data'
|
|
41
|
+
require 'ragie_ruby_sdk/models/confluence_data'
|
|
42
|
+
require 'ragie_ruby_sdk/models/connection'
|
|
43
|
+
require 'ragie_ruby_sdk/models/connection1'
|
|
44
|
+
require 'ragie_ruby_sdk/models/connection2'
|
|
45
|
+
require 'ragie_ruby_sdk/models/connection_base'
|
|
46
|
+
require 'ragie_ruby_sdk/models/connection_limit_exceeded_webhook'
|
|
47
|
+
require 'ragie_ruby_sdk/models/connection_limit_exceeded_webhook_payload'
|
|
48
|
+
require 'ragie_ruby_sdk/models/connection_limit_params'
|
|
49
|
+
require 'ragie_ruby_sdk/models/connection_list'
|
|
50
|
+
require 'ragie_ruby_sdk/models/connection_stats'
|
|
51
|
+
require 'ragie_ruby_sdk/models/connection_sync_finished_webhook'
|
|
52
|
+
require 'ragie_ruby_sdk/models/connection_sync_finished_webhook_payload'
|
|
53
|
+
require 'ragie_ruby_sdk/models/connection_sync_progress_webhook'
|
|
54
|
+
require 'ragie_ruby_sdk/models/connection_sync_progress_webhook_payload'
|
|
55
|
+
require 'ragie_ruby_sdk/models/connection_sync_started_webhook'
|
|
56
|
+
require 'ragie_ruby_sdk/models/connection_sync_started_webhook_payload'
|
|
57
|
+
require 'ragie_ruby_sdk/models/connector_source'
|
|
58
|
+
require 'ragie_ruby_sdk/models/connector_source_type_info'
|
|
59
|
+
require 'ragie_ruby_sdk/models/create_authenticator_connection'
|
|
60
|
+
require 'ragie_ruby_sdk/models/create_document_from_url_params'
|
|
61
|
+
require 'ragie_ruby_sdk/models/create_document_raw_params'
|
|
62
|
+
require 'ragie_ruby_sdk/models/create_google_authenticator'
|
|
63
|
+
require 'ragie_ruby_sdk/models/create_instruction_params'
|
|
64
|
+
require 'ragie_ruby_sdk/models/create_partition_params'
|
|
65
|
+
require 'ragie_ruby_sdk/models/data'
|
|
66
|
+
require 'ragie_ruby_sdk/models/delete_connection_payload'
|
|
67
|
+
require 'ragie_ruby_sdk/models/document'
|
|
68
|
+
require 'ragie_ruby_sdk/models/document_chunk'
|
|
69
|
+
require 'ragie_ruby_sdk/models/document_chunk_detail'
|
|
70
|
+
require 'ragie_ruby_sdk/models/document_chunk_detail_modality_data'
|
|
71
|
+
require 'ragie_ruby_sdk/models/document_chunk_list'
|
|
72
|
+
require 'ragie_ruby_sdk/models/document_delete'
|
|
73
|
+
require 'ragie_ruby_sdk/models/document_delete_webhook'
|
|
74
|
+
require 'ragie_ruby_sdk/models/document_delete_webhook_payload'
|
|
75
|
+
require 'ragie_ruby_sdk/models/document_file_update'
|
|
76
|
+
require 'ragie_ruby_sdk/models/document_get'
|
|
77
|
+
require 'ragie_ruby_sdk/models/document_list'
|
|
78
|
+
require 'ragie_ruby_sdk/models/document_metadata_update'
|
|
79
|
+
require 'ragie_ruby_sdk/models/document_raw_update'
|
|
80
|
+
require 'ragie_ruby_sdk/models/document_summary'
|
|
81
|
+
require 'ragie_ruby_sdk/models/document_update_webhook'
|
|
82
|
+
require 'ragie_ruby_sdk/models/document_update_webhook_payload'
|
|
83
|
+
require 'ragie_ruby_sdk/models/document_url_update'
|
|
84
|
+
require 'ragie_ruby_sdk/models/document_with_content'
|
|
85
|
+
require 'ragie_ruby_sdk/models/entity'
|
|
86
|
+
require 'ragie_ruby_sdk/models/entity_extracted_webhook'
|
|
87
|
+
require 'ragie_ruby_sdk/models/entity_extracted_webhook_payload'
|
|
88
|
+
require 'ragie_ruby_sdk/models/entity_list'
|
|
89
|
+
require 'ragie_ruby_sdk/models/error_message'
|
|
90
|
+
require 'ragie_ruby_sdk/models/folder_data'
|
|
91
|
+
require 'ragie_ruby_sdk/models/freshdesk_credentials'
|
|
92
|
+
require 'ragie_ruby_sdk/models/freshdesk_data'
|
|
93
|
+
require 'ragie_ruby_sdk/models/gmail_data'
|
|
94
|
+
require 'ragie_ruby_sdk/models/google_folder_data'
|
|
95
|
+
require 'ragie_ruby_sdk/models/http_validation_error'
|
|
96
|
+
require 'ragie_ruby_sdk/models/hubspot_data'
|
|
97
|
+
require 'ragie_ruby_sdk/models/instruction'
|
|
98
|
+
require 'ragie_ruby_sdk/models/intercom_credentials'
|
|
99
|
+
require 'ragie_ruby_sdk/models/intercom_data'
|
|
100
|
+
require 'ragie_ruby_sdk/models/link'
|
|
101
|
+
require 'ragie_ruby_sdk/models/list_connector_source_type_info'
|
|
102
|
+
require 'ragie_ruby_sdk/models/media_mode_param'
|
|
103
|
+
require 'ragie_ruby_sdk/models/media_type'
|
|
104
|
+
require 'ragie_ruby_sdk/models/metadata_value'
|
|
105
|
+
require 'ragie_ruby_sdk/models/metadata_value1'
|
|
106
|
+
require 'ragie_ruby_sdk/models/mode'
|
|
107
|
+
require 'ragie_ruby_sdk/models/mode1'
|
|
108
|
+
require 'ragie_ruby_sdk/models/mode2'
|
|
109
|
+
require 'ragie_ruby_sdk/models/mode2_one_of'
|
|
110
|
+
require 'ragie_ruby_sdk/models/o_auth_credentials'
|
|
111
|
+
require 'ragie_ruby_sdk/models/o_auth_refresh_token_credentials'
|
|
112
|
+
require 'ragie_ruby_sdk/models/o_auth_url_create'
|
|
113
|
+
require 'ragie_ruby_sdk/models/o_auth_url_response'
|
|
114
|
+
require 'ragie_ruby_sdk/models/onedrive_data'
|
|
115
|
+
require 'ragie_ruby_sdk/models/pagination'
|
|
116
|
+
require 'ragie_ruby_sdk/models/partition'
|
|
117
|
+
require 'ragie_ruby_sdk/models/partition_detail'
|
|
118
|
+
require 'ragie_ruby_sdk/models/partition_limit_exceeded_webhook'
|
|
119
|
+
require 'ragie_ruby_sdk/models/partition_limit_exceeded_webhook_payload'
|
|
120
|
+
require 'ragie_ruby_sdk/models/partition_limit_params'
|
|
121
|
+
require 'ragie_ruby_sdk/models/partition_limit_reset_webhook'
|
|
122
|
+
require 'ragie_ruby_sdk/models/partition_limit_reset_webhook_payload'
|
|
123
|
+
require 'ragie_ruby_sdk/models/partition_limits'
|
|
124
|
+
require 'ragie_ruby_sdk/models/partition_list'
|
|
125
|
+
require 'ragie_ruby_sdk/models/partition_stats'
|
|
126
|
+
require 'ragie_ruby_sdk/models/partition_strategy'
|
|
127
|
+
require 'ragie_ruby_sdk/models/patch_document_metadata_params'
|
|
128
|
+
require 'ragie_ruby_sdk/models/payload'
|
|
129
|
+
require 'ragie_ruby_sdk/models/public_backblaze_connection'
|
|
130
|
+
require 'ragie_ruby_sdk/models/public_create_connection'
|
|
131
|
+
require 'ragie_ruby_sdk/models/public_freshdesk_connection'
|
|
132
|
+
require 'ragie_ruby_sdk/models/public_gcs_connection'
|
|
133
|
+
require 'ragie_ruby_sdk/models/public_intercom_connection'
|
|
134
|
+
require 'ragie_ruby_sdk/models/public_s3_compatible_connection'
|
|
135
|
+
require 'ragie_ruby_sdk/models/public_zendesk_connection'
|
|
136
|
+
require 'ragie_ruby_sdk/models/response_ok'
|
|
137
|
+
require 'ragie_ruby_sdk/models/response_patchdocumentmetadata'
|
|
138
|
+
require 'ragie_ruby_sdk/models/retrieval'
|
|
139
|
+
require 'ragie_ruby_sdk/models/retrieve_params'
|
|
140
|
+
require 'ragie_ruby_sdk/models/s3_compatible_credentials'
|
|
141
|
+
require 'ragie_ruby_sdk/models/scored_chunk'
|
|
142
|
+
require 'ragie_ruby_sdk/models/set_connection_enabled_payload'
|
|
143
|
+
require 'ragie_ruby_sdk/models/sharepoint_data'
|
|
144
|
+
require 'ragie_ruby_sdk/models/sharepoint_file_data'
|
|
145
|
+
require 'ragie_ruby_sdk/models/sharepoint_site_data'
|
|
146
|
+
require 'ragie_ruby_sdk/models/slack_data'
|
|
147
|
+
require 'ragie_ruby_sdk/models/source'
|
|
148
|
+
require 'ragie_ruby_sdk/models/status'
|
|
149
|
+
require 'ragie_ruby_sdk/models/update_document_from_url_params'
|
|
150
|
+
require 'ragie_ruby_sdk/models/update_document_raw_params'
|
|
151
|
+
require 'ragie_ruby_sdk/models/update_instruction_params'
|
|
152
|
+
require 'ragie_ruby_sdk/models/validation_error'
|
|
153
|
+
require 'ragie_ruby_sdk/models/validation_error_loc_inner'
|
|
154
|
+
require 'ragie_ruby_sdk/models/video_modality_data'
|
|
155
|
+
require 'ragie_ruby_sdk/models/word_timestamp'
|
|
156
|
+
require 'ragie_ruby_sdk/models/zendesk_credentials'
|
|
157
|
+
require 'ragie_ruby_sdk/models/zendesk_data'
|
|
158
|
+
|
|
159
|
+
# APIs
|
|
160
|
+
require 'ragie_ruby_sdk/api/authenticators_api'
|
|
161
|
+
require 'ragie_ruby_sdk/api/beta_api'
|
|
162
|
+
require 'ragie_ruby_sdk/api/connections_api'
|
|
163
|
+
require 'ragie_ruby_sdk/api/documents_api'
|
|
164
|
+
require 'ragie_ruby_sdk/api/enterprise_api'
|
|
165
|
+
require 'ragie_ruby_sdk/api/entities_api'
|
|
166
|
+
require 'ragie_ruby_sdk/api/partitions_api'
|
|
167
|
+
require 'ragie_ruby_sdk/api/retrievals_api'
|
|
168
|
+
|
|
169
|
+
module RagieRubySdk
|
|
170
|
+
class << self
|
|
171
|
+
# Customize default settings for the SDK using block.
|
|
172
|
+
# RagieRubySdk.configure do |config|
|
|
173
|
+
# config.username = "xxx"
|
|
174
|
+
# config.password = "xxx"
|
|
175
|
+
# end
|
|
176
|
+
# If no block given, return the default Configuration object.
|
|
177
|
+
def configure
|
|
178
|
+
if block_given?
|
|
179
|
+
yield(Configuration.default)
|
|
180
|
+
else
|
|
181
|
+
Configuration.default
|
|
182
|
+
end
|
|
183
|
+
end
|
|
184
|
+
end
|
|
185
|
+
end
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
|
2
|
+
|
|
3
|
+
=begin
|
|
4
|
+
#Ragie API
|
|
5
|
+
|
|
6
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
|
|
10
|
+
Generated by: https://openapi-generator.tech
|
|
11
|
+
Generator version: 7.14.0
|
|
12
|
+
|
|
13
|
+
=end
|
|
14
|
+
|
|
15
|
+
$:.push File.expand_path("../lib", __FILE__)
|
|
16
|
+
require "ragie_ruby_sdk/version"
|
|
17
|
+
|
|
18
|
+
Gem::Specification.new do |s|
|
|
19
|
+
s.name = "ragie_ruby_sdk"
|
|
20
|
+
s.version = RagieRubySdk::VERSION
|
|
21
|
+
s.platform = Gem::Platform::RUBY
|
|
22
|
+
s.authors = ["OpenAPI-Generator"]
|
|
23
|
+
s.email = [""]
|
|
24
|
+
s.homepage = "https://www.ragie.ai/"
|
|
25
|
+
s.summary = "Ragie API Ruby Gem"
|
|
26
|
+
s.description = "No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)"
|
|
27
|
+
s.license = "Unlicense"
|
|
28
|
+
s.required_ruby_version = ">= 2.7"
|
|
29
|
+
s.metadata = {}
|
|
30
|
+
|
|
31
|
+
s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
|
|
32
|
+
|
|
33
|
+
s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
|
|
34
|
+
|
|
35
|
+
s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
|
|
36
|
+
s.test_files = `find spec/*`.split("\n")
|
|
37
|
+
s.executables = []
|
|
38
|
+
s.require_paths = ["lib"]
|
|
39
|
+
end
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Ragie API
|
|
3
|
+
|
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.14.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
|
|
16
|
+
# Unit tests for RagieRubySdk::AuthenticatorsApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'AuthenticatorsApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = RagieRubySdk::AuthenticatorsApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of AuthenticatorsApi' do
|
|
30
|
+
it 'should create an instance of AuthenticatorsApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(RagieRubySdk::AuthenticatorsApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for create_authenticator
|
|
36
|
+
# Create Authenticator
|
|
37
|
+
# Create White labeled connector credentials
|
|
38
|
+
# @param payload
|
|
39
|
+
# @param [Hash] opts the optional parameters
|
|
40
|
+
# @return [BaseGetAuthenticator]
|
|
41
|
+
describe 'create_authenticator test' do
|
|
42
|
+
it 'should work' do
|
|
43
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
# unit tests for create_authenticator_connection
|
|
48
|
+
# Create Authenticator Connection
|
|
49
|
+
# Create a connector for a given authenticator. This requires credentials dependent on the provider. For google drive it is a refresh token.
|
|
50
|
+
# @param authenticator_id
|
|
51
|
+
# @param create_authenticator_connection
|
|
52
|
+
# @param [Hash] opts the optional parameters
|
|
53
|
+
# @return [Connection]
|
|
54
|
+
describe 'create_authenticator_connection test' do
|
|
55
|
+
it 'should work' do
|
|
56
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
# unit tests for delete_authenticator_connection
|
|
61
|
+
# Delete Authenticator
|
|
62
|
+
# Delete an authenticator. This requires all connections created by that authenticator to be deleted first.
|
|
63
|
+
# @param authenticator_id
|
|
64
|
+
# @param [Hash] opts the optional parameters
|
|
65
|
+
# @return [ResponseOK]
|
|
66
|
+
describe 'delete_authenticator_connection test' do
|
|
67
|
+
it 'should work' do
|
|
68
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
# unit tests for list_authenticators
|
|
73
|
+
# List Authenticators
|
|
74
|
+
# List all authenticators sorted by created_at in descending order. Results are paginated with a max limit of 100. When more authenticators are available, a `cursor` will be provided. Use the `cursor` parameter to retrieve the subsequent page.
|
|
75
|
+
# @param [Hash] opts the optional parameters
|
|
76
|
+
# @option opts [String] :cursor An opaque cursor for pagination
|
|
77
|
+
# @option opts [Integer] :page_size The number of items per page (must be greater than 0 and less than or equal to 100)
|
|
78
|
+
# @return [AuthenticatorList]
|
|
79
|
+
describe 'list_authenticators test' do
|
|
80
|
+
it 'should work' do
|
|
81
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
82
|
+
end
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
end
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Ragie API
|
|
3
|
+
|
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.14.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
|
|
16
|
+
# Unit tests for RagieRubySdk::BetaApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'BetaApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = RagieRubySdk::BetaApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of BetaApi' do
|
|
30
|
+
it 'should create an instance of BetaApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(RagieRubySdk::BetaApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for create_authenticator
|
|
36
|
+
# Create Authenticator
|
|
37
|
+
# Create White labeled connector credentials
|
|
38
|
+
# @param payload
|
|
39
|
+
# @param [Hash] opts the optional parameters
|
|
40
|
+
# @return [BaseGetAuthenticator]
|
|
41
|
+
describe 'create_authenticator test' do
|
|
42
|
+
it 'should work' do
|
|
43
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
# unit tests for create_authenticator_connection
|
|
48
|
+
# Create Authenticator Connection
|
|
49
|
+
# Create a connector for a given authenticator. This requires credentials dependent on the provider. For google drive it is a refresh token.
|
|
50
|
+
# @param authenticator_id
|
|
51
|
+
# @param create_authenticator_connection
|
|
52
|
+
# @param [Hash] opts the optional parameters
|
|
53
|
+
# @return [Connection]
|
|
54
|
+
describe 'create_authenticator_connection test' do
|
|
55
|
+
it 'should work' do
|
|
56
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
# unit tests for create_connection
|
|
61
|
+
# Create Connection
|
|
62
|
+
# Create a connection. This is only for non-oauth connections such as S3 compatible connections, Freshdesk, and Zendesk.
|
|
63
|
+
# @param public_create_connection
|
|
64
|
+
# @param [Hash] opts the optional parameters
|
|
65
|
+
# @return [Connection]
|
|
66
|
+
describe 'create_connection test' do
|
|
67
|
+
it 'should work' do
|
|
68
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
# unit tests for delete_authenticator_connection
|
|
73
|
+
# Delete Authenticator
|
|
74
|
+
# Delete an authenticator. This requires all connections created by that authenticator to be deleted first.
|
|
75
|
+
# @param authenticator_id
|
|
76
|
+
# @param [Hash] opts the optional parameters
|
|
77
|
+
# @return [ResponseOK]
|
|
78
|
+
describe 'delete_authenticator_connection test' do
|
|
79
|
+
it 'should work' do
|
|
80
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
# unit tests for list_authenticators
|
|
85
|
+
# List Authenticators
|
|
86
|
+
# List all authenticators sorted by created_at in descending order. Results are paginated with a max limit of 100. When more authenticators are available, a `cursor` will be provided. Use the `cursor` parameter to retrieve the subsequent page.
|
|
87
|
+
# @param [Hash] opts the optional parameters
|
|
88
|
+
# @option opts [String] :cursor An opaque cursor for pagination
|
|
89
|
+
# @option opts [Integer] :page_size The number of items per page (must be greater than 0 and less than or equal to 100)
|
|
90
|
+
# @return [AuthenticatorList]
|
|
91
|
+
describe 'list_authenticators test' do
|
|
92
|
+
it 'should work' do
|
|
93
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
94
|
+
end
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
end
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Ragie API
|
|
3
|
+
|
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.14.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
|
|
16
|
+
# Unit tests for RagieRubySdk::ConnectionsApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'ConnectionsApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = RagieRubySdk::ConnectionsApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of ConnectionsApi' do
|
|
30
|
+
it 'should create an instance of ConnectionsApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(RagieRubySdk::ConnectionsApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for create_connection
|
|
36
|
+
# Create Connection
|
|
37
|
+
# Create a connection. This is only for non-oauth connections such as S3 compatible connections, Freshdesk, and Zendesk.
|
|
38
|
+
# @param public_create_connection
|
|
39
|
+
# @param [Hash] opts the optional parameters
|
|
40
|
+
# @return [Connection]
|
|
41
|
+
describe 'create_connection test' do
|
|
42
|
+
it 'should work' do
|
|
43
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
# unit tests for create_oauth_redirect_url_connections_oauth_post
|
|
48
|
+
# Create Oauth Redirect Url
|
|
49
|
+
# Creates a redirect url to redirect the user to when initializing an embedded connector.
|
|
50
|
+
# @param o_auth_url_create
|
|
51
|
+
# @param [Hash] opts the optional parameters
|
|
52
|
+
# @return [OAuthUrlResponse]
|
|
53
|
+
describe 'create_oauth_redirect_url_connections_oauth_post test' do
|
|
54
|
+
it 'should work' do
|
|
55
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
# unit tests for delete_connection_connections_connection_id_delete_post
|
|
60
|
+
# Delete Connection
|
|
61
|
+
# Schedules a connection to be deleted. You can choose to keep the files from the connection or delete them all. If you keep the files, they will no longer be associated to the connection. Deleting can take some time, so you will still see files for a bit after this is called.
|
|
62
|
+
# @param connection_id
|
|
63
|
+
# @param delete_connection_payload
|
|
64
|
+
# @param [Hash] opts the optional parameters
|
|
65
|
+
# @return [Hash<String, String>]
|
|
66
|
+
describe 'delete_connection_connections_connection_id_delete_post test' do
|
|
67
|
+
it 'should work' do
|
|
68
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
# unit tests for get_connection_connections_connection_id_get
|
|
73
|
+
# Get Connection
|
|
74
|
+
# Get a connection.
|
|
75
|
+
# @param connection_id
|
|
76
|
+
# @param [Hash] opts the optional parameters
|
|
77
|
+
# @return [Connection]
|
|
78
|
+
describe 'get_connection_connections_connection_id_get test' do
|
|
79
|
+
it 'should work' do
|
|
80
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
# unit tests for get_connection_stats_connections_connection_id_stats_get
|
|
85
|
+
# Get Connection Stats
|
|
86
|
+
# Lists connection stats: total documents active documents, total active pages.
|
|
87
|
+
# @param connection_id
|
|
88
|
+
# @param [Hash] opts the optional parameters
|
|
89
|
+
# @return [ConnectionStats]
|
|
90
|
+
describe 'get_connection_stats_connections_connection_id_stats_get test' do
|
|
91
|
+
it 'should work' do
|
|
92
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
93
|
+
end
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
# unit tests for list_connection_source_types_connections_source_type_get
|
|
97
|
+
# List Connection Source Types
|
|
98
|
+
# List available connection source types like 'google_drive' and 'notion' along with their metadata
|
|
99
|
+
# @param [Hash] opts the optional parameters
|
|
100
|
+
# @return [ListConnectorSourceTypeInfo]
|
|
101
|
+
describe 'list_connection_source_types_connections_source_type_get test' do
|
|
102
|
+
it 'should work' do
|
|
103
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
104
|
+
end
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
# unit tests for list_connections_connections_get
|
|
108
|
+
# List Connections
|
|
109
|
+
# List all connections sorted by created_at in descending order. Results are paginated with a max limit of 100. When more documents are available, a `cursor` will be provided. Use the `cursor` parameter to retrieve the subsequent page.
|
|
110
|
+
# @param [Hash] opts the optional parameters
|
|
111
|
+
# @option opts [String] :cursor An opaque cursor for pagination
|
|
112
|
+
# @option opts [Integer] :page_size The number of items per page (must be greater than 0 and less than or equal to 100)
|
|
113
|
+
# @option opts [String] :filter The metadata search filter. Returns only items which match the filter. The following filter operators are supported: $eq - Equal to (number, string, boolean), $ne - Not equal to (number, string, boolean), $gt - Greater than (number), $gte - Greater than or equal to (number), $lt - Less than (number), $lte - Less than or equal to (number), $in - In array (string or number), $nin - Not in array (string or number). The operators can be combined with AND and OR. Read [Metadata & Filters guide](https://docs.ragie.ai/docs/metadata-filters) for more details and examples.
|
|
114
|
+
# @option opts [String] :partition An optional partition to scope the request to. If omitted, the request will be scoped to the default partition.
|
|
115
|
+
# @return [ConnectionList]
|
|
116
|
+
describe 'list_connections_connections_get test' do
|
|
117
|
+
it 'should work' do
|
|
118
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
119
|
+
end
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
# unit tests for set_connection_enabled_connections_connection_id_enabled_put
|
|
123
|
+
# Set Connection Enabled
|
|
124
|
+
# Enable or disable the connection. A disabled connection won't sync.
|
|
125
|
+
# @param connection_id
|
|
126
|
+
# @param set_connection_enabled_payload
|
|
127
|
+
# @param [Hash] opts the optional parameters
|
|
128
|
+
# @return [Connection]
|
|
129
|
+
describe 'set_connection_enabled_connections_connection_id_enabled_put test' do
|
|
130
|
+
it 'should work' do
|
|
131
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
132
|
+
end
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
# unit tests for set_connection_limits_connections_connection_id_limit_put
|
|
136
|
+
# Set Connection Limits
|
|
137
|
+
# Sets limits on a connection. Limits can be set on the total number of pages a connection can sync. When the limit is reached, the connection will be disabled. Limit may be removed by setting it to `null`.
|
|
138
|
+
# @param connection_id
|
|
139
|
+
# @param connection_limit_params
|
|
140
|
+
# @param [Hash] opts the optional parameters
|
|
141
|
+
# @return [Connection]
|
|
142
|
+
describe 'set_connection_limits_connections_connection_id_limit_put test' do
|
|
143
|
+
it 'should work' do
|
|
144
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
145
|
+
end
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
# unit tests for sync_connection
|
|
149
|
+
# Sync Connection
|
|
150
|
+
# Schedules a connector to sync as soon as possible.
|
|
151
|
+
# @param connection_id
|
|
152
|
+
# @param [Hash] opts the optional parameters
|
|
153
|
+
# @return [ResponseOK]
|
|
154
|
+
describe 'sync_connection test' do
|
|
155
|
+
it 'should work' do
|
|
156
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
157
|
+
end
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
# unit tests for update_connection_connections_connection_id_put
|
|
161
|
+
# Update Connection
|
|
162
|
+
# Updates a connections metadata or mode. These changes will be seen after the next sync.
|
|
163
|
+
# @param connection_id
|
|
164
|
+
# @param connection_base
|
|
165
|
+
# @param [Hash] opts the optional parameters
|
|
166
|
+
# @return [Connection]
|
|
167
|
+
describe 'update_connection_connections_connection_id_put test' do
|
|
168
|
+
it 'should work' do
|
|
169
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
170
|
+
end
|
|
171
|
+
end
|
|
172
|
+
|
|
173
|
+
end
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Ragie API
|
|
3
|
+
|
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.14.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
|
|
16
|
+
# Unit tests for RagieRubySdk::DefaultApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'DefaultApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = RagieRubySdk::DefaultApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of DefaultApi' do
|
|
30
|
+
it 'should create an instance of DefaultApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(RagieRubySdk::DefaultApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for eventevent_post
|
|
36
|
+
# Event
|
|
37
|
+
# When events occur in Ragie such as a document being processed, we'll send this data to URLs that you can register in app. Learn more about webhooks in our docs: https://docs.ragie.ai/docs/webhooks.
|
|
38
|
+
# @param body
|
|
39
|
+
# @param [Hash] opts the optional parameters
|
|
40
|
+
# @return [Object]
|
|
41
|
+
describe 'eventevent_post test' do
|
|
42
|
+
it 'should work' do
|
|
43
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
end
|