diff --git a/SOURCE.txt b/SOURCE.txt index d1ca265..f8ae1ed 100644 --- a/SOURCE.txt +++ b/SOURCE.txt @@ -1,4 +1,4 @@ -src/saas_sdk/_gen generated from codefly-dev/module-saas-starter@2637cbb4557e912a009456b80c3f26a83287c6e6 +src/saas_sdk/_gen generated from codefly-dev/module-saas-starter@c201081235a61da83500db4c30a8bbec7d391e1a (accounts public proto: module/services/accounts/proto) services: saas.accounts.v1.DatasourceService (datasource.proto) diff --git a/src/saas_sdk/_gen/datasource_pb2.py b/src/saas_sdk/_gen/datasource_pb2.py index 26ff7ed..9d435fb 100644 --- a/src/saas_sdk/_gen/datasource_pb2.py +++ b/src/saas_sdk/_gen/datasource_pb2.py @@ -26,7 +26,7 @@ from saas_sdk._gen import jobs_pb2 as saas__sdk_dot___gen_dot_jobs__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!saas/accounts/v1/datasource.proto\x12\x10saas.accounts.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x18saas_sdk/_gen/jobs.proto\"\x83\x01\n\x16GitHubDatasourceConfig\x12\x12\n\x04repo\x18\x01 \x01(\tR\x04repo\x12\x14\n\x05paths\x18\x02 \x03(\tR\x05paths\x12\x16\n\x06\x62ranch\x18\x03 \x01(\tR\x06\x62ranch\x12\'\n\x0f\x66ile_extensions\x18\x04 \x03(\tR\x0e\x66ileExtensions\"c\n\x0f\x41piOAuth2Config\x12\x1b\n\ttoken_url\x18\x01 \x01(\tR\x08tokenUrl\x12\x1b\n\tclient_id\x18\x02 \x01(\tR\x08\x63lientId\x12\x16\n\x06scopes\x18\x03 \x03(\tR\x06scopes\"\xc1\x02\n\x13\x41piDatasourceConfig\x12\x19\n\x08\x62\x61se_url\x18\x01 \x01(\tR\x07\x62\x61seUrl\x12#\n\rresource_path\x18\x02 \x01(\tR\x0cresourcePath\x12L\n\x0f\x63redential_kind\x18\x03 \x01(\x0e\x32#.saas.accounts.v1.ApiCredentialKindR\x0e\x63redentialKind\x12+\n\x11\x63redential_header\x18\x04 \x01(\tR\x10\x63redentialHeader\x12\x34\n\x16\x63redential_query_param\x18\x05 \x01(\tR\x14\x63redentialQueryParam\x12\x39\n\x06oauth2\x18\x06 \x01(\x0b\x32!.saas.accounts.v1.ApiOAuth2ConfigR\x06oauth2\"W\n\x17\x43rawlerDatasourceConfig\x12\x1f\n\x0bsitemap_url\x18\x01 \x01(\tR\nsitemapUrl\x12\x1b\n\tmax_pages\x18\x02 \x01(\rR\x08maxPages\"\xc1\x01\n\x16UploadDatasourceConfig\x12\x1a\n\x08\x65ndpoint\x18\x01 \x01(\tR\x08\x65ndpoint\x12\x16\n\x06region\x18\x02 \x01(\tR\x06region\x12\x16\n\x06\x62ucket\x18\x03 \x01(\tR\x06\x62ucket\x12\x16\n\x06prefix\x18\x04 \x01(\tR\x06prefix\x12\"\n\raccess_key_id\x18\x05 \x01(\tR\x0b\x61\x63\x63\x65ssKeyId\x12\x1f\n\x0bmax_objects\x18\x06 \x01(\rR\nmaxObjects\"\xea\x07\n\nDatasource\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x15\n\x06org_id\x18\x02 \x01(\tR\x05orgId\x12@\n\x08provider\x18\x03 \x01(\x0e\x32$.saas.accounts.v1.DatasourceProviderR\x08provider\x12@\n\x06github\x18\x05 \x01(\x0b\x32(.saas.accounts.v1.GitHubDatasourceConfigR\x06github\x12:\n\x06status\x18\x06 \x01(\x0e\x32\".saas.accounts.v1.DatasourceStatusR\x06status\x12-\n\x12webhook_configured\x18\x07 \x01(\x08R\x11webhookConfigured\x12\x39\n\ncreated_at\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tcreatedAt\x12\x39\n\nupdated_at\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tupdatedAt\x12@\n\x0elast_synced_at\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x0clastSyncedAt\x12\x37\n\x03\x61pi\x18\x0b \x01(\x0b\x32%.saas.accounts.v1.ApiDatasourceConfigR\x03\x61pi\x12\x43\n\x07\x63rawler\x18\x0c \x01(\x0b\x32).saas.accounts.v1.CrawlerDatasourceConfigR\x07\x63rawler\x12@\n\x06upload\x18\r \x01(\x0b\x32(.saas.accounts.v1.UploadDatasourceConfigR\x06upload\x12(\n\x10\x62oundary_node_id\x18\x0e \x01(\tR\x0e\x62oundaryNodeId\x12\x44\n\x10last_ingested_at\x18\x0f \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x0elastIngestedAt\x12\x30\n\x14last_ingested_commit\x18\x10 \x01(\tR\x12lastIngestedCommit\x12#\n\rstatus_reason\x18\x11 \x01(\tR\x0cstatusReason\x12%\n\x0e\x62oundary_label\x18\x12 \x01(\tR\rboundaryLabel\x12\x1e\n\nconformant\x18\x13 \x01(\x08R\nconformant\x12\'\n\x0f\x63onformance_gap\x18\x14 \x01(\tR\x0e\x63onformanceGapJ\x04\x08\x04\x10\x05R\x11target_collection\"\xe9\x02\n\x16\x41\x64\x64GitHubSourceRequest\x12\x15\n\x06org_id\x18\x01 \x01(\tR\x05orgId\x12\x12\n\x04repo\x18\x02 \x01(\tR\x04repo\x12\x14\n\x05paths\x18\x03 \x03(\tR\x05paths\x12\x16\n\x06\x62ranch\x18\x04 \x01(\tR\x06\x62ranch\x12*\n\x10\x62oundary_node_id\x18\x08 \x01(\tH\x00R\x0e\x62oundaryNodeId\x12+\n\x10\x63ollection_label\x18\t \x01(\tH\x00R\x0f\x63ollectionLabel\x12!\n\x0c\x61\x63\x63\x65ss_token\x18\x06 \x01(\tR\x0b\x61\x63\x63\x65ssToken\x12%\n\x0ewebhook_secret\x18\x07 \x01(\tR\rwebhookSecret\x12\'\n\x0f\x66ile_extensions\x18\n \x03(\tR\x0e\x66ileExtensionsB\x11\n\x08\x62oundary\x12\x05\xbaH\x02\x08\x01J\x04\x08\x05\x10\x06R\x11target_collection\"W\n\x17\x41\x64\x64GitHubSourceResponse\x12<\n\ndatasource\x18\x01 \x01(\x0b\x32\x1c.saas.accounts.v1.DatasourceR\ndatasource\"\xfd\x04\n\x10\x41\x64\x64SourceRequest\x12\x15\n\x06org_id\x18\x01 \x01(\tR\x05orgId\x12@\n\x08provider\x18\x02 \x01(\x0e\x32$.saas.accounts.v1.DatasourceProviderR\x08provider\x12\x42\n\x06github\x18\x04 \x01(\x0b\x32(.saas.accounts.v1.GitHubDatasourceConfigH\x00R\x06github\x12\x39\n\x03\x61pi\x18\x05 \x01(\x0b\x32%.saas.accounts.v1.ApiDatasourceConfigH\x00R\x03\x61pi\x12\x45\n\x07\x63rawler\x18\x08 \x01(\x0b\x32).saas.accounts.v1.CrawlerDatasourceConfigH\x00R\x07\x63rawler\x12\x42\n\x06upload\x18\t \x01(\x0b\x32(.saas.accounts.v1.UploadDatasourceConfigH\x00R\x06upload\x12*\n\x10\x62oundary_node_id\x18\x0c \x01(\tH\x01R\x0e\x62oundaryNodeId\x12+\n\x10\x63ollection_label\x18\r \x01(\tH\x01R\x0f\x63ollectionLabel\x12\x1e\n\ncredential\x18\x06 \x01(\tR\ncredential\x12%\n\x0ewebhook_secret\x18\x07 \x01(\tR\rwebhookSecret\x12\x30\n\x14oauth2_client_secret\x18\n \x01(\tR\x12oauth2ClientSecretB\x08\n\x06\x63onfigB\x11\n\x08\x62oundary\x12\x05\xbaH\x02\x08\x01J\x04\x08\x03\x10\x04R\x11target_collection\"Q\n\x11\x41\x64\x64SourceResponse\x12<\n\ndatasource\x18\x01 \x01(\x0b\x32\x1c.saas.accounts.v1.DatasourceR\ndatasource\"|\n\x15\x44\x61tasourceConfigField\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12!\n\x0c\x64isplay_name\x18\x02 \x01(\tR\x0b\x64isplayName\x12\x12\n\x04help\x18\x03 \x01(\tR\x04help\x12\x1a\n\x08required\x18\x04 \x01(\x08R\x08required\"\xb0\x02\n\x19\x44\x61tasourceConnectorBudget\x12+\n\x12max_items_per_call\x18\x01 \x01(\rR\x0fmaxItemsPerCall\x12+\n\x12max_bytes_per_call\x18\x02 \x01(\x03R\x0fmaxBytesPerCall\x12$\n\x0emax_item_bytes\x18\x03 \x01(\x03R\x0cmaxItemBytes\x12\x32\n\x15operations_per_window\x18\x04 \x01(\rR\x13operationsPerWindow\x12%\n\x0ewindow_seconds\x18\x05 \x01(\x03R\rwindowSeconds\x12\x38\n\x18\x62\x61\x63kground_share_percent\x18\x06 \x01(\rR\x16\x62\x61\x63kgroundSharePercent\"\xd1\x06\n\x1c\x44\x61tasourceProviderDescriptor\x12@\n\x08provider\x18\x01 \x01(\x0e\x32$.saas.accounts.v1.DatasourceProviderR\x08provider\x12!\n\x0c\x64isplay_name\x18\x02 \x01(\tR\x0b\x64isplayName\x12 \n\x0b\x64\x65scription\x18\x03 \x01(\tR\x0b\x64\x65scription\x12L\n\rconfig_fields\x18\x04 \x03(\x0b\x32\'.saas.accounts.v1.DatasourceConfigFieldR\x0c\x63onfigFields\x12)\n\x10supports_webhook\x18\x05 \x01(\x08R\x0fsupportsWebhook\x12\x61\n\x1asupported_credential_kinds\x18\x06 \x03(\x0e\x32#.saas.accounts.v1.ApiCredentialKindR\x18supportedCredentialKinds\x12\x1c\n\tconnector\x18\x07 \x01(\tR\tconnector\x12L\n\tinterface\x18\x08 \x01(\x0e\x32..saas.accounts.v1.DatasourceConnectorInterfaceR\tinterface\x12U\n\x10\x63redential_modes\x18\t \x03(\x0e\x32*.saas.accounts.v1.DatasourceCredentialModeR\x0f\x63redentialModes\x12M\n\rreaders_model\x18\n \x01(\x0e\x32(.saas.accounts.v1.DatasourceReadersModelR\x0creadersModel\x12\x43\n\x06\x62udget\x18\x0b \x01(\x0b\x32+.saas.accounts.v1.DatasourceConnectorBudgetR\x06\x62udget\x12\x1e\n\nconformant\x18\x0c \x01(\x08R\nconformant\x12\'\n\x0f\x63onformance_gap\x18\r \x01(\tR\x0e\x63onformanceGap\x12.\n\x13\x61\x63\x63\x65pts_new_sources\x18\x0e \x01(\x08R\x11\x61\x63\x63\x65ptsNewSources\"\x1d\n\x1bGetDatasourceCatalogRequest\"l\n\x1cGetDatasourceCatalogResponse\x12L\n\tproviders\x18\x01 \x03(\x0b\x32..saas.accounts.v1.DatasourceProviderDescriptorR\tproviders\"+\n\x12ListSourcesRequest\x12\x15\n\x06org_id\x18\x01 \x01(\tR\x05orgId\"U\n\x13ListSourcesResponse\x12>\n\x0b\x64\x61tasources\x18\x01 \x03(\x0b\x32\x1c.saas.accounts.v1.DatasourceR\x0b\x64\x61tasources\"9\n\x10GetSourceRequest\x12\x15\n\x06org_id\x18\x01 \x01(\tR\x05orgId\x12\x0e\n\x02id\x18\x02 \x01(\tR\x02id\"Q\n\x11GetSourceResponse\x12<\n\ndatasource\x18\x01 \x01(\x0b\x32\x1c.saas.accounts.v1.DatasourceR\ndatasource\"]\n\x11SyncSourceRequest\x12\x15\n\x06org_id\x18\x01 \x01(\tR\x05orgId\x12\x0e\n\x02id\x18\x02 \x01(\tR\x02id\x12!\n\x0c\x61\x63\x63\x65ss_token\x18\x03 \x01(\tR\x0b\x61\x63\x63\x65ssToken\"+\n\x12SyncSourceResponse\x12\x15\n\x06job_id\x18\x01 \x01(\tR\x05jobId\"a\n\x14GetSourceSyncRequest\x12\x15\n\x06org_id\x18\x01 \x01(\tR\x05orgId\x12\x1b\n\tsource_id\x18\x02 \x01(\tR\x08sourceId\x12\x15\n\x06job_id\x18\x03 \x01(\tR\x05jobId\"\x9c\x01\n\x12SourceSyncDelivery\x12\x15\n\x06job_id\x18\x01 \x01(\tR\x05jobId\x12,\n\x05state\x18\x02 \x01(\x0e\x32\x16.saas.jobs.v1.JobStateR\x05state\x12\x41\n\texecution\x18\x03 \x01(\x0b\x32#.saas.jobs.v1.JobExecutionReferenceR\texecution\"\xca\x01\n\x11SourceSyncChanges\x12\x14\n\x05\x66iles\x18\x01 \x01(\rR\x05\x66iles\x12\x14\n\x05\x61\x64\x64\x65\x64\x18\x02 \x01(\rR\x05\x61\x64\x64\x65\x64\x12\x1a\n\x08modified\x18\x03 \x01(\rR\x08modified\x12\x18\n\x07\x64\x65leted\x18\x04 \x01(\rR\x07\x64\x65leted\x12\x1f\n\x0bsplit_known\x18\x05 \x01(\x08R\nsplitKnown\x12\x1a\n\x08snapshot\x18\x06 \x01(\x08R\x08snapshot\x12\x16\n\x06\x63ommit\x18\x07 \x01(\tR\x06\x63ommit\"\xd7\x01\n\x11SourceSyncFailure\x12\x41\n\x06reason\x18\x01 \x01(\x0e\x32).saas.accounts.v1.SourceSyncFailureReasonR\x06reason\x12\x12\n\x04\x63ode\x18\x02 \x01(\tR\x04\x63ode\x12\x18\n\x07message\x18\x03 \x01(\tR\x07message\x12\x1a\n\x08retrying\x18\x04 \x01(\x08R\x08retrying\x12\x35\n\x08retry_at\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x07retryAt\"\xf7\x04\n\x12SourceSyncProgress\x12\x37\n\x05phase\x18\x01 \x01(\x0e\x32!.saas.accounts.v1.SourceSyncPhaseR\x05phase\x12=\n\x07trigger\x18\x02 \x01(\x0e\x32#.saas.accounts.v1.SourceSyncTriggerR\x07trigger\x12\x37\n\tqueued_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x08queuedAt\x12;\n\x0b\x66\x65tching_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\nfetchingAt\x12;\n\x0b\x63ompiled_at\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\ncompiledAt\x12>\n\rhanded_off_at\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x0bhandedOffAt\x12;\n\x0b\x66inished_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\nfinishedAt\x12=\n\x07\x63hanges\x18\x08 \x01(\x0b\x32#.saas.accounts.v1.SourceSyncChangesR\x07\x63hanges\x12=\n\x07\x66\x61ilure\x18\t \x01(\x0b\x32#.saas.accounts.v1.SourceSyncFailureR\x07\x66\x61ilure\x12\x18\n\x07\x61ttempt\x18\n \x01(\rR\x07\x61ttempt\x12!\n\x0cmax_attempts\x18\x0b \x01(\rR\x0bmaxAttempts\"\xe4\x01\n\x15GetSourceSyncResponse\x12\x15\n\x06job_id\x18\x01 \x01(\tR\x05jobId\x12,\n\x05state\x18\x02 \x01(\x0e\x32\x16.saas.jobs.v1.JobStateR\x05state\x12\x44\n\ndeliveries\x18\x03 \x03(\x0b\x32$.saas.accounts.v1.SourceSyncDeliveryR\ndeliveries\x12@\n\x08progress\x18\x04 \x01(\x0b\x32$.saas.accounts.v1.SourceSyncProgressR\x08progress\"<\n\x13\x44\x65leteSourceRequest\x12\x15\n\x06org_id\x18\x01 \x01(\tR\x05orgId\x12\x0e\n\x02id\x18\x02 \x01(\tR\x02id\"\x16\n\x14\x44\x65leteSourceResponse\"}\n\x13GitHubAppRepository\x12\x12\n\x04repo\x18\x01 \x01(\tR\x04repo\x12%\n\x0e\x64\x65\x66\x61ult_branch\x18\x02 \x01(\tR\rdefaultBranch\x12+\n\x11\x61lready_connected\x18\x03 \x01(\x08R\x10\x61lreadyConnected\"3\n\x1a\x42\x65ginGitHubAppSetupRequest\x12\x15\n\x06org_id\x18\x01 \x01(\tR\x05orgId\"\x8f\x01\n\x1b\x42\x65ginGitHubAppSetupResponse\x12\x1f\n\x0binstall_url\x18\x01 \x01(\tR\ninstallUrl\x12\x14\n\x05state\x18\x02 \x01(\tR\x05state\x12\x39\n\nexpires_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\texpiresAt\"\x89\x01\n\x1d\x43ompleteGitHubAppSetupRequest\x12\x15\n\x06org_id\x18\x01 \x01(\tR\x05orgId\x12\x14\n\x05state\x18\x02 \x01(\tR\x05state\x12\'\n\x0finstallation_id\x18\x03 \x01(\tR\x0einstallationId\x12\x12\n\x04\x63ode\x18\x04 \x01(\tR\x04\x63ode\"\x94\x01\n\x1e\x43ompleteGitHubAppSetupResponse\x12\'\n\x0finstallation_id\x18\x01 \x01(\tR\x0einstallationId\x12I\n\x0crepositories\x18\x02 \x03(\x0b\x32%.saas.accounts.v1.GitHubAppRepositoryR\x0crepositories\"H\n\x1fMigrateGitHubSourceToAppRequest\x12\x15\n\x06org_id\x18\x01 \x01(\tR\x05orgId\x12\x0e\n\x02id\x18\x02 \x01(\tR\x02id\"`\n MigrateGitHubSourceToAppResponse\x12<\n\ndatasource\x18\x01 \x01(\x0b\x32\x1c.saas.accounts.v1.DatasourceR\ndatasource\"\x96\x02\n\x15\x44\x61tasourceAccountLink\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x15\n\x06org_id\x18\x02 \x01(\tR\x05orgId\x12\x17\n\x07user_id\x18\x03 \x01(\tR\x06userId\x12\x1c\n\tconnector\x18\x04 \x01(\tR\tconnector\x12.\n\x13provider_account_id\x18\x05 \x01(\tR\x11providerAccountId\x12\x34\n\x16provider_account_login\x18\x06 \x01(\tR\x14providerAccountLogin\x12\x39\n\ncreated_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tcreatedAt\"\xfc\x01\n\x16\x44\x61tasourceGroupBinding\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x15\n\x06org_id\x18\x02 \x01(\tR\x05orgId\x12\x1c\n\tconnector\x18\x03 \x01(\tR\tconnector\x12*\n\x11provider_group_id\x18\x04 \x01(\tR\x0fproviderGroupId\x12\x17\n\x07team_id\x18\x05 \x01(\tR\x06teamId\x12\x1d\n\ncreated_by\x18\x06 \x01(\tR\tcreatedBy\x12\x39\n\ncreated_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tcreatedAt\"\xe5\x02\n\x18\x44\x61tasourceVerifiedDomain\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x15\n\x06org_id\x18\x02 \x01(\tR\x05orgId\x12\x16\n\x06\x64omain\x18\x03 \x01(\tR\x06\x64omain\x12@\n\x06status\x18\x04 \x01(\x0e\x32(.saas.accounts.v1.DatasourceDomainStatusR\x06status\x12&\n\x0ftxt_record_name\x18\x05 \x01(\tR\rtxtRecordName\x12(\n\x10txt_record_value\x18\x06 \x01(\tR\x0etxtRecordValue\x12;\n\x0bverified_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\nverifiedAt\x12\x39\n\ncreated_at\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tcreatedAt\"=\n\x17\x44\x61tasourceDirectoryTeam\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\"{\n!BeginDatasourceAccountLinkRequest\x12\x15\n\x06org_id\x18\x01 \x01(\tR\x05orgId\x12\x1c\n\tconnector\x18\x02 \x01(\tR\tconnector\x12!\n\x0credirect_uri\x18\x03 \x01(\tR\x0bredirectUri\"\x9a\x01\n\"BeginDatasourceAccountLinkResponse\x12#\n\rauthorize_url\x18\x01 \x01(\tR\x0c\x61uthorizeUrl\x12\x14\n\x05state\x18\x02 \x01(\tR\x05state\x12\x39\n\nexpires_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\texpiresAt\"g\n$CompleteDatasourceAccountLinkRequest\x12\x15\n\x06org_id\x18\x01 \x01(\tR\x05orgId\x12\x14\n\x05state\x18\x02 \x01(\tR\x05state\x12\x12\n\x04\x63ode\x18\x03 \x01(\tR\x04\x63ode\"d\n%CompleteDatasourceAccountLinkResponse\x12;\n\x04link\x18\x01 \x01(\x0b\x32\'.saas.accounts.v1.DatasourceAccountLinkR\x04link\"<\n#ListMyDatasourceAccountLinksRequest\x12\x15\n\x06org_id\x18\x01 \x01(\tR\x05orgId\"e\n$ListMyDatasourceAccountLinksResponse\x12=\n\x05links\x18\x01 \x03(\x0b\x32\'.saas.accounts.v1.DatasourceAccountLinkR\x05links\"K\n\"DeleteDatasourceAccountLinkRequest\x12\x15\n\x06org_id\x18\x01 \x01(\tR\x05orgId\x12\x0e\n\x02id\x18\x02 \x01(\tR\x02id\"%\n#DeleteDatasourceAccountLinkResponse\"6\n\x1dGetDatasourceDirectoryRequest\x12\x15\n\x06org_id\x18\x01 \x01(\tR\x05orgId\"\xac\x02\n\x1eGetDatasourceDirectoryResponse\x12=\n\x05links\x18\x01 \x03(\x0b\x32\'.saas.accounts.v1.DatasourceAccountLinkR\x05links\x12\x44\n\x08\x62indings\x18\x02 \x03(\x0b\x32(.saas.accounts.v1.DatasourceGroupBindingR\x08\x62indings\x12\x44\n\x07\x64omains\x18\x03 \x03(\x0b\x32*.saas.accounts.v1.DatasourceVerifiedDomainR\x07\x64omains\x12?\n\x05teams\x18\x04 \x03(\x0b\x32).saas.accounts.v1.DatasourceDirectoryTeamR\x05teams\"\x96\x01\n\x1a\x42indDatasourceGroupRequest\x12\x15\n\x06org_id\x18\x01 \x01(\tR\x05orgId\x12\x1c\n\tconnector\x18\x02 \x01(\tR\tconnector\x12*\n\x11provider_group_id\x18\x03 \x01(\tR\x0fproviderGroupId\x12\x17\n\x07team_id\x18\x04 \x01(\tR\x06teamId\"a\n\x1b\x42indDatasourceGroupResponse\x12\x42\n\x07\x62inding\x18\x01 \x01(\x0b\x32(.saas.accounts.v1.DatasourceGroupBindingR\x07\x62inding\"E\n\x1cUnbindDatasourceGroupRequest\x12\x15\n\x06org_id\x18\x01 \x01(\tR\x05orgId\x12\x0e\n\x02id\x18\x02 \x01(\tR\x02id\"\x1f\n\x1dUnbindDatasourceGroupResponse\"M\n\x1c\x43laimDatasourceDomainRequest\x12\x15\n\x06org_id\x18\x01 \x01(\tR\x05orgId\x12\x16\n\x06\x64omain\x18\x02 \x01(\tR\x06\x64omain\"c\n\x1d\x43laimDatasourceDomainResponse\x12\x42\n\x06\x64omain\x18\x01 \x01(\x0b\x32*.saas.accounts.v1.DatasourceVerifiedDomainR\x06\x64omain\"F\n\x1dVerifyDatasourceDomainRequest\x12\x15\n\x06org_id\x18\x01 \x01(\tR\x05orgId\x12\x0e\n\x02id\x18\x02 \x01(\tR\x02id\"d\n\x1eVerifyDatasourceDomainResponse\x12\x42\n\x06\x64omain\x18\x01 \x01(\x0b\x32*.saas.accounts.v1.DatasourceVerifiedDomainR\x06\x64omain\"F\n\x1d\x44\x65leteDatasourceDomainRequest\x12\x15\n\x06org_id\x18\x01 \x01(\tR\x05orgId\x12\x0e\n\x02id\x18\x02 \x01(\tR\x02id\" \n\x1e\x44\x65leteDatasourceDomainResponse*\xb7\x01\n\x12\x44\x61tasourceProvider\x12#\n\x1f\x44\x41TASOURCE_PROVIDER_UNSPECIFIED\x10\x00\x12\x1e\n\x1a\x44\x41TASOURCE_PROVIDER_GITHUB\x10\x01\x12\x1b\n\x17\x44\x41TASOURCE_PROVIDER_API\x10\x02\x12\x1f\n\x1b\x44\x41TASOURCE_PROVIDER_CRAWLER\x10\x03\x12\x1e\n\x1a\x44\x41TASOURCE_PROVIDER_UPLOAD\x10\x04*\x91\x01\n\x10\x44\x61tasourceStatus\x12!\n\x1d\x44\x41TASOURCE_STATUS_UNSPECIFIED\x10\x00\x12\x1c\n\x18\x44\x41TASOURCE_STATUS_ACTIVE\x10\x01\x12\x1c\n\x18\x44\x41TASOURCE_STATUS_PAUSED\x10\x02\x12\x1e\n\x1a\x44\x41TASOURCE_STATUS_DEGRADED\x10\x03*\xd6\x01\n\x11\x41piCredentialKind\x12#\n\x1f\x41PI_CREDENTIAL_KIND_UNSPECIFIED\x10\x00\x12\x1e\n\x1a\x41PI_CREDENTIAL_KIND_BEARER\x10\x01\x12\x1d\n\x19\x41PI_CREDENTIAL_KIND_BASIC\x10\x02\x12\x1e\n\x1a\x41PI_CREDENTIAL_KIND_HEADER\x10\x03\x12\x1d\n\x19\x41PI_CREDENTIAL_KIND_QUERY\x10\x04\x12\x1e\n\x1a\x41PI_CREDENTIAL_KIND_OAUTH2\x10\x05*\xa6\x02\n\x1c\x44\x61tasourceConnectorInterface\x12.\n*DATASOURCE_CONNECTOR_INTERFACE_UNSPECIFIED\x10\x00\x12(\n$DATASOURCE_CONNECTOR_INTERFACE_FILES\x10\x01\x12(\n$DATASOURCE_CONNECTOR_INTERFACE_PAGES\x10\x02\x12*\n&DATASOURCE_CONNECTOR_INTERFACE_RECORDS\x10\x03\x12+\n\'DATASOURCE_CONNECTOR_INTERFACE_MESSAGES\x10\x04\x12)\n%DATASOURCE_CONNECTOR_INTERFACE_EVENTS\x10\x05*\xec\x01\n\x18\x44\x61tasourceCredentialMode\x12*\n&DATASOURCE_CREDENTIAL_MODE_UNSPECIFIED\x10\x00\x12#\n\x1f\x44\x41TASOURCE_CREDENTIAL_MODE_NONE\x10\x01\x12&\n\"DATASOURCE_CREDENTIAL_MODE_ORG_APP\x10\x02\x12)\n%DATASOURCE_CREDENTIAL_MODE_USER_OAUTH\x10\x03\x12,\n(DATASOURCE_CREDENTIAL_MODE_STATIC_SECRET\x10\x04*\x97\x01\n\x16\x44\x61tasourceReadersModel\x12(\n$DATASOURCE_READERS_MODEL_UNSPECIFIED\x10\x00\x12*\n&DATASOURCE_READERS_MODEL_SOURCE_SCOPED\x10\x01\x12\'\n#DATASOURCE_READERS_MODEL_TRANSLATED\x10\x02*\xee\x01\n\x0fSourceSyncPhase\x12!\n\x1dSOURCE_SYNC_PHASE_UNSPECIFIED\x10\x00\x12\x1c\n\x18SOURCE_SYNC_PHASE_QUEUED\x10\x01\x12\x1e\n\x1aSOURCE_SYNC_PHASE_FETCHING\x10\x02\x12\x1e\n\x1aSOURCE_SYNC_PHASE_COMPILED\x10\x03\x12 \n\x1cSOURCE_SYNC_PHASE_HANDED_OFF\x10\x04\x12\x1a\n\x16SOURCE_SYNC_PHASE_DONE\x10\x05\x12\x1c\n\x18SOURCE_SYNC_PHASE_FAILED\x10\x06*\xa6\x03\n\x17SourceSyncFailureReason\x12*\n&SOURCE_SYNC_FAILURE_REASON_UNSPECIFIED\x10\x00\x12+\n\'SOURCE_SYNC_FAILURE_REASON_RATE_LIMITED\x10\x01\x12)\n%SOURCE_SYNC_FAILURE_REASON_CREDENTIAL\x10\x02\x12,\n(SOURCE_SYNC_FAILURE_REASON_ACCESS_DENIED\x10\x03\x12(\n$SOURCE_SYNC_FAILURE_REASON_NOT_FOUND\x10\x04\x12(\n$SOURCE_SYNC_FAILURE_REASON_TOO_LARGE\x10\x05\x12/\n+SOURCE_SYNC_FAILURE_REASON_HOST_UNAVAILABLE\x10\x06\x12$\n SOURCE_SYNC_FAILURE_REASON_OTHER\x10\x07\x12.\n*SOURCE_SYNC_FAILURE_REASON_DELIVERY_FAILED\x10\x08*\x9c\x01\n\x11SourceSyncTrigger\x12#\n\x1fSOURCE_SYNC_TRIGGER_UNSPECIFIED\x10\x00\x12\x1e\n\x1aSOURCE_SYNC_TRIGGER_MANUAL\x10\x01\x12!\n\x1dSOURCE_SYNC_TRIGGER_SCHEDULED\x10\x02\x12\x1f\n\x1bSOURCE_SYNC_TRIGGER_WEBHOOK\x10\x03*\x8f\x01\n\x16\x44\x61tasourceDomainStatus\x12(\n$DATASOURCE_DOMAIN_STATUS_UNSPECIFIED\x10\x00\x12$\n DATASOURCE_DOMAIN_STATUS_PENDING\x10\x01\x12%\n!DATASOURCE_DOMAIN_STATUS_VERIFIED\x10\x02\x32\xa2\x13\n\x11\x44\x61tasourceService\x12\x66\n\x0f\x41\x64\x64GitHubSource\x12(.saas.accounts.v1.AddGitHubSourceRequest\x1a).saas.accounts.v1.AddGitHubSourceResponse\x12T\n\tAddSource\x12\".saas.accounts.v1.AddSourceRequest\x1a#.saas.accounts.v1.AddSourceResponse\x12u\n\x14GetDatasourceCatalog\x12-.saas.accounts.v1.GetDatasourceCatalogRequest\x1a..saas.accounts.v1.GetDatasourceCatalogResponse\x12Z\n\x0bListSources\x12$.saas.accounts.v1.ListSourcesRequest\x1a%.saas.accounts.v1.ListSourcesResponse\x12T\n\tGetSource\x12\".saas.accounts.v1.GetSourceRequest\x1a#.saas.accounts.v1.GetSourceResponse\x12W\n\nSyncSource\x12#.saas.accounts.v1.SyncSourceRequest\x1a$.saas.accounts.v1.SyncSourceResponse\x12`\n\rGetSourceSync\x12&.saas.accounts.v1.GetSourceSyncRequest\x1a\'.saas.accounts.v1.GetSourceSyncResponse\x12]\n\x0c\x44\x65leteSource\x12%.saas.accounts.v1.DeleteSourceRequest\x1a&.saas.accounts.v1.DeleteSourceResponse\x12r\n\x13\x42\x65ginGitHubAppSetup\x12,.saas.accounts.v1.BeginGitHubAppSetupRequest\x1a-.saas.accounts.v1.BeginGitHubAppSetupResponse\x12{\n\x16\x43ompleteGitHubAppSetup\x12/.saas.accounts.v1.CompleteGitHubAppSetupRequest\x1a\x30.saas.accounts.v1.CompleteGitHubAppSetupResponse\x12\x81\x01\n\x18MigrateGitHubSourceToApp\x12\x31.saas.accounts.v1.MigrateGitHubSourceToAppRequest\x1a\x32.saas.accounts.v1.MigrateGitHubSourceToAppResponse\x12\x87\x01\n\x1a\x42\x65ginDatasourceAccountLink\x12\x33.saas.accounts.v1.BeginDatasourceAccountLinkRequest\x1a\x34.saas.accounts.v1.BeginDatasourceAccountLinkResponse\x12\x90\x01\n\x1d\x43ompleteDatasourceAccountLink\x12\x36.saas.accounts.v1.CompleteDatasourceAccountLinkRequest\x1a\x37.saas.accounts.v1.CompleteDatasourceAccountLinkResponse\x12\x8d\x01\n\x1cListMyDatasourceAccountLinks\x12\x35.saas.accounts.v1.ListMyDatasourceAccountLinksRequest\x1a\x36.saas.accounts.v1.ListMyDatasourceAccountLinksResponse\x12\x8a\x01\n\x1b\x44\x65leteDatasourceAccountLink\x12\x34.saas.accounts.v1.DeleteDatasourceAccountLinkRequest\x1a\x35.saas.accounts.v1.DeleteDatasourceAccountLinkResponse\x12{\n\x16GetDatasourceDirectory\x12/.saas.accounts.v1.GetDatasourceDirectoryRequest\x1a\x30.saas.accounts.v1.GetDatasourceDirectoryResponse\x12r\n\x13\x42indDatasourceGroup\x12,.saas.accounts.v1.BindDatasourceGroupRequest\x1a-.saas.accounts.v1.BindDatasourceGroupResponse\x12x\n\x15UnbindDatasourceGroup\x12..saas.accounts.v1.UnbindDatasourceGroupRequest\x1a/.saas.accounts.v1.UnbindDatasourceGroupResponse\x12x\n\x15\x43laimDatasourceDomain\x12..saas.accounts.v1.ClaimDatasourceDomainRequest\x1a/.saas.accounts.v1.ClaimDatasourceDomainResponse\x12{\n\x16VerifyDatasourceDomain\x12/.saas.accounts.v1.VerifyDatasourceDomainRequest\x1a\x30.saas.accounts.v1.VerifyDatasourceDomainResponse\x12{\n\x16\x44\x65leteDatasourceDomain\x12/.saas.accounts.v1.DeleteDatasourceDomainRequest\x1a\x30.saas.accounts.v1.DeleteDatasourceDomainResponseB\x89\x01\n\x14\x63om.saas.accounts.v1B\x0f\x44\x61tasourceProtoP\x01\xa2\x02\x03SAX\xaa\x02\x10Saas.Accounts.V1\xca\x02\x10Saas\\Accounts\\V1\xe2\x02\x1cSaas\\Accounts\\V1\\GPBMetadata\xea\x02\x12Saas::Accounts::V1b\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!saas/accounts/v1/datasource.proto\x12\x10saas.accounts.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x18saas_sdk/_gen/jobs.proto\"\x83\x01\n\x16GitHubDatasourceConfig\x12\x12\n\x04repo\x18\x01 \x01(\tR\x04repo\x12\x14\n\x05paths\x18\x02 \x03(\tR\x05paths\x12\x16\n\x06\x62ranch\x18\x03 \x01(\tR\x06\x62ranch\x12\'\n\x0f\x66ile_extensions\x18\x04 \x03(\tR\x0e\x66ileExtensions\"c\n\x0f\x41piOAuth2Config\x12\x1b\n\ttoken_url\x18\x01 \x01(\tR\x08tokenUrl\x12\x1b\n\tclient_id\x18\x02 \x01(\tR\x08\x63lientId\x12\x16\n\x06scopes\x18\x03 \x03(\tR\x06scopes\"\xc1\x02\n\x13\x41piDatasourceConfig\x12\x19\n\x08\x62\x61se_url\x18\x01 \x01(\tR\x07\x62\x61seUrl\x12#\n\rresource_path\x18\x02 \x01(\tR\x0cresourcePath\x12L\n\x0f\x63redential_kind\x18\x03 \x01(\x0e\x32#.saas.accounts.v1.ApiCredentialKindR\x0e\x63redentialKind\x12+\n\x11\x63redential_header\x18\x04 \x01(\tR\x10\x63redentialHeader\x12\x34\n\x16\x63redential_query_param\x18\x05 \x01(\tR\x14\x63redentialQueryParam\x12\x39\n\x06oauth2\x18\x06 \x01(\x0b\x32!.saas.accounts.v1.ApiOAuth2ConfigR\x06oauth2\"W\n\x17\x43rawlerDatasourceConfig\x12\x1f\n\x0bsitemap_url\x18\x01 \x01(\tR\nsitemapUrl\x12\x1b\n\tmax_pages\x18\x02 \x01(\rR\x08maxPages\"\xc1\x01\n\x16UploadDatasourceConfig\x12\x1a\n\x08\x65ndpoint\x18\x01 \x01(\tR\x08\x65ndpoint\x12\x16\n\x06region\x18\x02 \x01(\tR\x06region\x12\x16\n\x06\x62ucket\x18\x03 \x01(\tR\x06\x62ucket\x12\x16\n\x06prefix\x18\x04 \x01(\tR\x06prefix\x12\"\n\raccess_key_id\x18\x05 \x01(\tR\x0b\x61\x63\x63\x65ssKeyId\x12\x1f\n\x0bmax_objects\x18\x06 \x01(\rR\nmaxObjects\"\xea\x07\n\nDatasource\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x15\n\x06org_id\x18\x02 \x01(\tR\x05orgId\x12@\n\x08provider\x18\x03 \x01(\x0e\x32$.saas.accounts.v1.DatasourceProviderR\x08provider\x12@\n\x06github\x18\x05 \x01(\x0b\x32(.saas.accounts.v1.GitHubDatasourceConfigR\x06github\x12:\n\x06status\x18\x06 \x01(\x0e\x32\".saas.accounts.v1.DatasourceStatusR\x06status\x12-\n\x12webhook_configured\x18\x07 \x01(\x08R\x11webhookConfigured\x12\x39\n\ncreated_at\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tcreatedAt\x12\x39\n\nupdated_at\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tupdatedAt\x12@\n\x0elast_synced_at\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x0clastSyncedAt\x12\x37\n\x03\x61pi\x18\x0b \x01(\x0b\x32%.saas.accounts.v1.ApiDatasourceConfigR\x03\x61pi\x12\x43\n\x07\x63rawler\x18\x0c \x01(\x0b\x32).saas.accounts.v1.CrawlerDatasourceConfigR\x07\x63rawler\x12@\n\x06upload\x18\r \x01(\x0b\x32(.saas.accounts.v1.UploadDatasourceConfigR\x06upload\x12(\n\x10\x62oundary_node_id\x18\x0e \x01(\tR\x0e\x62oundaryNodeId\x12\x44\n\x10last_ingested_at\x18\x0f \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x0elastIngestedAt\x12\x30\n\x14last_ingested_commit\x18\x10 \x01(\tR\x12lastIngestedCommit\x12#\n\rstatus_reason\x18\x11 \x01(\tR\x0cstatusReason\x12%\n\x0e\x62oundary_label\x18\x12 \x01(\tR\rboundaryLabel\x12\x1e\n\nconformant\x18\x13 \x01(\x08R\nconformant\x12\'\n\x0f\x63onformance_gap\x18\x14 \x01(\tR\x0e\x63onformanceGapJ\x04\x08\x04\x10\x05R\x11target_collection\"\xe9\x02\n\x16\x41\x64\x64GitHubSourceRequest\x12\x15\n\x06org_id\x18\x01 \x01(\tR\x05orgId\x12\x12\n\x04repo\x18\x02 \x01(\tR\x04repo\x12\x14\n\x05paths\x18\x03 \x03(\tR\x05paths\x12\x16\n\x06\x62ranch\x18\x04 \x01(\tR\x06\x62ranch\x12*\n\x10\x62oundary_node_id\x18\x08 \x01(\tH\x00R\x0e\x62oundaryNodeId\x12+\n\x10\x63ollection_label\x18\t \x01(\tH\x00R\x0f\x63ollectionLabel\x12!\n\x0c\x61\x63\x63\x65ss_token\x18\x06 \x01(\tR\x0b\x61\x63\x63\x65ssToken\x12%\n\x0ewebhook_secret\x18\x07 \x01(\tR\rwebhookSecret\x12\'\n\x0f\x66ile_extensions\x18\n \x03(\tR\x0e\x66ileExtensionsB\x11\n\x08\x62oundary\x12\x05\xbaH\x02\x08\x01J\x04\x08\x05\x10\x06R\x11target_collection\"W\n\x17\x41\x64\x64GitHubSourceResponse\x12<\n\ndatasource\x18\x01 \x01(\x0b\x32\x1c.saas.accounts.v1.DatasourceR\ndatasource\"\xfd\x04\n\x10\x41\x64\x64SourceRequest\x12\x15\n\x06org_id\x18\x01 \x01(\tR\x05orgId\x12@\n\x08provider\x18\x02 \x01(\x0e\x32$.saas.accounts.v1.DatasourceProviderR\x08provider\x12\x42\n\x06github\x18\x04 \x01(\x0b\x32(.saas.accounts.v1.GitHubDatasourceConfigH\x00R\x06github\x12\x39\n\x03\x61pi\x18\x05 \x01(\x0b\x32%.saas.accounts.v1.ApiDatasourceConfigH\x00R\x03\x61pi\x12\x45\n\x07\x63rawler\x18\x08 \x01(\x0b\x32).saas.accounts.v1.CrawlerDatasourceConfigH\x00R\x07\x63rawler\x12\x42\n\x06upload\x18\t \x01(\x0b\x32(.saas.accounts.v1.UploadDatasourceConfigH\x00R\x06upload\x12*\n\x10\x62oundary_node_id\x18\x0c \x01(\tH\x01R\x0e\x62oundaryNodeId\x12+\n\x10\x63ollection_label\x18\r \x01(\tH\x01R\x0f\x63ollectionLabel\x12\x1e\n\ncredential\x18\x06 \x01(\tR\ncredential\x12%\n\x0ewebhook_secret\x18\x07 \x01(\tR\rwebhookSecret\x12\x30\n\x14oauth2_client_secret\x18\n \x01(\tR\x12oauth2ClientSecretB\x08\n\x06\x63onfigB\x11\n\x08\x62oundary\x12\x05\xbaH\x02\x08\x01J\x04\x08\x03\x10\x04R\x11target_collection\"Q\n\x11\x41\x64\x64SourceResponse\x12<\n\ndatasource\x18\x01 \x01(\x0b\x32\x1c.saas.accounts.v1.DatasourceR\ndatasource\"|\n\x15\x44\x61tasourceConfigField\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12!\n\x0c\x64isplay_name\x18\x02 \x01(\tR\x0b\x64isplayName\x12\x12\n\x04help\x18\x03 \x01(\tR\x04help\x12\x1a\n\x08required\x18\x04 \x01(\x08R\x08required\"\xb0\x02\n\x19\x44\x61tasourceConnectorBudget\x12+\n\x12max_items_per_call\x18\x01 \x01(\rR\x0fmaxItemsPerCall\x12+\n\x12max_bytes_per_call\x18\x02 \x01(\x03R\x0fmaxBytesPerCall\x12$\n\x0emax_item_bytes\x18\x03 \x01(\x03R\x0cmaxItemBytes\x12\x32\n\x15operations_per_window\x18\x04 \x01(\rR\x13operationsPerWindow\x12%\n\x0ewindow_seconds\x18\x05 \x01(\x03R\rwindowSeconds\x12\x38\n\x18\x62\x61\x63kground_share_percent\x18\x06 \x01(\rR\x16\x62\x61\x63kgroundSharePercent\"\xd1\x06\n\x1c\x44\x61tasourceProviderDescriptor\x12@\n\x08provider\x18\x01 \x01(\x0e\x32$.saas.accounts.v1.DatasourceProviderR\x08provider\x12!\n\x0c\x64isplay_name\x18\x02 \x01(\tR\x0b\x64isplayName\x12 \n\x0b\x64\x65scription\x18\x03 \x01(\tR\x0b\x64\x65scription\x12L\n\rconfig_fields\x18\x04 \x03(\x0b\x32\'.saas.accounts.v1.DatasourceConfigFieldR\x0c\x63onfigFields\x12)\n\x10supports_webhook\x18\x05 \x01(\x08R\x0fsupportsWebhook\x12\x61\n\x1asupported_credential_kinds\x18\x06 \x03(\x0e\x32#.saas.accounts.v1.ApiCredentialKindR\x18supportedCredentialKinds\x12\x1c\n\tconnector\x18\x07 \x01(\tR\tconnector\x12L\n\tinterface\x18\x08 \x01(\x0e\x32..saas.accounts.v1.DatasourceConnectorInterfaceR\tinterface\x12U\n\x10\x63redential_modes\x18\t \x03(\x0e\x32*.saas.accounts.v1.DatasourceCredentialModeR\x0f\x63redentialModes\x12M\n\rreaders_model\x18\n \x01(\x0e\x32(.saas.accounts.v1.DatasourceReadersModelR\x0creadersModel\x12\x43\n\x06\x62udget\x18\x0b \x01(\x0b\x32+.saas.accounts.v1.DatasourceConnectorBudgetR\x06\x62udget\x12\x1e\n\nconformant\x18\x0c \x01(\x08R\nconformant\x12\'\n\x0f\x63onformance_gap\x18\r \x01(\tR\x0e\x63onformanceGap\x12.\n\x13\x61\x63\x63\x65pts_new_sources\x18\x0e \x01(\x08R\x11\x61\x63\x63\x65ptsNewSources\"\x1d\n\x1bGetDatasourceCatalogRequest\"l\n\x1cGetDatasourceCatalogResponse\x12L\n\tproviders\x18\x01 \x03(\x0b\x32..saas.accounts.v1.DatasourceProviderDescriptorR\tproviders\"+\n\x12ListSourcesRequest\x12\x15\n\x06org_id\x18\x01 \x01(\tR\x05orgId\"U\n\x13ListSourcesResponse\x12>\n\x0b\x64\x61tasources\x18\x01 \x03(\x0b\x32\x1c.saas.accounts.v1.DatasourceR\x0b\x64\x61tasources\"9\n\x10GetSourceRequest\x12\x15\n\x06org_id\x18\x01 \x01(\tR\x05orgId\x12\x0e\n\x02id\x18\x02 \x01(\tR\x02id\"Q\n\x11GetSourceResponse\x12<\n\ndatasource\x18\x01 \x01(\x0b\x32\x1c.saas.accounts.v1.DatasourceR\ndatasource\"]\n\x11SyncSourceRequest\x12\x15\n\x06org_id\x18\x01 \x01(\tR\x05orgId\x12\x0e\n\x02id\x18\x02 \x01(\tR\x02id\x12!\n\x0c\x61\x63\x63\x65ss_token\x18\x03 \x01(\tR\x0b\x61\x63\x63\x65ssToken\"+\n\x12SyncSourceResponse\x12\x15\n\x06job_id\x18\x01 \x01(\tR\x05jobId\"a\n\x14GetSourceSyncRequest\x12\x15\n\x06org_id\x18\x01 \x01(\tR\x05orgId\x12\x1b\n\tsource_id\x18\x02 \x01(\tR\x08sourceId\x12\x15\n\x06job_id\x18\x03 \x01(\tR\x05jobId\"\x9c\x01\n\x12SourceSyncDelivery\x12\x15\n\x06job_id\x18\x01 \x01(\tR\x05jobId\x12,\n\x05state\x18\x02 \x01(\x0e\x32\x16.saas.jobs.v1.JobStateR\x05state\x12\x41\n\texecution\x18\x03 \x01(\x0b\x32#.saas.jobs.v1.JobExecutionReferenceR\texecution\"\xca\x01\n\x11SourceSyncChanges\x12\x14\n\x05\x66iles\x18\x01 \x01(\rR\x05\x66iles\x12\x14\n\x05\x61\x64\x64\x65\x64\x18\x02 \x01(\rR\x05\x61\x64\x64\x65\x64\x12\x1a\n\x08modified\x18\x03 \x01(\rR\x08modified\x12\x18\n\x07\x64\x65leted\x18\x04 \x01(\rR\x07\x64\x65leted\x12\x1f\n\x0bsplit_known\x18\x05 \x01(\x08R\nsplitKnown\x12\x1a\n\x08snapshot\x18\x06 \x01(\x08R\x08snapshot\x12\x16\n\x06\x63ommit\x18\x07 \x01(\tR\x06\x63ommit\"\xd7\x01\n\x11SourceSyncFailure\x12\x41\n\x06reason\x18\x01 \x01(\x0e\x32).saas.accounts.v1.SourceSyncFailureReasonR\x06reason\x12\x12\n\x04\x63ode\x18\x02 \x01(\tR\x04\x63ode\x12\x18\n\x07message\x18\x03 \x01(\tR\x07message\x12\x1a\n\x08retrying\x18\x04 \x01(\x08R\x08retrying\x12\x35\n\x08retry_at\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x07retryAt\"\xf7\x04\n\x12SourceSyncProgress\x12\x37\n\x05phase\x18\x01 \x01(\x0e\x32!.saas.accounts.v1.SourceSyncPhaseR\x05phase\x12=\n\x07trigger\x18\x02 \x01(\x0e\x32#.saas.accounts.v1.SourceSyncTriggerR\x07trigger\x12\x37\n\tqueued_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x08queuedAt\x12;\n\x0b\x66\x65tching_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\nfetchingAt\x12;\n\x0b\x63ompiled_at\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\ncompiledAt\x12>\n\rhanded_off_at\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x0bhandedOffAt\x12;\n\x0b\x66inished_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\nfinishedAt\x12=\n\x07\x63hanges\x18\x08 \x01(\x0b\x32#.saas.accounts.v1.SourceSyncChangesR\x07\x63hanges\x12=\n\x07\x66\x61ilure\x18\t \x01(\x0b\x32#.saas.accounts.v1.SourceSyncFailureR\x07\x66\x61ilure\x12\x18\n\x07\x61ttempt\x18\n \x01(\rR\x07\x61ttempt\x12!\n\x0cmax_attempts\x18\x0b \x01(\rR\x0bmaxAttempts\"\xe4\x01\n\x15GetSourceSyncResponse\x12\x15\n\x06job_id\x18\x01 \x01(\tR\x05jobId\x12,\n\x05state\x18\x02 \x01(\x0e\x32\x16.saas.jobs.v1.JobStateR\x05state\x12\x44\n\ndeliveries\x18\x03 \x03(\x0b\x32$.saas.accounts.v1.SourceSyncDeliveryR\ndeliveries\x12@\n\x08progress\x18\x04 \x01(\x0b\x32$.saas.accounts.v1.SourceSyncProgressR\x08progress\"<\n\x13\x44\x65leteSourceRequest\x12\x15\n\x06org_id\x18\x01 \x01(\tR\x05orgId\x12\x0e\n\x02id\x18\x02 \x01(\tR\x02id\"\x16\n\x14\x44\x65leteSourceResponse\"}\n\x13GitHubAppRepository\x12\x12\n\x04repo\x18\x01 \x01(\tR\x04repo\x12%\n\x0e\x64\x65\x66\x61ult_branch\x18\x02 \x01(\tR\rdefaultBranch\x12+\n\x11\x61lready_connected\x18\x03 \x01(\x08R\x10\x61lreadyConnected\"3\n\x1a\x42\x65ginGitHubAppSetupRequest\x12\x15\n\x06org_id\x18\x01 \x01(\tR\x05orgId\"\x8f\x01\n\x1b\x42\x65ginGitHubAppSetupResponse\x12\x1f\n\x0binstall_url\x18\x01 \x01(\tR\ninstallUrl\x12\x14\n\x05state\x18\x02 \x01(\tR\x05state\x12\x39\n\nexpires_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\texpiresAt\"\x89\x01\n\x1d\x43ompleteGitHubAppSetupRequest\x12\x15\n\x06org_id\x18\x01 \x01(\tR\x05orgId\x12\x14\n\x05state\x18\x02 \x01(\tR\x05state\x12\'\n\x0finstallation_id\x18\x03 \x01(\tR\x0einstallationId\x12\x12\n\x04\x63ode\x18\x04 \x01(\tR\x04\x63ode\"\x94\x01\n\x1e\x43ompleteGitHubAppSetupResponse\x12\'\n\x0finstallation_id\x18\x01 \x01(\tR\x0einstallationId\x12I\n\x0crepositories\x18\x02 \x03(\x0b\x32%.saas.accounts.v1.GitHubAppRepositoryR\x0crepositories\"H\n\x1fMigrateGitHubSourceToAppRequest\x12\x15\n\x06org_id\x18\x01 \x01(\tR\x05orgId\x12\x0e\n\x02id\x18\x02 \x01(\tR\x02id\"`\n MigrateGitHubSourceToAppResponse\x12<\n\ndatasource\x18\x01 \x01(\x0b\x32\x1c.saas.accounts.v1.DatasourceR\ndatasource\"\x96\x02\n\x15\x44\x61tasourceAccountLink\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x15\n\x06org_id\x18\x02 \x01(\tR\x05orgId\x12\x17\n\x07user_id\x18\x03 \x01(\tR\x06userId\x12\x1c\n\tconnector\x18\x04 \x01(\tR\tconnector\x12.\n\x13provider_account_id\x18\x05 \x01(\tR\x11providerAccountId\x12\x34\n\x16provider_account_login\x18\x06 \x01(\tR\x14providerAccountLogin\x12\x39\n\ncreated_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tcreatedAt\"\xfc\x01\n\x16\x44\x61tasourceGroupBinding\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x15\n\x06org_id\x18\x02 \x01(\tR\x05orgId\x12\x1c\n\tconnector\x18\x03 \x01(\tR\tconnector\x12*\n\x11provider_group_id\x18\x04 \x01(\tR\x0fproviderGroupId\x12\x17\n\x07team_id\x18\x05 \x01(\tR\x06teamId\x12\x1d\n\ncreated_by\x18\x06 \x01(\tR\tcreatedBy\x12\x39\n\ncreated_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tcreatedAt\"\xe5\x02\n\x18\x44\x61tasourceVerifiedDomain\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x15\n\x06org_id\x18\x02 \x01(\tR\x05orgId\x12\x16\n\x06\x64omain\x18\x03 \x01(\tR\x06\x64omain\x12@\n\x06status\x18\x04 \x01(\x0e\x32(.saas.accounts.v1.DatasourceDomainStatusR\x06status\x12&\n\x0ftxt_record_name\x18\x05 \x01(\tR\rtxtRecordName\x12(\n\x10txt_record_value\x18\x06 \x01(\tR\x0etxtRecordValue\x12;\n\x0bverified_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\nverifiedAt\x12\x39\n\ncreated_at\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tcreatedAt\"=\n\x17\x44\x61tasourceDirectoryTeam\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\"{\n!BeginDatasourceAccountLinkRequest\x12\x15\n\x06org_id\x18\x01 \x01(\tR\x05orgId\x12\x1c\n\tconnector\x18\x02 \x01(\tR\tconnector\x12!\n\x0credirect_uri\x18\x03 \x01(\tR\x0bredirectUri\"\x9a\x01\n\"BeginDatasourceAccountLinkResponse\x12#\n\rauthorize_url\x18\x01 \x01(\tR\x0c\x61uthorizeUrl\x12\x14\n\x05state\x18\x02 \x01(\tR\x05state\x12\x39\n\nexpires_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\texpiresAt\"g\n$CompleteDatasourceAccountLinkRequest\x12\x15\n\x06org_id\x18\x01 \x01(\tR\x05orgId\x12\x14\n\x05state\x18\x02 \x01(\tR\x05state\x12\x12\n\x04\x63ode\x18\x03 \x01(\tR\x04\x63ode\"d\n%CompleteDatasourceAccountLinkResponse\x12;\n\x04link\x18\x01 \x01(\x0b\x32\'.saas.accounts.v1.DatasourceAccountLinkR\x04link\"<\n#ListMyDatasourceAccountLinksRequest\x12\x15\n\x06org_id\x18\x01 \x01(\tR\x05orgId\"e\n$ListMyDatasourceAccountLinksResponse\x12=\n\x05links\x18\x01 \x03(\x0b\x32\'.saas.accounts.v1.DatasourceAccountLinkR\x05links\"K\n\"DeleteDatasourceAccountLinkRequest\x12\x15\n\x06org_id\x18\x01 \x01(\tR\x05orgId\x12\x0e\n\x02id\x18\x02 \x01(\tR\x02id\"%\n#DeleteDatasourceAccountLinkResponse\"6\n\x1dGetDatasourceDirectoryRequest\x12\x15\n\x06org_id\x18\x01 \x01(\tR\x05orgId\"\xac\x02\n\x1eGetDatasourceDirectoryResponse\x12=\n\x05links\x18\x01 \x03(\x0b\x32\'.saas.accounts.v1.DatasourceAccountLinkR\x05links\x12\x44\n\x08\x62indings\x18\x02 \x03(\x0b\x32(.saas.accounts.v1.DatasourceGroupBindingR\x08\x62indings\x12\x44\n\x07\x64omains\x18\x03 \x03(\x0b\x32*.saas.accounts.v1.DatasourceVerifiedDomainR\x07\x64omains\x12?\n\x05teams\x18\x04 \x03(\x0b\x32).saas.accounts.v1.DatasourceDirectoryTeamR\x05teams\"\x96\x01\n\x1a\x42indDatasourceGroupRequest\x12\x15\n\x06org_id\x18\x01 \x01(\tR\x05orgId\x12\x1c\n\tconnector\x18\x02 \x01(\tR\tconnector\x12*\n\x11provider_group_id\x18\x03 \x01(\tR\x0fproviderGroupId\x12\x17\n\x07team_id\x18\x04 \x01(\tR\x06teamId\"a\n\x1b\x42indDatasourceGroupResponse\x12\x42\n\x07\x62inding\x18\x01 \x01(\x0b\x32(.saas.accounts.v1.DatasourceGroupBindingR\x07\x62inding\"E\n\x1cUnbindDatasourceGroupRequest\x12\x15\n\x06org_id\x18\x01 \x01(\tR\x05orgId\x12\x0e\n\x02id\x18\x02 \x01(\tR\x02id\"\x1f\n\x1dUnbindDatasourceGroupResponse\"M\n\x1c\x43laimDatasourceDomainRequest\x12\x15\n\x06org_id\x18\x01 \x01(\tR\x05orgId\x12\x16\n\x06\x64omain\x18\x02 \x01(\tR\x06\x64omain\"c\n\x1d\x43laimDatasourceDomainResponse\x12\x42\n\x06\x64omain\x18\x01 \x01(\x0b\x32*.saas.accounts.v1.DatasourceVerifiedDomainR\x06\x64omain\"F\n\x1dVerifyDatasourceDomainRequest\x12\x15\n\x06org_id\x18\x01 \x01(\tR\x05orgId\x12\x0e\n\x02id\x18\x02 \x01(\tR\x02id\"d\n\x1eVerifyDatasourceDomainResponse\x12\x42\n\x06\x64omain\x18\x01 \x01(\x0b\x32*.saas.accounts.v1.DatasourceVerifiedDomainR\x06\x64omain\"F\n\x1d\x44\x65leteDatasourceDomainRequest\x12\x15\n\x06org_id\x18\x01 \x01(\tR\x05orgId\x12\x0e\n\x02id\x18\x02 \x01(\tR\x02id\" \n\x1e\x44\x65leteDatasourceDomainResponse\"\xf7\x02\n\x10SourceDelegation\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x1b\n\tsource_id\x18\x02 \x01(\tR\x08sourceId\x12!\n\x0cprincipal_id\x18\x03 \x01(\tR\x0bprincipalId\x12\x16\n\x06module\x18\x04 \x01(\tR\x06module\x12\x18\n\x07\x62inding\x18\x05 \x01(\tR\x07\x62inding\x12\x39\n\ncreated_at\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tcreatedAt\x12\x39\n\nrevoked_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\trevokedAt\x12L\n\nrevocation\x18\x08 \x01(\x0e\x32,.saas.accounts.v1.SourceDelegationRevocationR\nrevocation\x12\x1d\n\nrevoked_by\x18\t \x01(\tR\trevokedBy\"\x8e\x01\n\x1cListSourceDelegationsRequest\x12\x15\n\x06org_id\x18\x01 \x01(\tR\x05orgId\x12 \n\tsource_id\x18\x02 \x01(\tH\x00R\x08sourceId\x88\x01\x01\x12\'\n\x0finclude_revoked\x18\x03 \x01(\x08R\x0eincludeRevokedB\x0c\n\n_source_id\"e\n\x1dListSourceDelegationsResponse\x12\x44\n\x0b\x64\x65legations\x18\x01 \x03(\x0b\x32\".saas.accounts.v1.SourceDelegationR\x0b\x64\x65legations\"F\n\x1dRevokeSourceDelegationRequest\x12\x15\n\x06org_id\x18\x01 \x01(\tR\x05orgId\x12\x0e\n\x02id\x18\x02 \x01(\tR\x02id\"d\n\x1eRevokeSourceDelegationResponse\x12\x42\n\ndelegation\x18\x01 \x01(\x0b\x32\".saas.accounts.v1.SourceDelegationR\ndelegation*\xb7\x01\n\x12\x44\x61tasourceProvider\x12#\n\x1f\x44\x41TASOURCE_PROVIDER_UNSPECIFIED\x10\x00\x12\x1e\n\x1a\x44\x41TASOURCE_PROVIDER_GITHUB\x10\x01\x12\x1b\n\x17\x44\x41TASOURCE_PROVIDER_API\x10\x02\x12\x1f\n\x1b\x44\x41TASOURCE_PROVIDER_CRAWLER\x10\x03\x12\x1e\n\x1a\x44\x41TASOURCE_PROVIDER_UPLOAD\x10\x04*\x91\x01\n\x10\x44\x61tasourceStatus\x12!\n\x1d\x44\x41TASOURCE_STATUS_UNSPECIFIED\x10\x00\x12\x1c\n\x18\x44\x41TASOURCE_STATUS_ACTIVE\x10\x01\x12\x1c\n\x18\x44\x41TASOURCE_STATUS_PAUSED\x10\x02\x12\x1e\n\x1a\x44\x41TASOURCE_STATUS_DEGRADED\x10\x03*\xd6\x01\n\x11\x41piCredentialKind\x12#\n\x1f\x41PI_CREDENTIAL_KIND_UNSPECIFIED\x10\x00\x12\x1e\n\x1a\x41PI_CREDENTIAL_KIND_BEARER\x10\x01\x12\x1d\n\x19\x41PI_CREDENTIAL_KIND_BASIC\x10\x02\x12\x1e\n\x1a\x41PI_CREDENTIAL_KIND_HEADER\x10\x03\x12\x1d\n\x19\x41PI_CREDENTIAL_KIND_QUERY\x10\x04\x12\x1e\n\x1a\x41PI_CREDENTIAL_KIND_OAUTH2\x10\x05*\xa6\x02\n\x1c\x44\x61tasourceConnectorInterface\x12.\n*DATASOURCE_CONNECTOR_INTERFACE_UNSPECIFIED\x10\x00\x12(\n$DATASOURCE_CONNECTOR_INTERFACE_FILES\x10\x01\x12(\n$DATASOURCE_CONNECTOR_INTERFACE_PAGES\x10\x02\x12*\n&DATASOURCE_CONNECTOR_INTERFACE_RECORDS\x10\x03\x12+\n\'DATASOURCE_CONNECTOR_INTERFACE_MESSAGES\x10\x04\x12)\n%DATASOURCE_CONNECTOR_INTERFACE_EVENTS\x10\x05*\xec\x01\n\x18\x44\x61tasourceCredentialMode\x12*\n&DATASOURCE_CREDENTIAL_MODE_UNSPECIFIED\x10\x00\x12#\n\x1f\x44\x41TASOURCE_CREDENTIAL_MODE_NONE\x10\x01\x12&\n\"DATASOURCE_CREDENTIAL_MODE_ORG_APP\x10\x02\x12)\n%DATASOURCE_CREDENTIAL_MODE_USER_OAUTH\x10\x03\x12,\n(DATASOURCE_CREDENTIAL_MODE_STATIC_SECRET\x10\x04*\x97\x01\n\x16\x44\x61tasourceReadersModel\x12(\n$DATASOURCE_READERS_MODEL_UNSPECIFIED\x10\x00\x12*\n&DATASOURCE_READERS_MODEL_SOURCE_SCOPED\x10\x01\x12\'\n#DATASOURCE_READERS_MODEL_TRANSLATED\x10\x02*\xee\x01\n\x0fSourceSyncPhase\x12!\n\x1dSOURCE_SYNC_PHASE_UNSPECIFIED\x10\x00\x12\x1c\n\x18SOURCE_SYNC_PHASE_QUEUED\x10\x01\x12\x1e\n\x1aSOURCE_SYNC_PHASE_FETCHING\x10\x02\x12\x1e\n\x1aSOURCE_SYNC_PHASE_COMPILED\x10\x03\x12 \n\x1cSOURCE_SYNC_PHASE_HANDED_OFF\x10\x04\x12\x1a\n\x16SOURCE_SYNC_PHASE_DONE\x10\x05\x12\x1c\n\x18SOURCE_SYNC_PHASE_FAILED\x10\x06*\xa6\x03\n\x17SourceSyncFailureReason\x12*\n&SOURCE_SYNC_FAILURE_REASON_UNSPECIFIED\x10\x00\x12+\n\'SOURCE_SYNC_FAILURE_REASON_RATE_LIMITED\x10\x01\x12)\n%SOURCE_SYNC_FAILURE_REASON_CREDENTIAL\x10\x02\x12,\n(SOURCE_SYNC_FAILURE_REASON_ACCESS_DENIED\x10\x03\x12(\n$SOURCE_SYNC_FAILURE_REASON_NOT_FOUND\x10\x04\x12(\n$SOURCE_SYNC_FAILURE_REASON_TOO_LARGE\x10\x05\x12/\n+SOURCE_SYNC_FAILURE_REASON_HOST_UNAVAILABLE\x10\x06\x12$\n SOURCE_SYNC_FAILURE_REASON_OTHER\x10\x07\x12.\n*SOURCE_SYNC_FAILURE_REASON_DELIVERY_FAILED\x10\x08*\x9c\x01\n\x11SourceSyncTrigger\x12#\n\x1fSOURCE_SYNC_TRIGGER_UNSPECIFIED\x10\x00\x12\x1e\n\x1aSOURCE_SYNC_TRIGGER_MANUAL\x10\x01\x12!\n\x1dSOURCE_SYNC_TRIGGER_SCHEDULED\x10\x02\x12\x1f\n\x1bSOURCE_SYNC_TRIGGER_WEBHOOK\x10\x03*\x8f\x01\n\x16\x44\x61tasourceDomainStatus\x12(\n$DATASOURCE_DOMAIN_STATUS_UNSPECIFIED\x10\x00\x12$\n DATASOURCE_DOMAIN_STATUS_PENDING\x10\x01\x12%\n!DATASOURCE_DOMAIN_STATUS_VERIFIED\x10\x02*\x95\x03\n\x1aSourceDelegationRevocation\x12,\n(SOURCE_DELEGATION_REVOCATION_UNSPECIFIED\x10\x00\x12(\n$SOURCE_DELEGATION_REVOCATION_REVOKED\x10\x01\x12)\n%SOURCE_DELEGATION_REVOCATION_REPLACED\x10\x02\x12/\n+SOURCE_DELEGATION_REVOCATION_SOURCE_DELETED\x10\x03\x12/\n+SOURCE_DELEGATION_REVOCATION_MEMBER_REMOVED\x10\x04\x12\x30\n,SOURCE_DELEGATION_REVOCATION_PERMISSION_LOST\x10\x05\x12.\n*SOURCE_DELEGATION_REVOCATION_USER_INACTIVE\x10\x06\x12\x30\n,SOURCE_DELEGATION_REVOCATION_BINDING_CHANGED\x10\x07\x32\x99\x15\n\x11\x44\x61tasourceService\x12\x66\n\x0f\x41\x64\x64GitHubSource\x12(.saas.accounts.v1.AddGitHubSourceRequest\x1a).saas.accounts.v1.AddGitHubSourceResponse\x12T\n\tAddSource\x12\".saas.accounts.v1.AddSourceRequest\x1a#.saas.accounts.v1.AddSourceResponse\x12u\n\x14GetDatasourceCatalog\x12-.saas.accounts.v1.GetDatasourceCatalogRequest\x1a..saas.accounts.v1.GetDatasourceCatalogResponse\x12Z\n\x0bListSources\x12$.saas.accounts.v1.ListSourcesRequest\x1a%.saas.accounts.v1.ListSourcesResponse\x12T\n\tGetSource\x12\".saas.accounts.v1.GetSourceRequest\x1a#.saas.accounts.v1.GetSourceResponse\x12W\n\nSyncSource\x12#.saas.accounts.v1.SyncSourceRequest\x1a$.saas.accounts.v1.SyncSourceResponse\x12`\n\rGetSourceSync\x12&.saas.accounts.v1.GetSourceSyncRequest\x1a\'.saas.accounts.v1.GetSourceSyncResponse\x12]\n\x0c\x44\x65leteSource\x12%.saas.accounts.v1.DeleteSourceRequest\x1a&.saas.accounts.v1.DeleteSourceResponse\x12r\n\x13\x42\x65ginGitHubAppSetup\x12,.saas.accounts.v1.BeginGitHubAppSetupRequest\x1a-.saas.accounts.v1.BeginGitHubAppSetupResponse\x12{\n\x16\x43ompleteGitHubAppSetup\x12/.saas.accounts.v1.CompleteGitHubAppSetupRequest\x1a\x30.saas.accounts.v1.CompleteGitHubAppSetupResponse\x12\x81\x01\n\x18MigrateGitHubSourceToApp\x12\x31.saas.accounts.v1.MigrateGitHubSourceToAppRequest\x1a\x32.saas.accounts.v1.MigrateGitHubSourceToAppResponse\x12\x87\x01\n\x1a\x42\x65ginDatasourceAccountLink\x12\x33.saas.accounts.v1.BeginDatasourceAccountLinkRequest\x1a\x34.saas.accounts.v1.BeginDatasourceAccountLinkResponse\x12\x90\x01\n\x1d\x43ompleteDatasourceAccountLink\x12\x36.saas.accounts.v1.CompleteDatasourceAccountLinkRequest\x1a\x37.saas.accounts.v1.CompleteDatasourceAccountLinkResponse\x12\x8d\x01\n\x1cListMyDatasourceAccountLinks\x12\x35.saas.accounts.v1.ListMyDatasourceAccountLinksRequest\x1a\x36.saas.accounts.v1.ListMyDatasourceAccountLinksResponse\x12\x8a\x01\n\x1b\x44\x65leteDatasourceAccountLink\x12\x34.saas.accounts.v1.DeleteDatasourceAccountLinkRequest\x1a\x35.saas.accounts.v1.DeleteDatasourceAccountLinkResponse\x12{\n\x16GetDatasourceDirectory\x12/.saas.accounts.v1.GetDatasourceDirectoryRequest\x1a\x30.saas.accounts.v1.GetDatasourceDirectoryResponse\x12r\n\x13\x42indDatasourceGroup\x12,.saas.accounts.v1.BindDatasourceGroupRequest\x1a-.saas.accounts.v1.BindDatasourceGroupResponse\x12x\n\x15UnbindDatasourceGroup\x12..saas.accounts.v1.UnbindDatasourceGroupRequest\x1a/.saas.accounts.v1.UnbindDatasourceGroupResponse\x12x\n\x15\x43laimDatasourceDomain\x12..saas.accounts.v1.ClaimDatasourceDomainRequest\x1a/.saas.accounts.v1.ClaimDatasourceDomainResponse\x12{\n\x16VerifyDatasourceDomain\x12/.saas.accounts.v1.VerifyDatasourceDomainRequest\x1a\x30.saas.accounts.v1.VerifyDatasourceDomainResponse\x12{\n\x16\x44\x65leteDatasourceDomain\x12/.saas.accounts.v1.DeleteDatasourceDomainRequest\x1a\x30.saas.accounts.v1.DeleteDatasourceDomainResponse\x12x\n\x15ListSourceDelegations\x12..saas.accounts.v1.ListSourceDelegationsRequest\x1a/.saas.accounts.v1.ListSourceDelegationsResponse\x12{\n\x16RevokeSourceDelegation\x12/.saas.accounts.v1.RevokeSourceDelegationRequest\x1a\x30.saas.accounts.v1.RevokeSourceDelegationResponseB\x89\x01\n\x14\x63om.saas.accounts.v1B\x0f\x44\x61tasourceProtoP\x01\xa2\x02\x03SAX\xaa\x02\x10Saas.Accounts.V1\xca\x02\x10Saas\\Accounts\\V1\xe2\x02\x1cSaas\\Accounts\\V1\\GPBMetadata\xea\x02\x12Saas::Accounts::V1b\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -38,26 +38,28 @@ _globals['_ADDGITHUBSOURCEREQUEST'].oneofs_by_name['boundary']._serialized_options = b'\272H\002\010\001' _globals['_ADDSOURCEREQUEST'].oneofs_by_name['boundary']._loaded_options = None _globals['_ADDSOURCEREQUEST'].oneofs_by_name['boundary']._serialized_options = b'\272H\002\010\001' - _globals['_DATASOURCEPROVIDER']._serialized_start=10305 - _globals['_DATASOURCEPROVIDER']._serialized_end=10488 - _globals['_DATASOURCESTATUS']._serialized_start=10491 - _globals['_DATASOURCESTATUS']._serialized_end=10636 - _globals['_APICREDENTIALKIND']._serialized_start=10639 - _globals['_APICREDENTIALKIND']._serialized_end=10853 - _globals['_DATASOURCECONNECTORINTERFACE']._serialized_start=10856 - _globals['_DATASOURCECONNECTORINTERFACE']._serialized_end=11150 - _globals['_DATASOURCECREDENTIALMODE']._serialized_start=11153 - _globals['_DATASOURCECREDENTIALMODE']._serialized_end=11389 - _globals['_DATASOURCEREADERSMODEL']._serialized_start=11392 - _globals['_DATASOURCEREADERSMODEL']._serialized_end=11543 - _globals['_SOURCESYNCPHASE']._serialized_start=11546 - _globals['_SOURCESYNCPHASE']._serialized_end=11784 - _globals['_SOURCESYNCFAILUREREASON']._serialized_start=11787 - _globals['_SOURCESYNCFAILUREREASON']._serialized_end=12209 - _globals['_SOURCESYNCTRIGGER']._serialized_start=12212 - _globals['_SOURCESYNCTRIGGER']._serialized_end=12368 - _globals['_DATASOURCEDOMAINSTATUS']._serialized_start=12371 - _globals['_DATASOURCEDOMAINSTATUS']._serialized_end=12514 + _globals['_DATASOURCEPROVIDER']._serialized_start=11105 + _globals['_DATASOURCEPROVIDER']._serialized_end=11288 + _globals['_DATASOURCESTATUS']._serialized_start=11291 + _globals['_DATASOURCESTATUS']._serialized_end=11436 + _globals['_APICREDENTIALKIND']._serialized_start=11439 + _globals['_APICREDENTIALKIND']._serialized_end=11653 + _globals['_DATASOURCECONNECTORINTERFACE']._serialized_start=11656 + _globals['_DATASOURCECONNECTORINTERFACE']._serialized_end=11950 + _globals['_DATASOURCECREDENTIALMODE']._serialized_start=11953 + _globals['_DATASOURCECREDENTIALMODE']._serialized_end=12189 + _globals['_DATASOURCEREADERSMODEL']._serialized_start=12192 + _globals['_DATASOURCEREADERSMODEL']._serialized_end=12343 + _globals['_SOURCESYNCPHASE']._serialized_start=12346 + _globals['_SOURCESYNCPHASE']._serialized_end=12584 + _globals['_SOURCESYNCFAILUREREASON']._serialized_start=12587 + _globals['_SOURCESYNCFAILUREREASON']._serialized_end=13009 + _globals['_SOURCESYNCTRIGGER']._serialized_start=13012 + _globals['_SOURCESYNCTRIGGER']._serialized_end=13168 + _globals['_DATASOURCEDOMAINSTATUS']._serialized_start=13171 + _globals['_DATASOURCEDOMAINSTATUS']._serialized_end=13314 + _globals['_SOURCEDELEGATIONREVOCATION']._serialized_start=13317 + _globals['_SOURCEDELEGATIONREVOCATION']._serialized_end=13722 _globals['_GITHUBDATASOURCECONFIG']._serialized_start=115 _globals['_GITHUBDATASOURCECONFIG']._serialized_end=246 _globals['_APIOAUTH2CONFIG']._serialized_start=248 @@ -178,6 +180,16 @@ _globals['_DELETEDATASOURCEDOMAINREQUEST']._serialized_end=10268 _globals['_DELETEDATASOURCEDOMAINRESPONSE']._serialized_start=10270 _globals['_DELETEDATASOURCEDOMAINRESPONSE']._serialized_end=10302 - _globals['_DATASOURCESERVICE']._serialized_start=12517 - _globals['_DATASOURCESERVICE']._serialized_end=14983 + _globals['_SOURCEDELEGATION']._serialized_start=10305 + _globals['_SOURCEDELEGATION']._serialized_end=10680 + _globals['_LISTSOURCEDELEGATIONSREQUEST']._serialized_start=10683 + _globals['_LISTSOURCEDELEGATIONSREQUEST']._serialized_end=10825 + _globals['_LISTSOURCEDELEGATIONSRESPONSE']._serialized_start=10827 + _globals['_LISTSOURCEDELEGATIONSRESPONSE']._serialized_end=10928 + _globals['_REVOKESOURCEDELEGATIONREQUEST']._serialized_start=10930 + _globals['_REVOKESOURCEDELEGATIONREQUEST']._serialized_end=11000 + _globals['_REVOKESOURCEDELEGATIONRESPONSE']._serialized_start=11002 + _globals['_REVOKESOURCEDELEGATIONRESPONSE']._serialized_end=11102 + _globals['_DATASOURCESERVICE']._serialized_start=13725 + _globals['_DATASOURCESERVICE']._serialized_end=16438 # @@protoc_insertion_point(module_scope) diff --git a/src/saas_sdk/_gen/datasource_pb2.pyi b/src/saas_sdk/_gen/datasource_pb2.pyi index 1f1191c..22b4ada 100644 --- a/src/saas_sdk/_gen/datasource_pb2.pyi +++ b/src/saas_sdk/_gen/datasource_pb2.pyi @@ -89,6 +89,17 @@ class DatasourceDomainStatus(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): DATASOURCE_DOMAIN_STATUS_UNSPECIFIED: _ClassVar[DatasourceDomainStatus] DATASOURCE_DOMAIN_STATUS_PENDING: _ClassVar[DatasourceDomainStatus] DATASOURCE_DOMAIN_STATUS_VERIFIED: _ClassVar[DatasourceDomainStatus] + +class SourceDelegationRevocation(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = () + SOURCE_DELEGATION_REVOCATION_UNSPECIFIED: _ClassVar[SourceDelegationRevocation] + SOURCE_DELEGATION_REVOCATION_REVOKED: _ClassVar[SourceDelegationRevocation] + SOURCE_DELEGATION_REVOCATION_REPLACED: _ClassVar[SourceDelegationRevocation] + SOURCE_DELEGATION_REVOCATION_SOURCE_DELETED: _ClassVar[SourceDelegationRevocation] + SOURCE_DELEGATION_REVOCATION_MEMBER_REMOVED: _ClassVar[SourceDelegationRevocation] + SOURCE_DELEGATION_REVOCATION_PERMISSION_LOST: _ClassVar[SourceDelegationRevocation] + SOURCE_DELEGATION_REVOCATION_USER_INACTIVE: _ClassVar[SourceDelegationRevocation] + SOURCE_DELEGATION_REVOCATION_BINDING_CHANGED: _ClassVar[SourceDelegationRevocation] DATASOURCE_PROVIDER_UNSPECIFIED: DatasourceProvider DATASOURCE_PROVIDER_GITHUB: DatasourceProvider DATASOURCE_PROVIDER_API: DatasourceProvider @@ -141,6 +152,14 @@ SOURCE_SYNC_TRIGGER_WEBHOOK: SourceSyncTrigger DATASOURCE_DOMAIN_STATUS_UNSPECIFIED: DatasourceDomainStatus DATASOURCE_DOMAIN_STATUS_PENDING: DatasourceDomainStatus DATASOURCE_DOMAIN_STATUS_VERIFIED: DatasourceDomainStatus +SOURCE_DELEGATION_REVOCATION_UNSPECIFIED: SourceDelegationRevocation +SOURCE_DELEGATION_REVOCATION_REVOKED: SourceDelegationRevocation +SOURCE_DELEGATION_REVOCATION_REPLACED: SourceDelegationRevocation +SOURCE_DELEGATION_REVOCATION_SOURCE_DELETED: SourceDelegationRevocation +SOURCE_DELEGATION_REVOCATION_MEMBER_REMOVED: SourceDelegationRevocation +SOURCE_DELEGATION_REVOCATION_PERMISSION_LOST: SourceDelegationRevocation +SOURCE_DELEGATION_REVOCATION_USER_INACTIVE: SourceDelegationRevocation +SOURCE_DELEGATION_REVOCATION_BINDING_CHANGED: SourceDelegationRevocation class GitHubDatasourceConfig(_message.Message): __slots__ = ("repo", "paths", "branch", "file_extensions") @@ -791,3 +810,55 @@ class DeleteDatasourceDomainRequest(_message.Message): class DeleteDatasourceDomainResponse(_message.Message): __slots__ = () def __init__(self) -> None: ... + +class SourceDelegation(_message.Message): + __slots__ = ("id", "source_id", "principal_id", "module", "binding", "created_at", "revoked_at", "revocation", "revoked_by") + ID_FIELD_NUMBER: _ClassVar[int] + SOURCE_ID_FIELD_NUMBER: _ClassVar[int] + PRINCIPAL_ID_FIELD_NUMBER: _ClassVar[int] + MODULE_FIELD_NUMBER: _ClassVar[int] + BINDING_FIELD_NUMBER: _ClassVar[int] + CREATED_AT_FIELD_NUMBER: _ClassVar[int] + REVOKED_AT_FIELD_NUMBER: _ClassVar[int] + REVOCATION_FIELD_NUMBER: _ClassVar[int] + REVOKED_BY_FIELD_NUMBER: _ClassVar[int] + id: str + source_id: str + principal_id: str + module: str + binding: str + created_at: _timestamp_pb2.Timestamp + revoked_at: _timestamp_pb2.Timestamp + revocation: SourceDelegationRevocation + revoked_by: str + def __init__(self, id: _Optional[str] = ..., source_id: _Optional[str] = ..., principal_id: _Optional[str] = ..., module: _Optional[str] = ..., binding: _Optional[str] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., revoked_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., revocation: _Optional[_Union[SourceDelegationRevocation, str]] = ..., revoked_by: _Optional[str] = ...) -> None: ... + +class ListSourceDelegationsRequest(_message.Message): + __slots__ = ("org_id", "source_id", "include_revoked") + ORG_ID_FIELD_NUMBER: _ClassVar[int] + SOURCE_ID_FIELD_NUMBER: _ClassVar[int] + INCLUDE_REVOKED_FIELD_NUMBER: _ClassVar[int] + org_id: str + source_id: str + include_revoked: bool + def __init__(self, org_id: _Optional[str] = ..., source_id: _Optional[str] = ..., include_revoked: bool = ...) -> None: ... + +class ListSourceDelegationsResponse(_message.Message): + __slots__ = ("delegations",) + DELEGATIONS_FIELD_NUMBER: _ClassVar[int] + delegations: _containers.RepeatedCompositeFieldContainer[SourceDelegation] + def __init__(self, delegations: _Optional[_Iterable[_Union[SourceDelegation, _Mapping]]] = ...) -> None: ... + +class RevokeSourceDelegationRequest(_message.Message): + __slots__ = ("org_id", "id") + ORG_ID_FIELD_NUMBER: _ClassVar[int] + ID_FIELD_NUMBER: _ClassVar[int] + org_id: str + id: str + def __init__(self, org_id: _Optional[str] = ..., id: _Optional[str] = ...) -> None: ... + +class RevokeSourceDelegationResponse(_message.Message): + __slots__ = ("delegation",) + DELEGATION_FIELD_NUMBER: _ClassVar[int] + delegation: SourceDelegation + def __init__(self, delegation: _Optional[_Union[SourceDelegation, _Mapping]] = ...) -> None: ...