@super_studio/ecforce-ai-agent-server 0.2.0-canary.4 → 0.2.0-canary.5

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.
@@ -77,14 +77,678 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
77
77
  version: string;
78
78
  }>;
79
79
  };
80
- internal: {
80
+ internalAccount: {
81
+ /**
82
+ * @description アカウント一覧
83
+ *
84
+ * @tags internal, account
85
+ * @name List
86
+ * @summary list
87
+ * @request GET:/v1/internal/account
88
+ * @secure
89
+ */
90
+ list: (query?: {
91
+ q?: string;
92
+ /**
93
+ * @min 1
94
+ * @max 9007199254740991
95
+ * @default 1
96
+ */
97
+ page?: number;
98
+ /**
99
+ * @min 1
100
+ * @max 100
101
+ * @default 20
102
+ */
103
+ pageSize?: number;
104
+ }, params?: RequestParams) => Promise<{
105
+ items: {
106
+ /** @maxLength 30 */
107
+ id: string;
108
+ /** @maxLength 255 */
109
+ projectId: string;
110
+ /** @format date-time */
111
+ createdAt: string;
112
+ /** @format date-time */
113
+ updatedAt: string;
114
+ plan?: any;
115
+ creditLimit: number;
116
+ }[];
117
+ pagination: {
118
+ page: number;
119
+ pageSize: number;
120
+ totalCount: number;
121
+ totalPages: number;
122
+ };
123
+ }>;
124
+ /**
125
+ * @description 新規アカウントを作成する
126
+ *
127
+ * @tags internal, account
128
+ * @name Create
129
+ * @summary create
130
+ * @request POST:/v1/internal/account
131
+ * @secure
132
+ */
133
+ create: (data: {
134
+ /**
135
+ * @minLength 1
136
+ * @pattern ^[a-z0-9_-]+$
137
+ */
138
+ projectId: string;
139
+ plan: "free" | "pro";
140
+ }, params?: RequestParams) => Promise<{
141
+ account: {
142
+ id: string;
143
+ projectId: string;
144
+ plan?: any;
145
+ creditLimit: number;
146
+ /** @format date-time */
147
+ createdAt: string;
148
+ /** @format date-time */
149
+ updatedAt: string;
150
+ };
151
+ }>;
152
+ /**
153
+ * @description アカウント詳細を取得する(オプション含む)
154
+ *
155
+ * @tags internal, account
156
+ * @name Get
157
+ * @summary get
158
+ * @request GET:/v1/internal/account/{projectId}
159
+ * @secure
160
+ */
161
+ get: (projectId: string, params?: RequestParams) => Promise<{
162
+ account: {
163
+ id: string;
164
+ projectId: string;
165
+ plan?: any;
166
+ creditLimit: number;
167
+ /** @format date-time */
168
+ createdAt: string;
169
+ /** @format date-time */
170
+ updatedAt: string;
171
+ };
172
+ addons: {
173
+ key: "customMcp";
174
+ name: string;
175
+ description: string;
176
+ enabled: boolean;
177
+ }[];
178
+ accountGroups: {
179
+ key: "internal" | "development" | "earlyAccess";
180
+ name: string;
181
+ description: string;
182
+ }[];
183
+ }>;
184
+ /**
185
+ * @description アカウント設定を更新する(プラン、クレジット上限、オプション)
186
+ *
187
+ * @tags internal, account
188
+ * @name Update
189
+ * @summary update
190
+ * @request PUT:/v1/internal/account/{projectId}
191
+ * @secure
192
+ */
193
+ update: (projectId: string, data?: {
194
+ plan?: "free" | "pro";
195
+ addons?: Record<"customMcp", boolean>;
196
+ }, params?: RequestParams) => Promise<{
197
+ account: {
198
+ id: string;
199
+ projectId: string;
200
+ plan?: any;
201
+ creditLimit: number;
202
+ /** @format date-time */
203
+ createdAt: string;
204
+ /** @format date-time */
205
+ updatedAt: string;
206
+ };
207
+ addons: {
208
+ key: "customMcp";
209
+ name: string;
210
+ description: string;
211
+ enabled: boolean;
212
+ }[];
213
+ }>;
214
+ /**
215
+ * @description アカウントのメンバー一覧を取得する(管理者用)
216
+ *
217
+ * @tags internal, account
218
+ * @name ListMembers
219
+ * @summary listMembers
220
+ * @request GET:/v1/internal/account/{projectId}/members
221
+ * @secure
222
+ */
223
+ listMembers: (projectId: string, query?: {
224
+ q?: string;
225
+ role?: "owner" | "member" | "viewer";
226
+ /**
227
+ * @min 1
228
+ * @max 9007199254740991
229
+ * @default 1
230
+ */
231
+ page?: number;
232
+ /**
233
+ * @min 1
234
+ * @max 100
235
+ * @default 10
236
+ */
237
+ pageSize?: number;
238
+ }, params?: RequestParams) => Promise<{
239
+ items: {
240
+ id: string;
241
+ userId: string;
242
+ role?: any;
243
+ /** @format date-time */
244
+ createdAt: string;
245
+ user: {
246
+ id: string;
247
+ name: string;
248
+ email: string;
249
+ } | null;
250
+ }[];
251
+ pagination: {
252
+ page: number;
253
+ pageSize: number;
254
+ totalCount: number;
255
+ totalPages: number;
256
+ };
257
+ }>;
258
+ /**
259
+ * @description 複数アカウントのクレジット情報を取得
260
+ *
261
+ * @tags internal, account
262
+ * @name BatchCredits
263
+ * @summary batchCredits
264
+ * @request POST:/v1/internal/account/batch-credits
265
+ * @secure
266
+ */
267
+ batchCredits: (data: {
268
+ /**
269
+ * @maxItems 100
270
+ * @minItems 1
271
+ */
272
+ projectIds: string[];
273
+ }, params?: RequestParams) => Promise<{
274
+ credits: {
275
+ projectId: string;
276
+ creditLimit: number;
277
+ usedCredits: number;
278
+ remainingCredits: number | null;
279
+ }[];
280
+ billingPeriod: string;
281
+ }>;
282
+ };
283
+ internalFeature: {
284
+ /**
285
+ * @description ユーザーのすべてのフィーチャーとその現在のステータスを一覧表示
286
+ *
287
+ * @tags internal, feature
288
+ * @name List
289
+ * @summary list
290
+ * @request GET:/v1/internal/feature
291
+ * @originalName list
292
+ * @duplicate
293
+ * @secure
294
+ */
295
+ list: (params?: RequestParams) => Promise<{
296
+ features: {
297
+ key: string;
298
+ name: string;
299
+ description: string;
300
+ enabled: boolean;
301
+ isAddonLinked: boolean;
302
+ isConditionsCustomized: boolean;
303
+ isOverridden: boolean;
304
+ overridable: boolean;
305
+ defaultValue: boolean;
306
+ conditions?: any;
307
+ }[];
308
+ hasOverrides: boolean;
309
+ }>;
310
+ /**
311
+ * @description 現在のユーザーのフィーチャー上書きを取得
312
+ *
313
+ * @tags internal, feature
314
+ * @name GetOverrides
315
+ * @summary getOverrides
316
+ * @request GET:/v1/internal/feature/overrides
317
+ * @secure
318
+ */
319
+ getOverrides: (params?: RequestParams) => Promise<{
320
+ overrides: Record<"adminSettings" | "featureOverrides" | "reactScan" | "chatDevTool" | "advancedAnalytics" | "betaFeatures" | "modelProviderOpenAI" | "modelProviderGoogle" | "modelProviderAnthropic" | "modelProviderOpenRouter" | "customMcp", boolean>;
321
+ }>;
322
+ /**
323
+ * @description 現在のユーザーのフィーチャー上書きを設定または解除
324
+ *
325
+ * @tags internal, feature
326
+ * @name SetOverride
327
+ * @summary setOverride
328
+ * @request POST:/v1/internal/feature/override
329
+ * @secure
330
+ */
331
+ setOverride: (data: {
332
+ featureKey: "adminSettings" | "featureOverrides" | "reactScan" | "chatDevTool" | "advancedAnalytics" | "betaFeatures" | "modelProviderOpenAI" | "modelProviderGoogle" | "modelProviderAnthropic" | "modelProviderOpenRouter" | "customMcp";
333
+ enabled: boolean | null;
334
+ }, params?: RequestParams) => Promise<{
335
+ success: boolean;
336
+ overrides: Record<string, boolean>;
337
+ }>;
338
+ /**
339
+ * @description 現在のユーザーのすべてのフィーチャー上書きを解除
340
+ *
341
+ * @tags internal, feature
342
+ * @name ClearAllOverrides
343
+ * @summary clearAllOverrides
344
+ * @request POST:/v1/internal/feature/override/clear-all
345
+ * @secure
346
+ */
347
+ clearAllOverrides: (params?: RequestParams) => Promise<{
348
+ success: boolean;
349
+ }>;
350
+ /**
351
+ * @description フィーチャーの条件を更新
352
+ *
353
+ * @tags internal, feature
354
+ * @name UpdateConditions
355
+ * @summary updateConditions
356
+ * @request POST:/v1/internal/feature/conditions
357
+ * @secure
358
+ */
359
+ updateConditions: (data: {
360
+ featureKey: "adminSettings" | "featureOverrides" | "reactScan" | "chatDevTool" | "advancedAnalytics" | "betaFeatures" | "modelProviderOpenAI" | "modelProviderGoogle" | "modelProviderAnthropic" | "modelProviderOpenRouter" | "customMcp";
361
+ defaultValue: boolean;
362
+ conditions: {
363
+ rules: {
364
+ field: "plan" | "role" | "userGroup" | "accountGroup" | "isSpstUser";
365
+ operator: "is" | "isNot";
366
+ value: string | boolean;
367
+ }[];
368
+ action: "enable" | "disable";
369
+ }[];
370
+ }, params?: RequestParams) => Promise<{
371
+ success: boolean;
372
+ }>;
373
+ /**
374
+ * @description フィーチャーの条件をコードのデフォルトにリセット
375
+ *
376
+ * @tags internal, feature
377
+ * @name ResetConditions
378
+ * @summary resetConditions
379
+ * @request POST:/v1/internal/feature/conditions/reset
380
+ * @secure
381
+ */
382
+ resetConditions: (data: {
383
+ featureKey: "adminSettings" | "featureOverrides" | "reactScan" | "chatDevTool" | "advancedAnalytics" | "betaFeatures" | "modelProviderOpenAI" | "modelProviderGoogle" | "modelProviderAnthropic" | "modelProviderOpenRouter" | "customMcp";
384
+ }, params?: RequestParams) => Promise<{
385
+ success: boolean;
386
+ }>;
387
+ /**
388
+ * @description すべてのグループとそのメンバーを一覧表示
389
+ *
390
+ * @tags internal, feature
391
+ * @name ListGroups
392
+ * @summary listGroups
393
+ * @request GET:/v1/internal/feature/groups
394
+ * @secure
395
+ */
396
+ listGroups: (params?: RequestParams) => Promise<{
397
+ userGroups: {
398
+ key: "developers" | "testers";
399
+ name: string;
400
+ description: string;
401
+ members: {
402
+ userId: string;
403
+ name: string | null;
404
+ email: string | null;
405
+ }[];
406
+ }[];
407
+ accountGroups: {
408
+ key: "internal" | "development" | "earlyAccess";
409
+ name: string;
410
+ description: string;
411
+ members: string[];
412
+ }[];
413
+ }>;
414
+ /**
415
+ * @description 全ユーザー一覧を取得
416
+ *
417
+ * @tags internal, feature
418
+ * @name ListUsers
419
+ * @summary listUsers
420
+ * @request GET:/v1/internal/feature/users
421
+ * @secure
422
+ */
423
+ listUsers: (params?: RequestParams) => Promise<{
424
+ users: {
425
+ id: string;
426
+ name: string;
427
+ email: string;
428
+ }[];
429
+ }>;
430
+ /**
431
+ * @description 全アカウント一覧を取得
432
+ *
433
+ * @tags internal, feature
434
+ * @name ListAccounts
435
+ * @summary listAccounts
436
+ * @request GET:/v1/internal/feature/accounts
437
+ * @secure
438
+ */
439
+ listAccounts: (params?: RequestParams) => Promise<{
440
+ accounts: {
441
+ projectId: string;
442
+ plan: string;
443
+ }[];
444
+ }>;
445
+ /**
446
+ * @description グループにメンバーを追加
447
+ *
448
+ * @tags internal, feature
449
+ * @name AddGroupMember
450
+ * @summary addGroupMember
451
+ * @request POST:/v1/internal/feature/group/member
452
+ * @secure
453
+ */
454
+ addGroupMember: (data: {
455
+ type: "user";
456
+ groupKey: "developers" | "testers";
457
+ userId: string;
458
+ } | {
459
+ type: "account";
460
+ groupKey: "internal" | "development" | "earlyAccess";
461
+ projectId: string;
462
+ }, params?: RequestParams) => Promise<{
463
+ success: boolean;
464
+ }>;
465
+ /**
466
+ * @description グループからメンバーを削除
467
+ *
468
+ * @tags internal, feature
469
+ * @name RemoveGroupMember
470
+ * @summary removeGroupMember
471
+ * @request POST:/v1/internal/feature/group/member/remove
472
+ * @secure
473
+ */
474
+ removeGroupMember: (data: {
475
+ type: "user";
476
+ groupKey: "developers" | "testers";
477
+ userId: string;
478
+ } | {
479
+ type: "account";
480
+ groupKey: "internal" | "development" | "earlyAccess";
481
+ projectId: string;
482
+ }, params?: RequestParams) => Promise<{
483
+ success: boolean;
484
+ }>;
485
+ };
486
+ internalGlobalAgent: {
487
+ /**
488
+ * @description グローバルエージェント一覧を取得する
489
+ *
490
+ * @tags internal, globalAgent
491
+ * @name ListGlobalAgents
492
+ * @summary listGlobalAgents
493
+ * @request GET:/v1/internal/global-agent
494
+ * @secure
495
+ */
496
+ listGlobalAgents: (params?: RequestParams) => Promise<{
497
+ /** @maxLength 30 */
498
+ id: string;
499
+ /** @maxLength 255 */
500
+ projectId: string;
501
+ /** @maxLength 255 */
502
+ name: string;
503
+ /** @maxLength 30 */
504
+ activeConfigId: string;
505
+ /** @format date-time */
506
+ createdAt: string;
507
+ /** @format date-time */
508
+ updatedAt: string;
509
+ createdBy: string | null;
510
+ updatedBy: string | null;
511
+ deletedAt: string | null;
512
+ deletedBy: string | null;
513
+ activeConfig: {
514
+ /** @maxLength 30 */
515
+ id: string;
516
+ /** @maxLength 30 */
517
+ agentId: string;
518
+ /** @maxLength 255 */
519
+ projectId: string;
520
+ /**
521
+ * @min -2147483648
522
+ * @max 2147483647
523
+ */
524
+ version: number;
525
+ configJson: (string | number | boolean | null) | Record<string, any> | null[];
526
+ /** @format date-time */
527
+ createdAt: string;
528
+ /** @format date-time */
529
+ updatedAt: string;
530
+ deletedAt: string | null;
531
+ deletedBy: string | null;
532
+ };
533
+ }[]>;
534
+ /**
535
+ * @description グローバルエージェントを作成する
536
+ *
537
+ * @tags internal, globalAgent
538
+ * @name CreateGlobalAgent
539
+ * @summary createGlobalAgent
540
+ * @request POST:/v1/internal/global-agent
541
+ * @secure
542
+ */
543
+ createGlobalAgent: (data: {
544
+ /** @minLength 1 */
545
+ name: string;
546
+ configJson: {
547
+ defaultModel: "gpt-4.1-mini" | "gpt-4.1-nano" | "o3-mini" | "o4-mini" | "gpt-5" | "gpt-5-mini" | "gpt-5-nano" | "gpt-5.1-high" | "gpt-5.1" | "gemini-2.0-flash" | "gemini-2.5-flash" | "gemini-3-pro" | "claude-sonnet-4-5" | "claude-sonnet-4-5-thinking" | "claude-haiku-4-5" | "claude-haiku-4-5-thinking" | "claude-opus-4-5" | "claude-opus-4-5-thinking" | "gpt-oss-safeguard-20b" | "kimi-k2-thinking" | "kimi-k2-0905" | "grok-4" | "grok-4-fast" | "grok-4-fast-thinking" | "grok-3" | "grok-3-mini";
548
+ defaultThinkingModel: "o3-mini" | "o4-mini" | "gpt-5" | "gpt-5-mini" | "gpt-5-nano" | "gpt-5.1-high" | "gemini-3-pro" | "claude-sonnet-4-5-thinking" | "claude-haiku-4-5-thinking" | "claude-opus-4-5-thinking" | "gpt-oss-safeguard-20b" | "kimi-k2-thinking" | "grok-4" | "grok-4-fast-thinking" | "grok-3-mini";
549
+ systemPrompt: string;
550
+ nativeTools: {
551
+ displayChart?: boolean;
552
+ generateImage?: boolean;
553
+ ecforceFaq?: boolean;
554
+ getCurrentTime?: boolean;
555
+ webSearch?: boolean;
556
+ };
557
+ interfaceFeatures: {
558
+ modelSelection?: boolean;
559
+ attachments?: boolean;
560
+ thinkMode?: boolean;
561
+ };
562
+ allowedDomains: string[];
563
+ internalMcps?: {
564
+ ecforce?: boolean;
565
+ ma?: boolean;
566
+ bi?: boolean;
567
+ cdp?: boolean;
568
+ };
569
+ };
570
+ }, params?: RequestParams) => Promise<{
571
+ agent: {
572
+ /** @maxLength 30 */
573
+ id: string;
574
+ /** @maxLength 255 */
575
+ projectId: string;
576
+ /** @maxLength 255 */
577
+ name: string;
578
+ /** @maxLength 30 */
579
+ activeConfigId: string;
580
+ /** @format date-time */
581
+ createdAt: string;
582
+ /** @format date-time */
583
+ updatedAt: string;
584
+ createdBy: string | null;
585
+ updatedBy: string | null;
586
+ deletedAt: string | null;
587
+ deletedBy: string | null;
588
+ };
589
+ config: {
590
+ /** @maxLength 30 */
591
+ id: string;
592
+ /** @maxLength 30 */
593
+ agentId: string;
594
+ /** @maxLength 255 */
595
+ projectId: string;
596
+ /**
597
+ * @min -2147483648
598
+ * @max 2147483647
599
+ */
600
+ version: number;
601
+ configJson: (string | number | boolean | null) | Record<string, any> | null[];
602
+ /** @format date-time */
603
+ createdAt: string;
604
+ /** @format date-time */
605
+ updatedAt: string;
606
+ deletedAt: string | null;
607
+ deletedBy: string | null;
608
+ };
609
+ }>;
610
+ /**
611
+ * @description グローバルエージェント詳細を取得する
612
+ *
613
+ * @tags internal, globalAgent
614
+ * @name GetGlobalAgent
615
+ * @summary getGlobalAgent
616
+ * @request GET:/v1/internal/global-agent/{id}
617
+ * @secure
618
+ */
619
+ getGlobalAgent: (id: string, params?: RequestParams) => Promise<{
620
+ /** @maxLength 30 */
621
+ id: string;
622
+ /** @maxLength 255 */
623
+ projectId: string;
624
+ /** @maxLength 255 */
625
+ name: string;
626
+ /** @maxLength 30 */
627
+ activeConfigId: string;
628
+ /** @format date-time */
629
+ createdAt: string;
630
+ /** @format date-time */
631
+ updatedAt: string;
632
+ createdBy: string | null;
633
+ updatedBy: string | null;
634
+ deletedAt: string | null;
635
+ deletedBy: string | null;
636
+ activeConfig: {
637
+ /** @maxLength 30 */
638
+ id: string;
639
+ /** @maxLength 30 */
640
+ agentId: string;
641
+ /** @maxLength 255 */
642
+ projectId: string;
643
+ /**
644
+ * @min -2147483648
645
+ * @max 2147483647
646
+ */
647
+ version: number;
648
+ configJson: (string | number | boolean | null) | Record<string, any> | null[];
649
+ /** @format date-time */
650
+ createdAt: string;
651
+ /** @format date-time */
652
+ updatedAt: string;
653
+ deletedAt: string | null;
654
+ deletedBy: string | null;
655
+ };
656
+ }>;
657
+ /**
658
+ * @description グローバルエージェントを更新する
659
+ *
660
+ * @tags internal, globalAgent
661
+ * @name UpdateGlobalAgent
662
+ * @summary updateGlobalAgent
663
+ * @request PUT:/v1/internal/global-agent/{id}
664
+ * @secure
665
+ */
666
+ updateGlobalAgent: (id: string, data?: {
667
+ /** @minLength 1 */
668
+ name?: string;
669
+ configJson?: {
670
+ defaultModel: "gpt-4.1-mini" | "gpt-4.1-nano" | "o3-mini" | "o4-mini" | "gpt-5" | "gpt-5-mini" | "gpt-5-nano" | "gpt-5.1-high" | "gpt-5.1" | "gemini-2.0-flash" | "gemini-2.5-flash" | "gemini-3-pro" | "claude-sonnet-4-5" | "claude-sonnet-4-5-thinking" | "claude-haiku-4-5" | "claude-haiku-4-5-thinking" | "claude-opus-4-5" | "claude-opus-4-5-thinking" | "gpt-oss-safeguard-20b" | "kimi-k2-thinking" | "kimi-k2-0905" | "grok-4" | "grok-4-fast" | "grok-4-fast-thinking" | "grok-3" | "grok-3-mini";
671
+ defaultThinkingModel: "o3-mini" | "o4-mini" | "gpt-5" | "gpt-5-mini" | "gpt-5-nano" | "gpt-5.1-high" | "gemini-3-pro" | "claude-sonnet-4-5-thinking" | "claude-haiku-4-5-thinking" | "claude-opus-4-5-thinking" | "gpt-oss-safeguard-20b" | "kimi-k2-thinking" | "grok-4" | "grok-4-fast-thinking" | "grok-3-mini";
672
+ systemPrompt: string;
673
+ nativeTools: {
674
+ displayChart?: boolean;
675
+ generateImage?: boolean;
676
+ ecforceFaq?: boolean;
677
+ getCurrentTime?: boolean;
678
+ webSearch?: boolean;
679
+ };
680
+ interfaceFeatures: {
681
+ modelSelection?: boolean;
682
+ attachments?: boolean;
683
+ thinkMode?: boolean;
684
+ };
685
+ allowedDomains: string[];
686
+ internalMcps?: {
687
+ ecforce?: boolean;
688
+ ma?: boolean;
689
+ bi?: boolean;
690
+ cdp?: boolean;
691
+ };
692
+ };
693
+ }, params?: RequestParams) => Promise<{
694
+ /** @maxLength 30 */
695
+ id: string;
696
+ /** @maxLength 255 */
697
+ projectId: string;
698
+ /** @maxLength 255 */
699
+ name: string;
700
+ /** @maxLength 30 */
701
+ activeConfigId: string;
702
+ /** @format date-time */
703
+ createdAt: string;
704
+ /** @format date-time */
705
+ updatedAt: string;
706
+ createdBy: string | null;
707
+ updatedBy: string | null;
708
+ deletedAt: string | null;
709
+ deletedBy: string | null;
710
+ activeConfig: {
711
+ /** @maxLength 30 */
712
+ id: string;
713
+ /** @maxLength 30 */
714
+ agentId: string;
715
+ /** @maxLength 255 */
716
+ projectId: string;
717
+ /**
718
+ * @min -2147483648
719
+ * @max 2147483647
720
+ */
721
+ version: number;
722
+ configJson: (string | number | boolean | null) | Record<string, any> | null[];
723
+ /** @format date-time */
724
+ createdAt: string;
725
+ /** @format date-time */
726
+ updatedAt: string;
727
+ deletedAt: string | null;
728
+ deletedBy: string | null;
729
+ };
730
+ }>;
731
+ /**
732
+ * @description グローバルエージェントを削除する
733
+ *
734
+ * @tags internal, globalAgent
735
+ * @name DeleteGlobalAgent
736
+ * @summary deleteGlobalAgent
737
+ * @request DELETE:/v1/internal/global-agent/{id}
738
+ * @secure
739
+ */
740
+ deleteGlobalAgent: (id: string, data?: object, params?: RequestParams) => Promise<{
741
+ success: boolean;
742
+ }>;
743
+ };
744
+ internalChat: {
81
745
  /**
82
746
  * @description ユーザーのセッションを作成してトークンを返す
83
747
  *
84
- * @tags internal
748
+ * @tags internal, chat
85
749
  * @name CreateSession
86
750
  * @summary createSession
87
- * @request POST:/v1/internal/create-session
751
+ * @request POST:/v1/internal/chat/create-session
88
752
  * @secure
89
753
  */
90
754
  createSession: (data: {
@@ -158,8 +822,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
158
822
  /** @minLength 1 */
159
823
  name: string;
160
824
  configJson: {
161
- defaultModel: "gpt-4.1-mini" | "gpt-4.1-nano" | "o3-mini" | "o4-mini" | "gpt-5" | "gpt-5-mini" | "gpt-5-nano" | "gemini-2.0-flash" | "gemini-2.5-flash";
162
- defaultThinkingModel: "o3-mini" | "o4-mini" | "gpt-5" | "gpt-5-mini" | "gpt-5-nano";
825
+ defaultModel: "gpt-4.1-mini" | "gpt-4.1-nano" | "o3-mini" | "o4-mini" | "gpt-5" | "gpt-5-mini" | "gpt-5-nano" | "gpt-5.1-high" | "gpt-5.1" | "gemini-2.0-flash" | "gemini-2.5-flash" | "gemini-3-pro" | "claude-sonnet-4-5" | "claude-sonnet-4-5-thinking" | "claude-haiku-4-5" | "claude-haiku-4-5-thinking" | "claude-opus-4-5" | "claude-opus-4-5-thinking" | "gpt-oss-safeguard-20b" | "kimi-k2-thinking" | "kimi-k2-0905" | "grok-4" | "grok-4-fast" | "grok-4-fast-thinking" | "grok-3" | "grok-3-mini";
826
+ defaultThinkingModel: "o3-mini" | "o4-mini" | "gpt-5" | "gpt-5-mini" | "gpt-5-nano" | "gpt-5.1-high" | "gemini-3-pro" | "claude-sonnet-4-5-thinking" | "claude-haiku-4-5-thinking" | "claude-opus-4-5-thinking" | "gpt-oss-safeguard-20b" | "kimi-k2-thinking" | "grok-4" | "grok-4-fast-thinking" | "grok-3-mini";
163
827
  systemPrompt: string;
164
828
  nativeTools: {
165
829
  displayChart?: boolean;
@@ -174,6 +838,12 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
174
838
  thinkMode?: boolean;
175
839
  };
176
840
  allowedDomains: string[];
841
+ internalMcps?: {
842
+ ecforce?: boolean;
843
+ ma?: boolean;
844
+ bi?: boolean;
845
+ cdp?: boolean;
846
+ };
177
847
  };
178
848
  }, params?: RequestParams) => Promise<{
179
849
  agent: {
@@ -275,8 +945,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
275
945
  /** @minLength 1 */
276
946
  name?: string;
277
947
  configJson?: {
278
- defaultModel: "gpt-4.1-mini" | "gpt-4.1-nano" | "o3-mini" | "o4-mini" | "gpt-5" | "gpt-5-mini" | "gpt-5-nano" | "gemini-2.0-flash" | "gemini-2.5-flash";
279
- defaultThinkingModel: "o3-mini" | "o4-mini" | "gpt-5" | "gpt-5-mini" | "gpt-5-nano";
948
+ defaultModel: "gpt-4.1-mini" | "gpt-4.1-nano" | "o3-mini" | "o4-mini" | "gpt-5" | "gpt-5-mini" | "gpt-5-nano" | "gpt-5.1-high" | "gpt-5.1" | "gemini-2.0-flash" | "gemini-2.5-flash" | "gemini-3-pro" | "claude-sonnet-4-5" | "claude-sonnet-4-5-thinking" | "claude-haiku-4-5" | "claude-haiku-4-5-thinking" | "claude-opus-4-5" | "claude-opus-4-5-thinking" | "gpt-oss-safeguard-20b" | "kimi-k2-thinking" | "kimi-k2-0905" | "grok-4" | "grok-4-fast" | "grok-4-fast-thinking" | "grok-3" | "grok-3-mini";
949
+ defaultThinkingModel: "o3-mini" | "o4-mini" | "gpt-5" | "gpt-5-mini" | "gpt-5-nano" | "gpt-5.1-high" | "gemini-3-pro" | "claude-sonnet-4-5-thinking" | "claude-haiku-4-5-thinking" | "claude-opus-4-5-thinking" | "gpt-oss-safeguard-20b" | "kimi-k2-thinking" | "grok-4" | "grok-4-fast-thinking" | "grok-3-mini";
280
950
  systemPrompt: string;
281
951
  nativeTools: {
282
952
  displayChart?: boolean;
@@ -291,6 +961,12 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
291
961
  thinkMode?: boolean;
292
962
  };
293
963
  allowedDomains: string[];
964
+ internalMcps?: {
965
+ ecforce?: boolean;
966
+ ma?: boolean;
967
+ bi?: boolean;
968
+ cdp?: boolean;
969
+ };
294
970
  };
295
971
  }, params?: RequestParams) => Promise<{
296
972
  /** @maxLength 30 */
@@ -348,10 +1024,12 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
348
1024
  * @tags agent
349
1025
  * @name GetInterfaceFeatures
350
1026
  * @summary getInterfaceFeatures
351
- * @request GET:/v1/agent/{id}/interface-features
1027
+ * @request GET:/v1/agent/interface-features
352
1028
  * @secure
353
1029
  */
354
- getInterfaceFeatures: (id: string, params?: RequestParams) => Promise<{
1030
+ getInterfaceFeatures: (query?: {
1031
+ id?: string;
1032
+ }, params?: RequestParams) => Promise<{
355
1033
  modelSelection?: boolean;
356
1034
  attachments?: boolean;
357
1035
  thinkMode?: boolean;
@@ -366,50 +1044,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
366
1044
  * @secure
367
1045
  */
368
1046
  getToolSettings: (data: {
369
- mcps?: {
370
- name: string;
371
- url: string;
372
- headers?: Record<string, string>;
373
- type?: "mcp" | "custom";
374
- }[];
1047
+ agentId?: string;
375
1048
  }, params?: RequestParams) => Promise<Record<string, {
376
1049
  displayName: string;
377
1050
  requireConfirmation: boolean;
378
1051
  description?: string;
379
1052
  }>>;
380
1053
  };
381
- account: {
382
- /**
383
- * @description 所属するアカウント一覧を取得する
384
- *
385
- * @tags account
386
- * @name List
387
- * @summary list
388
- * @request GET:/v1/account
389
- * @secure
390
- */
391
- list: (params?: RequestParams) => Promise<{
392
- /** @maxLength 255 */
393
- projectId: string;
394
- /** @maxLength 255 */
395
- plan: string;
396
- }[]>;
397
- /**
398
- * @description アカウント詳細を取得する
399
- *
400
- * @tags account
401
- * @name Get
402
- * @summary get
403
- * @request GET:/v1/account/{projectId}
404
- * @secure
405
- */
406
- get: (projectId: string, params?: RequestParams) => Promise<{
407
- /** @maxLength 255 */
408
- projectId: string;
409
- /** @maxLength 255 */
410
- plan: string;
411
- }>;
412
- };
413
1054
  apiKeys: {
414
1055
  /**
415
1056
  * @description APIキー一覧を取得する
@@ -536,8 +1177,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
536
1177
  * @secure
537
1178
  */
538
1179
  listMessages: (data: {
539
- /** @minLength 1 */
540
- agentId: string;
1180
+ agentId?: string;
541
1181
  /** @minLength 1 */
542
1182
  chatId: string;
543
1183
  }, params?: RequestParams) => Promise<{
@@ -561,6 +1201,12 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
561
1201
  deletedAt: string | null;
562
1202
  deletedBy: string | null;
563
1203
  isUpvoted: boolean | null;
1204
+ usage: {
1205
+ model?: any;
1206
+ inputTokens: number;
1207
+ outputTokens: number;
1208
+ usedCredits: number;
1209
+ } | null;
564
1210
  }[]>;
565
1211
  /**
566
1212
  * @description ユーザーのチャット一覧を返す
@@ -571,10 +1217,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
571
1217
  * @request POST:/v1/chat/my-list
572
1218
  * @secure
573
1219
  */
574
- myList: (data: {
575
- /** @minLength 1 */
576
- agentId: string;
577
- }, params?: RequestParams) => Promise<{
1220
+ myList: (params?: RequestParams) => Promise<{
578
1221
  /** @maxLength 30 */
579
1222
  id: string;
580
1223
  /** @maxLength 255 */
@@ -582,12 +1225,12 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
582
1225
  /** @maxLength 30 */
583
1226
  agentId: string;
584
1227
  userId: string | null;
585
- chatGuestId: string | null;
586
1228
  title: string | null;
587
1229
  /** @format date-time */
588
1230
  createdAt: string;
589
1231
  /** @format date-time */
590
1232
  updatedAt: string;
1233
+ isGlobalAgent: boolean;
591
1234
  }[]>;
592
1235
  /**
593
1236
  * @description ユーザーのチャットのタイトルを返す
@@ -632,6 +1275,362 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
632
1275
  messageId: string;
633
1276
  }, params?: RequestParams) => Promise<any>;
634
1277
  };
1278
+ members: {
1279
+ /**
1280
+ * @description メンバー一覧を取得する
1281
+ *
1282
+ * @tags member
1283
+ * @name List
1284
+ * @summary list
1285
+ * @request GET:/v1/members
1286
+ * @secure
1287
+ */
1288
+ list: (query?: {
1289
+ q?: string;
1290
+ role?: "owner" | "member" | "viewer";
1291
+ /**
1292
+ * @min 1
1293
+ * @max 9007199254740991
1294
+ * @default 1
1295
+ */
1296
+ page?: number;
1297
+ /**
1298
+ * @min 1
1299
+ * @max 100
1300
+ * @default 10
1301
+ */
1302
+ pageSize?: number;
1303
+ }, params?: RequestParams) => Promise<{
1304
+ items: {
1305
+ id: string;
1306
+ userId: string;
1307
+ role?: any;
1308
+ /** @format date-time */
1309
+ createdAt: string;
1310
+ user: {
1311
+ id: string;
1312
+ name: string;
1313
+ email: string;
1314
+ } | null;
1315
+ }[];
1316
+ pagination: {
1317
+ page: number;
1318
+ pageSize: number;
1319
+ totalCount: number;
1320
+ totalPages: number;
1321
+ };
1322
+ }>;
1323
+ /**
1324
+ * @description メンバー詳細を取得する
1325
+ *
1326
+ * @tags member
1327
+ * @name Get
1328
+ * @summary get
1329
+ * @request GET:/v1/members/{memberId}
1330
+ * @secure
1331
+ */
1332
+ get: (memberId: string, params?: RequestParams) => Promise<{
1333
+ id: string;
1334
+ userId: string;
1335
+ role: string;
1336
+ /** @format date-time */
1337
+ createdAt: string;
1338
+ /** @format date-time */
1339
+ updatedAt: string;
1340
+ user: {
1341
+ id: string;
1342
+ name: string;
1343
+ email: string;
1344
+ /** @format date-time */
1345
+ createdAt: string;
1346
+ } | null;
1347
+ }>;
1348
+ /**
1349
+ * @description メンバーのロールを更新する
1350
+ *
1351
+ * @tags member
1352
+ * @name Update
1353
+ * @summary update
1354
+ * @request PUT:/v1/members/{memberId}
1355
+ * @secure
1356
+ */
1357
+ update: (memberId: string, data: {
1358
+ role: "owner" | "member" | "viewer";
1359
+ }, params?: RequestParams) => Promise<{
1360
+ id: string;
1361
+ userId: string;
1362
+ role?: any;
1363
+ /** @format date-time */
1364
+ createdAt: string;
1365
+ /** @format date-time */
1366
+ updatedAt: string;
1367
+ }>;
1368
+ /**
1369
+ * @description メンバーの使用統計を取得する
1370
+ *
1371
+ * @tags member
1372
+ * @name Usage
1373
+ * @summary usage
1374
+ * @request GET:/v1/members/{memberId}/usage
1375
+ * @secure
1376
+ */
1377
+ usage: (memberId: string, params?: RequestParams) => Promise<{
1378
+ currentPeriod: {
1379
+ billingPeriod: string;
1380
+ totalCredits: number;
1381
+ totalMessages: number;
1382
+ totalChats: number;
1383
+ };
1384
+ usageByModel: {
1385
+ model: string;
1386
+ credits: number;
1387
+ messages: number;
1388
+ }[];
1389
+ usageByAgent: {
1390
+ agentId: string;
1391
+ agentName: string | null;
1392
+ credits: number;
1393
+ messages: number;
1394
+ }[];
1395
+ }>;
1396
+ /**
1397
+ * @description メンバーのチャット履歴を取得する
1398
+ *
1399
+ * @tags member
1400
+ * @name Chats
1401
+ * @summary chats
1402
+ * @request GET:/v1/members/{memberId}/chats
1403
+ * @secure
1404
+ */
1405
+ chats: (memberId: string, query?: {
1406
+ /**
1407
+ * @min 1
1408
+ * @max 9007199254740991
1409
+ * @default 1
1410
+ */
1411
+ page?: number;
1412
+ /**
1413
+ * @min 1
1414
+ * @max 50
1415
+ * @default 10
1416
+ */
1417
+ pageSize?: number;
1418
+ }, params?: RequestParams) => Promise<{
1419
+ items: {
1420
+ id: string;
1421
+ title: string | null;
1422
+ agentId: string;
1423
+ agentName: string | null;
1424
+ messageCount: number;
1425
+ /** @format date-time */
1426
+ createdAt: string;
1427
+ /** @format date-time */
1428
+ updatedAt: string;
1429
+ }[];
1430
+ pagination: {
1431
+ page: number;
1432
+ pageSize: number;
1433
+ totalCount: number;
1434
+ totalPages: number;
1435
+ };
1436
+ }>;
1437
+ /**
1438
+ * @description メンバーの使用イベント履歴を取得する
1439
+ *
1440
+ * @tags member
1441
+ * @name Events
1442
+ * @summary events
1443
+ * @request GET:/v1/members/{memberId}/events
1444
+ * @secure
1445
+ */
1446
+ events: (memberId: string, query?: {
1447
+ /**
1448
+ * @min -9007199254740991
1449
+ * @exclusiveMin 0
1450
+ * @max 9007199254740991
1451
+ * @default 1
1452
+ */
1453
+ page?: number;
1454
+ /**
1455
+ * @min -9007199254740991
1456
+ * @exclusiveMin 0
1457
+ * @max 100
1458
+ * @default 10
1459
+ */
1460
+ pageSize?: number;
1461
+ }, params?: RequestParams) => Promise<{
1462
+ items: {
1463
+ id: string;
1464
+ chatId: string;
1465
+ messageId: string;
1466
+ agentId: string;
1467
+ agentName: string | null;
1468
+ model: string;
1469
+ usedCredits: number;
1470
+ billingPeriod: string;
1471
+ /** @format date-time */
1472
+ createdAt: string;
1473
+ }[];
1474
+ pagination: {
1475
+ page: number;
1476
+ pageSize: number;
1477
+ totalCount: number;
1478
+ totalPages: number;
1479
+ };
1480
+ }>;
1481
+ /**
1482
+ * @description メンバーのフィードバック履歴を取得する
1483
+ *
1484
+ * @tags member
1485
+ * @name Feedback
1486
+ * @summary feedback
1487
+ * @request GET:/v1/members/{memberId}/feedback
1488
+ * @secure
1489
+ */
1490
+ feedback: (memberId: string, query?: {
1491
+ /**
1492
+ * @min 1
1493
+ * @max 9007199254740991
1494
+ * @default 1
1495
+ */
1496
+ page?: number;
1497
+ /**
1498
+ * @min 1
1499
+ * @max 50
1500
+ * @default 10
1501
+ */
1502
+ pageSize?: number;
1503
+ }, params?: RequestParams) => Promise<{
1504
+ items: {
1505
+ id: string;
1506
+ messageId: string;
1507
+ isUpvoted: boolean;
1508
+ reason: string | null;
1509
+ comment: string | null;
1510
+ agentId: string;
1511
+ agentName: string | null;
1512
+ /** @format date-time */
1513
+ createdAt: string;
1514
+ }[];
1515
+ summary: {
1516
+ totalUpvotes: number;
1517
+ totalDownvotes: number;
1518
+ upvoteRate: number;
1519
+ };
1520
+ pagination: {
1521
+ page: number;
1522
+ pageSize: number;
1523
+ totalCount: number;
1524
+ totalPages: number;
1525
+ };
1526
+ }>;
1527
+ /**
1528
+ * @description 複数メンバーのクレジット使用量を取得
1529
+ *
1530
+ * @tags member
1531
+ * @name BatchCredits
1532
+ * @summary batchCredits
1533
+ * @request POST:/v1/members/batch-credits
1534
+ * @secure
1535
+ */
1536
+ batchCredits: (data: {
1537
+ /**
1538
+ * @maxItems 100
1539
+ * @minItems 1
1540
+ */
1541
+ userIds: string[];
1542
+ }, params?: RequestParams) => Promise<{
1543
+ credits: {
1544
+ userId: string;
1545
+ usedCredits: number;
1546
+ }[];
1547
+ billingPeriod: string;
1548
+ }>;
1549
+ };
1550
+ usage: {
1551
+ /**
1552
+ * @description プロジェクトの使用量サマリーを取得する
1553
+ *
1554
+ * @tags usage
1555
+ * @name Summary
1556
+ * @summary summary
1557
+ * @request GET:/v1/usage/summary
1558
+ * @secure
1559
+ */
1560
+ summary: (query?: {
1561
+ period?: string;
1562
+ /** @default "month" */
1563
+ granularity?: "month" | "day";
1564
+ }, params?: RequestParams) => Promise<{
1565
+ totalUsedCredits: number;
1566
+ creditLimit: number;
1567
+ remainingCredits: number | null;
1568
+ billingPeriod: string;
1569
+ dailyBreakdown?: {
1570
+ date: string;
1571
+ usedCredits: number;
1572
+ }[];
1573
+ }>;
1574
+ /**
1575
+ * @description ユーザー別の使用量を取得する
1576
+ *
1577
+ * @tags usage
1578
+ * @name ByUser
1579
+ * @summary byUser
1580
+ * @request GET:/v1/usage/by-user
1581
+ * @secure
1582
+ */
1583
+ byUser: (query?: {
1584
+ period?: string;
1585
+ }, params?: RequestParams) => Promise<{
1586
+ billingPeriod: string;
1587
+ data: {
1588
+ userId: string | null;
1589
+ userName: string | null;
1590
+ usedCredits: number;
1591
+ messageCount: number;
1592
+ }[];
1593
+ }>;
1594
+ /**
1595
+ * @description エージェント別の使用量を取得する
1596
+ *
1597
+ * @tags usage
1598
+ * @name ByAgent
1599
+ * @summary byAgent
1600
+ * @request GET:/v1/usage/by-agent
1601
+ * @secure
1602
+ */
1603
+ byAgent: (query?: {
1604
+ period?: string;
1605
+ }, params?: RequestParams) => Promise<{
1606
+ billingPeriod: string;
1607
+ data: {
1608
+ agentId: string;
1609
+ agentName: string | null;
1610
+ usedCredits: number;
1611
+ messageCount: number;
1612
+ }[];
1613
+ }>;
1614
+ /**
1615
+ * @description モデル別の使用量を取得する
1616
+ *
1617
+ * @tags usage
1618
+ * @name ByModel
1619
+ * @summary byModel
1620
+ * @request GET:/v1/usage/by-model
1621
+ * @secure
1622
+ */
1623
+ byModel: (query?: {
1624
+ period?: string;
1625
+ }, params?: RequestParams) => Promise<{
1626
+ billingPeriod: string;
1627
+ data: {
1628
+ model: string;
1629
+ usedCredits: number;
1630
+ messageCount: number;
1631
+ }[];
1632
+ }>;
1633
+ };
635
1634
  }
636
1635
  export {};
637
1636
  //# sourceMappingURL=index.d.ts.map