@superatomai/sdk-node 0.0.36 → 0.0.38

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.mjs CHANGED
@@ -1984,6 +1984,7 @@ var DashboardsRequestPayloadSchema = z3.object({
1984
1984
  published: z3.boolean().optional(),
1985
1985
  createdBy: z3.number().optional(),
1986
1986
  updatedBy: z3.number().optional(),
1987
+ allowedUsers: z3.array(z3.number()).optional(),
1987
1988
  dashboard: DSLRendererPropsSchema.optional(),
1988
1989
  // Query operation fields
1989
1990
  filters: DashboardQueryFiltersSchema.optional(),
@@ -4680,7 +4681,7 @@ ${JSON.stringify(tool.requiredFields || [], null, 2)}`;
4680
4681
  },
4681
4682
  {
4682
4683
  model: this.model,
4683
- maxTokens: 3e3,
4684
+ maxTokens: 4096,
4684
4685
  temperature: 0.2,
4685
4686
  apiKey: this.getApiKey(apiKey),
4686
4687
  partial: partialCallback
@@ -4803,7 +4804,7 @@ ${JSON.stringify(tool.requiredFields || [], null, 2)}`;
4803
4804
  },
4804
4805
  {
4805
4806
  model: this.model,
4806
- maxTokens: 1e3,
4807
+ maxTokens: 1500,
4807
4808
  temperature: 0.2,
4808
4809
  apiKey: this.getApiKey(apiKey)
4809
4810
  },
@@ -4864,7 +4865,7 @@ ${JSON.stringify(tool.requiredFields || [], null, 2)}`;
4864
4865
  },
4865
4866
  {
4866
4867
  model: this.model,
4867
- maxTokens: 2e3,
4868
+ maxTokens: 3e3,
4868
4869
  temperature: 0.2,
4869
4870
  apiKey: this.getApiKey(apiKey)
4870
4871
  },
@@ -5707,7 +5708,7 @@ ${errorMsg}
5707
5708
  },
5708
5709
  {
5709
5710
  model: this.model,
5710
- maxTokens: 800,
5711
+ maxTokens: 1200,
5711
5712
  temperature: 0.7,
5712
5713
  apiKey: this.getApiKey(apiKey)
5713
5714
  },
@@ -7480,6 +7481,7 @@ async function handleDashboardsRequest(data, collections, sendMessage) {
7480
7481
  const published = requestData?.published;
7481
7482
  const createdBy = requestData?.createdBy;
7482
7483
  const updatedBy = requestData?.updatedBy;
7484
+ const allowedUsers = requestData?.allowedUsers;
7483
7485
  const numericId = requestData?.id;
7484
7486
  const filters = requestData?.filters;
7485
7487
  const limit = requestData?.limit;
@@ -7495,10 +7497,10 @@ async function handleDashboardsRequest(data, collections, sendMessage) {
7495
7497
  const dashboardManager2 = getDashboardManager();
7496
7498
  switch (operation) {
7497
7499
  case "create":
7498
- await handleCreate2(id, dashboardId, dashboard, projectId, name, description, published, createdBy, executeCollection, dashboardManager2, sendMessage, from.id);
7500
+ await handleCreate2(id, dashboardId, dashboard, projectId, name, description, published, createdBy, allowedUsers, executeCollection, dashboardManager2, sendMessage, from.id);
7499
7501
  break;
7500
7502
  case "update":
7501
- await handleUpdate2(id, numericId, dashboardId, dashboard, name, description, published, updatedBy, executeCollection, dashboardManager2, sendMessage, from.id);
7503
+ await handleUpdate2(id, numericId, dashboardId, dashboard, name, description, published, updatedBy, allowedUsers, executeCollection, dashboardManager2, sendMessage, from.id);
7502
7504
  break;
7503
7505
  case "delete":
7504
7506
  await handleDelete2(id, numericId, dashboardId, executeCollection, dashboardManager2, sendMessage, from.id);
@@ -7526,7 +7528,7 @@ async function handleDashboardsRequest(data, collections, sendMessage) {
7526
7528
  }, sendMessage);
7527
7529
  }
7528
7530
  }
7529
- async function handleCreate2(id, dashboardId, dashboard, projectId, name, description, published, createdBy, executeCollection, dashboardManager2, sendMessage, clientId) {
7531
+ async function handleCreate2(id, dashboardId, dashboard, projectId, name, description, published, createdBy, allowedUsers, executeCollection, dashboardManager2, sendMessage, clientId) {
7530
7532
  if (!dashboardId || dashboardId.trim().length === 0) {
7531
7533
  sendResponse4(id, {
7532
7534
  success: false,
@@ -7549,7 +7551,8 @@ async function handleCreate2(id, dashboardId, dashboard, projectId, name, descri
7549
7551
  description,
7550
7552
  dashboard,
7551
7553
  published,
7552
- createdBy
7554
+ createdBy,
7555
+ allowedUsers
7553
7556
  });
7554
7557
  if (result && result.success) {
7555
7558
  logger.info(`[DB] Dashboard created successfully, ID: ${result.data?.id}`);
@@ -7588,7 +7591,7 @@ async function handleCreate2(id, dashboardId, dashboard, projectId, name, descri
7588
7591
  }, sendMessage, clientId);
7589
7592
  }
7590
7593
  }
7591
- async function handleUpdate2(id, numericId, dashboardId, dashboard, name, description, published, updatedBy, executeCollection, dashboardManager2, sendMessage, clientId) {
7594
+ async function handleUpdate2(id, numericId, dashboardId, dashboard, name, description, published, updatedBy, allowedUsers, executeCollection, dashboardManager2, sendMessage, clientId) {
7592
7595
  if (!numericId) {
7593
7596
  sendResponse4(id, {
7594
7597
  success: false,
@@ -7603,7 +7606,8 @@ async function handleUpdate2(id, numericId, dashboardId, dashboard, name, descri
7603
7606
  description,
7604
7607
  dashboard,
7605
7608
  published,
7606
- updatedBy
7609
+ updatedBy,
7610
+ allowedUsers
7607
7611
  });
7608
7612
  if (result && result.success) {
7609
7613
  logger.info(`[DB] Dashboard updated successfully, ID: ${numericId}`);
@@ -9211,7 +9215,7 @@ async function pickComponentWithLLM(prompt, components, anthropicApiKey, groqApi
9211
9215
  },
9212
9216
  {
9213
9217
  model,
9214
- maxTokens: 3e3,
9218
+ maxTokens: 4096,
9215
9219
  temperature: 0.2,
9216
9220
  apiKey
9217
9221
  },