@@ -4,3 +4,62 @@ sidebarTitle: "Overview"
44description : " Learn how to use the Modus AssemblyScript SDK"
55icon : " circle-info"
66---
7+
8+ import SdkOverviewIntro from " /snippets/sdk-overview-intro.mdx"
9+
10+ <SdkOverviewIntro language = " AssemblyScript" />
11+
12+ ## Importing the APIs
13+
14+ The Modus AssemblyScript SDK organizes its APIs into namespaces based on their
15+ purpose. In your AssemblyScript code, you can import each namespace you'd like
16+ to use like this:
17+
18+ ``` ts
19+ import { <namespace > } from " @hypermode/modus-sdk-as"
20+ ```
21+
22+ ## Available APIs
23+
24+ import SdkTip from " /snippets/sdk-tip.mdx"
25+
26+ <SdkTip />
27+
28+ The following namespaces are available. They're grouped into categories below
29+ for your convenience. Click on a namespace to view more information about its
30+ APIs.
31+
32+ ### Client APIs
33+
34+ | Namespace | Purpose |
35+ | :--------------------- | :--------------------------------------------------------------------------------- |
36+ | [ ` http ` ] ( ./http ) | Provides access to external HTTP endpoints, including REST APIs and other services |
37+ | [ ` graphql ` ] ( ./graphql ) | Allows you to securely call and fetch data from any GraphQL endpoint |
38+
39+ ### Database APIs
40+
41+ | Namespace | Purpose |
42+ | :--------------------------- | :---------------------------------------------- |
43+ | [ ` dgraph ` ] ( ./dgraph ) | Access and modify data in a Dgraph database |
44+ | [ ` mysql ` ] ( ./mysql ) | Access and modify data in a MySQL database |
45+ | [ ` neo4j ` ] ( ./neo4j ) | Access and modify data in a Neo4j database |
46+ | [ ` postgresql ` ] ( ./postgresql ) | Access and modify data in a PostgreSQL database |
47+
48+ ### Inference APIs
49+
50+ | Namespace | Purpose |
51+ | :------------------- | :--------------------------------------------------------------------------------------------- |
52+ | [ ` models ` ] ( ./models ) | Invoke AI models, including large language models, embedding models, and classification models |
53+
54+ ### Storage APIs
55+
56+ | Namespace | Purpose |
57+ | :----------------------------- | :--------------------------------------------------------- |
58+ | [ ` collections ` ] ( ./collections ) | Provides integrated storage and vector search capabilities |
59+
60+ ### System APIs
61+
62+ | Namespace | Purpose |
63+ | :------------------------- | :------------------------------------------------------- |
64+ | [ ` console ` ] ( ./console ) | Provides logging, assertion, and timing functions |
65+ | [ ` localtime ` ] ( ./localtime ) | Allows you to access the user's local time and time zone |
0 commit comments