degroshi 1.0.0-beta.2 → 1.0.0-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,44 @@
3
3
  Versions follow semver; the major version follows the API's (v1). The API part of each entry comes from comparing the
4
4
  public spec with the last release (oasdiff); the SDK part lists SDK-only changes.
5
5
 
6
+ ## 1.0.0-beta.3 (2026-11-16)
7
+
8
+ ### API
9
+
10
+ - Webhook endpoints can be managed with a token that holds `webhooks:manage` (the `full` preset has it):
11
+ `GET`/`POST /v1/webhooks`, `GET`/`PATCH`/`DELETE /v1/webhooks/{id}`, `pause`, `resume`, `rotate-secret`, `test`,
12
+ `resend`, `stats`, `deliveries` and a delivery's `resend`, plus `GET /v1/webhooks/event-types`. A token manages the
13
+ endpoints of the request's space alone whose every event type its scopes read; `space_ids` may be left out on
14
+ create (it can name only that space, else 403 `WHK_009`), and an event type the token can't read answers 403
15
+ `AUTH_007` with `details.required_scope`. The answers to creating and rotating carry the secret; a token can't
16
+ read it back. `CreateEndpointRequest.space_ids` is no longer required.
17
+ - `GET /v1/transactions/day-totals`: every day and the response carry `count`, how many rows the list shows for the
18
+ same filters (transfers and cancelled rows included). A day with rows but no money (transfers alone) now appears
19
+ with `spent` and `earned` at 0. Every list filter it already took is now documented on it: places, project,
20
+ counterparty, recurring rule, import, tax review, `include_portfolio_transfers` and `one_row_per_transfer`.
21
+ - `GET /v1/analytics/net-worth` takes `share`. With `account_ids` (an account's own chart), `whole` shows those
22
+ accounts as they are: the whole balance and every operation, an account shared with you included. Without
23
+ `account_ids`, net worth counts your part, as before.
24
+ - `share` on the analytics endpoints and `GET /v1/transactions/day-totals` is documented: `mine` (your part of an
25
+ account shared with you, the default) or `whole` (the whole account). It used to read "Reserved".
26
+ - `AccountBrand.color`: our swatch (a hex colour) for a curated bank or exchange domain, which a provider's folder
27
+ uses as its tint; absent for other domains.
28
+ - A refused key gets a code that says why: `AUTH_041` (not a whole key), `AUTH_042` (no such key), `AUTH_043`
29
+ (expired, `details.expired_at`) and `AUTH_044` (revoked, `details.revoked_at`). They all used to be `AUTH_048`,
30
+ which now covers only the remaining cases; all of them are still 401. A key is also accepted as
31
+ `Authorization: Bearer dg_pat_…`.
32
+ - New webhook signing secrets start with `dg_whsec_`; secrets starting with `whsec_` keep working.
33
+ - A shared account says who has access: `grant.people` (on an account shared with you) lists the owner first, then
34
+ everyone with access, with `user_id`, `name` (the owner's full name, everyone else's first name), `first_name`,
35
+ `avatar_url`, `role` (`owner`, `balance`, `view` or `write`) and `is_owner`; `shared_with` (on your own account)
36
+ gains `user_id` and `avatar_url` once a person accepts. The account sharing fields are no longer marked reserved.
37
+
38
+ ### SDK
39
+
40
+ - `degroshi.webhooks` manages endpoints: `eventTypes`, `list`, `get`, `create`, `update`, `delete`, `pause`, `resume`,
41
+ `rotateSecret`, `sendTest`, `stats`, `deliveries`, `iterateDeliveries` (follows `meta.next_cursor`), `delivery`,
42
+ `resendDelivery` and `resend`, beside `verify`. `create` isn't retried: a second try could make a second endpoint.
43
+
6
44
  ## 1.0.0-beta.2 (2026-11-14)
7
45
 
8
46
  ### API
package/dist/client.d.ts CHANGED
@@ -160,13 +160,47 @@ export declare class Degroshi {
160
160
  iterate: (query?: QueryOf<T.ListEventsData>) => AsyncGenerator<WebhookEvent, any, any>;
161
161
  get: (id: string) => Promise<WebhookEvent>;
162
162
  };
163
- /** Webhook signatures: `await degroshi.webhooks.verify(rawBody, request.headers.get("Degroshi-Signature"), secret)`. */
163
+ /**
164
+ * Webhook endpoints of the space (a token with `webhooks:manage`, for event types its scopes read), and signatures:
165
+ * `await degroshi.webhooks.verify(rawBody, request.headers.get("Degroshi-Signature"), secret)`.
166
+ */
164
167
  readonly webhooks: {
168
+ /** The event types an endpoint can take, with a made-up sample of each. */
169
+ eventTypes: () => Promise<T.CatalogEntry[]>;
170
+ list: () => Promise<T.EndpointResponse[]>;
171
+ get: (id: string) => Promise<T.EndpointResponse>;
172
+ /**
173
+ * A new endpoint in the space; the answer carries its signing secret, which a token can't read back. Not retried:
174
+ * a second try could make a second endpoint.
175
+ */
176
+ create: (body: BodyOf<T.CreateWebhookData>) => Promise<T.CreatedEndpointResponse>;
177
+ update: (id: string, body: BodyOf<T.UpdateWebhookData>) => Promise<T.EndpointResponse>;
178
+ delete: (id: string) => Promise<undefined>;
179
+ pause: (id: string) => Promise<T.EndpointResponse>;
180
+ resume: (id: string) => Promise<T.EndpointResponse>;
181
+ /** A new secret; the old one keeps signing for `overlap_hours` (0, 1, 24 or 72). */
182
+ rotateSecret: (id: string, body: BodyOf<T.RotateWebhookSecretData>) => Promise<T.SecretResponse>;
183
+ /** A made-up event (`webhook.test` without a type), marked `test: true`. */
184
+ sendTest: (id: string, body?: BodyOf<T.SendWebhookTestData>) => Promise<T.DeliverySummary>;
185
+ stats: (id: string, query?: QueryOf<T.GetWebhookStatsData>) => Promise<T.StatsResponse>;
186
+ /** One page of the endpoint's log, newest first: `data` and `meta.next_cursor`. */
187
+ deliveries: (id: string, query?: QueryOf<T.ListWebhookDeliveriesData>) => Promise<{
188
+ data: T.DeliverySummary[];
189
+ meta: T.DeliveryCursorMeta;
190
+ }>;
191
+ /** Every delivery of the log, following `meta.next_cursor`. */
192
+ iterateDeliveries: (id: string, query?: QueryOf<T.ListWebhookDeliveriesData>) => AsyncGenerator<T.DeliverySummary, any, any>;
193
+ delivery: (id: string, deliveryId: string) => Promise<T.DeliveryDetail>;
194
+ resendDelivery: (id: string, deliveryId: string) => Promise<T.DeliverySummary>;
195
+ /** The failed and skipped deliveries between `from` and `to`, again (at most 30 days). */
196
+ resend: (id: string, body: BodyOf<T.ResendWebhookDeliveriesData>) => Promise<T.ResendRangeResponse>;
165
197
  verify: (rawBody: string | Uint8Array | ArrayBuffer, header: string | null | undefined, secret: string, options?: VerifyOptions) => Promise<WebhookEvent>;
166
198
  };
167
199
  private iterateTransactions;
168
200
  private eventPage;
169
201
  private iterateEvents;
202
+ private deliveryPage;
203
+ private iterateDeliveryRows;
170
204
  private iteratePushedRows;
171
205
  }
172
206
  export { DegroshiError };
package/dist/client.js CHANGED
@@ -216,8 +216,47 @@ export class Degroshi {
216
216
  iterate: (query = {}) => this.iterateEvents(query),
217
217
  get: (id) => this.one(api.getEvent({ client: this.client, path: { id } })),
218
218
  };
