squarefi-bff-api-module 1.36.94 → 1.36.95

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.
@@ -8127,14 +8127,23 @@ export interface paths {
8127
8127
  path?: never;
8128
8128
  cookie?: never;
8129
8129
  };
8130
- /** List the notification inbox (newest first, cursor pagination) */
8130
+ /**
8131
+ * List the notification inbox (newest first, cursor pagination)
8132
+ * @description The caller's own notifications of the current tenant, newest first.
8133
+ * `wallet_id` narrows the list to one wallet (it filters the caller's own
8134
+ * items; it is not a wallet access check). **Authentication**: Bearer token + x-tenant-id header.
8135
+ *
8136
+ */
8131
8137
  get: {
8132
8138
  parameters: {
8133
8139
  query?: {
8134
8140
  /** @description Opaque cursor from a previous page (`next_cursor`). Omit for the first page. */
8135
8141
  cursor?: string;
8142
+ /** @description Page size. */
8136
8143
  limit?: number;
8144
+ /** @description `true` — only unread items; `false` or omitted — all. */
8137
8145
  unread_only?: "true" | "false";
8146
+ /** @description Only notifications scoped to this wallet. */
8138
8147
  wallet_id?: string;
8139
8148
  };
8140
8149
  header?: never;
@@ -8153,8 +8162,8 @@ export interface paths {
8153
8162
  /** @example true */
8154
8163
  success?: boolean;
8155
8164
  data?: {
8156
- items?: components["schemas"]["NotificationView"][];
8157
- next_cursor?: string | null;
8165
+ items: components["schemas"]["NotificationView"][];
8166
+ next_cursor: string | null;
8158
8167
  };
8159
8168
  };
8160
8169
  };
@@ -8164,7 +8173,9 @@ export interface paths {
8164
8173
  headers: {
8165
8174
  [name: string]: unknown;
8166
8175
  };
8167
- content?: never;
8176
+ content: {
8177
+ "application/json": components["schemas"]["ErrorResponse"];
8178
+ };
8168
8179
  };
8169
8180
  401: components["responses"]["UnauthorizedError"];
8170
8181
  };
@@ -8184,7 +8195,11 @@ export interface paths {
8184
8195
  path?: never;
8185
8196
  cookie?: never;
8186
8197
  };
