{"openapi":"3.1.0","info":{"title":"PartnerBridge DataStream API","version":"0.1.0"},"paths":{"/connectors/":{"get":{"tags":["connectors"],"summary":"List Connections","operationId":"list_connections_connectors__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ConnectionOut"},"type":"array","title":"Response List Connections Connectors  Get"}}}}}},"post":{"tags":["connectors"],"summary":"Create Connection","operationId":"create_connection_connectors__post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectionCreate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectionOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/connectors/hubspot/schema/refresh/":{"post":{"tags":["hubspot"],"summary":"Hubspot Schema Refresh","operationId":"hubspot_schema_refresh_connectors_hubspot_schema_refresh__post","parameters":[{"name":"connection_id","in":"query","required":true,"schema":{"type":"integer","title":"Connection Id"}},{"name":"objects","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"CSV of object types; default contacts,deals,companies","title":"Objects"},"description":"CSV of object types; default contacts,deals,companies"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/connectors/hubspot/schema/catalog/":{"get":{"tags":["hubspot"],"summary":"Hubspot Schema Catalog","operationId":"hubspot_schema_catalog_connectors_hubspot_schema_catalog__get","parameters":[{"name":"connection_id","in":"query","required":true,"schema":{"type":"integer","title":"Connection Id"}},{"name":"object_name","in":"query","required":true,"schema":{"type":"string","description":"e.g. contacts | deals | companies","title":"Object Name"},"description":"e.g. contacts | deals | companies"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/connectors/hubspot/oauth/init/":{"get":{"tags":["hubspot"],"summary":"Hubspot Oauth Init","operationId":"hubspot_oauth_init_connectors_hubspot_oauth_init__get","parameters":[{"name":"connection_id","in":"query","required":true,"schema":{"type":"integer","description":"ID from ds_connections","title":"Connection Id"},"description":"ID from ds_connections"},{"name":"redirect_uri","in":"query","required":true,"schema":{"type":"string","description":"Must exactly match the URL registered in your HubSpot app (including trailing slash).","title":"Redirect Uri"},"description":"Must exactly match the URL registered in your HubSpot app (including trailing slash)."},{"name":"echo","in":"query","required":false,"schema":{"type":"integer","description":"Include state in JSON for debugging when set to 1","default":0,"title":"Echo"},"description":"Include state in JSON for debugging when set to 1"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/connectors/hubspot/oauth/callback/":{"get":{"tags":["hubspot"],"summary":"Hubspot Oauth Callback","operationId":"hubspot_oauth_callback_connectors_hubspot_oauth_callback__get","parameters":[{"name":"code","in":"query","required":true,"schema":{"type":"string","title":"Code"}},{"name":"state","in":"query","required":true,"schema":{"type":"string","title":"State"}},{"name":"connection_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Connection Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/connectors/hubspot/token/refresh/":{"post":{"tags":["hubspot"],"summary":"Hubspot Token Refresh","operationId":"hubspot_token_refresh_connectors_hubspot_token_refresh__post","parameters":[{"name":"connection_id","in":"query","required":true,"schema":{"type":"integer","title":"Connection Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/connectors/hubspot/test-contacts/":{"get":{"tags":["hubspot"],"summary":"Hubspot Test Contacts","operationId":"hubspot_test_contacts_connectors_hubspot_test_contacts__get","parameters":[{"name":"connection_id","in":"query","required":true,"schema":{"type":"integer","title":"Connection Id"}},{"name":"properties","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"CSV of properties, e.g. email,createdate","title":"Properties"},"description":"CSV of properties, e.g. email,createdate"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/connectors/hubspot/test-deals/":{"get":{"tags":["hubspot"],"summary":"Hubspot Test Deals","operationId":"hubspot_test_deals_connectors_hubspot_test_deals__get","parameters":[{"name":"connection_id","in":"query","required":true,"schema":{"type":"integer","title":"Connection Id"}},{"name":"properties","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"CSV of properties, e.g. dealname,amount,dealstage","title":"Properties"},"description":"CSV of properties, e.g. dealname,amount,dealstage"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/connectors/hubspot/test-companies/":{"get":{"tags":["hubspot"],"summary":"Hubspot Test Companies","operationId":"hubspot_test_companies_connectors_hubspot_test_companies__get","parameters":[{"name":"connection_id","in":"query","required":true,"schema":{"type":"integer","title":"Connection Id"}},{"name":"properties","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"CSV of properties, e.g. name,domain,industry","title":"Properties"},"description":"CSV of properties, e.g. name,domain,industry"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/connectors/hubspot/objects/{object_name}/":{"get":{"tags":["hubspot"],"summary":"Hubspot List Objects","operationId":"hubspot_list_objects_connectors_hubspot_objects__object_name___get","parameters":[{"name":"object_name","in":"path","required":true,"schema":{"type":"string","description":"contacts | deals | companies | ...","title":"Object Name"},"description":"contacts | deals | companies | ..."},{"name":"connection_id","in":"query","required":true,"schema":{"type":"integer","title":"Connection Id"}},{"name":"properties","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"CSV of props, e.g. email,firstname,lastname","title":"Properties"},"description":"CSV of props, e.g. email,firstname,lastname"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":100,"title":"Limit"}},{"name":"after","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"HubSpot paging cursor","title":"After"},"description":"HubSpot paging cursor"},{"name":"archived","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Archived"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/connectors/hubspot/ingest/{object_name}/":{"post":{"tags":["hubspot"],"summary":"Hubspot Ingest Objects","operationId":"hubspot_ingest_objects_connectors_hubspot_ingest__object_name___post","parameters":[{"name":"object_name","in":"path","required":true,"schema":{"type":"string","title":"Object Name"}},{"name":"connection_id","in":"query","required":true,"schema":{"type":"integer","title":"Connection Id"}},{"name":"dataset_id","in":"query","required":true,"schema":{"type":"integer","title":"Dataset Id"}},{"name":"properties","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Properties"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"default":1000,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/connectors/hubspot/schema/metadata/{object_name}/":{"get":{"tags":["hubspot"],"summary":"Hubspot Schema Metadata","operationId":"hubspot_schema_metadata_connectors_hubspot_schema_metadata__object_name___get","parameters":[{"name":"object_name","in":"path","required":true,"schema":{"type":"string","title":"Object Name"}},{"name":"connection_id","in":"query","required":true,"schema":{"type":"integer","title":"Connection Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/connectors/hubspot/schema/sample/{object_name}/":{"get":{"tags":["hubspot"],"summary":"Hubspot Schema Sample","operationId":"hubspot_schema_sample_connectors_hubspot_schema_sample__object_name___get","parameters":[{"name":"object_name","in":"path","required":true,"schema":{"type":"string","title":"Object Name"}},{"name":"connection_id","in":"query","required":true,"schema":{"type":"integer","title":"Connection Id"}},{"name":"properties","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"CSV of properties to focus on","title":"Properties"},"description":"CSV of properties to focus on"},{"name":"sample","in":"query","required":false,"schema":{"type":"integer","maximum":2000,"minimum":1,"default":200,"title":"Sample"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/connectors/hubspot/objects/{object_name}/since/":{"get":{"tags":["hubspot"],"summary":"Hubspot List Objects Since","operationId":"hubspot_list_objects_since_connectors_hubspot_objects__object_name__since__get","parameters":[{"name":"object_name","in":"path","required":true,"schema":{"type":"string","description":"contacts | deals | companies | ...","title":"Object Name"},"description":"contacts | deals | companies | ..."},{"name":"connection_id","in":"query","required":true,"schema":{"type":"integer","title":"Connection Id"}},{"name":"since","in":"query","required":true,"schema":{"type":"string","description":"ISO8601 or epoch seconds/ms; compared to hs_lastmodifieddate","title":"Since"},"description":"ISO8601 or epoch seconds/ms; compared to hs_lastmodifieddate"},{"name":"properties","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"CSV of props; defaults to latest snapshot non-archived","title":"Properties"},"description":"CSV of props; defaults to latest snapshot non-archived"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":100,"title":"Limit"}},{"name":"after","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"HubSpot paging cursor","title":"After"},"description":"HubSpot paging cursor"},{"name":"archived","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Archived"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/datasets/":{"post":{"tags":["datasets"],"summary":"Create Dataset","operationId":"create_dataset_datasets__post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatasetCreate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Create Dataset Datasets  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/datasets/discover":{"post":{"tags":["datasets"],"summary":"Discover Schema","operationId":"discover_schema_datasets_discover_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SchemaDiscoveryRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SchemaDiscoveryResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/mappings/":{"post":{"tags":["mappings"],"summary":"Upsert Mapping","operationId":"upsert_mapping_mappings__post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MappingUpsert"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/mappings/{dataset_id}/{version}":{"get":{"tags":["mappings"],"summary":"Get Mapping","operationId":"get_mapping_mappings__dataset_id___version__get","parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"integer","title":"Dataset Id"}},{"name":"version","in":"path","required":true,"schema":{"type":"integer","title":"Version"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/files/upload-csv":{"post":{"tags":["files"],"summary":"Upload Csv","operationId":"upload_csv_files_upload_csv_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_csv_files_upload_csv_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/datastream/api/destinations/fullstory":{"post":{"tags":["destinations"],"summary":"Create Fullstory","operationId":"create_fullstory_datastream_api_destinations_fullstory_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FullStoryCreateIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FullStoryCreateOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/datastream/api/pipelines/{pipeline_id}":{"get":{"tags":["pipelines","pipelines"],"summary":"Get Pipeline Detail","operationId":"get_pipeline_detail_datastream_api_pipelines__pipeline_id__get","parameters":[{"name":"pipeline_id","in":"path","required":true,"schema":{"type":"integer","title":"Pipeline Id"}},{"name":"include_recent","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":0,"default":5,"title":"Include Recent"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PipelineDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/datastream/api/pipelines/{pipeline_id}/runs":{"get":{"tags":["pipelines","pipelines"],"summary":"List Pipeline Runs","operationId":"list_pipeline_runs_datastream_api_pipelines__pipeline_id__runs_get","parameters":[{"name":"pipeline_id","in":"path","required":true,"schema":{"type":"integer","title":"Pipeline Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by status e.g. success|error|partial|running","title":"Status"},"description":"Filter by status e.g. success|error|partial|running"},{"name":"trigger","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"manual|schedule|retry","title":"Trigger"},"description":"manual|schedule|retry"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PipelineRunSummary"},"title":"Response List Pipeline Runs Datastream Api Pipelines  Pipeline Id  Runs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/datastream/api/pipelines/":{"get":{"tags":["pipelines","pipelines"],"summary":"List Pipelines","operationId":"list_pipelines_datastream_api_pipelines__get","parameters":[{"name":"tenant_id","in":"query","required":true,"schema":{"type":"integer","title":"Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PipelineSummary"},"title":"Response List Pipelines Datastream Api Pipelines  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["pipelines","pipelines"],"summary":"Create Pipeline","operationId":"create_pipeline_datastream_api_pipelines__post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PipelineCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PipelineOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/datastream/api/pipelines/{pipeline_id}/run":{"post":{"tags":["pipelines","pipelines"],"summary":"Run Now","operationId":"run_now_datastream_api_pipelines__pipeline_id__run_post","parameters":[{"name":"pipeline_id","in":"path","required":true,"schema":{"type":"integer","title":"Pipeline Id"}},{"name":"started_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Name/email of the user who triggered","title":"Started By"},"description":"Name/email of the user who triggered"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/datastream/api/pipelines/{pipeline_id}/schedule":{"get":{"tags":["pipelines","pipelines"],"summary":"Get Schedule","operationId":"get_schedule_datastream_api_pipelines__pipeline_id__schedule_get","parameters":[{"name":"pipeline_id","in":"path","required":true,"schema":{"type":"integer","title":"Pipeline Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/datastream/api/pipelines/{pipeline_id}/schedule/start":{"post":{"tags":["pipelines","pipelines"],"summary":"Start Schedule","operationId":"start_schedule_datastream_api_pipelines__pipeline_id__schedule_start_post","parameters":[{"name":"pipeline_id","in":"path","required":true,"schema":{"type":"integer","title":"Pipeline Id"}},{"name":"every_seconds","in":"query","required":false,"schema":{"type":"integer","maximum":86400,"minimum":30,"default":3600,"title":"Every Seconds"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/datastream/api/pipelines/{pipeline_id}/schedule/stop":{"post":{"tags":["pipelines","pipelines"],"summary":"Stop Schedule","operationId":"stop_schedule_datastream_api_pipelines__pipeline_id__schedule_stop_post","parameters":[{"name":"pipeline_id","in":"path","required":true,"schema":{"type":"integer","title":"Pipeline Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/datastream/api/pipelines/{pipeline_id}/schedule/resume":{"post":{"tags":["pipelines","pipelines"],"summary":"Resume After Error","operationId":"resume_after_error_datastream_api_pipelines__pipeline_id__schedule_resume_post","parameters":[{"name":"pipeline_id","in":"path","required":true,"schema":{"type":"integer","title":"Pipeline Id"}},{"name":"every_seconds","in":"query","required":false,"schema":{"type":"integer","maximum":86400,"minimum":30,"default":3600,"title":"Every Seconds"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/health":{"get":{"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"Body_upload_csv_files_upload_csv_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_csv_files_upload_csv_post"},"ConnectionCreate":{"properties":{"tenant_id":{"type":"integer","title":"Tenant Id"},"name":{"type":"string","title":"Name"},"type":{"type":"string","title":"Type"},"config":{"additionalProperties":true,"type":"object","title":"Config"}},"type":"object","required":["tenant_id","name","type","config"],"title":"ConnectionCreate"},"ConnectionOut":{"properties":{"id":{"type":"integer","title":"Id"},"tenant_id":{"type":"integer","title":"Tenant Id"},"name":{"type":"string","title":"Name"},"type":{"type":"string","title":"Type"},"status":{"type":"string","title":"Status"}},"type":"object","required":["id","tenant_id","name","type","status"],"title":"ConnectionOut"},"DatasetCreate":{"properties":{"tenant_id":{"type":"integer","title":"Tenant Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"source_connection_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Source Connection Id"}},"type":"object","required":["tenant_id","name"],"title":"DatasetCreate"},"FullStoryCreateIn":{"properties":{"tenant_id":{"type":"integer","minimum":1.0,"title":"Tenant Id"},"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"},"api_key":{"type":"string","minLength":20,"title":"Api Key"},"key_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Key Label"}},"type":"object","required":["tenant_id","name","api_key"],"title":"FullStoryCreateIn"},"FullStoryCreateOut":{"properties":{"connection_id":{"type":"integer","title":"Connection Id"}},"type":"object","required":["connection_id"],"title":"FullStoryCreateOut"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"MappingRule":{"properties":{"source_field":{"type":"string","title":"Source Field"},"target_field":{"type":"string","title":"Target Field"},"transform":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transform"}},"type":"object","required":["source_field","target_field"],"title":"MappingRule"},"MappingUpsert":{"properties":{"dataset_id":{"type":"integer","title":"Dataset Id"},"schema_version":{"type":"integer","title":"Schema Version"},"rules":{"items":{"$ref":"#/components/schemas/MappingRule"},"type":"array","title":"Rules"},"activate":{"type":"boolean","title":"Activate","default":false}},"type":"object","required":["dataset_id","schema_version","rules"],"title":"MappingUpsert"},"PipelineCreate":{"properties":{"tenant_id":{"type":"integer","title":"Tenant Id"},"source":{"additionalProperties":true,"type":"object","title":"Source","description":"e.g. {type:'hubspot', connection_id:2, object:'contacts', fields:[...]} "},"destination":{"additionalProperties":true,"type":"object","title":"Destination","description":"e.g. {type:'fullstory'}"},"schedule":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Schedule"}},"type":"object","required":["tenant_id","source","destination"],"title":"PipelineCreate"},"PipelineDetail":{"properties":{"id":{"type":"integer","title":"Id"},"tenant_id":{"type":"integer","title":"Tenant Id"},"name":{"type":"string","title":"Name"},"status":{"type":"string","title":"Status"},"source_type":{"type":"string","title":"Source Type"},"source_conn_id":{"type":"integer","title":"Source Conn Id"},"source_object":{"type":"string","title":"Source Object"},"fields_json":{"items":{"type":"string"},"type":"array","title":"Fields Json"},"destination_type":{"type":"string","title":"Destination Type"},"destination_conn_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Destination Conn Id"},"destination_config_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Destination Config Json"},"schedule_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Schedule Json"},"cursor_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Cursor Json"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"last_run":{"anyOf":[{"$ref":"#/components/schemas/PipelineRunSummary"},{"type":"null"}]},"recent_runs":{"anyOf":[{"items":{"$ref":"#/components/schemas/PipelineRunSummary"},"type":"array"},{"type":"null"}],"title":"Recent Runs"}},"type":"object","required":["id","tenant_id","name","status","source_type","source_conn_id","source_object","fields_json","destination_type","created_at","updated_at"],"title":"PipelineDetail"},"PipelineOut":{"properties":{"id":{"type":"integer","title":"Id"},"status":{"type":"string","title":"Status"}},"type":"object","required":["id","status"],"title":"PipelineOut"},"PipelineRunSummary":{"properties":{"id":{"type":"integer","title":"Id"},"started_at":{"type":"string","format":"date-time","title":"Started At"},"finished_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Finished At"},"status":{"type":"string","title":"Status"},"stats_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Stats Json"},"error_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Text"},"cursor_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Cursor Json"},"started_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Started By"},"run_trigger":{"anyOf":[{"type":"string","enum":["manual","schedule","retry"]},{"type":"null"}],"title":"Run Trigger"}},"type":"object","required":["id","started_at","status"],"title":"PipelineRunSummary"},"PipelineSummary":{"properties":{"id":{"type":"integer","title":"Id"},"tenant_id":{"type":"integer","title":"Tenant Id"},"name":{"type":"string","title":"Name"},"status":{"type":"string","title":"Status"}},"type":"object","required":["id","tenant_id","name","status"],"title":"PipelineSummary"},"RunOut":{"properties":{"pipeline_id":{"type":"integer","title":"Pipeline Id"},"status":{"type":"string","title":"Status"},"fetched":{"type":"integer","title":"Fetched"},"sent":{"type":"integer","title":"Sent"},"failed":{"type":"integer","title":"Failed"},"duration_s":{"type":"number","title":"Duration S"}},"type":"object","required":["pipeline_id","status","fetched","sent","failed","duration_s"],"title":"RunOut"},"SchemaDiscoveryRequest":{"properties":{"dataset_id":{"type":"integer","title":"Dataset Id"},"sample_limit":{"type":"integer","title":"Sample Limit","default":500}},"type":"object","required":["dataset_id"],"title":"SchemaDiscoveryRequest"},"SchemaDiscoveryResult":{"properties":{"dataset_id":{"type":"integer","title":"Dataset Id"},"proposed_version":{"type":"integer","title":"Proposed Version"},"schema_types":{"additionalProperties":true,"type":"object","title":"Schema Types"},"profile":{"additionalProperties":true,"type":"object","title":"Profile"}},"type":"object","required":["dataset_id","proposed_version","schema_types","profile"],"title":"SchemaDiscoveryResult"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}