Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ dist-deno
/*.tgz
.idea/
.eslintcache

oidc
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.20.0"
".": "0.21.0"
}
8 changes: 4 additions & 4 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 23
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/fragment-foundries-inc-dash%2Ffragment-1ac1d5e34a8fbabcecc040255a4c5f3d9e6e986bb1b57ec76ed8cd146e5e2bf4.yml
openapi_spec_hash: ec746b4b585a33e6f5f722537e37c956
config_hash: afc05056f5a776aa1501387e38c4820e
configured_endpoints: 22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/fragment-foundries-inc-dash%2Ffragment-8472a9bd15eaa5b8aa9c12513d02b06ae385d06dd48e94a23f121678981de98a.yml
openapi_spec_hash: 4c42faa5ab6443bab546568adc330b7a
config_hash: 8e4b2d3ac55a0b2cdecfba99a1925e6f
25 changes: 25 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,30 @@
# Changelog

## 0.21.0 (2026-04-13)

Full Changelog: [v0.20.0...v0.21.0](https://github.com/fragment-dev/fragment-typescript/compare/v0.20.0...v0.21.0)

### Features

* **api:** update SDK from prod (511af1bcd4001be60c589fed1d05a5814e416679) ([484943a](https://github.com/fragment-dev/fragment-typescript/commit/484943a2f97b25aa4949d112a892884a03f28534))
* **api:** update SDK from prod (523b1fdd6cc6b5732ccdad5095c21f69fe1f7489) ([91ee3b5](https://github.com/fragment-dev/fragment-typescript/commit/91ee3b5837e439946ba9c2a4beff1b6e44c7bca0))
* **api:** update SDK from prod (729db28098a20ebc22e879a2cd1c6ad860f9ce4c) ([99ffd26](https://github.com/fragment-dev/fragment-typescript/commit/99ffd26009fa316ca340db2e8e83155a970b2c62))
* **api:** update SDK from prod (8051461980fb65468797d0b82dfa42dee9014004) ([79a14d1](https://github.com/fragment-dev/fragment-typescript/commit/79a14d16c8774e9226d928a7634d1c26cf2044b0))
* **api:** update SDK from prod (a5eb093078fe5947a299bccafd30a0c7f2e90790) ([a6843ba](https://github.com/fragment-dev/fragment-typescript/commit/a6843ba30ed876c02ace9e0746986ee1ce0c6e93))
* **api:** update SDK from prod (b3080493fb6bb118abdd03644b9ef6f59d417a3c) ([b0123c3](https://github.com/fragment-dev/fragment-typescript/commit/b0123c3ca8e5b901d945eca65808ff5948bb357b))
* **api:** update SDK from prod (b8f6f1940acd3d10fc17aaeb59cd75281f3c6436) ([68cebf4](https://github.com/fragment-dev/fragment-typescript/commit/68cebf44aacd4feba688a21d83d1848aa4a1e684))
* **api:** update SDK from prod (e1ebb9e4d62034855202a8ff99690880c072d953) ([aeff356](https://github.com/fragment-dev/fragment-typescript/commit/aeff3566c323f4bb81fc93ea3c9c9812b493d4a1))


### Bug Fixes

* **internal:** gitignore generated `oidc` dir ([b489349](https://github.com/fragment-dev/fragment-typescript/commit/b4893492a7003c791297067170805d88e1a08a72))


### Chores

* **internal:** codegen related update ([558e630](https://github.com/fragment-dev/fragment-typescript/commit/558e630e873639730aa5c1a967ada782791378d5))

## 0.20.0 (2026-03-27)

Full Changelog: [v0.19.0...v0.20.0](https://github.com/fragment-dev/fragment-typescript/compare/v0.19.0...v0.20.0)
Expand Down
2 changes: 0 additions & 2 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ Types:
- <code><a href="./src/resources/transactions.ts">TransactionRetrieveResponse</a></code>
- <code><a href="./src/resources/transactions.ts">TransactionUpdateResponse</a></code>
- <code><a href="./src/resources/transactions.ts">TransactionListResponse</a></code>
- <code><a href="./src/resources/transactions.ts">TransactionCreateAllocationsResponse</a></code>
- <code><a href="./src/resources/transactions.ts">TransactionListHistoryResponse</a></code>
- <code><a href="./src/resources/transactions.ts">TransactionSearchResponse</a></code>
- <code><a href="./src/resources/transactions.ts">TransactionSearchAllocationsResponse</a></code>
Expand All @@ -80,7 +79,6 @@ Methods:
- <code title="get /transactions/{transaction_ref}">client.transactions.<a href="./src/resources/transactions.ts">retrieve</a>(transactionRef) -> TransactionRetrieveResponse</code>
- <code title="patch /transactions/{transaction_ref}">client.transactions.<a href="./src/resources/transactions.ts">update</a>(transactionRef, { ...params }) -> TransactionUpdateResponse</code>
- <code title="get /transactions">client.transactions.<a href="./src/resources/transactions.ts">list</a>({ ...params }) -> TransactionListResponse</code>
- <code title="post /transactions/{transaction_ref}/allocations">client.transactions.<a href="./src/resources/transactions.ts">createAllocations</a>(transactionRef, { ...params }) -> TransactionCreateAllocationsResponse</code>
- <code title="get /transactions/{transaction_ref}/history">client.transactions.<a href="./src/resources/transactions.ts">listHistory</a>(transactionRef) -> TransactionListHistoryResponse</code>
- <code title="post /transactions/search">client.transactions.<a href="./src/resources/transactions.ts">search</a>({ ...params }) -> TransactionSearchResponse</code>
- <code title="post /transactions/allocations/search">client.transactions.<a href="./src/resources/transactions.ts">searchAllocations</a>({ ...params }) -> TransactionSearchAllocationsResponse</code>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fragment-dev/ts-node",
"version": "0.20.0",
"version": "0.21.0",
"description": "The official TypeScript library for the Fragment API",
"author": "Fragment <>",
"types": "dist/index.d.ts",
Expand Down
10 changes: 6 additions & 4 deletions src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ import {
import { Role, RoleCreateParams, RoleCreateResponse, RoleListResponse, Roles } from './resources/roles';
import {
Transaction,
TransactionCreateAllocationsParams,
TransactionCreateAllocationsResponse,
TransactionCreateParams,
TransactionCreateResponse,
TransactionListHistoryResponse,
Expand Down Expand Up @@ -843,6 +841,9 @@ export class Fragment {

static toFile = Uploads.toFile;

/**
* External account management operations
*/
externalAccounts: API.ExternalAccounts = new API.ExternalAccounts(this);
/**
* Invoice management operations
Expand All @@ -860,6 +861,9 @@ export class Fragment {
* Transaction sync operations
*/
transactions: API.Transactions = new API.Transactions(this);
/**
* User management operations
*/
users: API.Users = new API.Users(this);
}

