@stack-spot/portal-network 0.199.0 → 0.200.0-beta.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.
Files changed (128) hide show
  1. package/CHANGELOG.md +170 -0
  2. package/dist/api/account.d.ts +331 -89
  3. package/dist/api/account.d.ts.map +1 -1
  4. package/dist/api/account.js +203 -46
  5. package/dist/api/account.js.map +1 -1
  6. package/dist/api/accountAssetManager.d.ts +279 -0
  7. package/dist/api/accountAssetManager.d.ts.map +1 -0
  8. package/dist/api/accountAssetManager.js +167 -0
  9. package/dist/api/accountAssetManager.js.map +1 -0
  10. package/dist/api/agent-tools.d.ts +152 -148
  11. package/dist/api/agent-tools.d.ts.map +1 -1
  12. package/dist/api/agent-tools.js +41 -4
  13. package/dist/api/agent-tools.js.map +1 -1
  14. package/dist/api/ai.d.ts +287 -19
  15. package/dist/api/ai.d.ts.map +1 -1
  16. package/dist/api/ai.js +196 -11
  17. package/dist/api/ai.js.map +1 -1
  18. package/dist/api/cloudPlatformHorizon.d.ts +178 -9
  19. package/dist/api/cloudPlatformHorizon.d.ts.map +1 -1
  20. package/dist/api/cloudPlatformHorizon.js +69 -1
  21. package/dist/api/cloudPlatformHorizon.js.map +1 -1
  22. package/dist/api/codeShift.d.ts +107 -6
  23. package/dist/api/codeShift.d.ts.map +1 -1
  24. package/dist/api/codeShift.js +70 -6
  25. package/dist/api/codeShift.js.map +1 -1
  26. package/dist/api/dataIntegration.d.ts +291 -1
  27. package/dist/api/dataIntegration.d.ts.map +1 -1
  28. package/dist/api/dataIntegration.js +254 -0
  29. package/dist/api/dataIntegration.js.map +1 -1
  30. package/dist/api/discover.d.ts +79 -4
  31. package/dist/api/discover.d.ts.map +1 -1
  32. package/dist/api/discover.js +73 -7
  33. package/dist/api/discover.js.map +1 -1
  34. package/dist/api/edpBfa.d.ts +215 -0
  35. package/dist/api/edpBfa.d.ts.map +1 -0
  36. package/dist/api/edpBfa.js +87 -0
  37. package/dist/api/edpBfa.js.map +1 -0
  38. package/dist/api-addresses.d.ts +11 -20
  39. package/dist/api-addresses.d.ts.map +1 -1
  40. package/dist/api-addresses.js +31 -17
  41. package/dist/api-addresses.js.map +1 -1
  42. package/dist/apis-itau.json +16 -0
  43. package/dist/apis.json +16 -0
  44. package/dist/client/account-asset-manager.d.ts +110 -0
  45. package/dist/client/account-asset-manager.d.ts.map +1 -0
  46. package/dist/client/account-asset-manager.js +160 -0
  47. package/dist/client/account-asset-manager.js.map +1 -0
  48. package/dist/client/account.d.ts +11 -9
  49. package/dist/client/account.d.ts.map +1 -1
  50. package/dist/client/account.js +11 -8
  51. package/dist/client/account.js.map +1 -1
  52. package/dist/client/agent-tools.d.ts +35 -2
  53. package/dist/client/agent-tools.d.ts.map +1 -1
  54. package/dist/client/agent-tools.js +26 -3
  55. package/dist/client/agent-tools.js.map +1 -1
  56. package/dist/client/ai.d.ts +160 -2
  57. package/dist/client/ai.d.ts.map +1 -1
  58. package/dist/client/ai.js +120 -2
  59. package/dist/client/ai.js.map +1 -1
  60. package/dist/client/cloud-platform-horizon.d.ts +19 -0
  61. package/dist/client/cloud-platform-horizon.d.ts.map +1 -1
  62. package/dist/client/cloud-platform-horizon.js +19 -1
  63. package/dist/client/cloud-platform-horizon.js.map +1 -1
  64. package/dist/client/code-shift.d.ts +51 -2
  65. package/dist/client/code-shift.d.ts.map +1 -1
  66. package/dist/client/code-shift.js +46 -1
  67. package/dist/client/code-shift.js.map +1 -1
  68. package/dist/client/data-integration.d.ts +30 -0
  69. package/dist/client/data-integration.d.ts.map +1 -1
  70. package/dist/client/data-integration.js +29 -2
  71. package/dist/client/data-integration.js.map +1 -1
  72. package/dist/client/discover.d.ts +16 -2
  73. package/dist/client/discover.d.ts.map +1 -1
  74. package/dist/client/discover.js +28 -1
  75. package/dist/client/discover.js.map +1 -1
  76. package/dist/client/edp-bfa.d.ts +16 -0
  77. package/dist/client/edp-bfa.d.ts.map +1 -0
  78. package/dist/client/edp-bfa.js +24 -0
  79. package/dist/client/edp-bfa.js.map +1 -0
  80. package/dist/client/notification.d.ts +7 -0
  81. package/dist/client/notification.d.ts.map +1 -1
  82. package/dist/client/notification.js +10 -1
  83. package/dist/client/notification.js.map +1 -1
  84. package/dist/client/secrets.d.ts.map +1 -1
  85. package/dist/client/secrets.js +1 -1
  86. package/dist/client/secrets.js.map +1 -1
  87. package/dist/client/workspace-ai.d.ts +5 -5
  88. package/dist/client/workspace-manager.d.ts +15 -0
  89. package/dist/client/workspace-manager.d.ts.map +1 -1
  90. package/dist/client/workspace-manager.js +19 -1
  91. package/dist/client/workspace-manager.js.map +1 -1
  92. package/dist/error/dictionary/accountAssetManager.d.ts +11 -0
  93. package/dist/error/dictionary/accountAssetManager.d.ts.map +1 -0
  94. package/dist/error/dictionary/accountAssetManager.js +11 -0
  95. package/dist/error/dictionary/accountAssetManager.js.map +1 -0
  96. package/dist/index.d.ts +3 -1
  97. package/dist/index.d.ts.map +1 -1
  98. package/dist/index.js +3 -1
  99. package/dist/index.js.map +1 -1
  100. package/dist/network/NetworkClient.js.map +1 -1
  101. package/package.json +2 -2
  102. package/src/api/account.ts +579 -163
  103. package/src/api/accountAssetManager.ts +655 -0
  104. package/src/api/agent-tools.ts +201 -152
  105. package/src/api/ai.ts +520 -24
  106. package/src/api/cloudPlatformHorizon.ts +412 -9
  107. package/src/api/codeShift.ts +210 -9
  108. package/src/api/dataIntegration.ts +635 -1
  109. package/src/api/discover.ts +153 -10
  110. package/src/api/edpBfa.ts +472 -0
  111. package/src/api-addresses.ts +56 -37
  112. package/src/apis-itau.json +16 -0
  113. package/src/apis.json +16 -0
  114. package/src/client/account-asset-manager.ts +100 -0
  115. package/src/client/account.ts +11 -7
  116. package/src/client/agent-tools.ts +17 -3
  117. package/src/client/ai.ts +91 -10
  118. package/src/client/cloud-platform-horizon.ts +12 -4
  119. package/src/client/code-shift.ts +29 -0
  120. package/src/client/data-integration.ts +23 -2
  121. package/src/client/discover.ts +15 -2
  122. package/src/client/edp-bfa.ts +24 -0
  123. package/src/client/notification.ts +6 -1
  124. package/src/client/secrets.ts +1 -1
  125. package/src/client/workspace-manager.ts +13 -0
  126. package/src/error/dictionary/accountAssetManager.ts +12 -0
  127. package/src/index.ts +4 -1
  128. package/src/network/NetworkClient.ts +1 -1