219
- /** Webhook signatures: `await degroshi.webhooks.verify(rawBody, request.headers.get("Degroshi-Signature"), secret)`. */
219
+ /**
220
+ * Webhook endpoints of the space (a token with `webhooks:manage`, for event types its scopes read), and signatures:
221
+ * `await degroshi.webhooks.verify(rawBody, request.headers.get("Degroshi-Signature"), secret)`.
222
+ */
220
223
  webhooks = {
224
+ /** The event types an endpoint can take, with a made-up sample of each. */
225
+ eventTypes: () => this.one(api.listWebhookEventTypes({ client: this.client })),
226
+ list: () => this.one(api.listWebhooks({ client: this.client })),
227
+ get: (id) => this.one(api.getWebhook({ client: this.client, path: { id } })),
228
+ /**
229
+ * A new endpoint in the space; the answer carries its signing secret, which a token can't read back. Not retried:
230
+ * a second try could make a second endpoint.
231
+ */
232
+ create: (body) => this.one(api.createWebhook({ client: this.client, body })),
233
+ update: (id, body) => this.one(api.updateWebhook({ client: this.client, path: { id }, body })),
234
+ delete: (id) => this.envelope(api.deleteWebhook({ client: this.client, path: { id } })).then(() => undefined),
235
+ pause: (id) => this.one(api.pauseWebhook({ client: this.client, path: { id } })),
236
+ resume: (id) => this.one(api.resumeWebhook({ client: this.client, path: { id } })),
237
+ /** A new secret; the old one keeps signing for `overlap_hours` (0, 1, 24 or 72). */
238
+ rotateSecret: (id, body) => this.one(api.rotateWebhookSecret({ client: this.client, path: { id }, body })),
239
+ /** A made-up event (`webhook.test` without a type), marked `test: true`. */
240
+ sendTest: (id, body = {}) => this.one(api.sendWebhookTest({ client: this.client, path: { id }, body })),
241
+ stats: (id, query) => this.one(api.getWebhookStats({ client: this.client, path: { id }, query })),
242
+ /** One page of the endpoint's log, newest first: `data` and `meta.next_cursor`. */
243
+ deliveries: (id, query) => this.deliveryPage(id, query),
244
+ /** Every delivery of the log, following `meta.next_cursor`. */
245
+ iterateDeliveries: (id, query = {}) => this.iterateDeliveryRows(id, query),
246
+ delivery: (id, deliveryId) => this.one(api.getWebhookDelivery({
247
+ client: this.client,
248
+ path: { id, delivery_id: deliveryId },
249
+ })),
250
+ resendDelivery: (id, deliveryId) => this.one(api.resendWebhookDelivery({
251
+ client: this.client,
252
+ path: { id, delivery_id: deliveryId },
253
+ })),
254
+ /** The failed and skipped deliveries between `from` and `to`, again (at most 30 days). */
255
+ resend: (id, body) => this.one(api.resendWebhookDeliveries({
256
+ client: this.client,
257
+ path: { id },
258
+ body,
259
+ })),
221
260
  verify: (rawBody, header, secret, options) => verifyWebhook(rawBody, header, secret, options),
222
261
  };
223
262
  async *iterateTransactions(query) {
@@ -252,6 +291,23 @@ export class Degroshi {
252
291
  cursor = last.id;
253
292
  }
254
293
  }
