@stack-spot/portal-network 0.196.0 → 0.197.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 (104) hide show
  1. package/CHANGELOG.md +124 -0
  2. package/dist/api/agent-tools.d.ts +139 -148
  3. package/dist/api/agent-tools.d.ts.map +1 -1
  4. package/dist/api/agent-tools.js +41 -4
  5. package/dist/api/agent-tools.js.map +1 -1
  6. package/dist/api/agent.d.ts +55 -55
  7. package/dist/api/agent.d.ts.map +1 -1
  8. package/dist/api/ai.d.ts +288 -19
  9. package/dist/api/ai.d.ts.map +1 -1
  10. package/dist/api/ai.js +196 -11
  11. package/dist/api/ai.js.map +1 -1
  12. package/dist/api/cloudPlatformHorizon.d.ts +178 -9
  13. package/dist/api/cloudPlatformHorizon.d.ts.map +1 -1
  14. package/dist/api/cloudPlatformHorizon.js +69 -1
  15. package/dist/api/cloudPlatformHorizon.js.map +1 -1
  16. package/dist/api/codeShift.d.ts +316 -32
  17. package/dist/api/codeShift.d.ts.map +1 -1
  18. package/dist/api/codeShift.js +172 -8
  19. package/dist/api/codeShift.js.map +1 -1
  20. package/dist/api/dataIntegration.d.ts +291 -1
  21. package/dist/api/dataIntegration.d.ts.map +1 -1
  22. package/dist/api/dataIntegration.js +254 -0
  23. package/dist/api/dataIntegration.js.map +1 -1
  24. package/dist/api/discover.d.ts +95 -12
  25. package/dist/api/discover.d.ts.map +1 -1
  26. package/dist/api/discover.js +78 -2
  27. package/dist/api/discover.js.map +1 -1
  28. package/dist/api-addresses.d.ts.map +1 -1
  29. package/dist/client/account.d.ts +233 -233
  30. package/dist/client/account.d.ts.map +1 -1
  31. package/dist/client/agent-tools.d.ts +159 -126
  32. package/dist/client/agent-tools.d.ts.map +1 -1
  33. package/dist/client/agent-tools.js +35 -4
  34. package/dist/client/agent-tools.js.map +1 -1
  35. package/dist/client/agent.d.ts +46 -46
  36. package/dist/client/agent.d.ts.map +1 -1
  37. package/dist/client/ai.d.ts +134 -108
  38. package/dist/client/ai.d.ts.map +1 -1
  39. package/dist/client/ai.js +29 -2
  40. package/dist/client/ai.js.map +1 -1
  41. package/dist/client/api-management.d.ts +2 -2
  42. package/dist/client/cloud-account.d.ts +13 -13
  43. package/dist/client/cloud-platform-horizon.d.ts +38 -19
  44. package/dist/client/cloud-platform-horizon.d.ts.map +1 -1
  45. package/dist/client/cloud-platform-horizon.js +19 -1
  46. package/dist/client/cloud-platform-horizon.js.map +1 -1
  47. package/dist/client/cloud-platform.d.ts +50 -50
  48. package/dist/client/cloud-runtimes.d.ts +4 -4
  49. package/dist/client/cloud-services.d.ts +17 -17
  50. package/dist/client/cloud-services.d.ts.map +1 -1
  51. package/dist/client/code-shift.d.ts +338 -265
  52. package/dist/client/code-shift.d.ts.map +1 -1
  53. package/dist/client/code-shift.js +64 -1
  54. package/dist/client/code-shift.js.map +1 -1
  55. package/dist/client/content.d.ts +127 -132
  56. package/dist/client/content.d.ts.map +1 -1
  57. package/dist/client/data-integration.d.ts +85 -55
  58. package/dist/client/data-integration.d.ts.map +1 -1
  59. package/dist/client/data-integration.js +22 -2
  60. package/dist/client/data-integration.js.map +1 -1
  61. package/dist/client/discover.d.ts +29 -9
  62. package/dist/client/discover.d.ts.map +1 -1
  63. package/dist/client/discover.js +236 -1
  64. package/dist/client/discover.js.map +1 -1
  65. package/dist/client/event-bus.d.ts.map +1 -1
  66. package/dist/client/gen-ai-inference.d.ts +20 -20
  67. package/dist/client/insights.d.ts +7 -7
  68. package/dist/client/notification.d.ts +10 -10
  69. package/dist/client/runtime-manager.d.ts +8 -8
  70. package/dist/client/secrets.d.ts.map +1 -1
  71. package/dist/client/secrets.js +1 -1
  72. package/dist/client/secrets.js.map +1 -1
  73. package/dist/client/types.d.ts +14 -0
  74. package/dist/client/types.d.ts.map +1 -1
  75. package/dist/client/workflow.d.ts +10 -10
  76. package/dist/client/workspace-ai.d.ts +53 -53
  77. package/dist/client/workspace-manager.d.ts +77 -77
  78. package/dist/client/workspace-search.d.ts +2 -2
  79. package/dist/client/workspace.d.ts +58 -105
  80. package/dist/client/workspace.d.ts.map +1 -1
  81. package/dist/error/dictionary/cloud-platform.d.ts +6 -0
  82. package/dist/error/dictionary/cloud-platform.d.ts.map +1 -1
  83. package/dist/error/dictionary/cloud-platform.js +6 -0
  84. package/dist/error/dictionary/cloud-platform.js.map +1 -1
  85. package/dist/utils/StreamedJson.d.ts.map +1 -1
  86. package/dist/utils/StreamedJson.js +9 -1
  87. package/dist/utils/StreamedJson.js.map +1 -1
  88. package/package.json +2 -2
  89. package/src/api/agent-tools.ts +186 -150
  90. package/src/api/ai.ts +521 -24
  91. package/src/api/cloudPlatformHorizon.ts +412 -9
  92. package/src/api/codeShift.ts +631 -37
  93. package/src/api/dataIntegration.ts +635 -1
  94. package/src/api/discover.ts +180 -14
  95. package/src/client/agent-tools.ts +26 -4
  96. package/src/client/ai.ts +25 -10
  97. package/src/client/cloud-platform-horizon.ts +12 -4
  98. package/src/client/code-shift.ts +40 -1
  99. package/src/client/data-integration.ts +15 -1
  100. package/src/client/discover.ts +233 -3
  101. package/src/client/secrets.ts +1 -1
  102. package/src/client/types.ts +17 -2
  103. package/src/error/dictionary/cloud-platform.ts +6 -0
  104. package/src/utils/StreamedJson.tsx +9 -2
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,9 @@ export type ConversationHistoryResponse = {
697
735
  [key: string]: any;
698
736
  } | null;
