@anuma/sdk 6.19.1 → 6.19.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -823,6 +823,7 @@ var client = createClient(createClientConfig(createConfig()));
823
823
  var getWellKnownJwksJson = (options) => (options?.client ?? client).get({ url: "/.well-known/jwks.json", ...options });
824
824
  var getAdminReferralGrantsStats = (options) => (options?.client ?? client).get({ url: "/admin/referral-grants/stats", ...options });
825
825
  var deleteApiV1Account = (options) => (options?.client ?? client).delete({ url: "/api/v1/account", ...options });
826
+ var postApiV1AccountVerifyChallenge = (options) => (options?.client ?? client).post({ url: "/api/v1/account/verify-challenge", ...options });
826
827
  var postApiV1AdminAddCredits = (options) => (options.client ?? client).post({
827
828
  url: "/api/v1/admin/add-credits",
828
829
  ...options,
@@ -906,6 +907,34 @@ var putApiV1AdminConnectorsByProvider = (options) => (options.client ?? client).
906
907
  ...options.headers
907
908
  }
908
909
  });
910
+ var getApiV1AdminModerationCsam = (options) => (options.client ?? client).get({ url: "/api/v1/admin/moderation/csam", ...options });
911
+ var getApiV1AdminModerationCsamByIdHistory = (options) => (options.client ?? client).get({ url: "/api/v1/admin/moderation/csam/{id}/history", ...options });
912
+ var putApiV1AdminModerationCsamByIdReview = (options) => (options.client ?? client).put({
913
+ url: "/api/v1/admin/moderation/csam/{id}/review",
914
+ ...options,
915
+ headers: {
916
+ "Content-Type": "application/json",
917
+ ...options.headers
918
+ }
919
+ });
920
+ var getApiV1AdminNearbyAccessCodes = (options) => (options.client ?? client).get({ url: "/api/v1/admin/nearby/access-codes", ...options });
921
+ var postApiV1AdminNearbyAccessCodes = (options) => (options.client ?? client).post({
922
+ url: "/api/v1/admin/nearby/access-codes",
923
+ ...options,
924
+ headers: {
925
+ "Content-Type": "application/json",
926
+ ...options.headers
927
+ }
928
+ });
929
+ var postApiV1AdminNearbyAccessCodesRevoke = (options) => (options.client ?? client).post({
930
+ url: "/api/v1/admin/nearby/access-codes/revoke",
931
+ ...options,
932
+ headers: {
933
+ "Content-Type": "application/json",
934
+ ...options.headers
935
+ }
936
+ });
937
+ var getApiV1AdminNearbyMeetupsById = (options) => (options.client ?? client).get({ url: "/api/v1/admin/nearby/meetups/{id}", ...options });
909
938
  var postApiV1AdminNotificationsAnnounceModel = (options) => (options.client ?? client).post({
910
939
  url: "/api/v1/admin/notifications/announce-model",
911
940
  ...options,
@@ -1017,6 +1046,14 @@ var postApiV1AdminUsersInternalTester = (options) => (options.client ?? client).
1017
1046
  }
1018
1047
  });
1019
1048
  var getApiV1AdminUsersLookup = (options) => (options.client ?? client).get({ url: "/api/v1/admin/users/lookup", ...options });
