@brego-ai/sdk 0.1.0 → 0.1.1

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.
Files changed (2) hide show
  1. package/dist/schema.d.ts +24 -6
  2. package/package.json +1 -1
package/dist/schema.d.ts CHANGED
@@ -1938,8 +1938,8 @@ export interface paths {
1938
1938
  };
1939
1939
  /**
1940
1940
  * @description Retrieve credit balance movements: top-ups, charges, refunds and
1941
- * adjustments, newest first. Returns 404 when the organization has no
1942
- * credit balance.
1941
+ * adjustments, newest first unless `sortDirection` is `asc`. Returns 404
1942
+ * when the organization has no credit balance.
1943
1943
  */
1944
1944
  get: operations["BillingAccountControllerGetTransactions"];
1945
1945
  put?: never;
@@ -2004,6 +2004,13 @@ export interface components {
2004
2004
  /** Format: double */
2005
2005
  limit?: number;
2006
2006
  };
2007
+ /**
2008
+ * @description Fields `GET /v1/webhooks` can sort by. `status` orders by whether the endpoint is enabled.
2009
+ * @enum {string}
2010
+ */
2011
+ WebhookEndpointSortBy: "url" | "status" | "createdAt";
2012
+ /** @enum {string} */
2013
+ WebhookSortDirection: "asc" | "desc";
2007
2014
  NewWebhookEndpoint: {
2008
2015
  url: string;
2009
2016
  description?: string;
@@ -5079,6 +5086,9 @@ export interface components {
5079
5086
  /** @enum {string} */
5080
5087
  BillingMode: "invoiced" | "prepaid";
5081
5088
  MeOrganizationResponse: {
5089
+ status: components["schemas"]["OrganizationStatus"];
5090
+ /** Format: date-time */
5091
+ createdAt?: string;
5082
5092
  /**
5083
5093
  * @description Initial self-service billing preference; an agreed billing policy takes precedence.
5084
5094
  * @enum {string}
@@ -5104,7 +5114,6 @@ export interface components {
5104
5114
  maxConcurrentWebSessionsPerUser?: number;
5105
5115
  /** Format: double */
5106
5116
  maxConcurrentMobileSessionsPerUser?: number;
5107
- status: components["schemas"]["OrganizationStatus"];
5108
5117
  logoUrl?: string;
5109
5118
  showLogo?: boolean;
5110
5119
  enableOverdueInvoiceAlerts?: boolean;
@@ -5144,8 +5153,6 @@ export interface components {
5144
5153
  billingMode?: components["schemas"]["BillingMode"];
5145
5154
  sourceProductionOrganizationId?: string;
5146
5155
  /** Format: date-time */
5147
- createdAt?: string;
5148
- /** Format: date-time */
5149
5156
  updatedAt?: string;
5150
5157
  platformSuspension?: components["schemas"]["MePlatformSuspensionResponse"];
5151
5158
  };
@@ -6999,9 +7006,9 @@ export interface components {
6999
7006
  /** @enum {string} */
7000
7007
  FraudCheckType: "vehicle" | "seller";
7001
7008
  CustomerFraudCheckHistoryItem: {
7002
- organizationId: string;
7003
7009
  /** Format: date-time */
7004
7010
  createdAt: string;
7011
+ organizationId: string;
7005
7012
  countryCode: components["schemas"]["CountryCode"];
7006
7013
  applicationId: string;
7007
7014
  userId?: string;
@@ -7283,6 +7290,11 @@ export interface components {
7283
7290
  /** Format: double */
7284
7291
  limit?: number;
7285
7292
  };
7293
+ /**
7294
+ * @description Order of credit transactions by time.
7295
+ * @enum {string}
7296
+ */
7297
+ BillingAccountTransactionSortDirection: "asc" | "desc";
7286
7298
  AnprBoundingBox: {
7287
7299
  /**
7288
7300
  * Format: double
@@ -7359,6 +7371,10 @@ export interface operations {
7359
7371
  /** @description Case-insensitive URL, description or endpoint ID search. */
7360
7372
  search?: string;
7361
7373
  status?: "all" | "active" | "disabled";
7374
+ /** @description Sort by URL, status (enabled) or creation time. Without it, endpoints are ordered by ID. Sorted pages are full until the last one. */
7375
+ sortBy?: components["schemas"]["WebhookEndpointSortBy"];
7376
+ /** @description Sort direction for sortBy. Defaults to asc; ignored without sortBy. */
7377
+ sortDirection?: components["schemas"]["WebhookSortDirection"];
7362
7378
  };
7363
7379
  header?: never;
7364
7380
  path?: never;
@@ -11163,6 +11179,8 @@ export interface operations {
11163
11179
  limit?: number;
11164
11180
  /** @description The pagination cursor from a previous response. */
11165
11181
  cursor?: string;
11182
+ /** @description `desc` (default) lists newest first and `asc` oldest first. Send the same value with `cursor`. */
11183
+ sortDirection?: components["schemas"]["BillingAccountTransactionSortDirection"];
11166
11184
  };
11167
11185
  header?: never;
11168
11186
  path?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brego-ai/sdk",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Brego API client for partner apps: OAuth connect flow, token refresh, typed calls and webhook signature checks.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",