package/src/api/ai.ts CHANGED
@@ -416,6 +416,12 @@ export type QuickCommandsStepRouterRequest = {
416
416
  routes: RouterStepRoute[];
417
417
  max_executions: number;
418
418
  };
419
+ export type QuickCommandsStepScriptRequest = {
420
+ slug: string;
421
+ script: string;
422
+ use_uploaded_files: boolean;
423
+ next_step_slug?: string | null;
424
+ };
419
425
  export type CustomInputRequest = {
420
426
  slug: string;
421
427
  question: string;
@@ -427,7 +433,7 @@ export type QuickCommandsCreateRequest = {
427
433
  "type"?: QuickCommandTypeRequest;
428
434
  description: string;
429
435
  final_result: string;
430
- steps: (QuickCommandsStepFetchRequest | QuickCommandsStepPromptRequest | QuickCommandsStepRouterRequest)[];
436
+ steps: (QuickCommandsStepFetchRequest | QuickCommandsStepPromptRequest | QuickCommandsStepRouterRequest | QuickCommandsStepScriptRequest)[];
431
437
  return_type?: QuickCommandsReturnType | null;
432
438
  preserve_conversation?: boolean;
433
439
  custom_inputs?: CustomInputRequest[] | null;
@@ -439,7 +445,7 @@ export type QuickCommandsCreateRequest = {
439
445
  export type QuickCommandsUpdateRequest = {
440
446
  name?: string | null;
441
447
  description?: string | null;
442
- steps?: (QuickCommandsStepFetchRequest | QuickCommandsStepPromptRequest | QuickCommandsStepRouterRequest)[] | null;
448
+ steps?: (QuickCommandsStepFetchRequest | QuickCommandsStepPromptRequest | QuickCommandsStepRouterRequest | QuickCommandsStepScriptRequest)[] | null;
443
449
  return_type?: QuickCommandsReturnType | null;
444
450
  knowledge_source_slugs?: string[] | null;
445
451
  final_result?: string | null;
@@ -452,7 +458,7 @@ export type QuickCommandsUpdateRequest = {
452
458
  use_only?: boolean | null;
453
459
  use_uploaded_files?: boolean | null;
454
460
  };
455
- export type QuickCommandStepType = "LLM" | "FETCH" | "ROUTER";
461
+ export type QuickCommandStepType = "LLM" | "FETCH" | "ROUTER" | "SCRIPT";
456
462
  export type Method2 = "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
457
463
  export type QuickCommandStepFetchResponse = {
458
464
  slug: string;
@@ -535,6 +541,12 @@ export type QuickCommandsStepRouterResponse = {
535
541
  routes: RouterStepRoute2[];
536
542
  max_executions: number;
537
543
  };
544
+ export type QuickCommandsStepScriptResponse = {
545
+ slug: string;
546
+ "type": QuickCommandStepType;
547
+ script: string;
548
+ use_uploaded_files: boolean;
549
+ };
538
550
  export type CustomInputResponse = {
539
551
  slug: string;
540
552
  question: string;
@@ -548,7 +560,7 @@ export type QuickCommandResponse = {
548
560
  studio_id?: string | null;
549
561
  return_type?: QuickCommandsReturnType | null;
550
562
  final_result?: string | null;
551
- steps?: (QuickCommandStepFetchResponse | QuickCommandStepLlmResponse | QuickCommandsStepRouterResponse)[] | null;
563
+ steps?: (QuickCommandStepFetchResponse | QuickCommandStepLlmResponse | QuickCommandsStepRouterResponse | QuickCommandsStepScriptResponse)[] | null;
552
564
  flow?: {
553
565
  [key: string]: any;
554
566
  } | null;
@@ -571,7 +583,7 @@ export type QuickCommandsMakeACopyRequest = {
571
583
  };
572
584
  export type QuickCommandAnswerStatusResponse = {
573
585
  success: boolean;
574
- next_step_slug: string;
586
+ next_step_slug?: string | null;
575
587
  failure_message?: string | null;
576
588
  input_tokens?: number | null;
577
589
  output_tokens?: number | null;
@@ -588,6 +600,16 @@ export type QuickCommandFetchResponseResult = {
588
600
  data?: string | null;
589
601
  status: number;
590
602
  };
603
+ export type QuickCommandStepScriptStatus = "queued" | "running" | "success" | "failure";
604
+ export type QuickCommandScriptExecutionResponse = {
605
+ status: QuickCommandStepScriptStatus;
606
+ duration?: number | null;
607
+ result?: {
608
+ [key: string]: any;
609
+ } | null;
610
+ logs?: string | null;
611
+ };
612
+ export type QuickCommandStepResult = QuickCommandPromptResponse | QuickCommandFetchResponseResult | QuickCommandScriptExecutionResponse;
591
613
  export type QuickCommandsExecutionRequest = {
592
614
  context?: {
593
615
  [key: string]: any;
@@ -596,7 +618,7 @@ export type QuickCommandsExecutionRequest = {
596
618
  code_selection?: string | null;
597
619
  input_data?: string | null;
598
620
  slugs_executions?: {
599
- [key: string]: string | QuickCommandPromptResponse | QuickCommandFetchResponseResult;
621
+ [key: string]: string | QuickCommandStepResult;
600
622
  } | null;
601
623
  qc_execution_id?: string | null;
602
624
  };
@@ -610,7 +632,7 @@ export type QuickCommandEvaluateStepRouterRequest = {
610
632
  } | null;
611
633
  selected_code?: string | null;
612
634
  slugs_executions: {
613
- [key: string]: QuickCommandPromptResponse | QuickCommandFetchResponseResult;
635
+ [key: string]: QuickCommandStepResult;
614
636
  } | null;
615
637
  };
616
638
  export type QuickCommandEvaluateStepRouterResponse = {
@@ -657,6 +679,7 @@ export type AnswerStatus = {
657
679
  failure_message?: string | null;
658
680
  input_tokens?: number | null;
659
681
  output_tokens?: number | null;
682
+ attempt?: number | null;
660
683
  };
661
684
  export type StepLlm = {
662
685
  duration?: number | null;
@@ -676,7 +699,7 @@ export type Step = {
676
699
  execution_order: number;
677
700
  "type": QuickCommandStepType;
678
701
  step_result: StepFetch | StepLlm | StepRouter | null;
679
- status: string;
702
+ status?: string;
680
703
  };
681
704
  export type QuickCommandExecutionResponse = {
682
705
  execution_id: string;
@@ -687,6 +710,21 @@ export type QuickCommandExecutionResponse = {
687
710
  steps?: Step[] | null;
688
711
  result?: string | null;
689
712
  };
713
+ export type QuickCommandStartScriptRequest = {
714
+ context?: {
715
+ [key: string]: any;
716
+ } | null;
717
+ input_data?: string | {
718
+ [key: string]: any;
719
+ } | null;
720
+ selected_code?: string | null;
721
+ slugs_executions: {
722
+ [key: string]: QuickCommandStepResult;
723
+ } | null;
724
+ };
725
+ export type QuickCommandStartScriptResponse = {
726
+ script_execution_id: string;
727
+ };
690
728
  export type ConversationHistoryAgentEnum = "AI" | "USER";
691
729
  export type ConversationHistoryResponse = {
692
730
  message_id: string;
@@ -697,6 +735,7 @@ export type ConversationHistoryResponse = {
697
735
  [key: string]: any;
698
736
  } | null;
699
737
  updated: string;
738
+ agent_info?: any[] | null;
700
739
  };
701
740
  export type ConversationResponse = {
702
741
  id: string;
@@ -735,6 +774,70 @@ export type DependencyResponse = {
735
774
  delete_contents?: ContentDependencyResponse[] | null;
736
775
  missing_list?: ContentDependencyResponse[] | null;
737
776
  };
777
+ export type TokenTypeEnum = "prompt" | "embedding";
778
+ export type AnalyticsTokensDailyUsageResponseSeriesItem = {
779
+ day: number;
780
+ date: string;
781
+ total_tokens: number;
782
+ };
783
+ export type AnalyticsTokensDailyUsageResponse = {
784
+ year: number;
785
+ month: number;
786
+ series: AnalyticsTokensDailyUsageResponseSeriesItem[];
787
+ consumed_tokens: number;
788
+ consumed_tokens_over_last_month?: number | null;
789
+ purchased_token_limit?: number | null;
790
+ purchased_token_limit_over_last_month?: number | null;
791
+ available_tokens?: number | null;
792
+ available_tokens_over_last_month?: number | null;
793
+ limit_consumed?: number | null;
794
+ limit_consumed_over_last_month?: number | null;
795
+ };
796
+ export type AnalyticsTokensRankingUsersResponse = {
797
+ email: string;
798
+ rank: number;
799
+ total_tokens: number;
800
+ total_share: number;
801
+ overage_tokens: number;
802
+ overage_percentage: number;
803
+ };
804
+ export type AnalyticsTokensRankingUsersResponsePaginated = {
805
+ total_pages: number;
806
+ items: AnalyticsTokensRankingUsersResponse[];
807
+ };
808
+ export type SortDirection = "ASC" | "DESC";
809
+ export type ReviewAnswers = {
810
+ id: string;
811
+ memberId: string;
812
+ comment: string;
813
+ createdAt: string;
814
+ updatedAt?: string | null;
815
+ };
816
+ export type Review = {
817
+ id: string;
818
+ memberId: string;
819
+ rating: number;
820
+ comment: string;
821
+ resourceType: string;
822
+ resourceSlug: string;
823
+ createdAt: string;
824
+ updatedAt?: string | null;
825
+ reviewAnswers?: ReviewAnswers[];
826
+ };
827
+ export type ResourceReviewResponse = {
828
+ items: Review[];
829
+ totalElements: number;
830
+ page: number;
831
+ size: number;
832
+ totalPages: number;
833
+ };
834
+ export type ResourceReviewRequest = {
835
+ rating: number;
836
+ comment?: string | null;
837
+ };
838
+ export type ReviewAnswer = {
839
+ answer: string;
840
+ };
738
841
  export type SourceProjectFile2 = {
739
842
  "type": "project_file";
740
843
  path: string;
@@ -766,6 +869,26 @@ export type ChatResponse3 = {
766
869
  sources: (SourceStackAi | SourceKnowledgeSource | SourceProjectFile3)[];
767
870
  message_id: string | null;
768
871
  };
872
+ export type QuickCommandListResponseV3 = {
873
+ slug: string;
874
+ name: string;
875
+ "type": QuickCommandTypeRequest;
876
+ description: string;
877
+ studio_id?: string | null;
878
+ preserve_conversation: boolean;
879
+ use_selected_code: boolean;
880
+ return_type?: QuickCommandsReturnType | null;
881
+ creator: string | null;
882
+ visibility_level: string;
883
+ use_only: boolean;
884
+ share_context_between_steps?: boolean;
885
+ is_favorite?: boolean;
886
+ id: string;
887
+ };
888
+ export type PaginatedResponseQuickCommandListResponseV3 = {
889
+ total_pages: number;
890
+ items: QuickCommandListResponseV3[];
891
+ };
769
892
  /**
770
893
  * Metrics
771
894
  */
@@ -2120,20 +2243,34 @@ export function changeExternalConfigsV1AccountsExternalConfigPatch({ body }: {
2120
2243
  /**
2121
2244
  * Tokens Usage
2122
2245
  */
2123
- export function tokensUsageV1AccountsTokensUsageGet(opts?: Oazapfts.RequestOpts) {
2246
+ export function tokensUsageV1AccountsTokensUsageGet({ authorization, xAccountId, xMemberId, xUsername }: {
2247
+ authorization: string;
2248
+ xAccountId?: string | null;
2249
+ xMemberId?: string | null;
2250
+ xUsername?: string | null;
2251
+ }, opts?: Oazapfts.RequestOpts) {
2124
2252
  return oazapfts.ok(oazapfts.fetchJson<{
2125
2253
  status: 200;
2126
2254
  data: AccountTokenUsage;
2127
2255
  } | {
2128
2256
  status: 404;
2257
+ } | {
2258
+ status: 422;
2259
+ data: HttpValidationError;
2129
2260
  }>("/v1/accounts/tokens-usage", {
2130
- ...opts
2261
+ ...opts,
2262
+ headers: oazapfts.mergeHeaders(opts?.headers, {
2263
+ authorization,
2264
+ "x-account-id": xAccountId,
2265
+ "x-member-id": xMemberId,
2266
+ "x-username": xUsername
2267
+ })
2131
2268
  }));
2132
2269
  }
2133
2270
  /**
2134
- * Current
2271
+ * Total
2135
2272
  */
2136
- export function currentV1TokensUsageTotalGet({ authorization, xAccountId, xMemberId, xUsername }: {
2273
+ export function totalV1TokensUsageTotalGet({ authorization, xAccountId, xMemberId, xUsername }: {
2137
2274
  authorization: string;
2138
2275
  xAccountId?: string | null;
2139
2276
  xMemberId?: string | null;
@@ -2161,8 +2298,8 @@ export function currentV1TokensUsageTotalGet({ authorization, xAccountId, xMembe
2161
2298
  * Current
2162
2299
  */
2163
2300
  export function currentV1TokensUsageCurrentGet({ year, month, authorization, xAccountId, xMemberId, xUsername }: {
2164
- year: number;
2165
- month: number;
2301
+ year?: number | null;
2302
+ month?: number | null;
2166
2303
  authorization: string;
2167
2304
  xAccountId?: string | null;
2168
2305
  xMemberId?: string | null;
@@ -2726,9 +2863,9 @@ export function forkV1QuickCommandsSlugForkPost({ slug, authorization, xAccountI
2726
2863
  })));
2727
2864
  }
2728
2865
  /**
2729
- * Get Quick Command
2866
+ * Check Quick Command Exists
2730
2867
  */
2731
- export function getQuickCommandV1QuickCommandsSlugExistsGet({ slug, authorization, xAccountId, xMemberId, xUsername }: {
2868
+ export function checkQuickCommandExistsV1QuickCommandsSlugExistsGet({ slug, authorization, xAccountId, xMemberId, xUsername }: {
2732
2869
  slug: string;
2733
2870
  authorization: string;
2734
2871
  xAccountId?: string | null;
@@ -3142,6 +3279,66 @@ export function runFetchStepV1QuickCommandsSlugStepsStepSlugFetchRunPost({ slug,
3142
3279
  })
3143
3280
  })));
3144
3281
  }
3282
+ /**
3283
+ * Starts the execution of a step with a user defined script
3284
+ */
3285
+ export function startScriptStepV1QuickCommandsSlugStepsStepSlugStartScriptPost({ slug, stepSlug, authorization, xAccountId, xMemberId, xUsername, quickCommandStartScriptRequest }: {
3286
+ slug: string;
3287
+ stepSlug: string;
3288
+ authorization: string;
3289
+ xAccountId?: string | null;
3290
+ xMemberId?: string | null;
3291
+ xUsername?: string | null;
3292
+ quickCommandStartScriptRequest: QuickCommandStartScriptRequest;
3293
+ }, opts?: Oazapfts.RequestOpts) {
3294
+ return oazapfts.ok(oazapfts.fetchJson<{
3295
+ status: 202;
3296
+ data: QuickCommandStartScriptResponse;
3297
+ } | {
3298
+ status: 404;
3299
+ } | {
3300
+ status: 422;
3301
+ data: HttpValidationError;
3302
+ }>(`/v1/quick-commands/${encodeURIComponent(slug)}/steps/${encodeURIComponent(stepSlug)}/start-script`, oazapfts.json({
3303
+ ...opts,
3304
+ method: "POST",
3305
+ body: quickCommandStartScriptRequest,
3306
+ headers: oazapfts.mergeHeaders(opts?.headers, {
3307
+ authorization,
3308
+ "x-account-id": xAccountId,
3309
+ "x-member-id": xMemberId,
3310
+ "x-username": xUsername
3311
+ })
3312
+ })));
3313
+ }
3314
+ /**
3315
+ * Get the status of a script execution step
3316
+ */
3317
+ export function getScriptExecutionStatusV1QuickCommandsScriptExecutionsScriptExecutionIdGet({ scriptExecutionId, authorization, xAccountId, xMemberId, xUsername }: {
3318
+ scriptExecutionId: string;
3319
+ authorization: string;
3320
+ xAccountId?: string | null;
3321
+ xMemberId?: string | null;
3322
+ xUsername?: string | null;
3323
+ }, opts?: Oazapfts.RequestOpts) {
3324
+ return oazapfts.ok(oazapfts.fetchJson<{
3325
+ status: 200;
3326
+ data: QuickCommandScriptExecutionResponse;
3327
+ } | {
3328
+ status: 404;
3329
+ } | {
3330
+ status: 422;
3331
+ data: HttpValidationError;
3332
+ }>(`/v1/quick-commands/script-executions/${encodeURIComponent(scriptExecutionId)}`, {
3333
+ ...opts,
3334
+ headers: oazapfts.mergeHeaders(opts?.headers, {
3335
+ authorization,
3336
+ "x-account-id": xAccountId,
3337
+ "x-member-id": xMemberId,
3338
+ "x-username": xUsername
3339
+ })
3340
+ }));
3341
+ }
3145
3342
  /**
3146
3343
  * List Conversations
3147
3344
  */
@@ -3428,14 +3625,18 @@ export function getContentDependenciesV1ContentContentTypeContentIdDependenciesG
3428
3625
  /**
3429
3626
  * Tokens Daily Usage
3430
3627
  */
3431
- export function tokensDailyUsageV1AnalyticsTokensDailyUsageGet({ month, year, accountSlug }: {
3628
+ export function tokensDailyUsageV1AnalyticsTokensDailyUsageGet({ month, year, tokenType, authorization, xAccountId, xMemberId, xUsername }: {
3432
3629
  month: number;
3433
3630
  year: number;
3434
- accountSlug?: string;
3631
+ tokenType: TokenTypeEnum;
3632
+ authorization: string;
3633
+ xAccountId?: string | null;
3634
+ xMemberId?: string | null;
3635
+ xUsername?: string | null;
3435
3636
  }, opts?: Oazapfts.RequestOpts) {
3436
3637
  return oazapfts.ok(oazapfts.fetchJson<{
3437
3638
  status: 200;
3438
- data: any;
3639
+ data: AnalyticsTokensDailyUsageResponse;
3439
3640
  } | {
3440
3641
  status: 404;
3441
3642
  } | {
@@ -3444,23 +3645,34 @@ export function tokensDailyUsageV1AnalyticsTokensDailyUsageGet({ month, year, ac
3444
3645
  }>(`/v1/analytics/tokens/daily-usage${QS.query(QS.explode({
3445
3646
  month,
3446
3647
  year,
3447
- account_slug: accountSlug
3648
+ token_type: tokenType
3448
3649
  }))}`, {
3449
- ...opts
3650
+ ...opts,
3651
+ headers: oazapfts.mergeHeaders(opts?.headers, {
3652
+ authorization,
3653
+ "x-account-id": xAccountId,
3654
+ "x-member-id": xMemberId,
3655
+ "x-username": xUsername
3656
+ })
3450
3657
  }));
3451
3658
  }
3452
3659
  /**
3453
3660
  * Tokens By User
3454
3661
  */
3455
- export function tokensByUserV1AnalyticsTokensByUserGet({ month, year, page, pageSize }: {
3662
+ export function tokensByUserV1AnalyticsTokensByUserGet({ month, year, tokenType, page, pageSize, authorization, xAccountId, xMemberId, xUsername }: {
3456
3663
  month: number;
3457
3664
  year: number;
3665
+ tokenType: TokenTypeEnum;
3458
3666
  page?: number;
3459
3667
  pageSize?: number;
3668
+ authorization: string;
3669
+ xAccountId?: string | null;
3670
+ xMemberId?: string | null;
3671
+ xUsername?: string | null;
3460
3672
  }, opts?: Oazapfts.RequestOpts) {
3461
3673
  return oazapfts.ok(oazapfts.fetchJson<{
3462
3674
  status: 200;
3463
- data: any;
3675
+ data: AnalyticsTokensRankingUsersResponsePaginated;
3464
3676
  } | {
3465
3677
  status: 404;
3466
3678
  } | {
@@ -3469,10 +3681,250 @@ export function tokensByUserV1AnalyticsTokensByUserGet({ month, year, page, page
3469
3681
  }>(`/v1/analytics/tokens/by-user${QS.query(QS.explode({
3470
3682
  month,
3471
3683
  year,
3684
+ token_type: tokenType,
3472
3685
  page,
3473
3686
  page_size: pageSize
3474
3687
  }))}`, {
3475
- ...opts
3688
+ ...opts,
3689
+ headers: oazapfts.mergeHeaders(opts?.headers, {
3690
+ authorization,
3691
+ "x-account-id": xAccountId,
3692
+ "x-member-id": xMemberId,
3693
+ "x-username": xUsername
3694
+ })
3695
+ }));
3696
+ }
3697
+ /**
3698
+ * Get Reviews By Resource
3699
+ */
3700
+ export function getReviewsByResourceV1ResourcesResourceTypeSlugResourceSlugReviewsGet({ resourceSlug, resourceTypeSlug, size, page, sort, direction, authorization, xAccountId, xMemberId, xUsername }: {
3701
+ resourceSlug: string;
3702
+ resourceTypeSlug: string;
3703
+ size?: number | null;
3704
+ page?: number | null;
3705
+ sort?: string | null;
3706
+ direction?: SortDirection | null;
3707
+ authorization: string;
3708
+ xAccountId?: string | null;
3709
+ xMemberId?: string | null;
3710
+ xUsername?: string | null;
3711
+ }, opts?: Oazapfts.RequestOpts) {
3712
+ return oazapfts.ok(oazapfts.fetchJson<{
3713
+ status: 200;
3714
+ data: ResourceReviewResponse;
3715
+ } | {
3716
+ status: 404;
3717
+ } | {
3718
+ status: 422;
3719
+ data: HttpValidationError;
3720
+ }>(`/v1/resources/${encodeURIComponent(resourceTypeSlug)}/${encodeURIComponent(resourceSlug)}/reviews${QS.query(QS.explode({
3721
+ size,
3722
+ page,
3723
+ sort,
3724
+ direction
3725
+ }))}`, {
3726
+ ...opts,
3727
+ headers: oazapfts.mergeHeaders(opts?.headers, {
3728
+ authorization,
3729
+ "x-account-id": xAccountId,
3730
+ "x-member-id": xMemberId,
3731
+ "x-username": xUsername
3732
+ })
3733
+ }));
3734
+ }
3735
+ /**
3736
+ * Create Resource Review
3737
+ */
3738
+ export function createResourceReviewV1ResourcesResourceTypeSlugResourceSlugReviewsPost({ resourceSlug, resourceTypeSlug, authorization, xAccountId, xMemberId, xUsername, resourceReviewRequest }: {
3739
+ resourceSlug: string;
3740
+ resourceTypeSlug: string;
3741
+ authorization: string;
3742
+ xAccountId?: string | null;
3743
+ xMemberId?: string | null;
3744
+ xUsername?: string | null;
3745
+ resourceReviewRequest: ResourceReviewRequest;
3746
+ }, opts?: Oazapfts.RequestOpts) {
3747
+ return oazapfts.ok(oazapfts.fetchJson<{
3748
+ status: 200;
3749
+ data: any;
3750
+ } | {
3751
+ status: 404;
3752
+ } | {
3753
+ status: 422;
3754
+ data: HttpValidationError;
3755
+ }>(`/v1/resources/${encodeURIComponent(resourceTypeSlug)}/${encodeURIComponent(resourceSlug)}/reviews`, oazapfts.json({
3756
+ ...opts,
3757
+ method: "POST",
3758
+ body: resourceReviewRequest,
3759
+ headers: oazapfts.mergeHeaders(opts?.headers, {
3760
+ authorization,
3761
+ "x-account-id": xAccountId,
3762
+ "x-member-id": xMemberId,
3763
+ "x-username": xUsername
3764
+ })
3765
+ })));
3766
+ }
3767
+ /**
3768
+ * Create Answer For Review
3769
+ */
3770
+ export function createAnswerForReviewV1ResourcesResourceTypeSlugResourceSlugReviewsReviewIdAnswersPost({ resourceSlug, resourceTypeSlug, reviewId, authorization, xAccountId, xMemberId, xUsername, reviewAnswer }: {
3771
+ resourceSlug: string;
3772
+ resourceTypeSlug: string;
3773
+ reviewId: string;
3774
+ authorization: string;
3775
+ xAccountId?: string | null;
3776
+ xMemberId?: string | null;
3777
+ xUsername?: string | null;
3778
+ reviewAnswer: ReviewAnswer;
3779
+ }, opts?: Oazapfts.RequestOpts) {
3780
+ return oazapfts.ok(oazapfts.fetchJson<{
3781
+ status: 200;
3782
+ data: any;
3783
+ } | {
3784
+ status: 404;
3785
+ } | {
3786
+ status: 422;
3787
+ data: HttpValidationError;
3788
+ }>(`/v1/resources/${encodeURIComponent(resourceTypeSlug)}/${encodeURIComponent(resourceSlug)}/reviews/${encodeURIComponent(reviewId)}/answers`, oazapfts.json({
3789
+ ...opts,
3790
+ method: "POST",
3791
+ body: reviewAnswer,
3792
+ headers: oazapfts.mergeHeaders(opts?.headers, {
3793
+ authorization,
3794
+ "x-account-id": xAccountId,
3795
+ "x-member-id": xMemberId,
3796
+ "x-username": xUsername
3797
+ })
3798
+ })));
3799
+ }
3800
+ /**
3801
+ * Update Resource Review
3802
+ */
3803
+ export function updateResourceReviewV1ResourcesResourceTypeSlugResourceSlugReviewsReviewIdPatch({ resourceSlug, resourceTypeSlug, reviewId, authorization, xAccountId, xMemberId, xUsername, resourceReviewRequest }: {
3804
+ resourceSlug: string;
3805
+ resourceTypeSlug: string;
3806
+ reviewId: string;
3807
+ authorization: string;
3808
+ xAccountId?: string | null;
3809
+ xMemberId?: string | null;
3810
+ xUsername?: string | null;
3811
+ resourceReviewRequest: ResourceReviewRequest;
3812
+ }, opts?: Oazapfts.RequestOpts) {
3813
+ return oazapfts.ok(oazapfts.fetchJson<{
3814
+ status: 200;
3815
+ data: any;
3816
+ } | {
3817
+ status: 404;
3818
+ } | {
3819
+ status: 422;
3820
+ data: HttpValidationError;
3821
+ }>(`/v1/resources/${encodeURIComponent(resourceTypeSlug)}/${encodeURIComponent(resourceSlug)}/reviews/${encodeURIComponent(reviewId)}`, oazapfts.json({
3822
+ ...opts,
3823
+ method: "PATCH",
3824
+ body: resourceReviewRequest,
3825
+ headers: oazapfts.mergeHeaders(opts?.headers, {
3826
+ authorization,
3827
+ "x-account-id": xAccountId,
3828
+ "x-member-id": xMemberId,
3829
+ "x-username": xUsername
3830
+ })
3831
+ })));
3832
+ }
3833
+ /**
3834
+ * Delete Resource Review
3835
+ */
3836
+ export function deleteResourceReviewV1ResourcesResourceTypeSlugResourceSlugReviewsReviewIdDelete({ resourceSlug, resourceTypeSlug, reviewId, authorization, xAccountId, xMemberId, xUsername }: {
3837
+ resourceSlug: string;
3838
+ resourceTypeSlug: string;
3839
+ reviewId: string;
3840
+ authorization: string;
3841
+ xAccountId?: string | null;
3842
+ xMemberId?: string | null;
3843
+ xUsername?: string | null;
3844
+ }, opts?: Oazapfts.RequestOpts) {
3845
+ return oazapfts.ok(oazapfts.fetchJson<{
3846
+ status: 200;
3847
+ data: any;
3848
+ } | {
3849
+ status: 404;
3850
+ } | {
3851
+ status: 422;
3852
+ data: HttpValidationError;
3853
+ }>(`/v1/resources/${encodeURIComponent(resourceTypeSlug)}/${encodeURIComponent(resourceSlug)}/reviews/${encodeURIComponent(reviewId)}`, {
3854
+ ...opts,
3855
+ method: "DELETE",
3856
+ headers: oazapfts.mergeHeaders(opts?.headers, {
3857
+ authorization,
3858
+ "x-account-id": xAccountId,
3859
+ "x-member-id": xMemberId,
3860
+ "x-username": xUsername
3861
+ })
3862
+ }));
3863
+ }
3864
+ /**
3865
+ * Update Review Comment
3866
+ */
3867
+ export function updateReviewCommentV1ResourcesResourceTypeSlugResourceSlugReviewsReviewIdAnswersAnswerIdPatch({ resourceSlug, resourceTypeSlug, reviewId, answerId, authorization, xAccountId, xMemberId, xUsername, reviewAnswer }: {
3868
+ resourceSlug: string;
3869
+ resourceTypeSlug: string;
3870
+ reviewId: string;
3871
+ answerId: string;
3872
+ authorization: string;
3873
+ xAccountId?: string | null;
3874
+ xMemberId?: string | null;
3875
+ xUsername?: string | null;
3876
+ reviewAnswer: ReviewAnswer;
3877
+ }, opts?: Oazapfts.RequestOpts) {
3878
+ return oazapfts.ok(oazapfts.fetchJson<{
3879
+ status: 200;
3880
+ data: any;
3881
+ } | {
3882
+ status: 404;
3883
+ } | {
3884
+ status: 422;
3885
+ data: HttpValidationError;
3886
+ }>(`/v1/resources/${encodeURIComponent(resourceTypeSlug)}/${encodeURIComponent(resourceSlug)}/reviews/${encodeURIComponent(reviewId)}/answers/${encodeURIComponent(answerId)}`, oazapfts.json({
3887
+ ...opts,
3888
+ method: "PATCH",
3889
+ body: reviewAnswer,
3890
+ headers: oazapfts.mergeHeaders(opts?.headers, {
3891
+ authorization,
3892
+ "x-account-id": xAccountId,
3893
+ "x-member-id": xMemberId,
3894
+ "x-username": xUsername
3895
+ })
3896
+ })));
3897
+ }
3898
+ /**
3899
+ * Delete Review Comment
3900
+ */
3901
+ export function deleteReviewCommentV1ResourcesResourceTypeSlugResourceSlugReviewsReviewIdAnswersAnswerIdDelete({ resourceSlug, resourceTypeSlug, reviewId, answerId, authorization, xAccountId, xMemberId, xUsername }: {
3902
+ resourceSlug: string;
3903
+ resourceTypeSlug: string;
3904
+ reviewId: string;
3905
+ answerId: string;
3906
+ authorization: string;
3907
+ xAccountId?: string | null;
3908
+ xMemberId?: string | null;
3909
+ xUsername?: string | null;
3910
+ }, opts?: Oazapfts.RequestOpts) {
3911
+ return oazapfts.ok(oazapfts.fetchJson<{
3912
+ status: 200;
3913
+ data: any;
3914
+ } | {
3915
+ status: 404;
3916
+ } | {
3917
+ status: 422;
3918
+ data: HttpValidationError;
3919
+ }>(`/v1/resources/${encodeURIComponent(resourceTypeSlug)}/${encodeURIComponent(resourceSlug)}/reviews/${encodeURIComponent(reviewId)}/answers/${encodeURIComponent(answerId)}`, {
3920
+ ...opts,
3921
+ method: "DELETE",
3922
+ headers: oazapfts.mergeHeaders(opts?.headers, {
3923
+ authorization,
3924
+ "x-account-id": xAccountId,
3925
+ "x-member-id": xMemberId,
3926
+ "x-username": xUsername
3927
+ })
3476
3928
  }));
3477
3929
  }
3478
3930
  /**
@@ -3593,3 +4045,47 @@ export function devAssistantV3V3ChatPost({ authorization, xAccountId, xMemberId,
3593
4045
  })
3594
4046
  })));
3595
4047
  }
4048
+ /**
4049
+ * List All
4050
+ */
4051
+ export function listAllV3QuickCommandsGet({ name, slug, size, page, visibilityList, order, isRemote, types, authorization, xAccountId, xMemberId, xUsername }: {
4052
+ name?: string | null;
4053
+ slug?: string | null;
4054
+ size?: number;
4055
+ page?: number;
4056
+ visibilityList?: VisibilityLevelEnum[] | null;
4057
+ order?: OrderEnum | null;
4058
+ isRemote?: boolean;
4059
+ types?: QuickCommandTypeRequest[] | null;
4060
+ authorization: string;
4061
+ xAccountId?: string | null;
4062
+ xMemberId?: string | null;
4063
+ xUsername?: string | null;
4064
+ }, opts?: Oazapfts.RequestOpts) {
4065
+ return oazapfts.ok(oazapfts.fetchJson<{
4066
+ status: 200;
4067
+ data: PaginatedResponseQuickCommandListResponseV3;
4068
+ } | {
4069
+ status: 404;
4070
+ } | {
4071
+ status: 422;
4072
+ data: HttpValidationError;
4073
+ }>(`/v3/quick-commands${QS.query(QS.explode({
4074
+ name,
4075
+ slug,
4076
+ size,
4077
+ page,
4078
+ visibility_list: visibilityList,
4079
+ order,
4080
+ is_remote: isRemote,
4081
+ types
4082
+ }))}`, {
4083
+ ...opts,
4084
+ headers: oazapfts.mergeHeaders(opts?.headers, {
4085
+ authorization,
4086
+ "x-account-id": xAccountId,
4087
+ "x-member-id": xMemberId,
4088
+ "x-username": xUsername
4089
+ })
4090
+ }));
4091
+ }