@anuma/sdk 3.11.5 → 3.11.6
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/dist/client/index.d.mts
CHANGED
|
@@ -2400,6 +2400,7 @@ type HandlersNonceResponse = {
|
|
|
2400
2400
|
type HandlersNotificationDeviceResponse = {
|
|
2401
2401
|
app_version?: string;
|
|
2402
2402
|
id?: number;
|
|
2403
|
+
locale?: string;
|
|
2403
2404
|
platform?: string;
|
|
2404
2405
|
token?: string;
|
|
2405
2406
|
};
|
|
@@ -2572,6 +2573,11 @@ type HandlersRefreshRequest = {
|
|
|
2572
2573
|
};
|
|
2573
2574
|
type HandlersRegisterDeviceRequest = {
|
|
2574
2575
|
app_version?: string;
|
|
2576
|
+
/**
|
|
2577
|
+
* Locale is the optional BCP-47 language tag of the device (e.g.
|
|
2578
|
+
* "en-US"); used for announcement-campaign locale segmentation.
|
|
2579
|
+
*/
|
|
2580
|
+
locale?: string;
|
|
2575
2581
|
platform?: string;
|
|
2576
2582
|
token?: string;
|
|
2577
2583
|
};
|
|
@@ -8106,10 +8112,6 @@ type PostApiV1NotificationsDevicesErrors = {
|
|
|
8106
8112
|
* Forbidden
|
|
8107
8113
|
*/
|
|
8108
8114
|
403: ResponseErrorResponse;
|
|
8109
|
-
/**
|
|
8110
|
-
* Conflict
|
|
8111
|
-
*/
|
|
8112
|
-
409: ResponseErrorResponse;
|
|
8113
8115
|
/**
|
|
8114
8116
|
* Internal Server Error
|
|
8115
8117
|
*/
|
|
@@ -10736,7 +10738,7 @@ declare const postApiV1Moderate: <ThrowOnError extends boolean = false>(options:
|
|
|
10736
10738
|
/**
|
|
10737
10739
|
* Register push-notification device
|
|
10738
10740
|
*
|
|
10739
|
-
* Stores an Expo push token so the portal can later deliver push notifications to this device. Idempotent — re-posting the same token refreshes the row.
|
|
10741
|
+
* Stores an Expo push token so the portal can later deliver push notifications to this device. Idempotent — re-posting the same token refreshes the row and bumps its last-seen timestamp. A token previously registered by a different account is reassigned to the caller (an Expo token identifies a physical device). Accounts keep at most 10 devices; the least recently seen are evicted.
|
|
10740
10742
|
*/
|
|
10741
10743
|
declare const postApiV1NotificationsDevices: <ThrowOnError extends boolean = false>(options: Options<PostApiV1NotificationsDevicesData, ThrowOnError>) => RequestResult<PostApiV1NotificationsDevicesResponses, PostApiV1NotificationsDevicesErrors, ThrowOnError>;
|
|
10742
10744
|
/**
|
package/dist/client/index.d.ts
CHANGED
|
@@ -2400,6 +2400,7 @@ type HandlersNonceResponse = {
|
|
|
2400
2400
|
type HandlersNotificationDeviceResponse = {
|
|
2401
2401
|
app_version?: string;
|
|
2402
2402
|
id?: number;
|
|
2403
|
+
locale?: string;
|
|
2403
2404
|
platform?: string;
|
|
2404
2405
|
token?: string;
|
|
2405
2406
|
};
|
|
@@ -2572,6 +2573,11 @@ type HandlersRefreshRequest = {
|
|
|
2572
2573
|
};
|
|
2573
2574
|
type HandlersRegisterDeviceRequest = {
|
|
2574
2575
|
app_version?: string;
|
|
2576
|
+
/**
|
|
2577
|
+
* Locale is the optional BCP-47 language tag of the device (e.g.
|
|
2578
|
+
* "en-US"); used for announcement-campaign locale segmentation.
|
|
2579
|
+
*/
|
|
2580
|
+
locale?: string;
|
|
2575
2581
|
platform?: string;
|
|
2576
2582
|
token?: string;
|
|
2577
2583
|
};
|
|
@@ -8106,10 +8112,6 @@ type PostApiV1NotificationsDevicesErrors = {
|
|
|
8106
8112
|
* Forbidden
|
|
8107
8113
|
*/
|
|
8108
8114
|
403: ResponseErrorResponse;
|
|
8109
|
-
/**
|
|
8110
|
-
* Conflict
|
|
8111
|
-
*/
|
|
8112
|
-
409: ResponseErrorResponse;
|
|
8113
8115
|
/**
|
|
8114
8116
|
* Internal Server Error
|
|
8115
8117
|
*/
|
|
@@ -10736,7 +10738,7 @@ declare const postApiV1Moderate: <ThrowOnError extends boolean = false>(options:
|
|
|
10736
10738
|
/**
|
|
10737
10739
|
* Register push-notification device
|
|
10738
10740
|
*
|
|
10739
|
-
* Stores an Expo push token so the portal can later deliver push notifications to this device. Idempotent — re-posting the same token refreshes the row.
|
|
10741
|
+
* Stores an Expo push token so the portal can later deliver push notifications to this device. Idempotent — re-posting the same token refreshes the row and bumps its last-seen timestamp. A token previously registered by a different account is reassigned to the caller (an Expo token identifies a physical device). Accounts keep at most 10 devices; the least recently seen are evicted.
|
|
10740
10742
|
*/
|
|
10741
10743
|
declare const postApiV1NotificationsDevices: <ThrowOnError extends boolean = false>(options: Options<PostApiV1NotificationsDevicesData, ThrowOnError>) => RequestResult<PostApiV1NotificationsDevicesResponses, PostApiV1NotificationsDevicesErrors, ThrowOnError>;
|
|
10742
10744
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anuma/sdk",
|
|
3
|
-
"version": "3.11.
|
|
3
|
+
"version": "3.11.6",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -157,7 +157,7 @@
|
|
|
157
157
|
"homepage": "https://github.com/anuma-ai/sdk#readme",
|
|
158
158
|
"packageManager": "pnpm@10.23.0",
|
|
159
159
|
"dependencies": {
|
|
160
|
-
"@anuma/portal": "1.0.0-next.
|
|
160
|
+
"@anuma/portal": "1.0.0-next.20260727223242",
|
|
161
161
|
"@babel/parser": "^7.29.2",
|
|
162
162
|
"@babel/types": "^7.29.0",
|
|
163
163
|
"ai": "6.0.202",
|