@coasys/ad4m 0.11.1 → 0.11.2-dev-multi-user-email
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/lib/index.cjs +369 -0
- package/lib/index.js +370 -1
- package/lib/src/agent/Agent.d.ts +6 -0
- package/lib/src/agent/Agent.js +24 -0
- package/lib/src/agent/AgentClient.d.ts +6 -1
- package/lib/src/agent/AgentClient.js +45 -0
- package/lib/src/language/Language.d.ts +12 -1
- package/lib/src/perspectives/PerspectiveClient.js +1 -0
- package/lib/src/perspectives/PerspectiveHandle.d.ts +1 -0
- package/lib/src/perspectives/PerspectiveHandle.js +4 -0
- package/lib/src/perspectives/PerspectiveProxy.d.ts +2 -0
- package/lib/src/perspectives/PerspectiveProxy.js +1 -0
- package/lib/src/runtime/RuntimeClient.d.ts +9 -1
- package/lib/src/runtime/RuntimeClient.js +72 -0
- package/lib/src/runtime/RuntimeResolver.d.ts +25 -0
- package/lib/src/runtime/RuntimeResolver.js +193 -0
- package/lib/src/schema.gql +33 -0
- package/lib/src/typeDefs.js +33 -0
- package/package.json +2 -2
- package/src/agent/Agent.ts +19 -0
- package/src/agent/AgentClient.ts +59 -0
- package/src/language/Language.ts +16 -4
- package/src/perspectives/PerspectiveClient.ts +1 -0
- package/src/perspectives/PerspectiveHandle.ts +3 -0
- package/src/perspectives/PerspectiveProxy.ts +4 -0
- package/src/runtime/RuntimeClient.ts +81 -1
- package/src/runtime/RuntimeResolver.ts +130 -0
package/lib/index.cjs
CHANGED
|
@@ -4071,6 +4071,29 @@ exports.AuthInfoInput = __decorate$b([
|
|
|
4071
4071
|
InputType(),
|
|
4072
4072
|
__metadata$b("design:paramtypes", [String, String, String, String, String, Array])
|
|
4073
4073
|
], exports.AuthInfoInput);
|
|
4074
|
+
exports.UserCreationResult = class UserCreationResult {
|
|
4075
|
+
constructor(did, success, error) {
|
|
4076
|
+
this.did = did;
|
|
4077
|
+
this.success = success;
|
|
4078
|
+
this.error = error;
|
|
4079
|
+
}
|
|
4080
|
+
};
|
|
4081
|
+
__decorate$b([
|
|
4082
|
+
Field(),
|
|
4083
|
+
__metadata$b("design:type", String)
|
|
4084
|
+
], exports.UserCreationResult.prototype, "did", void 0);
|
|
4085
|
+
__decorate$b([
|
|
4086
|
+
Field(),
|
|
4087
|
+
__metadata$b("design:type", Boolean)
|
|
4088
|
+
], exports.UserCreationResult.prototype, "success", void 0);
|
|
4089
|
+
__decorate$b([
|
|
4090
|
+
Field(),
|
|
4091
|
+
__metadata$b("design:type", String)
|
|
4092
|
+
], exports.UserCreationResult.prototype, "error", void 0);
|
|
4093
|
+
exports.UserCreationResult = __decorate$b([
|
|
4094
|
+
ObjectType(),
|
|
4095
|
+
__metadata$b("design:paramtypes", [String, Boolean, String])
|
|
4096
|
+
], exports.UserCreationResult);
|
|
4074
4097
|
|
|
4075
4098
|
var __decorate$a = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
4076
4099
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -4950,6 +4973,7 @@ class PerspectiveProxy {
|
|
|
4950
4973
|
__classPrivateFieldSet$a(this, _PerspectiveProxy_client, ad4m, "f");
|
|
4951
4974
|
this.uuid = __classPrivateFieldGet$a(this, _PerspectiveProxy_handle, "f").uuid;
|
|
4952
4975
|
this.name = __classPrivateFieldGet$a(this, _PerspectiveProxy_handle, "f").name;
|
|
4976
|
+
this.owners = __classPrivateFieldGet$a(this, _PerspectiveProxy_handle, "f").owners;
|
|
4953
4977
|
this.sharedUrl = __classPrivateFieldGet$a(this, _PerspectiveProxy_handle, "f").sharedUrl;
|
|
4954
4978
|
this.neighbourhood = __classPrivateFieldGet$a(this, _PerspectiveProxy_handle, "f").neighbourhood;
|
|
4955
4979
|
this.state = __classPrivateFieldGet$a(this, _PerspectiveProxy_handle, "f").state;
|
|
@@ -5864,6 +5888,7 @@ uuid
|
|
|
5864
5888
|
name
|
|
5865
5889
|
sharedUrl
|
|
5866
5890
|
state
|
|
5891
|
+
owners
|
|
5867
5892
|
neighbourhood {
|
|
5868
5893
|
data {
|
|
5869
5894
|
linkLanguage
|
|
@@ -6860,6 +6885,51 @@ class AgentClient {
|
|
|
6860
6885
|
}));
|
|
6861
6886
|
return agentSignMessage;
|
|
6862
6887
|
}
|
|
6888
|
+
// Multi-user methods
|
|
6889
|
+
async createUser(email, password, appInfo) {
|
|
6890
|
+
const { runtimeCreateUser } = unwrapApolloResult(await __classPrivateFieldGet$8(this, _AgentClient_apolloClient, "f").mutate({
|
|
6891
|
+
mutation: gql `mutation runtimeCreateUser($email: String!, $password: String!, $appInfo: AuthInfoInput) {
|
|
6892
|
+
runtimeCreateUser(email: $email, password: $password, appInfo: $appInfo) {
|
|
6893
|
+
did
|
|
6894
|
+
success
|
|
6895
|
+
error
|
|
6896
|
+
}
|
|
6897
|
+
}`,
|
|
6898
|
+
variables: { email, password, appInfo },
|
|
6899
|
+
}));
|
|
6900
|
+
return runtimeCreateUser;
|
|
6901
|
+
}
|
|
6902
|
+
async loginUser(email, password) {
|
|
6903
|
+
const { runtimeLoginUser } = unwrapApolloResult(await __classPrivateFieldGet$8(this, _AgentClient_apolloClient, "f").mutate({
|
|
6904
|
+
mutation: gql `mutation runtimeLoginUser($email: String!, $password: String!) {
|
|
6905
|
+
runtimeLoginUser(email: $email, password: $password)
|
|
6906
|
+
}`,
|
|
6907
|
+
variables: { email, password },
|
|
6908
|
+
}));
|
|
6909
|
+
return runtimeLoginUser;
|
|
6910
|
+
}
|
|
6911
|
+
async requestLoginVerification(email, appInfo) {
|
|
6912
|
+
const { runtimeRequestLoginVerification } = unwrapApolloResult(await __classPrivateFieldGet$8(this, _AgentClient_apolloClient, "f").mutate({
|
|
6913
|
+
mutation: gql `mutation runtimeRequestLoginVerification($email: String!, $appInfo: AuthInfoInput) {
|
|
6914
|
+
runtimeRequestLoginVerification(email: $email, appInfo: $appInfo) {
|
|
6915
|
+
success
|
|
6916
|
+
message
|
|
6917
|
+
requiresPassword
|
|
6918
|
+
}
|
|
6919
|
+
}`,
|
|
6920
|
+
variables: { email, appInfo },
|
|
6921
|
+
}));
|
|
6922
|
+
return runtimeRequestLoginVerification;
|
|
6923
|
+
}
|
|
6924
|
+
async verifyEmailCode(email, code, verificationType) {
|
|
6925
|
+
const { runtimeVerifyEmailCode } = unwrapApolloResult(await __classPrivateFieldGet$8(this, _AgentClient_apolloClient, "f").mutate({
|
|
6926
|
+
mutation: gql `mutation runtimeVerifyEmailCode($email: String!, $code: String!, $verificationType: String!) {
|
|
6927
|
+
runtimeVerifyEmailCode(email: $email, code: $code, verificationType: $verificationType)
|
|
6928
|
+
}`,
|
|
6929
|
+
variables: { email, code, verificationType },
|
|
6930
|
+
}));
|
|
6931
|
+
return runtimeVerifyEmailCode;
|
|
6932
|
+
}
|
|
6863
6933
|
}
|
|
6864
6934
|
_AgentClient_apolloClient = new WeakMap(), _AgentClient_appsChangedCallback = new WeakMap(), _AgentClient_updatedCallbacks = new WeakMap(), _AgentClient_agentStatusChangedCallbacks = new WeakMap();
|
|
6865
6935
|
|
|
@@ -7608,6 +7678,78 @@ class RuntimeClient {
|
|
|
7608
7678
|
}));
|
|
7609
7679
|
return runtimeImportPerspective;
|
|
7610
7680
|
}
|
|
7681
|
+
async multiUserEnabled() {
|
|
7682
|
+
const { runtimeMultiUserEnabled } = unwrapApolloResult(await __classPrivateFieldGet$5(this, _RuntimeClient_apolloClient, "f").query({
|
|
7683
|
+
query: gql `query runtimeMultiUserEnabled {
|
|
7684
|
+
runtimeMultiUserEnabled
|
|
7685
|
+
}`,
|
|
7686
|
+
}));
|
|
7687
|
+
return runtimeMultiUserEnabled;
|
|
7688
|
+
}
|
|
7689
|
+
async setMultiUserEnabled(enabled) {
|
|
7690
|
+
const { runtimeSetMultiUserEnabled } = unwrapApolloResult(await __classPrivateFieldGet$5(this, _RuntimeClient_apolloClient, "f").mutate({
|
|
7691
|
+
mutation: gql `mutation runtimeSetMultiUserEnabled($enabled: Boolean!) {
|
|
7692
|
+
runtimeSetMultiUserEnabled(enabled: $enabled)
|
|
7693
|
+
}`,
|
|
7694
|
+
variables: { enabled }
|
|
7695
|
+
}));
|
|
7696
|
+
return runtimeSetMultiUserEnabled;
|
|
7697
|
+
}
|
|
7698
|
+
async listUsers() {
|
|
7699
|
+
const { runtimeListUsers } = unwrapApolloResult(await __classPrivateFieldGet$5(this, _RuntimeClient_apolloClient, "f").query({
|
|
7700
|
+
query: gql `query runtimeListUsers {
|
|
7701
|
+
runtimeListUsers {
|
|
7702
|
+
email
|
|
7703
|
+
did
|
|
7704
|
+
lastSeen
|
|
7705
|
+
perspectiveCount
|
|
7706
|
+
}
|
|
7707
|
+
}`
|
|
7708
|
+
}));
|
|
7709
|
+
return runtimeListUsers;
|
|
7710
|
+
}
|
|
7711
|
+
async emailTestModeEnable() {
|
|
7712
|
+
const { runtimeEmailTestModeEnable } = unwrapApolloResult(await __classPrivateFieldGet$5(this, _RuntimeClient_apolloClient, "f").mutate({
|
|
7713
|
+
mutation: gql `mutation runtimeEmailTestModeEnable {
|
|
7714
|
+
runtimeEmailTestModeEnable
|
|
7715
|
+
}`
|
|
7716
|
+
}));
|
|
7717
|
+
return runtimeEmailTestModeEnable;
|
|
7718
|
+
}
|
|
7719
|
+
async emailTestModeDisable() {
|
|
7720
|
+
const { runtimeEmailTestModeDisable } = unwrapApolloResult(await __classPrivateFieldGet$5(this, _RuntimeClient_apolloClient, "f").mutate({
|
|
7721
|
+
mutation: gql `mutation runtimeEmailTestModeDisable {
|
|
7722
|
+
runtimeEmailTestModeDisable
|
|
7723
|
+
}`
|
|
7724
|
+
}));
|
|
7725
|
+
return runtimeEmailTestModeDisable;
|
|
7726
|
+
}
|
|
7727
|
+
async emailTestGetCode(email) {
|
|
7728
|
+
const { runtimeEmailTestGetCode } = unwrapApolloResult(await __classPrivateFieldGet$5(this, _RuntimeClient_apolloClient, "f").mutate({
|
|
7729
|
+
mutation: gql `mutation runtimeEmailTestGetCode($email: String!) {
|
|
7730
|
+
runtimeEmailTestGetCode(email: $email)
|
|
7731
|
+
}`,
|
|
7732
|
+
variables: { email }
|
|
7733
|
+
}));
|
|
7734
|
+
return runtimeEmailTestGetCode;
|
|
7735
|
+
}
|
|
7736
|
+
async emailTestClearCodes() {
|
|
7737
|
+
const { runtimeEmailTestClearCodes } = unwrapApolloResult(await __classPrivateFieldGet$5(this, _RuntimeClient_apolloClient, "f").mutate({
|
|
7738
|
+
mutation: gql `mutation runtimeEmailTestClearCodes {
|
|
7739
|
+
runtimeEmailTestClearCodes
|
|
7740
|
+
}`
|
|
7741
|
+
}));
|
|
7742
|
+
return runtimeEmailTestClearCodes;
|
|
7743
|
+
}
|
|
7744
|
+
async emailTestSetExpiry(email, verificationType, expiresAt) {
|
|
7745
|
+
const { runtimeEmailTestSetExpiry } = unwrapApolloResult(await __classPrivateFieldGet$5(this, _RuntimeClient_apolloClient, "f").mutate({
|
|
7746
|
+
mutation: gql `mutation runtimeEmailTestSetExpiry($email: String!, $verificationType: String!, $expiresAt: Int!) {
|
|
7747
|
+
runtimeEmailTestSetExpiry(email: $email, verificationType: $verificationType, expiresAt: $expiresAt)
|
|
7748
|
+
}`,
|
|
7749
|
+
variables: { email, verificationType, expiresAt }
|
|
7750
|
+
}));
|
|
7751
|
+
return runtimeEmailTestSetExpiry;
|
|
7752
|
+
}
|
|
7611
7753
|
addNotificationTriggeredCallback(cb) {
|
|
7612
7754
|
__classPrivateFieldGet$5(this, _RuntimeClient_notificationTriggeredCallbacks, "f").push(cb);
|
|
7613
7755
|
}
|
|
@@ -15733,6 +15875,10 @@ __decorate$2([
|
|
|
15733
15875
|
Field(),
|
|
15734
15876
|
__metadata$2("design:type", exports.NeighbourhoodExpression)
|
|
15735
15877
|
], exports.PerspectiveHandle.prototype, "neighbourhood", void 0);
|
|
15878
|
+
__decorate$2([
|
|
15879
|
+
Field(),
|
|
15880
|
+
__metadata$2("design:type", Array)
|
|
15881
|
+
], exports.PerspectiveHandle.prototype, "owners", void 0);
|
|
15736
15882
|
exports.PerspectiveHandle = __decorate$2([
|
|
15737
15883
|
ObjectType(),
|
|
15738
15884
|
__metadata$2("design:paramtypes", [String, String, String])
|
|
@@ -16875,6 +17021,12 @@ type Mutation {
|
|
|
16875
17021
|
perspectiveUpdateLink(batchId: String, newLink: LinkInput!, oldLink: LinkExpressionInput!, uuid: String!): LinkExpression!
|
|
16876
17022
|
runtimeAddFriends(dids: [String!]!): [String!]!
|
|
16877
17023
|
runtimeAddKnownLinkLanguageTemplates(addresses: [String!]!): [String!]!
|
|
17024
|
+
runtimeCreateUser(appInfo: AuthInfoInput, email: String!, password: String!): UserCreationResult!
|
|
17025
|
+
runtimeEmailTestClearCodes: Boolean!
|
|
17026
|
+
runtimeEmailTestGetCode(email: String!): String
|
|
17027
|
+
runtimeEmailTestModeDisable: Boolean!
|
|
17028
|
+
runtimeEmailTestModeEnable: Boolean!
|
|
17029
|
+
runtimeEmailTestSetExpiry(email: String!, expiresAt: Float!, verificationType: String!): Boolean!
|
|
16878
17030
|
runtimeExportDb(filePath: String!): Boolean!
|
|
16879
17031
|
runtimeExportPerspective(filePath: String!, perspectiveUuid: String!): Boolean!
|
|
16880
17032
|
runtimeFriendSendMessage(did: String!, message: PerspectiveInput!): Boolean!
|
|
@@ -16882,15 +17034,20 @@ type Mutation {
|
|
|
16882
17034
|
runtimeHcAddAgentInfos(agentInfos: String!): Boolean!
|
|
16883
17035
|
runtimeImportDb(filePath: String!): Boolean!
|
|
16884
17036
|
runtimeImportPerspective(filePath: String!): Boolean!
|
|
17037
|
+
runtimeLoginUser(email: String!, password: String!): String!
|
|
16885
17038
|
runtimeOpenLink(url: String!): Boolean!
|
|
16886
17039
|
runtimeQuit: Boolean!
|
|
16887
17040
|
runtimeRemoveFriends(dids: [String!]!): [String!]!
|
|
16888
17041
|
runtimeRemoveKnownLinkLanguageTemplates(addresses: [String!]!): [String!]!
|
|
16889
17042
|
runtimeRemoveNotification(id: String!): Boolean!
|
|
16890
17043
|
runtimeRequestInstallNotification(notification: NotificationInput!): String!
|
|
17044
|
+
runtimeRequestLoginVerification(appInfo: AuthInfoInput, email: String!): VerificationRequestResult!
|
|
16891
17045
|
runtimeRestartHolochain: Boolean!
|
|
17046
|
+
runtimeSetMultiUserEnabled(enabled: Boolean!): Boolean!
|
|
16892
17047
|
runtimeSetStatus(status: PerspectiveInput!): Boolean!
|
|
17048
|
+
runtimeTestEmail(to: String!): Boolean!
|
|
16893
17049
|
runtimeUpdateNotification(id: String!, notification: NotificationInput!): Boolean!
|
|
17050
|
+
runtimeVerifyEmailCode(code: String!, email: String!, verificationType: String!): String!
|
|
16894
17051
|
}
|
|
16895
17052
|
|
|
16896
17053
|
type Neighbourhood {
|
|
@@ -16948,6 +17105,7 @@ type PerspectiveExpression {
|
|
|
16948
17105
|
type PerspectiveHandle {
|
|
16949
17106
|
name: String!
|
|
16950
17107
|
neighbourhood: NeighbourhoodExpression
|
|
17108
|
+
owners: [String!]
|
|
16951
17109
|
sharedUrl: String
|
|
16952
17110
|
state: String!
|
|
16953
17111
|
uuid: String!
|
|
@@ -16996,8 +17154,10 @@ type Query {
|
|
|
16996
17154
|
runtimeHcAgentInfos: String!
|
|
16997
17155
|
runtimeInfo: RuntimeInfo!
|
|
16998
17156
|
runtimeKnownLinkLanguageTemplates: [String!]!
|
|
17157
|
+
runtimeListUsers: [UserStatistics!]!
|
|
16999
17158
|
runtimeMessageInbox(filter: String): [PerspectiveExpression!]!
|
|
17000
17159
|
runtimeMessageOutbox(filter: String): [SentMessage!]!
|
|
17160
|
+
runtimeMultiUserEnabled: Boolean!
|
|
17001
17161
|
runtimeNotifications: [Notification!]!
|
|
17002
17162
|
runtimeVerifyStringSignedByDid(data: String!, did: String!, didSigningKeyId: String!, signedData: String!): Boolean!
|
|
17003
17163
|
}
|
|
@@ -17065,6 +17225,25 @@ type TriggeredNotification {
|
|
|
17065
17225
|
triggerMatch: String!
|
|
17066
17226
|
}
|
|
17067
17227
|
|
|
17228
|
+
type UserCreationResult {
|
|
17229
|
+
did: String!
|
|
17230
|
+
error: String
|
|
17231
|
+
success: Boolean!
|
|
17232
|
+
}
|
|
17233
|
+
|
|
17234
|
+
type UserStatistics {
|
|
17235
|
+
did: String!
|
|
17236
|
+
email: String!
|
|
17237
|
+
lastSeen: String
|
|
17238
|
+
perspectiveCount: Int!
|
|
17239
|
+
}
|
|
17240
|
+
|
|
17241
|
+
type VerificationRequestResult {
|
|
17242
|
+
message: String!
|
|
17243
|
+
requiresPassword: Boolean!
|
|
17244
|
+
success: Boolean!
|
|
17245
|
+
}
|
|
17246
|
+
|
|
17068
17247
|
input VoiceActivityParamsInput {
|
|
17069
17248
|
endThreshold: Float
|
|
17070
17249
|
endWindow: Float
|
|
@@ -17353,6 +17532,44 @@ __decorate([
|
|
|
17353
17532
|
exports.ImportResult = __decorate([
|
|
17354
17533
|
ObjectType()
|
|
17355
17534
|
], exports.ImportResult);
|
|
17535
|
+
exports.UserStatistics = class UserStatistics {
|
|
17536
|
+
};
|
|
17537
|
+
__decorate([
|
|
17538
|
+
Field(),
|
|
17539
|
+
__metadata("design:type", String)
|
|
17540
|
+
], exports.UserStatistics.prototype, "email", void 0);
|
|
17541
|
+
__decorate([
|
|
17542
|
+
Field(),
|
|
17543
|
+
__metadata("design:type", String)
|
|
17544
|
+
], exports.UserStatistics.prototype, "did", void 0);
|
|
17545
|
+
__decorate([
|
|
17546
|
+
Field(),
|
|
17547
|
+
__metadata("design:type", String)
|
|
17548
|
+
], exports.UserStatistics.prototype, "lastSeen", void 0);
|
|
17549
|
+
__decorate([
|
|
17550
|
+
Field(),
|
|
17551
|
+
__metadata("design:type", Number)
|
|
17552
|
+
], exports.UserStatistics.prototype, "perspectiveCount", void 0);
|
|
17553
|
+
exports.UserStatistics = __decorate([
|
|
17554
|
+
ObjectType()
|
|
17555
|
+
], exports.UserStatistics);
|
|
17556
|
+
exports.VerificationRequestResult = class VerificationRequestResult {
|
|
17557
|
+
};
|
|
17558
|
+
__decorate([
|
|
17559
|
+
Field(),
|
|
17560
|
+
__metadata("design:type", Boolean)
|
|
17561
|
+
], exports.VerificationRequestResult.prototype, "success", void 0);
|
|
17562
|
+
__decorate([
|
|
17563
|
+
Field(),
|
|
17564
|
+
__metadata("design:type", String)
|
|
17565
|
+
], exports.VerificationRequestResult.prototype, "message", void 0);
|
|
17566
|
+
__decorate([
|
|
17567
|
+
Field(),
|
|
17568
|
+
__metadata("design:type", Boolean)
|
|
17569
|
+
], exports.VerificationRequestResult.prototype, "requiresPassword", void 0);
|
|
17570
|
+
exports.VerificationRequestResult = __decorate([
|
|
17571
|
+
ObjectType()
|
|
17572
|
+
], exports.VerificationRequestResult);
|
|
17356
17573
|
/**
|
|
17357
17574
|
* Resolver classes are used here to define the GraphQL schema
|
|
17358
17575
|
* (through the type-graphql annotations)
|
|
@@ -17502,6 +17719,64 @@ let RuntimeResolver = class RuntimeResolver {
|
|
|
17502
17719
|
runtimeImportPerspective(filePath) {
|
|
17503
17720
|
return true;
|
|
17504
17721
|
}
|
|
17722
|
+
runtimeMultiUserEnabled() {
|
|
17723
|
+
return false;
|
|
17724
|
+
}
|
|
17725
|
+
runtimeSetMultiUserEnabled(enabled) {
|
|
17726
|
+
return enabled;
|
|
17727
|
+
}
|
|
17728
|
+
runtimeListUsers() {
|
|
17729
|
+
return [{
|
|
17730
|
+
email: "test@example.com",
|
|
17731
|
+
did: "did:key:test123",
|
|
17732
|
+
lastSeen: new Date().toISOString(),
|
|
17733
|
+
perspectiveCount: 5
|
|
17734
|
+
}];
|
|
17735
|
+
}
|
|
17736
|
+
runtimeRequestLoginVerification(email, appInfo) {
|
|
17737
|
+
// For testing: simulate existing user
|
|
17738
|
+
return {
|
|
17739
|
+
success: true,
|
|
17740
|
+
message: "Verification email sent",
|
|
17741
|
+
requiresPassword: false
|
|
17742
|
+
};
|
|
17743
|
+
}
|
|
17744
|
+
runtimeVerifyEmailCode(email, code, verificationType) {
|
|
17745
|
+
// For testing: return a test JWT token
|
|
17746
|
+
return "test-jwt-token-from-email-verification";
|
|
17747
|
+
}
|
|
17748
|
+
runtimeTestEmail(to) {
|
|
17749
|
+
// For testing: simulate successful email send
|
|
17750
|
+
return true;
|
|
17751
|
+
}
|
|
17752
|
+
runtimeCreateUser(email, password, appInfo) {
|
|
17753
|
+
// For testing: simulate successful user creation (email verification flow)
|
|
17754
|
+
return new exports.UserCreationResult("did:key:test123", true);
|
|
17755
|
+
}
|
|
17756
|
+
runtimeLoginUser(email, password) {
|
|
17757
|
+
// For testing: return a test JWT token
|
|
17758
|
+
return "test-jwt-token-from-password-login";
|
|
17759
|
+
}
|
|
17760
|
+
runtimeEmailTestModeEnable() {
|
|
17761
|
+
// For testing: enable test mode
|
|
17762
|
+
return true;
|
|
17763
|
+
}
|
|
17764
|
+
runtimeEmailTestModeDisable() {
|
|
17765
|
+
// For testing: disable test mode
|
|
17766
|
+
return true;
|
|
17767
|
+
}
|
|
17768
|
+
runtimeEmailTestGetCode(email) {
|
|
17769
|
+
// For testing: return a mock code
|
|
17770
|
+
return "123456";
|
|
17771
|
+
}
|
|
17772
|
+
runtimeEmailTestClearCodes() {
|
|
17773
|
+
// For testing: clear codes
|
|
17774
|
+
return true;
|
|
17775
|
+
}
|
|
17776
|
+
runtimeEmailTestSetExpiry(email, verificationType, expiresAt) {
|
|
17777
|
+
// For testing: simulate setting expiry (no-op in mock)
|
|
17778
|
+
return true;
|
|
17779
|
+
}
|
|
17505
17780
|
};
|
|
17506
17781
|
__decorate([
|
|
17507
17782
|
Mutation(),
|
|
@@ -17735,6 +18010,100 @@ __decorate([
|
|
|
17735
18010
|
__metadata("design:paramtypes", [String]),
|
|
17736
18011
|
__metadata("design:returntype", Boolean)
|
|
17737
18012
|
], RuntimeResolver.prototype, "runtimeImportPerspective", null);
|
|
18013
|
+
__decorate([
|
|
18014
|
+
Query(),
|
|
18015
|
+
__metadata("design:type", Function),
|
|
18016
|
+
__metadata("design:paramtypes", []),
|
|
18017
|
+
__metadata("design:returntype", Boolean)
|
|
18018
|
+
], RuntimeResolver.prototype, "runtimeMultiUserEnabled", null);
|
|
18019
|
+
__decorate([
|
|
18020
|
+
Mutation(),
|
|
18021
|
+
__param(0, Arg()),
|
|
18022
|
+
__metadata("design:type", Function),
|
|
18023
|
+
__metadata("design:paramtypes", [Boolean]),
|
|
18024
|
+
__metadata("design:returntype", Boolean)
|
|
18025
|
+
], RuntimeResolver.prototype, "runtimeSetMultiUserEnabled", null);
|
|
18026
|
+
__decorate([
|
|
18027
|
+
Query(),
|
|
18028
|
+
__metadata("design:type", Function),
|
|
18029
|
+
__metadata("design:paramtypes", []),
|
|
18030
|
+
__metadata("design:returntype", Array)
|
|
18031
|
+
], RuntimeResolver.prototype, "runtimeListUsers", null);
|
|
18032
|
+
__decorate([
|
|
18033
|
+
Mutation(),
|
|
18034
|
+
__param(0, Arg()),
|
|
18035
|
+
__param(1, Arg()),
|
|
18036
|
+
__metadata("design:type", Function),
|
|
18037
|
+
__metadata("design:paramtypes", [String, exports.AuthInfoInput]),
|
|
18038
|
+
__metadata("design:returntype", exports.VerificationRequestResult)
|
|
18039
|
+
], RuntimeResolver.prototype, "runtimeRequestLoginVerification", null);
|
|
18040
|
+
__decorate([
|
|
18041
|
+
Mutation(),
|
|
18042
|
+
__param(0, Arg()),
|
|
18043
|
+
__param(1, Arg()),
|
|
18044
|
+
__param(2, Arg()),
|
|
18045
|
+
__metadata("design:type", Function),
|
|
18046
|
+
__metadata("design:paramtypes", [String, String, String]),
|
|
18047
|
+
__metadata("design:returntype", String)
|
|
18048
|
+
], RuntimeResolver.prototype, "runtimeVerifyEmailCode", null);
|
|
18049
|
+
__decorate([
|
|
18050
|
+
Mutation(),
|
|
18051
|
+
__param(0, Arg()),
|
|
18052
|
+
__metadata("design:type", Function),
|
|
18053
|
+
__metadata("design:paramtypes", [String]),
|
|
18054
|
+
__metadata("design:returntype", Boolean)
|
|
18055
|
+
], RuntimeResolver.prototype, "runtimeTestEmail", null);
|
|
18056
|
+
__decorate([
|
|
18057
|
+
Mutation(),
|
|
18058
|
+
__param(0, Arg()),
|
|
18059
|
+
__param(1, Arg()),
|
|
18060
|
+
__param(2, Arg()),
|
|
18061
|
+
__metadata("design:type", Function),
|
|
18062
|
+
__metadata("design:paramtypes", [String, String, exports.AuthInfoInput]),
|
|
18063
|
+
__metadata("design:returntype", exports.UserCreationResult)
|
|
18064
|
+
], RuntimeResolver.prototype, "runtimeCreateUser", null);
|
|
18065
|
+
__decorate([
|
|
18066
|
+
Mutation(),
|
|
18067
|
+
__param(0, Arg()),
|
|
18068
|
+
__param(1, Arg()),
|
|
18069
|
+
__metadata("design:type", Function),
|
|
18070
|
+
__metadata("design:paramtypes", [String, String]),
|
|
18071
|
+
__metadata("design:returntype", String)
|
|
18072
|
+
], RuntimeResolver.prototype, "runtimeLoginUser", null);
|
|
18073
|
+
__decorate([
|
|
18074
|
+
Mutation(),
|
|
18075
|
+
__metadata("design:type", Function),
|
|
18076
|
+
__metadata("design:paramtypes", []),
|
|
18077
|
+
__metadata("design:returntype", Boolean)
|
|
18078
|
+
], RuntimeResolver.prototype, "runtimeEmailTestModeEnable", null);
|
|
18079
|
+
__decorate([
|
|
18080
|
+
Mutation(),
|
|
18081
|
+
__metadata("design:type", Function),
|
|
18082
|
+
__metadata("design:paramtypes", []),
|
|
18083
|
+
__metadata("design:returntype", Boolean)
|
|
18084
|
+
], RuntimeResolver.prototype, "runtimeEmailTestModeDisable", null);
|
|
18085
|
+
__decorate([
|
|
18086
|
+
Mutation(),
|
|
18087
|
+
__param(0, Arg()),
|
|
18088
|
+
__metadata("design:type", Function),
|
|
18089
|
+
__metadata("design:paramtypes", [String]),
|
|
18090
|
+
__metadata("design:returntype", String)
|
|
18091
|
+
], RuntimeResolver.prototype, "runtimeEmailTestGetCode", null);
|
|
18092
|
+
__decorate([
|
|
18093
|
+
Mutation(),
|
|
18094
|
+
__metadata("design:type", Function),
|
|
18095
|
+
__metadata("design:paramtypes", []),
|
|
18096
|
+
__metadata("design:returntype", Boolean)
|
|
18097
|
+
], RuntimeResolver.prototype, "runtimeEmailTestClearCodes", null);
|
|
18098
|
+
__decorate([
|
|
18099
|
+
Mutation(),
|
|
18100
|
+
__param(0, Arg()),
|
|
18101
|
+
__param(1, Arg()),
|
|
18102
|
+
__param(2, Arg()),
|
|
18103
|
+
__metadata("design:type", Function),
|
|
18104
|
+
__metadata("design:paramtypes", [String, String, Number]),
|
|
18105
|
+
__metadata("design:returntype", Boolean)
|
|
18106
|
+
], RuntimeResolver.prototype, "runtimeEmailTestSetExpiry", null);
|
|
17738
18107
|
RuntimeResolver = __decorate([
|
|
17739
18108
|
Resolver()
|
|
17740
18109
|
], RuntimeResolver);
|