迁移后端到stdb
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
import {
|
||||
TypeBuilder as __TypeBuilder,
|
||||
t as __t,
|
||||
type AlgebraicTypeType as __AlgebraicTypeType,
|
||||
type Infer as __Infer,
|
||||
} from "spacetimedb";
|
||||
|
||||
import {
|
||||
RequestMeta,
|
||||
MutationResult,
|
||||
} from "./types";
|
||||
|
||||
export const params = {
|
||||
get meta() {
|
||||
return RequestMeta;
|
||||
},
|
||||
};
|
||||
export const returnType = MutationResult
|
||||
24
src/spacetime/generated/client_app_config_table.ts
Normal file
24
src/spacetime/generated/client_app_config_table.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
import {
|
||||
TypeBuilder as __TypeBuilder,
|
||||
t as __t,
|
||||
type AlgebraicTypeType as __AlgebraicTypeType,
|
||||
type Infer as __Infer,
|
||||
} from "spacetimedb";
|
||||
|
||||
export default __t.row({
|
||||
guestLoginEnabled: __t.bool().name("guest_login_enabled"),
|
||||
smsAuthEnabled: __t.bool().name("sms_auth_enabled"),
|
||||
smsVerificationRequired: __t.bool().name("sms_verification_required"),
|
||||
smsProvider: __t.string().name("sms_provider"),
|
||||
smsCodeLength: __t.u16().name("sms_code_length"),
|
||||
smsValidTimeSeconds: __t.u32().name("sms_valid_time_seconds"),
|
||||
smsIntervalSeconds: __t.u32().name("sms_interval_seconds"),
|
||||
defaultMusicVolume: __t.f32().name("default_music_volume"),
|
||||
defaultGuestDisplayNamePrefix: __t.string().name("default_guest_display_name_prefix"),
|
||||
wechatEnabled: __t.bool().name("wechat_enabled"),
|
||||
});
|
||||
@@ -0,0 +1,24 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
import {
|
||||
TypeBuilder as __TypeBuilder,
|
||||
t as __t,
|
||||
type AlgebraicTypeType as __AlgebraicTypeType,
|
||||
type Infer as __Infer,
|
||||
} from "spacetimedb";
|
||||
|
||||
import {
|
||||
RequestMeta,
|
||||
MutationResult,
|
||||
} from "./types";
|
||||
|
||||
export const params = {
|
||||
get meta() {
|
||||
return RequestMeta;
|
||||
},
|
||||
profileId: __t.string(),
|
||||
};
|
||||
export const returnType = MutationResult
|
||||
23
src/spacetime/generated/delete_snapshot_procedure.ts
Normal file
23
src/spacetime/generated/delete_snapshot_procedure.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
import {
|
||||
TypeBuilder as __TypeBuilder,
|
||||
t as __t,
|
||||
type AlgebraicTypeType as __AlgebraicTypeType,
|
||||
type Infer as __Infer,
|
||||
} from "spacetimedb";
|
||||
|
||||
import {
|
||||
RequestMeta,
|
||||
MutationResult,
|
||||
} from "./types";
|
||||
|
||||
export const params = {
|
||||
get meta() {
|
||||
return RequestMeta;
|
||||
},
|
||||
};
|
||||
export const returnType = MutationResult
|
||||
282
src/spacetime/generated/index.ts
Normal file
282
src/spacetime/generated/index.ts
Normal file
@@ -0,0 +1,282 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
// This was generated using spacetimedb cli version 2.1.0 (commit 6981f48b4bc1a71c8dd9bdfe5a2c343f6370243d).
|
||||
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
import {
|
||||
DbConnectionBuilder as __DbConnectionBuilder,
|
||||
DbConnectionImpl as __DbConnectionImpl,
|
||||
SubscriptionBuilderImpl as __SubscriptionBuilderImpl,
|
||||
TypeBuilder as __TypeBuilder,
|
||||
Uuid as __Uuid,
|
||||
convertToAccessorMap as __convertToAccessorMap,
|
||||
makeQueryBuilder as __makeQueryBuilder,
|
||||
procedureSchema as __procedureSchema,
|
||||
procedures as __procedures,
|
||||
reducerSchema as __reducerSchema,
|
||||
reducers as __reducers,
|
||||
schema as __schema,
|
||||
t as __t,
|
||||
table as __table,
|
||||
type AlgebraicTypeType as __AlgebraicTypeType,
|
||||
type DbConnectionConfig as __DbConnectionConfig,
|
||||
type ErrorContextInterface as __ErrorContextInterface,
|
||||
type Event as __Event,
|
||||
type EventContextInterface as __EventContextInterface,
|
||||
type Infer as __Infer,
|
||||
type QueryBuilder as __QueryBuilder,
|
||||
type ReducerEventContextInterface as __ReducerEventContextInterface,
|
||||
type RemoteModule as __RemoteModule,
|
||||
type SubscriptionEventContextInterface as __SubscriptionEventContextInterface,
|
||||
type SubscriptionHandleImpl as __SubscriptionHandleImpl,
|
||||
} from "spacetimedb";
|
||||
|
||||
// Import all reducer arg schemas
|
||||
|
||||
// Import all procedure arg schemas
|
||||
import * as ClearPlatformBrowseHistoryProcedure from "./clear_platform_browse_history_procedure";
|
||||
import * as DeleteCustomWorldProfileProcedure from "./delete_custom_world_profile_procedure";
|
||||
import * as DeleteSnapshotProcedure from "./delete_snapshot_procedure";
|
||||
import * as LiftMyRiskBlockProcedure from "./lift_my_risk_block_procedure";
|
||||
import * as LogoutAllUserSessionsProcedure from "./logout_all_user_sessions_procedure";
|
||||
import * as PublishCustomWorldProfileProcedure from "./publish_custom_world_profile_procedure";
|
||||
import * as PutRuntimeSettingsProcedure from "./put_runtime_settings_procedure";
|
||||
import * as RevokeUserSessionProcedure from "./revoke_user_session_procedure";
|
||||
import * as SaveSnapshotProcedure from "./save_snapshot_procedure";
|
||||
import * as SendSmsVerificationCodeProcedure from "./send_sms_verification_code_procedure";
|
||||
import * as UnpublishCustomWorldProfileProcedure from "./unpublish_custom_world_profile_procedure";
|
||||
import * as UpsertCustomWorldProfileProcedure from "./upsert_custom_world_profile_procedure";
|
||||
import * as UpsertCustomWorldSessionProcedure from "./upsert_custom_world_session_procedure";
|
||||
import * as UpsertPlatformBrowseHistoryProcedure from "./upsert_platform_browse_history_procedure";
|
||||
import * as VerifySmsCodeProcedure from "./verify_sms_code_procedure";
|
||||
|
||||
// Import all table schema definitions
|
||||
import ClientAppConfigRow from "./client_app_config_table";
|
||||
import KickEventRow from "./kick_event_table";
|
||||
import MyAuthAuditLogsRow from "./my_auth_audit_logs_table";
|
||||
import MyAuthRiskBlocksRow from "./my_auth_risk_blocks_table";
|
||||
import MyAuthStateRow from "./my_auth_state_table";
|
||||
import MyBrowseHistoryRow from "./my_browse_history_table";
|
||||
import MyCustomWorldProfilesRow from "./my_custom_world_profiles_table";
|
||||
import MyCustomWorldSessionsRow from "./my_custom_world_sessions_table";
|
||||
import MyProfileDashboardRow from "./my_profile_dashboard_table";
|
||||
import MyProfilePlayedWorldsRow from "./my_profile_played_worlds_table";
|
||||
import MyProfileWalletLedgerRow from "./my_profile_wallet_ledger_table";
|
||||
import MyRuntimeSettingsRow from "./my_runtime_settings_table";
|
||||
import MySnapshotRow from "./my_snapshot_table";
|
||||
import MyUserSessionsRow from "./my_user_sessions_table";
|
||||
import PublishedCustomWorldGalleryRow from "./published_custom_world_gallery_table";
|
||||
import PublishedCustomWorldProfilesRow from "./published_custom_world_profiles_table";
|
||||
import SessionRevocationEventRow from "./session_revocation_event_table";
|
||||
import VerificationPromptEventRow from "./verification_prompt_event_table";
|
||||
|
||||
/** Type-only namespace exports for generated type groups. */
|
||||
|
||||
/** The schema information for all tables in this module. This is defined the same was as the tables would have been defined in the server. */
|
||||
const tablesSchema = __schema({
|
||||
kick_event: __table({
|
||||
name: 'kick_event',
|
||||
indexes: [
|
||||
],
|
||||
constraints: [
|
||||
],
|
||||
event: true,
|
||||
}, KickEventRow),
|
||||
session_revocation_event: __table({
|
||||
name: 'session_revocation_event',
|
||||
indexes: [
|
||||
],
|
||||
constraints: [
|
||||
],
|
||||
event: true,
|
||||
}, SessionRevocationEventRow),
|
||||
verification_prompt_event: __table({
|
||||
name: 'verification_prompt_event',
|
||||
indexes: [
|
||||
],
|
||||
constraints: [
|
||||
],
|
||||
event: true,
|
||||
}, VerificationPromptEventRow),
|
||||
client_app_config: __table({
|
||||
name: 'client_app_config',
|
||||
indexes: [
|
||||
],
|
||||
constraints: [
|
||||
],
|
||||
}, ClientAppConfigRow),
|
||||
my_auth_audit_logs: __table({
|
||||
name: 'my_auth_audit_logs',
|
||||
indexes: [
|
||||
],
|
||||
constraints: [
|
||||
],
|
||||
}, MyAuthAuditLogsRow),
|
||||
my_auth_risk_blocks: __table({
|
||||
name: 'my_auth_risk_blocks',
|
||||
indexes: [
|
||||
],
|
||||
constraints: [
|
||||
],
|
||||
}, MyAuthRiskBlocksRow),
|
||||
my_auth_state: __table({
|
||||
name: 'my_auth_state',
|
||||
indexes: [
|
||||
],
|
||||
constraints: [
|
||||
],
|
||||
}, MyAuthStateRow),
|
||||
my_browse_history: __table({
|
||||
name: 'my_browse_history',
|
||||
indexes: [
|
||||
],
|
||||
constraints: [
|
||||
],
|
||||
}, MyBrowseHistoryRow),
|
||||
my_custom_world_profiles: __table({
|
||||
name: 'my_custom_world_profiles',
|
||||
indexes: [
|
||||
],
|
||||
constraints: [
|
||||
],
|
||||
}, MyCustomWorldProfilesRow),
|
||||
my_custom_world_sessions: __table({
|
||||
name: 'my_custom_world_sessions',
|
||||
indexes: [
|
||||
],
|
||||
constraints: [
|
||||
],
|
||||
}, MyCustomWorldSessionsRow),
|
||||
my_profile_dashboard: __table({
|
||||
name: 'my_profile_dashboard',
|
||||
indexes: [
|
||||
],
|
||||
constraints: [
|
||||
],
|
||||
}, MyProfileDashboardRow),
|
||||
my_profile_played_worlds: __table({
|
||||
name: 'my_profile_played_worlds',
|
||||
indexes: [
|
||||
],
|
||||
constraints: [
|
||||
],
|
||||
}, MyProfilePlayedWorldsRow),
|
||||
my_profile_wallet_ledger: __table({
|
||||
name: 'my_profile_wallet_ledger',
|
||||
indexes: [
|
||||
],
|
||||
constraints: [
|
||||
],
|
||||
}, MyProfileWalletLedgerRow),
|
||||
my_runtime_settings: __table({
|
||||
name: 'my_runtime_settings',
|
||||
indexes: [
|
||||
],
|
||||
constraints: [
|
||||
],
|
||||
}, MyRuntimeSettingsRow),
|
||||
my_snapshot: __table({
|
||||
name: 'my_snapshot',
|
||||
indexes: [
|
||||
],
|
||||
constraints: [
|
||||
],
|
||||
}, MySnapshotRow),
|
||||
my_user_sessions: __table({
|
||||
name: 'my_user_sessions',
|
||||
indexes: [
|
||||
],
|
||||
constraints: [
|
||||
],
|
||||
}, MyUserSessionsRow),
|
||||
published_custom_world_gallery: __table({
|
||||
name: 'published_custom_world_gallery',
|
||||
indexes: [
|
||||
],
|
||||
constraints: [
|
||||
],
|
||||
}, PublishedCustomWorldGalleryRow),
|
||||
published_custom_world_profiles: __table({
|
||||
name: 'published_custom_world_profiles',
|
||||
indexes: [
|
||||
],
|
||||
constraints: [
|
||||
],
|
||||
}, PublishedCustomWorldProfilesRow),
|
||||
});
|
||||
|
||||
/** The schema information for all reducers in this module. This is defined the same way as the reducers would have been defined in the server, except the body of the reducer is omitted in code generation. */
|
||||
const reducersSchema = __reducers(
|
||||
);
|
||||
|
||||
/** The schema information for all procedures in this module. This is defined the same way as the procedures would have been defined in the server. */
|
||||
const proceduresSchema = __procedures(
|
||||
__procedureSchema("clear_platform_browse_history", ClearPlatformBrowseHistoryProcedure.params, ClearPlatformBrowseHistoryProcedure.returnType),
|
||||
__procedureSchema("delete_custom_world_profile", DeleteCustomWorldProfileProcedure.params, DeleteCustomWorldProfileProcedure.returnType),
|
||||
__procedureSchema("delete_snapshot", DeleteSnapshotProcedure.params, DeleteSnapshotProcedure.returnType),
|
||||
__procedureSchema("lift_my_risk_block", LiftMyRiskBlockProcedure.params, LiftMyRiskBlockProcedure.returnType),
|
||||
__procedureSchema("logout_all_user_sessions", LogoutAllUserSessionsProcedure.params, LogoutAllUserSessionsProcedure.returnType),
|
||||
__procedureSchema("publish_custom_world_profile", PublishCustomWorldProfileProcedure.params, PublishCustomWorldProfileProcedure.returnType),
|
||||
__procedureSchema("put_runtime_settings", PutRuntimeSettingsProcedure.params, PutRuntimeSettingsProcedure.returnType),
|
||||
__procedureSchema("revoke_user_session", RevokeUserSessionProcedure.params, RevokeUserSessionProcedure.returnType),
|
||||
__procedureSchema("save_snapshot", SaveSnapshotProcedure.params, SaveSnapshotProcedure.returnType),
|
||||
__procedureSchema("send_sms_verification_code", SendSmsVerificationCodeProcedure.params, SendSmsVerificationCodeProcedure.returnType),
|
||||
__procedureSchema("unpublish_custom_world_profile", UnpublishCustomWorldProfileProcedure.params, UnpublishCustomWorldProfileProcedure.returnType),
|
||||
__procedureSchema("upsert_custom_world_profile", UpsertCustomWorldProfileProcedure.params, UpsertCustomWorldProfileProcedure.returnType),
|
||||
__procedureSchema("upsert_custom_world_session", UpsertCustomWorldSessionProcedure.params, UpsertCustomWorldSessionProcedure.returnType),
|
||||
__procedureSchema("upsert_platform_browse_history", UpsertPlatformBrowseHistoryProcedure.params, UpsertPlatformBrowseHistoryProcedure.returnType),
|
||||
__procedureSchema("verify_sms_code", VerifySmsCodeProcedure.params, VerifySmsCodeProcedure.returnType),
|
||||
);
|
||||
|
||||
/** The remote SpacetimeDB module schema, both runtime and type information. */
|
||||
const REMOTE_MODULE = {
|
||||
versionInfo: {
|
||||
cliVersion: "2.1.0" as const,
|
||||
},
|
||||
tables: tablesSchema.schemaType.tables,
|
||||
reducers: reducersSchema.reducersType.reducers,
|
||||
...proceduresSchema,
|
||||
} satisfies __RemoteModule<
|
||||
typeof tablesSchema.schemaType,
|
||||
typeof reducersSchema.reducersType,
|
||||
typeof proceduresSchema
|
||||
>;
|
||||
|
||||
/** The tables available in this remote SpacetimeDB module. Each table reference doubles as a query builder. */
|
||||
export const tables: __QueryBuilder<typeof tablesSchema.schemaType> = __makeQueryBuilder(tablesSchema.schemaType);
|
||||
|
||||
/** The reducers available in this remote SpacetimeDB module. */
|
||||
export const reducers = __convertToAccessorMap(reducersSchema.reducersType.reducers);
|
||||
|
||||
/** The context type returned in callbacks for all possible events. */
|
||||
export type EventContext = __EventContextInterface<typeof REMOTE_MODULE>;
|
||||
/** The context type returned in callbacks for reducer events. */
|
||||
export type ReducerEventContext = __ReducerEventContextInterface<typeof REMOTE_MODULE>;
|
||||
/** The context type returned in callbacks for subscription events. */
|
||||
export type SubscriptionEventContext = __SubscriptionEventContextInterface<typeof REMOTE_MODULE>;
|
||||
/** The context type returned in callbacks for error events. */
|
||||
export type ErrorContext = __ErrorContextInterface<typeof REMOTE_MODULE>;
|
||||
/** The subscription handle type to manage active subscriptions created from a {@link SubscriptionBuilder}. */
|
||||
export type SubscriptionHandle = __SubscriptionHandleImpl<typeof REMOTE_MODULE>;
|
||||
|
||||
/** Builder class to configure a new subscription to the remote SpacetimeDB instance. */
|
||||
export class SubscriptionBuilder extends __SubscriptionBuilderImpl<typeof REMOTE_MODULE> {}
|
||||
|
||||
/** Builder class to configure a new database connection to the remote SpacetimeDB instance. */
|
||||
export class DbConnectionBuilder extends __DbConnectionBuilder<DbConnection> {}
|
||||
|
||||
/** The typed database connection to manage connections to the remote SpacetimeDB instance. This class has type information specific to the generated module. */
|
||||
export class DbConnection extends __DbConnectionImpl<typeof REMOTE_MODULE> {
|
||||
/** Creates a new {@link DbConnectionBuilder} to configure and connect to the remote SpacetimeDB instance. */
|
||||
static builder = (): DbConnectionBuilder => {
|
||||
return new DbConnectionBuilder(REMOTE_MODULE, (config: __DbConnectionConfig<typeof REMOTE_MODULE>) => new DbConnection(config));
|
||||
};
|
||||
|
||||
/** Creates a new {@link SubscriptionBuilder} to configure a subscription to the remote SpacetimeDB instance. */
|
||||
override subscriptionBuilder = (): SubscriptionBuilder => {
|
||||
return new SubscriptionBuilder(this);
|
||||
};
|
||||
}
|
||||
|
||||
18
src/spacetime/generated/kick_event_table.ts
Normal file
18
src/spacetime/generated/kick_event_table.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
import {
|
||||
TypeBuilder as __TypeBuilder,
|
||||
t as __t,
|
||||
type AlgebraicTypeType as __AlgebraicTypeType,
|
||||
type Infer as __Infer,
|
||||
} from "spacetimedb";
|
||||
|
||||
export default __t.row({
|
||||
targetIdentity: __t.identity().name("target_identity"),
|
||||
reasonCode: __t.string().name("reason_code"),
|
||||
message: __t.string(),
|
||||
issuedAtMs: __t.u64().name("issued_at_ms"),
|
||||
});
|
||||
27
src/spacetime/generated/lift_my_risk_block_procedure.ts
Normal file
27
src/spacetime/generated/lift_my_risk_block_procedure.ts
Normal file
@@ -0,0 +1,27 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
import {
|
||||
TypeBuilder as __TypeBuilder,
|
||||
t as __t,
|
||||
type AlgebraicTypeType as __AlgebraicTypeType,
|
||||
type Infer as __Infer,
|
||||
} from "spacetimedb";
|
||||
|
||||
import {
|
||||
RiskBlockScopeType,
|
||||
RequestMeta,
|
||||
MutationResult,
|
||||
} from "./types";
|
||||
|
||||
export const params = {
|
||||
get meta() {
|
||||
return RequestMeta;
|
||||
},
|
||||
get scopeType() {
|
||||
return RiskBlockScopeType;
|
||||
},
|
||||
};
|
||||
export const returnType = MutationResult
|
||||
@@ -0,0 +1,23 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
import {
|
||||
TypeBuilder as __TypeBuilder,
|
||||
t as __t,
|
||||
type AlgebraicTypeType as __AlgebraicTypeType,
|
||||
type Infer as __Infer,
|
||||
} from "spacetimedb";
|
||||
|
||||
import {
|
||||
RequestMeta,
|
||||
MutationResult,
|
||||
} from "./types";
|
||||
|
||||
export const params = {
|
||||
get meta() {
|
||||
return RequestMeta;
|
||||
},
|
||||
};
|
||||
export const returnType = MutationResult
|
||||
20
src/spacetime/generated/my_auth_audit_logs_table.ts
Normal file
20
src/spacetime/generated/my_auth_audit_logs_table.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
import {
|
||||
TypeBuilder as __TypeBuilder,
|
||||
t as __t,
|
||||
type AlgebraicTypeType as __AlgebraicTypeType,
|
||||
type Infer as __Infer,
|
||||
} from "spacetimedb";
|
||||
|
||||
export default __t.row({
|
||||
id: __t.u64(),
|
||||
eventType: __t.string().name("event_type"),
|
||||
detail: __t.string(),
|
||||
ip: __t.option(__t.string()),
|
||||
userAgent: __t.option(__t.string()).name("user_agent"),
|
||||
createdAtMs: __t.u64().name("created_at_ms"),
|
||||
});
|
||||
24
src/spacetime/generated/my_auth_risk_blocks_table.ts
Normal file
24
src/spacetime/generated/my_auth_risk_blocks_table.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
import {
|
||||
TypeBuilder as __TypeBuilder,
|
||||
t as __t,
|
||||
type AlgebraicTypeType as __AlgebraicTypeType,
|
||||
type Infer as __Infer,
|
||||
} from "spacetimedb";
|
||||
import {
|
||||
RiskBlockScopeType,
|
||||
} from "./types";
|
||||
|
||||
|
||||
export default __t.row({
|
||||
get scopeType() {
|
||||
return RiskBlockScopeType.name("scope_type");
|
||||
},
|
||||
scopeKey: __t.string().name("scope_key"),
|
||||
reason: __t.string(),
|
||||
expiresAtMs: __t.u64().name("expires_at_ms"),
|
||||
});
|
||||
32
src/spacetime/generated/my_auth_state_table.ts
Normal file
32
src/spacetime/generated/my_auth_state_table.ts
Normal file
@@ -0,0 +1,32 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
import {
|
||||
TypeBuilder as __TypeBuilder,
|
||||
t as __t,
|
||||
type AlgebraicTypeType as __AlgebraicTypeType,
|
||||
type Infer as __Infer,
|
||||
} from "spacetimedb";
|
||||
import {
|
||||
LoginProvider,
|
||||
AccountStatus,
|
||||
} from "./types";
|
||||
|
||||
|
||||
export default __t.row({
|
||||
userId: __t.string().name("user_id"),
|
||||
identity: __t.identity(),
|
||||
displayName: __t.string().name("display_name"),
|
||||
phoneNumberMasked: __t.option(__t.string()).name("phone_number_masked"),
|
||||
get loginProvider() {
|
||||
return LoginProvider.name("login_provider");
|
||||
},
|
||||
get accountStatus() {
|
||||
return AccountStatus.name("account_status");
|
||||
},
|
||||
smsVerificationRequired: __t.bool().name("sms_verification_required"),
|
||||
smsVerified: __t.bool().name("sms_verified"),
|
||||
jwtPresent: __t.bool().name("jwt_present"),
|
||||
});
|
||||
29
src/spacetime/generated/my_browse_history_table.ts
Normal file
29
src/spacetime/generated/my_browse_history_table.ts
Normal file
@@ -0,0 +1,29 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
import {
|
||||
TypeBuilder as __TypeBuilder,
|
||||
t as __t,
|
||||
type AlgebraicTypeType as __AlgebraicTypeType,
|
||||
type Infer as __Infer,
|
||||
} from "spacetimedb";
|
||||
import {
|
||||
CustomWorldThemeMode,
|
||||
} from "./types";
|
||||
|
||||
|
||||
export default __t.row({
|
||||
ownerUserId: __t.string().name("owner_user_id"),
|
||||
profileId: __t.string().name("profile_id"),
|
||||
worldName: __t.string().name("world_name"),
|
||||
subtitle: __t.string(),
|
||||
summaryText: __t.string().name("summary_text"),
|
||||
coverImageSrc: __t.option(__t.string()).name("cover_image_src"),
|
||||
get themeMode() {
|
||||
return CustomWorldThemeMode.name("theme_mode");
|
||||
},
|
||||
authorDisplayName: __t.string().name("author_display_name"),
|
||||
visitedAtMs: __t.u64().name("visited_at_ms"),
|
||||
});
|
||||
37
src/spacetime/generated/my_custom_world_profiles_table.ts
Normal file
37
src/spacetime/generated/my_custom_world_profiles_table.ts
Normal file
@@ -0,0 +1,37 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
import {
|
||||
TypeBuilder as __TypeBuilder,
|
||||
t as __t,
|
||||
type AlgebraicTypeType as __AlgebraicTypeType,
|
||||
type Infer as __Infer,
|
||||
} from "spacetimedb";
|
||||
import {
|
||||
CustomWorldPublicationStatus,
|
||||
CustomWorldThemeMode,
|
||||
} from "./types";
|
||||
|
||||
|
||||
export default __t.row({
|
||||
ownerUserId: __t.string().name("owner_user_id"),
|
||||
profileId: __t.string().name("profile_id"),
|
||||
payloadJson: __t.string().name("payload_json"),
|
||||
get visibility() {
|
||||
return CustomWorldPublicationStatus;
|
||||
},
|
||||
publishedAtMs: __t.option(__t.u64()).name("published_at_ms"),
|
||||
updatedAtMs: __t.u64().name("updated_at_ms"),
|
||||
authorDisplayName: __t.string().name("author_display_name"),
|
||||
worldName: __t.string().name("world_name"),
|
||||
subtitle: __t.string(),
|
||||
summaryText: __t.string().name("summary_text"),
|
||||
coverImageSrc: __t.option(__t.string()).name("cover_image_src"),
|
||||
get themeMode() {
|
||||
return CustomWorldThemeMode.name("theme_mode");
|
||||
},
|
||||
playableNpcCount: __t.u32().name("playable_npc_count"),
|
||||
landmarkCount: __t.u32().name("landmark_count"),
|
||||
});
|
||||
18
src/spacetime/generated/my_custom_world_sessions_table.ts
Normal file
18
src/spacetime/generated/my_custom_world_sessions_table.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
import {
|
||||
TypeBuilder as __TypeBuilder,
|
||||
t as __t,
|
||||
type AlgebraicTypeType as __AlgebraicTypeType,
|
||||
type Infer as __Infer,
|
||||
} from "spacetimedb";
|
||||
|
||||
export default __t.row({
|
||||
sessionId: __t.string().name("session_id"),
|
||||
payloadJson: __t.string().name("payload_json"),
|
||||
createdAtMs: __t.u64().name("created_at_ms"),
|
||||
updatedAtMs: __t.u64().name("updated_at_ms"),
|
||||
});
|
||||
18
src/spacetime/generated/my_profile_dashboard_table.ts
Normal file
18
src/spacetime/generated/my_profile_dashboard_table.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
import {
|
||||
TypeBuilder as __TypeBuilder,
|
||||
t as __t,
|
||||
type AlgebraicTypeType as __AlgebraicTypeType,
|
||||
type Infer as __Infer,
|
||||
} from "spacetimedb";
|
||||
|
||||
export default __t.row({
|
||||
walletBalance: __t.i64().name("wallet_balance"),
|
||||
totalPlayTimeMs: __t.u64().name("total_play_time_ms"),
|
||||
playedWorldCount: __t.u32().name("played_world_count"),
|
||||
updatedAtMs: __t.option(__t.u64()).name("updated_at_ms"),
|
||||
});
|
||||
23
src/spacetime/generated/my_profile_played_worlds_table.ts
Normal file
23
src/spacetime/generated/my_profile_played_worlds_table.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
import {
|
||||
TypeBuilder as __TypeBuilder,
|
||||
t as __t,
|
||||
type AlgebraicTypeType as __AlgebraicTypeType,
|
||||
type Infer as __Infer,
|
||||
} from "spacetimedb";
|
||||
|
||||
export default __t.row({
|
||||
worldKey: __t.string().name("world_key"),
|
||||
ownerUserId: __t.option(__t.string()).name("owner_user_id"),
|
||||
profileId: __t.option(__t.string()).name("profile_id"),
|
||||
worldType: __t.option(__t.string()).name("world_type"),
|
||||
worldTitle: __t.string().name("world_title"),
|
||||
worldSubtitle: __t.string().name("world_subtitle"),
|
||||
firstPlayedAtMs: __t.u64().name("first_played_at_ms"),
|
||||
lastPlayedAtMs: __t.u64().name("last_played_at_ms"),
|
||||
lastObservedPlayTimeMs: __t.u64().name("last_observed_play_time_ms"),
|
||||
});
|
||||
19
src/spacetime/generated/my_profile_wallet_ledger_table.ts
Normal file
19
src/spacetime/generated/my_profile_wallet_ledger_table.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
import {
|
||||
TypeBuilder as __TypeBuilder,
|
||||
t as __t,
|
||||
type AlgebraicTypeType as __AlgebraicTypeType,
|
||||
type Infer as __Infer,
|
||||
} from "spacetimedb";
|
||||
|
||||
export default __t.row({
|
||||
id: __t.string(),
|
||||
amountDelta: __t.i64().name("amount_delta"),
|
||||
balanceAfter: __t.i64().name("balance_after"),
|
||||
sourceType: __t.string().name("source_type"),
|
||||
createdAtMs: __t.u64().name("created_at_ms"),
|
||||
});
|
||||
15
src/spacetime/generated/my_runtime_settings_table.ts
Normal file
15
src/spacetime/generated/my_runtime_settings_table.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
import {
|
||||
TypeBuilder as __TypeBuilder,
|
||||
t as __t,
|
||||
type AlgebraicTypeType as __AlgebraicTypeType,
|
||||
type Infer as __Infer,
|
||||
} from "spacetimedb";
|
||||
|
||||
export default __t.row({
|
||||
musicVolume: __t.f32().name("music_volume"),
|
||||
});
|
||||
19
src/spacetime/generated/my_snapshot_table.ts
Normal file
19
src/spacetime/generated/my_snapshot_table.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
import {
|
||||
TypeBuilder as __TypeBuilder,
|
||||
t as __t,
|
||||
type AlgebraicTypeType as __AlgebraicTypeType,
|
||||
type Infer as __Infer,
|
||||
} from "spacetimedb";
|
||||
|
||||
export default __t.row({
|
||||
version: __t.u32(),
|
||||
savedAtMs: __t.u64().name("saved_at_ms"),
|
||||
gameStateJson: __t.string().name("game_state_json"),
|
||||
bottomTab: __t.string().name("bottom_tab"),
|
||||
currentStoryJson: __t.option(__t.string()).name("current_story_json"),
|
||||
});
|
||||
22
src/spacetime/generated/my_user_sessions_table.ts
Normal file
22
src/spacetime/generated/my_user_sessions_table.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
import {
|
||||
TypeBuilder as __TypeBuilder,
|
||||
t as __t,
|
||||
type AlgebraicTypeType as __AlgebraicTypeType,
|
||||
type Infer as __Infer,
|
||||
} from "spacetimedb";
|
||||
|
||||
export default __t.row({
|
||||
sessionId: __t.string().name("session_id"),
|
||||
clientType: __t.string().name("client_type"),
|
||||
userAgent: __t.option(__t.string()).name("user_agent"),
|
||||
ip: __t.option(__t.string()),
|
||||
isCurrent: __t.bool().name("is_current"),
|
||||
createdAtMs: __t.u64().name("created_at_ms"),
|
||||
lastSeenAtMs: __t.u64().name("last_seen_at_ms"),
|
||||
expiresAtMs: __t.option(__t.u64()).name("expires_at_ms"),
|
||||
});
|
||||
@@ -0,0 +1,25 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
import {
|
||||
TypeBuilder as __TypeBuilder,
|
||||
t as __t,
|
||||
type AlgebraicTypeType as __AlgebraicTypeType,
|
||||
type Infer as __Infer,
|
||||
} from "spacetimedb";
|
||||
|
||||
import {
|
||||
RequestMeta,
|
||||
MutationResult,
|
||||
} from "./types";
|
||||
|
||||
export const params = {
|
||||
get meta() {
|
||||
return RequestMeta;
|
||||
},
|
||||
profileId: __t.string(),
|
||||
authorDisplayName: __t.string(),
|
||||
};
|
||||
export const returnType = MutationResult
|
||||
@@ -0,0 +1,36 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
import {
|
||||
TypeBuilder as __TypeBuilder,
|
||||
t as __t,
|
||||
type AlgebraicTypeType as __AlgebraicTypeType,
|
||||
type Infer as __Infer,
|
||||
} from "spacetimedb";
|
||||
import {
|
||||
CustomWorldPublicationStatus,
|
||||
CustomWorldThemeMode,
|
||||
} from "./types";
|
||||
|
||||
|
||||
export default __t.row({
|
||||
ownerUserId: __t.string().name("owner_user_id"),
|
||||
profileId: __t.string().name("profile_id"),
|
||||
get visibility() {
|
||||
return CustomWorldPublicationStatus;
|
||||
},
|
||||
publishedAtMs: __t.option(__t.u64()).name("published_at_ms"),
|
||||
updatedAtMs: __t.u64().name("updated_at_ms"),
|
||||
authorDisplayName: __t.string().name("author_display_name"),
|
||||
worldName: __t.string().name("world_name"),
|
||||
subtitle: __t.string(),
|
||||
summaryText: __t.string().name("summary_text"),
|
||||
coverImageSrc: __t.option(__t.string()).name("cover_image_src"),
|
||||
get themeMode() {
|
||||
return CustomWorldThemeMode.name("theme_mode");
|
||||
},
|
||||
playableNpcCount: __t.u32().name("playable_npc_count"),
|
||||
landmarkCount: __t.u32().name("landmark_count"),
|
||||
});
|
||||
@@ -0,0 +1,37 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
import {
|
||||
TypeBuilder as __TypeBuilder,
|
||||
t as __t,
|
||||
type AlgebraicTypeType as __AlgebraicTypeType,
|
||||
type Infer as __Infer,
|
||||
} from "spacetimedb";
|
||||
import {
|
||||
CustomWorldPublicationStatus,
|
||||
CustomWorldThemeMode,
|
||||
} from "./types";
|
||||
|
||||
|
||||
export default __t.row({
|
||||
ownerUserId: __t.string().name("owner_user_id"),
|
||||
profileId: __t.string().name("profile_id"),
|
||||
payloadJson: __t.string().name("payload_json"),
|
||||
get visibility() {
|
||||
return CustomWorldPublicationStatus;
|
||||
},
|
||||
publishedAtMs: __t.option(__t.u64()).name("published_at_ms"),
|
||||
updatedAtMs: __t.u64().name("updated_at_ms"),
|
||||
authorDisplayName: __t.string().name("author_display_name"),
|
||||
worldName: __t.string().name("world_name"),
|
||||
subtitle: __t.string(),
|
||||
summaryText: __t.string().name("summary_text"),
|
||||
coverImageSrc: __t.option(__t.string()).name("cover_image_src"),
|
||||
get themeMode() {
|
||||
return CustomWorldThemeMode.name("theme_mode");
|
||||
},
|
||||
playableNpcCount: __t.u32().name("playable_npc_count"),
|
||||
landmarkCount: __t.u32().name("landmark_count"),
|
||||
});
|
||||
24
src/spacetime/generated/put_runtime_settings_procedure.ts
Normal file
24
src/spacetime/generated/put_runtime_settings_procedure.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
import {
|
||||
TypeBuilder as __TypeBuilder,
|
||||
t as __t,
|
||||
type AlgebraicTypeType as __AlgebraicTypeType,
|
||||
type Infer as __Infer,
|
||||
} from "spacetimedb";
|
||||
|
||||
import {
|
||||
RequestMeta,
|
||||
MutationResult,
|
||||
} from "./types";
|
||||
|
||||
export const params = {
|
||||
get meta() {
|
||||
return RequestMeta;
|
||||
},
|
||||
musicVolume: __t.f32(),
|
||||
};
|
||||
export const returnType = MutationResult
|
||||
24
src/spacetime/generated/revoke_user_session_procedure.ts
Normal file
24
src/spacetime/generated/revoke_user_session_procedure.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
import {
|
||||
TypeBuilder as __TypeBuilder,
|
||||
t as __t,
|
||||
type AlgebraicTypeType as __AlgebraicTypeType,
|
||||
type Infer as __Infer,
|
||||
} from "spacetimedb";
|
||||
|
||||
import {
|
||||
RequestMeta,
|
||||
MutationResult,
|
||||
} from "./types";
|
||||
|
||||
export const params = {
|
||||
get meta() {
|
||||
return RequestMeta;
|
||||
},
|
||||
sessionId: __t.string(),
|
||||
};
|
||||
export const returnType = MutationResult
|
||||
27
src/spacetime/generated/save_snapshot_procedure.ts
Normal file
27
src/spacetime/generated/save_snapshot_procedure.ts
Normal file
@@ -0,0 +1,27 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
import {
|
||||
TypeBuilder as __TypeBuilder,
|
||||
t as __t,
|
||||
type AlgebraicTypeType as __AlgebraicTypeType,
|
||||
type Infer as __Infer,
|
||||
} from "spacetimedb";
|
||||
|
||||
import {
|
||||
RequestMeta,
|
||||
MutationResult,
|
||||
} from "./types";
|
||||
|
||||
export const params = {
|
||||
get meta() {
|
||||
return RequestMeta;
|
||||
},
|
||||
savedAtMs: __t.u64(),
|
||||
gameStateJson: __t.string(),
|
||||
bottomTab: __t.string(),
|
||||
currentStoryJson: __t.option(__t.string()),
|
||||
};
|
||||
export const returnType = MutationResult
|
||||
@@ -0,0 +1,28 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
import {
|
||||
TypeBuilder as __TypeBuilder,
|
||||
t as __t,
|
||||
type AlgebraicTypeType as __AlgebraicTypeType,
|
||||
type Infer as __Infer,
|
||||
} from "spacetimedb";
|
||||
|
||||
import {
|
||||
RequestMeta,
|
||||
SmsAuthScene,
|
||||
SmsSendCodeResult,
|
||||
} from "./types";
|
||||
|
||||
export const params = {
|
||||
get meta() {
|
||||
return RequestMeta;
|
||||
},
|
||||
phoneNumber: __t.string(),
|
||||
get scene() {
|
||||
return SmsAuthScene;
|
||||
},
|
||||
};
|
||||
export const returnType = SmsSendCodeResult
|
||||
18
src/spacetime/generated/session_revocation_event_table.ts
Normal file
18
src/spacetime/generated/session_revocation_event_table.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
import {
|
||||
TypeBuilder as __TypeBuilder,
|
||||
t as __t,
|
||||
type AlgebraicTypeType as __AlgebraicTypeType,
|
||||
type Infer as __Infer,
|
||||
} from "spacetimedb";
|
||||
|
||||
export default __t.row({
|
||||
targetSessionId: __t.string().name("target_session_id"),
|
||||
reasonCode: __t.string().name("reason_code"),
|
||||
message: __t.string(),
|
||||
issuedAtMs: __t.u64().name("issued_at_ms"),
|
||||
});
|
||||
600
src/spacetime/generated/types.ts
Normal file
600
src/spacetime/generated/types.ts
Normal file
@@ -0,0 +1,600 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
import {
|
||||
TypeBuilder as __TypeBuilder,
|
||||
t as __t,
|
||||
type AlgebraicTypeType as __AlgebraicTypeType,
|
||||
type Infer as __Infer,
|
||||
} from "spacetimedb";
|
||||
|
||||
// The tagged union or sum type for the algebraic type `AccountStatus`.
|
||||
export const AccountStatus = __t.enum("AccountStatus", {
|
||||
Active: __t.unit(),
|
||||
PendingSmsVerification: __t.unit(),
|
||||
Disabled: __t.unit(),
|
||||
});
|
||||
export type AccountStatus = __Infer<typeof AccountStatus>;
|
||||
|
||||
export const AppConfig = __t.object("AppConfig", {
|
||||
id: __t.u8(),
|
||||
guestLoginEnabled: __t.bool(),
|
||||
smsAuthEnabled: __t.bool(),
|
||||
smsVerificationRequired: __t.bool(),
|
||||
smsProvider: __t.string(),
|
||||
smsEndpoint: __t.string(),
|
||||
smsAccessKeyId: __t.string(),
|
||||
smsAccessKeySecret: __t.string(),
|
||||
smsSignName: __t.string(),
|
||||
smsTemplateCode: __t.string(),
|
||||
smsTemplateParamKey: __t.string(),
|
||||
smsCountryCode: __t.string(),
|
||||
smsSchemeName: __t.string(),
|
||||
smsCodeLength: __t.u16(),
|
||||
smsCodeType: __t.u16(),
|
||||
smsValidTimeSeconds: __t.u32(),
|
||||
smsIntervalSeconds: __t.u32(),
|
||||
smsDuplicatePolicy: __t.u16(),
|
||||
smsCaseAuthPolicy: __t.u16(),
|
||||
smsReturnVerifyCode: __t.bool(),
|
||||
smsMockVerifyCode: __t.string(),
|
||||
smsMaxSendPerPhonePerDay: __t.u16(),
|
||||
smsMaxSendPerIpPerHour: __t.u16(),
|
||||
smsMaxVerifyFailuresPerPhonePerHour: __t.u16(),
|
||||
smsMaxVerifyFailuresPerIpPerHour: __t.u16(),
|
||||
smsCaptchaTtlSeconds: __t.u32(),
|
||||
smsCaptchaTriggerVerifyFailuresPerPhone: __t.u16(),
|
||||
smsCaptchaTriggerVerifyFailuresPerIp: __t.u16(),
|
||||
smsBlockPhoneFailureThreshold: __t.u16(),
|
||||
smsBlockIpFailureThreshold: __t.u16(),
|
||||
smsBlockPhoneDurationMinutes: __t.u16(),
|
||||
smsBlockIpDurationMinutes: __t.u16(),
|
||||
defaultMusicVolume: __t.f32(),
|
||||
defaultGuestDisplayNamePrefix: __t.string(),
|
||||
kickMessageUnverified: __t.string(),
|
||||
wechatEnabled: __t.bool(),
|
||||
wechatProvider: __t.string(),
|
||||
wechatAppId: __t.string(),
|
||||
wechatAppSecret: __t.string(),
|
||||
wechatAuthorizeEndpoint: __t.string(),
|
||||
wechatAccessTokenEndpoint: __t.string(),
|
||||
wechatUserInfoEndpoint: __t.string(),
|
||||
wechatCallbackPath: __t.string(),
|
||||
wechatDefaultRedirectPath: __t.string(),
|
||||
wechatMockUserId: __t.string(),
|
||||
wechatMockUnionId: __t.string(),
|
||||
wechatMockDisplayName: __t.string(),
|
||||
wechatMockAvatarUrl: __t.string(),
|
||||
updatedAtMs: __t.u64(),
|
||||
});
|
||||
export type AppConfig = __Infer<typeof AppConfig>;
|
||||
|
||||
export const AuthAuditLog = __t.object("AuthAuditLog", {
|
||||
id: __t.u64(),
|
||||
userId: __t.string(),
|
||||
eventType: __t.string(),
|
||||
detail: __t.string(),
|
||||
ip: __t.option(__t.string()),
|
||||
userAgent: __t.option(__t.string()),
|
||||
metaJson: __t.option(__t.string()),
|
||||
createdAtMs: __t.u64(),
|
||||
});
|
||||
export type AuthAuditLog = __Infer<typeof AuthAuditLog>;
|
||||
|
||||
export const AuthAuditLogView = __t.object("AuthAuditLogView", {
|
||||
id: __t.u64(),
|
||||
eventType: __t.string(),
|
||||
detail: __t.string(),
|
||||
ip: __t.option(__t.string()),
|
||||
userAgent: __t.option(__t.string()),
|
||||
createdAtMs: __t.u64(),
|
||||
});
|
||||
export type AuthAuditLogView = __Infer<typeof AuthAuditLogView>;
|
||||
|
||||
export const AuthIdentity = __t.object("AuthIdentity", {
|
||||
id: __t.string(),
|
||||
userId: __t.string(),
|
||||
get provider() {
|
||||
return AuthIdentityProvider;
|
||||
},
|
||||
providerUid: __t.string(),
|
||||
providerUnionId: __t.option(__t.string()),
|
||||
displayName: __t.option(__t.string()),
|
||||
avatarUrl: __t.option(__t.string()),
|
||||
isVerified: __t.bool(),
|
||||
metaJson: __t.option(__t.string()),
|
||||
createdAtMs: __t.u64(),
|
||||
updatedAtMs: __t.u64(),
|
||||
});
|
||||
export type AuthIdentity = __Infer<typeof AuthIdentity>;
|
||||
|
||||
// The tagged union or sum type for the algebraic type `AuthIdentityProvider`.
|
||||
export const AuthIdentityProvider = __t.enum("AuthIdentityProvider", {
|
||||
Guest: __t.unit(),
|
||||
Jwt: __t.unit(),
|
||||
Phone: __t.unit(),
|
||||
Wechat: __t.unit(),
|
||||
});
|
||||
export type AuthIdentityProvider = __Infer<typeof AuthIdentityProvider>;
|
||||
|
||||
export const AuthRiskBlock = __t.object("AuthRiskBlock", {
|
||||
id: __t.u64(),
|
||||
get scopeType() {
|
||||
return RiskBlockScopeType;
|
||||
},
|
||||
scopeKey: __t.string(),
|
||||
reason: __t.string(),
|
||||
expiresAtMs: __t.u64(),
|
||||
liftedAtMs: __t.option(__t.u64()),
|
||||
createdAtMs: __t.u64(),
|
||||
updatedAtMs: __t.u64(),
|
||||
});
|
||||
export type AuthRiskBlock = __Infer<typeof AuthRiskBlock>;
|
||||
|
||||
export const AuthRiskBlockView = __t.object("AuthRiskBlockView", {
|
||||
get scopeType() {
|
||||
return RiskBlockScopeType;
|
||||
},
|
||||
scopeKey: __t.string(),
|
||||
reason: __t.string(),
|
||||
expiresAtMs: __t.u64(),
|
||||
});
|
||||
export type AuthRiskBlockView = __Infer<typeof AuthRiskBlockView>;
|
||||
|
||||
export const AuthSessionView = __t.object("AuthSessionView", {
|
||||
sessionId: __t.string(),
|
||||
clientType: __t.string(),
|
||||
userAgent: __t.option(__t.string()),
|
||||
ip: __t.option(__t.string()),
|
||||
isCurrent: __t.bool(),
|
||||
createdAtMs: __t.u64(),
|
||||
lastSeenAtMs: __t.u64(),
|
||||
expiresAtMs: __t.option(__t.u64()),
|
||||
});
|
||||
export type AuthSessionView = __Infer<typeof AuthSessionView>;
|
||||
|
||||
export const AuthStateView = __t.object("AuthStateView", {
|
||||
userId: __t.string(),
|
||||
identity: __t.identity(),
|
||||
displayName: __t.string(),
|
||||
phoneNumberMasked: __t.option(__t.string()),
|
||||
get loginProvider() {
|
||||
return LoginProvider;
|
||||
},
|
||||
get accountStatus() {
|
||||
return AccountStatus;
|
||||
},
|
||||
smsVerificationRequired: __t.bool(),
|
||||
smsVerified: __t.bool(),
|
||||
jwtPresent: __t.bool(),
|
||||
});
|
||||
export type AuthStateView = __Infer<typeof AuthStateView>;
|
||||
|
||||
export const ClientAppConfigView = __t.object("ClientAppConfigView", {
|
||||
guestLoginEnabled: __t.bool(),
|
||||
smsAuthEnabled: __t.bool(),
|
||||
smsVerificationRequired: __t.bool(),
|
||||
smsProvider: __t.string(),
|
||||
smsCodeLength: __t.u16(),
|
||||
smsValidTimeSeconds: __t.u32(),
|
||||
smsIntervalSeconds: __t.u32(),
|
||||
defaultMusicVolume: __t.f32(),
|
||||
defaultGuestDisplayNamePrefix: __t.string(),
|
||||
wechatEnabled: __t.bool(),
|
||||
});
|
||||
export type ClientAppConfigView = __Infer<typeof ClientAppConfigView>;
|
||||
|
||||
export const CustomWorldGalleryCardView = __t.object("CustomWorldGalleryCardView", {
|
||||
ownerUserId: __t.string(),
|
||||
profileId: __t.string(),
|
||||
get visibility() {
|
||||
return CustomWorldPublicationStatus;
|
||||
},
|
||||
publishedAtMs: __t.option(__t.u64()),
|
||||
updatedAtMs: __t.u64(),
|
||||
authorDisplayName: __t.string(),
|
||||
worldName: __t.string(),
|
||||
subtitle: __t.string(),
|
||||
summaryText: __t.string(),
|
||||
coverImageSrc: __t.option(__t.string()),
|
||||
get themeMode() {
|
||||
return CustomWorldThemeMode;
|
||||
},
|
||||
playableNpcCount: __t.u32(),
|
||||
landmarkCount: __t.u32(),
|
||||
});
|
||||
export type CustomWorldGalleryCardView = __Infer<typeof CustomWorldGalleryCardView>;
|
||||
|
||||
export const CustomWorldProfile = __t.object("CustomWorldProfile", {
|
||||
id: __t.string(),
|
||||
userId: __t.string(),
|
||||
profileId: __t.string(),
|
||||
get visibility() {
|
||||
return CustomWorldPublicationStatus;
|
||||
},
|
||||
payloadJson: __t.string(),
|
||||
publishedAtMs: __t.option(__t.u64()),
|
||||
updatedAtMs: __t.u64(),
|
||||
authorDisplayName: __t.string(),
|
||||
worldName: __t.string(),
|
||||
subtitle: __t.string(),
|
||||
summaryText: __t.string(),
|
||||
coverImageSrc: __t.option(__t.string()),
|
||||
get themeMode() {
|
||||
return CustomWorldThemeMode;
|
||||
},
|
||||
playableNpcCount: __t.u32(),
|
||||
landmarkCount: __t.u32(),
|
||||
deletedAtMs: __t.option(__t.u64()),
|
||||
});
|
||||
export type CustomWorldProfile = __Infer<typeof CustomWorldProfile>;
|
||||
|
||||
export const CustomWorldProfileView = __t.object("CustomWorldProfileView", {
|
||||
ownerUserId: __t.string(),
|
||||
profileId: __t.string(),
|
||||
payloadJson: __t.string(),
|
||||
get visibility() {
|
||||
return CustomWorldPublicationStatus;
|
||||
},
|
||||
publishedAtMs: __t.option(__t.u64()),
|
||||
updatedAtMs: __t.u64(),
|
||||
authorDisplayName: __t.string(),
|
||||
worldName: __t.string(),
|
||||
subtitle: __t.string(),
|
||||
summaryText: __t.string(),
|
||||
coverImageSrc: __t.option(__t.string()),
|
||||
get themeMode() {
|
||||
return CustomWorldThemeMode;
|
||||
},
|
||||
playableNpcCount: __t.u32(),
|
||||
landmarkCount: __t.u32(),
|
||||
});
|
||||
export type CustomWorldProfileView = __Infer<typeof CustomWorldProfileView>;
|
||||
|
||||
// The tagged union or sum type for the algebraic type `CustomWorldPublicationStatus`.
|
||||
export const CustomWorldPublicationStatus = __t.enum("CustomWorldPublicationStatus", {
|
||||
Draft: __t.unit(),
|
||||
Published: __t.unit(),
|
||||
});
|
||||
export type CustomWorldPublicationStatus = __Infer<typeof CustomWorldPublicationStatus>;
|
||||
|
||||
export const CustomWorldSession = __t.object("CustomWorldSession", {
|
||||
id: __t.string(),
|
||||
userId: __t.string(),
|
||||
sessionId: __t.string(),
|
||||
payloadJson: __t.string(),
|
||||
createdAtMs: __t.u64(),
|
||||
updatedAtMs: __t.u64(),
|
||||
});
|
||||
export type CustomWorldSession = __Infer<typeof CustomWorldSession>;
|
||||
|
||||
export const CustomWorldSessionView = __t.object("CustomWorldSessionView", {
|
||||
sessionId: __t.string(),
|
||||
payloadJson: __t.string(),
|
||||
createdAtMs: __t.u64(),
|
||||
updatedAtMs: __t.u64(),
|
||||
});
|
||||
export type CustomWorldSessionView = __Infer<typeof CustomWorldSessionView>;
|
||||
|
||||
// The tagged union or sum type for the algebraic type `CustomWorldThemeMode`.
|
||||
export const CustomWorldThemeMode = __t.enum("CustomWorldThemeMode", {
|
||||
Martial: __t.unit(),
|
||||
Arcane: __t.unit(),
|
||||
Machina: __t.unit(),
|
||||
Tide: __t.unit(),
|
||||
Rift: __t.unit(),
|
||||
Mythic: __t.unit(),
|
||||
});
|
||||
export type CustomWorldThemeMode = __Infer<typeof CustomWorldThemeMode>;
|
||||
|
||||
export const KickEvent = __t.object("KickEvent", {
|
||||
targetIdentity: __t.identity(),
|
||||
reasonCode: __t.string(),
|
||||
message: __t.string(),
|
||||
issuedAtMs: __t.u64(),
|
||||
});
|
||||
export type KickEvent = __Infer<typeof KickEvent>;
|
||||
|
||||
// The tagged union or sum type for the algebraic type `LoginProvider`.
|
||||
export const LoginProvider = __t.enum("LoginProvider", {
|
||||
Guest: __t.unit(),
|
||||
Jwt: __t.unit(),
|
||||
Phone: __t.unit(),
|
||||
Wechat: __t.unit(),
|
||||
});
|
||||
export type LoginProvider = __Infer<typeof LoginProvider>;
|
||||
|
||||
export const MutationResult = __t.object("MutationResult", {
|
||||
ok: __t.bool(),
|
||||
kicked: __t.bool(),
|
||||
code: __t.string(),
|
||||
message: __t.string(),
|
||||
});
|
||||
export type MutationResult = __Infer<typeof MutationResult>;
|
||||
|
||||
export const PlatformBrowseHistoryView = __t.object("PlatformBrowseHistoryView", {
|
||||
ownerUserId: __t.string(),
|
||||
profileId: __t.string(),
|
||||
worldName: __t.string(),
|
||||
subtitle: __t.string(),
|
||||
summaryText: __t.string(),
|
||||
coverImageSrc: __t.option(__t.string()),
|
||||
get themeMode() {
|
||||
return CustomWorldThemeMode;
|
||||
},
|
||||
authorDisplayName: __t.string(),
|
||||
visitedAtMs: __t.u64(),
|
||||
});
|
||||
export type PlatformBrowseHistoryView = __Infer<typeof PlatformBrowseHistoryView>;
|
||||
|
||||
export const PlatformBrowseHistoryWriteInput = __t.object("PlatformBrowseHistoryWriteInput", {
|
||||
ownerUserId: __t.string(),
|
||||
profileId: __t.string(),
|
||||
worldName: __t.string(),
|
||||
subtitle: __t.string(),
|
||||
summaryText: __t.string(),
|
||||
coverImageSrc: __t.option(__t.string()),
|
||||
get themeMode() {
|
||||
return CustomWorldThemeMode;
|
||||
},
|
||||
authorDisplayName: __t.string(),
|
||||
visitedAtMs: __t.u64(),
|
||||
});
|
||||
export type PlatformBrowseHistoryWriteInput = __Infer<typeof PlatformBrowseHistoryWriteInput>;
|
||||
|
||||
export const ProfileDashboardState = __t.object("ProfileDashboardState", {
|
||||
userId: __t.string(),
|
||||
walletBalance: __t.i64(),
|
||||
totalPlayTimeMs: __t.u64(),
|
||||
updatedAtMs: __t.u64(),
|
||||
});
|
||||
export type ProfileDashboardState = __Infer<typeof ProfileDashboardState>;
|
||||
|
||||
export const ProfileDashboardView = __t.object("ProfileDashboardView", {
|
||||
walletBalance: __t.i64(),
|
||||
totalPlayTimeMs: __t.u64(),
|
||||
playedWorldCount: __t.u32(),
|
||||
updatedAtMs: __t.option(__t.u64()),
|
||||
});
|
||||
export type ProfileDashboardView = __Infer<typeof ProfileDashboardView>;
|
||||
|
||||
export const ProfilePlayedWorld = __t.object("ProfilePlayedWorld", {
|
||||
id: __t.string(),
|
||||
userId: __t.string(),
|
||||
worldKey: __t.string(),
|
||||
ownerUserId: __t.option(__t.string()),
|
||||
profileId: __t.option(__t.string()),
|
||||
worldType: __t.option(__t.string()),
|
||||
worldTitle: __t.string(),
|
||||
worldSubtitle: __t.string(),
|
||||
firstPlayedAtMs: __t.u64(),
|
||||
lastPlayedAtMs: __t.u64(),
|
||||
lastObservedPlayTimeMs: __t.u64(),
|
||||
});
|
||||
export type ProfilePlayedWorld = __Infer<typeof ProfilePlayedWorld>;
|
||||
|
||||
export const ProfilePlayedWorldView = __t.object("ProfilePlayedWorldView", {
|
||||
worldKey: __t.string(),
|
||||
ownerUserId: __t.option(__t.string()),
|
||||
profileId: __t.option(__t.string()),
|
||||
worldType: __t.option(__t.string()),
|
||||
worldTitle: __t.string(),
|
||||
worldSubtitle: __t.string(),
|
||||
firstPlayedAtMs: __t.u64(),
|
||||
lastPlayedAtMs: __t.u64(),
|
||||
lastObservedPlayTimeMs: __t.u64(),
|
||||
});
|
||||
export type ProfilePlayedWorldView = __Infer<typeof ProfilePlayedWorldView>;
|
||||
|
||||
export const ProfileWalletLedger = __t.object("ProfileWalletLedger", {
|
||||
id: __t.string(),
|
||||
userId: __t.string(),
|
||||
amountDelta: __t.i64(),
|
||||
balanceAfter: __t.i64(),
|
||||
sourceType: __t.string(),
|
||||
sourceKey: __t.string(),
|
||||
createdAtMs: __t.u64(),
|
||||
});
|
||||
export type ProfileWalletLedger = __Infer<typeof ProfileWalletLedger>;
|
||||
|
||||
export const ProfileWalletLedgerView = __t.object("ProfileWalletLedgerView", {
|
||||
id: __t.string(),
|
||||
amountDelta: __t.i64(),
|
||||
balanceAfter: __t.i64(),
|
||||
sourceType: __t.string(),
|
||||
createdAtMs: __t.u64(),
|
||||
});
|
||||
export type ProfileWalletLedgerView = __Infer<typeof ProfileWalletLedgerView>;
|
||||
|
||||
export const PublishedCustomWorldProfileView = __t.object("PublishedCustomWorldProfileView", {
|
||||
ownerUserId: __t.string(),
|
||||
profileId: __t.string(),
|
||||
payloadJson: __t.string(),
|
||||
get visibility() {
|
||||
return CustomWorldPublicationStatus;
|
||||
},
|
||||
publishedAtMs: __t.option(__t.u64()),
|
||||
updatedAtMs: __t.u64(),
|
||||
authorDisplayName: __t.string(),
|
||||
worldName: __t.string(),
|
||||
subtitle: __t.string(),
|
||||
summaryText: __t.string(),
|
||||
coverImageSrc: __t.option(__t.string()),
|
||||
get themeMode() {
|
||||
return CustomWorldThemeMode;
|
||||
},
|
||||
playableNpcCount: __t.u32(),
|
||||
landmarkCount: __t.u32(),
|
||||
});
|
||||
export type PublishedCustomWorldProfileView = __Infer<typeof PublishedCustomWorldProfileView>;
|
||||
|
||||
export const RequestMeta = __t.object("RequestMeta", {
|
||||
clientType: __t.string(),
|
||||
userAgent: __t.option(__t.string()),
|
||||
ip: __t.option(__t.string()),
|
||||
});
|
||||
export type RequestMeta = __Infer<typeof RequestMeta>;
|
||||
|
||||
// The tagged union or sum type for the algebraic type `RiskBlockScopeType`.
|
||||
export const RiskBlockScopeType = __t.enum("RiskBlockScopeType", {
|
||||
Phone: __t.unit(),
|
||||
Ip: __t.unit(),
|
||||
});
|
||||
export type RiskBlockScopeType = __Infer<typeof RiskBlockScopeType>;
|
||||
|
||||
export const RuntimeSetting = __t.object("RuntimeSetting", {
|
||||
userId: __t.string(),
|
||||
musicVolume: __t.f32(),
|
||||
updatedAtMs: __t.u64(),
|
||||
});
|
||||
export type RuntimeSetting = __Infer<typeof RuntimeSetting>;
|
||||
|
||||
export const RuntimeSettingsView = __t.object("RuntimeSettingsView", {
|
||||
musicVolume: __t.f32(),
|
||||
});
|
||||
export type RuntimeSettingsView = __Infer<typeof RuntimeSettingsView>;
|
||||
|
||||
export const SaveSnapshot = __t.object("SaveSnapshot", {
|
||||
userId: __t.string(),
|
||||
version: __t.u32(),
|
||||
savedAtMs: __t.u64(),
|
||||
bottomTab: __t.string(),
|
||||
gameStateJson: __t.string(),
|
||||
currentStoryJson: __t.option(__t.string()),
|
||||
updatedAtMs: __t.u64(),
|
||||
});
|
||||
export type SaveSnapshot = __Infer<typeof SaveSnapshot>;
|
||||
|
||||
export const SessionRevocationEventRow = __t.object("SessionRevocationEventRow", {
|
||||
targetSessionId: __t.string(),
|
||||
reasonCode: __t.string(),
|
||||
message: __t.string(),
|
||||
issuedAtMs: __t.u64(),
|
||||
});
|
||||
export type SessionRevocationEventRow = __Infer<typeof SessionRevocationEventRow>;
|
||||
|
||||
// The tagged union or sum type for the algebraic type `SmsAuthAction`.
|
||||
export const SmsAuthAction = __t.enum("SmsAuthAction", {
|
||||
SendCode: __t.unit(),
|
||||
VerifyCode: __t.unit(),
|
||||
});
|
||||
export type SmsAuthAction = __Infer<typeof SmsAuthAction>;
|
||||
|
||||
export const SmsAuthEvent = __t.object("SmsAuthEvent", {
|
||||
id: __t.u64(),
|
||||
identity: __t.identity(),
|
||||
phoneNumber: __t.string(),
|
||||
get scene() {
|
||||
return SmsAuthScene;
|
||||
},
|
||||
get action() {
|
||||
return SmsAuthAction;
|
||||
},
|
||||
success: __t.bool(),
|
||||
ip: __t.option(__t.string()),
|
||||
ipKey: __t.string(),
|
||||
userAgent: __t.option(__t.string()),
|
||||
createdAtMs: __t.u64(),
|
||||
});
|
||||
export type SmsAuthEvent = __Infer<typeof SmsAuthEvent>;
|
||||
|
||||
// The tagged union or sum type for the algebraic type `SmsAuthScene`.
|
||||
export const SmsAuthScene = __t.enum("SmsAuthScene", {
|
||||
Login: __t.unit(),
|
||||
BindPhone: __t.unit(),
|
||||
ChangePhone: __t.unit(),
|
||||
});
|
||||
export type SmsAuthScene = __Infer<typeof SmsAuthScene>;
|
||||
|
||||
export const SmsSendCodeResult = __t.object("SmsSendCodeResult", {
|
||||
ok: __t.bool(),
|
||||
kicked: __t.bool(),
|
||||
code: __t.string(),
|
||||
message: __t.string(),
|
||||
cooldownSeconds: __t.u32(),
|
||||
expiresInSeconds: __t.u32(),
|
||||
providerRequestId: __t.option(__t.string()),
|
||||
});
|
||||
export type SmsSendCodeResult = __Infer<typeof SmsSendCodeResult>;
|
||||
|
||||
export const SmsVerifyCodeResult = __t.object("SmsVerifyCodeResult", {
|
||||
ok: __t.bool(),
|
||||
kicked: __t.bool(),
|
||||
code: __t.string(),
|
||||
message: __t.string(),
|
||||
verified: __t.bool(),
|
||||
});
|
||||
export type SmsVerifyCodeResult = __Infer<typeof SmsVerifyCodeResult>;
|
||||
|
||||
export const SnapshotView = __t.object("SnapshotView", {
|
||||
version: __t.u32(),
|
||||
savedAtMs: __t.u64(),
|
||||
gameStateJson: __t.string(),
|
||||
bottomTab: __t.string(),
|
||||
currentStoryJson: __t.option(__t.string()),
|
||||
});
|
||||
export type SnapshotView = __Infer<typeof SnapshotView>;
|
||||
|
||||
export const User = __t.object("User", {
|
||||
id: __t.string(),
|
||||
identity: __t.identity(),
|
||||
username: __t.option(__t.string()),
|
||||
passwordHash: __t.option(__t.string()),
|
||||
tokenVersion: __t.u32(),
|
||||
displayName: __t.string(),
|
||||
get loginProvider() {
|
||||
return LoginProvider;
|
||||
},
|
||||
get accountStatus() {
|
||||
return AccountStatus;
|
||||
},
|
||||
phoneNumber: __t.option(__t.string()),
|
||||
phoneVerifiedAtMs: __t.option(__t.u64()),
|
||||
createdAtMs: __t.u64(),
|
||||
updatedAtMs: __t.u64(),
|
||||
});
|
||||
export type User = __Infer<typeof User>;
|
||||
|
||||
export const UserBrowseHistory = __t.object("UserBrowseHistory", {
|
||||
id: __t.string(),
|
||||
userId: __t.string(),
|
||||
ownerUserId: __t.string(),
|
||||
profileId: __t.string(),
|
||||
worldName: __t.string(),
|
||||
subtitle: __t.string(),
|
||||
summaryText: __t.string(),
|
||||
coverImageSrc: __t.option(__t.string()),
|
||||
get themeMode() {
|
||||
return CustomWorldThemeMode;
|
||||
},
|
||||
authorDisplayName: __t.string(),
|
||||
visitedAtMs: __t.u64(),
|
||||
});
|
||||
export type UserBrowseHistory = __Infer<typeof UserBrowseHistory>;
|
||||
|
||||
export const UserSession = __t.object("UserSession", {
|
||||
id: __t.string(),
|
||||
userId: __t.string(),
|
||||
refreshTokenHash: __t.string(),
|
||||
clientType: __t.string(),
|
||||
userAgent: __t.option(__t.string()),
|
||||
ip: __t.option(__t.string()),
|
||||
expiresAtMs: __t.option(__t.u64()),
|
||||
revokedAtMs: __t.option(__t.u64()),
|
||||
createdAtMs: __t.u64(),
|
||||
updatedAtMs: __t.u64(),
|
||||
lastSeenAtMs: __t.u64(),
|
||||
});
|
||||
export type UserSession = __Infer<typeof UserSession>;
|
||||
|
||||
export const VerificationPromptEvent = __t.object("VerificationPromptEvent", {
|
||||
targetIdentity: __t.identity(),
|
||||
phoneNumberMasked: __t.option(__t.string()),
|
||||
title: __t.string(),
|
||||
detail: __t.string(),
|
||||
issuedAtMs: __t.u64(),
|
||||
});
|
||||
export type VerificationPromptEvent = __Infer<typeof VerificationPromptEvent>;
|
||||
|
||||
55
src/spacetime/generated/types/procedures.ts
Normal file
55
src/spacetime/generated/types/procedures.ts
Normal file
@@ -0,0 +1,55 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
import { type Infer as __Infer } from "spacetimedb";
|
||||
|
||||
// Import all procedure arg schemas
|
||||
import * as ClearPlatformBrowseHistoryProcedure from "../clear_platform_browse_history_procedure";
|
||||
import * as DeleteCustomWorldProfileProcedure from "../delete_custom_world_profile_procedure";
|
||||
import * as DeleteSnapshotProcedure from "../delete_snapshot_procedure";
|
||||
import * as LiftMyRiskBlockProcedure from "../lift_my_risk_block_procedure";
|
||||
import * as LogoutAllUserSessionsProcedure from "../logout_all_user_sessions_procedure";
|
||||
import * as PublishCustomWorldProfileProcedure from "../publish_custom_world_profile_procedure";
|
||||
import * as PutRuntimeSettingsProcedure from "../put_runtime_settings_procedure";
|
||||
import * as RevokeUserSessionProcedure from "../revoke_user_session_procedure";
|
||||
import * as SaveSnapshotProcedure from "../save_snapshot_procedure";
|
||||
import * as SendSmsVerificationCodeProcedure from "../send_sms_verification_code_procedure";
|
||||
import * as UnpublishCustomWorldProfileProcedure from "../unpublish_custom_world_profile_procedure";
|
||||
import * as UpsertCustomWorldProfileProcedure from "../upsert_custom_world_profile_procedure";
|
||||
import * as UpsertCustomWorldSessionProcedure from "../upsert_custom_world_session_procedure";
|
||||
import * as UpsertPlatformBrowseHistoryProcedure from "../upsert_platform_browse_history_procedure";
|
||||
import * as VerifySmsCodeProcedure from "../verify_sms_code_procedure";
|
||||
|
||||
export type ClearPlatformBrowseHistoryArgs = __Infer<typeof ClearPlatformBrowseHistoryProcedure.params>;
|
||||
export type ClearPlatformBrowseHistoryResult = __Infer<typeof ClearPlatformBrowseHistoryProcedure.returnType>;
|
||||
export type DeleteCustomWorldProfileArgs = __Infer<typeof DeleteCustomWorldProfileProcedure.params>;
|
||||
export type DeleteCustomWorldProfileResult = __Infer<typeof DeleteCustomWorldProfileProcedure.returnType>;
|
||||
export type DeleteSnapshotArgs = __Infer<typeof DeleteSnapshotProcedure.params>;
|
||||
export type DeleteSnapshotResult = __Infer<typeof DeleteSnapshotProcedure.returnType>;
|
||||
export type LiftMyRiskBlockArgs = __Infer<typeof LiftMyRiskBlockProcedure.params>;
|
||||
export type LiftMyRiskBlockResult = __Infer<typeof LiftMyRiskBlockProcedure.returnType>;
|
||||
export type LogoutAllUserSessionsArgs = __Infer<typeof LogoutAllUserSessionsProcedure.params>;
|
||||
export type LogoutAllUserSessionsResult = __Infer<typeof LogoutAllUserSessionsProcedure.returnType>;
|
||||
export type PublishCustomWorldProfileArgs = __Infer<typeof PublishCustomWorldProfileProcedure.params>;
|
||||
export type PublishCustomWorldProfileResult = __Infer<typeof PublishCustomWorldProfileProcedure.returnType>;
|
||||
export type PutRuntimeSettingsArgs = __Infer<typeof PutRuntimeSettingsProcedure.params>;
|
||||
export type PutRuntimeSettingsResult = __Infer<typeof PutRuntimeSettingsProcedure.returnType>;
|
||||
export type RevokeUserSessionArgs = __Infer<typeof RevokeUserSessionProcedure.params>;
|
||||
export type RevokeUserSessionResult = __Infer<typeof RevokeUserSessionProcedure.returnType>;
|
||||
export type SaveSnapshotArgs = __Infer<typeof SaveSnapshotProcedure.params>;
|
||||
export type SaveSnapshotResult = __Infer<typeof SaveSnapshotProcedure.returnType>;
|
||||
export type SendSmsVerificationCodeArgs = __Infer<typeof SendSmsVerificationCodeProcedure.params>;
|
||||
export type SendSmsVerificationCodeResult = __Infer<typeof SendSmsVerificationCodeProcedure.returnType>;
|
||||
export type UnpublishCustomWorldProfileArgs = __Infer<typeof UnpublishCustomWorldProfileProcedure.params>;
|
||||
export type UnpublishCustomWorldProfileResult = __Infer<typeof UnpublishCustomWorldProfileProcedure.returnType>;
|
||||
export type UpsertCustomWorldProfileArgs = __Infer<typeof UpsertCustomWorldProfileProcedure.params>;
|
||||
export type UpsertCustomWorldProfileResult = __Infer<typeof UpsertCustomWorldProfileProcedure.returnType>;
|
||||
export type UpsertCustomWorldSessionArgs = __Infer<typeof UpsertCustomWorldSessionProcedure.params>;
|
||||
export type UpsertCustomWorldSessionResult = __Infer<typeof UpsertCustomWorldSessionProcedure.returnType>;
|
||||
export type UpsertPlatformBrowseHistoryArgs = __Infer<typeof UpsertPlatformBrowseHistoryProcedure.params>;
|
||||
export type UpsertPlatformBrowseHistoryResult = __Infer<typeof UpsertPlatformBrowseHistoryProcedure.returnType>;
|
||||
export type VerifySmsCodeArgs = __Infer<typeof VerifySmsCodeProcedure.params>;
|
||||
export type VerifySmsCodeResult = __Infer<typeof VerifySmsCodeProcedure.returnType>;
|
||||
|
||||
10
src/spacetime/generated/types/reducers.ts
Normal file
10
src/spacetime/generated/types/reducers.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
import { type Infer as __Infer } from "spacetimedb";
|
||||
|
||||
// Import all reducer arg schemas
|
||||
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
import {
|
||||
TypeBuilder as __TypeBuilder,
|
||||
t as __t,
|
||||
type AlgebraicTypeType as __AlgebraicTypeType,
|
||||
type Infer as __Infer,
|
||||
} from "spacetimedb";
|
||||
|
||||
import {
|
||||
RequestMeta,
|
||||
MutationResult,
|
||||
} from "./types";
|
||||
|
||||
export const params = {
|
||||
get meta() {
|
||||
return RequestMeta;
|
||||
},
|
||||
profileId: __t.string(),
|
||||
authorDisplayName: __t.string(),
|
||||
};
|
||||
export const returnType = MutationResult
|
||||
@@ -0,0 +1,26 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
import {
|
||||
TypeBuilder as __TypeBuilder,
|
||||
t as __t,
|
||||
type AlgebraicTypeType as __AlgebraicTypeType,
|
||||
type Infer as __Infer,
|
||||
} from "spacetimedb";
|
||||
|
||||
import {
|
||||
RequestMeta,
|
||||
MutationResult,
|
||||
} from "./types";
|
||||
|
||||
export const params = {
|
||||
get meta() {
|
||||
return RequestMeta;
|
||||
},
|
||||
profileId: __t.string(),
|
||||
payloadJson: __t.string(),
|
||||
authorDisplayName: __t.string(),
|
||||
};
|
||||
export const returnType = MutationResult
|
||||
@@ -0,0 +1,27 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
import {
|
||||
TypeBuilder as __TypeBuilder,
|
||||
t as __t,
|
||||
type AlgebraicTypeType as __AlgebraicTypeType,
|
||||
type Infer as __Infer,
|
||||
} from "spacetimedb";
|
||||
|
||||
import {
|
||||
RequestMeta,
|
||||
MutationResult,
|
||||
} from "./types";
|
||||
|
||||
export const params = {
|
||||
get meta() {
|
||||
return RequestMeta;
|
||||
},
|
||||
sessionId: __t.string(),
|
||||
payloadJson: __t.string(),
|
||||
createdAtMs: __t.u64(),
|
||||
updatedAtMs: __t.u64(),
|
||||
};
|
||||
export const returnType = MutationResult
|
||||
@@ -0,0 +1,27 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
import {
|
||||
TypeBuilder as __TypeBuilder,
|
||||
t as __t,
|
||||
type AlgebraicTypeType as __AlgebraicTypeType,
|
||||
type Infer as __Infer,
|
||||
} from "spacetimedb";
|
||||
|
||||
import {
|
||||
RequestMeta,
|
||||
MutationResult,
|
||||
PlatformBrowseHistoryWriteInput,
|
||||
} from "./types";
|
||||
|
||||
export const params = {
|
||||
get meta() {
|
||||
return RequestMeta;
|
||||
},
|
||||
get entries() {
|
||||
return __t.array(PlatformBrowseHistoryWriteInput);
|
||||
},
|
||||
};
|
||||
export const returnType = MutationResult
|
||||
19
src/spacetime/generated/verification_prompt_event_table.ts
Normal file
19
src/spacetime/generated/verification_prompt_event_table.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
import {
|
||||
TypeBuilder as __TypeBuilder,
|
||||
t as __t,
|
||||
type AlgebraicTypeType as __AlgebraicTypeType,
|
||||
type Infer as __Infer,
|
||||
} from "spacetimedb";
|
||||
|
||||
export default __t.row({
|
||||
targetIdentity: __t.identity().name("target_identity"),
|
||||
phoneNumberMasked: __t.option(__t.string()).name("phone_number_masked"),
|
||||
title: __t.string(),
|
||||
detail: __t.string(),
|
||||
issuedAtMs: __t.u64().name("issued_at_ms"),
|
||||
});
|
||||
25
src/spacetime/generated/verify_sms_code_procedure.ts
Normal file
25
src/spacetime/generated/verify_sms_code_procedure.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
|
||||
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
|
||||
|
||||
/* eslint-disable */
|
||||
/* tslint:disable */
|
||||
import {
|
||||
TypeBuilder as __TypeBuilder,
|
||||
t as __t,
|
||||
type AlgebraicTypeType as __AlgebraicTypeType,
|
||||
type Infer as __Infer,
|
||||
} from "spacetimedb";
|
||||
|
||||
import {
|
||||
RequestMeta,
|
||||
SmsVerifyCodeResult,
|
||||
} from "./types";
|
||||
|
||||
export const params = {
|
||||
get meta() {
|
||||
return RequestMeta;
|
||||
},
|
||||
phoneNumber: __t.string(),
|
||||
code: __t.string(),
|
||||
};
|
||||
export const returnType = SmsVerifyCodeResult
|
||||
Reference in New Issue
Block a user