@v3finance/core-sdk 0.16.0 → 0.17.0
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 +22 -0
- package/dist/cjs/generated/operations.js +1 -1
- package/dist/cjs/generated/types.d.ts +14 -1
- package/dist/cjs/generated/types.d.ts.map +1 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/generated/operations.js +1 -1
- package/dist/esm/generated/types.d.ts +14 -1
- package/dist/esm/generated/types.d.ts.map +1 -1
- package/dist/esm/version.d.ts +1 -1
- package/dist/esm/version.js +1 -1
- package/docs/errors.md +12 -0
- package/package.json +1 -1
- package/src/generated/operations.ts +1 -1
- package/src/generated/types.ts +14 -1
- package/src/version.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,28 @@
|
|
|
3
3
|
All notable changes to this package are documented in this file. The format is based on
|
|
4
4
|
[Keep a Changelog](https://keepachangelog.com), and this project adheres to [Semantic Versioning](https://semver.org).
|
|
5
5
|
|
|
6
|
+
## 0.17.0 — 2026-11-29
|
|
7
|
+
|
|
8
|
+
Push tokens know their provider, for the native iPhone app. Spec snapshot from the live API (commit `13cb7bf`,
|
|
9
|
+
[v3-finance/policy-engine#65](https://github.com/v3-finance/policy-engine/pull/65)). No operations added or
|
|
10
|
+
removed (250).
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- `RegisterPushTokenBody.provider` (`expo` | `apns`, default `expo`), `environment` (`sandbox` | `production`, required
|
|
15
|
+
for `apns`) and `topic` (only `finance.v3.ios` today, the default). The server sends `apns` tokens straight to Apple.
|
|
16
|
+
- `PushToken.provider`, `environment` and `topic` (both `null` for `expo`).
|
|
17
|
+
- Error codes `INVALID_PUSH_TOKEN`, `APNS_ENVIRONMENT_REQUIRED`, `APNS_TOPIC_NOT_ALLOWED`, `PUSH_PROVIDER_MISMATCH`
|
|
18
|
+
(docs/errors.md, «Push tokens»).
|
|
19
|
+
- docs/errors.md: `WEB_SESSION_CANNOT_BIND_EMAIL` (since 0.14.2 the server refuses binding an email from a web session; the
|
|
20
|
+
code was missing from the reference).
|
|
21
|
+
|
|
22
|
+
### Changed
|
|
23
|
+
|
|
24
|
+
- **The token is now checked against its provider.** An Expo token must look like `ExponentPushToken[…]`; any other string
|
|
25
|
+
without `provider: 'apns'` is 400 `INVALID_PUSH_TOKEN` (it used to be stored and silently never delivered). An APNs token
|
|
26
|
+
is stored in lower case, and `me.removePushToken` matches it in any case.
|
|
27
|
+
|
|
6
28
|
## 0.16.0 — 2026-11-25
|
|
7
29
|
|
|
8
30
|
Files in the reader's language and for accounting systems. Spec snapshot from the live API (commit `975e281`,
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
// the API does not slip in unclassified.
|
|
11
11
|
//
|
|
12
12
|
// Operations: 250 · admin: 45 · both: 1 · member: 201 · service: 3
|
|
13
|
-
// Spec sha256:
|
|
13
|
+
// Spec sha256: 585b254ed09a4e675ae6713e5929b2edcc258bb25691604ecde6bf29ef728022
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.OPERATIONS = void 0;
|
|
16
16
|
exports.isAdminOperation = isAdminOperation;
|
|
@@ -3739,8 +3739,15 @@ export interface PolicyWithRules {
|
|
|
3739
3739
|
export interface PushToken {
|
|
3740
3740
|
/** cuid */
|
|
3741
3741
|
id: string;
|
|
3742
|
+
/** Как хранится: hex APNs — в нижнем регистре */
|
|
3742
3743
|
token: string;
|
|
3743
3744
|
platform: string;
|
|
3745
|
+
/** Кто доставляет пуш. `expo` — приложение на Expo (iOS и Android), через exp.host; `apns` — нативное приложение для iPhone, сервер шлёт напрямую в Apple */
|
|
3746
|
+
provider: "expo" | "apns";
|
|
3747
|
+
/** Окружение APNs: `sandbox` (сборки из Xcode) или `production`; у `expo` — null */
|
|
3748
|
+
environment: "sandbox" | "production" | null;
|
|
3749
|
+
/** bundle id (`apns-topic`); у `expo` — null */
|
|
3750
|
+
topic: string | null;
|
|
3744
3751
|
/** format: date-time */
|
|
3745
3752
|
createdAt: string;
|
|
3746
3753
|
/** format: date-time */
|
|
@@ -3823,13 +3830,19 @@ export interface ReconcileTransferResult {
|
|
|
3823
3830
|
}
|
|
3824
3831
|
export interface RegisterPushTokenBody {
|
|
3825
3832
|
/**
|
|
3826
|
-
*
|
|
3833
|
+
* Токен устройства. Для `expo` — `ExponentPushToken[…]` (или `ExpoPushToken[…]`); для `apns` — токен устройства APNs в hex (не короче 64 символов), регистр не важен: хранится в нижнем
|
|
3827
3834
|
*
|
|
3828
3835
|
* length: 1..∞
|
|
3829
3836
|
*/
|
|
3830
3837
|
token: string;
|
|
3831
3838
|
/** default ios */
|
|
3832
3839
|
platform?: "ios" | "android";
|
|
3840
|
+
/** По умолчанию `expo` — так регистрируются клиенты, которые поля не шлют */
|
|
3841
|
+
provider?: "expo" | "apns";
|
|
3842
|
+
/** Только для `apns`, и там обязателен (`APNS_ENVIRONMENT_REQUIRED`). Для `expo` — 400 `PUSH_PROVIDER_MISMATCH` */
|
|
3843
|
+
environment?: "sandbox" | "production";
|
|
3844
|
+
/** Только для `apns`: bundle id приложения (`apns-topic`). Допустимые: finance.v3.ios; по умолчанию `finance.v3.ios`. Другой — 400 `APNS_TOPIC_NOT_ALLOWED`. Для `expo` — 400 `PUSH_PROVIDER_MISMATCH` */
|
|
3845
|
+
topic?: string;
|
|
3833
3846
|
}
|
|
3834
3847
|
export interface RegistryNetwork {
|
|
3835
3848
|
/** cuid */
|