@coasys/ad4m 0.12.0 → 0.13.0-test-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.cjs CHANGED
@@ -9376,7 +9376,7 @@ var __classPrivateFieldGet$7 = (undefined && undefined.__classPrivateFieldGet) |
9376
9376
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
9377
9377
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
9378
9378
  };
9379
- var _AgentClient_apolloClient, _AgentClient_appsChangedCallback, _AgentClient_updatedCallbacks, _AgentClient_agentStatusChangedCallbacks;
9379
+ var _AgentClient_apolloClient, _AgentClient_appsChangedCallback, _AgentClient_updatedCallbacks, _AgentClient_agentStatusChangedCallbacks, _AgentClient_hostingUserInfoChangedCallbacks;
9380
9380
  const AGENT_SUBITEMS = `
9381
9381
  did
9382
9382
  directMessageLanguage
@@ -9439,10 +9439,12 @@ class AgentClient {
9439
9439
  _AgentClient_appsChangedCallback.set(this, void 0);
9440
9440
  _AgentClient_updatedCallbacks.set(this, void 0);
9441
9441
  _AgentClient_agentStatusChangedCallbacks.set(this, void 0);
9442
+ _AgentClient_hostingUserInfoChangedCallbacks.set(this, void 0);
9442
9443
  __classPrivateFieldSet$7(this, _AgentClient_apolloClient, client, "f");
9443
9444
  __classPrivateFieldSet$7(this, _AgentClient_updatedCallbacks, [], "f");
9444
9445
  __classPrivateFieldSet$7(this, _AgentClient_agentStatusChangedCallbacks, [], "f");
9445
9446
  __classPrivateFieldSet$7(this, _AgentClient_appsChangedCallback, [], "f");
9447
+ __classPrivateFieldSet$7(this, _AgentClient_hostingUserInfoChangedCallbacks, [], "f");
9446
9448
  if (subscribe) {
9447
9449
  this.subscribeAgentUpdated();
9448
9450
  this.subscribeAgentStatusChanged();
@@ -9703,6 +9705,29 @@ class AgentClient {
9703
9705
  error: (e) => console.error(e),
9704
9706
  });
9705
9707
  }
9708
+ addHostingUserInfoChangedListener(listener) {
9709
+ __classPrivateFieldGet$7(this, _AgentClient_hostingUserInfoChangedCallbacks, "f").push(listener);
9710
+ }
9711
+ subscribeHostingUserInfoChanged() {
9712
+ __classPrivateFieldGet$7(this, _AgentClient_apolloClient, "f")
9713
+ .subscribe({
9714
+ query: gql `subscription {
9715
+ runtimeHostingUserInfoChanged {
9716
+ email
9717
+ remainingCredits
9718
+ hotWalletAddress
9719
+ freeAccess
9720
+ }
9721
+ }`,
9722
+ })
9723
+ .subscribe({
9724
+ next: (result) => {
9725
+ const info = result.data.runtimeHostingUserInfoChanged;
9726
+ __classPrivateFieldGet$7(this, _AgentClient_hostingUserInfoChangedCallbacks, "f").forEach((cb) => cb(info));
9727
+ },
9728
+ error: (e) => console.error(e),
9729
+ });
9730
+ }
9706
9731
  async requestCapability(authInfo) {
9707
9732
  const { agentRequestCapability } = unwrapApolloResult(await __classPrivateFieldGet$7(this, _AgentClient_apolloClient, "f").mutate({
9708
9733
  mutation: gql `
@@ -9843,6 +9868,7 @@ class AgentClient {
9843
9868
  email
9844
9869
  remainingCredits
9845
9870
  hotWalletAddress
9871
+ freeAccess
9846
9872
  }
