@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.
@@ -1,5 +1,5 @@
1
1
  /** SDK version, sent in the `user-agent` header. */
2
- export declare const SDK_VERSION = "0.16.0";
2
+ export declare const SDK_VERSION = "0.17.0";
3
3
  /** Default API base URL. */
4
4
  export declare const DEFAULT_BASE_URL = "https://policy-engine-rest.ezig.workers.dev";
5
5
  //# sourceMappingURL=version.d.ts.map
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DEFAULT_BASE_URL = exports.SDK_VERSION = void 0;
4
4
  /** SDK version, sent in the `user-agent` header. */
5
- exports.SDK_VERSION = '0.16.0';
5
+ exports.SDK_VERSION = '0.17.0';
6
6
  /** Default API base URL. */
7
7
  exports.DEFAULT_BASE_URL = 'https://policy-engine-rest.ezig.workers.dev';
8
8
  //# sourceMappingURL=version.js.map
@@ -9,7 +9,7 @@
9
9
  // the API does not slip in unclassified.
10
10
  //
11
11
  // Operations: 250 · admin: 45 · both: 1 · member: 201 · service: 3
12
- // Spec sha256: 18bd9bc695a90be2d39fb997f81af9df580d054b64736ca2bf9e5c95f28edfe5
12
+ // Spec sha256: 585b254ed09a4e675ae6713e5929b2edcc258bb25691604ecde6bf29ef728022
13
13
  export const OPERATIONS = {
14
14
  "DELETE /api/v1/me/push-tokens/{token}": {
15
15
  "method": "delete",
@@ -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
- * Expo push token
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 */