OSS-first docs
These docs teach the open system first: contracts, generated surfaces, runtimes, governance, and incremental adoption. Studio shows up as the operating layer on top, not as the source of truth.
List bank accounts available to a tenant/user via Powens Open Banking.
Goal
Provide downstream workflows with the set of accounts accessible via the configured open banking connection.
Context
Used by Pocket Family Office dashboards and sync workflows to enumerate bank accounts prior to syncing balances or transactions.
Source Definition
import {
type AnyOperationSpec,
defineCommand,
defineQuery,
} from '@lssm-tech/lib.contracts-spec/operations';
import type { OperationSpecRegistry } from '@lssm-tech/lib.contracts-spec/operations/registry';
import { ScalarTypeEnum, SchemaModel } from '@lssm-tech/lib.schema';
import { BankAccountRecord } from '../models';
import { OPENBANKING_TELEMETRY_EVENTS } from '../telemetry';
export const OpenBankingListAccounts = defineQuery({
meta: {
key: 'openbanking.accounts.list',
version: '1.0.0',
description:
'List bank accounts available to a tenant/user via Powens Open Banking.',
goal: 'Provide downstream workflows with the set of accounts accessible via the configured open banking connection.',
context:
'Used by Pocket Family Office dashboards and sync workflows to enumerate bank accounts prior to syncing balances or transactions.',
owners: ['@platform.finance'],
tags: ['open-banking', 'powens', 'accounts'],
stability: 'experimental',
},
io: {
input: OpenBankingListAccountsInput,
output: OpenBankingListAccountsOutput,
},
policy: {
auth: 'user',
},
});