9847
9873
  }`,
9848
9874
  }));
@@ -9870,7 +9896,7 @@ class AgentClient {
9870
9896
  return runtimeRequestPayment;
9871
9897
  }
9872
9898
  }
9873
- _AgentClient_apolloClient = new WeakMap(), _AgentClient_appsChangedCallback = new WeakMap(), _AgentClient_updatedCallbacks = new WeakMap(), _AgentClient_agentStatusChangedCallbacks = new WeakMap();
9899
+ _AgentClient_apolloClient = new WeakMap(), _AgentClient_appsChangedCallback = new WeakMap(), _AgentClient_updatedCallbacks = new WeakMap(), _AgentClient_agentStatusChangedCallbacks = new WeakMap(), _AgentClient_hostingUserInfoChangedCallbacks = new WeakMap();
9874
9900
 
9875
9901
  var __classPrivateFieldSet$6 = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
9876
9902
  if (kind === "m") throw new TypeError("Private method is not writable");
@@ -10359,6 +10385,14 @@ class RuntimeClient {
10359
10385
  }));
10360
10386
  return runtimeInfo;
10361
10387
  }
10388
+ async tlsDomain() {
10389
+ const { runtimeTlsDomain } = unwrapApolloResult(await __classPrivateFieldGet$4(this, _RuntimeClient_apolloClient, "f").query({
10390
+ query: gql `query runtimeTlsDomain {
10391
+ runtimeTlsDomain
10392
+ }`,
10393
+ }));
10394
+ return runtimeTlsDomain;
10395
+ }
10362
10396
  async quit() {
10363
10397
  const result = unwrapApolloResult(await __classPrivateFieldGet$4(this, _RuntimeClient_apolloClient, "f").mutate({
10364
10398
  mutation: gql `mutation runtimeQuit { runtimeQuit }`
@@ -10653,6 +10687,23 @@ class RuntimeClient {
10653
10687
  }));
10654
10688
  return runtimeSetMultiUserEnabled;
10655
10689
  }
10690
+ async freeHostingEnabled() {
10691
+ const { runtimeFreeHostingEnabled } = unwrapApolloResult(await __classPrivateFieldGet$4(this, _RuntimeClient_apolloClient, "f").query({
10692
+ query: gql `query runtimeFreeHostingEnabled {
10693
+ runtimeFreeHostingEnabled
10694
+ }`
10695
+ }));
10696
+ return runtimeFreeHostingEnabled;
10697
+ }
10698
+ async setFreeHostingEnabled(enabled) {
10699
+ const { runtimeSetFreeHostingEnabled } = unwrapApolloResult(await __classPrivateFieldGet$4(this, _RuntimeClient_apolloClient, "f").mutate({
10700
+ mutation: gql `mutation runtimeSetFreeHostingEnabled($enabled: Boolean!) {
10701
+ runtimeSetFreeHostingEnabled(enabled: $enabled)
10702
+ }`,
10703
+ variables: { enabled }
10704
+ }));
10705
+ return runtimeSetFreeHostingEnabled;
10706
+ }
10656
10707
  async listUsers() {
10657
10708
  const { runtimeListUsers } = unwrapApolloResult(await __classPrivateFieldGet$4(this, _RuntimeClient_apolloClient, "f").query({
10658
10709
  query: gql `query runtimeListUsers {
@@ -10661,11 +10712,23 @@ class RuntimeClient {
10661
10712
  did
10662
10713
  lastSeen
10663
10714
  perspectiveCount
10715
+ remainingCredits
10716
+ freeAccess
10717
+ hotWalletAddress
10664
10718
  }
10665
10719
  }`
10666
10720
  }));
10667
10721
  return runtimeListUsers;
10668
10722
  }
10723
+ async userWalletAddress(email) {
10724
+ const { runtimeUserWalletAddress } = unwrapApolloResult(await __classPrivateFieldGet$4(this, _RuntimeClient_apolloClient, "f").query({
10725
+ query: gql `query runtimeUserWalletAddress($email: String!) {
10726
+ runtimeUserWalletAddress(email: $email)
10727
+ }`,
10728
+ variables: { email }
10729
+ }));
10730
+ return runtimeUserWalletAddress;
10731
+ }
10669
10732
  async emailTestModeEnable() {
10670
10733
  const { runtimeEmailTestModeEnable } = unwrapApolloResult(await __classPrivateFieldGet$4(this, _RuntimeClient_apolloClient, "f").mutate({
10671
10734
  mutation: gql `mutation runtimeEmailTestModeEnable {
@@ -10708,6 +10771,112 @@ class RuntimeClient {
10708
10771
  }));
10709
10772
  return runtimeEmailTestSetExpiry;
10710
10773
  }
