@casual-simulation/aux-records 3.8.1 → 3.10.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/AIChatInterface.d.ts +7 -43
- package/AIChatInterface.js +8 -6
- package/AIChatInterface.js.map +1 -1
- package/AIController.js +44 -49
- package/AIController.js.map +1 -1
- package/AIOpenAIRealtimeInterface.d.ts +1 -1
- package/AnthropicAIChatInterface.js +4 -4
- package/AnthropicAIChatInterface.js.map +1 -1
- package/AuthController.d.ts +78 -10
- package/AuthController.js +230 -166
- package/AuthController.js.map +1 -1
- package/AuthStore.d.ts +317 -4
- package/BigIntPatch.d.ts +1 -0
- package/BigIntPatch.js +24 -0
- package/BigIntPatch.js.map +1 -0
- package/BlockadeLabsGenerateSkyboxInterface.js +4 -4
- package/BlockadeLabsGenerateSkyboxInterface.js.map +1 -1
- package/CachingConfigStore.d.ts +8 -1
- package/CachingConfigStore.js +50 -0
- package/CachingConfigStore.js.map +1 -1
- package/ComIdConfig.d.ts +132 -86
- package/ComIdConfig.js +5 -5
- package/ComIdConfig.js.map +1 -1
- package/ConfigurationStore.d.ts +1393 -3
- package/ConfigurationStore.js +49 -0
- package/ConfigurationStore.js.map +1 -1
- package/DataRecordsController.js +28 -28
- package/DataRecordsController.js.map +1 -1
- package/EventRecordsController.js +9 -9
- package/EventRecordsController.js.map +1 -1
- package/FileRecordsController.js +18 -17
- package/FileRecordsController.js.map +1 -1
- package/GoogleAIChatInterface.js +4 -4
- package/GoogleAIChatInterface.js.map +1 -1
- package/HttpTestUtils.d.ts +48 -0
- package/HttpTestUtils.js +256 -0
- package/HttpTestUtils.js.map +1 -0
- package/LivekitController.js +2 -2
- package/LivekitController.js.map +1 -1
- package/LoomController.js +3 -4
- package/LoomController.js.map +1 -1
- package/MemoryStore.d.ts +60 -7
- package/MemoryStore.js +427 -59
- package/MemoryStore.js.map +1 -1
- package/MetricsStore.d.ts +11 -0
- package/ModerationConfiguration.d.ts +11 -85
- package/ModerationConfiguration.js +17 -17
- package/ModerationConfiguration.js.map +1 -1
- package/ModerationController.js +9 -11
- package/ModerationController.js.map +1 -1
- package/OpenAIChatInterface.js +8 -13
- package/OpenAIChatInterface.js.map +1 -1
- package/OpenAIImageInterface.js +4 -5
- package/OpenAIImageInterface.js.map +1 -1
- package/PolicyController.js +66 -73
- package/PolicyController.js.map +1 -1
- package/PolicyStore.d.ts +59 -33
- package/PolicyStore.js +35 -1
- package/PolicyStore.js.map +1 -1
- package/PrivoClient.d.ts +3 -1
- package/PrivoClient.js +2 -4
- package/PrivoClient.js.map +1 -1
- package/PrivoConfiguration.d.ts +6 -72
- package/PrivoConfiguration.js +30 -31
- package/PrivoConfiguration.js.map +1 -1
- package/README.md +276 -2
- package/RateLimitController.js +2 -2
- package/RateLimitController.js.map +1 -1
- package/RecordsClient.d.ts +3 -1
- package/RecordsClient.js +6 -6
- package/RecordsClient.js.map +1 -1
- package/RecordsController.d.ts +145 -3
- package/RecordsController.js +399 -61
- package/RecordsController.js.map +1 -1
- package/RecordsServer.d.ts +1932 -1109
- package/RecordsStore.d.ts +99 -14
- package/RecordsStore.js +8 -10
- package/RecordsStore.js.map +1 -1
- package/ServerConfig.d.ts +698 -9867
- package/ServerConfig.js +457 -377
- package/ServerConfig.js.map +1 -1
- package/SloydInterface.js +1 -1
- package/SloydInterface.js.map +1 -1
- package/StabilityAIImageInterface.js +6 -9
- package/StabilityAIImageInterface.js.map +1 -1
- package/StripeInterface.d.ts +431 -287
- package/StripeInterface.js +21 -1
- package/StripeInterface.js.map +1 -1
- package/SubscriptionConfigBuilder.d.ts +10 -1
- package/SubscriptionConfigBuilder.js +72 -41
- package/SubscriptionConfigBuilder.js.map +1 -1
- package/SubscriptionConfiguration.d.ts +606 -6334
- package/SubscriptionConfiguration.js +460 -277
- package/SubscriptionConfiguration.js.map +1 -1
- package/SubscriptionController.d.ts +677 -4
- package/SubscriptionController.js +2986 -186
- package/SubscriptionController.js.map +1 -1
- package/SystemNotificationMessenger.d.ts +14 -70
- package/SystemNotificationMessenger.js +17 -20
- package/SystemNotificationMessenger.js.map +1 -1
- package/TestUtils.d.ts +18 -3
- package/TestUtils.js +84 -8
- package/TestUtils.js.map +1 -1
- package/TypeUtils.d.ts +991 -0
- package/TypeUtils.js +2 -0
- package/TypeUtils.js.map +1 -0
- package/Utils.d.ts +59 -0
- package/Utils.js +507 -3
- package/Utils.js.map +1 -1
- package/Validations.d.ts +24 -108
- package/Validations.js +62 -45
- package/Validations.js.map +1 -1
- package/ViewTemplateRenderer.d.ts +39 -0
- package/ViewTemplateRenderer.js +19 -0
- package/ViewTemplateRenderer.js.map +1 -0
- package/contracts/ContractRecordsController.d.ts +58 -0
- package/contracts/ContractRecordsController.js +144 -0
- package/contracts/ContractRecordsController.js.map +1 -0
- package/contracts/ContractRecordsStore.d.ts +285 -0
- package/contracts/ContractRecordsStore.js +19 -0
- package/contracts/ContractRecordsStore.js.map +1 -0
- package/contracts/MemoryContractRecordsStore.d.ts +27 -0
- package/contracts/MemoryContractRecordsStore.js +124 -0
- package/contracts/MemoryContractRecordsStore.js.map +1 -0
- package/contracts/index.d.ts +4 -0
- package/contracts/index.js +21 -0
- package/contracts/index.js.map +1 -0
- package/crud/CrudHelpers.d.ts +25 -26
- package/crud/CrudHelpers.js +1 -1
- package/crud/CrudHelpers.js.map +1 -1
- package/crud/CrudRecordsController.js +13 -16
- package/crud/CrudRecordsController.js.map +1 -1
- package/crud/CrudRecordsControllerTests.d.ts +2 -2
- package/crud/CrudRecordsControllerTests.js +605 -580
- package/crud/CrudRecordsControllerTests.js.map +1 -1
- package/crud/MemoryCrudRecordsStore.js +1 -2
- package/crud/MemoryCrudRecordsStore.js.map +1 -1
- package/crud/sub/MemorySubCrudRecordsStore.js +4 -6
- package/crud/sub/MemorySubCrudRecordsStore.js.map +1 -1
- package/crud/sub/SubCrudRecordsController.js +8 -8
- package/crud/sub/SubCrudRecordsController.js.map +1 -1
- package/database/DatabaseRecordsController.js +1 -2
- package/database/DatabaseRecordsController.js.map +1 -1
- package/database/SqliteDatabaseInterface.js +1 -2
- package/database/SqliteDatabaseInterface.js.map +1 -1
- package/dns/DNSDomainNameValidator.d.ts +11 -0
- package/dns/DNSDomainNameValidator.js +59 -0
- package/dns/DNSDomainNameValidator.js.map +1 -0
- package/dns/DomainNameValidator.d.ts +36 -0
- package/dns/DomainNameValidator.js +19 -0
- package/dns/DomainNameValidator.js.map +1 -0
- package/dns/index.d.ts +3 -0
- package/dns/index.js +20 -0
- package/dns/index.js.map +1 -0
- package/financial/FinancialController.d.ts +272 -0
- package/financial/FinancialController.js +762 -0
- package/financial/FinancialController.js.map +1 -0
- package/financial/FinancialInterface.d.ts +352 -0
- package/financial/FinancialInterface.js +642 -0
- package/financial/FinancialInterface.js.map +1 -0
- package/financial/FinancialStore.d.ts +186 -0
- package/financial/FinancialStore.js +19 -0
- package/financial/FinancialStore.js.map +1 -0
- package/financial/MemoryFinancialInterface.d.ts +23 -0
- package/financial/MemoryFinancialInterface.js +592 -0
- package/financial/MemoryFinancialInterface.js.map +1 -0
- package/financial/TigerBeetleFinancialInterface.d.ts +46 -0
- package/financial/TigerBeetleFinancialInterface.js +109 -0
- package/financial/TigerBeetleFinancialInterface.js.map +1 -0
- package/financial/TigerBeetleTestUtils.d.ts +40 -0
- package/financial/TigerBeetleTestUtils.js +185 -0
- package/financial/TigerBeetleTestUtils.js.map +1 -0
- package/financial/Types.d.ts +1 -0
- package/financial/Types.js +801 -0
- package/financial/Types.js.map +1 -0
- package/financial/index.d.ts +6 -0
- package/financial/index.js +24 -0
- package/financial/index.js.map +1 -0
- package/index.d.ts +4 -0
- package/index.js +3 -0
- package/index.js.map +1 -1
- package/notifications/NotificationRecordsController.js +14 -14
- package/notifications/NotificationRecordsController.js.map +1 -1
- package/notifications/WebPushInterface.d.ts +24 -155
- package/notifications/WebPushInterface.js +2 -2
- package/notifications/WebPushInterface.js.map +1 -1
- package/package.json +72 -70
- package/packages/version/MemoryPackageVersionRecordsStore.js +12 -15
- package/packages/version/MemoryPackageVersionRecordsStore.js.map +1 -1
- package/packages/version/PackageVersionRecordsController.d.ts +19 -0
- package/packages/version/PackageVersionRecordsController.js +102 -22
- package/packages/version/PackageVersionRecordsController.js.map +1 -1
- package/packages/version/PackageVersionRecordsStore.js +6 -8
- package/packages/version/PackageVersionRecordsStore.js.map +1 -1
- package/purchasable-items/MemoryPurchasableItemRecordsStore.d.ts +7 -0
- package/purchasable-items/MemoryPurchasableItemRecordsStore.js +33 -0
- package/purchasable-items/MemoryPurchasableItemRecordsStore.js.map +1 -0
- package/purchasable-items/PurchasableItemRecordsController.d.ts +16 -0
- package/purchasable-items/PurchasableItemRecordsController.js +72 -0
- package/purchasable-items/PurchasableItemRecordsController.js.map +1 -0
- package/purchasable-items/PurchasableItemRecordsStore.d.ts +66 -0
- package/purchasable-items/PurchasableItemRecordsStore.js +2 -0
- package/purchasable-items/PurchasableItemRecordsStore.js.map +1 -0
- package/purchasable-items/index.d.ts +4 -0
- package/purchasable-items/index.js +21 -0
- package/purchasable-items/index.js.map +1 -0
- package/queue/MemoryQueue.js +1 -1
- package/queue/MemoryQueue.js.map +1 -1
- package/search/MemorySearchInterface.js +1 -2
- package/search/MemorySearchInterface.js.map +1 -1
- package/search/SearchRecordsController.d.ts +66 -244
- package/search/SearchRecordsController.js +35 -36
- package/search/SearchRecordsController.js.map +1 -1
- package/search/SearchSyncProcessor.d.ts +7 -83
- package/search/TypesenseSearchInterface.js +8 -11
- package/search/TypesenseSearchInterface.js.map +1 -1
- package/tracing/TracingDecorators.js +5 -8
- package/tracing/TracingDecorators.js.map +1 -1
- package/webhooks/WebhookEnvironment.d.ts +36 -560
- package/webhooks/WebhookEnvironment.js +1 -1
- package/webhooks/WebhookEnvironment.js.map +1 -1
- package/webhooks/WebhookRecordsController.js +14 -16
- package/webhooks/WebhookRecordsController.js.map +1 -1
- package/websockets/MemoryLockStore.d.ts +18 -0
- package/websockets/MemoryLockStore.js +2 -0
- package/websockets/MemoryLockStore.js.map +1 -0
- package/websockets/MemoryTempInstRecordsStore.js +15 -27
- package/websockets/MemoryTempInstRecordsStore.js.map +1 -1
- package/websockets/MemoryWebsocketConnectionStore.js +6 -8
- package/websockets/MemoryWebsocketConnectionStore.js.map +1 -1
- package/websockets/MemoryWebsocketMessenger.js +1 -2
- package/websockets/MemoryWebsocketMessenger.js.map +1 -1
- package/websockets/SplitInstRecordsStore.js +2 -2
- package/websockets/SplitInstRecordsStore.js.map +1 -1
- package/websockets/WebsocketController.d.ts +5 -0
- package/websockets/WebsocketController.js +122 -83
- package/websockets/WebsocketController.js.map +1 -1
- package/RecordsServer.js +0 -6435
- package/RecordsServer.js.map +0 -1
package/RecordsClient.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RecordsClient.js","sourceRoot":"","sources":["RecordsClient.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RecordsClient.js","sourceRoot":"","sources":["RecordsClient.ts"],"names":[],"mappings":"AA2CA;;GAEG;AACH,MAAM,OAAO,aAAa;IAItB,IAAI,UAAU;QACV,OAAO,IAAI,CAAC,WAAW,CAAC;IAC5B,CAAC;IAED,IAAI,UAAU,CAAC,KAAa;QACxB,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;IAC7B,CAAC;IAED,IAAI,QAAQ;QACR,OAAO,IAAI,CAAC,SAAS,CAAC;IAC1B,CAAC;IAED,YAAY,QAAgB;QACxB,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC;QAC1B,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;QAExB,MAAM,CAAC,gBAAgB,CAAC,IAAI,EAAE;YAC1B,IAAI,EAAE;gBACF,KAAK,EAAE,SAAS;gBAChB,YAAY,EAAE,KAAK;gBACnB,QAAQ,EAAE,KAAK;aAClB;YACD,KAAK,EAAE;gBACH,KAAK,EAAE,SAAS;gBAChB,YAAY,EAAE,KAAK;gBACnB,QAAQ,EAAE,KAAK;aAClB;SACJ,CA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|
-
import type { ListedRecord, ListedStudioAssignment, RecordsStore, StudioAssignmentRole, LoomConfig, HumeConfig } from './RecordsStore';
|
|
1
|
+
import type { ListedRecord, ListedStudioAssignment, RecordsStore, StudioAssignmentRole, LoomConfig, HumeConfig, ListedCustomDomain, CustomDomainWithStudio } from './RecordsStore';
|
|
2
|
+
import type { StripeAccountStatus, StripeRequirementsStatus } from './StripeInterface';
|
|
2
3
|
import type { NotAuthorizedError, NotLoggedInError, NotSupportedError, ServerError, SubscriptionLimitReached } from '@casual-simulation/aux-common/Errors';
|
|
3
4
|
import type { ValidateSessionKeyFailure } from './AuthController';
|
|
4
5
|
import type { AuthStore } from './AuthStore';
|
|
5
6
|
import type { MetricsStore } from './MetricsStore';
|
|
6
|
-
import type
|
|
7
|
-
import type { AIHumeFeaturesConfiguration, StudioComIdFeaturesConfiguration, StudioLoomFeaturesConfiguration } from './SubscriptionConfiguration';
|
|
7
|
+
import { type ConfigurationInput, type ConfigurationKey, type ConfigurationOutput, type ConfigurationStore } from './ConfigurationStore';
|
|
8
|
+
import type { AIHumeFeaturesConfiguration, PurchasableItemFeaturesConfiguration, StudioComIdFeaturesConfiguration, StudioLoomFeaturesConfiguration } from './SubscriptionConfiguration';
|
|
8
9
|
import type { ComIdConfig, ComIdPlayerConfig } from './ComIdConfig';
|
|
9
10
|
import type { SystemNotificationMessenger } from './SystemNotificationMessenger';
|
|
11
|
+
import type { CasualOSConfig, Result, SimpleError, UserRole, WebConfig } from '@casual-simulation/aux-common';
|
|
10
12
|
import type { PrivoClientInterface } from './PrivoClient';
|
|
11
13
|
import type { PublicRecordKeyPolicy } from '@casual-simulation/aux-common/records/RecordKeys';
|
|
14
|
+
import type { DomainNameValidator, DomainNameVerificationDNSRecord } from './dns/DomainNameValidator';
|
|
15
|
+
import type { WebManifest } from '@casual-simulation/aux-common/common/WebManifest';
|
|
12
16
|
export interface RecordsControllerConfig {
|
|
13
17
|
store: RecordsStore;
|
|
14
18
|
auth: AuthStore;
|
|
@@ -16,6 +20,7 @@ export interface RecordsControllerConfig {
|
|
|
16
20
|
config: ConfigurationStore;
|
|
17
21
|
messenger: SystemNotificationMessenger | null;
|
|
18
22
|
privo: PrivoClientInterface | null;
|
|
23
|
+
domainNameValidator: DomainNameValidator | null;
|
|
19
24
|
}
|
|
20
25
|
/**
|
|
21
26
|
* Defines a class that manages records and their keys.
|
|
@@ -27,6 +32,7 @@ export declare class RecordsController {
|
|
|
27
32
|
private _config;
|
|
28
33
|
private _messenger;
|
|
29
34
|
private _privo;
|
|
35
|
+
private _domainNameValidator;
|
|
30
36
|
constructor(config: RecordsControllerConfig);
|
|
31
37
|
/**
|
|
32
38
|
* Creates a new record.
|
|
@@ -90,11 +96,58 @@ export declare class RecordsController {
|
|
|
90
96
|
* @param userId The ID of the user that is making this request.
|
|
91
97
|
*/
|
|
92
98
|
getStudio(studioId: string, userId: string): Promise<GetStudioResult>;
|
|
99
|
+
/**
|
|
100
|
+
* Attempts to add a custom domain to a studio.
|
|
101
|
+
* @param request The request to add the custom domain.
|
|
102
|
+
* @returns A result containing the verification DNS record or an error.
|
|
103
|
+
*/
|
|
104
|
+
addCustomDomain(request: AddCustomDomainRequest): Promise<Result<DomainNameVerificationDNSRecord, SimpleError>>;
|
|
105
|
+
/**
|
|
106
|
+
* Attempts to delete a custom domain.
|
|
107
|
+
* @param request The request to delete the custom domain.
|
|
108
|
+
* @returns A result indicating success or failure.
|
|
109
|
+
*/
|
|
110
|
+
deleteCustomDomain(request: DeleteCustomDomainRequest): Promise<Result<void, SimpleError>>;
|
|
111
|
+
/**
|
|
112
|
+
* Lists all custom domains for a given studio.
|
|
113
|
+
* @param request The request to list custom domains.
|
|
114
|
+
* @returns A result containing the list of custom domains or an error.
|
|
115
|
+
*/
|
|
116
|
+
listCustomDomains(request: ListCustomDomainsRequest): Promise<ListCustomDomainsResult>;
|
|
117
|
+
/**
|
|
118
|
+
* Attempts to verify a custom domain.
|
|
119
|
+
* @param request The request to verify the custom domain.
|
|
120
|
+
*/
|
|
121
|
+
verifyCustomDomain(request: VerifyCustomDomainRequest): Promise<Result<void, SimpleError>>;
|
|
93
122
|
/**
|
|
94
123
|
* Attempts to get the player config for the given comId.
|
|
95
124
|
* @param comId The comId.
|
|
96
125
|
*/
|
|
97
126
|
getPlayerConfig(comId: string): Promise<GetPlayerConfigResult>;
|
|
127
|
+
/**
|
|
128
|
+
* Gets the AB1 bootstrap script that should be injected into the web player.
|
|
129
|
+
* @param config The config for the web player.
|
|
130
|
+
* @returns
|
|
131
|
+
*/
|
|
132
|
+
getAb1Bootstrap(config: WebConfig): Promise<Result<string, SimpleError>>;
|
|
133
|
+
/**
|
|
134
|
+
* Attempts to get the web config.
|
|
135
|
+
*
|
|
136
|
+
* @param hostname The hostname that the request was made to.
|
|
137
|
+
*/
|
|
138
|
+
getWebConfig(hostname: string): Promise<Result<CasualOSConfig, SimpleError>>;
|
|
139
|
+
/**
|
|
140
|
+
* Attempts to get the web manifest for the player.
|
|
141
|
+
* @param hostname The hostname that the request was made to.
|
|
142
|
+
*/
|
|
143
|
+
getPlayerWebManifest(hostname: string): Promise<Result<WebManifest, SimpleError>>;
|
|
144
|
+
/**
|
|
145
|
+
* Attempts to get a verified custom domain by its name.
|
|
146
|
+
* @param hostname The hostname of the custom domain.
|
|
147
|
+
*/
|
|
148
|
+
getVerifiedCustomDomainByName(hostname: string): Promise<Result<CustomDomainWithStudio | null, SimpleError>>;
|
|
149
|
+
getConfigurationValue(request: GetConfigurationValueRequest): Promise<Result<ConfigurationOutput<ConfigurationKey>, SimpleError>>;
|
|
150
|
+
setConfigurationValue(request: SetConfigurationValueRequest): Promise<Result<void, SimpleError>>;
|
|
98
151
|
/**
|
|
99
152
|
* Gets the list of studios that the user with the given ID has access to.
|
|
100
153
|
* @param userId The ID of the user.
|
|
@@ -506,6 +559,11 @@ export interface UpdateStudioRequest {
|
|
|
506
559
|
* If omitted, then the player configuration will not be updated.
|
|
507
560
|
*/
|
|
508
561
|
playerConfig?: ComIdPlayerConfig;
|
|
562
|
+
/**
|
|
563
|
+
* The PWA web manifest that should be served for custom domains for the server.
|
|
564
|
+
* If omitted, then the web manifest will not be updated.
|
|
565
|
+
*/
|
|
566
|
+
playerWebManifest?: WebManifest;
|
|
509
567
|
/**
|
|
510
568
|
* The configuration for the studio's comId.
|
|
511
569
|
* If omitted, then the comId configuration will not be updated.
|
|
@@ -586,6 +644,18 @@ export interface StudioData {
|
|
|
586
644
|
* The hume features that this studio has access to.
|
|
587
645
|
*/
|
|
588
646
|
humeFeatures: AIHumeFeaturesConfiguration;
|
|
647
|
+
/**
|
|
648
|
+
* The store features that this studio has access to.
|
|
649
|
+
*/
|
|
650
|
+
storeFeatures: PurchasableItemFeaturesConfiguration;
|
|
651
|
+
/**
|
|
652
|
+
* The status of the studio's stripe requirements.
|
|
653
|
+
*/
|
|
654
|
+
stripeRequirementsStatus: StripeRequirementsStatus;
|
|
655
|
+
/**
|
|
656
|
+
* The status of the studio's stripe account.
|
|
657
|
+
*/
|
|
658
|
+
stripeAccountStatus: StripeAccountStatus;
|
|
589
659
|
}
|
|
590
660
|
export interface GetStudioFailure {
|
|
591
661
|
success: false;
|
|
@@ -644,4 +714,76 @@ export interface ComIdRequestFailure {
|
|
|
644
714
|
errorCode: 'studio_not_found' | 'comId_already_taken' | 'not_authorized' | ServerError;
|
|
645
715
|
errorMessage: string;
|
|
646
716
|
}
|
|
717
|
+
export interface AddCustomDomainRequest {
|
|
718
|
+
/**
|
|
719
|
+
* The ID of the currently logged in user.
|
|
720
|
+
*/
|
|
721
|
+
userId: string;
|
|
722
|
+
/**
|
|
723
|
+
* The role of the currently logged in user.
|
|
724
|
+
*/
|
|
725
|
+
userRole?: UserRole;
|
|
726
|
+
/**
|
|
727
|
+
* The domain name.
|
|
728
|
+
*/
|
|
729
|
+
domain: string;
|
|
730
|
+
/**
|
|
731
|
+
* The ID of the studio that the domain should be added to.
|
|
732
|
+
*/
|
|
733
|
+
studioId: string;
|
|
734
|
+
}
|
|
735
|
+
export interface VerifyCustomDomainRequest {
|
|
736
|
+
/**
|
|
737
|
+
* The ID of the currently logged in user.
|
|
738
|
+
*/
|
|
739
|
+
userId: string;
|
|
740
|
+
/**
|
|
741
|
+
* The role of the currently logged in user.
|
|
742
|
+
*/
|
|
743
|
+
userRole?: UserRole;
|
|
744
|
+
/**
|
|
745
|
+
* The ID of the custom domain to verify.
|
|
746
|
+
*/
|
|
747
|
+
customDomainId: string;
|
|
748
|
+
}
|
|
749
|
+
export interface DeleteCustomDomainRequest {
|
|
750
|
+
/**
|
|
751
|
+
* The ID of the currently logged in user.
|
|
752
|
+
*/
|
|
753
|
+
userId: string;
|
|
754
|
+
/**
|
|
755
|
+
* The role of the currently logged in user.
|
|
756
|
+
*/
|
|
757
|
+
userRole?: UserRole;
|
|
758
|
+
/**
|
|
759
|
+
* The ID of the custom domain to remove.
|
|
760
|
+
*/
|
|
761
|
+
customDomainId: string;
|
|
762
|
+
}
|
|
763
|
+
export interface ListCustomDomainsRequest {
|
|
764
|
+
/**
|
|
765
|
+
* The ID of the currently logged in user.
|
|
766
|
+
*/
|
|
767
|
+
userId: string;
|
|
768
|
+
/**
|
|
769
|
+
* The role of the currently logged in user.
|
|
770
|
+
*/
|
|
771
|
+
userRole?: UserRole;
|
|
772
|
+
/**
|
|
773
|
+
* The ID of the studio to list custom domains for.
|
|
774
|
+
*/
|
|
775
|
+
studioId: string;
|
|
776
|
+
}
|
|
777
|
+
export type ListCustomDomainsResult = Result<{
|
|
778
|
+
domains: ListedCustomDomain[];
|
|
779
|
+
}, SimpleError>;
|
|
780
|
+
export interface GetConfigurationValueRequest {
|
|
781
|
+
userRole: UserRole | null;
|
|
782
|
+
key: ConfigurationKey;
|
|
783
|
+
}
|
|
784
|
+
export interface SetConfigurationValueRequest {
|
|
785
|
+
userRole: UserRole | null;
|
|
786
|
+
key: ConfigurationKey;
|
|
787
|
+
value: ConfigurationInput<ConfigurationKey>;
|
|
788
|
+
}
|
|
647
789
|
//# sourceMappingURL=RecordsController.d.ts.map
|