Pipeline SDK
segmentstream-pipeline
Getting started
Connections, ingestion, models, checks, schedules and AI evaluation in plain Python, in the pipeline/ and connections/ folders. The platform validates the graph, runs it on managed compute and shows the lineage of every table.
# pipeline/pyproject.toml
dependencies = ["segmentstream-pipeline[bigquery]"]Public exports
AllPartitions
Read all retained rows of an input, independently of the consumer's run dates.
class AllPartitions:
asset: AssetReferenceAllowFailure
class AllowFailure(ir.Table):
asset: AssetReference
__init__(self: 'AllowFailure[ir.Table]', asset: 'AssetReference')ApiKeyConnection
HTTP access authenticated by static values, such as API keys or tokens. Each entry in `headers` or `query` maps the name the provider expects to a `Secret(...)` configured after deployment, or to `secret_ref(...)` for a shared workspace secret. A value that is not secret, such as an account id, is a `Value(...)`: it is configured the same way, and responses may contain it. The value is sent unchanged; wrap a header's secret in `Bearer(...)` to send ``Bearer <value>``, or in `Scheme("Token", ...)` for another scheme. For providers that read the value from the URL path, `path` maps one segment prefix to its secret: ``path={"bot": Secret()}`` sends ``<api>/bot<value>/<request path>``. The field key is the name in lowercase with hyphens and dots replaced by underscores, for example `Client-Id` -> `client_id`. Set `public=True` for an API with no authentication. Public connections must have no header, query or path credentials and are ready immediately after deployment. A value of `apis` may be an `McpApi` instead of a URL: a remote MCP server reached with the same credentials, limited to the tools it declares. For a provider that signs each request, such as Binance Pay, `signing` declares the headers and query parameters the backend computes for every request; see `segmentstream_connections.signing`. `verification` declares values the provider gives for checking what it sends, such as a webhook signing secret (``whsec_…``) or a registration verify token, named in lowercase with underscores: ``verification={"webhook_signing_secret": Secret(label="Webhook signing secret")}``, or ``uses("api_secret")`` for a secret the connection already holds. Members set them on the connection like its other values, and a webhook that names the connection checks its deliveries against one with ``input``. Only the platform's checks read them: requests never carry them and workspace code never receives them. A connection whose verification values are unset still makes requests. A provider that only sends, such as one whose webhooks have no API behind them, declares verification values alone: no headers, no ``apis``. Such a connection cannot be called, and it is configured once its values are set.
class ApiKeyConnection(HttpApis):
type: ClassVar[Literal['api_key']] = 'api_key'
key: str
name: str
provider: str
public: bool = Field(default=False, strict=True)
read_only: bool = Field(default=False, strict=True)
headers: Mapping[str, SecretReference | Bearer | Scheme] = Field(default_factory=dict)
query: Mapping[str, SecretReference] = Field(default_factory=dict)
path: Mapping[str, SecretReference] = Field(default_factory=dict)
apis: dict[str, str]
default_api: str | None = None
signing: Signing | None = None
verification: Mapping[str, VerificationValue] = Field(default_factory=dict)
validate_key(cls, value: str)
validate_name(cls, value: str)
validate_provider(cls, value: str)
validate_headers(cls, value: Mapping[str, SecretReference | Bearer | Scheme])
validate_query(cls, value: Mapping[str, SecretReference])
validate_path(cls, value: Mapping[str, SecretReference])
validate_verification(cls, value: Mapping[str, VerificationValue])
validate_apis(cls, value: dict[str, str])
validate_connection(self)
credentials(self)ApifyConnection
Apify platform API access with a personal API token. Declare a stable key, deploy, then paste the token from Apify Console > Settings > API & Integrations into the connection. The backend sends it as Apify's ``token`` query parameter; the token never reaches pipeline code or URLs outside the backend. Use ``get_connection(key).get_http_client()`` with paths relative to ``https://api.apify.com/v2/``, such as ``/actors/{actor}/runs``.
class ApifyConnection(_ApiKeyPreset):
name: str = 'Apify'
provider: str = 'apify'
query: Mapping[str, SecretReference] = Field(default_factory=lambda: {'token': Secret(label='API token', description='From Apify Console > Settings > API & Integrations.')})
apis: dict[str, str] = Field(default_factory=lambda: {'v2': APIFY_API})ApolloConnection
Apollo.io API access with an API key. Declare a stable key, deploy, then paste an API key from Apollo > Settings > Integrations > API into the connection. The backend sends it on Apollo's ``x-api-key`` header. Use ``get_connection(key).get_http_client()`` with paths relative to ``https://api.apollo.io/api/v1/``, such as ``/organizations/enrich``.
class ApolloConnection(_ApiKeyPreset):
name: str = 'Apollo'
provider: str = 'apollo'
headers: Mapping[str, SecretReference | Bearer] = Field(default_factory=lambda: {'x-api-key': Secret(label='API key', description='From Apollo > Settings > Integrations > API.')})
apis: dict[str, str] = Field(default_factory=lambda: {'v1': APOLLO_API})AuthoringError
class AuthoringError(ValueError):
__init__(self, issues: list[AuthoringIssue])AuthoringIssue
class AuthoringIssue:
code: str
message: str
asset_key: str | None = None
parameter: str | None = None
source: str | None = None
candidates: tuple[str, ...] = ()BatchBackfillPolicy
class BatchBackfillPolicy:
max_partitions_per_run: int = 7Bearer
A header value the backend sends as ``Bearer <value>``. Wrap the `Secret(...)` or `secret_ref(...)` of an `Authorization` header so users configure only the token, for example ``{"Authorization": Bearer(Secret())}``.
class Bearer(BaseModel):
scheme: ClassVar[str] = 'Bearer'
secret: SecretReference
__init__(self, secret: SecretReference, /)BigQueryConnection
GA4 export query access through a backend-bound service account.
class BigQueryConnection(BaseModel):
type: ClassVar[Literal['bigquery']] = 'bigquery'
provider: ClassVar[Literal['bigquery']] = 'bigquery'
authentication: ClassVar[Literal['service_account_impersonation']] = 'service_account_impersonation'
key: str
name: str = 'BigQuery'
validate_key(cls, value: str)
validate_name(cls, value: str)CheckContext
Re-exported from dagster.
from dagster import AssetCheckExecutionContext as CheckContext
CheckResult
Re-exported from dagster.
from dagster import AssetCheckResult as CheckResult
ClientCredentialsConnection
HTTP access with a client ID and secret and no user authorization. Configure the client ID and secret after deployment. The backend exchanges them at `token_url` for short-lived access tokens, renews them before they expire, and sends them as ``Authorization: Bearer <token>``. Neither the values nor the tokens reach pipeline code. By default the exchange is an OAuth 2.0 client-credentials grant that sends the values with HTTP Basic authentication, or in the form body with ``client_authentication="client_secret_post"``. Omit `scopes` to receive the scopes granted to the client. ``client_authentication="client_secret_headers"`` serves token endpoints that take the two values as request headers instead: the backend posts no body, sends the client ID on `client_id_header` and the secret on `client_secret_header`, and reads the token from the response's ``token`` (or ``access_token``) and its expiry from ``expires_at``, an ISO 8601 time (or ``expires_in`` seconds). Such an endpoint is sent no scopes. `token_header` names the header an API takes the token on instead, sent as the bare token, such as Shopify's ``X-Shopify-Access-Token``; the token is then sent on no other header. A value of `apis` may be an `McpApi`: a remote MCP server reached with the same tokens.
class ClientCredentialsConnection(HttpApis):
type: ClassVar[Literal['client_credentials']] = 'client_credentials'
key: str
name: str
provider: str
read_only: bool = Field(default=False, strict=True)
token_url: str
client_id: SecretReference = Field(default_factory=lambda: Secret(label='Client ID'))
client_secret: SecretReference = Field(default_factory=lambda: Secret(label='Client secret'))
scopes: tuple[str, ...] = ()
client_authentication: Literal['client_secret_basic', 'client_secret_post', 'client_secret_headers'] = 'client_secret_basic'
client_id_header: str | None = None
client_secret_header: str | None = None
token_header: str | None = None
apis: dict[str, str]
default_api: str | None = None
verification: Mapping[str, VerificationValue] = Field(default_factory=dict)
validate_verification(cls, value: Mapping[str, VerificationValue])
validate_verification_fields(self)
validate_token_request_headers(self)
validate_token_header(cls, value: str | None)
bind_owned_secrets(self)
validate_key(cls, value: str)
validate_name(cls, value: str)
validate_provider(cls, value: str)
validate_token_url(cls, value: str)
validate_scopes(cls, value: object)
validate_apis(cls, value: dict[str, str])Config
Re-exported from dagster.
from dagster import Config
ConnectionOwnerRequiredError
The connection is owned: each user of the workspace app connects their own account. A pipeline writes into the workspace's shared warehouse, so it never uses a user's credential, and retrying cannot succeed. Declare a shared connection for the pipeline.
class ConnectionOwnerRequiredError(RuntimeContextRefusedError)
Context
Dagster's asset context as an asset's call sees it, and what type checkers see as ``s.Context``: ``continuation`` is ``None`` and ``continue_with`` refuses, since continuation needs the SegmentStream engine.
class Context(Continuable, dg.AssetExecutionContext)
DeelConnection
Deel API access with an Organization API token. Declare a stable key, deploy, then configure the token in the connection. A Deel organization admin creates an Organization token in Developer Center (More > Developer > Access Tokens). Recommended read-only scopes are accounting:read, invoice-adjustments:read and contracts:read. See https://developer.deel.com/api/stable/authentication.md. The backend sends it as ``Authorization: Bearer <token>``. Use ``get_connection(key).get_http_client()`` with paths relative to ``https://api.letsdeel.com/rest/``. Check connectivity with GET ``/invoices?limit=1``; this needs only accounting:read.
class DeelConnection(_ApiKeyPreset):
name: str = 'Deel'
provider: str = 'deel'
headers: Mapping[str, SecretReference | Bearer] = Field(default_factory=lambda: {'Authorization': Bearer(Secret(label='Organization API token', description='A Deel organization admin creates an Organization token in Developer Center (More > Developer > Access Tokens). Recommended read-only scopes: accounting:read, invoice-adjustments:read and contracts:read.'))})
apis: dict[str, str] = Field(default_factory=lambda: {'rest': DEEL_API})Delivery
Rows a destination sent, and rows the receiving system refused.
class Delivery:
sent: int
rejected: int = 0Engine
Which orchestrator runs the pipeline's jobs. Pinned per deployment by its manifest. ``SegmentStream`` is the default and the recommended engine. ``Dagster`` is deprecated and works until 2027-01-19; the workspace's ``docs/pipeline-engine-migration.md`` moves a pipeline from it to the SegmentStream engine.
class Engine(Enum)
EvaluationClient
class EvaluationClient:
__init__(self, key: str, provider: EvaluationProvider)
evaluate(self, *, state: str | Mapping[str, Any] | Sequence[Any], questions: Mapping[str, Any])EvaluationConnection
Typed evaluations of state against questions, answered with probabilities. Requests use Vercel AI Gateway's evaluation API without a model: SegmentStream chooses the model, so declaring the connection needs no configuration or authorization.
class EvaluationConnection(BaseModel):
type: ClassVar[Literal['evaluation']] = 'evaluation'
key: str
name: str = 'Evaluation'
validate_key(cls, value: str)
validate_name(cls, value: str)Ga4QueryResult
class Ga4QueryResult:
asset_key: str
partition_dates: tuple[str, ...]
jobs: tuple[Mapping[str, Any], ...]GmailConnection
Gmail access to one Google account's mailbox, through your own Google OAuth client. Google admits Gmail's restricted scopes only on internal or verified applications, so the declaration always uses ``application="own"``: after deployment, enter the client ID and secret of a Web application OAuth client and add the redirect URI shown on the connection to it. The client reaches the Gmail API on ``users/me``: messages, threads, attachments, history, labels, drafts, sending and settings. Permanent deletion is not admitted; trash messages instead. By default it requests every scope below, except full mail access; pin ``scopes`` to the ones you use. Access tokens are refreshed by the backend. With ``owner="user"`` each user of the workspace app connects their own mailbox. Such a connection cannot request ``gmail.settings.sharing`` and its default leaves it out: it cannot set up forwarding, delegates, filters, send-as identities, IMAP or POP access, a vacation responder or client-side encryption, which would outlive the user's consent.
class GmailConnection(_ManagedConnection):
provider: ClassVar[str] = 'gmail'
available_scopes: ClassVar[tuple[str, ...]] = ('https://www.googleapis.com/auth/gmail.readonly', 'https://www.googleapis.com/auth/gmail.labels', 'https://www.googleapis.com/auth/gmail.send', 'https://www.googleapis.com/auth/gmail.compose', 'https://www.googleapis.com/auth/gmail.insert', 'https://www.googleapis.com/auth/gmail.modify', 'https://www.googleapis.com/auth/gmail.settings.basic', 'https://www.googleapis.com/auth/gmail.settings.sharing')
owned_scopes: ClassVar[tuple[str, ...] | None] = tuple((scope for scope in available_scopes if scope != 'https://www.googleapis.com/auth/gmail.settings.sharing'))
own_application_supported: ClassVar[bool] = True
segmentstream_application_supported: ClassVar[bool] = False
name: str = 'Gmail'
application: Literal['segmentstream', 'own'] = 'own'GoogleAdsConnection
Google Ads account discovery and GAQL reporting, managed by SegmentStream. Declare a stable key, deploy, then authorize through the UI or CLI. Use ``get_connection(key).get_http_client()`` during execution. OAuth credentials, developer-token injection and refresh are owned by the backend.
class GoogleAdsConnection(_ManagedConnection):
provider: ClassVar[str] = 'google_ads'
available_scopes: ClassVar[tuple[str, ...]] = ('https://www.googleapis.com/auth/adwords',)
name: str = 'Google Ads'GoogleSheetsConnection
Google Sheets read access, managed by SegmentStream. One declaration authorizes one Google account. The client reads spreadsheet metadata and cell values of spreadsheets that account can open, by spreadsheet ID. Pass A1 ranges as the ``ranges`` query parameter. Access tokens are refreshed by the backend. Set ``application="own"`` to authorize through your own Google OAuth client.
class GoogleSheetsConnection(_ManagedConnection):
provider: ClassVar[str] = 'google_sheets'
available_scopes: ClassVar[tuple[str, ...]] = ('https://www.googleapis.com/auth/spreadsheets.readonly',)
own_application_supported: ClassVar[bool] = True
name: str = 'Google Sheets'HubSpotConnection
HubSpot CRM read access, managed by SegmentStream. One declaration authorizes one HubSpot account. The client reads contacts, companies and deals with their properties, pipelines, owners and associations. Short-lived access tokens are refreshed by the backend. Set ``application="own"`` to authorize through your own HubSpot app, which must request the same scopes.
class HubSpotConnection(_ManagedConnection):
provider: ClassVar[str] = 'hubspot'
available_scopes: ClassVar[tuple[str, ...]] = ('crm.objects.contacts.read', 'crm.export')
own_application_supported: ClassVar[bool] = True
name: str = 'HubSpot'IngestionBatch
class IngestionBatch:
rows: Iterable[IngestionRow]
scopes: Sequence[Mapping[str, str | int]]IngestionDataError
An ingestion resource yielded a row that violates its declared schema.
class IngestionDataError(IngestionError, ValueError)
IngestionDefinitionError
An ingestion resource declaration is invalid.
class IngestionDefinitionError(IngestionError, ValueError)
IngestionError
Base error raised by SegmentStream ingestion resources.
class IngestionError(RuntimeError)
IngestionMode
class IngestionMode
IngestionResource
A lazy, one-shot stream of rows with an explicit warehouse-neutral schema.
class IngestionResource:
__init__(self, *, name: str, schema: ibis.Schema, rows: Iterable[IngestionRow], primary_key: tuple[str, ...], schema_evolution: SchemaEvolution, replacement_scopes: tuple[Mapping[str, str | int], ...]=())
close(self)IngestionRow
LatestPartitions
Run the newest ``count`` complete daily partitions on each tick (1 to 31). A tick also reaches back to the first date after the last submitted window, so a delayed or skipped tick leaves no gap, up to 31 days.
class LatestPartitions:
count: int = 1LinkedInAdsConnection
LinkedIn Ads discovery, reporting and conversions, managed by SegmentStream. Set ``application="own"`` to authorize through your own LinkedIn application with the Advertising and Conversions API products. Pin ``scopes=("r_ads", "r_ads_reporting")`` for reporting access without conversion permissions.
class LinkedInAdsConnection(_ManagedConnection):
provider: ClassVar[str] = 'linkedin_ads'
available_scopes: ClassVar[tuple[str, ...]] = ('r_ads', 'r_ads_reporting', 'rw_conversions')
own_application_supported: ClassVar[bool] = True
name: str = 'LinkedIn Ads'LinkedInCommunityConnection
LinkedIn member and page analytics, and page posts, through the Community Management API. One declaration authorizes one LinkedIn member. The client reads the member's profile, post and follower analytics, and the pages the member administers with their posts and statistics. LinkedIn requires the Community Management API to be the only product of its application, so it uses a different application from ``LinkedInAdsConnection``. By default it requests ``r_basicprofile``, ``r_member_postAnalytics``, ``r_organization_social``, ``r_organization_social_feed`` and ``rw_organization_admin``, and requests stay read-only. Add ``w_organization_social`` to ``scopes`` to also create and delete posts of the pages the member administers and upload their images and videos through the ``uploads`` API; it is never requested by default. LinkedIn refuses an authorization requesting a permission the application lacks, so set ``scopes`` to exactly the permissions it has. ``read_only=True`` refuses every write whichever scopes are granted.
class LinkedInCommunityConnection(_ManagedConnection):
provider: ClassVar[str] = 'linkedin_community'
own_application_supported: ClassVar[bool] = True
name: str = 'LinkedIn Community'
scopes: tuple[LinkedInCommunityScope, ...] = ()
available_scopes: ClassVar[tuple[str, ...]] = ('r_basicprofile', 'r_member_postAnalytics', 'r_organization_social', 'r_organization_social_feed', 'rw_organization_admin')
own_available_scopes: ClassVar[tuple[str, ...] | None] = ('r_basicprofile', 'r_member_postAnalytics', 'r_member_profileAnalytics', 'r_organization_social', 'r_organization_social_feed', 'rw_organization_admin')
optional_scopes: ClassVar[tuple[str, ...]] = ('w_organization_social',)MercuryConnection
Mercury API access with an API token. Declare a stable key, deploy, then configure the token in the connection. From Mercury > All Settings > Tokens; create a Read Only API token. The backend sends it as ``Authorization: Bearer <token>``. Use ``get_connection(key).get_http_client()`` with paths relative to ``https://api.mercury.com/api/v1/``.
class MercuryConnection(_ApiKeyPreset):
name: str = 'Mercury'
provider: str = 'mercury'
headers: Mapping[str, SecretReference | Bearer] = Field(default_factory=lambda: {'Authorization': Bearer(Secret(label='API token', description='From Mercury > All Settings > Tokens; create a Read Only API token.'))})
apis: dict[str, str] = Field(default_factory=lambda: {'v1': MERCURY_API})MetaAdsConnection
Meta Marketing API account discovery and reporting, managed by SegmentStream. Declare a stable key, deploy, then authorize through the UI or CLI. Use ``get_connection(key).get_http_client()`` during execution. Provider tokens and application-secret proofs remain in the backend. Set ``application="own"`` to authorize through your own Meta app: enter its App ID and App secret on the connection and add the redirect URI shown there to the app's Facebook Login settings. The backend proves your app's secret on every request.
class MetaAdsConnection(_ManagedConnection):
own_application_supported: ClassVar[bool] = True
provider: ClassVar[str] = 'meta_ads'
available_scopes: ClassVar[tuple[str, ...]] = ('ads_read',)
name: str = 'Meta Ads'MicrosoftAdsConnection
Microsoft Advertising account discovery and reporting, managed by SegmentStream.
class MicrosoftAdsConnection(_ManagedConnection):
provider: ClassVar[str] = 'microsoft_ads'
available_scopes: ClassVar[tuple[str, ...]] = ('https://ads.microsoft.com/msads.manage',)
name: str = 'Microsoft Advertising'NonRetryableError
A failure that retrying cannot mend: the step fails at once, without its retries. Raise it, or a subclass, from a step's own code; any other exception stays retryable under the step's ``retry_policy``. It takes a message as any exception does and adds no constructor of its own, so a subclass may also derive from the workspace's own exception classes, whatever their constructors take:: class RateLimited(ProviderRefused, s.NonRetryableError): """The provider blocked us; asking again now would extend the block.""" raise s.NonRetryableError("The provider rejected the token.") from error Its message and causes are recorded as any other failure's are.
class NonRetryableError(Exception)
OAuth2Connection
A declarative OAuth 2.0 authorization-code connection. Scope transport defaults to spaces; comma mode also normalizes token response scopes. The resource authorization scheme defaults to Bearer and is independent of the token endpoint's token_type. `access_token_type` names the token_type the token endpoint reports for its bearer access tokens, such as Slack's ``bot``; any other reported type is still refused. These options do not configure managed providers. A value of `apis` may be an `McpApi`: a remote MCP server reached with the same tokens. A provider that offers more ways to obtain the application's token admits them too, and the member chooses one when authorizing. `token_authorization=True` admits an access token of the application that the member supplies, stored as supplied. `client_credentials=True` admits the application's OAuth client credentials grant at `token_url`, with no consent; its tokens are renewed by repeating the grant. Neither yields a refresh token, so both need ``require_refresh_token=False``. `token_header` names a header the API takes the bare token on instead of ``Authorization``. `owner="user"` makes the connection owned: each user of the workspace app connects their own account, and code running as that user uses that user's credential. An owned connection admits consent and supplied tokens, never `client_credentials`. It has no operation allowlist: your code may call any path of its APIs with each user's credential.
class OAuth2Connection(HttpApis):
type: Literal['oauth2'] = 'oauth2'
key: str
name: str
provider: str
read_only: bool = Field(default=False, strict=True)
authorization_url: str
token_url: str
client_id: SecretReference
client_secret: SecretReference
scopes: tuple[str, ...]
scope_separator: Literal[' ', ','] = ' '
resource_authorization_scheme: str = 'Bearer'
access_token_type: str = 'Bearer'
authorization_parameters: tuple[OAuth2Parameter, ...] = Field(default=())
token_parameters: tuple[OAuth2Parameter, ...] = Field(default=())
client_authentication: Literal['client_secret_basic', 'client_secret_post'] = 'client_secret_post'
pkce: bool = True
require_refresh_token: bool = True
token_authorization: bool = Field(default=False, strict=True)
client_credentials: bool = Field(default=False, strict=True)
owner: Literal['user'] | None = None
token_header: str | None = None
apis: dict[str, str] = Field(default_factory=dict)
default_api: str | None = None
verification: Mapping[str, Any] = Field(default_factory=dict)
validate_verification(cls, value: Mapping[str, Any])
validate_resource_authorization_scheme(cls, value: str)
validate_token_header(cls, value: str | None)
validate_authorization_methods(self)
validate_access_token_type(cls, value: str)
validate_apis(cls, value: dict[str, str])
validate_default_api(self)
bind_owned_secrets(cls, value: object)
validate_key(cls, value: str)
validate_name(cls, value: str)
validate_provider(cls, value: str)
validate_endpoint(cls, value: str)
validate_scopes(cls, value: object)
normalize_parameters(cls, value: object)
validate_connection(self)OAuth2TokenSet
Normalized credential result returned by OAuth token operations.
class OAuth2TokenSet(BaseModel):
access_token: str = Field(repr=False)
refresh_token: str | None = Field(default=None, repr=False)
token_type: str = 'Bearer'
expires_in: int | None = None
scopes: tuple[str, ...] = ()
validate_access_token(cls, value: str)
validate_token_type(cls, value: str)
validate_token_scopes(cls, value: tuple[str, ...])
validate_expires_in(cls, value: int | None)
validate_refresh_token(cls, value: str | None)
validate_token_material_size(self)Ontology
Ontology handle with explicit credentials for external or local use. In a pipeline run on SegmentStream (a managed run, or a step of the deployed SegmentStream engine), use ``segmentstream.get_ontology()`` for the workspace's own ontology instead. This constructor deliberately reads no environment credentials or default grant.
class Ontology:
__init__(self, *, ontology_url: str, api_key: str)
get_http_client(self)
get_async_http_client(self)Output
Re-exported from dagster.
from dagster import Output
Partitioning
class Partitioning
PerPartitionBackfillPolicy
class PerPartitionBackfillPolicy
RUNTIME_REQUIREMENTS_METADATA_KEY
RUNTIME_REQUIREMENTS_METADATA_KEY = 'segmentstream/runtime_requirements'
RelationAddress
class RelationAddress:
catalog: str
namespace: str
name: str
qualified_name(self)
uri(self, *, engine: str)ResendConnection
Resend email API access with an API key. Declare a stable key, deploy, then paste an API key from Resend > API Keys into the connection. The backend sends it as ``Authorization: Bearer <key>``. Use ``get_connection(key).get_http_client()`` with paths relative to ``https://api.resend.com/``, such as ``/emails``. Resend signs its webhooks with Svix. A webhook that names this connection checks them against ``webhook_signing_secret``, which members paste from the endpoint's page in Resend.
class ResendConnection(_ApiKeyPreset):
name: str = 'Resend'
provider: str = 'resend'
headers: Mapping[str, SecretReference | Bearer] = Field(default_factory=lambda: {'Authorization': Bearer(Secret(label='API key', description='From Resend > API Keys; starts with re_.'))})
apis: dict[str, str] = Field(default_factory=lambda: {'api': RESEND_API})
verification: Mapping[str, SecretReference] = Field(default_factory=lambda: {'webhook_signing_secret': Secret(label='Webhook signing secret', description='From Resend > Webhooks > your endpoint; starts with whsec_. Only a webhook that names this connection reads it.')})ResourceSchema
RetryPolicy
Re-exported from dagster.
from dagster import RetryPolicy
RuntimeContextError
The process could not use its SegmentStream runtime context.
class RuntimeContextError(RuntimeError)
RuntimeContextRefusedError
SegmentStream refused the request, and retrying cannot succeed. As a Dagster ``Failure`` that disallows retries, it fails the step at once instead of applying the step's retry policy.
class RuntimeContextRefusedError(RuntimeContextError, dg.Failure):
__init__(self, message: str)RuntimeValueNotGrantedError
The execution context does not grant access to the requested value.
class RuntimeValueNotGrantedError(RuntimeContextError)
SchemaEvolution
class SchemaEvolution(StrEnum)
Secret
A write-only input owned by the containing connection and field.
class Secret(SecretReference):
type: Literal['secret', 'owned_secret'] = 'owned_secret'
name: str = ''SecretReference
A symbolic reference resolved only by the connections backend.
class SecretReference(BaseModel):
type: Literal['secret', 'owned_secret'] = 'secret'
name: str
label: str | None = Field(default=None, min_length=1, max_length=80)
description: str | None = Field(default=None, max_length=500)
serialize_reference(self, handler: SerializerFunctionWrapHandler)
validate_name(cls, value: str)SingleRunBackfillPolicy
class SingleRunBackfillPolicy
SlackConnection
Slack Web API access as the bot of your own Slack app. Create the app in the Slack workspace it serves at api.slack.com/apps, add the redirect URI the connection shows under OAuth & Permissions, and give the app the bot scopes the declaration requests. Declare a stable key, deploy, enter the client ID and client secret from the app's Basic Information page, then authorize: that installs the app in its Slack workspace, and the backend keeps the bot token. One declaration is one app installation. `scopes` defaults to the bot scopes the workspace agent's Slack channel uses; request only those you call, such as ``["chat:write"]``, when the bot only posts. User scopes are not requested. Call Web API methods by name, such as ``/chat.postMessage``; ``api="files"`` downloads a file's ``url_private`` from ``https://files.slack.com/``.
class SlackConnection(OAuth2Connection):
name: str = 'Slack'
provider: str = 'slack'
authorization_url: str = SLACK_AUTHORIZATION_URL
token_url: str = SLACK_TOKEN_URL
scopes: tuple[str, ...] = SLACK_BOT_SCOPES
scope_separator: Literal[' ', ','] = ','
access_token_type: str = 'bot'
client_authentication: Literal['client_secret_basic', 'client_secret_post'] = 'client_secret_basic'
pkce: bool = False
require_refresh_token: bool = False
apis: dict[str, str] = Field(default_factory=lambda: {'web': SLACK_WEB_API, 'files': SLACK_FILES_API})
default_api: str | None = 'web'
accept_only_key_name_and_scopes(cls, data: Any)StarlingConnection
Starling API access with a personal access token. Declare a stable key, deploy, then configure the token in the connection. From Starling Developer Portal > Personal Access; select account:read, balance:read, transaction:read and account-list:read. The backend sends it as ``Authorization: Bearer <token>``. Use ``get_connection(key).get_http_client()`` with paths relative to ``https://api.starlingbank.com/api/v2/``.
class StarlingConnection(_ApiKeyPreset):
name: str = 'Starling'
provider: str = 'starling'
headers: Mapping[str, SecretReference | Bearer] = Field(default_factory=lambda: {'Authorization': Bearer(Secret(label='Personal access token', description='From Starling Developer Portal > Personal Access; select account:read, balance:read, transaction:read and account-list:read.'))})
apis: dict[str, str] = Field(default_factory=lambda: {'v2': STARLING_API})StripeConnection
Stripe API access with a secret or restricted API key. Declare a stable key, deploy, then paste a key from Stripe Dashboard > Developers > API keys into the connection; prefer a restricted key with read access only. The backend sends it as ``Authorization: Bearer <key>``. Use ``get_connection(key).get_http_client()`` with paths relative to ``https://api.stripe.com/v1/``, such as ``/charges``. A webhook that names this connection checks Stripe's signatures against ``webhook_signing_secret``, which members paste from the endpoint's page in Stripe.
class StripeConnection(_ApiKeyPreset):
name: str = 'Stripe'
provider: str = 'stripe'
headers: Mapping[str, SecretReference | Bearer] = Field(default_factory=lambda: {'Authorization': Bearer(Secret(label='API key', description='From Stripe Dashboard > Developers > API keys; a restricted key (rk_live_) with read access is safest.'))})
apis: dict[str, str] = Field(default_factory=lambda: {'v1': STRIPE_API})
verification: Mapping[str, SecretReference] = Field(default_factory=lambda: {'webhook_signing_secret': Secret(label='Webhook signing secret', description='From Stripe Dashboard > Developers > Webhooks > your endpoint; starts with whsec_. Only a webhook that names this connection reads it.')})SupabaseConnection
Supabase REST API access to one project with a secret key. Declare a stable key and the project ref, the subdomain of the project URL ``https://<ref>.supabase.co``. Deploy, then paste a secret key from Supabase Dashboard > Project Settings > API Keys into the connection. The backend sends it on the ``apikey`` header, as Supabase requires for its non-JWT keys. Use ``get_connection(key).get_http_client()`` with paths relative to ``https://<ref>.supabase.co/rest/v1/``, such as ``/orders?select=*``.
class SupabaseConnection(ApiKeyConnection):
name: str = 'Supabase'
provider: str = 'supabase'
project: str
headers: Mapping[str, SecretReference | Bearer] = Field(default_factory=lambda: {'apikey': Secret(label='Secret key', description='From Supabase Dashboard > Project Settings > API Keys; starts with sb_secret_.')})
derive_project_api(cls, data: Any)TableStorage
Partition a full-refresh table by a DATE column without partitioning its execution.
class TableStorage:
partition_by_date: strTelegramBotConnection
Telegram Bot API access with a bot token. Declare a stable key, deploy, then paste the token @BotFather gave the bot into the connection. Telegram reads the token from the URL path, so the backend sends requests to ``https://api.telegram.org/bot<token>/`` and the token never reaches pipeline code or its request URLs. Use ``get_connection(key).get_http_client()`` with method paths such as ``/getUpdates``, and ``api="file"`` to download a file's ``file_path``. ``segmentstream connection authorize KEY`` creates the bot through SegmentStream instead, and stores its token in the connection.
class TelegramBotConnection(ApiKeyConnection):
token: SecretReference | None = Field(default=None, exclude=True)
name: str = 'Telegram'
provider: str = 'telegram'
path: Mapping[str, SecretReference] = Field(default_factory=lambda: {'bot': Secret(label='Bot token', description='From @BotFather; looks like 123456789:AA...')})
apis: dict[str, str] = Field(default_factory=lambda: {'bot': TELEGRAM_BOT_API, 'file': TELEGRAM_FILE_API})
default_api: str | None = 'bot'
derive_token_reference(cls, data: Any)Tier
class Tier(Enum)
TikTokAdsConnection
TikTok Ads account discovery and reporting, managed by SegmentStream.
class TikTokAdsConnection(_ManagedConnection):
provider: ClassVar[str] = 'tiktok_ads'
name: str = 'TikTok Ads'Value
A configured input that is not secret, such as an account id. Members set it after deployment, like a `Secret(...)`. The backend sends it as configured and responses may contain it, while every secret a response contains is replaced with ``***``. Use it for a header or query parameter, never for `Authorization`.
class Value(Secret)
WAREHOUSE_DATE_PARTITION_COLUMN_METADATA_KEY
WAREHOUSE_DATE_PARTITION_COLUMN_METADATA_KEY = 'segmentstream/warehouse_date_partition_column'
WAREHOUSE_IO_MANAGER_KEY
WAREHOUSE_IO_MANAGER_KEY = 'warehouse_io'
WAREHOUSE_RESOURCE_KEY
WAREHOUSE_RESOURCE_KEY = 'warehouse'
WarehouseConfigurationError
The pipeline warehouse runtime configuration is missing or invalid.
class WarehouseConfigurationError(ValueError)
WarehouseConnectionError
The pipeline could not connect to its configured warehouse.
class WarehouseConnectionError(RuntimeError)
WarehouseMaterializationError
A warehouse-backed asset could not be loaded or materialized.
class WarehouseMaterializationError(RuntimeError):
transient: bool = FalseWarehouseResource
A lazily connected Ibis warehouse resource. All fields are optional so Dagster can inspect definitions without runtime environment variables. Missing values are resolved only when a method first accesses the warehouse. The SegmentStream engine binds a step's :class:`Journal` around its function call and write (:meth:`journaled`). Bound, every BigQuery job the step makes through the resource (scratch tables, their release, queries, a write's staging table and commits) is a numbered call of the journal, so the step can be called again in a later leg of its attempt and find them (see :mod:`._journal`). Unbound, every method behaves as it always has.
class WarehouseResource(dg.ConfigurableResource):
engine: str | None = None
catalog: str | None = None
default_namespace: str | None = None
location: str | None = None
ingestion_file_max_bytes: int = Field(default=DEFAULT_FILE_MAX_BYTES, gt=0)
configuration(self)
backend(self)
address(self, *, name: str, namespace: str | None=None)
table(self, *, name: str, namespace: str | None=None)
ensure_namespace(self, namespace: str)
replace_table(self, *, address: RelationAddress, expression: ir.Table, partition_column: str | None=None, publishing: Callable[[], AbstractContextManager[PublicationJobs | None]] | None=None)
ingest_resource(self, *, address: RelationAddress, resource: IngestionResource, partition_column: str | None=None, partition_dates: Sequence[date] | None=None, publishing: Callable[[], AbstractContextManager[PublicationJobs | None]] | None=None)
ingestion_leg(self, *, address: RelationAddress, key: str, leg: int, carried: object, run_id: str, asset_key: str, partition_column: str | None=None, partition_dates: Sequence[date] | None=None)
replace_date_partitions(self, *, address: RelationAddress, expression: ir.Table, partition_column: str, partition_dates: Sequence[date], publishing: Callable[[], AbstractContextManager[PublicationJobs | None]] | None=None)
table_date_partitions(self, *, name: str, namespace: str | None, partition_column: str, partition_dates: Sequence[date])
materialize_scratch(self, expression: ir.Table)
release_scratch(self, table: ir.Table)
iterate(self, initial: ir.Table, *, step: Callable[[ir.Table], ir.Table], changed: Callable[[ir.Table, ir.Table], ir.BooleanScalar], max_iterations: int=1000)
execute(self, expression: ir.Expr, *, limit: int | None=None)
journaled(self, journal: Journal)
finish_journal(self, journal: Journal)
cancel_journaled_job(self, journal: Journal)
extend_journal_tables(self, journal: Journal)
teardown_after_execution(self, context: dg.InitResourceContext)WarehouseRuntimeConfiguration
class WarehouseRuntimeConfiguration:
engine: str
catalog: str
default_namespace: str
location: str | None = None
namespace_prefix: str = ''
resolve(cls, *, engine: str | None=None, catalog: str | None=None, default_namespace: str | None=None, location: str | None=None, environ: Mapping[str, str] | None=None)WhatsAppBusinessConnection
WhatsApp Cloud API access through a customer-owned Meta app. ``WhatsAppConnection(key=..., application="own")`` authorizes with the same system user token and also receives the number's messages and serves the agent's WhatsApp channel. Create an app with WhatsApp in the customer's business portfolio, assign a least-privilege system user to its WhatsApp assets, and generate a token with ``whatsapp_business_messaging`` and ``whatsapp_business_management``. Deploy, then paste that system-user access token into the connection. Check its actual expiry and rotate it before expiration or after revocation. The backend sends only ``Authorization: Bearer <token>`` to the fixed Graph and media APIs. Use ``api="media"`` for a download path after validating the returned URL's origin is exactly ``https://lookaside.fbsbx.com``. The Meta app secret is never part of this connection. See docs/connections.md for setup, account limits and Meta's AI-policy requirements.
class WhatsAppBusinessConnection(_ApiKeyPreset):
name: str = 'WhatsApp Business'
provider: str = 'whatsapp'
headers: Mapping[str, SecretReference | Bearer] = Field(default_factory=lambda: {'Authorization': Bearer(Secret(label='System user access token', description="From the customer's Meta Business Settings > System users."))})
apis: dict[str, str] = Field(default_factory=lambda: {'graph': WHATSAPP_GRAPH_API, 'media': WHATSAPP_MEDIA_API})
default_api: str | None = 'graph'WhatsAppConnection
A WhatsApp Business number, connected through SegmentStream's Meta app. Declare a stable key, deploy, then authorize in either way Meta offers: the member finishes Meta's Embedded Signup and connects a number, or, for a number in the business portfolio that owns the app, which Embedded Signup does not offer, enters a system user token of the app with both WhatsApp permissions and the ID of the WhatsApp Business account it reaches (``segmentstream connection authorize KEY --token-file - --account ID``). A number already used in the WhatsApp Business app stays there (Coexistence). The client reaches the Cloud API through aliases for the connected number and account, so code never handles their IDs: ``POST /phone/messages``, ``GET /phone``, ``GET /media/{id}``, ``DELETE /media/{id}`` and ``/account/message_templates``. Messages send media by ``link``. Download received media through ``api="media"`` after checking the returned URL's origin is exactly ``https://lookaside.fbsbx.com``. SegmentStream relays inbound messages, echoes, history and statuses to the workspace's ontology webhook named like the connection key, declared without a signature. Set ``history=True`` to request the contacts and up to six months of chat history of a Coexistence number when it connects; Meta allows this once, within 24 hours. Set ``coexistence=False`` to onboard through Meta's standard Embedded Signup instead, for a number used only through the Cloud API: a new number, or one removed from the WhatsApp apps first. Set ``application="own"`` to connect through your own Meta app instead: enter its App ID, App secret and a webhook verify token of your choice on the connection, then authorize with a system user token of the app, or, for an app admitted to Embedded Signup as a Tech Provider, enter its Embedded Signup configuration ID, add the redirect URI shown there to the app and authorize through Embedded Signup. Then enter the webhook URL the connection shows, with that verify token, in the app's WhatsApp webhook settings: messages reach the workspace as with SegmentStream's app.
class WhatsAppConnection(_ManagedConnection):
own_application_supported: ClassVar[bool] = True
provider: ClassVar[str] = 'whatsapp'
available_scopes: ClassVar[tuple[str, ...]] = ('whatsapp_business_management', 'whatsapp_business_messaging')
name: str = 'WhatsApp'
history: bool = Field(default=False, strict=True)
coexistence: bool = Field(default=True, strict=True)
validate_history(self)WiseConnection
Wise API access with a personal API token. Declare a stable key, deploy, then configure the token in the connection. From Wise > Your Account > Connect and manage apps > API tokens; create a read-only token. The backend sends it as ``Authorization: Bearer <token>``. Use ``get_connection(key).get_http_client()`` with paths relative to ``https://api.wise.com/``.
class WiseConnection(_ApiKeyPreset):
name: str = 'Wise'
provider: str = 'wise'
headers: Mapping[str, SecretReference | Bearer] = Field(default_factory=lambda: {'Authorization': Bearer(Secret(label='Personal API token', description='From Wise > Your Account > Connect and manage apps > API tokens; create a read-only token.'))})
apis: dict[str, str] = Field(default_factory=lambda: {'api': WISE_API})XAdsConnection
X Ads account discovery and reporting, managed by SegmentStream.
class XAdsConnection(_ManagedConnection):
provider: ClassVar[str] = 'x_ads'
name: str = 'X Ads'XeroConnection
Xero API access through a Xero custom connection. A custom connection belongs to one Xero organisation; declare one key per organisation. Deploy, then paste the custom connection's client ID and client secret from developer.xero.com > My Apps. The backend exchanges them for 30-minute tokens. The default `accounting` API is ``https://api.xero.com/api.xro/2.0/``; `api` reaches the other Xero APIs under ``https://api.xero.com/``.
class XeroConnection(_ClientCredentialsPreset):
name: str = 'Xero'
provider: str = 'xero'
token_url: str = XERO_TOKEN_URL
client_id: SecretReference = Field(default_factory=lambda: Secret(label='Client ID', description='From the custom connection at developer.xero.com.'))
client_secret: SecretReference = Field(default_factory=lambda: Secret(label='Client secret', description='Shown once in Xero.'))
apis: dict[str, str] = Field(default_factory=lambda: {'accounting': 'https://api.xero.com/api.xro/2.0/', 'api': 'https://api.xero.com/'})
default_api: str | None = 'accounting'asset_check
Declare a non-blocking warehouse check over one registered table.
asset_check(*, asset: AssetReference, name: str | None=None, description: str | None=None, inputs: Mapping[str, AssetReference] | None=None) -> Callable[[Callable[..., Any]], CheckDeclaration]
definitions
Resolve and validate a project, returning ordinary Dagster Definitions. ``engine`` names the orchestrator that runs the deployment's jobs. It is written into the manifest: a deployment runs on the engine its code declares, or on the SegmentStream engine when it declares none, and keeps it until a later deployment declares or defaults to another. ``s.Engine.SegmentStream``, the default and the recommended engine, accepts only SDK declarations. ``s.Engine.Dagster`` is deprecated: it keeps a deployment on Dagster, native Dagster objects included, until 2027-01-19. The workspace's ``docs/pipeline-engine-migration.md`` moves a pipeline from Dagster to the engine.
definitions(*, assets: Sequence[RegisteredAsset], semantic_models: object=_REMOVED_ARGUMENT, checks: Sequence[CheckDeclaration | dg.AssetChecksDefinition]=(), jobs: Sequence[JobDeclaration]=(), schedules: Sequence[ScheduleDeclaration]=(), pools: Mapping[str, int] | None=None, warehouse: WarehouseResource | None=None, resources: Mapping[str, Any] | None=None, default_io_manager: bool=True, engine: Engine=Engine.SegmentStream) -> dg.Definitions
describe
Explain the actual compiled graph without executing assets or resolving credentials.
describe(defs: dg.Definitions) -> dict[str, Any]
destination
Declare a destination that sends warehouse rows to one connection and returns s.Delivery. A destination reads its input tables, writes to the connection, and stores no table; its key is 'destinations/<name>'. Jobs schedule it like any asset, and daily partitioning sends one day at a time. The lineage group defaults to the connection key. Deprecated: a destination without a connection, which calls its API with a workspace secret it declares in ``secrets`` and reads with ``s.get_secret``, works until 2027-01-19; its lineage group defaults to 'destinations'. Declare a connection instead.
destination(*, connection: str | None=None, partitioning: PartitionChoice | Missing=MISSING, key: str | None=None, inputs: Mapping[str, AssetReference | AllPartitions] | None=None, deps: Sequence[Dependency]=(), group: str | None=None, pool: str | None=None, description: str | None=None, secrets: Sequence[str]=(), retry_policy: dg.RetryPolicy | None=None, metadata: Mapping[str, Any] | None=None) -> Callable[[Callable[..., Any]], AssetDeclaration]
evaluation_client
Create the evaluation client for a declared evaluation connection.
evaluation_client(key: str) -> EvaluationClient
external_table
Register an existing table without connecting to the warehouse.
external_table(*, tier: Tier | Missing=MISSING, key: str, partitioning: PartitionChoice | Missing=MISSING, description: str | None=None, group: str | None=None) -> ExternalTable
external_table_asset
external_table_asset(*, key: dg.AssetKey | str | Sequence[str], description: str | None=None, group_name: str | None=None, io_manager_key: str=WAREHOUSE_IO_MANAGER_KEY, partitions_def: dg.PartitionsDefinition | None=None, partition_by_date: str | None=None) -> dg.AssetSpec
ga4_bigquery_client
Create a managed GA4 BigQuery client for the current model run.
ga4_bigquery_client(key: str, *, context: Context) -> Ga4BigQueryClient
get_connection
Return a handle for an HTTP connection granted to this execution.
get_connection(key: str) -> 'Connection'
get_ontology
Return this pipeline run's own-workspace ontology handle, as the workspace's pipeline workers: in a managed run, or in a step of the deployed SegmentStream engine.
get_ontology() -> 'Ontology'
get_secret
Return a workspace secret granted to this pipeline run: in a managed run, one its grant names; in a step of the deployed SegmentStream engine, one an asset of the deployment declares in its ``secrets``. Deprecated: workspace secrets read by name work until 2027-01-19, and a deployment that starts declaring one is refused. Call the API through a connection the asset declares, ``get_connection(key).get_http_client()``, with its key set on the connection's page.
get_secret(name: str) -> str
ingestion
Declare source ingestion returning an Ibis table or yielding schema-checked rows. The lineage group defaults to the first declared connection key, falling back to "ingestion". Use '/'-separated segments such as group="google_ads/pmax" to nest the asset in the lineage UI. Assign a concurrency pool with pool="meta_ads" and declare its limit in s.definitions(pools=...).
ingestion(*, tier: Tier | Missing=MISSING, partitioning: PartitionChoice | Missing=MISSING, mode: IngestionModeChoice | None=None, key: str | None=None, inputs: Mapping[str, AssetReference] | None=None, deps: Sequence[Dependency]=(), group: str | None=None, pool: str | None=None, description: str | None=None, connections: Sequence[str]=(), secrets: Sequence[str]=(), retry_policy: dg.RetryPolicy | None=None, metadata: Mapping[str, Any] | None=None, schema: ResourceSchema | Missing=MISSING, primary_key: Sequence[str]=(), schema_evolution: SchemaEvolution | Missing=MISSING) -> Callable[[Callable[..., Any]], AssetDeclaration]
job
Declare an explicit named asset selection and optional typed defaults.
job(name: str, *, assets: Sequence[AssetReference], include_upstream: bool=False, allow_app_runs: bool=False, config: Mapping[str, dg.Config | Mapping[str, Any]] | None=None, description: str | None=None) -> JobDeclaration
model
Declare a warehouse SQL model with an explicit output schema. The lineage group defaults to the first declared connection key, falling back to "transformation". Use '/'-separated segments such as group="google_ads/pmax" to nest the asset in the lineage UI. Assign a concurrency pool with pool="meta_ads" and declare its limit in s.definitions(pools=...).
model(*, tier: Tier | Missing=MISSING, partitioning: PartitionChoice | Missing=MISSING, schema: ResourceSchema | Missing=MISSING, storage: TableStorage | None=None, key: str | None=None, inputs: Mapping[str, AssetReference | AllPartitions] | None=None, deps: Sequence[Dependency]=(), group: str | None=None, pool: str | None=None, description: str | None=None, connections: Sequence[str]=(), secrets: Sequence[str]=(), retry_policy: dg.RetryPolicy | None=None, metadata: Mapping[str, Any] | None=None) -> Callable[[Callable[..., Any]], AssetDeclaration]
relation_from_asset_key
relation_from_asset_key(asset_key: dg.AssetKey, *, catalog: str, default_namespace: str, namespace_prefix: str='') -> RelationAddress
resource
Declare a lazy SegmentStream ingestion resource factory.
resource(*, schema: ResourceSchema, name: str | None=None, primary_key: Sequence[str]=(), schema_evolution: SchemaEvolution=SchemaEvolution.ADDITIVE) -> Callable[[Callable[P, RowsT]], Callable[P, IngestionResource]]
runtime_requirements
Declare the credential capabilities required while materializing an asset. ``secrets`` (workspace secrets for ``get_secret``) is deprecated and works until 2027-01-19; declare a connection instead.
runtime_requirements(*, connections: Iterable[str]=(), secrets: Iterable[str]=()) -> Mapping[str, dg.MetadataValue]
schedule
Run a named job on a cron schedule, at most once an hour. ``timezone`` defaults to the job's partition calendar timezone, or UTC for unpartitioned jobs. Daily jobs run ``partitions`` (default ``s.LatestPartitions(1)``); unpartitioned jobs take no partitions. While a run of the same assets for overlapping dates is active, a tick waits for it; the next tick replaces a waiting one.
schedule(name: str, *, job: object, cron: str, timezone: str | None=None, partitions: LatestPartitions | None=None, description: str | None=None) -> ScheduleDeclaration
secret_ref
Read a value from the workspace secret `name`: the older form of `Secret(...)`. Deprecated: declare the connection's own ``Secret(...)``. Deploying that change takes over a workspace secret only this value named, so nobody enters it again.
secret_ref(name: str) -> SecretReference
validate
Validate the native graph, named job config, and supported runtime contract.
validate(defs: dg.Definitions) -> None
warehouse_asset_metadata
Declare which DATE column physically partitions a daily Dagster asset.
warehouse_asset_metadata(*, partition_by_date: str) -> Mapping[str, str]
warehouse_io_manager
warehouse_io_manager() -> dg.IOManagerDefinition
warehouse_resources
Register warehouse storage for asset outputs and downstream inputs. By default, assets use this manager without an ``io_manager_key``. The explicit ``warehouse_io`` key remains available in either mode. Set ``default_io_manager=False`` to leave Dagster's default manager unchanged, or register a separate manager for assets that return ordinary Python values.
warehouse_resources(*, warehouse: WarehouseResource | None=None, default_io_manager: bool=True) -> Mapping[str, object]