@casual-simulation/aux-records 4.2.4 → 4.2.5-alpha.26538318498
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/RecordsServer.d.ts +16 -1
- package/package.json +1 -1
package/RecordsServer.d.ts
CHANGED
|
@@ -151,6 +151,14 @@ export interface RecordsServerOptions {
|
|
|
151
151
|
* The set of origins that are allowed to make requests to API endpoints.
|
|
152
152
|
*/
|
|
153
153
|
allowedApiOrigins: Set<string>;
|
|
154
|
+
/**
|
|
155
|
+
* The number of seconds that public inst records should be kept for.
|
|
156
|
+
*/
|
|
157
|
+
publicInstRecordsLifetimeSeconds?: number | null;
|
|
158
|
+
/**
|
|
159
|
+
* The expiration mode that should be used for public inst records.
|
|
160
|
+
*/
|
|
161
|
+
publicInstRecordsLifetimeExpireMode?: 'NX' | 'XX' | 'GT' | 'LT' | null;
|
|
154
162
|
/**
|
|
155
163
|
* The controller that should be used for handling authentication requests.
|
|
156
164
|
*/
|
|
@@ -295,6 +303,8 @@ export declare class RecordsServer {
|
|
|
295
303
|
*/
|
|
296
304
|
private _allowedAccountOrigins;
|
|
297
305
|
private _allowedSelfOrigins;
|
|
306
|
+
private _publicInstRecordsLifetimeSeconds;
|
|
307
|
+
private _publicInstRecordsLifetimeExpireMode;
|
|
298
308
|
private _rateLimit;
|
|
299
309
|
private _websocketRateLimit;
|
|
300
310
|
private _policyController;
|
|
@@ -325,6 +335,11 @@ export declare class RecordsServer {
|
|
|
325
335
|
playerVmIframeDom: Procedure<void, import("@casual-simulation/aux-common").GenericResult<ViewParams, SimpleError>, void>;
|
|
326
336
|
authIndex: Procedure<void, import("@casual-simulation/aux-common").GenericResult<ViewParams, SimpleError>, void>;
|
|
327
337
|
authIframe: Procedure<void, import("@casual-simulation/aux-common").GenericResult<ViewParams, SimpleError>, void>;
|
|
338
|
+
getPublicInstOptions: Procedure<z.ZodObject<{}, z.core.$strip>, {
|
|
339
|
+
success: true;
|
|
340
|
+
lifetimeSeconds: number;
|
|
341
|
+
expireMode: "NX" | "XX" | "GT" | "LT";
|
|
342
|
+
}, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
328
343
|
getUserInfo: Procedure<z.ZodObject<{
|
|
329
344
|
userId: z.ZodString;
|
|
330
345
|
}, z.core.$strip>, import("./AuthController").ValidateSessionKeyFailure | import("./AuthController").GetUserInfoFailure | {
|
|
@@ -2629,7 +2644,7 @@ export declare class RecordsServer {
|
|
|
2629
2644
|
errorMessage: "The user is not logged in. A session key must be provided for this operation.";
|
|
2630
2645
|
} | import("@casual-simulation/aux-common").GenericResult<void, SimpleError>, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
2631
2646
|
};
|
|
2632
|
-
constructor({ allowedAccountOrigins, allowedApiOrigins, authController, livekitController, recordsController, eventsController, dataController, manualDataController, filesController, subscriptionController, websocketController, websocketRateLimitController, rateLimitController, policyController, aiController, moderationController, loomController, webhooksController, notificationsController, packagesController, packageVersionController, searchRecordsController, databaseRecordsController, contractRecordsController, purchasableItemsController, viewTemplateRenderer, }: RecordsServerOptions);
|
|
2647
|
+
constructor({ allowedAccountOrigins, allowedApiOrigins, publicInstRecordsLifetimeSeconds, publicInstRecordsLifetimeExpireMode, authController, livekitController, recordsController, eventsController, dataController, manualDataController, filesController, subscriptionController, websocketController, websocketRateLimitController, rateLimitController, policyController, aiController, moderationController, loomController, webhooksController, notificationsController, packagesController, packageVersionController, searchRecordsController, databaseRecordsController, contractRecordsController, purchasableItemsController, viewTemplateRenderer, }: RecordsServerOptions);
|
|
2633
2648
|
private _createProcedures;
|
|
2634
2649
|
private _setupRoutes;
|
|
2635
2650
|
/**
|
package/package.json
CHANGED