@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.js CHANGED
@@ -2028,6 +2028,7 @@ var DashboardsRequestPayloadSchema = import_zod3.z.object({
2028
2028
  published: import_zod3.z.boolean().optional(),
2029
2029
  createdBy: import_zod3.z.number().optional(),
2030
2030
  updatedBy: import_zod3.z.number().optional(),
2031
+ allowedUsers: import_zod3.z.array(import_zod3.z.number()).optional(),
2031
2032
  dashboard: DSLRendererPropsSchema.optional(),
2032
2033
  // Query operation fields
2033
2034
  filters: DashboardQueryFiltersSchema.optional(),
@@ -4724,7 +4725,7 @@ ${JSON.stringify(tool.requiredFields || [], null, 2)}`;
4724
4725
  },
4725
4726
  {
4726
4727
  model: this.model,
4727
- maxTokens: 3e3,
4728
+ maxTokens: 4096,
4728
4729
  temperature: 0.2,
4729
4730
  apiKey: this.getApiKey(apiKey),
4730
4731
  partial: partialCallback
@@ -4847,7 +4848,7 @@ ${JSON.stringify(tool.requiredFields || [], null, 2)}`;
4847
4848
  },
4848
4849
  {
4849
4850
  model: this.model,
4850
- maxTokens: 1e3,
4851
+ maxTokens: 1500,
4851
4852
  temperature: 0.2,
4852
4853
  apiKey: this.getApiKey(apiKey)
4853
4854
  },
@@ -4908,7 +4909,7 @@ ${JSON.stringify(tool.requiredFields || [], null, 2)}`;
4908
4909
  },
4909
4910
  {
4910
4911
  model: this.model,
4911
- maxTokens: 2e3,
4912
+ maxTokens: 3e3,
4912
4913
  temperature: 0.2,
4913
4914
  apiKey: this.getApiKey(apiKey)
4914
4915
  },
@@ -5751,7 +5752,7 @@ ${errorMsg}
5751
5752
  },
5752
5753
  {
5753
5754
  model: this.model,
5754
- maxTokens: 800,
5755
+ maxTokens: 1200,
5755
5756
  temperature: 0.7,
5756
5757
  apiKey: this.getApiKey(apiKey)
5757
5758
  },
@@ -7524,6 +7525,7 @@ async function handleDashboardsRequest(data, collections, sendMessage) {
7524
7525
  const published = requestData?.published;
7525
7526
  const createdBy = requestData?.createdBy;
7526
7527
  const updatedBy = requestData?.updatedBy;
7528
+ const allowedUsers = requestData?.allowedUsers;
7527
7529
  const numericId = requestData?.id;
7528
7530
  const filters = requestData?.filters;
7529
7531
  const limit = requestData?.limit;
@@ -7539,10 +7541,10 @@ async function handleDashboardsRequest(data, collections, sendMessage) {
7539
7541
  const dashboardManager2 = getDashboardManager();
7540
7542
  switch (operation) {
7541
7543
  case "create":
7542
- await handleCreate2(id, dashboardId, dashboard, projectId, name, description, published, createdBy, executeCollection, dashboardManager2, sendMessage, from.id);
7544
+ await handleCreate2(id, dashboardId, dashboard, projectId, name, description, published, createdBy, allowedUsers, executeCollection, dashboardManager2, sendMessage, from.id);
7543
7545
  break;
7544
7546
  case "update":
7545
- await handleUpdate2(id, numericId, dashboardId, dashboard, name, description, published, updatedBy, executeCollection, dashboardManager2, sendMessage, from.id);
7547
+ await handleUpdate2(id, numericId, dashboardId, dashboard, name, description, published, updatedBy, allowedUsers, executeCollection, dashboardManager2, sendMessage, from.id);
7546
7548
  break;
7547
7549
  case "delete":
7548
7550
  await handleDelete2(id, numericId, dashboardId, executeCollection, dashboardManager2, sendMessage, from.id);
@@ -7570,7 +7572,7 @@ async function handleDashboardsRequest(data, collections, sendMessage) {
7570
7572
  }, sendMessage);
7571
7573
  }
7572
7574
  }
7573
- async function handleCreate2(id, dashboardId, dashboard, projectId, name, description, published, createdBy, executeCollection, dashboardManager2, sendMessage, clientId) {
7575
+ async function handleCreate2(id, dashboardId, dashboard, projectId, name, description, published, createdBy, allowedUsers, executeCollection, dashboardManager2, sendMessage, clientId) {
7574
7576
  if (!dashboardId || dashboardId.trim().length === 0) {
7575
7577
  sendResponse4(id, {
7576
7578
  success: false,
@@ -7593,7 +7595,8 @@ async function handleCreate2(id, dashboardId, dashboard, projectId, name, descri
7593
7595
  description,
7594
7596
  dashboard,
7595
7597
  published,
7596
- createdBy
7598
+ createdBy,
7599
+ allowedUsers
7597
7600
  });
7598
7601
  if (result && result.success) {
7599
7602
  logger.info(`[DB] Dashboard created successfully, ID: ${result.data?.id}`);
@@ -7632,7 +7635,7 @@ async function handleCreate2(id, dashboardId, dashboard, projectId, name, descri
7632
7635
  }, sendMessage, clientId);
7633
7636
  }
7634
7637
  }
7635
- async function handleUpdate2(id, numericId, dashboardId, dashboard, name, description, published, updatedBy, executeCollection, dashboardManager2, sendMessage, clientId) {
7638
+ async function handleUpdate2(id, numericId, dashboardId, dashboard, name, description, published, updatedBy, allowedUsers, executeCollection, dashboardManager2, sendMessage, clientId) {
7636
7639
  if (!numericId) {
7637
7640
  sendResponse4(id, {
7638
7641
  success: false,
@@ -7647,7 +7650,8 @@ async function handleUpdate2(id, numericId, dashboardId, dashboard, name, descri
7647
7650
  description,
7648
7651
  dashboard,
7649
7652
  published,
7650
- updatedBy
7653
+ updatedBy,
7654
+ allowedUsers
7651
7655
  });
7652
7656
  if (result && result.success) {
7653
7657
  logger.info(`[DB] Dashboard updated successfully, ID: ${numericId}`);
@@ -9255,7 +9259,7 @@ async function pickComponentWithLLM(prompt, components, anthropicApiKey, groqApi
9255
9259
  },
9256
9260
  {
9257
9261
  model,
9258
- maxTokens: 3e3,
9262
+ maxTokens: 4096,
9259
9263
  temperature: 0.2,
9260
9264
  apiKey
9261
9265
  },