@miosa/sdk 1.2.8 → 1.2.9

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.d.ts CHANGED
@@ -171,6 +171,8 @@ interface AgentRuntimeProfile {
171
171
  tenantId?: string;
172
172
  workspace_id?: string | null;
173
173
  workspaceId?: string | null;
174
+ project_id?: string | null;
175
+ projectId?: string | null;
174
176
  name: string;
175
177
  runtime: AgentRuntime | string;
176
178
  description?: string | null;
@@ -191,6 +193,8 @@ interface AgentRuntimeProfile {
191
193
  interface AgentRuntimeProfileParams {
192
194
  workspaceId?: string;
193
195
  workspace_id?: string;
196
+ projectId?: string;
197
+ project_id?: string;
194
198
  name: string;
195
199
  runtime: AgentRuntime | string;
196
200
  description?: string;
@@ -211,6 +215,8 @@ declare class AgentRuntimeProfiles {
211
215
  list(params?: {
212
216
  workspaceId?: string;
213
217
  workspace_id?: string;
218
+ projectId?: string;
219
+ project_id?: string;
214
220
  }): Promise<AgentRuntimeProfile[]>;
215
221
  get(id: string): Promise<AgentRuntimeProfile>;
216
222
  create(params: AgentRuntimeProfileParams): Promise<AgentRuntimeProfile>;
package/dist/index.js CHANGED
@@ -612,6 +612,7 @@ function body(params) {
612
612
  return Object.fromEntries(
613
613
  Object.entries({
614
614
  workspace_id: params.workspaceId ?? params.workspace_id,
615
+ project_id: params.projectId ?? params.project_id,
615
616
  name: params.name,
616
617
  runtime: params.runtime,
617
618
  description: params.description,
@@ -631,12 +632,14 @@ function normalize(profile) {
631
632
  };
632
633
  const tenantId = profile.tenantId ?? profile.tenant_id;
633
634
  const workspaceId2 = profile.workspaceId ?? profile.workspace_id;
635
+ const projectId = profile.projectId ?? profile.project_id;
634
636
  const appliesTo = profile.appliesTo ?? profile.applies_to;
635
637
  const isDefault = profile.isDefault ?? profile.is_default;
636
638
  const createdAt = profile.createdAt ?? profile.created_at;
637
639
  const updatedAt = profile.updatedAt ?? profile.updated_at;
638
640
  if (tenantId !== void 0) normalized.tenantId = tenantId;
639
641
  if (workspaceId2 !== void 0) normalized.workspaceId = workspaceId2;
642
+ if (projectId !== void 0) normalized.projectId = projectId;
640
643
  if (appliesTo !== void 0) normalized.appliesTo = appliesTo;
641
644
  if (isDefault !== void 0) normalized.isDefault = isDefault;
642
645
  if (createdAt !== void 0) normalized.createdAt = createdAt;
@@ -651,7 +654,10 @@ var AgentRuntimeProfiles = class {
651
654
  async list(params = {}) {
652
655
  const response = await this.http.get(
653
656
  "/agent-runtime-profiles",
654
- { workspace_id: params.workspaceId ?? params.workspace_id }
657
+ {
658
+ workspace_id: params.workspaceId ?? params.workspace_id,
659
+ project_id: params.projectId ?? params.project_id
660
+ }
655
661
  );
656
662
  return unwrap(response).map(normalize);
657
663
  }