@photon-os/sdk 1.0.0-alpha.0 → 1.0.0-alpha.1

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/index.mjs CHANGED
@@ -1174,6 +1174,28 @@ var require_pm_rpc_min = __commonJS({
1174
1174
  // src/framework/OS.ts
1175
1175
  var pmrpc = __toESM(require_pm_rpc_min());
1176
1176
 
1177
+ // src/framework/AccountManager.ts
1178
+ var AccountManager = class {
1179
+ constructor(os) {
1180
+ this.os = os;
1181
+ }
1182
+ /** Get all Second Life accounts linked to the current user */
1183
+ async getLinkedSecondLifeAccounts() {
1184
+ const api2 = await this.os.getRPCAPI();
1185
+ return await api2.accounts_getLinkedSecondLifeAccounts();
1186
+ }
1187
+ /** Unlink a Second Life account from the current user */
1188
+ async unlinkSecondLifeAccount(avatarUuid) {
1189
+ const api2 = await this.os.getRPCAPI();
1190
+ await api2.accounts_unlinkSecondLifeAccount(avatarUuid);
1191
+ }
1192
+ /** Generate a linking code for connecting a Second Life account */
1193
+ async generateLinkingCode() {
1194
+ const api2 = await this.os.getRPCAPI();
1195
+ return await api2.accounts_generateLinkingCode();
1196
+ }
1197
+ };
1198
+
1177
1199
  // src/framework/AppManager.ts
1178
1200
  var AppManager = class {
1179
1201
  constructor(os) {
@@ -1266,6 +1288,7 @@ var UserManager = class {
1266
1288
  var OS = class {
1267
1289
  constructor(config = { target: window.parent }) {
1268
1290
  this.config = config;
1291
+ this.accounts = new AccountManager(this);
1269
1292
  this.apps = new AppManager(this);
1270
1293
  this.prefs = new PreferencesManager(this);
1271
1294
  this.user = new UserManager(this);