10774
+ // ---- Unyt / mHOT methods ----
10775
+ async unytAgentKey() {
10776
+ const { runtimeUnytAgentKey } = unwrapApolloResult(await __classPrivateFieldGet$4(this, _RuntimeClient_apolloClient, "f").query({
10777
+ query: gql `query runtimeUnytAgentKey { runtimeUnytAgentKey }`,
10778
+ fetchPolicy: "network-only",
10779
+ }));
10780
+ return runtimeUnytAgentKey;
10781
+ }
10782
+ async unytHotAgentPubkey() {
10783
+ const { runtimeHotAgentPubkey } = unwrapApolloResult(await __classPrivateFieldGet$4(this, _RuntimeClient_apolloClient, "f").query({
10784
+ query: gql `query runtimeHotAgentPubkey { runtimeHotAgentPubkey }`,
10785
+ fetchPolicy: "network-only",
10786
+ }));
10787
+ return runtimeHotAgentPubkey;
10788
+ }
10789
+ async unytWalletBalance() {
10790
+ const { runtimeHotWalletBalance } = unwrapApolloResult(await __classPrivateFieldGet$4(this, _RuntimeClient_apolloClient, "f").query({
10791
+ query: gql `query runtimeHotWalletBalance { runtimeHotWalletBalance }`,
10792
+ fetchPolicy: "network-only",
10793
+ }));
10794
+ return runtimeHotWalletBalance;
10795
+ }
10796
+ async unytWalletHistory(page, perPage) {
10797
+ const { runtimeHotWalletHistory } = unwrapApolloResult(await __classPrivateFieldGet$4(this, _RuntimeClient_apolloClient, "f").query({
10798
+ query: gql `query runtimeHotWalletHistory($page: Int, $perPage: Int) {
10799
+ runtimeHotWalletHistory(page: $page, perPage: $perPage)
10800
+ }`,
10801
+ variables: { page, perPage },
10802
+ fetchPolicy: "network-only",
10803
+ }));
10804
+ return runtimeHotWalletHistory;
10805
+ }
10806
+ async unytVersionInfo() {
10807
+ const { runtimeUnytVersionInfo } = unwrapApolloResult(await __classPrivateFieldGet$4(this, _RuntimeClient_apolloClient, "f").query({
10808
+ query: gql `query runtimeUnytVersionInfo { runtimeUnytVersionInfo }`,
10809
+ fetchPolicy: "network-only",
10810
+ }));
10811
+ return runtimeUnytVersionInfo;
10812
+ }
10813
+ async unytSetMembraneProof(proof) {
10814
+ const { runtimeSetUnytMembraneProof } = unwrapApolloResult(await __classPrivateFieldGet$4(this, _RuntimeClient_apolloClient, "f").mutate({
10815
+ mutation: gql `mutation runtimeSetUnytMembraneProof($proof: String!) {
10816
+ runtimeSetUnytMembraneProof(proof: $proof) { success message }
10817
+ }`,
10818
+ variables: { proof },
10819
+ }));
10820
+ return runtimeSetUnytMembraneProof;
10821
+ }
10822
+ async unytReinstallDna() {
10823
+ const { runtimeReinstallUnytDna } = unwrapApolloResult(await __classPrivateFieldGet$4(this, _RuntimeClient_apolloClient, "f").mutate({
10824
+ mutation: gql `mutation runtimeReinstallUnytDna {
10825
+ runtimeReinstallUnytDna { success message }
10826
+ }`,
10827
+ }));
10828
+ return runtimeReinstallUnytDna;
10829
+ }
10830
+ async unytSendHot(recipient, amount) {
10831
+ const { runtimeSendHot } = unwrapApolloResult(await __classPrivateFieldGet$4(this, _RuntimeClient_apolloClient, "f").mutate({
10832
+ mutation: gql `mutation runtimeSendHot($recipient: String!, $amount: String!) {
10833
+ runtimeSendHot(recipient: $recipient, amount: $amount) { success message }
10834
+ }`,
10835
+ variables: { recipient, amount },
10836
+ }));
10837
+ return runtimeSendHot;
10838
+ }
10839
+ async setUserCredits(email, amount) {
10840
+ const { runtimeSetUserCredits } = unwrapApolloResult(await __classPrivateFieldGet$4(this, _RuntimeClient_apolloClient, "f").mutate({
10841
+ mutation: gql `mutation runtimeSetUserCredits($email: String!, $amount: Float!) {
10842
+ runtimeSetUserCredits(email: $email, amount: $amount)
10843
+ }`,
10844
+ variables: { email, amount },
10845
+ }));
10846
+ return runtimeSetUserCredits;
10847
+ }
10848
+ async setUserFreeAccess(email, enabled) {
10849
+ const { runtimeSetUserFreeAccess } = unwrapApolloResult(await __classPrivateFieldGet$4(this, _RuntimeClient_apolloClient, "f").mutate({
10850
+ mutation: gql `mutation runtimeSetUserFreeAccess($email: String!, $enabled: Boolean!) {
10851
+ runtimeSetUserFreeAccess(email: $email, enabled: $enabled)
10852
+ }`,
10853
+ variables: { email, enabled },
10854
+ }));
10855
+ return runtimeSetUserFreeAccess;
10856
+ }
10857
+ async setHostRates(ratesJson) {
10858
+ const { runtimeSetHostRates } = unwrapApolloResult(await __classPrivateFieldGet$4(this, _RuntimeClient_apolloClient, "f").mutate({
10859
+ mutation: gql `mutation runtimeSetHostRates($ratesJson: String!) {
10860
+ runtimeSetHostRates(ratesJson: $ratesJson)
10861
+ }`,
10862
+ variables: { ratesJson },
10863
+ }));
10864
+ return runtimeSetHostRates;
10865
+ }
10866
+ async getHostRates() {
10867
+ const { runtimeHostRates } = unwrapApolloResult(await __classPrivateFieldGet$4(this, _RuntimeClient_apolloClient, "f").query({
10868
+ query: gql `query runtimeHostRates {
10869
+ runtimeHostRates
10870
+ }`,
10871
+ fetchPolicy: 'network-only',
10872
+ }));
10873
+ try {
10874
+ return JSON.parse(runtimeHostRates);
10875
+ }
10876
+ catch {
10877
+ return [];
10878
+ }
10879
+ }
10711
10880
  addNotificationTriggeredCallback(cb) {
10712
10881
  __classPrivateFieldGet$4(this, _RuntimeClient_notificationTriggeredCallbacks, "f").push(cb);
10713
10882
  }