1049
+ var postApiV1AdminUsersNearbyBeta = (options) => (options.client ?? client).post({
1050
+ url: "/api/v1/admin/users/nearby-beta",
1051
+ ...options,
1052
+ headers: {
1053
+ "Content-Type": "application/json",
1054
+ ...options.headers
1055
+ }
1056
+ });
1020
1057
  var postApiV1AdminUsersSuspend = (options) => (options.client ?? client).post({
1021
1058
  url: "/api/v1/admin/users/suspend",
1022
1059
  ...options,
@@ -1261,14 +1298,6 @@ var postApiV1GuestChatCompletions = (options) => (options.client ?? client).post
1261
1298
  var getApiV1Me = (options) => (options?.client ?? client).get({ url: "/api/v1/me", ...options });
1262
1299
  var getApiV1MediaSharedBySlug = (options) => (options.client ?? client).get({ url: "/api/v1/media/shared/{slug}", ...options });
1263
1300
  var getApiV1Models = (options) => (options?.client ?? client).get({ url: "/api/v1/models", ...options });
1264
- var postApiV1Moderate = (options) => (options.client ?? client).post({
1265
- url: "/api/v1/moderate",
1266
- ...options,
1267
- headers: {
1268
- "Content-Type": "application/json",
1269
- ...options.headers
1270
- }
1271
- });
1272
1301
  var postApiV1NotificationsDevices = (options) => (options.client ?? client).post({
1273
1302
  url: "/api/v1/notifications/devices",
1274
1303
  ...options,
@@ -1525,6 +1554,14 @@ var postInternalComplete = (options) => (options.client ?? client).post({
1525
1554
  ...options.headers
1526
1555
  }
1527
1556
  });
1557
+ var postInternalDmRequests = (options) => (options.client ?? client).post({
1558
+ url: "/internal/dm/requests",
1559
+ ...options,
1560
+ headers: {
1561
+ "Content-Type": "application/json",
1562
+ ...options.headers
1563
+ }
1564
+ });
1528
1565
  var postInternalEmbeddings = (options) => (options.client ?? client).post({
1529
1566
  url: "/internal/embeddings",
1530
1567
  ...options,
@@ -1541,8 +1578,8 @@ var postInternalExtractPhotoFacts = (options) => (options.client ?? client).post
1541
1578
  ...options.headers
1542
1579
  }
1543
1580
  });
1544
- var postInternalModerate = (options) => (options.client ?? client).post({
1545
- url: "/internal/moderate",
1581
+ var postInternalMeetupsJoins = (options) => (options.client ?? client).post({
1582
+ url: "/internal/meetups/joins",
1546
1583
  ...options,
1547
1584
  headers: {
1548
1585
  "Content-Type": "application/json",
@@ -1565,6 +1602,15 @@ var postInternalPrefineryClaimTokens = (options) => (options.client ?? client).p
1565
1602
  ...options.headers
1566
1603
  }
1567
1604
  });
1605
+ var getNearbyAccess = (options) => (options?.client ?? client).get({ url: "/nearby/access", ...options });
1606
+ var postNearbyAccessCode = (options) => (options.client ?? client).post({
1607
+ url: "/nearby/access-code",
1608
+ ...options,
1609
+ headers: {
1610
+ "Content-Type": "application/json",
1611
+ ...options.headers
1612
+ }
1613
+ });
1568
1614
  var postNearbyWaitlist = (options) => (options.client ?? client).post({
1569
1615
  url: "/nearby/waitlist",
1570
1616
  ...options,
@@ -1620,6 +1666,7 @@ var postReferralInvite = (options) => (options.client ?? client).post({
1620
1666
  }
1621
1667
  });
1622
1668
  var getReferralMe = (options) => (options?.client ?? client).get({ url: "/referral/me", ...options });
1669
+ var getReferralRewards = (options) => (options?.client ?? client).get({ url: "/referral/rewards", ...options });
1623
1670
  var postWebhooksPrefinery = (options) => (options?.client ?? client).post({
1624
1671
  url: "/webhooks/prefinery",
1625
1672
  ...options,
@@ -1654,6 +1701,10 @@ export {
1654
1701
  getApiV1AdminAppsById,
1655
1702
  getApiV1AdminBotStatus,
1656
1703
  getApiV1AdminConnectors,
1704
+ getApiV1AdminModerationCsam,
1705
+ getApiV1AdminModerationCsamByIdHistory,
1706
+ getApiV1AdminNearbyAccessCodes,
1707
+ getApiV1AdminNearbyMeetupsById,
1657
1708
  getApiV1AdminNotificationsCampaigns,
1658
1709
  getApiV1AdminNotificationsCampaignsByCampaignId,
1659
1710
  getApiV1AdminOauthClients,
@@ -1710,21 +1761,26 @@ export {
1710
1761
  getConnectorsByProviderConnect,
1711
1762
  getHealth,
1712
1763
  getInternalAccountsByDidByDid,
1764
+ getNearbyAccess,
1713
1765
  getOauthAuthorize,
1714
1766
  getOauthConsent,
1715
1767
  getReferralMe,
1768
+ getReferralRewards,
1716
1769
  getWellKnownJwksJson,
1717
1770
  patchApiV1AdminNotificationsCampaignsByCampaignId,
1718
1771
  patchApiV1AdminOauthClientsByClientId,
1719
1772
  patchApiV1DeveloperAppsByAppUuid,
1720
1773
  patchApiV1DeveloperAppsByAppUuidUsersByAddress,
1721
1774
  patchApiV1UserOauthGrantsById,
1775
+ postApiV1AccountVerifyChallenge,
1722
1776
  postApiV1AdminAddCredits,
1723
1777
  postApiV1AdminAgents,
1724
1778
  postApiV1AdminApps,
1725
1779
  postApiV1AdminAppsByAppIdApiKeys,
1726
1780
  postApiV1AdminBotPollerStart,
1727
1781
  postApiV1AdminBotPollerStop,
1782
+ postApiV1AdminNearbyAccessCodes,
1783
+ postApiV1AdminNearbyAccessCodesRevoke,
1728
1784
  postApiV1AdminNotificationsAnnounceModel,
1729
1785
  postApiV1AdminNotificationsCampaigns,
1730
1786
  postApiV1AdminNotificationsCampaignsByCampaignIdCancel,
@@ -1737,6 +1793,7 @@ export {
1737
1793
  postApiV1AdminSeedApps,
1738
1794
  postApiV1AdminSubscriptionTier,
1739
1795
  postApiV1AdminUsersInternalTester,
1796
+ postApiV1AdminUsersNearbyBeta,
1740
1797
  postApiV1AdminUsersSuspend,
1741
1798
  postApiV1AdminUsersUnsuspend,
1742
1799
  postApiV1AuthMfaDisable,
@@ -1764,7 +1821,6 @@ export {
1764
1821
  postApiV1DeveloperAppsByAppUuidUsersByAddressTopUp,
1765
1822
  postApiV1Embeddings,
1766
1823
  postApiV1GuestChatCompletions,
1767
- postApiV1Moderate,
1768
1824
  postApiV1NotificationsDevices,
1769
1825
  postApiV1NotificationsDevicesUnregister,
1770
1826
  postApiV1PhoneCalls,
@@ -1795,11 +1851,13 @@ export {
1795
1851
  postAuthOauthByProviderRevoke,
1796
1852
  postInternalAccountsByPhoneHashes,
1797
1853
  postInternalComplete,
1854
+ postInternalDmRequests,
1798
1855
  postInternalEmbeddings,
1799
1856
  postInternalExtractPhotoFacts,
1800
- postInternalModerate,
1857
+ postInternalMeetupsJoins,
1801
1858
  postInternalNearbyActivations,
1802
1859
  postInternalPrefineryClaimTokens,
1860
+ postNearbyAccessCode,
1803
1861
  postNearbyWaitlist,
1804
1862
  postOauthConsent,
1805
1863
  postOauthRevoke,
@@ -1813,6 +1871,7 @@ export {
1813
1871
  putApiV1AdminAppsById,
1814
1872
  putApiV1AdminBotConfig,
1815
1873
  putApiV1AdminConnectorsByProvider,
1874
+ putApiV1AdminModerationCsamByIdReview,
1816
1875
  putApiV1AdminPersonasById,
1817
1876
  putApiV1AgentsByIdPreference,
1818
1877
  putApiV1ConnectorsByProviderScopes,
@@ -6912,7 +6912,7 @@ function createMemoryVaultSearchTool(vaultCtx, embeddingOptions, cache, searchOp
6912
6912
  subQueries = decomp.subQueries;
6913
6913
  }
6914
6914
  }
6915
- const { recall: recall2 } = await import("./recall-PI7FZQNO.mjs");
6915
+ const { recall: recall2 } = await import("./recall-SCMH2R24.mjs");
6916
6916
  let recallDegraded = [];
6917
6917
  const result = await recall2(
6918
6918
  query,
@@ -133,7 +133,7 @@ import {
133
133
  upsertMessageOp,
134
134
  useEncryption,
135
135
  vaultMemoryToStored
136
- } from "./chunk-GRU24OP4.mjs";
136
+ } from "./chunk-7HRJOHW4.mjs";
137
137
  import {
138
138
  PII_PATTERNS,
139
139
  PiiRedactor,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  recall
3
- } from "./chunk-GRU24OP4.mjs";
3
+ } from "./chunk-7HRJOHW4.mjs";
4
4
  import "./chunk-WUG6GTHO.mjs";
5
5
  import "./chunk-GYKJOWEO.mjs";
6
6
  export {
package/dist/index.d.mts CHANGED
@@ -4453,6 +4453,10 @@ type GetApiV1AdminUsersLookupData = {
4453
4453
  * Email address (requires Privy credentials)
4454
4454
  */
4455
4455
  email?: string;
4456
+ /**
4457
+ * Portal account id
4458
+ */
4459
+ account_id?: number;
4456
4460
  };
4457
4461
  url: '/api/v1/admin/users/lookup';
4458
4462
  };
@@ -4639,6 +4643,10 @@ type PostApiV1ChatCompletionsErrors = {
4639
4643
  * Model provider rate limit exceeded
4640
4644
  */
4641
4645
  429: ResponseErrorResponse;
4646
+ /**
4647
+ * Client closed the request before a response was produced
4648
+ */
4649
+ 499: ResponseErrorResponse;
4642
4650
  /**
4643
4651
  * Internal Server Error
4644
4652
  */
@@ -5619,6 +5627,10 @@ type PostApiV1EmbeddingsErrors = {
5619
5627
  * Model provider rate limit exceeded
5620
5628
  */
5621
5629
  429: ResponseErrorResponse;
5630
+ /**
5631
+ * Client closed the request before a response was produced
5632
+ */
5633
+ 499: ResponseErrorResponse;
5622
5634
  /**
5623
5635
  * Internal Server Error
5624
5636
  */
@@ -5838,6 +5850,10 @@ type PostApiV1ResponsesErrors = {
5838
5850
  * Model provider rate limit exceeded
5839
5851
  */
5840
5852
  429: ResponseErrorResponse;
5853
+ /**
5854
+ * Client closed the request before a response was produced
5855
+ */
5856
+ 499: ResponseErrorResponse;
5841
5857
  /**
5842
5858
  * Internal Server Error
5843
5859
  */
@@ -6760,7 +6776,7 @@ declare const deleteApiV1AdminTextReset: <ThrowOnError extends boolean = false>(
6760
6776
  /**
6761
6777
  * Lookup user by identifier
6762
6778
  *
6763
- * Retrieves account details, all app enrollments with balances, and text registrations. Accepts wallet_address, phone, telegram, or email (exactly one required). When the identifier resolves to a Privy user that has no portal account (e.g. a Privy signup that never onboarded), returns 200 with account=null, portal_account_exists=false, and a privy block describing the Privy identity, instead of 404 — so an operator can still see (and delete) the Privy user.
6779
+ * Retrieves account details, all app enrollments with balances, and text registrations. Accepts wallet_address, phone, telegram, email or account_id (exactly one required). The response's privy block carries the email, resolved from the account's Privy DID when the query itself did not go through Privy. When the identifier resolves to a Privy user that has no portal account (e.g. a Privy signup that never onboarded), returns 200 with account=null, portal_account_exists=false, and a privy block describing the Privy identity, instead of 404 — so an operator can still see (and delete) the Privy user.
6764
6780
  */
6765
6781
  declare const getApiV1AdminUsersLookup: <ThrowOnError extends boolean = false>(options: Options<GetApiV1AdminUsersLookupData, ThrowOnError>) => RequestResult<GetApiV1AdminUsersLookupResponses, GetApiV1AdminUsersLookupErrors, ThrowOnError>;
6766
6782
  /**
package/dist/index.d.ts CHANGED
@@ -4453,6 +4453,10 @@ type GetApiV1AdminUsersLookupData = {
4453
4453
  * Email address (requires Privy credentials)
4454
4454
  */
4455
4455
  email?: string;
4456
+ /**
4457
+ * Portal account id
4458
+ */
4459
+ account_id?: number;
4456
4460
  };
4457
4461
  url: '/api/v1/admin/users/lookup';
4458
4462
  };
@@ -4639,6 +4643,10 @@ type PostApiV1ChatCompletionsErrors = {
4639
4643
  * Model provider rate limit exceeded
4640
4644
  */
4641
4645
  429: ResponseErrorResponse;
4646
+ /**
4647
+ * Client closed the request before a response was produced
4648
+ */
4649
+ 499: ResponseErrorResponse;
4642
4650
  /**
4643
4651
  * Internal Server Error
4644
4652
  */
@@ -5619,6 +5627,10 @@ type PostApiV1EmbeddingsErrors = {
5619
5627
  * Model provider rate limit exceeded
5620
5628
  */
5621
5629
  429: ResponseErrorResponse;
5630
+ /**
5631
+ * Client closed the request before a response was produced
5632
+ */
5633
+ 499: ResponseErrorResponse;
5622
5634
  /**
5623
5635
  * Internal Server Error
5624
5636
  */
@@ -5838,6 +5850,10 @@ type PostApiV1ResponsesErrors = {
5838
5850
  * Model provider rate limit exceeded
5839
5851
  */
5840
5852
  429: ResponseErrorResponse;
5853
+ /**
5854
+ * Client closed the request before a response was produced
5855
+ */
5856
+ 499: ResponseErrorResponse;
5841
5857
  /**
5842
5858
  * Internal Server Error
5843
5859
  */
@@ -6760,7 +6776,7 @@ declare const deleteApiV1AdminTextReset: <ThrowOnError extends boolean = false>(
6760
6776
  /**
6761
6777
  * Lookup user by identifier
6762
6778
  *
6763
- * Retrieves account details, all app enrollments with balances, and text registrations. Accepts wallet_address, phone, telegram, or email (exactly one required). When the identifier resolves to a Privy user that has no portal account (e.g. a Privy signup that never onboarded), returns 200 with account=null, portal_account_exists=false, and a privy block describing the Privy identity, instead of 404 — so an operator can still see (and delete) the Privy user.
6779
+ * Retrieves account details, all app enrollments with balances, and text registrations. Accepts wallet_address, phone, telegram, email or account_id (exactly one required). The response's privy block carries the email, resolved from the account's Privy DID when the query itself did not go through Privy. When the identifier resolves to a Privy user that has no portal account (e.g. a Privy signup that never onboarded), returns 200 with account=null, portal_account_exists=false, and a privy block describing the Privy identity, instead of 404 — so an operator can still see (and delete) the Privy user.
6764
6780
  */
6765
6781
  declare const getApiV1AdminUsersLookup: <ThrowOnError extends boolean = false>(options: Options<GetApiV1AdminUsersLookupData, ThrowOnError>) => RequestResult<GetApiV1AdminUsersLookupResponses, GetApiV1AdminUsersLookupErrors, ThrowOnError>;
6766
6782
  /**
@@ -7196,7 +7196,7 @@ function createMemoryVaultSearchTool(vaultCtx, embeddingOptions, cache, searchOp
7196
7196
  subQueries = decomp.subQueries;
7197
7197
  }
7198
7198
  }
7199
- const { recall: recall2 } = await import("./recall-D6ODL36R.mjs");
7199
+ const { recall: recall2 } = await import("./recall-B3M4BWQ2.mjs");
7200
7200
  let recallDegraded = [];
7201
7201
  const result = await recall2(
7202
7202
  query,
@@ -179,7 +179,7 @@ import {
179
179
  updateVaultMemoryOp,
180
180
  useEncryption,
181
181
  vaultMemoryToStored
182
- } from "./chunk-2EEPAOHJ.mjs";
182
+ } from "./chunk-M53NXLZS.mjs";
183
183
  import {
184
184
  PiiRedactor,
185
185
  createStreamingDeAnonymizer,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  recall
3
- } from "./chunk-2EEPAOHJ.mjs";
3
+ } from "./chunk-M53NXLZS.mjs";
4
4
  import "./chunk-WUG6GTHO.mjs";
5
5
  import "./chunk-GYKJOWEO.mjs";
6
6
  export {
@@ -20927,7 +20927,7 @@ function createMemoryVaultSearchTool(vaultCtx, embeddingOptions, cache, searchOp
20927
20927
  subQueries = decomp.subQueries;
20928
20928
  }
20929
20929
  }
20930
- const { recall: recall2 } = await import("./recall-NLCZUGXN.mjs");
20930
+ const { recall: recall2 } = await import("./recall-M3KBKU74.mjs");
20931
20931
  let recallDegraded = [];
20932
20932
  const result = await recall2(
20933
20933
  query,
@@ -141,7 +141,7 @@ import {
141
141
  updateVaultMemoryOp,
142
142
  upsertMessageOp,
143
143
  vaultMemoryToStored
144
- } from "./chunk-SPHKT76E.mjs";
144
+ } from "./chunk-X5EZQFGR.mjs";
145
145
  import {
146
146
  createStreamingDeAnonymizer,
147
147
  notifyConsolidationFallback,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  recall
3
- } from "./chunk-SPHKT76E.mjs";
3
+ } from "./chunk-X5EZQFGR.mjs";
4
4
  import "./chunk-YXL5VKCO.mjs";
5
5
  import "./chunk-3RPGXXPZ.mjs";
6
6
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anuma/sdk",
3
- "version": "6.19.1",
3
+ "version": "6.19.2",
4
4
  "description": "",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",
@@ -166,7 +166,7 @@
166
166
  "homepage": "https://github.com/anuma-ai/sdk#readme",
167
167
  "packageManager": "pnpm@10.23.0",
168
168
  "dependencies": {
169
- "@anuma/portal": "1.0.0-next.20260815023541",
169
+ "@anuma/portal": "1.0.0-next.20260901170209",
170
170
  "@babel/parser": "^7.29.2",
171
171
  "@babel/types": "^7.29.0",
172
172
  "ai": "6.0.202",