699
737
  updated: string;
738
+ agent_info?: {
739
+ [key: string]: any;
740
+ } | null;
700
741
  };
701
742
  export type ConversationResponse = {
702
743
  id: string;
@@ -735,6 +776,70 @@ export type DependencyResponse = {
735
776
  delete_contents?: ContentDependencyResponse[] | null;
736
777
  missing_list?: ContentDependencyResponse[] | null;
737
778
  };
779
+ export type TokenTypeEnum = "prompt" | "embedding";
780
+ export type AnalyticsTokensDailyUsageResponseSeriesItem = {
781
+ day: number;
782
+ date: string;
783
+ total_tokens: number;
784
+ };
785
+ export type AnalyticsTokensDailyUsageResponse = {
786
+ year: number;
787
+ month: number;
788
+ series: AnalyticsTokensDailyUsageResponseSeriesItem[];
789
+ consumed_tokens: number;
790
+ consumed_tokens_over_last_month?: number | null;
791
+ purchased_token_limit?: number | null;
792
+ purchased_token_limit_over_last_month?: number | null;
793
+ available_tokens?: number | null;
794
+ available_tokens_over_last_month?: number | null;
795
+ limit_consumed?: number | null;
796
+ limit_consumed_over_last_month?: number | null;
797
+ };
798
+ export type AnalyticsTokensRankingUsersResponse = {
799
+ email: string;
800
+ rank: number;
801
+ total_tokens: number;
802
+ total_share: number;
803
+ overage_tokens: number;
804
+ overage_percentage: number;
805
+ };
806
+ export type AnalyticsTokensRankingUsersResponsePaginated = {
807
+ total_pages: number;
808
+ items: AnalyticsTokensRankingUsersResponse[];
809
+ };
810
+ export type SortDirection = "ASC" | "DESC";
811
+ export type ReviewAnswers = {
812
+ id: string;
813
+ memberId: string;
814
+ comment: string;
815
+ createdAt: string;
816
+ updatedAt?: string | null;
817
+ };
818
+ export type Review = {
819
+ id: string;
820
+ memberId: string;
821
+ rating: number;
822
+ comment: string;
823
+ resourceType: string;
824
+ resourceSlug: string;
825
+ createdAt: string;
826
+ updatedAt?: string | null;
827
+ reviewAnswers?: ReviewAnswers[];
828
+ };
829
+ export type ResourceReviewResponse = {
830
+ items: Review[];
831
+ totalElements: number;
832
+ page: number;
833
+ size: number;
834
+ totalPages: number;
835
+ };
836
+ export type ResourceReviewRequest = {
837
+ rating: number;
838
+ comment?: string | null;
839
+ };
840
+ export type ReviewAnswer = {
841
+ answer: string;
842
+ };
738
843
  export type SourceProjectFile2 = {
739
844
  "type": "project_file";
740
845
  path: string;
@@ -766,6 +871,25 @@ export type ChatResponse3 = {
766
871
  sources: (SourceStackAi | SourceKnowledgeSource | SourceProjectFile3)[];
767
872
  message_id: string | null;
768
873
  };
874
+ export type QuickCommandListResponseV3 = {
875
+ slug: string;
876
+ name: string;
877
+ "type": QuickCommandTypeRequest;
878
+ description: string;
879
+ studio_id?: string | null;
880
+ preserve_conversation: boolean;
881
+ use_selected_code: boolean;
882
+ return_type?: QuickCommandsReturnType | null;
883
+ creator: string | null;
884
+ visibility_level: string;
885
+ use_only: boolean;
886
+ share_context_between_steps?: boolean;
887
+ id: string;
888
+ };
889
+ export type PaginatedResponseQuickCommandListResponseV3 = {
890
+ total_pages: number;
891
+ items: QuickCommandListResponseV3[];
892
+ };
769
893
  /**
770
894
  * Metrics
771
895
  */
@@ -2120,20 +2244,34 @@ export function changeExternalConfigsV1AccountsExternalConfigPatch({ body }: {
2120
2244
  /**
2121
2245
  * Tokens Usage
2122
2246
  */
2123
- export function tokensUsageV1AccountsTokensUsageGet(opts?: Oazapfts.RequestOpts) {
2247
+ export function tokensUsageV1AccountsTokensUsageGet({ authorization, xAccountId, xMemberId, xUsername }: {
2248
+ authorization: string;
2249
+ xAccountId?: string | null;
2250
+ xMemberId?: string | null;
2251
+ xUsername?: string | null;
2252
+ }, opts?: Oazapfts.RequestOpts) {
2124
2253
  return oazapfts.ok(oazapfts.fetchJson<{
2125
2254
  status: 200;
2126
2255
  data: AccountTokenUsage;
2127
2256
  } | {
2128
2257
  status: 404;
2258
+ } | {
2259
+ status: 422;
2260
+ data: HttpValidationError;
2129
2261
  }>("/v1/accounts/tokens-usage", {
2130
- ...opts
2262
+ ...opts,
2263
+ headers: oazapfts.mergeHeaders(opts?.headers, {
2264
+ authorization,
2265
+ "x-account-id": xAccountId,
2266
+ "x-member-id": xMemberId,
2267
+ "x-username": xUsername
2268
+ })
2131
2269
  }));
2132
2270
  }
2133
2271
  /**
2134
- * Current
2272
+ * Total
2135
2273
  */
2136
- export function currentV1TokensUsageTotalGet({ authorization, xAccountId, xMemberId, xUsername }: {
2274
+ export function totalV1TokensUsageTotalGet({ authorization, xAccountId, xMemberId, xUsername }: {
2137
2275
  authorization: string;
2138
2276
  xAccountId?: string | null;
2139
2277
  xMemberId?: string | null;
@@ -2161,8 +2299,8 @@ export function currentV1TokensUsageTotalGet({ authorization, xAccountId, xMembe
2161
2299
  * Current
2162
2300
  */
2163
2301
  export function currentV1TokensUsageCurrentGet({ year, month, authorization, xAccountId, xMemberId, xUsername }: {
2164
- year: number;
2165
- month: number;
2302
+ year?: number | null;
2303
+ month?: number | null;
2166
2304
  authorization: string;
2167
2305
  xAccountId?: string | null;
2168
2306
  xMemberId?: string | null;
@@ -2726,9 +2864,9 @@ export function forkV1QuickCommandsSlugForkPost({ slug, authorization, xAccountI
2726
2864
  })));
2727
2865
  }
2728
2866
  /**
2729
- * Get Quick Command
2867
+ * Check Quick Command Exists
2730
2868
  */
2731
- export function getQuickCommandV1QuickCommandsSlugExistsGet({ slug, authorization, xAccountId, xMemberId, xUsername }: {
2869
+ export function checkQuickCommandExistsV1QuickCommandsSlugExistsGet({ slug, authorization, xAccountId, xMemberId, xUsername }: {
2732
2870
  slug: string;
2733
2871
  authorization: string;
2734
2872
  xAccountId?: string | null;
@@ -3142,6 +3280,66 @@ export function runFetchStepV1QuickCommandsSlugStepsStepSlugFetchRunPost({ slug,
3142
3280
  })
3143
3281
  })));
3144
3282
  }
3283
+ /**
3284
+ * Starts the execution of a step with a user defined script
3285
+ */
3286
+ export function startScriptStepV1QuickCommandsSlugStepsStepSlugStartScriptPost({ slug, stepSlug, authorization, xAccountId, xMemberId, xUsername, quickCommandStartScriptRequest }: {
3287
+ slug: string;
3288
+ stepSlug: string;
3289
+ authorization: string;
3290
+ xAccountId?: string | null;
3291
+ xMemberId?: string | null;
3292
+ xUsername?: string | null;
3293
+ quickCommandStartScriptRequest: QuickCommandStartScriptRequest;
3294
+ }, opts?: Oazapfts.RequestOpts) {
3295
+ return oazapfts.ok(oazapfts.fetchJson<{
3296
+ status: 202;
3297
+ data: QuickCommandStartScriptResponse;
3298
+ } | {
3299
+ status: 404;
3300
+ } | {
3301
+ status: 422;
3302
+ data: HttpValidationError;
3303
+ }>(`/v1/quick-commands/${encodeURIComponent(slug)}/steps/${encodeURIComponent(stepSlug)}/start-script`, oazapfts.json({
3304
+ ...opts,
3305
+ method: "POST",
3306
+ body: quickCommandStartScriptRequest,
3307
+ headers: oazapfts.mergeHeaders(opts?.headers, {
3308
+ authorization,
3309
+ "x-account-id": xAccountId,
3310
+ "x-member-id": xMemberId,
3311
+ "x-username": xUsername
3312
+ })
3313
+ })));
3314
+ }
3315
+ /**
3316
+ * Get the status of a script execution step
3317
+ */
3318
+ export function getScriptExecutionStatusV1QuickCommandsScriptExecutionsScriptExecutionIdGet({ scriptExecutionId, authorization, xAccountId, xMemberId, xUsername }: {
3319
+ scriptExecutionId: string;
3320
+ authorization: string;
3321
+ xAccountId?: string | null;
3322
+ xMemberId?: string | null;
3323
+ xUsername?: string | null;
3324
+ }, opts?: Oazapfts.RequestOpts) {
3325
+ return oazapfts.ok(oazapfts.fetchJson<{
3326
+ status: 200;
3327
+ data: QuickCommandScriptExecutionResponse;
3328
+ } | {
3329
+ status: 404;
3330
+ } | {
3331
+ status: 422;
3332
+ data: HttpValidationError;
3333
+ }>(`/v1/quick-commands/script-executions/${encodeURIComponent(scriptExecutionId)}`, {
3334
+ ...opts,
3335
+ headers: oazapfts.mergeHeaders(opts?.headers, {
3336
+ authorization,
3337
+ "x-account-id": xAccountId,
3338
+ "x-member-id": xMemberId,
3339
+ "x-username": xUsername
3340
+ })
3341
+ }));
3342
+ }
3145
3343
  /**
3146
3344
  * List Conversations
3147
3345
  */
@@ -3428,14 +3626,18 @@ export function getContentDependenciesV1ContentContentTypeContentIdDependenciesG
3428
3626
  /**
3429
3627
  * Tokens Daily Usage
3430
3628
  */
3431
- export function tokensDailyUsageV1AnalyticsTokensDailyUsageGet({ month, year, accountSlug }: {
3629
+ export function tokensDailyUsageV1AnalyticsTokensDailyUsageGet({ month, year, tokenType, authorization, xAccountId, xMemberId, xUsername }: {
3432
3630
  month: number;
3433
3631
  year: number;
3434
- accountSlug?: string;
3632
+ tokenType: TokenTypeEnum;
3633
+ authorization: string;
3634
+ xAccountId?: string | null;
3635
+ xMemberId?: string | null;
3636
+ xUsername?: string | null;
3435
3637
  }, opts?: Oazapfts.RequestOpts) {
3436
3638
  return oazapfts.ok(oazapfts.fetchJson<{
3437
3639
  status: 200;
3438
- data: any;
3640
+ data: AnalyticsTokensDailyUsageResponse;
3439
3641
  } | {
3440
3642
  status: 404;
3441
3643
  } | {
@@ -3444,23 +3646,34 @@ export function tokensDailyUsageV1AnalyticsTokensDailyUsageGet({ month, year, ac
3444
3646
  }>(`/v1/analytics/tokens/daily-usage${QS.query(QS.explode({
3445
3647
  month,
3446
3648
  year,
3447
- account_slug: accountSlug
3649
+ token_type: tokenType
3448
3650
  }))}`, {
3449
- ...opts
3651
+ ...opts,
3652
+ headers: oazapfts.mergeHeaders(opts?.headers, {
3653
+ authorization,
3654
+ "x-account-id": xAccountId,
3655
+ "x-member-id": xMemberId,
3656
+ "x-username": xUsername
3657
+ })
3450
3658
  }));
3451
3659
  }
3452
3660
  /**
3453
3661
  * Tokens By User
3454
3662
  */
3455
- export function tokensByUserV1AnalyticsTokensByUserGet({ month, year, page, pageSize }: {
3663
+ export function tokensByUserV1AnalyticsTokensByUserGet({ month, year, tokenType, page, pageSize, authorization, xAccountId, xMemberId, xUsername }: {
3456
3664
  month: number;
3457
3665
  year: number;
3666
+ tokenType: TokenTypeEnum;
3458
3667
  page?: number;
3459
3668
  pageSize?: number;
3669
+ authorization: string;
3670
+ xAccountId?: string | null;
3671
+ xMemberId?: string | null;
3672
+ xUsername?: string | null;
3460
3673
  }, opts?: Oazapfts.RequestOpts) {
3461
3674
  return oazapfts.ok(oazapfts.fetchJson<{
3462
3675
  status: 200;
3463
- data: any;
3676
+ data: AnalyticsTokensRankingUsersResponsePaginated;
3464
3677
  } | {
3465
3678
  status: 404;
3466
3679
  } | {
@@ -3469,10 +3682,250 @@ export function tokensByUserV1AnalyticsTokensByUserGet({ month, year, page, page
3469
3682
  }>(`/v1/analytics/tokens/by-user${QS.query(QS.explode({
3470
3683
  month,
3471
3684
  year,
3685
+ token_type: tokenType,
3472
3686
  page,
3473
3687
  page_size: pageSize
3474
3688
  }))}`, {
3475
- ...opts
3689
+ ...opts,
3690
+ headers: oazapfts.mergeHeaders(opts?.headers, {
3691
+ authorization,
3692
+ "x-account-id": xAccountId,
3693
+ "x-member-id": xMemberId,
3694
+ "x-username": xUsername
3695
+ })
3696
+ }));
3697
+ }
3698
+ /**
3699
+ * Get Reviews By Resource
3700
+ */
3701
+ export function getReviewsByResourceV1ResourcesResourceTypeSlugResourceSlugReviewsGet({ resourceSlug, resourceTypeSlug, size, page, sort, direction, authorization, xAccountId, xMemberId, xUsername }: {
3702
+ resourceSlug: string;
3703
+ resourceTypeSlug: string;
3704
+ size?: number | null;
3705
+ page?: number | null;
3706
+ sort?: string | null;
3707
+ direction?: SortDirection | null;
3708
+ authorization: string;
3709
+ xAccountId?: string | null;
3710
+ xMemberId?: string | null;
3711
+ xUsername?: string | null;
3712
+ }, opts?: Oazapfts.RequestOpts) {
3713
+ return oazapfts.ok(oazapfts.fetchJson<{
3714
+ status: 200;
3715
+ data: ResourceReviewResponse;
3716
+ } | {
3717
+ status: 404;
3718
+ } | {
3719
+ status: 422;
3720
+ data: HttpValidationError;
3721
+ }>(`/v1/resources/${encodeURIComponent(resourceTypeSlug)}/${encodeURIComponent(resourceSlug)}/reviews${QS.query(QS.explode({
3722
+ size,
3723
+ page,
3724
+ sort,
3725
+ direction
3726
+ }))}`, {
3727
+ ...opts,
3728
+ headers: oazapfts.mergeHeaders(opts?.headers, {
3729
+ authorization,
3730
+ "x-account-id": xAccountId,
3731
+ "x-member-id": xMemberId,
3732
+ "x-username": xUsername
3733
+ })
3734
+ }));
3735
+ }
3736
+ /**
3737
+ * Create Resource Review
3738
+ */
3739
+ export function createResourceReviewV1ResourcesResourceTypeSlugResourceSlugReviewsPost({ resourceSlug, resourceTypeSlug, authorization, xAccountId, xMemberId, xUsername, resourceReviewRequest }: {
3740
+ resourceSlug: string;
3741
+ resourceTypeSlug: string;
3742
+ authorization: string;
3743
+ xAccountId?: string | null;
3744
+ xMemberId?: string | null;
3745
+ xUsername?: string | null;
3746
+ resourceReviewRequest: ResourceReviewRequest;
3747
+ }, opts?: Oazapfts.RequestOpts) {
3748
+ return oazapfts.ok(oazapfts.fetchJson<{
3749
+ status: 200;
3750
+ data: any;
3751
+ } | {
3752
+ status: 404;
3753
+ } | {
3754
+ status: 422;
3755
+ data: HttpValidationError;
3756
+ }>(`/v1/resources/${encodeURIComponent(resourceTypeSlug)}/${encodeURIComponent(resourceSlug)}/reviews`, oazapfts.json({
3757
+ ...opts,
3758
+ method: "POST",
3759
+ body: resourceReviewRequest,
3760
+ headers: oazapfts.mergeHeaders(opts?.headers, {
3761
+ authorization,
3762
+ "x-account-id": xAccountId,
3763
+ "x-member-id": xMemberId,
3764
+ "x-username": xUsername
3765
+ })
3766
+ })));
3767
+ }
3768
+ /**
3769
+ * Create Answer For Review
3770
+ */
3771
+ export function createAnswerForReviewV1ResourcesResourceTypeSlugResourceSlugReviewsReviewIdAnswersPost({ resourceSlug, resourceTypeSlug, reviewId, authorization, xAccountId, xMemberId, xUsername, reviewAnswer }: {
3772
+ resourceSlug: string;
3773
+ resourceTypeSlug: string;
3774
+ reviewId: string;
3775
+ authorization: string;
3776
+ xAccountId?: string | null;
3777
+ xMemberId?: string | null;
3778
+ xUsername?: string | null;
3779
+ reviewAnswer: ReviewAnswer;
3780
+ }, opts?: Oazapfts.RequestOpts) {
3781
+ return oazapfts.ok(oazapfts.fetchJson<{
3782
+ status: 200;
3783
+ data: any;
3784
+ } | {
3785
+ status: 404;
3786
+ } | {
3787
+ status: 422;
3788
+ data: HttpValidationError;
3789
+ }>(`/v1/resources/${encodeURIComponent(resourceTypeSlug)}/${encodeURIComponent(resourceSlug)}/reviews/${encodeURIComponent(reviewId)}/answers`, oazapfts.json({
3790
+ ...opts,
3791
+ method: "POST",
3792
+ body: reviewAnswer,
3793
+ headers: oazapfts.mergeHeaders(opts?.headers, {
3794
+ authorization,
3795
+ "x-account-id": xAccountId,
3796
+ "x-member-id": xMemberId,
3797
+ "x-username": xUsername
3798
+ })
3799
+ })));
3800
+ }
3801
+ /**
3802
+ * Update Resource Review
3803
+ */
3804
+ export function updateResourceReviewV1ResourcesResourceTypeSlugResourceSlugReviewsReviewIdPatch({ resourceSlug, resourceTypeSlug, reviewId, authorization, xAccountId, xMemberId, xUsername, resourceReviewRequest }: {
3805
+ resourceSlug: string;
3806
+ resourceTypeSlug: string;
3807
+ reviewId: string;
3808
+ authorization: string;
3809
+ xAccountId?: string | null;
3810
+ xMemberId?: string | null;
3811
+ xUsername?: string | null;
3812
+ resourceReviewRequest: ResourceReviewRequest;
3813
+ }, opts?: Oazapfts.RequestOpts) {
3814
+ return oazapfts.ok(oazapfts.fetchJson<{
3815
+ status: 200;
3816
+ data: any;
3817
+ } | {
3818
+ status: 404;
3819
+ } | {
3820
+ status: 422;
3821
+ data: HttpValidationError;
3822
+ }>(`/v1/resources/${encodeURIComponent(resourceTypeSlug)}/${encodeURIComponent(resourceSlug)}/reviews/${encodeURIComponent(reviewId)}`, oazapfts.json({
3823
+ ...opts,
3824
+ method: "PATCH",
3825
+ body: resourceReviewRequest,
3826
+ headers: oazapfts.mergeHeaders(opts?.headers, {
3827
+ authorization,
3828
+ "x-account-id": xAccountId,
3829
+ "x-member-id": xMemberId,
3830
+ "x-username": xUsername
3831
+ })
3832
+ })));
3833
+ }
3834
+ /**
3835
+ * Delete Resource Review
3836
+ */
3837
+ export function deleteResourceReviewV1ResourcesResourceTypeSlugResourceSlugReviewsReviewIdDelete({ resourceSlug, resourceTypeSlug, reviewId, authorization, xAccountId, xMemberId, xUsername }: {
3838
+ resourceSlug: string;
3839
+ resourceTypeSlug: string;
3840
+ reviewId: string;
3841
+ authorization: string;
3842
+ xAccountId?: string | null;
3843
+ xMemberId?: string | null;
3844
+ xUsername?: string | null;
3845
+ }, opts?: Oazapfts.RequestOpts) {
3846
+ return oazapfts.ok(oazapfts.fetchJson<{
3847
+ status: 200;
3848
+ data: any;
3849
+ } | {
3850
+ status: 404;
3851
+ } | {
3852
+ status: 422;
3853
+ data: HttpValidationError;
3854
+ }>(`/v1/resources/${encodeURIComponent(resourceTypeSlug)}/${encodeURIComponent(resourceSlug)}/reviews/${encodeURIComponent(reviewId)}`, {
3855
+ ...opts,
3856
+ method: "DELETE",
3857
+ headers: oazapfts.mergeHeaders(opts?.headers, {
3858
+ authorization,
3859
+ "x-account-id": xAccountId,
3860
+ "x-member-id": xMemberId,
3861
+ "x-username": xUsername
3862
+ })
3863
+ }));
3864
+ }
3865
+ /**
3866
+ * Update Review Comment
3867
+ */
3868
+ export function updateReviewCommentV1ResourcesResourceTypeSlugResourceSlugReviewsReviewIdAnswersAnswerIdPatch({ resourceSlug, resourceTypeSlug, reviewId, answerId, authorization, xAccountId, xMemberId, xUsername, reviewAnswer }: {
3869
+ resourceSlug: string;
3870
+ resourceTypeSlug: string;
3871
+ reviewId: string;
3872
+ answerId: string;
3873
+ authorization: string;
3874
+ xAccountId?: string | null;
3875
+ xMemberId?: string | null;
3876
+ xUsername?: string | null;
3877
+ reviewAnswer: ReviewAnswer;
3878
+ }, opts?: Oazapfts.RequestOpts) {
3879
+ return oazapfts.ok(oazapfts.fetchJson<{
3880
+ status: 200;
3881
+ data: any;
3882
+ } | {
3883
+ status: 404;
3884
+ } | {
3885
+ status: 422;
3886
+ data: HttpValidationError;
3887
+ }>(`/v1/resources/${encodeURIComponent(resourceTypeSlug)}/${encodeURIComponent(resourceSlug)}/reviews/${encodeURIComponent(reviewId)}/answers/${encodeURIComponent(answerId)}`, oazapfts.json({
3888
+ ...opts,
3889
+ method: "PATCH",
3890
+ body: reviewAnswer,
3891
+ headers: oazapfts.mergeHeaders(opts?.headers, {
3892
+ authorization,
3893
+ "x-account-id": xAccountId,
3894
+ "x-member-id": xMemberId,
3895
+ "x-username": xUsername
3896
+ })
3897
+ })));
3898
+ }
3899
+ /**
3900
+ * Delete Review Comment
3901
+ */
3902
+ export function deleteReviewCommentV1ResourcesResourceTypeSlugResourceSlugReviewsReviewIdAnswersAnswerIdDelete({ resourceSlug, resourceTypeSlug, reviewId, answerId, authorization, xAccountId, xMemberId, xUsername }: {
3903
+ resourceSlug: string;
3904
+ resourceTypeSlug: string;
3905
+ reviewId: string;
3906
+ answerId: string;
3907
+ authorization: string;
3908
+ xAccountId?: string | null;
3909
+ xMemberId?: string | null;
3910
+ xUsername?: string | null;
3911
+ }, opts?: Oazapfts.RequestOpts) {
3912
+ return oazapfts.ok(oazapfts.fetchJson<{
3913
+ status: 200;
3914
+ data: any;
3915
+ } | {
3916
+ status: 404;
3917
+ } | {
3918
+ status: 422;
3919
+ data: HttpValidationError;
3920
+ }>(`/v1/resources/${encodeURIComponent(resourceTypeSlug)}/${encodeURIComponent(resourceSlug)}/reviews/${encodeURIComponent(reviewId)}/answers/${encodeURIComponent(answerId)}`, {
3921
+ ...opts,
3922
+ method: "DELETE",
3923
+ headers: oazapfts.mergeHeaders(opts?.headers, {
3924
+ authorization,
3925
+ "x-account-id": xAccountId,
3926
+ "x-member-id": xMemberId,
3927
+ "x-username": xUsername
3928
+ })
3476
3929
  }));
3477
3930
  }
3478
3931
  /**
@@ -3593,3 +4046,47 @@ export function devAssistantV3V3ChatPost({ authorization, xAccountId, xMemberId,
3593
4046
  })
3594
4047
  })));
3595
4048
  }
4049
+ /**
4050
+ * List All
4051
+ */
4052
+ export function listAllV3QuickCommandsGet({ name, slug, size, page, visibilityList, order, isRemote, types, authorization, xAccountId, xMemberId, xUsername }: {
4053
+ name?: string | null;
4054
+ slug?: string | null;
4055
+ size?: number;
4056
+ page?: number;
4057
+ visibilityList?: VisibilityLevelEnum[] | null;
4058
+ order?: OrderEnum | null;
4059
+ isRemote?: boolean;
4060
+ types?: QuickCommandTypeRequest[] | null;
4061
+ authorization: string;
4062
+ xAccountId?: string | null;
4063
+ xMemberId?: string | null;
4064
+ xUsername?: string | null;
4065
+ }, opts?: Oazapfts.RequestOpts) {
4066
+ return oazapfts.ok(oazapfts.fetchJson<{
4067
+ status: 200;
4068
+ data: PaginatedResponseQuickCommandListResponseV3;
4069
+ } | {
4070
+ status: 404;
4071
+ } | {
4072
+ status: 422;
4073
+ data: HttpValidationError;
4074
+ }>(`/v3/quick-commands${QS.query(QS.explode({
4075
+ name,
4076
+ slug,
4077
+ size,
4078
+ page,
4079
+ visibility_list: visibilityList,
4080
+ order,
4081
+ is_remote: isRemote,
4082
+ types
4083
+ }))}`, {
4084
+ ...opts,
4085
+ headers: oazapfts.mergeHeaders(opts?.headers, {
4086
+ authorization,
4087
+ "x-account-id": xAccountId,
4088
+ "x-member-id": xMemberId,
4089
+ "x-username": xUsername
4090
+ })
4091
+ }));
4092
+ }