@@ -23142,6 +23311,7 @@ type ExpressionRendered {
23142
23311
 
23143
23312
  type HostingUserInfo {
23144
23313
  email: String!
23314
+ freeAccess: Boolean!
23145
23315
  hotWalletAddress: String
23146
23316
  remainingCredits: String!
23147
23317
  }
@@ -23376,6 +23546,7 @@ type Mutation {
23376
23546
  runtimeLoginUser(email: String!, password: String!): String!
23377
23547
  runtimeOpenLink(url: String!): Boolean!
23378
23548
  runtimeQuit: Boolean!
23549
+ runtimeReinstallUnytDna: PaymentRequestResult!
23379
23550
  runtimeRemoveFriends(dids: [String!]!): [String!]!
23380
23551
  runtimeRemoveKnownLinkLanguageTemplates(addresses: [String!]!): [String!]!
23381
23552
  runtimeRemoveNotification(id: String!): Boolean!
@@ -23383,9 +23554,14 @@ type Mutation {
23383
23554
  runtimeRequestLoginVerification(appInfo: AuthInfoInput, email: String!): VerificationRequestResult!
23384
23555
  runtimeRequestPayment(amountHOT: String!): PaymentRequestResult!
23385
23556
  runtimeRestartHolochain: Boolean!
23557
+ runtimeSendHot(amount: String!, recipient: String!): PaymentRequestResult!
23558
+ runtimeSetFreeHostingEnabled(enabled: Boolean!): Boolean!
23386
23559
  runtimeSetHotWalletAddress(address: String!): Boolean!
23387
23560
  runtimeSetMultiUserEnabled(enabled: Boolean!): Boolean!
23388
23561
  runtimeSetStatus(status: PerspectiveInput!): Boolean!
23562
+ runtimeSetUnytMembraneProof(proof: String!): PaymentRequestResult!
23563
+ runtimeSetUserCredits(amount: Float!, email: String!): Boolean!
23564
+ runtimeSetUserFreeAccess(email: String!, enabled: Boolean!): Boolean!
23389
23565
  runtimeTestEmail(to: String!): Boolean!
23390
23566
  runtimeUpdateNotification(id: String!, notification: NotificationInput!): Boolean!
23391
23567
  runtimeVerifyEmailCode(code: String!, email: String!, verificationType: String!): String!
@@ -23494,11 +23670,15 @@ type Query {
23494
23670
  perspectiveQuerySurrealDB(query: String!, uuid: String!): String!
23495
23671
  perspectiveSnapshot(uuid: String!): Perspective
23496
23672
  perspectives: [PerspectiveHandle!]!
23673
+ runtimeFreeHostingEnabled: Boolean!
23497
23674
  runtimeFriendStatus(did: String!): PerspectiveExpression
23498
23675
  runtimeFriends: [String!]!
23499
23676
  runtimeGetNetworkMetrics: String!
23500
23677
  runtimeHcAgentInfos: String!
23501
23678
  runtimeHostingUserInfo: HostingUserInfo!
23679
+ runtimeHotAgentPubkey: String!
23680
+ runtimeHotWalletBalance: String!
23681
+ runtimeHotWalletHistory(page: Float, perPage: Float): String!
23502
23682
  runtimeInfo: RuntimeInfo!
23503
23683
  runtimeKnownLinkLanguageTemplates: [String!]!
23504
23684
  runtimeListUsers: [UserStatistics!]!
@@ -23506,6 +23686,8 @@ type Query {
23506
23686
  runtimeMessageOutbox(filter: String): [SentMessage!]!
23507
23687
  runtimeMultiUserEnabled: Boolean!
23508
23688
  runtimeNotifications: [Notification!]!
23689
+ runtimeUnytAgentKey: String!
23690
+ runtimeUnytVersionInfo: String!
23509
23691
  runtimeVerifyStringSignedByDid(data: String!, did: String!, didSigningKeyId: String!, signedData: String!): Boolean!
23510
23692
  }
23511
23693
 
@@ -23581,8 +23763,11 @@ type UserCreationResult {
23581
23763
  type UserStatistics {
23582
23764
  did: String!
23583
23765
  email: String!
23766
+ freeAccess: Boolean!
23767
+ hotWalletAddress: String
23584
23768
  lastSeen: String
23585
23769
  perspectiveCount: Int!
23770
+ remainingCredits: String!
23586
23771
  }
23587
23772
 
23588
23773
  type VerificationRequestResult {
@@ -23877,6 +24062,18 @@ __decorate([
23877
24062
  Field(),
23878
24063
  __metadata("design:type", Number)
23879
24064
  ], exports.UserStatistics.prototype, "perspectiveCount", void 0);
24065
+ __decorate([
24066
+ Field(),
24067
+ __metadata("design:type", String)
24068
+ ], exports.UserStatistics.prototype, "remainingCredits", void 0);
24069
+ __decorate([
24070
+ Field(),
24071
+ __metadata("design:type", Boolean)
24072
+ ], exports.UserStatistics.prototype, "freeAccess", void 0);
24073
+ __decorate([
24074
+ Field(),
24075
+ __metadata("design:type", String)
24076
+ ], exports.UserStatistics.prototype, "hotWalletAddress", void 0);
23880
24077
  exports.UserStatistics = __decorate([
23881
24078
  ObjectType()
23882
24079
  ], exports.UserStatistics);
@@ -23902,10 +24099,11 @@ exports.VerificationRequestResult = __decorate([
23902
24099
  ObjectType()
23903
24100
  ], exports.VerificationRequestResult);
23904
24101
  exports.HostingUserInfo = class HostingUserInfo {
23905
- constructor(email, remainingCredits, hotWalletAddress) {
24102
+ constructor(email, remainingCredits, hotWalletAddress, freeAccess = false) {
23906
24103
  this.email = email;
23907
24104
  this.remainingCredits = remainingCredits;
23908
24105
  this.hotWalletAddress = hotWalletAddress;
24106
+ this.freeAccess = freeAccess;
23909
24107
  }
23910
24108
  };
23911
24109
  __decorate([
@@ -23920,9 +24118,13 @@ __decorate([
23920
24118
  Field(),
23921
24119
  __metadata("design:type", String)
23922
24120
  ], exports.HostingUserInfo.prototype, "hotWalletAddress", void 0);
24121
+ __decorate([
24122
+ Field(),
24123
+ __metadata("design:type", Boolean)
24124
+ ], exports.HostingUserInfo.prototype, "freeAccess", void 0);
23923
24125
  exports.HostingUserInfo = __decorate([
23924
24126
  ObjectType(),
23925
- __metadata("design:paramtypes", [String, String, String])
24127
+ __metadata("design:paramtypes", [String, String, String, Boolean])
23926
24128
  ], exports.HostingUserInfo);
23927
24129
  exports.PaymentRequestResult = class PaymentRequestResult {
23928
24130
  constructor(success, message) {
@@ -24097,12 +24299,20 @@ let RuntimeResolver = class RuntimeResolver {
24097
24299
  runtimeSetMultiUserEnabled(enabled) {
24098
24300
  return enabled;
24099
24301
  }
24302
+ runtimeFreeHostingEnabled() {
24303
+ return true;
24304
+ }
24305
+ runtimeSetFreeHostingEnabled(enabled) {
24306
+ return enabled;
24307
+ }
24100
24308
  runtimeListUsers() {
24101
24309
  return [{
24102
24310
  email: "test@example.com",
24103
24311
  did: "did:key:test123",
24104
24312
  lastSeen: new Date().toISOString(),
24105
- perspectiveCount: 5
24313
+ perspectiveCount: 5,
24314
+ remainingCredits: "0",
24315
+ freeAccess: false
24106
24316
  }];
24107
24317
  }
24108
24318
  runtimeRequestLoginVerification(email, appInfo) {
@@ -24152,7 +24362,7 @@ let RuntimeResolver = class RuntimeResolver {
24152
24362
  }
24153
24363
  // Hosting mutations & queries
24154
24364
  runtimeHostingUserInfo() {
24155
- return new exports.HostingUserInfo("test@example.com", "100000000", null);
24365
+ return new exports.HostingUserInfo("test@example.com", "100000000", null, false);
24156
24366
  }
24157
24367
  runtimeSetHotWalletAddress(address) {
24158
24368
  return true;
@@ -24160,6 +24370,36 @@ let RuntimeResolver = class RuntimeResolver {
24160
24370
  runtimeRequestPayment(amountHOT) {
24161
24371
  return new exports.PaymentRequestResult(true, "Mock payment of " + amountHOT + " base units credited");
24162
24372
  }
24373
+ runtimeSetUserCredits(email, amount) {
24374
+ return true;
24375
+ }
24376
+ runtimeSetUserFreeAccess(email, enabled) {
24377
+ return true;
24378
+ }
24379
+ runtimeReinstallUnytDna() {
24380
+ return new exports.PaymentRequestResult(true, "");
24381
+ }
24382
+ runtimeSendHot(recipient, amount) {
24383
+ return new exports.PaymentRequestResult(true, "");
24384
+ }
24385
+ runtimeSetUnytMembraneProof(proof) {
24386
+ return new exports.PaymentRequestResult(true, "");
24387
+ }
24388
+ runtimeHotWalletBalance() {
24389
+ return "";
24390
+ }
24391
+ runtimeHotWalletHistory(page, perPage) {
24392
+ return "";
24393
+ }
24394
+ runtimeHotAgentPubkey() {
24395
+ return "";
24396
+ }
24397
+ runtimeUnytAgentKey() {
24398
+ return "";
24399
+ }
24400
+ runtimeUnytVersionInfo() {
24401
+ return "";
24402
+ }
24163
24403
  };
24164
24404
  __decorate([
24165
24405
  Mutation(),
@@ -24406,6 +24646,19 @@ __decorate([
24406
24646
  __metadata("design:paramtypes", [Boolean]),
24407
24647
  __metadata("design:returntype", Boolean)
24408
24648
  ], RuntimeResolver.prototype, "runtimeSetMultiUserEnabled", null);
24649
+ __decorate([
24650
+ Query(),
24651
+ __metadata("design:type", Function),
24652
+ __metadata("design:paramtypes", []),
24653
+ __metadata("design:returntype", Boolean)
24654
+ ], RuntimeResolver.prototype, "runtimeFreeHostingEnabled", null);
24655
+ __decorate([
24656
+ Mutation(),
24657
+ __param(0, Arg()),
24658
+ __metadata("design:type", Function),
24659
+ __metadata("design:paramtypes", [Boolean]),
24660
+ __metadata("design:returntype", Boolean)
24661
+ ], RuntimeResolver.prototype, "runtimeSetFreeHostingEnabled", null);
24409
24662
  __decorate([
24410
24663
  Query(),
24411
24664
  __metadata("design:type", Function),
@@ -24507,6 +24760,75 @@ __decorate([
24507
24760
  __metadata("design:paramtypes", [String]),
24508
24761
  __metadata("design:returntype", exports.PaymentRequestResult)
24509
24762
  ], RuntimeResolver.prototype, "runtimeRequestPayment", null);
24763
+ __decorate([
24764
+ Mutation(),
24765
+ __param(0, Arg()),
24766
+ __param(1, Arg()),
24767
+ __metadata("design:type", Function),
24768
+ __metadata("design:paramtypes", [String, Number]),
24769
+ __metadata("design:returntype", Boolean)
24770
+ ], RuntimeResolver.prototype, "runtimeSetUserCredits", null);
24771
+ __decorate([
24772
+ Mutation(),
24773
+ __param(0, Arg()),
24774
+ __param(1, Arg()),
24775
+ __metadata("design:type", Function),
24776
+ __metadata("design:paramtypes", [String, Boolean]),
24777
+ __metadata("design:returntype", Boolean)
24778
+ ], RuntimeResolver.prototype, "runtimeSetUserFreeAccess", null);
24779
+ __decorate([
24780
+ Mutation(),
24781
+ __metadata("design:type", Function),
24782
+ __metadata("design:paramtypes", []),
24783
+ __metadata("design:returntype", exports.PaymentRequestResult)
24784
+ ], RuntimeResolver.prototype, "runtimeReinstallUnytDna", null);
24785
+ __decorate([
24786
+ Mutation(),
24787
+ __param(0, Arg()),
24788
+ __param(1, Arg()),
24789
+ __metadata("design:type", Function),
24790
+ __metadata("design:paramtypes", [String, String]),
24791
+ __metadata("design:returntype", exports.PaymentRequestResult)
24792
+ ], RuntimeResolver.prototype, "runtimeSendHot", null);
24793
+ __decorate([
24794
+ Mutation(),
24795
+ __param(0, Arg()),
24796
+ __metadata("design:type", Function),
24797
+ __metadata("design:paramtypes", [String]),
24798
+ __metadata("design:returntype", exports.PaymentRequestResult)
24799
+ ], RuntimeResolver.prototype, "runtimeSetUnytMembraneProof", null);
24800
+ __decorate([
24801
+ Query(),
24802
+ __metadata("design:type", Function),
24803
+ __metadata("design:paramtypes", []),
24804
+ __metadata("design:returntype", String)
24805
+ ], RuntimeResolver.prototype, "runtimeHotWalletBalance", null);
24806
+ __decorate([
24807
+ Query(),
24808
+ __param(0, Arg()),
24809
+ __param(1, Arg()),
24810
+ __metadata("design:type", Function),
24811
+ __metadata("design:paramtypes", [Number, Number]),
24812
+ __metadata("design:returntype", String)
24813
+ ], RuntimeResolver.prototype, "runtimeHotWalletHistory", null);
24814
+ __decorate([
24815
+ Query(),
24816
+ __metadata("design:type", Function),
24817
+ __metadata("design:paramtypes", []),
24818
+ __metadata("design:returntype", String)
24819
+ ], RuntimeResolver.prototype, "runtimeHotAgentPubkey", null);
24820
+ __decorate([
24821
+ Query(),
24822
+ __metadata("design:type", Function),
24823
+ __metadata("design:paramtypes", []),
24824
+ __metadata("design:returntype", String)
24825
+ ], RuntimeResolver.prototype, "runtimeUnytAgentKey", null);
24826
+ __decorate([
24827
+ Query(),
24828
+ __metadata("design:type", Function),
24829
+ __metadata("design:paramtypes", []),
24830
+ __metadata("design:returntype", String)
24831
+ ], RuntimeResolver.prototype, "runtimeUnytVersionInfo", null);
24510
24832
  RuntimeResolver = __decorate([
24511
24833
  Resolver()
24512
24834
  ], RuntimeResolver);