8187
- /** Unread notifications count (badge) */
8198
+ /**
8199
+ * Unread notifications count (badge)
8200
+ * @description Number of the caller's unread notifications in the current tenant, across all wallets. **Authentication**: Bearer token + x-tenant-id header.
8201
+ *
8202
+ */
8188
8203
  get: {
8189
8204
  parameters: {
8190
8205
  query?: never;
@@ -8232,7 +8247,8 @@ export interface paths {
8232
8247
  put?: never;
8233
8248
  /**
8234
8249
  * Mark specific notifications as read
8235
- * @description Idempotent — already-read ids are not counted. Other tabs/devices sync via the realtime `notifications.read` event.
8250
+ * @description Idempotent — already-read ids are not counted; ids of other users' notifications or unknown ids are silently ignored (not an error). Other tabs/devices sync via the realtime `notifications.read` event, which carries only the ids actually transitioned. **Authentication**: Bearer token + x-tenant-id header.
8251
+ *
8236
8252
  */
8237
8253
  post: {
8238
8254
  parameters: {
@@ -8244,6 +8260,7 @@ export interface paths {
8244
8260
  requestBody: {
8245
8261
  content: {
8246
8262
  "application/json": {
8263
+ /** @description Ids of the notifications to mark as read. */
8247
8264
  notification_ids: string[];
8248
8265
  };
8249
8266
  };
@@ -8265,12 +8282,14 @@ export interface paths {
8265
8282
  };
8266
8283
  };
8267
8284
  };
8268
- /** @description Invalid body (`VALIDATION_ERROR`). */
8285
+ /** @description Invalid body (`VALIDATION_ERROR`) — missing, empty or over 100 `notification_ids`, or a non-uuid id. */
8269
8286
  400: {
8270
8287
  headers: {
8271
8288
  [name: string]: unknown;
8272
8289
  };
8273
- content?: never;
8290
+ content: {
8291
+ "application/json": components["schemas"]["ErrorResponse"];
8292
+ };
8274
8293
  };
8275
8294
  401: components["responses"]["UnauthorizedError"];
8276
8295
  };
@@ -8290,7 +8309,11 @@ export interface paths {
8290
8309
  };
8291
8310
  get?: never;
8292
8311
  put?: never;
8293
- /** Mark every unread notification as read */
8312
+ /**
8313
+ * Mark every unread notification as read
8314
+ * @description Idempotent. Marks all the caller's unread notifications of the current tenant as read; the realtime `notifications.read` event (`all: true`) syncs other tabs/devices only when something changed. **Authentication**: Bearer token + x-tenant-id header.
8315
+ *
8316
+ */
8294
8317
  post: {
8295
8318
  parameters: {
8296
8319
  query?: never;
@@ -8338,14 +8361,15 @@ export interface paths {
8338
8361
  * Issue a realtime subscription token
8339
8362
  * @description Token for the realtime SDK (`authCallback`). `channels` lists the exact
8340
8363
  * channel names the token grants — the personal channel plus one per
8341
- * accessible wallet. Every channel is subscribe-only; the personal channel
8364
+ * wallet the user is an active `owner`, `admin` or `auditor` of (the
8365
+ * scoped `user` role gets no wallet channel). Every channel is subscribe-only; the personal channel
8342
8366
  * additionally grants `push-subscribe`, so a mobile client can activate
8343
8367
  * the device for push and subscribe it to that channel (the one native
8344
8368
  * pushes are published on) without any server-side registration step.
8345
8369
  * The token's `clientId` is the user's id — subscribe by client
8346
8370
  * (`subscribeClient`) to cover every device of the user at once, and
8347
8371
  * deactivate push on logout. Tokens expire after ~1 hour; the SDK
8348
- * re-requests through the same endpoint.
8372
+ * re-requests through the same endpoint. **Authentication**: Bearer token + x-tenant-id header.
8349
8373
  *
8350
8374
  */
8351
8375
  post: {
@@ -8367,21 +8391,28 @@ export interface paths {
8367
8391
  /** @example true */
8368
8392
  success?: boolean;
8369
8393
  data?: {
8370
- token?: string;
8371
- /** Format: date-time */
8372
- expires_at?: string;
8373
- channels?: string[];
8394
+ /** @description Subscription token for the realtime SDK. */
8395
+ token: string;
8396
+ /**
8397
+ * Format: date-time
8398
+ * @description Token expiry (~1 hour after issue).
8399
+ */
8400
+ expires_at: string;
8401
+ /** @description Exact channel names the token grants — the personal channel first, then one per accessible wallet. */
8402
+ channels: string[];
8374
8403
  };
8375
8404
  };
8376
8405
  };
8377
8406
  };
8378
8407
  401: components["responses"]["UnauthorizedError"];
8379
- /** @description Realtime delivery is disabled for this deployment (`REALTIME_DISABLED`). */
8408
+ /** @description Realtime delivery is disabled for this deployment (`REALTIME_DISABLED`); retryable, not a client error. */
8380
8409
  503: {
8381
8410
  headers: {
8382
8411
  [name: string]: unknown;
8383
8412
  };
8384
- content?: never;
8413
+ content: {
8414
+ "application/json": components["schemas"]["ErrorResponse"];
8415
+ };
8385
8416
  };
8386
8417
  };
8387
8418
  };
@@ -18505,11 +18536,17 @@ export interface components {
18505
18536
  /** Format: uuid */
18506
18537
  id: string;
18507
18538
  /** @enum {string} */
18508
- type: "DEPOSIT_RECEIVED" | "DEPOSIT_NOT_ACCEPTED" | "TRANSFER_RECEIVED" | "ORDER_STATUS_CHANGED" | "KYC_STATUS_CHANGED" | "ANNOUNCEMENT" | "SYSTEM_MESSAGE" | "MASS_PAYOUT_STATUS_CHANGED" | "CARD_OTP" | "RFI_REQUESTED" | "RFI_RESOLVED" | "REPORT_READY" | "SCHEDULED_PAYMENT_REMINDER" | "SCHEDULED_PAYMENT_LOW_BALANCE" | "SCHEDULED_PAYMENT_APPROVAL_REQUIRED";
18539
+ type: "DEPOSIT_RECEIVED" | "DEPOSIT_NOT_ACCEPTED" | "TRANSFER_RECEIVED" | "ORDER_STATUS_CHANGED" | "KYC_STATUS_CHANGED" | "ANNOUNCEMENT" | "SYSTEM_MESSAGE" | "MASS_PAYOUT_STATUS_CHANGED" | "CARD_OTP" | "RFI_REQUESTED" | "RFI_RESOLVED" | "REPORT_READY" | "SCHEDULED_PAYMENT_REMINDER" | "SCHEDULED_PAYMENT_LOW_BALANCE" | "SCHEDULED_PAYMENT_APPROVAL_REQUIRED" | "SCHEDULED_PAYMENT_APPROVAL_CLOSING";
18540
+ /** @description Title of the item, rendered server-side from `payload` with the same template as the push and Telegram copy. `null` when the type has no texts (historical `CARD_OTP` rows) or when the texts could not be built from `payload`. */
18541
+ title: string | null;
18542
+ /** @description Text of the item, rendered like `title`; `null` in the same cases. */
18543
+ body: string | null;
18509
18544
  /** @description Structured fact snapshot; the client renders the presentation. Shape depends on `type`; evolution is additive-only. */
18510
18545
  payload: Record<string, never>;
18511
18546
  /** Format: uuid */
18512
18547
  wallet_id: string | null;
18548
+ /** @description The wallet's current display name (what `GET /frontend/wallets` returns as `display_name`), resolved when the item is read, so it follows a rename. `null` for notifications not scoped to a wallet, for a wallet the user can no longer access (the inbox keeps the notifications of a wallet the user has left) and for a wallet that no longer exists. */
18549
+ wallet_name: string | null;
18513
18550
  /** Format: date-time */
18514
18551
  read_at: string | null;
18515
18552
  /** Format: date-time */
@@ -932,7 +932,7 @@ export declare namespace API {
932
932
  export type Request = NonNullable<NotificationsRoot['get']['parameters']['query']>;
933
933
  export type Response = Omit<RawResponse, 'data'> & {
934
934
  data?: Omit<NonNullable<RawResponse['data']>, 'items'> & {
935
- items?: Notification[];
935
+ items: Notification[];
936
936
  };
937
937
  };
938
938
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "squarefi-bff-api-module",
3
- "version": "1.36.94",
3
+ "version": "1.36.95",
4
4
  "description": "Squarefi BFF API client module",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",