@ironcode-ai/sdk 1.20.5 → 1.20.7

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.
@@ -37,8 +37,8 @@ export declare class Config extends HeyApiClient {
37
37
  *
38
38
  * Update global IronCode configuration settings and preferences.
39
39
  */
40
- update<ThrowOnError extends boolean = false>(parameters?: {
41
- config?: Config3;
40
+ update<ThrowOnError extends boolean = false>(parameters: {
41
+ config: Config3;
42
42
  }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<GlobalConfigUpdateResponses, GlobalConfigUpdateErrors, ThrowOnError, "fields">;
43
43
  }
44
44
  export declare class Global extends HeyApiClient {
@@ -79,7 +79,7 @@ export declare class Auth extends HeyApiClient {
79
79
  */
80
80
  set<ThrowOnError extends boolean = false>(parameters: {
81
81
  providerID: string;
82
- auth?: Auth3;
82
+ auth: Auth3;
83
83
  }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<AuthSetResponses, AuthSetErrors, ThrowOnError, "fields">;
84
84
  }
85
85
  export declare class Project extends HeyApiClient {
@@ -201,9 +201,9 @@ export declare class Config2 extends HeyApiClient {
201
201
  *
202
202
  * Update IronCode configuration settings and preferences.
203
203
  */
204
- update<ThrowOnError extends boolean = false>(parameters?: {
204
+ update<ThrowOnError extends boolean = false>(parameters: {
205
205
  directory?: string;
206
- config?: Config3;
206
+ config: Config3;
207
207
  }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ConfigUpdateResponses, ConfigUpdateErrors, ThrowOnError, "fields">;
208
208
  /**
209
209
  * List config providers
@@ -240,9 +240,9 @@ export declare class Worktree extends HeyApiClient {
240
240
  *
241
241
  * Remove a git worktree and delete its branch.
242
242
  */
243
- remove<ThrowOnError extends boolean = false>(parameters?: {
243
+ remove<ThrowOnError extends boolean = false>(parameters: {
244
244
  directory?: string;
245
- worktreeRemoveInput?: WorktreeRemoveInput;
245
+ worktreeRemoveInput: WorktreeRemoveInput;
246
246
  }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<WorktreeRemoveResponses, WorktreeRemoveErrors, ThrowOnError, "fields">;
247
247
  /**
248
248
  * List worktrees
@@ -257,18 +257,18 @@ export declare class Worktree extends HeyApiClient {
257
257
  *
258
258
  * Create a new git worktree for the current project and run any configured startup scripts.
259
259
  */
260
- create<ThrowOnError extends boolean = false>(parameters?: {
260
+ create<ThrowOnError extends boolean = false>(parameters: {
261
261
  directory?: string;
262
- worktreeCreateInput?: WorktreeCreateInput;
262
+ worktreeCreateInput: WorktreeCreateInput;
263
263
  }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<WorktreeCreateResponses, WorktreeCreateErrors, ThrowOnError, "fields">;
264
264
  /**
265
265
  * Reset worktree
266
266
  *
267
267
  * Reset a worktree branch to the primary default branch.
268
268
  */
269
- reset<ThrowOnError extends boolean = false>(parameters?: {
269
+ reset<ThrowOnError extends boolean = false>(parameters: {
270
270
  directory?: string;
271
- worktreeResetInput?: WorktreeResetInput;
271
+ worktreeResetInput: WorktreeResetInput;
272
272
  }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<WorktreeResetResponses, WorktreeResetErrors, ThrowOnError, "fields">;
273
273
  }
274
274
  export declare class Resource extends HeyApiClient {
@@ -580,7 +580,7 @@ export declare class Part extends HeyApiClient {
580
580
  messageID: string;
581
581
  partID: string;
582
582
  directory?: string;
583
- part?: Part2;
583
+ part: Part2;
584
584
  }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<PartUpdateResponses, PartUpdateErrors, ThrowOnError, "fields">;
585
585
  }
586
586
  export declare class Permission extends HeyApiClient {
@@ -838,9 +838,9 @@ export declare class Control extends HeyApiClient {
838
838
  *
839
839
  * Submit a response to the TUI request queue to complete a pending request.
840
840
  */
841
- response<ThrowOnError extends boolean = false>(parameters?: {
841
+ response<ThrowOnError extends boolean = false>(parameters: {
842
842
  directory?: string;
843
- body?: unknown;
843
+ body: unknown;
844
844
  }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiControlResponseResponses, unknown, ThrowOnError, "fields">;
845
845
  }
846
846
  export declare class Tui extends HeyApiClient {
@@ -927,9 +927,9 @@ export declare class Tui extends HeyApiClient {
927
927
  *
928
928
  * Publish a TUI event
929
929
  */
930
- publish<ThrowOnError extends boolean = false>(parameters?: {
930
+ publish<ThrowOnError extends boolean = false>(parameters: {
931
931
  directory?: string;
932
- body?: EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect;
932
+ body: EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect;
933
933
  }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiPublishResponses, TuiPublishErrors, ThrowOnError, "fields">;
934
934
  /**
935
935
  * Select session
@@ -1986,7 +1986,7 @@ export type GlobalConfigGetResponses = {
1986
1986
  };
1987
1987
  export type GlobalConfigGetResponse = GlobalConfigGetResponses[keyof GlobalConfigGetResponses];
1988
1988
  export type GlobalConfigUpdateData = {
1989
- body?: Config;
1989
+ body: Config;
1990
1990
  path?: never;
1991
1991
  query?: never;
1992
1992
  url: "/global/config";
@@ -2041,7 +2041,7 @@ export type AuthRemoveResponses = {
2041
2041
  };
2042
2042
  export type AuthRemoveResponse = AuthRemoveResponses[keyof AuthRemoveResponses];
2043
2043
  export type AuthSetData = {
2044
- body?: Auth;
2044
+ body: Auth;
2045
2045
  path: {
2046
2046
  providerID: string;
2047
2047
  };
@@ -2093,7 +2093,7 @@ export type ProjectCurrentResponses = {
2093
2093
  };
2094
2094
  export type ProjectCurrentResponse = ProjectCurrentResponses[keyof ProjectCurrentResponses];
2095
2095
  export type ProjectUpdateData = {
2096
- body?: {
2096
+ body: {
2097
2097
  name?: string;
2098
2098
  icon?: {
2099
2099
  url?: string;
@@ -2149,7 +2149,7 @@ export type PtyListResponses = {
2149
2149
  };
2150
2150
  export type PtyListResponse = PtyListResponses[keyof PtyListResponses];
2151
2151
  export type PtyCreateData = {
2152
- body?: {
2152
+ body: {
2153
2153
  command?: string;
2154
2154
  args?: Array<string>;
2155
2155
  cwd?: string;
@@ -2227,7 +2227,7 @@ export type PtyGetResponses = {
2227
2227
  };
2228
2228
  export type PtyGetResponse = PtyGetResponses[keyof PtyGetResponses];
2229
2229
  export type PtyUpdateData = {
2230
- body?: {
2230
+ body: {
2231
2231
  title?: string;
2232
2232
  size?: {
2233
2233
  rows: number;
@@ -2296,7 +2296,7 @@ export type ConfigGetResponses = {
2296
2296
  };
2297
2297
  export type ConfigGetResponse = ConfigGetResponses[keyof ConfigGetResponses];
2298
2298
  export type ConfigUpdateData = {
2299
- body?: Config;
2299
+ body: Config;
2300
2300
  path?: never;
2301
2301
  query?: {
2302
2302
  directory?: string;
@@ -2384,7 +2384,7 @@ export type ToolListResponses = {
2384
2384
  };
2385
2385
  export type ToolListResponse = ToolListResponses[keyof ToolListResponses];
2386
2386
  export type WorktreeRemoveData = {
2387
- body?: WorktreeRemoveInput;
2387
+ body: WorktreeRemoveInput;
2388
2388
  path?: never;
2389
2389
  query?: {
2390
2390
  directory?: string;
@@ -2421,7 +2421,7 @@ export type WorktreeListResponses = {
2421
2421
  };
2422
2422
  export type WorktreeListResponse = WorktreeListResponses[keyof WorktreeListResponses];
2423
2423
  export type WorktreeCreateData = {
2424
- body?: WorktreeCreateInput;
2424
+ body: WorktreeCreateInput;
2425
2425
  path?: never;
2426
2426
  query?: {
2427
2427
  directory?: string;
@@ -2443,7 +2443,7 @@ export type WorktreeCreateResponses = {
2443
2443
  };
2444
2444
  export type WorktreeCreateResponse = WorktreeCreateResponses[keyof WorktreeCreateResponses];
2445
2445
  export type WorktreeResetData = {
2446
- body?: WorktreeResetInput;
2446
+ body: WorktreeResetInput;
2447
2447
  path?: never;
2448
2448
  query?: {
2449
2449
  directory?: string;
@@ -2516,7 +2516,7 @@ export type SessionListResponses = {
2516
2516
  };
2517
2517
  export type SessionListResponse = SessionListResponses[keyof SessionListResponses];
2518
2518
  export type SessionCreateData = {
2519
- body?: {
2519
+ body: {
2520
2520
  parentID?: string;
2521
2521
  title?: string;
2522
2522
  permission?: PermissionRuleset;
@@ -2622,7 +2622,7 @@ export type SessionGetResponses = {
2622
2622
  };
2623
2623
  export type SessionGetResponse = SessionGetResponses[keyof SessionGetResponses];
2624
2624
  export type SessionUpdateData = {
2625
- body?: {
2625
+ body: {
2626
2626
  title?: string;
2627
2627
  time?: {
2628
2628
  archived?: number;
@@ -2714,7 +2714,7 @@ export type SessionTodoResponses = {
2714
2714
  };
2715
2715
  export type SessionTodoResponse = SessionTodoResponses[keyof SessionTodoResponses];
2716
2716
  export type SessionInitData = {
2717
- body?: {
2717
+ body: {
2718
2718
  modelID: string;
2719
2719
  providerID: string;
2720
2720
  messageID: string;
@@ -2749,7 +2749,7 @@ export type SessionInitResponses = {
2749
2749
  };
2750
2750
  export type SessionInitResponse = SessionInitResponses[keyof SessionInitResponses];
2751
2751
  export type SessionForkData = {
2752
- body?: {
2752
+ body: {
2753
2753
  messageID?: string;
2754
2754
  };
2755
2755
  path: {
@@ -2870,7 +2870,7 @@ export type SessionDiffResponses = {
2870
2870
  };
2871
2871
  export type SessionDiffResponse = SessionDiffResponses[keyof SessionDiffResponses];
2872
2872
  export type SessionSummarizeData = {
2873
- body?: {
2873
+ body: {
2874
2874
  providerID: string;
2875
2875
  modelID: string;
2876
2876
  auto?: boolean;
@@ -2940,7 +2940,7 @@ export type SessionMessagesResponses = {
2940
2940
  };
2941
2941
  export type SessionMessagesResponse = SessionMessagesResponses[keyof SessionMessagesResponses];
2942
2942
  export type SessionPromptData = {
2943
- body?: {
2943
+ body: {
2944
2944
  messageID?: string;
2945
2945
  model?: string | {
2946
2946
  providerID: string;
@@ -3072,7 +3072,7 @@ export type PartDeleteResponses = {
3072
3072
  };
3073
3073
  export type PartDeleteResponse = PartDeleteResponses[keyof PartDeleteResponses];
3074
3074
  export type PartUpdateData = {
3075
- body?: Part;
3075
+ body: Part;
3076
3076
  path: {
3077
3077
  /**
3078
3078
  * Session ID
@@ -3111,7 +3111,7 @@ export type PartUpdateResponses = {
3111
3111
  };
3112
3112
  export type PartUpdateResponse = PartUpdateResponses[keyof PartUpdateResponses];
3113
3113
  export type SessionPromptAsyncData = {
3114
- body?: {
3114
+ body: {
3115
3115
  messageID?: string;
3116
3116
  model?: string | {
3117
3117
  providerID: string;
@@ -3163,7 +3163,7 @@ export type SessionPromptAsyncResponses = {
3163
3163
  };
3164
3164
  export type SessionPromptAsyncResponse = SessionPromptAsyncResponses[keyof SessionPromptAsyncResponses];
3165
3165
  export type SessionCommandData = {
3166
- body?: {
3166
+ body: {
3167
3167
  messageID?: string;
3168
3168
  agent?: string;
3169
3169
  model?: string;
@@ -3212,7 +3212,7 @@ export type SessionCommandResponses = {
3212
3212
  };
3213
3213
  export type SessionCommandResponse = SessionCommandResponses[keyof SessionCommandResponses];
3214
3214
  export type SessionShellData = {
3215
- body?: {
3215
+ body: {
3216
3216
  agent: string;
3217
3217
  model?: {
3218
3218
  providerID: string;
@@ -3250,7 +3250,7 @@ export type SessionShellResponses = {
3250
3250
  };
3251
3251
  export type SessionShellResponse = SessionShellResponses[keyof SessionShellResponses];
3252
3252
  export type SessionRevertData = {
3253
- body?: {
3253
+ body: {
3254
3254
  messageID: string;
3255
3255
  partID?: string;
3256
3256
  };
@@ -3309,7 +3309,7 @@ export type SessionUnrevertResponses = {
3309
3309
  };
3310
3310
  export type SessionUnrevertResponse = SessionUnrevertResponses[keyof SessionUnrevertResponses];
3311
3311
  export type PermissionRespondData = {
3312
- body?: {
3312
+ body: {
3313
3313
  response: "once" | "always" | "reject";
3314
3314
  };
3315
3315
  path: {
@@ -3340,7 +3340,7 @@ export type PermissionRespondResponses = {
3340
3340
  };
3341
3341
  export type PermissionRespondResponse = PermissionRespondResponses[keyof PermissionRespondResponses];
3342
3342
  export type PermissionReplyData = {
3343
- body?: {
3343
+ body: {
3344
3344
  reply: "once" | "always" | "reject";
3345
3345
  message?: string;
3346
3346
  };
@@ -3401,7 +3401,7 @@ export type QuestionListResponses = {
3401
3401
  };
3402
3402
  export type QuestionListResponse = QuestionListResponses[keyof QuestionListResponses];
3403
3403
  export type QuestionReplyData = {
3404
- body?: {
3404
+ body: {
3405
3405
  /**
3406
3406
  * User answers in order of questions (each answer is an array of selected labels)
3407
3407
  */
@@ -3558,7 +3558,7 @@ export type ProviderAuthResponses = {
3558
3558
  };
3559
3559
  export type ProviderAuthResponse = ProviderAuthResponses[keyof ProviderAuthResponses];
3560
3560
  export type ProviderOauthAuthorizeData = {
3561
- body?: {
3561
+ body: {
3562
3562
  /**
3563
3563
  * Auth method index
3564
3564
  */
@@ -3590,7 +3590,7 @@ export type ProviderOauthAuthorizeResponses = {
3590
3590
  };
3591
3591
  export type ProviderOauthAuthorizeResponse = ProviderOauthAuthorizeResponses[keyof ProviderOauthAuthorizeResponses];
3592
3592
  export type ProviderOauthCallbackData = {
3593
- body?: {
3593
+ body: {
3594
3594
  /**
3595
3595
  * Auth method index
3596
3596
  */
@@ -3757,7 +3757,7 @@ export type McpStatusResponses = {
3757
3757
  };
3758
3758
  export type McpStatusResponse = McpStatusResponses[keyof McpStatusResponses];
3759
3759
  export type McpAddData = {
3760
- body?: {
3760
+ body: {
3761
3761
  name: string;
3762
3762
  config: McpLocalConfig | McpRemoteConfig;
3763
3763
  };
@@ -3843,7 +3843,7 @@ export type McpAuthStartResponses = {
3843
3843
  };
3844
3844
  export type McpAuthStartResponse = McpAuthStartResponses[keyof McpAuthStartResponses];
3845
3845
  export type McpAuthCallbackData = {
3846
- body?: {
3846
+ body: {
3847
3847
  /**
3848
3848
  * Authorization code from OAuth callback
3849
3849
  */
@@ -3938,7 +3938,7 @@ export type McpDisconnectResponses = {
3938
3938
  };
3939
3939
  export type McpDisconnectResponse = McpDisconnectResponses[keyof McpDisconnectResponses];
3940
3940
  export type TuiAppendPromptData = {
3941
- body?: {
3941
+ body: {
3942
3942
  text: string;
3943
3943
  };
3944
3944
  path?: never;
@@ -4052,7 +4052,7 @@ export type TuiClearPromptResponses = {
4052
4052
  };
4053
4053
  export type TuiClearPromptResponse = TuiClearPromptResponses[keyof TuiClearPromptResponses];
4054
4054
  export type TuiExecuteCommandData = {
4055
- body?: {
4055
+ body: {
4056
4056
  command: string;
4057
4057
  };
4058
4058
  path?: never;
@@ -4076,7 +4076,7 @@ export type TuiExecuteCommandResponses = {
4076
4076
  };
4077
4077
  export type TuiExecuteCommandResponse = TuiExecuteCommandResponses[keyof TuiExecuteCommandResponses];
4078
4078
  export type TuiShowToastData = {
4079
- body?: {
4079
+ body: {
4080
4080
  title?: string;
4081
4081
  message: string;
4082
4082
  variant: "info" | "success" | "warning" | "error";
@@ -4099,7 +4099,7 @@ export type TuiShowToastResponses = {
4099
4099
  };
4100
4100
  export type TuiShowToastResponse = TuiShowToastResponses[keyof TuiShowToastResponses];
4101
4101
  export type TuiPublishData = {
4102
- body?: EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect;
4102
+ body: EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect;
4103
4103
  path?: never;
4104
4104
  query?: {
4105
4105
  directory?: string;
@@ -4121,7 +4121,7 @@ export type TuiPublishResponses = {
4121
4121
  };
4122
4122
  export type TuiPublishResponse = TuiPublishResponses[keyof TuiPublishResponses];
4123
4123
  export type TuiSelectSessionData = {
4124
- body?: {
4124
+ body: {
4125
4125
  /**
4126
4126
  * Session ID to navigate to
4127
4127
  */
@@ -4170,7 +4170,7 @@ export type TuiControlNextResponses = {
4170
4170
  };
4171
4171
  export type TuiControlNextResponse = TuiControlNextResponses[keyof TuiControlNextResponses];
4172
4172
  export type TuiControlResponseData = {
4173
- body?: unknown;
4173
+ body: unknown;
4174
4174
  path?: never;
4175
4175
  query?: {
4176
4176
  directory?: string;
@@ -4245,7 +4245,7 @@ export type CommandListResponses = {
4245
4245
  };
4246
4246
  export type CommandListResponse = CommandListResponses[keyof CommandListResponses];
4247
4247
  export type AppLogData = {
4248
- body?: {
4248
+ body: {
4249
4249
  /**
4250
4250
  * Service name for the log entry
4251
4251
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@ironcode-ai/sdk",
4
- "version": "1.20.5",
4
+ "version": "1.20.7",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "scripts": {
@@ -39,7 +39,7 @@
39
39
  ],
40
40
  "devDependencies": {
41
41
  "@hey-api/openapi-ts": "0.90.10",
42
- "@tsconfig/node22": "22.0.2",
42
+ "@tsconfig/node22": "22.0.5",
43
43
  "@types/node": "22.13.9",
44
44
  "typescript": "5.9.3",
45
45
  "@typescript/native-preview": "7.0.0-dev.20251207.1"