package
0.0.0-20240601000103-322b22eac0b6
Repository: https://github.com/twisp/twisp-sdk-go.git
Documentation: pkg.go.dev

# README

Twisp Client

Uses https://github.com/Khan/genqlient to generate client for Twisp. This client can then use either IAM token exchange or an OIDC complaint JWT to query Twisp.

Assuming your IAM credentials are in the environment:

Usage

Usage of twisp-client:
  -account string
    	which twisp account to use for signing. (default "cloud")
  -customer-account string
    	the AWS customer account. If using IAM auth do not set.
  -jwt string
    	an oidc compliant jwt you wish to use. If you use jwt you must specify your aws account.
  -region string
    	the aws region you're authenticating against. (default "us-east-2")

Updating Schema

install the sdl tool and use update schema from Twisp.

go install github.com/twisp/twisp-sdk-go/cmd/sdl
sdl -region=us-west-2 -schema-out=schema.graphql

Regenerate client:

go generate ./...

Examples

Using IAM credential in environment

go install ./...
twisp-client -region=us-west-2

With an OIDC compliant JWT:

AUTH="<your jwt>"
twisp-client -region=us-west-2 -customer-account=9999999999 -jwt="$AUTH"

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Constants

No description provided by the author
No description provided by the author
No description provided by the author

# Structs

Account fields to update.
CheckAccountBalancesAccount includes the requested fields of the GraphQL type Account.
CheckAccountBalancesAccountBalance includes the requested fields of the GraphQL type Balance.
CheckAccountBalancesAccountBalanceSettledBalanceAmount includes the requested fields of the GraphQL type BalanceAmount.
CheckAccountBalancesAccountBalanceSettledBalanceAmountNormalBalanceMoney includes the requested fields of the GraphQL type Money.
CheckAccountBalancesResponse is returned by CheckAccountBalances on success.
PostDepositPostTransaction includes the requested fields of the GraphQL type Transaction.
PostDepositPostTransactionEntriesEntryConnection includes the requested fields of the GraphQL type EntryConnection.
PostDepositPostTransactionEntriesEntryConnectionNodesEntry includes the requested fields of the GraphQL type Entry.
PostDepositPostTransactionEntriesEntryConnectionNodesEntryAccount includes the requested fields of the GraphQL type Account.
PostDepositResponse is returned by PostDeposit on success.
UpdateAccountWithOptionsResponse is returned by UpdateAccountWithOptions on success.
UpdateAccountWithOptionsUpdateAccount includes the requested fields of the GraphQL type Account.

# Type aliases

Debit or credit? Sometimes these are abbreviated to DR and CR.
Record status.