@getmodus/sdk 0.4.0 → 0.6.0

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/dist/index.cjs CHANGED
@@ -85,6 +85,66 @@ var OPERATIONS = {
85
85
  requestSchema: "CreateSavedQueryDto",
86
86
  responseSchema: "CreatedContextItemResponseDto"
87
87
  },
88
+ "ContextFilesController_get": {
89
+ method: "GET",
90
+ path: "/api/v1/context/files/{uploadId}",
91
+ service: "modus-api",
92
+ serverUrl: "https://api.getmodus.com",
93
+ pathParams: ["uploadId"],
94
+ queryParams: [],
95
+ requestSchema: null,
96
+ responseSchema: "FileUploadResourceDto"
97
+ },
98
+ "ContextFilesController_list": {
99
+ method: "GET",
100
+ path: "/api/v1/context/files",
101
+ service: "modus-api",
102
+ serverUrl: "https://api.getmodus.com",
103
+ pathParams: [],
104
+ queryParams: ["pageToken", "pageSize"],
105
+ requestSchema: null,
106
+ responseSchema: "ListFilesResponseDto"
107
+ },
108
+ "ContextFilesController_uploadFromUrl": {
109
+ method: "POST",
110
+ path: "/api/v1/context/files/uploadFromUrl",
111
+ service: "modus-api",
112
+ serverUrl: "https://api.getmodus.com",
113
+ pathParams: [],
114
+ queryParams: [],
115
+ requestSchema: "UploadFromUrlDto",
116
+ responseSchema: "FileUploadResourceDto"
117
+ },
118
+ "ContextFilesController_uploadFromUrls": {
119
+ method: "POST",
120
+ path: "/api/v1/context/files/uploadFromUrls",
121
+ service: "modus-api",
122
+ serverUrl: "https://api.getmodus.com",
123
+ pathParams: [],
124
+ queryParams: [],
125
+ requestSchema: "BulkUploadFromUrlsDto",
126
+ responseSchema: "BulkUploadFromUrlsResponseDto"
127
+ },
128
+ "ContextFilesController_uploadUrl": {
129
+ method: "POST",
130
+ path: "/api/v1/context/files/uploadUrl",
131
+ service: "modus-api",
132
+ serverUrl: "https://api.getmodus.com",
133
+ pathParams: [],
134
+ queryParams: [],
135
+ requestSchema: "UploadUrlDto",
136
+ responseSchema: "UploadUrlResponseDto"
137
+ },
138
+ "ContextFilesController_uploadUrls": {
139
+ method: "POST",
140
+ path: "/api/v1/context/files/uploadUrls",
141
+ service: "modus-api",
142
+ serverUrl: "https://api.getmodus.com",
143
+ pathParams: [],
144
+ queryParams: [],
145
+ requestSchema: "BulkUploadUrlsDto",
146
+ responseSchema: "BulkUploadUrlsResponseDto"
147
+ },
88
148
  "ContextItemsController_delete": {
89
149
  method: "DELETE",
90
150
  path: "/api/v1/context/items/{uid}",
@@ -311,7 +371,7 @@ var OPERATIONS = {
311
371
  service: "modus-api",
312
372
  serverUrl: "https://api.getmodus.com",
313
373
  pathParams: [],
314
- queryParams: ["pageToken", "page", "pageSize", "userId", "toolName", "timeframe", "includeTools", "kind"],
374
+ queryParams: ["pageToken", "page", "pageSize", "userId", "toolName", "source", "timeframe", "includeTools", "kind"],
315
375
  requestSchema: null,
316
376
  responseSchema: "ListConversationsResponseDto"
317
377
  },
@@ -461,7 +521,7 @@ var OPERATIONS = {
461
521
  service: "modus-api",
462
522
  serverUrl: "https://api.getmodus.com",
463
523
  pathParams: ["id"],
464
- queryParams: ["pageToken", "page", "pageSize", "userId", "toolName", "timeframe", "includeTools"],
524
+ queryParams: ["pageToken", "page", "pageSize", "userId", "toolName", "source", "timeframe", "includeTools"],
465
525
  requestSchema: null,
466
526
  responseSchema: "ListConversationsResponseDto"
467
527
  },
@@ -1105,6 +1165,10 @@ var WRITE_BODY_ALLOWED_KEYS = {
1105
1165
  ContextCreatorsController_createLink: ["url", "title", "isCrawl", "pageLimit"],
1106
1166
  ContextCreatorsController_createNote: ["title", "content"],
1107
1167
  ContextCreatorsController_createSavedQuery: ["name", "connectionId", "query", "description", "path"],
1168
+ ContextFilesController_uploadFromUrl: ["url", "fileName"],
1169
+ ContextFilesController_uploadFromUrls: ["urls"],
1170
+ ContextFilesController_uploadUrl: ["fileName", "contentType", "fileSize"],
1171
+ ContextFilesController_uploadUrls: ["files"],
1108
1172
  ContextItemsController_lookup: ["contextType", "dataPath", "contentProjection"],
1109
1173
  ContextItemsController_update: ["contextType", "content", "description", "userFeedback", "topics"],
1110
1174
  CustomContextItemsController_batchCreate: ["items"],
@@ -1176,6 +1240,8 @@ var ALLOWED_CHAT_MODELS = /* @__PURE__ */ new Set([
1176
1240
  "qwen3-coder",
1177
1241
  "qwen3-32b",
1178
1242
  "deepseek-chat-v3.1",
1243
+ "deepseek-v4-pro",
1244
+ "deepseek-v4-flash-latest",
1179
1245
  "minimax-m2.7",
1180
1246
  "llama-4-maverick",
1181
1247
  "llama-4-scout",
@@ -1599,7 +1665,7 @@ function formatConfigForLog(config) {
1599
1665
  }
1600
1666
 
1601
1667
  // src/_http.ts
1602
- var USER_AGENT = `modus-typescript/${"0.4.0"} (node/${process.version}; ${process.platform})`;
1668
+ var USER_AGENT = `modus-typescript/${"0.6.0"} (node/${process.version}; ${process.platform})`;
1603
1669
  function buildUrl(baseUrl, path, params) {
1604
1670
  const url = new URL(path.startsWith("/") ? path : `/${path}`, baseUrl);
1605
1671
  if (params) {