294
+ async deliveryPage(id, query) {
295
+ const envelope = await this.envelope(api.listWebhookDeliveries({ client: this.client, path: { id }, query }));
296
+ return {
297
+ data: (envelope.data ?? []),
298
+ meta: (envelope.meta ?? { has_more: false }),
299
+ };
300
+ }
301
+ async *iterateDeliveryRows(id, query) {
302
+ let cursor = query.cursor;
303
+ for (;;) {
304
+ const page = await this.deliveryPage(id, { ...query, cursor });
305
+ yield* page.data;
306
+ if (!page.meta.has_more || !page.meta.next_cursor)
307
+ return;
308
+ cursor = page.meta.next_cursor;
309
+ }
310
+ }
255
311
  async *iteratePushedRows(id, query) {
256
312
  let cursor = query.cursor;
257
313
  for (;;) {
@@ -1 +1 @@
1
- {"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,YAAY,EACZ,YAAY,GACb,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,GAAG,MAAM,wBAAwB,CAAC;AAE9C,OAAO,EACL,kBAAkB,EAClB,aAAa,EACb,WAAW,EACX,QAAQ,GACT,MAAM,a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AC,MAAM,CAAC;QAC1B,SAAS,CAAC;YACR,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,EAAE,EAAE,EAAE,GAAG,KAAK,EAAE,MAAM,EAAE,CAAC,CAAC;YAC/D,KAAK,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;YACjB,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW;gBAAE,OAAO;YAC1D,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC;QACjC,CAAC;IACH,CAAC;IAEO,KAAK,CAAC,CAAC,iBAAiB,CAC9B,EAAU,EACV,KAA4C;QAE5C,IAAI,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;QAC1B,SAAS,CAAC;YACR,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE,EAAE,EAAE,GAAG,KAAK,EAAE,MAAM,EAAE,CAAC,CAAC;YACrE,KAAK,CAAC,CAAC,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC;YACxB,IAAI,CAAC,IAAI,CAAC,WAAW;gBAAE,OAAO;YAC9B,MAAM,GAAG,IAAI,CAAC,WAAW,CAAC;QAC5B,CAAC;IACH,CAAC;CACF;AAED,OAAO,EAAE,aAAa,EAAE,CAAC"}
@@ -1,2 +1,2 @@
1
- export { createSource, createTransaction, deleteSource, deleteSourceTransaction, deleteTransaction, getAccount, getAccountsNetWorth, getAnalyticsCashFlow, getAnalyticsCategories, getAnalyticsMerchants, getAnalyticsNetWorth, getAnalyticsSpending, getAnalyticsSummary, getAnalyticsTrends, getBudget, getCategory, getEvent, getRecurringTransaction, getSource, getTransaction, getTransactionDayTotals, listAccounts, listBudgets, listCategories, listChanges, listEvents, listMySpaces, listRecurringOccurrences, listRecurringTransactions, listSources, listSourceTransactions, listTransactions, type Options, pushSourceBalances, pushSourceTransactions, updateSource, updateTransaction, upsertSourceAccount } from './sdk.gen.js';
2
- export type { AccountBalanceUpdatedEvent, AccountBrand, AccountConnection, AccountListResponse, AccountListResponseListEnvelope, AccountResponse, AccountResponseEnvelope, AccountsCurrencyInfo, AccountSource, AccountType, AccountWithConvertedBalance, AllocationDisplay, AmountChangeResponse, AnalyticsCurrencyInfo, BalanceBatchRequest, BalanceBatchResponse, BalanceBatchResponseEnvelope, BalanceItem, BalanceResult, BrandResponse, BudgetAllocationResponse, BudgetDisplay, BudgetListItem, BudgetListItemListEnvelope, BudgetPeriod, BudgetResponse, BudgetResponseEnvelope, BudgetThresholdReachedEvent, CashFlowPoint, CashFlowResponse, CashFlowResponseEnvelope, Category, CategoryAnalyticsItem, CategoryAnalyticsResponse, CategoryAnalyticsResponseEnvelope, CategoryEnvelope, CategoryListEnvelope, CategoryReview, CategorySummary, CategoryType, Change, ChangesResponse, ChangesResponseEnvelope, ClientOptions, ConnectionStatusChangedEvent, CreatePlaceRequest, CreateSourceData, CreateSourceError, CreateSourceErrors, CreateSourceRequest, CreateSourceResponse, CreateSourceResponses, CreateTransactionData, CreateTransactionError, CreateTransactionErrors, CreateTransactionRequest, CreateTransactionResponse, CreateTransactionResponses, DateRange, DayTotal, DayTotalsResponse, DayTotalsResponseEnvelope, DeleteData, DeleteDataEnvelope, DeleteSourceData, DeleteSourceError, DeleteSourceErrors, DeleteSourceResponse, DeleteSourceResponses, DeleteSourceTransactionData, DeleteSourceTransactionError, DeleteSourceTransactionErrors, DeleteSourceTransactionResponse, DeleteSourceTransactionResponses, DeleteTransactionData, DeleteTransactionError, DeleteTransactionErrors, DeleteTransactionResponse, DeleteTransactionResponses, ErrorBody, ErrorResponse, Event, EventCursorMeta, EventEnvelope, EventListPage, EventListPageEnvelope, Frequency, GetAccountData, GetAccountError, GetAccountErrors, GetAccountResponse, GetAccountResponses, GetAccountsNetWorthData, GetAccountsNetWorthError, GetAccountsNetWorthErrors, GetAccountsNetWorthResponse, GetAccountsNetWorthResponses, GetAnalyticsCashFlowData, GetAnalyticsCashFlowError, GetAnalyticsCashFlowErrors, GetAnalyticsCashFlowResponse, GetAnalyticsCashFlowResponses, GetAnalyticsCategoriesData, GetAnalyticsCategoriesError, GetAnalyticsCategoriesErrors, GetAnalyticsCategoriesResponse, GetAnalyticsCategoriesResponses, GetAnalyticsMerchantsData, GetAnalyticsMerchantsError, GetAnalyticsMerchantsErrors, GetAnalyticsMerchantsResponse, GetAnalyticsMerchantsResponses, GetAnalyticsNetWorthData, GetAnalyticsNetWorthError, GetAnalyticsNetWorthErrors, GetAnalyticsNetWorthResponse, GetAnalyticsNetWorthResponses, GetAnalyticsSpendingData, GetAnalyticsSpendingError, GetAnalyticsSpendingErrors, GetAnalyticsSpendingResponse, GetAnalyticsSpendingResponses, GetAnalyticsSummaryData, GetAnalyticsSummaryError, GetAnalyticsSummaryErrors, GetAnalyticsSummaryResponse, GetAnalyticsSummaryResponses, GetAnalyticsTrendsData, GetAnalyticsTrendsError, GetAnalyticsTrendsErrors, GetAnalyticsTrendsResponse, GetAnalyticsTrendsResponses, GetBudgetData, GetBudgetError, GetBudgetErrors, GetBudgetResponse, GetBudgetResponses, GetCategoryData, GetCategoryError, GetCategoryErrors, GetCategoryResponse, GetCategoryResponses, GetEventData, GetEventError, GetEventErrors, GetEventResponse, GetEventResponses, GetRecurringTransactionData, GetRecurringTransactionError, GetRecurringTransactionErrors, GetRecurringTransactionResponse, GetRecurringTransactionResponses, GetSourceData, GetSourceError, GetSourceErrors, GetSourceResponse, GetSourceResponses, GetTransactionData, GetTransactionDayTotalsData, GetTransactionDayTotalsError, GetTransactionDayTotalsErrors, GetTransactionDayTotalsResponse, GetTransactionDayTotalsResponses, GetTransactionError, GetTransactionErrors, GetTransactionResponse, GetTransactionResponses, GradientType, GrantInfo, ImportCompletedEvent, InterestPayout, LastPaidResponse, LinkedActivityLeg, LinkedActivityResponse, ListAccountsData, ListAccountsError, ListAccountsErrors, ListAccountsResponse, ListAccountsResponses, ListBudgetsData, ListBudgetsError, ListBudgetsErrors, ListBudgetsResponse, ListBudgetsResponses, ListCategoriesData, ListCategoriesError, ListCategoriesErrors, ListCategoriesResponse, ListCategoriesResponses, ListChangesData, ListChangesError, ListChangesErrors, ListChangesResponse, ListChangesResponses, ListEventsData, ListEventsError, ListEventsErrors, ListEventsResponse, ListEventsResponses, ListMySpacesData, ListMySpacesError, ListMySpacesErrors, ListMySpacesResponse, ListMySpacesResponses, ListRecurringOccurrencesData, ListRecurringOccurrencesError, ListRecurringOccurrencesErrors, ListRecurringOccurrencesResponse, ListRecurringOccurrencesResponses, ListRecurringTransactionsData, ListRecurringTransactionsError, ListRecurringTransactionsErrors, ListRecurringTransactionsResponse, ListRecurringTransactionsResponses, ListSourcesData, ListSourcesError, ListSourcesErrors, ListSourcesResponse, ListSourcesResponses, ListSourceTransactionsData, ListSourceTransactionsError, ListSourceTransactionsErrors, ListSourceTransactionsResponse, ListSourceTransactionsResponses, ListTransactionsData, ListTransactionsError, ListTransactionsErrors, ListTransactionsResponse, ListTransactionsResponses, MerchantActivity, MerchantAnalyticsResponse, MerchantAnalyticsResponseEnvelope, MerchantCategory, MerchantFigures, Meta, Mode, MySpaceResponse, MySpaceResponseListEnvelope, NetWorthPoint, NetWorthResponse, NetWorthResponseEnvelope, NetWorthTimeSeriesResponse, NetWorthTimeSeriesResponseEnvelope, ObjectType, OccurrenceDayTotal, OccurrenceDisplay, OccurrenceResponse, OccurrencesResponse, OccurrencesResponseEnvelope, OccurrenceStatus, OccurrenceTotals, PlacesKind, PointName, PossibleDuplicate, Precision, PushBatchRequest, PushBatchResponse, PushBatchResponseEnvelope, PushedPage, PushedPageEnvelope, PushedRow, PushItem, PushItemError, PushItemResult, PushItemResultEnvelope, PushOriginal, PushSourceBalancesData, PushSourceBalancesError, PushSourceBalancesErrors, PushSourceBalancesResponse, PushSourceBalancesResponses, PushSourceTransactionsData, PushSourceTransactionsError, PushSourceTransactionsErrors, PushSourceTransactionsResponse, PushSourceTransactionsResponses, ReactionsSummary, RecurringDueEvent, RecurringOccurrenceRef, RecurringResponse, RecurringResponseEnvelope, RecurringResponseListEnvelope, RecurringTransactionsKind, SharedWith, SourceResponse, SourceResponseEnvelope, SourceResponseListEnvelope, SourcesKind, SpendingResponse, SpendingResponseEnvelope, Status, SummaryResponse, SummaryResponseEnvelope, TransactionAmountInfo, TransactionAmountsResponse, TransactionCreatedEvent, TransactionDeletedEvent, TransactionExternalDataResponse, TransactionFinancialsResponse, TransactionListResponse, TransactionListResponseEnvelope, TransactionMetadataResponse, TransactionPlace, TransactionRelationshipsResponse, TransactionResponse, TransactionResponseEnvelope, TransactionsBulkUpdatedEvent, TransactionStatus, TransactionsTransactionDirection, TransactionsTransactionType, TransactionTag, TransactionTimestampsResponse, TransactionTreatment, TransactionUpdatedEvent, TransferDisplay, TransferResponse, TrendComparison, TrendsResponse, TrendsResponseEnvelope, UncategorizedActivity, UncategorizedSpending, UpdateSourceData, UpdateSourceError, UpdateSourceErrors, UpdateSourceRequest, UpdateSourceResponse, UpdateSourceResponses, UpdateTransactionData, UpdateTransactionError, UpdateTransactionErrors, UpdateTransactionRequest, UpdateTransactionResponse, UpdateTransactionResponses, UpsertAccountRequest, UpsertAccountResponse, UpsertAccountResponseEnvelope, UpsertSourceAccountData, UpsertSourceAccountError, UpsertSourceAccountErrors, UpsertSourceAccountResponse, UpsertSourceAccountResponses, WebhookAccountBalanceUpdatedWebhookPayload, WebhookAccountBalanceUpdatedWebhookRequest, WebhookBudgetThresholdReachedWebhookPayload, WebhookBudgetThresholdReachedWebhookRequest, WebhookConnectionStatusChangedWebhookPayload, WebhookConnectionStatusChangedWebhookRequest, WebhookEvent, WebhookImportCompletedWebhookPayload, WebhookImportCompletedWebhookRequest, WebhookRecurringDueWebhookPayload, WebhookRecurringDueWebhookRequest, Webhooks, WebhookTransactionCreatedWebhookPayload, WebhookTransactionCreatedWebhookRequest, WebhookTransactionDeletedWebhookPayload, WebhookTransactionDeletedWebhookRequest, WebhookTransactionsBulkUpdatedWebhookPayload, WebhookTransactionsBulkUpdatedWebhookRequest, WebhookTransactionUpdatedWebhookPayload, WebhookTransactionUpdatedWebhookRequest } from './types.gen.js';
1
+ export { createSource, createTransaction, createWebhook, deleteSource, deleteSourceTransaction, deleteTransaction, deleteWebhook, getAccount, getAccountsNetWorth, getAnalyticsCashFlow, getAnalyticsCategories, getAnalyticsMerchants, getAnalyticsNetWorth, getAnalyticsSpending, getAnalyticsSummary, getAnalyticsTrends, getBudget, getCategory, getEvent, getRecurringTransaction, getSource, getTransaction, getTransactionDayTotals, getWebhook, getWebhookDelivery, getWebhookStats, listAccounts, listBudgets, listCategories, listChanges, listEvents, listMySpaces, listRecurringOccurrences, listRecurringTransactions, listSources, listSourceTransactions, listTransactions, listWebhookDeliveries, listWebhookEventTypes, listWebhooks, type Options, pauseWebhook, pushSourceBalances, pushSourceTransactions, resendWebhookDeliveries, resendWebhookDelivery, resumeWebhook, rotateWebhookSecret, sendWebhookTest, updateSource, updateTransaction, updateWebhook, upsertSourceAccount } from './sdk.gen.js';
2
+ export type { AccountBalanceUpdatedEvent, AccountBrand, AccountConnection, AccountListResponse, AccountListResponseListEnvelope, AccountResponse, AccountResponseEnvelope, AccountsCurrencyInfo, AccountSource, AccountType, AccountWithConvertedBalance, AllocationDisplay, AmountChangeResponse, AnalyticsCurrencyInfo, AttemptResponse, BalanceBatchRequest, BalanceBatchResponse, BalanceBatchResponseEnvelope, BalanceItem, BalanceResult, BrandResponse, BudgetAllocationResponse, BudgetDisplay, BudgetListItem, BudgetListItemListEnvelope, BudgetPeriod, BudgetResponse, BudgetResponseEnvelope, BudgetThresholdReachedEvent, CashFlowPoint, CashFlowResponse, CashFlowResponseEnvelope, CatalogEntry, CatalogEntryListEnvelope, Category, CategoryAnalyticsItem, CategoryAnalyticsResponse, CategoryAnalyticsResponseEnvelope, CategoryEnvelope, CategoryListEnvelope, CategoryReview, CategorySummary, CategoryType, Change, ChangesResponse, ChangesResponseEnvelope, ClientOptions, ConnectionStatusChangedEvent, CreatedEndpointResponse, CreatedEndpointResponseEnvelope, CreateEndpointRequest, CreatePlaceRequest, CreateSourceData, CreateSourceError, CreateSourceErrors, CreateSourceRequest, CreateSourceResponse, CreateSourceResponses, CreateTransactionData, CreateTransactionError, CreateTransactionErrors, CreateTransactionRequest, CreateTransactionResponse, CreateTransactionResponses, CreateWebhookData, CreateWebhookError, CreateWebhookErrors, CreateWebhookResponse, CreateWebhookResponses, DateRange, DayTotal, DayTotalsResponse, DayTotalsResponseEnvelope, DeleteData, DeleteDataEnvelope, DeleteSourceData, DeleteSourceError, DeleteSourceErrors, DeleteSourceResponse, DeleteSourceResponses, DeleteSourceTransactionData, DeleteSourceTransactionError, DeleteSourceTransactionErrors, DeleteSourceTransactionResponse, DeleteSourceTransactionResponses, DeleteTransactionData, DeleteTransactionError, DeleteTransactionErrors, DeleteTransactionResponse, DeleteTransactionResponses, DeleteWebhookData, DeleteWebhookError, DeleteWebhookErrors, DeleteWebhookResponse, DeleteWebhookResponses, DeliveryCursorMeta, DeliveryDetail, DeliveryDetailEnvelope, DeliveryPage, DeliveryPageEnvelope, DeliveryRequest, DeliverySummary, DeliverySummaryEnvelope, EndpointHealth, EndpointResponse, EndpointResponseEnvelope, EndpointResponseListEnvelope, ErrorBody, ErrorResponse, Event, EventCursorMeta, EventEnvelope, EventListPage, EventListPageEnvelope, Frequency, GetAccountData, GetAccountError, GetAccountErrors, GetAccountResponse, GetAccountResponses, GetAccountsNetWorthData, GetAccountsNetWorthError, GetAccountsNetWorthErrors, GetAccountsNetWorthResponse, GetAccountsNetWorthResponses, GetAnalyticsCashFlowData, GetAnalyticsCashFlowError, GetAnalyticsCashFlowErrors, GetAnalyticsCashFlowResponse, GetAnalyticsCashFlowResponses, GetAnalyticsCategoriesData, GetAnalyticsCategoriesError, GetAnalyticsCategoriesErrors, GetAnalyticsCategoriesResponse, GetAnalyticsCategoriesResponses, GetAnalyticsMerchantsData, GetAnalyticsMerchantsError, GetAnalyticsMerchantsErrors, GetAnalyticsMerchantsResponse, GetAnalyticsMerchantsResponses, GetAnalyticsNetWorthData, GetAnalyticsNetWorthError, GetAnalyticsNetWorthErrors, GetAnalyticsNetWorthResponse, GetAnalyticsNetWorthResponses, GetAnalyticsSpendingData, GetAnalyticsSpendingError, GetAnalyticsSpendingErrors, GetAnalyticsSpendingResponse, GetAnalyticsSpendingResponses, GetAnalyticsSummaryData, GetAnalyticsSummaryError, GetAnalyticsSummaryErrors, GetAnalyticsSummaryResponse, GetAnalyticsSummaryResponses, GetAnalyticsTrendsData, GetAnalyticsTrendsError, GetAnalyticsTrendsErrors, GetAnalyticsTrendsResponse, GetAnalyticsTrendsResponses, GetBudgetData, GetBudgetError, GetBudgetErrors, GetBudgetResponse, GetBudgetResponses, GetCategoryData, GetCategoryError, GetCategoryErrors, GetCategoryResponse, GetCategoryResponses, GetEventData, GetEventError, GetEventErrors, GetEventResponse, GetEventResponses, GetRecurringTransactionData, GetRecurringTransactionError, GetRecurringTransactionErrors, GetRecurringTransactionResponse, GetRecurringTransactionResponses, GetSourceData, GetSourceError, GetSourceErrors, GetSourceResponse, GetSourceResponses, GetTransactionData, GetTransactionDayTotalsData, GetTransactionDayTotalsError, GetTransactionDayTotalsErrors, GetTransactionDayTotalsResponse, GetTransactionDayTotalsResponses, GetTransactionError, GetTransactionErrors, GetTransactionResponse, GetTransactionResponses, GetWebhookData, GetWebhookDeliveryData, GetWebhookDeliveryError, GetWebhookDeliveryErrors, GetWebhookDeliveryResponse, GetWebhookDeliveryResponses, GetWebhookError, GetWebhookErrors, GetWebhookResponse, GetWebhookResponses, GetWebhookStatsData, GetWebhookStatsError, GetWebhookStatsErrors, GetWebhookStatsResponse, GetWebhookStatsResponses, GradientType, GrantInfo, GrantPerson, HealthDay, ImportCompletedEvent, InterestPayout, LastPaidResponse, LinkedActivityLeg, LinkedActivityResponse, ListAccountsData, ListAccountsError, ListAccountsErrors, ListAccountsResponse, ListAccountsResponses, ListBudgetsData, ListBudgetsError, ListBudgetsErrors, ListBudgetsResponse, ListBudgetsResponses, ListCategoriesData, ListCategoriesError, ListCategoriesErrors, ListCategoriesResponse, ListCategoriesResponses, ListChangesData, ListChangesError, ListChangesErrors, ListChangesResponse, ListChangesResponses, ListEventsData, ListEventsError, ListEventsErrors, ListEventsResponse, ListEventsResponses, ListMySpacesData, ListMySpacesError, ListMySpacesErrors, ListMySpacesResponse, ListMySpacesResponses, ListRecurringOccurrencesData, ListRecurringOccurrencesError, ListRecurringOccurrencesErrors, ListRecurringOccurrencesResponse, ListRecurringOccurrencesResponses, ListRecurringTransactionsData, ListRecurringTransactionsError, ListRecurringTransactionsErrors, ListRecurringTransactionsResponse, ListRecurringTransactionsResponses, ListSourcesData, ListSourcesError, ListSourcesErrors, ListSourcesResponse, ListSourcesResponses, ListSourceTransactionsData, ListSourceTransactionsError, ListSourceTransactionsErrors, ListSourceTransactionsResponse, ListSourceTransactionsResponses, ListTransactionsData, ListTransactionsError, ListTransactionsErrors, ListTransactionsResponse, ListTransactionsResponses, ListWebhookDeliveriesData, ListWebhookDeliveriesError, ListWebhookDeliveriesErrors, ListWebhookDeliveriesResponse, ListWebhookDeliveriesResponses, ListWebhookEventTypesData, ListWebhookEventTypesError, ListWebhookEventTypesErrors, ListWebhookEventTypesResponse, ListWebhookEventTypesResponses, ListWebhooksData, ListWebhooksError, ListWebhooksErrors, ListWebhooksResponse, ListWebhooksResponses, MerchantActivity, MerchantAnalyticsResponse, MerchantAnalyticsResponseEnvelope, MerchantCategory, MerchantFigures, Meta, Mode, MySpaceResponse, MySpaceResponseListEnvelope, NetWorthPoint, NetWorthResponse, NetWorthResponseEnvelope, NetWorthTimeSeriesResponse, NetWorthTimeSeriesResponseEnvelope, ObjectType, OccurrenceDayTotal, OccurrenceDisplay, OccurrenceResponse, OccurrencesResponse, OccurrencesResponseEnvelope, OccurrenceStatus, OccurrenceTotals, PauseWebhookData, PauseWebhookError, PauseWebhookErrors, PauseWebhookResponse, PauseWebhookResponses, PlacesKind, PointName, PossibleDuplicate, Precision, PushBatchRequest, PushBatchResponse, PushBatchResponseEnvelope, PushedPage, PushedPageEnvelope, PushedRow, PushItem, PushItemError, PushItemResult, PushItemResultEnvelope, PushOriginal, PushSourceBalancesData, PushSourceBalancesError, PushSourceBalancesErrors, PushSourceBalancesResponse, PushSourceBalancesResponses, PushSourceTransactionsData, PushSourceTransactionsError, PushSourceTransactionsErrors, PushSourceTransactionsResponse, PushSourceTransactionsResponses, ReactionsSummary, RecurringDueEvent, RecurringOccurrenceRef, RecurringResponse, RecurringResponseEnvelope, RecurringResponseListEnvelope, RecurringTransactionsKind, ResendRangeRequest, ResendRangeResponse, ResendRangeResponseEnvelope, ResendWebhookDeliveriesData, ResendWebhookDeliveriesError, ResendWebhookDeliveriesErrors, ResendWebhookDeliveriesResponse, ResendWebhookDeliveriesResponses, ResendWebhookDeliveryData, ResendWebhookDeliveryError, ResendWebhookDeliveryErrors, ResendWebhookDeliveryResponse, ResendWebhookDeliveryResponses, ResumeWebhookData, ResumeWebhookError, ResumeWebhookErrors, ResumeWebhookResponse, ResumeWebhookResponses, RotateSecretRequest, RotateWebhookSecretData, RotateWebhookSecretError, RotateWebhookSecretErrors, RotateWebhookSecretResponse, RotateWebhookSecretResponses, SecretResponse, SecretResponseEnvelope, SendWebhookTestData, SendWebhookTestError, SendWebhookTestErrors, SendWebhookTestResponse, SendWebhookTestResponses, SharedWith, SourceResponse, SourceResponseEnvelope, SourceResponseListEnvelope, SourcesKind, SpendingResponse, SpendingResponseEnvelope, StatsDay, StatsFigures, StatsResponse, StatsResponseEnvelope, Status, SummaryResponse, SummaryResponseEnvelope, TestEventRequest, TransactionAmountInfo, TransactionAmountsResponse, TransactionCreatedEvent, TransactionDeletedEvent, TransactionExternalDataResponse, TransactionFinancialsResponse, TransactionListResponse, TransactionListResponseEnvelope, TransactionMetadataResponse, TransactionPlace, TransactionRelationshipsResponse, TransactionResponse, TransactionResponseEnvelope, TransactionsBulkUpdatedEvent, TransactionStatus, TransactionsTransactionDirection, TransactionsTransactionType, TransactionTag, TransactionTimestampsResponse, TransactionTreatment, TransactionUpdatedEvent, TransferDisplay, TransferResponse, TrendComparison, TrendsResponse, TrendsResponseEnvelope, UncategorizedActivity, UncategorizedSpending, UpdateEndpointRequest, UpdateSourceData, UpdateSourceError, UpdateSourceErrors, UpdateSourceRequest, UpdateSourceResponse, UpdateSourceResponses, UpdateTransactionData, UpdateTransactionError, UpdateTransactionErrors, UpdateTransactionRequest, UpdateTransactionResponse, UpdateTransactionResponses, UpdateWebhookData, UpdateWebhookError, UpdateWebhookErrors, UpdateWebhookResponse, UpdateWebhookResponses, UpsertAccountRequest, UpsertAccountResponse, UpsertAccountResponseEnvelope, UpsertSourceAccountData, UpsertSourceAccountError, UpsertSourceAccountErrors, UpsertSourceAccountResponse, UpsertSourceAccountResponses, WebhookAccountBalanceUpdatedWebhookPayload, WebhookAccountBalanceUpdatedWebhookRequest, WebhookBudgetThresholdReachedWebhookPayload, WebhookBudgetThresholdReachedWebhookRequest, WebhookConnectionStatusChangedWebhookPayload, WebhookConnectionStatusChangedWebhookRequest, WebhookEvent, WebhookImportCompletedWebhookPayload, WebhookImportCompletedWebhookRequest, WebhookRecurringDueWebhookPayload, WebhookRecurringDueWebhookRequest, Webhooks, WebhookTransactionCreatedWebhookPayload, WebhookTransactionCreatedWebhookRequest, WebhookTransactionDeletedWebhookPayload, WebhookTransactionDeletedWebhookRequest, WebhookTransactionsBulkUpdatedWebhookPayload, WebhookTransactionsBulkUpdatedWebhookRequest, WebhookTransactionUpdatedWebhookPayload, WebhookTransactionUpdatedWebhookRequest } from './types.gen.js';
@@ -1,3 +1,3 @@
1
1
  // This file is auto-generated by @hey-api/openapi-ts
2
- export { createSource, createTransaction, deleteSource, deleteSourceTransaction, deleteTransaction, getAccount, getAccountsNetWorth, getAnalyticsCashFlow, getAnalyticsCategories, getAnalyticsMerchants, getAnalyticsNetWorth, getAnalyticsSpending, getAnalyticsSummary, getAnalyticsTrends, getBudget, getCategory, getEvent, getRecurringTransaction, getSource, getTransaction, getTransactionDayTotals, listAccounts, listBudgets, listCategories, listChanges, listEvents, listMySpaces, listRecurringOccurrences, listRecurringTransactions, listSources, listSourceTransactions, listTransactions, pushSourceBalances, pushSourceTransactions, updateSource, updateTransaction, upsertSourceAccount } from './sdk.gen.js';
2
+ export { createSource, createTransaction, createWebhook, deleteSource, deleteSourceTransaction, deleteTransaction, deleteWebhook, getAccount, getAccountsNetWorth, getAnalyticsCashFlow, getAnalyticsCategories, getAnalyticsMerchants, getAnalyticsNetWorth, getAnalyticsSpending, getAnalyticsSummary, getAnalyticsTrends, getBudget, getCategory, getEvent, getRecurringTransaction, getSource, getTransaction, getTransactionDayTotals, getWebhook, getWebhookDelivery, getWebhookStats, listAccounts, listBudgets, listCategories, listChanges, listEvents, listMySpaces, listRecurringOccurrences, listRecurringTransactions, listSources, listSourceTransactions, listTransactions, listWebhookDeliveries, listWebhookEventTypes, listWebhooks, pauseWebhook, pushSourceBalances, pushSourceTransactions, resendWebhookDeliveries, resendWebhookDelivery, resumeWebhook, rotateWebhookSecret, sendWebhookTest, updateSource, updateTransaction, updateWebhook, upsertSourceAccount } from './sdk.gen.js';
3
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/generated/index.ts"],"names":[],"mappings":"AAAA,qDAAqD;AAErD,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,YAAY,EAAE,uBAAuB,EAAE,iBAAiB,EAAE,UAAU,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,SAAS,EAAE,WAAW,EAAE,QAAQ,EAAE,uBAAuB,EAAE,SAAS,EAAE,cAAc,EAAE,uBAAuB,EAAE,YAAY,EAAE,WAAW,EAAE,cAAc,EAAE,WAAW,EAAE,UAAU,EAAE,YAAY,EAAE,wBAAwB,EAAE,yBAAyB,EAAE,WAAW,EAAE,sBAAsB,EAAE,gBAAgB,EAAgB,kBAAkB,EAAE,sBAAsB,EAAE,YAAY,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/generated/index.ts"],"names":[],"mappings":"AAAA,qDAAqD;AAErD,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,aAAa,EAAE,YAAY,EAAE,uBAAuB,EAAE,iBAAiB,EAAE,aAAa,EAAE,UAAU,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,SAAS,EAAE,WAAW,EAAE,QAAQ,EAAE,uBAAuB,EAAE,SAAS,EAAE,cAAc,EAAE,uBAAuB,EAAE,UAAU,EAAE,kBAAkB,EAAE,eAAe,EAAE,YAAY,EAAE,WAAW,EAAE,cAAc,EAAE,WAAW,EAAE,UAAU,EAAE,YAAY,EAAE,wBAAwB,EAAE,yBAAyB,EAAE,WAAW,EAAE,sBAAsB,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,YAAY,EAAgB,YAAY,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,aAAa,EAAE,mBAAmB,EAAE,eAAe,EAAE,YAAY,EAAE,iBAAiB,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import type { Client, ClientMeta, Options as Options2, RequestResult, TDataShape } from './client/index.js';
2
- import type { CreateSourceData, CreateSourceErrors, CreateSourceResponses, CreateTransactionData, CreateTransactionErrors, CreateTransactionResponses, DeleteSourceData, DeleteSourceErrors, DeleteSourceResponses, DeleteSourceTransactionData, DeleteSourceTransactionErrors, DeleteSourceTransactionResponses, DeleteTransactionData, DeleteTransactionErrors, DeleteTransactionResponses, GetAccountData, GetAccountErrors, GetAccountResponses, GetAccountsNetWorthData, GetAccountsNetWorthErrors, GetAccountsNetWorthResponses, GetAnalyticsCashFlowData, GetAnalyticsCashFlowErrors, GetAnalyticsCashFlowResponses, GetAnalyticsCategoriesData, GetAnalyticsCategoriesErrors, GetAnalyticsCategoriesResponses, GetAnalyticsMerchantsData, GetAnalyticsMerchantsErrors, GetAnalyticsMerchantsResponses, GetAnalyticsNetWorthData, GetAnalyticsNetWorthErrors, GetAnalyticsNetWorthResponses, GetAnalyticsSpendingData, GetAnalyticsSpendingErrors, GetAnalyticsSpendingResponses, GetAnalyticsSummaryData, GetAnalyticsSummaryErrors, GetAnalyticsSummaryResponses, GetAnalyticsTrendsData, GetAnalyticsTrendsErrors, GetAnalyticsTrendsResponses, GetBudgetData, GetBudgetErrors, GetBudgetResponses, GetCategoryData, GetCategoryErrors, GetCategoryResponses, GetEventData, GetEventErrors, GetEventResponses, GetRecurringTransactionData, GetRecurringTransactionErrors, GetRecurringTransactionResponses, GetSourceData, GetSourceErrors, GetSourceResponses, GetTransactionData, GetTransactionDayTotalsData, GetTransactionDayTotalsErrors, GetTransactionDayTotalsResponses, GetTransactionErrors, GetTransactionResponses, ListAccountsData, ListAccountsErrors, ListAccountsResponses, ListBudgetsData, ListBudgetsErrors, ListBudgetsResponses, ListCategoriesData, ListCategoriesErrors, ListCategoriesResponses, ListChangesData, ListChangesErrors, ListChangesResponses, ListEventsData, ListEventsErrors, ListEventsResponses, ListMySpacesData, ListMySpacesErrors, ListMySpacesResponses, ListRecurringOccurrencesData, ListRecurringOccurrencesErrors, ListRecurringOccurrencesResponses, ListRecurringTransactionsData, ListRecurringTransactionsErrors, ListRecurringTransactionsResponses, ListSourcesData, ListSourcesErrors, ListSourcesResponses, ListSourceTransactionsData, ListSourceTransactionsErrors, ListSourceTransactionsResponses, ListTransactionsData, ListTransactionsErrors, ListTransactionsResponses, PushSourceBalancesData, PushSourceBalancesErrors, PushSourceBalancesResponses, PushSourceTransactionsData, PushSourceTransactionsErrors, PushSourceTransactionsResponses, UpdateSourceData, UpdateSourceErrors, UpdateSourceResponses, UpdateTransactionData, UpdateTransactionErrors, UpdateTransactionResponses, UpsertSourceAccountData, UpsertSourceAccountErrors, UpsertSourceAccountResponses } from './types.gen.js';
2
+ import type { CreateSourceData, CreateSourceErrors, CreateSourceResponses, CreateTransactionData, CreateTransactionErrors, CreateTransactionResponses, CreateWebhookData, CreateWebhookErrors, CreateWebhookResponses, DeleteSourceData, DeleteSourceErrors, DeleteSourceResponses, DeleteSourceTransactionData, DeleteSourceTransactionErrors, DeleteSourceTransactionResponses, DeleteTransactionData, DeleteTransactionErrors, DeleteTransactionResponses, DeleteWebhookData, DeleteWebhookErrors, DeleteWebhookResponses, GetAccountData, GetAccountErrors, GetAccountResponses, GetAccountsNetWorthData, GetAccountsNetWorthErrors, GetAccountsNetWorthResponses, GetAnalyticsCashFlowData, GetAnalyticsCashFlowErrors, GetAnalyticsCashFlowResponses, GetAnalyticsCategoriesData, GetAnalyticsCategoriesErrors, GetAnalyticsCategoriesResponses, GetAnalyticsMerchantsData, GetAnalyticsMerchantsErrors, GetAnalyticsMerchantsResponses, GetAnalyticsNetWorthData, GetAnalyticsNetWorthErrors, GetAnalyticsNetWorthResponses, GetAnalyticsSpendingData, GetAnalyticsSpendingErrors, GetAnalyticsSpendingResponses, GetAnalyticsSummaryData, GetAnalyticsSummaryErrors, GetAnalyticsSummaryResponses, GetAnalyticsTrendsData, GetAnalyticsTrendsErrors, GetAnalyticsTrendsResponses, GetBudgetData, GetBudgetErrors, GetBudgetResponses, GetCategoryData, GetCategoryErrors, GetCategoryResponses, GetEventData, GetEventErrors, GetEventResponses, GetRecurringTransactionData, GetRecurringTransactionErrors, GetRecurringTransactionResponses, GetSourceData, GetSourceErrors, GetSourceResponses, GetTransactionData, GetTransactionDayTotalsData, GetTransactionDayTotalsErrors, GetTransactionDayTotalsResponses, GetTransactionErrors, GetTransactionResponses, GetWebhookData, GetWebhookDeliveryData, GetWebhookDeliveryErrors, GetWebhookDeliveryResponses, GetWebhookErrors, GetWebhookResponses, GetWebhookStatsData, GetWebhookStatsErrors, GetWebhookStatsResponses, ListAccountsData, ListAccountsErrors, ListAccountsResponses, ListBudgetsData, ListBudgetsErrors, ListBudgetsResponses, ListCategoriesData, ListCategoriesErrors, ListCategoriesResponses, ListChangesData, ListChangesErrors, ListChangesResponses, ListEventsData, ListEventsErrors, ListEventsResponses, ListMySpacesData, ListMySpacesErrors, ListMySpacesResponses, ListRecurringOccurrencesData, ListRecurringOccurrencesErrors, ListRecurringOccurrencesResponses, ListRecurringTransactionsData, ListRecurringTransactionsErrors, ListRecurringTransactionsResponses, ListSourcesData, ListSourcesErrors, ListSourcesResponses, ListSourceTransactionsData, ListSourceTransactionsErrors, ListSourceTransactionsResponses, ListTransactionsData, ListTransactionsErrors, ListTransactionsResponses, ListWebhookDeliveriesData, ListWebhookDeliveriesErrors, ListWebhookDeliveriesResponses, ListWebhookEventTypesData, ListWebhookEventTypesErrors, ListWebhookEventTypesResponses, ListWebhooksData, ListWebhooksErrors, ListWebhooksResponses, PauseWebhookData, PauseWebhookErrors, PauseWebhookResponses, PushSourceBalancesData, PushSourceBalancesErrors, PushSourceBalancesResponses, PushSourceTransactionsData, PushSourceTransactionsErrors, PushSourceTransactionsResponses, ResendWebhookDeliveriesData, ResendWebhookDeliveriesErrors, ResendWebhookDeliveriesResponses, ResendWebhookDeliveryData, ResendWebhookDeliveryErrors, ResendWebhookDeliveryResponses, ResumeWebhookData, ResumeWebhookErrors, ResumeWebhookResponses, RotateWebhookSecretData, RotateWebhookSecretErrors, RotateWebhookSecretResponses, SendWebhookTestData, SendWebhookTestErrors, SendWebhookTestResponses, UpdateSourceData, UpdateSourceErrors, UpdateSourceResponses, UpdateTransactionData, UpdateTransactionErrors, UpdateTransactionResponses, UpdateWebhookData, UpdateWebhookErrors, UpdateWebhookResponses, UpsertSourceAccountData, UpsertSourceAccountErrors, UpsertSourceAccountResponses } from './types.gen.js';
3
3
  export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options2<TData, ThrowOnError, TResponse> & {
4
4
  /**
5
5
  * You can provide a client instance returned by `createClient()` instead of
@@ -235,3 +235,93 @@ export declare const getTransaction: <ThrowOnError extends boolean = false>(opti
235
235
  * Change a transaction (needs the “Full access” token, scope `transactions:write`); fields left out keep their value. Editing one leg of a transfer updates both. Moving a row to or from `cancelled` reverses or re-applies its balance effect. With `If-Match: "<version>"` the change applies only when the row still has that version; otherwise 412 SYNC_VERSION_MISMATCH.
236
236
  */
237
237
  export declare const updateTransaction: <ThrowOnError extends boolean = false>(options: Options<UpdateTransactionData, ThrowOnError>) => RequestResult<UpdateTransactionResponses, UpdateTransactionErrors, ThrowOnError>;
238
+ /**
239
+ * List webhook endpoints
240
+ *
241
+ * The webhook endpoints this token manages: those of the request's space alone whose every event type the token's scopes read. An endpoint set up in the app for several spaces, or with types the token can't read, isn't listed. Each comes with its health: deliveries and successes in the last 24 hours and 7 days (test events left out), p95 latency and the last delivery. The signing secret is never included.
242
+ */
243
+ export declare const listWebhooks: <ThrowOnError extends boolean = false>(options?: Options<ListWebhooksData, ThrowOnError>) => RequestResult<ListWebhooksResponses, ListWebhooksErrors, ThrowOnError>;
244
+ /**
245
+ * Create webhook endpoint
246
+ *
247
+ * An endpoint for the request's space: an HTTPS `url` on a public address (400 `WHK_031` with `details.reason`), the `events` to send (400 `WHK_005` for an unknown type) and an optional `description`. Leave `space_ids` out: it may name only the request's space (403 `WHK_009`). Each event type needs the scope that reads its data, `transactions:read` for `transaction.*` for example (403 `AUTH_007` with `details.required_scope`). The answer carries the signing secret (`dg_whsec_…`): keep it, a token can't read it back, only rotate it. A plan caps the number of endpoints (403 `BILL_013`).
248
+ */
249
+ export declare const createWebhook: <ThrowOnError extends boolean = false>(options: Options<CreateWebhookData, ThrowOnError>) => RequestResult<CreateWebhookResponses, CreateWebhookErrors, ThrowOnError>;
250
+ /**
251
+ * List webhook event types
252
+ *
253
+ * The event types a webhook endpoint can take, each with its group and a made-up sample of its data. The same for every space, so no `X-Space-ID` is needed.
254
+ */
255
+ export declare const listWebhookEventTypes: <ThrowOnError extends boolean = false>(options?: Options<ListWebhookEventTypesData, ThrowOnError>) => RequestResult<ListWebhookEventTypesResponses, ListWebhookEventTypesErrors, ThrowOnError>;
256
+ /**
257
+ * Delete webhook endpoint
258
+ *
259
+ * Removes the endpoint and its delivery log; nothing more is sent to it.
260
+ */
261
+ export declare const deleteWebhook: <ThrowOnError extends boolean = false>(options: Options<DeleteWebhookData, ThrowOnError>) => RequestResult<DeleteWebhookResponses, DeleteWebhookErrors, ThrowOnError>;
262
+ /**
263
+ * Get webhook endpoint
264
+ *
265
+ * One endpoint this token manages, with its health; 404 `WHK_001` for any other.
266
+ */
267
+ export declare const getWebhook: <ThrowOnError extends boolean = false>(options: Options<GetWebhookData, ThrowOnError>) => RequestResult<GetWebhookResponses, GetWebhookErrors, ThrowOnError>;
268
+ /**
269
+ * Update webhook endpoint
270
+ *
271
+ * Changes the `url`, `description` or `events`; an absent field keeps its value. The same rules as creating one: the endpoint stays in the request's space, and each event type needs its read scope.
272
+ */
273
+ export declare const updateWebhook: <ThrowOnError extends boolean = false>(options: Options<UpdateWebhookData, ThrowOnError>) => RequestResult<UpdateWebhookResponses, UpdateWebhookErrors, ThrowOnError>;
274
+ /**
275
+ * List webhook deliveries
276
+ *
277
+ * The endpoint's log of the last 30 days, newest first: each event's delivery with its status, attempts, last HTTP status and latency. Filter by `type`, `status`, `from` and `to`; page with `meta.next_cursor`.
278
+ */
279
+ export declare const listWebhookDeliveries: <ThrowOnError extends boolean = false>(options: Options<ListWebhookDeliveriesData, ThrowOnError>) => RequestResult<ListWebhookDeliveriesResponses, ListWebhookDeliveriesErrors, ThrowOnError>;
280
+ /**
281
+ * Get webhook delivery
282
+ *
283
+ * One delivery: what was sent (the URL, the headers with the signature, the JSON body) and every attempt with its status, duration, and the answer's first 20 headers and first 4 KB.
284
+ */
285
+ export declare const getWebhookDelivery: <ThrowOnError extends boolean = false>(options: Options<GetWebhookDeliveryData, ThrowOnError>) => RequestResult<GetWebhookDeliveryResponses, GetWebhookDeliveryErrors, ThrowOnError>;
286
+ /**
287
+ * Resend webhook delivery
288
+ *
289
+ * The same event id and body, a new attempt now. 409 `WHK_003` when the endpoint is disabled.
290
+ */
291
+ export declare const resendWebhookDelivery: <ThrowOnError extends boolean = false>(options: Options<ResendWebhookDeliveryData, ThrowOnError>) => RequestResult<ResendWebhookDeliveryResponses, ResendWebhookDeliveryErrors, ThrowOnError>;
292
+ /**
293
+ * Pause webhook endpoint
294
+ *
295
+ * Holds the endpoint's deliveries: they wait up to 3 days, then are skipped. 409 `WHK_003` when the endpoint is disabled.
296
+ */
297
+ export declare const pauseWebhook: <ThrowOnError extends boolean = false>(options: Options<PauseWebhookData, ThrowOnError>) => RequestResult<PauseWebhookResponses, PauseWebhookErrors, ThrowOnError>;
298
+ /**
299
+ * Resend webhook deliveries in a range
300
+ *
301
+ * Sends again the endpoint's failed and skipped deliveries made between `from` and `to`, after an outage: at most 30 days and 10 000 deliveries (400 `WHK_006`).
302
+ */
303
+ export declare const resendWebhookDeliveries: <ThrowOnError extends boolean = false>(options: Options<ResendWebhookDeliveriesData, ThrowOnError>) => RequestResult<ResendWebhookDeliveriesResponses, ResendWebhookDeliveriesErrors, ThrowOnError>;
304
+ /**
305
+ * Resume webhook endpoint
306
+ *
307
+ * Turns a paused or disabled endpoint back on. A disabled endpoint's skipped deliveries can then be sent again with `POST /v1/webhooks/{id}/resend`.
308
+ */
309
+ export declare const resumeWebhook: <ThrowOnError extends boolean = false>(options: Options<ResumeWebhookData, ThrowOnError>) => RequestResult<ResumeWebhookResponses, ResumeWebhookErrors, ThrowOnError>;
310
+ /**
311
+ * Rotate webhook secret
312
+ *
313
+ * Makes a new signing secret at once and returns it. The old one keeps signing for `overlap_hours` (0, 1, 24 or 72), so both signatures appear in `Degroshi-Signature` until then and a receiver can switch without missing events.
314
+ */
315
+ export declare const rotateWebhookSecret: <ThrowOnError extends boolean = false>(options: Options<RotateWebhookSecretData, ThrowOnError>) => RequestResult<RotateWebhookSecretResponses, RotateWebhookSecretErrors, ThrowOnError>;
316
+ /**
317
+ * Get webhook endpoint stats
318
+ *
319
+ * Each day's deliveries (sent, delivered on the first call, after a retry, failed, still retrying) and the calls' response times (min, average, p95, max), test events left out, with the period's total. The last 7 days by default, at most 30.
320
+ */
321
+ export declare const getWebhookStats: <ThrowOnError extends boolean = false>(options: Options<GetWebhookStatsData, ThrowOnError>) => RequestResult<GetWebhookStatsResponses, GetWebhookStatsErrors, ThrowOnError>;
322
+ /**
323
+ * Send test webhook event
324
+ *
325
+ * A made-up event of `type` (`webhook.test` when empty), marked `test: true`, sent to this endpoint only and listed in its log, never counted in its health. An endpoint takes 10 test events a minute (429 `WHK_030` with `details.retry_after`). The delivery's detail shows the request sent and the endpoint's answer.
326
+ */
327
+ export declare const sendWebhookTest: <ThrowOnError extends boolean = false>(options: Options<SendWebhookTestData, ThrowOnError>) => RequestResult<SendWebhookTestResponses, SendWebhookTestErrors, ThrowOnError>;
@@ -400,4 +400,174 @@ export const updateTransaction = (options) => (options.client ?? client).patch({
400
400
  ...options.headers
401
401
  }
402
402
  });
403
+ /**
404
+ * List webhook endpoints
405
+ *
406
+ * The webhook endpoints this token manages: those of the request's space alone whose every event type the token's scopes read. An endpoint set up in the app for several spaces, or with types the token can't read, isn't listed. Each comes with its health: deliveries and successes in the last 24 hours and 7 days (test events left out), p95 latency and the last delivery. The signing secret is never included.
407
+ */
408
+ export const listWebhooks = (options) => (options?.client ?? client).get({
409
+ security: [{ name: 'X-API-Key', type: 'apiKey' }],
410
+ url: '/v1/webhooks',
411
+ ...options
412
+ });
413
+ /**
414
+ * Create webhook endpoint
415
+ *
416
+ * An endpoint for the request's space: an HTTPS `url` on a public address (400 `WHK_031` with `details.reason`), the `events` to send (400 `WHK_005` for an unknown type) and an optional `description`. Leave `space_ids` out: it may name only the request's space (403 `WHK_009`). Each event type needs the scope that reads its data, `transactions:read` for `transaction.*` for example (403 `AUTH_007` with `details.required_scope`). The answer carries the signing secret (`dg_whsec_…`): keep it, a token can't read it back, only rotate it. A plan caps the number of endpoints (403 `BILL_013`).
417
+ */
418
+ export const createWebhook = (options) => (options.client ?? client).post({
419
+ security: [{ name: 'X-API-Key', type: 'apiKey' }],
420
+ url: '/v1/webhooks',
421
+ ...options,
422
+ headers: {
423
+ 'Content-Type': 'application/json',
424
+ ...options.headers
425
+ }
426
+ });
427
+ /**
428
+ * List webhook event types
429
+ *
430
+ * The event types a webhook endpoint can take, each with its group and a made-up sample of its data. The same for every space, so no `X-Space-ID` is needed.
431
+ */
432
+ export const listWebhookEventTypes = (options) => (options?.client ?? client).get({
433
+ security: [{ name: 'X-API-Key', type: 'apiKey' }],
434
+ url: '/v1/webhooks/event-types',
435
+ ...options
436
+ });
437
+ /**
438
+ * Delete webhook endpoint
439
+ *
440
+ * Removes the endpoint and its delivery log; nothing more is sent to it.
441
+ */
442
+ export const deleteWebhook = (options) => (options.client ?? client).delete({
443
+ security: [{ name: 'X-API-Key', type: 'apiKey' }],
444
+ url: '/v1/webhooks/{id}',
445
+ ...options
446
+ });
447
+ /**
448
+ * Get webhook endpoint
449
+ *
450
+ * One endpoint this token manages, with its health; 404 `WHK_001` for any other.
451
+ */
452
+ export const getWebhook = (options) => (options.client ?? client).get({
453
+ security: [{ name: 'X-API-Key', type: 'apiKey' }],
454
+ url: '/v1/webhooks/{id}',
455
+ ...options
456
+ });
457
+ /**
458
+ * Update webhook endpoint
459
+ *
460
+ * Changes the `url`, `description` or `events`; an absent field keeps its value. The same rules as creating one: the endpoint stays in the request's space, and each event type needs its read scope.
461
+ */
462
+ export const updateWebhook = (options) => (options.client ?? client).patch({
463
+ security: [{ name: 'X-API-Key', type: 'apiKey' }],
464
+ url: '/v1/webhooks/{id}',
465
+ ...options,
466
+ headers: {
467
+ 'Content-Type': 'application/json',
468
+ ...options.headers
469
+ }
470
+ });
471
+ /**
472
+ * List webhook deliveries
473
+ *
474
+ * The endpoint's log of the last 30 days, newest first: each event's delivery with its status, attempts, last HTTP status and latency. Filter by `type`, `status`, `from` and `to`; page with `meta.next_cursor`.
475
+ */
476
+ export const listWebhookDeliveries = (options) => (options.client ?? client).get({
477
+ security: [{ name: 'X-API-Key', type: 'apiKey' }],
478
+ url: '/v1/webhooks/{id}/deliveries',
479
+ ...options
480
+ });
481
+ /**
482
+ * Get webhook delivery
483
+ *
484
+ * One delivery: what was sent (the URL, the headers with the signature, the JSON body) and every attempt with its status, duration, and the answer's first 20 headers and first 4 KB.
485
+ */
486
+ export const getWebhookDelivery = (options) => (options.client ?? client).get({
487
+ security: [{ name: 'X-API-Key', type: 'apiKey' }],
488
+ url: '/v1/webhooks/{id}/deliveries/{delivery_id}',
489
+ ...options
490
+ });
491
+ /**
492
+ * Resend webhook delivery
493
+ *
494
+ * The same event id and body, a new attempt now. 409 `WHK_003` when the endpoint is disabled.
495
+ */
496
+ export const resendWebhookDelivery = (options) => (options.client ?? client).post({
497
+ security: [{ name: 'X-API-Key', type: 'apiKey' }],
498
+ url: '/v1/webhooks/{id}/deliveries/{delivery_id}/resend',
499
+ ...options
500
+ });
501
+ /**
502
+ * Pause webhook endpoint
503
+ *
504
+ * Holds the endpoint's deliveries: they wait up to 3 days, then are skipped. 409 `WHK_003` when the endpoint is disabled.
505
+ */
506
+ export const pauseWebhook = (options) => (options.client ?? client).post({
507
+ security: [{ name: 'X-API-Key', type: 'apiKey' }],
508
+ url: '/v1/webhooks/{id}/pause',
509
+ ...options
510
+ });
511
+ /**
512
+ * Resend webhook deliveries in a range
513
+ *
514
+ * Sends again the endpoint's failed and skipped deliveries made between `from` and `to`, after an outage: at most 30 days and 10 000 deliveries (400 `WHK_006`).
515
+ */
516
+ export const resendWebhookDeliveries = (options) => (options.client ?? client).post({
517
+ security: [{ name: 'X-API-Key', type: 'apiKey' }],
518
+ url: '/v1/webhooks/{id}/resend',
519
+ ...options,
520
+ headers: {
521
+ 'Content-Type': 'application/json',
522
+ ...options.headers
523
+ }
524
+ });
525
+ /**
526
+ * Resume webhook endpoint
527
+ *
528
+ * Turns a paused or disabled endpoint back on. A disabled endpoint's skipped deliveries can then be sent again with `POST /v1/webhooks/{id}/resend`.
529
+ */
530
+ export const resumeWebhook = (options) => (options.client ?? client).post({
531
+ security: [{ name: 'X-API-Key', type: 'apiKey' }],
532
+ url: '/v1/webhooks/{id}/resume',
533
+ ...options
534
+ });
535
+ /**
536
+ * Rotate webhook secret
537
+ *
538
+ * Makes a new signing secret at once and returns it. The old one keeps signing for `overlap_hours` (0, 1, 24 or 72), so both signatures appear in `Degroshi-Signature` until then and a receiver can switch without missing events.
539
+ */
540
+ export const rotateWebhookSecret = (options) => (options.client ?? client).post({
541
+ security: [{ name: 'X-API-Key', type: 'apiKey' }],
542
+ url: '/v1/webhooks/{id}/rotate-secret',
543
+ ...options,
544
+ headers: {
545
+ 'Content-Type': 'application/json',
546
+ ...options.headers
547
+ }
548
+ });
549
+ /**
550
+ * Get webhook endpoint stats
551
+ *
552
+ * Each day's deliveries (sent, delivered on the first call, after a retry, failed, still retrying) and the calls' response times (min, average, p95, max), test events left out, with the period's total. The last 7 days by default, at most 30.
553
+ */
554
+ export const getWebhookStats = (options) => (options.client ?? client).get({
555
+ security: [{ name: 'X-API-Key', type: 'apiKey' }],
556
+ url: '/v1/webhooks/{id}/stats',
557
+ ...options
558
+ });
559
+ /**
560
+ * Send test webhook event
561
+ *
562
+ * A made-up event of `type` (`webhook.test` when empty), marked `test: true`, sent to this endpoint only and listed in its log, never counted in its health. An endpoint takes 10 test events a minute (429 `WHK_030` with `details.retry_after`). The delivery's detail shows the request sent and the endpoint's answer.
563
+ */
564
+ export const sendWebhookTest = (options) => (options.client ?? client).post({
565
+ security: [{ name: 'X-API-Key', type: 'apiKey' }],
566
+ url: '/v1/webhooks/{id}/test',
567
+ ...options,
568
+ headers: {
569
+ 'Content-Type': 'application/json',
570
+ ...options.headers
571
+ }
572
+ });
403
573
  //# sourceMappingURL=sdk.gen.js.map