Expand Down Expand Up @@ -919,14 +923,12 @@ export declare namespace Fragment {
type TransactionRetrieveResponse as TransactionRetrieveResponse,
type TransactionUpdateResponse as TransactionUpdateResponse,
type TransactionListResponse as TransactionListResponse,
type TransactionCreateAllocationsResponse as TransactionCreateAllocationsResponse,
type TransactionListHistoryResponse as TransactionListHistoryResponse,
type TransactionSearchResponse as TransactionSearchResponse,
type TransactionSearchAllocationsResponse as TransactionSearchAllocationsResponse,
type TransactionCreateParams as TransactionCreateParams,
type TransactionUpdateParams as TransactionUpdateParams,
type TransactionListParams as TransactionListParams,
type TransactionCreateAllocationsParams as TransactionCreateAllocationsParams,
type TransactionSearchParams as TransactionSearchParams,
type TransactionSearchAllocationsParams as TransactionSearchAllocationsParams,
};
Expand Down
4 changes: 2 additions & 2 deletions src/internal/utils/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
*/
export const readEnv = (env: string): string | undefined => {
if (typeof (globalThis as any).process !== 'undefined') {
return (globalThis as any).process.env?.[env]?.trim() ?? undefined;
return (globalThis as any).process.env?.[env]?.trim() || undefined;
}
if (typeof (globalThis as any).Deno !== 'undefined') {
return (globalThis as any).Deno.env?.get?.(env)?.trim();
return (globalThis as any).Deno.env?.get?.(env)?.trim() || undefined;
}
return undefined;
};
23 changes: 13 additions & 10 deletions src/resources/external-accounts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@ import { APIResource } from '../core/resource';
import { APIPromise } from '../core/api-promise';
import { RequestOptions } from '../internal/request-options';

/**
* External account management operations
*/
export class ExternalAccounts extends APIResource {
/**
* Creates a new external account
* Creates an external account.
*
* @example
* ```ts
Expand All @@ -25,7 +28,7 @@ export class ExternalAccounts extends APIResource {
}

/**
* Lists all external accounts for the workspace
* Lists all external accounts.
*
* @example
* ```ts
Expand All @@ -39,47 +42,47 @@ export class ExternalAccounts extends APIResource {
}

/**
* External account object
* External account object.
*/
export interface ExternalAccount {
/**
* Fragment-generated unique ID for the external account
* FRAGMENT generated unique ID.
*/
id: string;

/**
* User-provided external ID
* User-provided unique ID.
*/
external_id: string;

/**
* Human-readable name for the external account
* Name of the account.
*/
name: string;
}

export interface ExternalAccountCreateResponse {
/**
* External account object
* External account object.
*/
data: ExternalAccount;
}

/**
* List of external accounts
* List of external accounts.
*/
export interface ExternalAccountListResponse {
data: Array<ExternalAccount>;
}

export interface ExternalAccountCreateParams {
/**
* External ID for the account (user-provided, unique, mutable)
* User-provided unique ID.
*/
external_id: string;

/**
* Human-readable name for the external account (mutable)
* Name of the account.
*/
name: string;
}
Expand Down
2 changes: 0 additions & 2 deletions src/resources/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,12 @@ export {
type TransactionRetrieveResponse,
type TransactionUpdateResponse,
type TransactionListResponse,
type TransactionCreateAllocationsResponse,
type TransactionListHistoryResponse,
type TransactionSearchResponse,
type TransactionSearchAllocationsResponse,
type TransactionCreateParams,
type TransactionUpdateParams,
type TransactionListParams,
type TransactionCreateAllocationsParams,
type TransactionSearchParams,
type TransactionSearchAllocationsParams,
} from './transactions';
Expand Down
Loading
Loading