@nurama/sdk 1.4.1 → 1.4.2
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/browser/nurama-bot-sdk.js +38 -4
- package/dist/browser/nurama-bot-sdk.min.js +1 -1
- package/dist/browser/nurama-sdk.js +38 -4
- package/dist/browser/nurama-sdk.min.js +1 -1
- package/dist/routes/device.d.ts +16 -1
- package/dist/routes/device.d.ts.map +1 -1
- package/dist/routes/device.js +34 -0
- package/dist/routes/device.js.map +1 -1
- package/dist/version.js +4 -4
- package/package.json +2 -2
- package/src/routes/device.ts +38 -0
- package/src/version.ts +4 -4
|
@@ -9785,6 +9785,40 @@
|
|
|
9785
9785
|
endpoint: `/v1/devices/${deviceId}`,
|
|
9786
9786
|
sendJWT: true
|
|
9787
9787
|
});
|
|
9788
|
+
},
|
|
9789
|
+
/**
|
|
9790
|
+
* Register or refresh an iOS upload Live Activity, so the API carries it on by push through post-processing
|
|
9791
|
+
* while the app is suspended. Send the activity's push token and the app's view of the batch; send it again
|
|
9792
|
+
* as the batch changes. Requires authentication.
|
|
9793
|
+
* @param {string} activityId - ActivityKit's id for the activity.
|
|
9794
|
+
* @param {RegisterLiveActivityBody} body - Push token, APNs environment and the batch's files.
|
|
9795
|
+
* @returns {Promise<LiveActivityRegistration>} The activity id and the batch's stage.
|
|
9796
|
+
*/
|
|
9797
|
+
async registerLiveActivity(activityId, body) {
|
|
9798
|
+
if (!activityId) {
|
|
9799
|
+
throw new Error("activityId is required.");
|
|
9800
|
+
}
|
|
9801
|
+
return client._request({
|
|
9802
|
+
method: "PUT",
|
|
9803
|
+
endpoint: `/v1/devices/live-activities/${activityId}`,
|
|
9804
|
+
body,
|
|
9805
|
+
sendJWT: true
|
|
9806
|
+
});
|
|
9807
|
+
},
|
|
9808
|
+
/**
|
|
9809
|
+
* Stop following an upload Live Activity (the app ended it). Requires authentication.
|
|
9810
|
+
* @param {string} activityId - ActivityKit's id for the activity.
|
|
9811
|
+
* @returns {Promise<void>}
|
|
9812
|
+
*/
|
|
9813
|
+
async endLiveActivity(activityId) {
|
|
9814
|
+
if (!activityId) {
|
|
9815
|
+
throw new Error("activityId is required.");
|
|
9816
|
+
}
|
|
9817
|
+
return client._request({
|
|
9818
|
+
method: "DELETE",
|
|
9819
|
+
endpoint: `/v1/devices/live-activities/${activityId}`,
|
|
9820
|
+
sendJWT: true
|
|
9821
|
+
});
|
|
9788
9822
|
}
|
|
9789
9823
|
};
|
|
9790
9824
|
}
|
|
@@ -11225,10 +11259,10 @@
|
|
|
11225
11259
|
|
|
11226
11260
|
// src/version.ts
|
|
11227
11261
|
var SDK_VERSION = {
|
|
11228
|
-
version: "1.4.
|
|
11229
|
-
buildTimestamp: "2026-10-
|
|
11230
|
-
buildHash: "
|
|
11231
|
-
gitCommit: "
|
|
11262
|
+
version: "1.4.2",
|
|
11263
|
+
buildTimestamp: "2026-10-13T14:29:32.506Z",
|
|
11264
|
+
buildHash: "4d2cf795aed2effc13ea74e85309a692",
|
|
11265
|
+
gitCommit: "6c603cf",
|
|
11232
11266
|
dirty: false
|
|
11233
11267
|
};
|
|
11234
11268
|
|