sim 2.2.25-preview.287.1 → 2.2.25-preview.288.1

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.
@@ -4191,6 +4191,7 @@ export type GetBlockQuery = {
4191
4191
  type GetBlockResponseRef0 = {
4192
4192
  id: string;
4193
4193
  type: string;
4194
+ valueType?: 'string' | 'number' | 'boolean' | 'json' | 'array' | 'file';
4194
4195
  title?: string;
4195
4196
  required?: boolean;
4196
4197
  requiredWhen?: GetBlockResponseRef1;
@@ -5793,6 +5794,33 @@ type GetWorkflowMcpServerResponseRef0 = {
5793
5794
  export type GetWorkflowMcpServerResponse = {
5794
5795
  data: GetWorkflowMcpServerResponseRef0;
5795
5796
  };
5797
+ /** `GET /api/v2/workflows/[workflowId]/outline` */
5798
+ export type GetWorkflowOutlineParams = {
5799
+ workflowId: string;
5800
+ };
5801
+ export type GetWorkflowOutlineQuery = Record<string, unknown>;
5802
+ type GetWorkflowOutlineResponseRef0 = {
5803
+ type: string;
5804
+ name: string;
5805
+ enabled: boolean;
5806
+ inputs?: Record<string, unknown>;
5807
+ connections?: Record<string, string | Array<string>>;
5808
+ nestedNodes?: Record<string, unknown>;
5809
+ advancedMode?: boolean;
5810
+ errorEnabled?: boolean;
5811
+ retry?: {
5812
+ enabled: boolean;
5813
+ maxTries: number;
5814
+ waitBetweenTriesMs: number;
5815
+ };
5816
+ triggerMode?: boolean;
5817
+ };
5818
+ type GetWorkflowOutlineResponseRef1 = {
5819
+ blocks: Record<string, GetWorkflowOutlineResponseRef0>;
5820
+ };
5821
+ export type GetWorkflowOutlineResponse = {
5822
+ data: GetWorkflowOutlineResponseRef1;
5823
+ };
5796
5824
  /** `GET /api/v2/workflows/[workflowId]/runs/[runId]` */
5797
5825
  export type GetWorkflowRunParams = {
5798
5826
  workflowId: string;
@@ -8299,6 +8327,31 @@ export type ListWorkspacesResponse = {
8299
8327
  data: Array<ListWorkspacesResponseRef0>;
8300
8328
  nextCursor: string | null;
8301
8329
  };
8330
+ /** `GET /api/v2/schedules` */
8331
+ export type ListWorkspaceSchedulesQuery = {
8332
+ workspaceId: string;
8333
+ limit?: number;
8334
+ cursor?: string;
8335
+ sortBy?: 'createdAt';
8336
+ sortOrder?: 'asc' | 'desc';
8337
+ };
8338
+ type ListWorkspaceSchedulesResponseRef0 = {
8339
+ blockId: string;
8340
+ enabled: boolean;
8341
+ status: 'active' | 'disabled' | 'completed';
8342
+ failedCount: number;
8343
+ lastFailedAt: string | null;
8344
+ nextRunAt: string | null;
8345
+ lastRanAt: string | null;
8346
+ cronExpression: string | null;
8347
+ workflowId: string;
8348
+ workflowName: string;
8349
+ timezone: string;
8350
+ };
8351
+ export type ListWorkspaceSchedulesResponse = {
8352
+ data: Array<ListWorkspaceSchedulesResponseRef0>;
8353
+ nextCursor: string | null;
8354
+ };
8302
8355
  /** `POST /api/v2/files/move` */
8303
8356
  export type MoveFileItemsQuery = Record<string, unknown>;
8304
8357
  type MoveFileItemsBodyRef0 = string;
@@ -15862,6 +15915,16 @@ export declare const V2_OPERATIONS: {
15862
15915
  readonly summary: 'Get workflow MCP server';
15863
15916
  readonly workspaceKeyUnsupported: true;
15864
15917
  };
15918
+ readonly getWorkflowOutline: {
15919
+ readonly method: 'GET';
15920
+ readonly path: '/api/v2/workflows/[workflowId]/outline';
15921
+ readonly pathParams: readonly ['workflowId'];
15922
+ readonly pathParamDocs: {
15923
+ readonly workflowId: 'Unique workflow identifier.';
15924
+ };
15925
+ readonly responseMode: 'json';
15926
+ readonly summary: 'Get workflow outline';
15927
+ };
15865
15928
  readonly getWorkflowRun: {
15866
15929
  readonly method: 'GET';
15867
15930
  readonly path: '/api/v2/workflows/[workflowId]/runs/[runId]';
@@ -18457,6 +18520,41 @@ export declare const V2_OPERATIONS: {
18457
18520
  };
18458
18521
  };
18459
18522
  };
18523
+ readonly listWorkspaceSchedules: {
18524
+ readonly method: 'GET';
18525
+ readonly path: '/api/v2/schedules';
18526
+ readonly pathParams: readonly [];
18527
+ readonly responseMode: 'json';
18528
+ readonly summary: 'List workspace schedules';
18529
+ readonly query: {
18530
+ readonly workspaceId: {
18531
+ readonly kind: 'string';
18532
+ readonly required: true;
18533
+ readonly describe: 'Workspace whose schedules should be listed.';
18534
+ };
18535
+ readonly limit: {
18536
+ readonly kind: 'integer';
18537
+ readonly default: 50;
18538
+ readonly describe: 'Maximum schedules to return per page. Must be a whole number from 1 to 100. Defaults to 50.';
18539
+ };
18540
+ readonly cursor: {
18541
+ readonly kind: 'string';
18542
+ readonly describe: 'Opaque cursor from the previous page. Send it back with the same sort and filters; only `limit` may change. Change anything else and pagination must restart without a cursor.';
18543
+ };
18544
+ readonly sortBy: {
18545
+ readonly kind: 'enum';
18546
+ readonly values: readonly ['createdAt'];
18547
+ readonly default: 'createdAt';
18548
+ readonly describe: 'Field used to sort the result.';
18549
+ };
18550
+ readonly sortOrder: {
18551
+ readonly kind: 'enum';
18552
+ readonly values: readonly ['asc', 'desc'];
18553
+ readonly default: 'desc';
18554
+ readonly describe: 'Sort direction.';
18555
+ };
18556
+ };
18557
+ };
18460
18558
  readonly moveFileItems: {
18461
18559
  readonly method: 'POST';
18462
18560
  readonly path: '/api/v2/files/move';
package/dist/index.js CHANGED
@@ -13060,6 +13060,14 @@ var V2_OPERATIONS = {
13060
13060
  summary: "Get workflow MCP server",
13061
13061
  workspaceKeyUnsupported: true
13062
13062
  },
13063
+ getWorkflowOutline: {
13064
+ method: "GET",
13065
+ path: "/api/v2/workflows/[workflowId]/outline",
13066
+ pathParams: ["workflowId"],
13067
+ pathParamDocs: { workflowId: "Unique workflow identifier." },
13068
+ responseMode: "json",
13069
+ summary: "Get workflow outline"
13070
+ },
13063
13071
  getWorkflowRun: {
13064
13072
  method: "GET",
13065
13073
  path: "/api/v2/workflows/[workflowId]/runs/[runId]",
@@ -15716,6 +15724,41 @@ var V2_OPERATIONS = {
15716
15724
  }
15717
15725
  }
15718
15726
  },
15727
+ listWorkspaceSchedules: {
15728
+ method: "GET",
15729
+ path: "/api/v2/schedules",
15730
+ pathParams: [],
15731
+ responseMode: "json",
15732
+ summary: "List workspace schedules",
15733
+ query: {
15734
+ workspaceId: {
15735
+ kind: "string",
15736
+ required: true,
15737
+ describe: "Workspace whose schedules should be listed."
15738
+ },
15739
+ limit: {
15740
+ kind: "integer",
15741
+ default: 50,
15742
+ describe: "Maximum schedules to return per page. Must be a whole number from 1 to 100. Defaults to 50."
15743
+ },
15744
+ cursor: {
15745
+ kind: "string",
15746
+ describe: "Opaque cursor from the previous page. Send it back with the same sort and filters; only `limit` may change. Change anything else and pagination must restart without a cursor."
15747
+ },
15748
+ sortBy: {
15749
+ kind: "enum",
15750
+ values: ["createdAt"],
15751
+ default: "createdAt",
15752
+ describe: "Field used to sort the result."
15753
+ },
15754
+ sortOrder: {
15755
+ kind: "enum",
15756
+ values: ["asc", "desc"],
15757
+ default: "desc",
15758
+ describe: "Sort direction."
15759
+ }
15760
+ }
15761
+ },
15719
15762
  moveFileItems: {
15720
15763
  method: "POST",
15721
15764
  path: "/api/v2/files/move",
@@ -19447,6 +19490,18 @@ var CLI_CONTRACT = {
19447
19490
  updateWorkflowTrigger: {
19448
19491
  describe: "Enable or disable one trigger of the live deployment"
19449
19492
  },
19493
+ listWorkspaceSchedules: {
19494
+ describe: "Show the timing and health of every schedule the workspace’s deployments run",
19495
+ columns: [
19496
+ { header: "workflow", path: "workflowName" },
19497
+ { header: "block", path: "blockId" },
19498
+ { header: "cron", path: "cronExpression" },
19499
+ { header: "timezone" },
19500
+ { header: "status" },
19501
+ { header: "failures", path: "failedCount" },
19502
+ { header: "next run", path: "nextRunAt", format: "timestamp" }
19503
+ ]
19504
+ },
19450
19505
  setSecret: { hidden: true },
19451
19506
  deleteTable: {
19452
19507
  confirm: "This archives the table and all of its rows; restore with `tables restore`."
@@ -19631,6 +19686,10 @@ var CLI_CONTRACT = {
19631
19686
  flags: { folderPath: FOLDER_PATH_FLAG }
19632
19687
  },
19633
19688
  getWorkflowState: { command: "workflows state get" },
19689
+ getWorkflowOutline: {
19690
+ command: "workflows outline",
19691
+ describe: "Show a workflow’s draft as a compact read-only outline"
19692
+ },
19634
19693
  replaceWorkflowState: {
19635
19694
  command: "workflows state replace",
19636
19695
  confirm: "This replaces the entire draft graph and cannot be undone."
@@ -22646,6 +22705,7 @@ var GROUP_ALIASES = {
22646
22705
  logs: "log",
22647
22706
  "mcp-servers": "mcp-server",
22648
22707
  sandboxes: "sandbox",
22708
+ schedules: "schedule",
22649
22709
  secrets: "secret",
22650
22710
  skills: "skill",
22651
22711
  tables: "table",
package/dist/runtime.js CHANGED
@@ -13109,6 +13109,14 @@ var V2_OPERATIONS = {
13109
13109
  summary: "Get workflow MCP server",
13110
13110
  workspaceKeyUnsupported: true
13111
13111
  },
13112
+ getWorkflowOutline: {
13113
+ method: "GET",
13114
+ path: "/api/v2/workflows/[workflowId]/outline",
13115
+ pathParams: ["workflowId"],
13116
+ pathParamDocs: { workflowId: "Unique workflow identifier." },
13117
+ responseMode: "json",
13118
+ summary: "Get workflow outline"
13119
+ },
13112
13120
  getWorkflowRun: {
13113
13121
  method: "GET",
13114
13122
  path: "/api/v2/workflows/[workflowId]/runs/[runId]",
@@ -15765,6 +15773,41 @@ var V2_OPERATIONS = {
15765
15773
  }
15766
15774
  }
15767
15775
  },
15776
+ listWorkspaceSchedules: {
15777
+ method: "GET",
15778
+ path: "/api/v2/schedules",
15779
+ pathParams: [],
15780
+ responseMode: "json",
15781
+ summary: "List workspace schedules",
15782
+ query: {
15783
+ workspaceId: {
15784
+ kind: "string",
15785
+ required: true,
15786
+ describe: "Workspace whose schedules should be listed."
15787
+ },
15788
+ limit: {
15789
+ kind: "integer",
15790
+ default: 50,
15791
+ describe: "Maximum schedules to return per page. Must be a whole number from 1 to 100. Defaults to 50."
15792
+ },
15793
+ cursor: {
15794
+ kind: "string",
15795
+ describe: "Opaque cursor from the previous page. Send it back with the same sort and filters; only `limit` may change. Change anything else and pagination must restart without a cursor."
15796
+ },
15797
+ sortBy: {
15798
+ kind: "enum",
15799
+ values: ["createdAt"],
15800
+ default: "createdAt",
15801
+ describe: "Field used to sort the result."
15802
+ },
15803
+ sortOrder: {
15804
+ kind: "enum",
15805
+ values: ["asc", "desc"],
15806
+ default: "desc",
15807
+ describe: "Sort direction."
15808
+ }
15809
+ }
15810
+ },
15768
15811
  moveFileItems: {
15769
15812
  method: "POST",
15770
15813
  path: "/api/v2/files/move",
@@ -19496,6 +19539,18 @@ var CLI_CONTRACT = {
19496
19539
  updateWorkflowTrigger: {
19497
19540
  describe: "Enable or disable one trigger of the live deployment"
19498
19541
  },
19542
+ listWorkspaceSchedules: {
19543
+ describe: "Show the timing and health of every schedule the workspace’s deployments run",
19544
+ columns: [
19545
+ { header: "workflow", path: "workflowName" },
19546
+ { header: "block", path: "blockId" },
19547
+ { header: "cron", path: "cronExpression" },
19548
+ { header: "timezone" },
19549
+ { header: "status" },
19550
+ { header: "failures", path: "failedCount" },
19551
+ { header: "next run", path: "nextRunAt", format: "timestamp" }
19552
+ ]
19553
+ },
19499
19554
  setSecret: { hidden: true },
19500
19555
  deleteTable: {
19501
19556
  confirm: "This archives the table and all of its rows; restore with `tables restore`."
@@ -19680,6 +19735,10 @@ var CLI_CONTRACT = {
19680
19735
  flags: { folderPath: FOLDER_PATH_FLAG }
19681
19736
  },
19682
19737
  getWorkflowState: { command: "workflows state get" },
19738
+ getWorkflowOutline: {
19739
+ command: "workflows outline",
19740
+ describe: "Show a workflow’s draft as a compact read-only outline"
19741
+ },
19683
19742
  replaceWorkflowState: {
19684
19743
  command: "workflows state replace",
19685
19744
  confirm: "This replaces the entire draft graph and cannot be undone."
@@ -22695,6 +22754,7 @@ var GROUP_ALIASES = {
22695
22754
  logs: "log",
22696
22755
  "mcp-servers": "mcp-server",
22697
22756
  sandboxes: "sandbox",
22757
+ schedules: "schedule",
22698
22758
  secrets: "secret",
22699
22759
  skills: "skill",
22700
22760
  tables: "table",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sim",
3
- "version": "2.2.25-preview.287.1",
3
+ "version": "2.2.25-preview.288.1",
4
4
  "description": "Sim CLI - talk to the Sim API from your terminal",
5
5
  "type": "module",
6
6
  "bin": {