/** * @example * { * id: "HydraDoc1234", * resourceId: "C0123456789" * } */ export interface HandlerResourceCreateReq { /** Connector ID */ id: string; /** * ACL restricts every object synced from this resource to the listed * principals (see resourceMapping.ACL). Omitted means unrestricted. */ acl?: string[]; /** Key-value pairs merged into document metadata on every synced object from this resource. Capped at 1 KiB, measured on the compact JSON encoding of the whole map in UTF-8 bytes — keys, quotes, commas and braces count toward the budget. The cap is applied when synced objects are ingested, not to this request. */ additionalMetadata?: Record; collectionOverride?: string; /** * CustomInstructions optionally steers how documents synced from this * resource are ingested and indexed. When set it replaces the * connector-level custom_instructions for this resource; empty inherits * the connector's value. Max 4000 characters. */ customInstructions?: string; databaseOverride?: string; /** Human-readable name for this resource. */ displayName?: string; /** Provider-specific filters applied during sync (e.g. `{"lookback_days": 30}`). */ filters?: Record; /** Key-value pairs merged into tenant metadata on every synced object from this resource. Capped at 16 KiB, measured on the compact JSON encoding of the whole map in UTF-8 bytes — keys, quotes, commas and braces count toward the budget. The cap is applied when synced objects are ingested, not to this request. */ metadata?: Record; /** Additional provider-supplied metadata for this resource. */ providerMetadata?: Record; /** Resource identifier from the Discover endpoint. */ resourceId: string; /** Type of resource within the provider (e.g. `channel`, `repo`, `linear_team`). */ resourceType?: string; /** deprecated: use collection_override */ subTenantIdOverride?: string; /** * DatabaseOverride/CollectionOverride are the canonical v2 names; * TenantIDOverride/SubTenantIDOverride are their deprecated aliases. */ tenantIdOverride?: string; }