@stack-spot/portal-network 0.154.0 → 0.155.0

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.
package/src/api/ai.ts CHANGED
@@ -182,6 +182,7 @@ export type QuickCommandEvent = {
182
182
  execution_id?: string | null;
183
183
  qc_execution_id?: string | null;
184
184
  id?: string | null;
185
+ is_remote?: boolean | null;
185
186
  };
186
187
  export type GenericEventRequest = {
187
188
  "type": EventTypeEnum;
@@ -319,6 +320,10 @@ export type AccountSettingsChangeErqcRequest = {
319
320
  client_cert?: string | null;
320
321
  client_key?: string | null;
321
322
  };
323
+ export type AccountTokenUsage = {
324
+ total_usage: number;
325
+ max_tokens: number;
326
+ };
322
327
  export type TokensCurrentUsageResponse = {
323
328
  used: number;
324
329
  limit: number;
@@ -374,6 +379,7 @@ export type QuickCommandsStepFetchRequest = {
374
379
  [key: string]: string;
375
380
  } | null;
376
381
  data?: string | null;
382
+ next_step_slug?: string | null;
377
383
  };
378
384
  export type QuickCommandsStepPromptRequest = {
379
385
  slug: string;
@@ -384,6 +390,34 @@ export type QuickCommandsStepPromptRequest = {
384
390
  knowledge_source_slugs?: string[] | null;
385
391
  agent_id?: string | null;
386
392
  agent_built_in?: boolean | null;
393
+ next_step_slug?: string | null;
394
+ };
395
+ export type OperatorType = "equals" | "notEquals" | "contains" | "notContains" | "startsWith" | "endsWith" | "greater" | "smaller" | "greaterEqual" | "smallerEqual" | "isEmpty" | "isNotEmpty" | "isDefined" | "isUndefined";
396
+ export type SimpleExpr = {
397
+ left?: any | null;
398
+ operator?: OperatorType | null;
399
+ right?: any | null;
400
+ };
401
+ export type ConditionExpr = {
402
+ left?: any | null;
403
+ operator?: OperatorType | null;
404
+ right?: any | null;
405
+ and?: SimpleExpr[] | null;
406
+ or?: SimpleExpr[] | null;
407
+ jinja_expression?: string | null;
408
+ label?: string | null;
409
+ };
410
+ export type RouterStepRoute = {
411
+ "default"?: boolean;
412
+ next_step_slug?: string | null;
413
+ condition?: ConditionExpr | null;
414
+ default_error_message?: string | null;
415
+ id?: string | null;
416
+ };
417
+ export type QuickCommandsStepRouterRequest = {
418
+ slug: string;
419
+ routes: RouterStepRoute[];
420
+ max_executions: number;
387
421
  };
388
422
  export type CustomInputRequest = {
389
423
  slug: string;
@@ -396,7 +430,7 @@ export type QuickCommandsCreateRequest = {
396
430
  "type"?: QuickCommandTypeRequest;
397
431
  description: string;
398
432
  final_result: string;
399
- steps: (QuickCommandsStepFetchRequest | QuickCommandsStepPromptRequest)[];
433
+ steps: (QuickCommandsStepFetchRequest | QuickCommandsStepPromptRequest | QuickCommandsStepRouterRequest)[];
400
434
  return_type?: QuickCommandsReturnType | null;
401
435
  preserve_conversation?: boolean;
402
436
  custom_inputs?: CustomInputRequest[] | null;
@@ -407,7 +441,7 @@ export type QuickCommandsCreateRequest = {
407
441
  export type QuickCommandsUpdateRequest = {
408
442
  name?: string | null;
409
443
  description?: string | null;
410
- steps?: (QuickCommandsStepFetchRequest | QuickCommandsStepPromptRequest)[] | null;
444
+ steps?: (QuickCommandsStepFetchRequest | QuickCommandsStepPromptRequest | QuickCommandsStepRouterRequest)[] | null;
411
445
  return_type?: QuickCommandsReturnType | null;
412
446
  knowledge_source_slugs?: string[] | null;
413
447
  final_result?: string | null;
@@ -418,7 +452,7 @@ export type QuickCommandsUpdateRequest = {
418
452
  } | null;
419
453
  use_only?: boolean | null;
420
454
  };
421
- export type QuickCommandStepType = "LLM" | "FETCH";
455
+ export type QuickCommandStepType = "LLM" | "FETCH" | "ROUTER";
422
456
  export type Method2 = "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
423
457
  export type QuickCommandStepFetchResponse = {
424
458
  slug: string;
@@ -428,8 +462,9 @@ export type QuickCommandStepFetchResponse = {
428
462
  headers?: {
429
463
  [key: string]: string;
430
464
  } | null;
431
- data?: string | null;
465
+ data?: any | null;
432
466
  is_remote?: boolean;
467
+ next_step_slug?: string | null;
433
468
  };
434
469
  export type AgentType = "CONVERSATIONAL" | "SINGLE_ANSWER";
435
470
  export type LlmConfig = {
@@ -473,6 +508,29 @@ export type QuickCommandStepLlmResponse = {
473
508
  agent_id?: string | null;
474
509
  agent_built_in?: boolean | null;
475
510
  agent_data?: AgentDefinitionResponse | null;
511
+ next_step_slug?: string | null;
512
+ };
513
+ export type ConditionExpr2 = {
514
+ left?: any | null;
515
+ operator?: OperatorType | null;
516
+ right?: any | null;
517
+ and?: SimpleExpr[] | null;
518
+ or?: SimpleExpr[] | null;
519
+ jinja_expression?: string | null;
520
+ label?: string | null;
521
+ };
522
+ export type RouterStepRoute2 = {
523
+ "default"?: boolean;
524
+ next_step_slug?: string | null;
525
+ condition?: ConditionExpr2 | null;
526
+ default_error_message?: string | null;
527
+ id?: string | null;
528
+ };
529
+ export type QuickCommandsStepRouterResponse = {
530
+ slug: string;
531
+ "type": QuickCommandStepType;
532
+ routes: RouterStepRoute2[];
533
+ max_executions: number;
476
534
  };
477
535
  export type CustomInputResponse = {
478
536
  slug: string;
@@ -487,7 +545,7 @@ export type QuickCommandResponse = {
487
545
  studio_id?: string | null;
488
546
  return_type?: QuickCommandsReturnType | null;
489
547
  final_result?: string | null;
490
- steps?: (QuickCommandStepFetchResponse | QuickCommandStepLlmResponse)[] | null;
548
+ steps?: (QuickCommandStepFetchResponse | QuickCommandStepLlmResponse | QuickCommandsStepRouterResponse)[] | null;
491
549
  flow?: {
492
550
  [key: string]: any;
493
551
  } | null;
@@ -533,6 +591,20 @@ export type QuickCommandsExecutionRequest = {
533
591
  export type QuickCommandFinalResultResponse = {
534
592
  result: string;
535
593
  };
594
+ export type QuickCommandEvaluateStepRouterRequest = {
595
+ executions_count: number;
596
+ input_data?: string | {
597
+ [key: string]: any;
598
+ } | null;
599
+ slugs_executions: {
600
+ [key: string]: QuickCommandPromptResponse | QuickCommandFetchResponseResult;
601
+ } | null;
602
+ };
603
+ export type QuickCommandEvaluateStepRouterResponse = {
604
+ next_step_slug: string;
605
+ "default"?: boolean;
606
+ condition?: ConditionExpr2 | null;
607
+ };
536
608
  export type QuickCommandCreateRequest = {
537
609
  input_data?: string | {
538
610
  [key: string]: any;
@@ -543,6 +615,11 @@ export type QuickCommandCreateRequest = {
543
615
  } | null;
544
616
  execution_tag?: string | null;
545
617
  };
618
+ export type QuickCommandExecutionRequest = {
619
+ account_id: string;
620
+ account_slug: string;
621
+ user_mail: string;
622
+ };
546
623
  export type Progress = {
547
624
  start: string;
548
625
  end?: string | null;
@@ -565,11 +642,16 @@ export type StepLlm = {
565
642
  sources: (SourceStackAi | SourceKnowledgeSource | SourceProjectFile | KnowledgeSourceEvent)[];
566
643
  tools?: string[];
567
644
  };
645
+ export type StepRouter = {
646
+ next_step_slug: string;
647
+ condition?: ConditionExpr2 | null;
648
+ "default"?: boolean;
649
+ };
568
650
  export type Step = {
569
651
  step_name: string;
570
652
  execution_order: number;
571
653
  "type": QuickCommandStepType;
572
- step_result: StepFetch | StepLlm;
654
+ step_result: StepFetch | StepLlm | StepRouter | null;
573
655
  };
574
656
  export type QuickCommandExecutionResponse = {
575
657
  execution_id: string;
@@ -672,9 +754,10 @@ export function metricsMetricsGet(opts?: Oazapfts.RequestOpts) {
672
754
  /**
673
755
  * Workspace Fork
674
756
  */
675
- export function workspaceForkV1AiStacksWorkspaceForkPost({ authorization, xAccountId, aiStackWorkspaceForkRequest }: {
757
+ export function workspaceForkV1AiStacksWorkspaceForkPost({ authorization, xAccountId, xMemberId, aiStackWorkspaceForkRequest }: {
676
758
  authorization: string;
677
759
  xAccountId?: string | null;
760
+ xMemberId?: string | null;
678
761
  aiStackWorkspaceForkRequest: AiStackWorkspaceForkRequest;
679
762
  }, opts?: Oazapfts.RequestOpts) {
680
763
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -691,16 +774,18 @@ export function workspaceForkV1AiStacksWorkspaceForkPost({ authorization, xAccou
691
774
  body: aiStackWorkspaceForkRequest,
692
775
  headers: oazapfts.mergeHeaders(opts?.headers, {
693
776
  authorization,
694
- "x-account-id": xAccountId
777
+ "x-account-id": xAccountId,
778
+ "x-member-id": xMemberId
695
779
  })
696
780
  })));
697
781
  }
698
782
  /**
699
783
  * Workspace Delete Fork
700
784
  */
701
- export function workspaceDeleteForkV1AiStacksWorkspaceForkDelete({ authorization, xAccountId, aiStackWorkspaceDeleteRequest }: {
785
+ export function workspaceDeleteForkV1AiStacksWorkspaceForkDelete({ authorization, xAccountId, xMemberId, aiStackWorkspaceDeleteRequest }: {
702
786
  authorization: string;
703
787
  xAccountId?: string | null;
788
+ xMemberId?: string | null;
704
789
  aiStackWorkspaceDeleteRequest: AiStackWorkspaceDeleteRequest;
705
790
  }, opts?: Oazapfts.RequestOpts) {
706
791
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -716,16 +801,18 @@ export function workspaceDeleteForkV1AiStacksWorkspaceForkDelete({ authorization
716
801
  body: aiStackWorkspaceDeleteRequest,
717
802
  headers: oazapfts.mergeHeaders(opts?.headers, {
718
803
  authorization,
719
- "x-account-id": xAccountId
804
+ "x-account-id": xAccountId,
805
+ "x-member-id": xMemberId
720
806
  })
721
807
  })));
722
808
  }
723
809
  /**
724
810
  * Workspace List
725
811
  */
726
- export function workspaceListV1AiStacksWorkspaceListPost({ authorization, xAccountId, aiStackWorkspaceListRequest }: {
812
+ export function workspaceListV1AiStacksWorkspaceListPost({ authorization, xAccountId, xMemberId, aiStackWorkspaceListRequest }: {
727
813
  authorization: string;
728
814
  xAccountId?: string | null;
815
+ xMemberId?: string | null;
729
816
  aiStackWorkspaceListRequest: AiStackWorkspaceListRequest;
730
817
  }, opts?: Oazapfts.RequestOpts) {
731
818
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -742,17 +829,19 @@ export function workspaceListV1AiStacksWorkspaceListPost({ authorization, xAccou
742
829
  body: aiStackWorkspaceListRequest,
743
830
  headers: oazapfts.mergeHeaders(opts?.headers, {
744
831
  authorization,
745
- "x-account-id": xAccountId
832
+ "x-account-id": xAccountId,
833
+ "x-member-id": xMemberId
746
834
  })
747
835
  })));
748
836
  }
749
837
  /**
750
838
  * List Ai Stacks
751
839
  */
752
- export function listAiStacksV1AiStacksGet({ visibility, authorization, xAccountId }: {
840
+ export function listAiStacksV1AiStacksGet({ visibility, authorization, xAccountId, xMemberId }: {
753
841
  visibility?: VisibilityLevelEnum;
754
842
  authorization: string;
755
843
  xAccountId?: string | null;
844
+ xMemberId?: string | null;
756
845
  }, opts?: Oazapfts.RequestOpts) {
757
846
  return oazapfts.ok(oazapfts.fetchJson<{
758
847
  status: 200;
@@ -768,16 +857,18 @@ export function listAiStacksV1AiStacksGet({ visibility, authorization, xAccountI
768
857
  ...opts,
769
858
  headers: oazapfts.mergeHeaders(opts?.headers, {
770
859
  authorization,
771
- "x-account-id": xAccountId
860
+ "x-account-id": xAccountId,
861
+ "x-member-id": xMemberId
772
862
  })
773
863
  }));
774
864
  }
775
865
  /**
776
866
  * Create Ai Stack
777
867
  */
778
- export function createAiStackV1AiStacksPost({ authorization, xAccountId, newAiStackRequest }: {
868
+ export function createAiStackV1AiStacksPost({ authorization, xAccountId, xMemberId, newAiStackRequest }: {
779
869
  authorization: string;
780
870
  xAccountId?: string | null;
871
+ xMemberId?: string | null;
781
872
  newAiStackRequest: NewAiStackRequest;
782
873
  }, opts?: Oazapfts.RequestOpts) {
783
874
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -794,17 +885,19 @@ export function createAiStackV1AiStacksPost({ authorization, xAccountId, newAiSt
794
885
  body: newAiStackRequest,
795
886
  headers: oazapfts.mergeHeaders(opts?.headers, {
796
887
  authorization,
797
- "x-account-id": xAccountId
888
+ "x-account-id": xAccountId,
889
+ "x-member-id": xMemberId
798
890
  })
799
891
  })));
800
892
  }
801
893
  /**
802
894
  * Update Ai Stack
803
895
  */
804
- export function updateAiStackV1AiStacksStackIdPatch({ stackId, authorization, xAccountId, updateAiStackRequest }: {
896
+ export function updateAiStackV1AiStacksStackIdPatch({ stackId, authorization, xAccountId, xMemberId, updateAiStackRequest }: {
805
897
  stackId: string;
806
898
  authorization: string;
807
899
  xAccountId?: string | null;
900
+ xMemberId?: string | null;
808
901
  updateAiStackRequest: UpdateAiStackRequest;
809
902
  }, opts?: Oazapfts.RequestOpts) {
810
903
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -820,17 +913,19 @@ export function updateAiStackV1AiStacksStackIdPatch({ stackId, authorization, xA
820
913
  body: updateAiStackRequest,
821
914
  headers: oazapfts.mergeHeaders(opts?.headers, {
822
915
  authorization,
823
- "x-account-id": xAccountId
916
+ "x-account-id": xAccountId,
917
+ "x-member-id": xMemberId
824
918
  })
825
919
  })));
826
920
  }
827
921
  /**
828
922
  * Get Ai Stack
829
923
  */
830
- export function getAiStackV1AiStacksStackIdGet({ stackId, authorization, xAccountId }: {
924
+ export function getAiStackV1AiStacksStackIdGet({ stackId, authorization, xAccountId, xMemberId }: {
831
925
  stackId: string;
832
926
  authorization: string;
833
927
  xAccountId?: string | null;
928
+ xMemberId?: string | null;
834
929
  }, opts?: Oazapfts.RequestOpts) {
835
930
  return oazapfts.ok(oazapfts.fetchJson<{
836
931
  status: 200;
@@ -844,17 +939,19 @@ export function getAiStackV1AiStacksStackIdGet({ stackId, authorization, xAccoun
844
939
  ...opts,
845
940
  headers: oazapfts.mergeHeaders(opts?.headers, {
846
941
  authorization,
847
- "x-account-id": xAccountId
942
+ "x-account-id": xAccountId,
943
+ "x-member-id": xMemberId
848
944
  })
849
945
  }));
850
946
  }
851
947
  /**
852
948
  * Remove Ai Stack
853
949
  */
854
- export function removeAiStackV1AiStacksStackIdDelete({ stackId, authorization, xAccountId }: {
950
+ export function removeAiStackV1AiStacksStackIdDelete({ stackId, authorization, xAccountId, xMemberId }: {
855
951
  stackId: string;
856
952
  authorization: string;
857
953
  xAccountId?: string | null;
954
+ xMemberId?: string | null;
858
955
  }, opts?: Oazapfts.RequestOpts) {
859
956
  return oazapfts.ok(oazapfts.fetchJson<{
860
957
  status: 200;
@@ -869,17 +966,19 @@ export function removeAiStackV1AiStacksStackIdDelete({ stackId, authorization, x
869
966
  method: "DELETE",
870
967
  headers: oazapfts.mergeHeaders(opts?.headers, {
871
968
  authorization,
872
- "x-account-id": xAccountId
969
+ "x-account-id": xAccountId,
970
+ "x-member-id": xMemberId
873
971
  })
874
972
  }));
875
973
  }
876
974
  /**
877
975
  * Get Ai Stack Exists
878
976
  */
879
- export function getAiStackExistsV1AiStacksStackNameExistsGet({ stackName, authorization, xAccountId }: {
977
+ export function getAiStackExistsV1AiStacksStackNameExistsGet({ stackName, authorization, xAccountId, xMemberId }: {
880
978
  stackName: string;
881
979
  authorization: string;
882
980
  xAccountId?: string | null;
981
+ xMemberId?: string | null;
883
982
  }, opts?: Oazapfts.RequestOpts) {
884
983
  return oazapfts.ok(oazapfts.fetchJson<{
885
984
  status: 204;
@@ -892,17 +991,19 @@ export function getAiStackExistsV1AiStacksStackNameExistsGet({ stackName, author
892
991
  ...opts,
893
992
  headers: oazapfts.mergeHeaders(opts?.headers, {
894
993
  authorization,
895
- "x-account-id": xAccountId
994
+ "x-account-id": xAccountId,
995
+ "x-member-id": xMemberId
896
996
  })
897
997
  }));
898
998
  }
899
999
  /**
900
1000
  * Add Favorite
901
1001
  */
902
- export function addFavoriteV1AiStacksStackIdFavoritePost({ stackId, authorization, xAccountId }: {
1002
+ export function addFavoriteV1AiStacksStackIdFavoritePost({ stackId, authorization, xAccountId, xMemberId }: {
903
1003
  stackId: string;
904
1004
  authorization: string;
905
1005
  xAccountId?: string | null;
1006
+ xMemberId?: string | null;
906
1007
  }, opts?: Oazapfts.RequestOpts) {
907
1008
  return oazapfts.ok(oazapfts.fetchJson<{
908
1009
  status: 204;
@@ -916,17 +1017,19 @@ export function addFavoriteV1AiStacksStackIdFavoritePost({ stackId, authorizatio
916
1017
  method: "POST",
917
1018
  headers: oazapfts.mergeHeaders(opts?.headers, {
918
1019
  authorization,
919
- "x-account-id": xAccountId
1020
+ "x-account-id": xAccountId,
1021
+ "x-member-id": xMemberId
920
1022
  })
921
1023
  }));
922
1024
  }
923
1025
  /**
924
1026
  * Delete Favorite
925
1027
  */
926
- export function deleteFavoriteV1AiStacksStackIdFavoriteDelete({ stackId, authorization, xAccountId }: {
1028
+ export function deleteFavoriteV1AiStacksStackIdFavoriteDelete({ stackId, authorization, xAccountId, xMemberId }: {
927
1029
  stackId: string;
928
1030
  authorization: string;
929
1031
  xAccountId?: string | null;
1032
+ xMemberId?: string | null;
930
1033
  }, opts?: Oazapfts.RequestOpts) {
931
1034
  return oazapfts.ok(oazapfts.fetchJson<{
932
1035
  status: 204;
@@ -940,17 +1043,19 @@ export function deleteFavoriteV1AiStacksStackIdFavoriteDelete({ stackId, authori
940
1043
  method: "DELETE",
941
1044
  headers: oazapfts.mergeHeaders(opts?.headers, {
942
1045
  authorization,
943
- "x-account-id": xAccountId
1046
+ "x-account-id": xAccountId,
1047
+ "x-member-id": xMemberId
944
1048
  })
945
1049
  }));
946
1050
  }
947
1051
  /**
948
1052
  * Fork
949
1053
  */
950
- export function forkV1AiStacksStackIdForkPost({ stackId, authorization, xAccountId, aiStackForkRequest }: {
1054
+ export function forkV1AiStacksStackIdForkPost({ stackId, authorization, xAccountId, xMemberId, aiStackForkRequest }: {
951
1055
  stackId: string;
952
1056
  authorization: string;
953
1057
  xAccountId?: string | null;
1058
+ xMemberId?: string | null;
954
1059
  aiStackForkRequest: AiStackForkRequest;
955
1060
  }, opts?: Oazapfts.RequestOpts) {
956
1061
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -967,17 +1072,19 @@ export function forkV1AiStacksStackIdForkPost({ stackId, authorization, xAccount
967
1072
  body: aiStackForkRequest,
968
1073
  headers: oazapfts.mergeHeaders(opts?.headers, {
969
1074
  authorization,
970
- "x-account-id": xAccountId
1075
+ "x-account-id": xAccountId,
1076
+ "x-member-id": xMemberId
971
1077
  })
972
1078
  })));
973
1079
  }
974
1080
  /**
975
1081
  * Share
976
1082
  */
977
- export function shareV1AiStacksStackIdSharePost({ stackId, authorization, xAccountId }: {
1083
+ export function shareV1AiStacksStackIdSharePost({ stackId, authorization, xAccountId, xMemberId }: {
978
1084
  stackId: string;
979
1085
  authorization: string;
980
1086
  xAccountId?: string | null;
1087
+ xMemberId?: string | null;
981
1088
  }, opts?: Oazapfts.RequestOpts) {
982
1089
  return oazapfts.ok(oazapfts.fetchJson<{
983
1090
  status: 204;
@@ -991,17 +1098,19 @@ export function shareV1AiStacksStackIdSharePost({ stackId, authorization, xAccou
991
1098
  method: "POST",
992
1099
  headers: oazapfts.mergeHeaders(opts?.headers, {
993
1100
  authorization,
994
- "x-account-id": xAccountId
1101
+ "x-account-id": xAccountId,
1102
+ "x-member-id": xMemberId
995
1103
  })
996
1104
  }));
997
1105
  }
998
1106
  /**
999
1107
  * Publish
1000
1108
  */
1001
- export function publishV1AiStacksStackIdPublishPost({ stackId, authorization, xAccountId, aiStackPublishRequest }: {
1109
+ export function publishV1AiStacksStackIdPublishPost({ stackId, authorization, xAccountId, xMemberId, aiStackPublishRequest }: {
1002
1110
  stackId: string;
1003
1111
  authorization: string;
1004
1112
  xAccountId?: string | null;
1113
+ xMemberId?: string | null;
1005
1114
  aiStackPublishRequest?: AiStackPublishRequest;
1006
1115
  }, opts?: Oazapfts.RequestOpts) {
1007
1116
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -1017,7 +1126,8 @@ export function publishV1AiStacksStackIdPublishPost({ stackId, authorization, xA
1017
1126
  body: aiStackPublishRequest,
1018
1127
  headers: oazapfts.mergeHeaders(opts?.headers, {
1019
1128
  authorization,
1020
- "x-account-id": xAccountId
1129
+ "x-account-id": xAccountId,
1130
+ "x-member-id": xMemberId
1021
1131
  })
1022
1132
  })));
1023
1133
  }
@@ -1048,9 +1158,10 @@ export function projectFilesV1ProjectFilesPost({ authorization, newProjectFilesR
1048
1158
  /**
1049
1159
  * Quick Actions
1050
1160
  */
1051
- export function quickActionsV1QuickActionsPost({ authorization, xAccountId, quickActionsRequest }: {
1161
+ export function quickActionsV1QuickActionsPost({ authorization, xAccountId, xMemberId, quickActionsRequest }: {
1052
1162
  authorization: string;
1053
1163
  xAccountId?: string | null;
1164
+ xMemberId?: string | null;
1054
1165
  quickActionsRequest: QuickActionsRequest;
1055
1166
  }, opts?: Oazapfts.RequestOpts) {
1056
1167
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -1067,7 +1178,8 @@ export function quickActionsV1QuickActionsPost({ authorization, xAccountId, quic
1067
1178
  body: quickActionsRequest,
1068
1179
  headers: oazapfts.mergeHeaders(opts?.headers, {
1069
1180
  authorization,
1070
- "x-account-id": xAccountId
1181
+ "x-account-id": xAccountId,
1182
+ "x-member-id": xMemberId
1071
1183
  })
1072
1184
  })));
1073
1185
  }
@@ -1088,9 +1200,10 @@ export function devAssistantV1ChatPost(opts?: Oazapfts.RequestOpts) {
1088
1200
  /**
1089
1201
  * Autocomplete V1
1090
1202
  */
1091
- export function autocompleteV1V1AutocompletePost({ authorization, xAccountId, autoCompleteRequest }: {
1203
+ export function autocompleteV1V1AutocompletePost({ authorization, xAccountId, xMemberId, autoCompleteRequest }: {
1092
1204
  authorization: string;
1093
1205
  xAccountId?: string | null;
1206
+ xMemberId?: string | null;
1094
1207
  autoCompleteRequest: AutoCompleteRequest;
1095
1208
  }, opts?: Oazapfts.RequestOpts) {
1096
1209
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -1107,16 +1220,18 @@ export function autocompleteV1V1AutocompletePost({ authorization, xAccountId, au
1107
1220
  body: autoCompleteRequest,
1108
1221
  headers: oazapfts.mergeHeaders(opts?.headers, {
1109
1222
  authorization,
1110
- "x-account-id": xAccountId
1223
+ "x-account-id": xAccountId,
1224
+ "x-member-id": xMemberId
1111
1225
  })
1112
1226
  })));
1113
1227
  }
1114
1228
  /**
1115
1229
  * Post Event
1116
1230
  */
1117
- export function postEventV1EventsPost({ authorization, xAccountId, body }: {
1231
+ export function postEventV1EventsPost({ authorization, xAccountId, xMemberId, body }: {
1118
1232
  authorization: string;
1119
1233
  xAccountId?: string | null;
1234
+ xMemberId?: string | null;
1120
1235
  body: GenericEventRequest[];
1121
1236
  }, opts?: Oazapfts.RequestOpts) {
1122
1237
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -1132,7 +1247,8 @@ export function postEventV1EventsPost({ authorization, xAccountId, body }: {
1132
1247
  body,
1133
1248
  headers: oazapfts.mergeHeaders(opts?.headers, {
1134
1249
  authorization,
1135
- "x-account-id": xAccountId
1250
+ "x-account-id": xAccountId,
1251
+ "x-member-id": xMemberId
1136
1252
  })
1137
1253
  })));
1138
1254
  }
@@ -1221,13 +1337,14 @@ export function createKnowledgeSourceV1KnowledgeSourcesPost({ authorization, new
1221
1337
  /**
1222
1338
  * List Knowledge Sources
1223
1339
  */
1224
- export function listKnowledgeSourcesV1KnowledgeSourcesGet({ visibility, order, $default, types, authorization, xAccountId }: {
1340
+ export function listKnowledgeSourcesV1KnowledgeSourcesGet({ visibility, order, $default, types, authorization, xAccountId, xMemberId }: {
1225
1341
  visibility?: VisibilityLevelEnum;
1226
1342
  order?: OrderEnum;
1227
1343
  $default?: boolean | null;
1228
1344
  types?: KnowledgeSourceTypeEnum[] | null;
1229
1345
  authorization: string;
1230
1346
  xAccountId?: string | null;
1347
+ xMemberId?: string | null;
1231
1348
  }, opts?: Oazapfts.RequestOpts) {
1232
1349
  return oazapfts.ok(oazapfts.fetchJson<{
1233
1350
  status: 200;
@@ -1246,7 +1363,8 @@ export function listKnowledgeSourcesV1KnowledgeSourcesGet({ visibility, order, $
1246
1363
  ...opts,
1247
1364
  headers: oazapfts.mergeHeaders(opts?.headers, {
1248
1365
  authorization,
1249
- "x-account-id": xAccountId
1366
+ "x-account-id": xAccountId,
1367
+ "x-member-id": xMemberId
1250
1368
  })
1251
1369
  }));
1252
1370
  }
@@ -1299,10 +1417,11 @@ export function updateKnowledgeSourceV1KnowledgeSourcesSlugPatch({ slug, authori
1299
1417
  /**
1300
1418
  * Delete Knowledge Source
1301
1419
  */
1302
- export function deleteKnowledgeSourceV1KnowledgeSourcesSlugDelete({ slug, authorization, xAccountId }: {
1420
+ export function deleteKnowledgeSourceV1KnowledgeSourcesSlugDelete({ slug, authorization, xAccountId, xMemberId }: {
1303
1421
  slug: string;
1304
1422
  authorization: string;
1305
1423
  xAccountId?: string | null;
1424
+ xMemberId?: string | null;
1306
1425
  }, opts?: Oazapfts.RequestOpts) {
1307
1426
  return oazapfts.ok(oazapfts.fetchJson<{
1308
1427
  status: 204;
@@ -1316,7 +1435,8 @@ export function deleteKnowledgeSourceV1KnowledgeSourcesSlugDelete({ slug, author
1316
1435
  method: "DELETE",
1317
1436
  headers: oazapfts.mergeHeaders(opts?.headers, {
1318
1437
  authorization,
1319
- "x-account-id": xAccountId
1438
+ "x-account-id": xAccountId,
1439
+ "x-member-id": xMemberId
1320
1440
  })
1321
1441
  }));
1322
1442
  }
@@ -1344,12 +1464,13 @@ export function existsKnowledgeSourceV1KnowledgeSourcesSlugExistsGet({ slug, aut
1344
1464
  /**
1345
1465
  * Search
1346
1466
  */
1347
- export function searchV1KnowledgeSourcesSlugSimilaritySearchGet({ slug, q, size, authorization, xAccountId }: {
1467
+ export function searchV1KnowledgeSourcesSlugSimilaritySearchGet({ slug, q, size, authorization, xAccountId, xMemberId }: {
1348
1468
  slug: string;
1349
1469
  q: string;
1350
1470
  size?: number;
1351
1471
  authorization: string;
1352
1472
  xAccountId?: string | null;
1473
+ xMemberId?: string | null;
1353
1474
  }, opts?: Oazapfts.RequestOpts) {
1354
1475
  return oazapfts.ok(oazapfts.fetchJson<{
1355
1476
  status: 200;
@@ -1366,7 +1487,8 @@ export function searchV1KnowledgeSourcesSlugSimilaritySearchGet({ slug, q, size,
1366
1487
  ...opts,
1367
1488
  headers: oazapfts.mergeHeaders(opts?.headers, {
1368
1489
  authorization,
1369
- "x-account-id": xAccountId
1490
+ "x-account-id": xAccountId,
1491
+ "x-member-id": xMemberId
1370
1492
  })
1371
1493
  }));
1372
1494
  }
@@ -1585,10 +1707,11 @@ export function findSnippetDocByCustomIdV1KnowledgeSourcesSlugSnippetsIdGet({ sl
1585
1707
  /**
1586
1708
  * Vectorize Snippet Knowledge Source
1587
1709
  */
1588
- export function vectorizeSnippetKnowledgeSourceV1KnowledgeSourcesSlugSnippetsPost({ slug, authorization, xAccountId, snippetKnowledgeSourceRequest }: {
1710
+ export function vectorizeSnippetKnowledgeSourceV1KnowledgeSourcesSlugSnippetsPost({ slug, authorization, xAccountId, xMemberId, snippetKnowledgeSourceRequest }: {
1589
1711
  slug: string;
1590
1712
  authorization: string;
1591
1713
  xAccountId?: string | null;
1714
+ xMemberId?: string | null;
1592
1715
  snippetKnowledgeSourceRequest: SnippetKnowledgeSourceRequest;
1593
1716
  }, opts?: Oazapfts.RequestOpts) {
1594
1717
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -1604,7 +1727,8 @@ export function vectorizeSnippetKnowledgeSourceV1KnowledgeSourcesSlugSnippetsPos
1604
1727
  body: snippetKnowledgeSourceRequest,
1605
1728
  headers: oazapfts.mergeHeaders(opts?.headers, {
1606
1729
  authorization,
1607
- "x-account-id": xAccountId
1730
+ "x-account-id": xAccountId,
1731
+ "x-member-id": xMemberId
1608
1732
  })
1609
1733
  })));
1610
1734
  }
@@ -1657,10 +1781,11 @@ export function findEventDocByCustomIdV1KnowledgeSourcesSlugEventsIdGet({ slug,
1657
1781
  /**
1658
1782
  * Vectorize Event Knowledge Source
1659
1783
  */
1660
- export function vectorizeEventKnowledgeSourceV1KnowledgeSourcesSlugEventsPost({ slug, authorization, xAccountId, body }: {
1784
+ export function vectorizeEventKnowledgeSourceV1KnowledgeSourcesSlugEventsPost({ slug, authorization, xAccountId, xMemberId, body }: {
1661
1785
  slug: string;
1662
1786
  authorization: string;
1663
1787
  xAccountId?: string | null;
1788
+ xMemberId?: string | null;
1664
1789
  body: {
1665
1790
  [key: string]: any;
1666
1791
  };
@@ -1678,7 +1803,8 @@ export function vectorizeEventKnowledgeSourceV1KnowledgeSourcesSlugEventsPost({
1678
1803
  body,
1679
1804
  headers: oazapfts.mergeHeaders(opts?.headers, {
1680
1805
  authorization,
1681
- "x-account-id": xAccountId
1806
+ "x-account-id": xAccountId,
1807
+ "x-member-id": xMemberId
1682
1808
  })
1683
1809
  })));
1684
1810
  }
@@ -1708,10 +1834,11 @@ export function findCustomDocByCustomIdV1KnowledgeSourcesSlugCustomIdGet({ slug,
1708
1834
  /**
1709
1835
  * Vectorize Custom Knowledge Source
1710
1836
  */
1711
- export function vectorizeCustomKnowledgeSourceV1KnowledgeSourcesSlugCustomPost({ slug, authorization, xAccountId, customKnowledgeSourceRequest }: {
1837
+ export function vectorizeCustomKnowledgeSourceV1KnowledgeSourcesSlugCustomPost({ slug, authorization, xAccountId, xMemberId, customKnowledgeSourceRequest }: {
1712
1838
  slug: string;
1713
1839
  authorization: string;
1714
1840
  xAccountId?: string | null;
1841
+ xMemberId?: string | null;
1715
1842
  customKnowledgeSourceRequest: CustomKnowledgeSourceRequest;
1716
1843
  }, opts?: Oazapfts.RequestOpts) {
1717
1844
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -1727,7 +1854,8 @@ export function vectorizeCustomKnowledgeSourceV1KnowledgeSourcesSlugCustomPost({
1727
1854
  body: customKnowledgeSourceRequest,
1728
1855
  headers: oazapfts.mergeHeaders(opts?.headers, {
1729
1856
  authorization,
1730
- "x-account-id": xAccountId
1857
+ "x-account-id": xAccountId,
1858
+ "x-member-id": xMemberId
1731
1859
  })
1732
1860
  })));
1733
1861
  }
@@ -1772,9 +1900,10 @@ export function searchKnowledgeSourcesV1KnowledgeSourcesSearchPost({ authorizati
1772
1900
  /**
1773
1901
  * Change Llm
1774
1902
  */
1775
- export function changeLlmV1AccountsLlmPatch({ authorization, xAccountId, accountSettingsChangeLlmRequest }: {
1903
+ export function changeLlmV1AccountsLlmPatch({ authorization, xAccountId, xMemberId, accountSettingsChangeLlmRequest }: {
1776
1904
  authorization: string;
1777
1905
  xAccountId?: string | null;
1906
+ xMemberId?: string | null;
1778
1907
  accountSettingsChangeLlmRequest: AccountSettingsChangeLlmRequest;
1779
1908
  }, opts?: Oazapfts.RequestOpts) {
1780
1909
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -1790,16 +1919,18 @@ export function changeLlmV1AccountsLlmPatch({ authorization, xAccountId, account
1790
1919
  body: accountSettingsChangeLlmRequest,
1791
1920
  headers: oazapfts.mergeHeaders(opts?.headers, {
1792
1921
  authorization,
1793
- "x-account-id": xAccountId
1922
+ "x-account-id": xAccountId,
1923
+ "x-member-id": xMemberId
1794
1924
  })
1795
1925
  })));
1796
1926
  }
1797
1927
  /**
1798
1928
  * Change Limit
1799
1929
  */
1800
- export function changeLimitV1AccountsTokenLimitsPut({ authorization, xAccountId, accountSettingsChangeLimitRequest }: {
1930
+ export function changeLimitV1AccountsTokenLimitsPut({ authorization, xAccountId, xMemberId, accountSettingsChangeLimitRequest }: {
1801
1931
  authorization: string;
1802
1932
  xAccountId?: string | null;
1933
+ xMemberId?: string | null;
1803
1934
  accountSettingsChangeLimitRequest: AccountSettingsChangeLimitRequest;
1804
1935
  }, opts?: Oazapfts.RequestOpts) {
1805
1936
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -1815,16 +1946,18 @@ export function changeLimitV1AccountsTokenLimitsPut({ authorization, xAccountId,
1815
1946
  body: accountSettingsChangeLimitRequest,
1816
1947
  headers: oazapfts.mergeHeaders(opts?.headers, {
1817
1948
  authorization,
1818
- "x-account-id": xAccountId
1949
+ "x-account-id": xAccountId,
1950
+ "x-member-id": xMemberId
1819
1951
  })
1820
1952
  })));
1821
1953
  }
1822
1954
  /**
1823
1955
  * Reset Limit
1824
1956
  */
1825
- export function resetLimitV1AccountsTokenLimitsDelete({ authorization, xAccountId }: {
1957
+ export function resetLimitV1AccountsTokenLimitsDelete({ authorization, xAccountId, xMemberId }: {
1826
1958
  authorization: string;
1827
1959
  xAccountId?: string | null;
1960
+ xMemberId?: string | null;
1828
1961
  }, opts?: Oazapfts.RequestOpts) {
1829
1962
  return oazapfts.ok(oazapfts.fetchJson<{
1830
1963
  status: 204;
@@ -1838,16 +1971,18 @@ export function resetLimitV1AccountsTokenLimitsDelete({ authorization, xAccountI
1838
1971
  method: "DELETE",
1839
1972
  headers: oazapfts.mergeHeaders(opts?.headers, {
1840
1973
  authorization,
1841
- "x-account-id": xAccountId
1974
+ "x-account-id": xAccountId,
1975
+ "x-member-id": xMemberId
1842
1976
  })
1843
1977
  }));
1844
1978
  }
1845
1979
  /**
1846
1980
  * Change External Rqc
1847
1981
  */
1848
- export function changeExternalRqcV1AccountsExternalRqcPatch({ authorization, xAccountId, accountSettingsChangeErqcRequest }: {
1982
+ export function changeExternalRqcV1AccountsExternalRqcPatch({ authorization, xAccountId, xMemberId, accountSettingsChangeErqcRequest }: {
1849
1983
  authorization: string;
1850
1984
  xAccountId?: string | null;
1985
+ xMemberId?: string | null;
1851
1986
  accountSettingsChangeErqcRequest: AccountSettingsChangeErqcRequest;
1852
1987
  }, opts?: Oazapfts.RequestOpts) {
1853
1988
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -1863,7 +1998,8 @@ export function changeExternalRqcV1AccountsExternalRqcPatch({ authorization, xAc
1863
1998
  body: accountSettingsChangeErqcRequest,
1864
1999
  headers: oazapfts.mergeHeaders(opts?.headers, {
1865
2000
  authorization,
1866
- "x-account-id": xAccountId
2001
+ "x-account-id": xAccountId,
2002
+ "x-member-id": xMemberId
1867
2003
  })
1868
2004
  })));
1869
2005
  }
@@ -1901,12 +2037,26 @@ export function changeExternalConfigsV1AccountsExternalConfigPatch({ body }: {
1901
2037
  body
1902
2038
  })));
1903
2039
  }
2040
+ /**
2041
+ * Tokens Usage
2042
+ */
2043
+ export function tokensUsageV1AccountsTokensUsageGet(opts?: Oazapfts.RequestOpts) {
2044
+ return oazapfts.ok(oazapfts.fetchJson<{
2045
+ status: 200;
2046
+ data: AccountTokenUsage;
2047
+ } | {
2048
+ status: 404;
2049
+ }>("/v1/accounts/tokens-usage", {
2050
+ ...opts
2051
+ }));
2052
+ }
1904
2053
  /**
1905
2054
  * Current
1906
2055
  */
1907
- export function currentV1TokensUsageTotalGet({ authorization, xAccountId }: {
2056
+ export function currentV1TokensUsageTotalGet({ authorization, xAccountId, xMemberId }: {
1908
2057
  authorization: string;
1909
2058
  xAccountId?: string | null;
2059
+ xMemberId?: string | null;
1910
2060
  }, opts?: Oazapfts.RequestOpts) {
1911
2061
  return oazapfts.ok(oazapfts.fetchJson<{
1912
2062
  status: 200;
@@ -1920,18 +2070,20 @@ export function currentV1TokensUsageTotalGet({ authorization, xAccountId }: {
1920
2070
  ...opts,
1921
2071
  headers: oazapfts.mergeHeaders(opts?.headers, {
1922
2072
  authorization,
1923
- "x-account-id": xAccountId
2073
+ "x-account-id": xAccountId,
2074
+ "x-member-id": xMemberId
1924
2075
  })
1925
2076
  }));
1926
2077
  }
1927
2078
  /**
1928
2079
  * Current
1929
2080
  */
1930
- export function currentV1TokensUsageCurrentGet({ year, month, authorization, xAccountId }: {
2081
+ export function currentV1TokensUsageCurrentGet({ year, month, authorization, xAccountId, xMemberId }: {
1931
2082
  year: number;
1932
2083
  month: number;
1933
2084
  authorization: string;
1934
2085
  xAccountId?: string | null;
2086
+ xMemberId?: string | null;
1935
2087
  }, opts?: Oazapfts.RequestOpts) {
1936
2088
  return oazapfts.ok(oazapfts.fetchJson<{
1937
2089
  status: 200;
@@ -1948,17 +2100,19 @@ export function currentV1TokensUsageCurrentGet({ year, month, authorization, xAc
1948
2100
  ...opts,
1949
2101
  headers: oazapfts.mergeHeaders(opts?.headers, {
1950
2102
  authorization,
1951
- "x-account-id": xAccountId
2103
+ "x-account-id": xAccountId,
2104
+ "x-member-id": xMemberId
1952
2105
  })
1953
2106
  }));
1954
2107
  }
1955
2108
  /**
1956
2109
  * Monthly
1957
2110
  */
1958
- export function monthlyV1TokensUsageMonthlyGet({ year, authorization, xAccountId }: {
2111
+ export function monthlyV1TokensUsageMonthlyGet({ year, authorization, xAccountId, xMemberId }: {
1959
2112
  year: number;
1960
2113
  authorization: string;
1961
2114
  xAccountId?: string | null;
2115
+ xMemberId?: string | null;
1962
2116
  }, opts?: Oazapfts.RequestOpts) {
1963
2117
  return oazapfts.ok(oazapfts.fetchJson<{
1964
2118
  status: 200;
@@ -1974,18 +2128,20 @@ export function monthlyV1TokensUsageMonthlyGet({ year, authorization, xAccountId
1974
2128
  ...opts,
1975
2129
  headers: oazapfts.mergeHeaders(opts?.headers, {
1976
2130
  authorization,
1977
- "x-account-id": xAccountId
2131
+ "x-account-id": xAccountId,
2132
+ "x-member-id": xMemberId
1978
2133
  })
1979
2134
  }));
1980
2135
  }
1981
2136
  /**
1982
2137
  * Top Users
1983
2138
  */
1984
- export function topUsersV1TokensUsageTopUsersGet({ year, month, authorization, xAccountId }: {
2139
+ export function topUsersV1TokensUsageTopUsersGet({ year, month, authorization, xAccountId, xMemberId }: {
1985
2140
  year: number;
1986
2141
  month: number;
1987
2142
  authorization: string;
1988
2143
  xAccountId?: string | null;
2144
+ xMemberId?: string | null;
1989
2145
  }, opts?: Oazapfts.RequestOpts) {
1990
2146
  return oazapfts.ok(oazapfts.fetchJson<{
1991
2147
  status: 200;
@@ -2002,17 +2158,19 @@ export function topUsersV1TokensUsageTopUsersGet({ year, month, authorization, x
2002
2158
  ...opts,
2003
2159
  headers: oazapfts.mergeHeaders(opts?.headers, {
2004
2160
  authorization,
2005
- "x-account-id": xAccountId
2161
+ "x-account-id": xAccountId,
2162
+ "x-member-id": xMemberId
2006
2163
  })
2007
2164
  }));
2008
2165
  }
2009
2166
  /**
2010
2167
  * Add Association
2011
2168
  */
2012
- export function addAssociationV1WorkspaceWorkspaceIdPost({ workspaceId, authorization, xAccountId, addWorkspaceKnowledgeSourceRequest }: {
2169
+ export function addAssociationV1WorkspaceWorkspaceIdPost({ workspaceId, authorization, xAccountId, xMemberId, addWorkspaceKnowledgeSourceRequest }: {
2013
2170
  workspaceId: string;
2014
2171
  authorization: string;
2015
2172
  xAccountId?: string | null;
2173
+ xMemberId?: string | null;
2016
2174
  addWorkspaceKnowledgeSourceRequest: AddWorkspaceKnowledgeSourceRequest;
2017
2175
  }, opts?: Oazapfts.RequestOpts) {
2018
2176
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -2028,17 +2186,19 @@ export function addAssociationV1WorkspaceWorkspaceIdPost({ workspaceId, authoriz
2028
2186
  body: addWorkspaceKnowledgeSourceRequest,
2029
2187
  headers: oazapfts.mergeHeaders(opts?.headers, {
2030
2188
  authorization,
2031
- "x-account-id": xAccountId
2189
+ "x-account-id": xAccountId,
2190
+ "x-member-id": xMemberId
2032
2191
  })
2033
2192
  })));
2034
2193
  }
2035
2194
  /**
2036
2195
  * List Association
2037
2196
  */
2038
- export function listAssociationV1WorkspaceWorkspaceIdGet({ workspaceId, authorization, xAccountId }: {
2197
+ export function listAssociationV1WorkspaceWorkspaceIdGet({ workspaceId, authorization, xAccountId, xMemberId }: {
2039
2198
  workspaceId: string;
2040
2199
  authorization: string;
2041
2200
  xAccountId?: string | null;
2201
+ xMemberId?: string | null;
2042
2202
  }, opts?: Oazapfts.RequestOpts) {
2043
2203
  return oazapfts.ok(oazapfts.fetchJson<{
2044
2204
  status: 200;
@@ -2052,18 +2212,20 @@ export function listAssociationV1WorkspaceWorkspaceIdGet({ workspaceId, authoriz
2052
2212
  ...opts,
2053
2213
  headers: oazapfts.mergeHeaders(opts?.headers, {
2054
2214
  authorization,
2055
- "x-account-id": xAccountId
2215
+ "x-account-id": xAccountId,
2216
+ "x-member-id": xMemberId
2056
2217
  })
2057
2218
  }));
2058
2219
  }
2059
2220
  /**
2060
2221
  * Delete Association
2061
2222
  */
2062
- export function deleteAssociationV1WorkspaceWorkspaceIdKnowledgeSourceKnowledgeSourceSlugDelete({ workspaceId, knowledgeSourceSlug, authorization, xAccountId }: {
2223
+ export function deleteAssociationV1WorkspaceWorkspaceIdKnowledgeSourceKnowledgeSourceSlugDelete({ workspaceId, knowledgeSourceSlug, authorization, xAccountId, xMemberId }: {
2063
2224
  workspaceId: string;
2064
2225
  knowledgeSourceSlug: string;
2065
2226
  authorization: string;
2066
2227
  xAccountId?: string | null;
2228
+ xMemberId?: string | null;
2067
2229
  }, opts?: Oazapfts.RequestOpts) {
2068
2230
  return oazapfts.ok(oazapfts.fetchJson<{
2069
2231
  status: 204;
@@ -2077,16 +2239,18 @@ export function deleteAssociationV1WorkspaceWorkspaceIdKnowledgeSourceKnowledgeS
2077
2239
  method: "DELETE",
2078
2240
  headers: oazapfts.mergeHeaders(opts?.headers, {
2079
2241
  authorization,
2080
- "x-account-id": xAccountId
2242
+ "x-account-id": xAccountId,
2243
+ "x-member-id": xMemberId
2081
2244
  })
2082
2245
  }));
2083
2246
  }
2084
2247
  /**
2085
2248
  * Workspace Fork
2086
2249
  */
2087
- export function workspaceForkV1QuickCommandsWorkspaceForkPost({ authorization, xAccountId, quickCommandWorkspaceForkRequest }: {
2250
+ export function workspaceForkV1QuickCommandsWorkspaceForkPost({ authorization, xAccountId, xMemberId, quickCommandWorkspaceForkRequest }: {
2088
2251
  authorization: string;
2089
2252
  xAccountId?: string | null;
2253
+ xMemberId?: string | null;
2090
2254
  quickCommandWorkspaceForkRequest: QuickCommandWorkspaceForkRequest;
2091
2255
  }, opts?: Oazapfts.RequestOpts) {
2092
2256
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -2103,16 +2267,18 @@ export function workspaceForkV1QuickCommandsWorkspaceForkPost({ authorization, x
2103
2267
  body: quickCommandWorkspaceForkRequest,
2104
2268
  headers: oazapfts.mergeHeaders(opts?.headers, {
2105
2269
  authorization,
2106
- "x-account-id": xAccountId
2270
+ "x-account-id": xAccountId,
2271
+ "x-member-id": xMemberId
2107
2272
  })
2108
2273
  })));
2109
2274
  }
2110
2275
  /**
2111
2276
  * Workspace Delete Fork
2112
2277
  */
2113
- export function workspaceDeleteForkV1QuickCommandsWorkspaceForkDelete({ authorization, xAccountId, quickCommandWorkspaceDeleteRequest }: {
2278
+ export function workspaceDeleteForkV1QuickCommandsWorkspaceForkDelete({ authorization, xAccountId, xMemberId, quickCommandWorkspaceDeleteRequest }: {
2114
2279
  authorization: string;
2115
2280
  xAccountId?: string | null;
2281
+ xMemberId?: string | null;
2116
2282
  quickCommandWorkspaceDeleteRequest: QuickCommandWorkspaceDeleteRequest;
2117
2283
  }, opts?: Oazapfts.RequestOpts) {
2118
2284
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -2128,16 +2294,18 @@ export function workspaceDeleteForkV1QuickCommandsWorkspaceForkDelete({ authoriz
2128
2294
  body: quickCommandWorkspaceDeleteRequest,
2129
2295
  headers: oazapfts.mergeHeaders(opts?.headers, {
2130
2296
  authorization,
2131
- "x-account-id": xAccountId
2297
+ "x-account-id": xAccountId,
2298
+ "x-member-id": xMemberId
2132
2299
  })
2133
2300
  })));
2134
2301
  }
2135
2302
  /**
2136
2303
  * Workspace List
2137
2304
  */
2138
- export function workspaceListV1QuickCommandsWorkspaceListPost({ authorization, xAccountId, quickCommandWorkspaceListRequest }: {
2305
+ export function workspaceListV1QuickCommandsWorkspaceListPost({ authorization, xAccountId, xMemberId, quickCommandWorkspaceListRequest }: {
2139
2306
  authorization: string;
2140
2307
  xAccountId?: string | null;
2308
+ xMemberId?: string | null;
2141
2309
  quickCommandWorkspaceListRequest: QuickCommandWorkspaceListRequest;
2142
2310
  }, opts?: Oazapfts.RequestOpts) {
2143
2311
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -2154,16 +2322,18 @@ export function workspaceListV1QuickCommandsWorkspaceListPost({ authorization, x
2154
2322
  body: quickCommandWorkspaceListRequest,
2155
2323
  headers: oazapfts.mergeHeaders(opts?.headers, {
2156
2324
  authorization,
2157
- "x-account-id": xAccountId
2325
+ "x-account-id": xAccountId,
2326
+ "x-member-id": xMemberId
2158
2327
  })
2159
2328
  })));
2160
2329
  }
2161
2330
  /**
2162
2331
  * Create Quick Command
2163
2332
  */
2164
- export function createQuickCommandV1QuickCommandsPost({ authorization, xAccountId, quickCommandsCreateRequest }: {
2333
+ export function createQuickCommandV1QuickCommandsPost({ authorization, xAccountId, xMemberId, quickCommandsCreateRequest }: {
2165
2334
  authorization: string;
2166
2335
  xAccountId?: string | null;
2336
+ xMemberId?: string | null;
2167
2337
  quickCommandsCreateRequest: QuickCommandsCreateRequest;
2168
2338
  }, opts?: Oazapfts.RequestOpts) {
2169
2339
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -2180,19 +2350,21 @@ export function createQuickCommandV1QuickCommandsPost({ authorization, xAccountI
2180
2350
  body: quickCommandsCreateRequest,
2181
2351
  headers: oazapfts.mergeHeaders(opts?.headers, {
2182
2352
  authorization,
2183
- "x-account-id": xAccountId
2353
+ "x-account-id": xAccountId,
2354
+ "x-member-id": xMemberId
2184
2355
  })
2185
2356
  })));
2186
2357
  }
2187
2358
  /**
2188
2359
  * List All
2189
2360
  */
2190
- export function listAllV1QuickCommandsAllGet({ visibility, order, types, authorization, xAccountId }: {
2361
+ export function listAllV1QuickCommandsAllGet({ visibility, order, types, authorization, xAccountId, xMemberId }: {
2191
2362
  visibility?: VisibilityLevelEnum | null;
2192
2363
  order?: OrderEnum;
2193
2364
  types?: QuickCommandTypeRequest[] | null;
2194
2365
  authorization: string;
2195
2366
  xAccountId?: string | null;
2367
+ xMemberId?: string | null;
2196
2368
  }, opts?: Oazapfts.RequestOpts) {
2197
2369
  return oazapfts.ok(oazapfts.fetchJson<{
2198
2370
  status: 200;
@@ -2210,17 +2382,19 @@ export function listAllV1QuickCommandsAllGet({ visibility, order, types, authori
2210
2382
  ...opts,
2211
2383
  headers: oazapfts.mergeHeaders(opts?.headers, {
2212
2384
  authorization,
2213
- "x-account-id": xAccountId
2385
+ "x-account-id": xAccountId,
2386
+ "x-member-id": xMemberId
2214
2387
  })
2215
2388
  }));
2216
2389
  }
2217
2390
  /**
2218
2391
  * Update Quick Command
2219
2392
  */
2220
- export function updateQuickCommandV1QuickCommandsSlugPatch({ slug, authorization, xAccountId, quickCommandsUpdateRequest }: {
2393
+ export function updateQuickCommandV1QuickCommandsSlugPatch({ slug, authorization, xAccountId, xMemberId, quickCommandsUpdateRequest }: {
2221
2394
  slug: string;
2222
2395
  authorization: string;
2223
2396
  xAccountId?: string | null;
2397
+ xMemberId?: string | null;
2224
2398
  quickCommandsUpdateRequest: QuickCommandsUpdateRequest;
2225
2399
  }, opts?: Oazapfts.RequestOpts) {
2226
2400
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -2236,18 +2410,20 @@ export function updateQuickCommandV1QuickCommandsSlugPatch({ slug, authorization
2236
2410
  body: quickCommandsUpdateRequest,
2237
2411
  headers: oazapfts.mergeHeaders(opts?.headers, {
2238
2412
  authorization,
2239
- "x-account-id": xAccountId
2413
+ "x-account-id": xAccountId,
2414
+ "x-member-id": xMemberId
2240
2415
  })
2241
2416
  })));
2242
2417
  }
2243
2418
  /**
2244
2419
  * Get Quick Command
2245
2420
  */
2246
- export function getQuickCommandV1QuickCommandsSlugGet({ slug, findAgents, authorization, xAccountId }: {
2421
+ export function getQuickCommandV1QuickCommandsSlugGet({ slug, findAgents, authorization, xAccountId, xMemberId }: {
2247
2422
  slug: string;
2248
2423
  findAgents?: boolean;
2249
2424
  authorization: string;
2250
2425
  xAccountId?: string | null;
2426
+ xMemberId?: string | null;
2251
2427
  }, opts?: Oazapfts.RequestOpts) {
2252
2428
  return oazapfts.ok(oazapfts.fetchJson<{
2253
2429
  status: 200;
@@ -2263,17 +2439,19 @@ export function getQuickCommandV1QuickCommandsSlugGet({ slug, findAgents, author
2263
2439
  ...opts,
2264
2440
  headers: oazapfts.mergeHeaders(opts?.headers, {
2265
2441
  authorization,
2266
- "x-account-id": xAccountId
2442
+ "x-account-id": xAccountId,
2443
+ "x-member-id": xMemberId
2267
2444
  })
2268
2445
  }));
2269
2446
  }
2270
2447
  /**
2271
2448
  * Delete Quick Command
2272
2449
  */
2273
- export function deleteQuickCommandV1QuickCommandsSlugDelete({ slug, authorization, xAccountId }: {
2450
+ export function deleteQuickCommandV1QuickCommandsSlugDelete({ slug, authorization, xAccountId, xMemberId }: {
2274
2451
  slug: string;
2275
2452
  authorization: string;
2276
2453
  xAccountId?: string | null;
2454
+ xMemberId?: string | null;
2277
2455
  }, opts?: Oazapfts.RequestOpts) {
2278
2456
  return oazapfts.ok(oazapfts.fetchJson<{
2279
2457
  status: 204;
@@ -2287,17 +2465,19 @@ export function deleteQuickCommandV1QuickCommandsSlugDelete({ slug, authorizatio
2287
2465
  method: "DELETE",
2288
2466
  headers: oazapfts.mergeHeaders(opts?.headers, {
2289
2467
  authorization,
2290
- "x-account-id": xAccountId
2468
+ "x-account-id": xAccountId,
2469
+ "x-member-id": xMemberId
2291
2470
  })
2292
2471
  }));
2293
2472
  }
2294
2473
  /**
2295
2474
  * Add Favorite
2296
2475
  */
2297
- export function addFavoriteV1QuickCommandsSlugFavoritePost({ slug, authorization, xAccountId }: {
2476
+ export function addFavoriteV1QuickCommandsSlugFavoritePost({ slug, authorization, xAccountId, xMemberId }: {
2298
2477
  slug: string;
2299
2478
  authorization: string;
2300
2479
  xAccountId?: string | null;
2480
+ xMemberId?: string | null;
2301
2481
  }, opts?: Oazapfts.RequestOpts) {
2302
2482
  return oazapfts.ok(oazapfts.fetchJson<{
2303
2483
  status: 204;
@@ -2311,17 +2491,19 @@ export function addFavoriteV1QuickCommandsSlugFavoritePost({ slug, authorization
2311
2491
  method: "POST",
2312
2492
  headers: oazapfts.mergeHeaders(opts?.headers, {
2313
2493
  authorization,
2314
- "x-account-id": xAccountId
2494
+ "x-account-id": xAccountId,
2495
+ "x-member-id": xMemberId
2315
2496
  })
2316
2497
  }));
2317
2498
  }
2318
2499
  /**
2319
2500
  * Delete Favorite
2320
2501
  */
2321
- export function deleteFavoriteV1QuickCommandsSlugFavoriteDelete({ slug, authorization, xAccountId }: {
2502
+ export function deleteFavoriteV1QuickCommandsSlugFavoriteDelete({ slug, authorization, xAccountId, xMemberId }: {
2322
2503
  slug: string;
2323
2504
  authorization: string;
2324
2505
  xAccountId?: string | null;
2506
+ xMemberId?: string | null;
2325
2507
  }, opts?: Oazapfts.RequestOpts) {
2326
2508
  return oazapfts.ok(oazapfts.fetchJson<{
2327
2509
  status: 204;
@@ -2335,17 +2517,19 @@ export function deleteFavoriteV1QuickCommandsSlugFavoriteDelete({ slug, authoriz
2335
2517
  method: "DELETE",
2336
2518
  headers: oazapfts.mergeHeaders(opts?.headers, {
2337
2519
  authorization,
2338
- "x-account-id": xAccountId
2520
+ "x-account-id": xAccountId,
2521
+ "x-member-id": xMemberId
2339
2522
  })
2340
2523
  }));
2341
2524
  }
2342
2525
  /**
2343
2526
  * Share
2344
2527
  */
2345
- export function shareV1QuickCommandsSlugSharePost({ slug, authorization, xAccountId }: {
2528
+ export function shareV1QuickCommandsSlugSharePost({ slug, authorization, xAccountId, xMemberId }: {
2346
2529
  slug: string;
2347
2530
  authorization: string;
2348
2531
  xAccountId?: string | null;
2532
+ xMemberId?: string | null;
2349
2533
  }, opts?: Oazapfts.RequestOpts) {
2350
2534
  return oazapfts.ok(oazapfts.fetchJson<{
2351
2535
  status: 204;
@@ -2359,17 +2543,19 @@ export function shareV1QuickCommandsSlugSharePost({ slug, authorization, xAccoun
2359
2543
  method: "POST",
2360
2544
  headers: oazapfts.mergeHeaders(opts?.headers, {
2361
2545
  authorization,
2362
- "x-account-id": xAccountId
2546
+ "x-account-id": xAccountId,
2547
+ "x-member-id": xMemberId
2363
2548
  })
2364
2549
  }));
2365
2550
  }
2366
2551
  /**
2367
2552
  * Publish
2368
2553
  */
2369
- export function publishV1QuickCommandsSlugPublishPost({ slug, authorization, xAccountId, quickCommandPublishRequest }: {
2554
+ export function publishV1QuickCommandsSlugPublishPost({ slug, authorization, xAccountId, xMemberId, quickCommandPublishRequest }: {
2370
2555
  slug: string;
2371
2556
  authorization: string;
2372
2557
  xAccountId?: string | null;
2558
+ xMemberId?: string | null;
2373
2559
  quickCommandPublishRequest?: QuickCommandPublishRequest;
2374
2560
  }, opts?: Oazapfts.RequestOpts) {
2375
2561
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -2385,17 +2571,19 @@ export function publishV1QuickCommandsSlugPublishPost({ slug, authorization, xAc
2385
2571
  body: quickCommandPublishRequest,
2386
2572
  headers: oazapfts.mergeHeaders(opts?.headers, {
2387
2573
  authorization,
2388
- "x-account-id": xAccountId
2574
+ "x-account-id": xAccountId,
2575
+ "x-member-id": xMemberId
2389
2576
  })
2390
2577
  })));
2391
2578
  }
2392
2579
  /**
2393
2580
  * Fork
2394
2581
  */
2395
- export function forkV1QuickCommandsSlugForkPost({ slug, authorization, xAccountId, quickCommandsMakeACopyRequest }: {
2582
+ export function forkV1QuickCommandsSlugForkPost({ slug, authorization, xAccountId, xMemberId, quickCommandsMakeACopyRequest }: {
2396
2583
  slug: string;
2397
2584
  authorization: string;
2398
2585
  xAccountId?: string | null;
2586
+ xMemberId?: string | null;
2399
2587
  quickCommandsMakeACopyRequest: QuickCommandsMakeACopyRequest;
2400
2588
  }, opts?: Oazapfts.RequestOpts) {
2401
2589
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -2412,17 +2600,19 @@ export function forkV1QuickCommandsSlugForkPost({ slug, authorization, xAccountI
2412
2600
  body: quickCommandsMakeACopyRequest,
2413
2601
  headers: oazapfts.mergeHeaders(opts?.headers, {
2414
2602
  authorization,
2415
- "x-account-id": xAccountId
2603
+ "x-account-id": xAccountId,
2604
+ "x-member-id": xMemberId
2416
2605
  })
2417
2606
  })));
2418
2607
  }
2419
2608
  /**
2420
2609
  * Get Quick Command
2421
2610
  */
2422
- export function getQuickCommandV1QuickCommandsSlugExistsGet({ slug, authorization, xAccountId }: {
2611
+ export function getQuickCommandV1QuickCommandsSlugExistsGet({ slug, authorization, xAccountId, xMemberId }: {
2423
2612
  slug: string;
2424
2613
  authorization: string;
2425
2614
  xAccountId?: string | null;
2615
+ xMemberId?: string | null;
2426
2616
  }, opts?: Oazapfts.RequestOpts) {
2427
2617
  return oazapfts.ok(oazapfts.fetchJson<{
2428
2618
  status: 204;
@@ -2435,17 +2625,19 @@ export function getQuickCommandV1QuickCommandsSlugExistsGet({ slug, authorizatio
2435
2625
  ...opts,
2436
2626
  headers: oazapfts.mergeHeaders(opts?.headers, {
2437
2627
  authorization,
2438
- "x-account-id": xAccountId
2628
+ "x-account-id": xAccountId,
2629
+ "x-member-id": xMemberId
2439
2630
  })
2440
2631
  }));
2441
2632
  }
2442
2633
  /**
2443
2634
  * Get Quick Command By Ks Slug
2444
2635
  */
2445
- export function getQuickCommandByKsSlugV1QuickCommandsKnowledgeSourcesSlugGet({ slug, authorization, xAccountId }: {
2636
+ export function getQuickCommandByKsSlugV1QuickCommandsKnowledgeSourcesSlugGet({ slug, authorization, xAccountId, xMemberId }: {
2446
2637
  slug: string;
2447
2638
  authorization: string;
2448
2639
  xAccountId?: string | null;
2640
+ xMemberId?: string | null;
2449
2641
  }, opts?: Oazapfts.RequestOpts) {
2450
2642
  return oazapfts.ok(oazapfts.fetchJson<{
2451
2643
  status: 200;
@@ -2459,17 +2651,19 @@ export function getQuickCommandByKsSlugV1QuickCommandsKnowledgeSourcesSlugGet({
2459
2651
  ...opts,
2460
2652
  headers: oazapfts.mergeHeaders(opts?.headers, {
2461
2653
  authorization,
2462
- "x-account-id": xAccountId
2654
+ "x-account-id": xAccountId,
2655
+ "x-member-id": xMemberId
2463
2656
  })
2464
2657
  }));
2465
2658
  }
2466
2659
  /**
2467
2660
  * Get Quick Commands By Agent Id
2468
2661
  */
2469
- export function getQuickCommandsByAgentIdV1QuickCommandsAgentsAgentIdGet({ agentId, authorization, xAccountId }: {
2662
+ export function getQuickCommandsByAgentIdV1QuickCommandsAgentsAgentIdGet({ agentId, authorization, xAccountId, xMemberId }: {
2470
2663
  agentId: string;
2471
2664
  authorization: string;
2472
2665
  xAccountId?: string | null;
2666
+ xMemberId?: string | null;
2473
2667
  }, opts?: Oazapfts.RequestOpts) {
2474
2668
  return oazapfts.ok(oazapfts.fetchJson<{
2475
2669
  status: 200;
@@ -2483,17 +2677,19 @@ export function getQuickCommandsByAgentIdV1QuickCommandsAgentsAgentIdGet({ agent
2483
2677
  ...opts,
2484
2678
  headers: oazapfts.mergeHeaders(opts?.headers, {
2485
2679
  authorization,
2486
- "x-account-id": xAccountId
2680
+ "x-account-id": xAccountId,
2681
+ "x-member-id": xMemberId
2487
2682
  })
2488
2683
  }));
2489
2684
  }
2490
2685
  /**
2491
2686
  * Disassociate Agent
2492
2687
  */
2493
- export function disassociateAgentV1QuickCommandsAgentsAgentIdDelete({ agentId, authorization, xAccountId }: {
2688
+ export function disassociateAgentV1QuickCommandsAgentsAgentIdDelete({ agentId, authorization, xAccountId, xMemberId }: {
2494
2689
  agentId: string;
2495
2690
  authorization: string;
2496
2691
  xAccountId?: string | null;
2692
+ xMemberId?: string | null;
2497
2693
  }, opts?: Oazapfts.RequestOpts) {
2498
2694
  return oazapfts.ok(oazapfts.fetchJson<{
2499
2695
  status: 200;
@@ -2508,17 +2704,19 @@ export function disassociateAgentV1QuickCommandsAgentsAgentIdDelete({ agentId, a
2508
2704
  method: "DELETE",
2509
2705
  headers: oazapfts.mergeHeaders(opts?.headers, {
2510
2706
  authorization,
2511
- "x-account-id": xAccountId
2707
+ "x-account-id": xAccountId,
2708
+ "x-member-id": xMemberId
2512
2709
  })
2513
2710
  }));
2514
2711
  }
2515
2712
  /**
2516
2713
  * List By Workspace Id
2517
2714
  */
2518
- export function listByWorkspaceIdV1QuickCommandsWorkspacesWorkspaceIdGet({ workspaceId, authorization, xAccountId }: {
2715
+ export function listByWorkspaceIdV1QuickCommandsWorkspacesWorkspaceIdGet({ workspaceId, authorization, xAccountId, xMemberId }: {
2519
2716
  workspaceId: string;
2520
2717
  authorization: string;
2521
2718
  xAccountId?: string | null;
2719
+ xMemberId?: string | null;
2522
2720
  }, opts?: Oazapfts.RequestOpts) {
2523
2721
  return oazapfts.ok(oazapfts.fetchJson<{
2524
2722
  status: 200;
@@ -2532,18 +2730,20 @@ export function listByWorkspaceIdV1QuickCommandsWorkspacesWorkspaceIdGet({ works
2532
2730
  ...opts,
2533
2731
  headers: oazapfts.mergeHeaders(opts?.headers, {
2534
2732
  authorization,
2535
- "x-account-id": xAccountId
2733
+ "x-account-id": xAccountId,
2734
+ "x-member-id": xMemberId
2536
2735
  })
2537
2736
  }));
2538
2737
  }
2539
2738
  /**
2540
2739
  * Format Fetch Step
2541
2740
  */
2542
- export function formatFetchStepV1QuickCommandsSlugStepsStepSlugFetchFormatPost({ slug, stepSlug, authorization, xAccountId, quickCommandsExecutionRequest }: {
2741
+ export function formatFetchStepV1QuickCommandsSlugStepsStepSlugFetchFormatPost({ slug, stepSlug, authorization, xAccountId, xMemberId, quickCommandsExecutionRequest }: {
2543
2742
  slug: string;
2544
2743
  stepSlug: string;
2545
2744
  authorization: string;
2546
2745
  xAccountId?: string | null;
2746
+ xMemberId?: string | null;
2547
2747
  quickCommandsExecutionRequest: QuickCommandsExecutionRequest;
2548
2748
  }, opts?: Oazapfts.RequestOpts) {
2549
2749
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -2560,17 +2760,19 @@ export function formatFetchStepV1QuickCommandsSlugStepsStepSlugFetchFormatPost({
2560
2760
  body: quickCommandsExecutionRequest,
2561
2761
  headers: oazapfts.mergeHeaders(opts?.headers, {
2562
2762
  authorization,
2563
- "x-account-id": xAccountId
2763
+ "x-account-id": xAccountId,
2764
+ "x-member-id": xMemberId
2564
2765
  })
2565
2766
  })));
2566
2767
  }
2567
2768
  /**
2568
2769
  * Format Result
2569
2770
  */
2570
- export function formatResultV1QuickCommandsSlugResultFormatPost({ slug, authorization, xAccountId, quickCommandsExecutionRequest }: {
2771
+ export function formatResultV1QuickCommandsSlugResultFormatPost({ slug, authorization, xAccountId, xMemberId, quickCommandsExecutionRequest }: {
2571
2772
  slug: string;
2572
2773
  authorization: string;
2573
2774
  xAccountId?: string | null;
2775
+ xMemberId?: string | null;
2574
2776
  quickCommandsExecutionRequest: QuickCommandsExecutionRequest;
2575
2777
  }, opts?: Oazapfts.RequestOpts) {
2576
2778
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -2587,18 +2789,50 @@ export function formatResultV1QuickCommandsSlugResultFormatPost({ slug, authoriz
2587
2789
  body: quickCommandsExecutionRequest,
2588
2790
  headers: oazapfts.mergeHeaders(opts?.headers, {
2589
2791
  authorization,
2590
- "x-account-id": xAccountId
2792
+ "x-account-id": xAccountId,
2793
+ "x-member-id": xMemberId
2794
+ })
2795
+ })));
2796
+ }
2797
+ /**
2798
+ * Calculates the next route for a ROUTER step
2799
+ */
2800
+ export function calculateNextStepV1QuickCommandsSlugStepsStepSlugCalculateNextStepPost({ slug, stepSlug, authorization, xAccountId, xMemberId, quickCommandEvaluateStepRouterRequest }: {
2801
+ slug: string;
2802
+ stepSlug: string;
2803
+ authorization: string;
2804
+ xAccountId?: string | null;
2805
+ xMemberId?: string | null;
2806
+ quickCommandEvaluateStepRouterRequest: QuickCommandEvaluateStepRouterRequest;
2807
+ }, opts?: Oazapfts.RequestOpts) {
2808
+ return oazapfts.ok(oazapfts.fetchJson<{
2809
+ status: 200;
2810
+ data: QuickCommandEvaluateStepRouterResponse;
2811
+ } | {
2812
+ status: 404;
2813
+ } | {
2814
+ status: 422;
2815
+ data: HttpValidationError;
2816
+ }>(`/v1/quick-commands/${encodeURIComponent(slug)}/steps/${encodeURIComponent(stepSlug)}/calculate_next_step`, oazapfts.json({
2817
+ ...opts,
2818
+ method: "POST",
2819
+ body: quickCommandEvaluateStepRouterRequest,
2820
+ headers: oazapfts.mergeHeaders(opts?.headers, {
2821
+ authorization,
2822
+ "x-account-id": xAccountId,
2823
+ "x-member-id": xMemberId
2591
2824
  })
2592
2825
  })));
2593
2826
  }
2594
2827
  /**
2595
2828
  * Add Workspace
2596
2829
  */
2597
- export function addWorkspaceV1QuickCommandsSlugWorkspacesWorkspaceIdAddPost({ slug, workspaceId, authorization, xAccountId }: {
2830
+ export function addWorkspaceV1QuickCommandsSlugWorkspacesWorkspaceIdAddPost({ slug, workspaceId, authorization, xAccountId, xMemberId }: {
2598
2831
  slug: string;
2599
2832
  workspaceId: string;
2600
2833
  authorization: string;
2601
2834
  xAccountId?: string | null;
2835
+ xMemberId?: string | null;
2602
2836
  }, opts?: Oazapfts.RequestOpts) {
2603
2837
  return oazapfts.ok(oazapfts.fetchJson<{
2604
2838
  status: 204;
@@ -2612,18 +2846,20 @@ export function addWorkspaceV1QuickCommandsSlugWorkspacesWorkspaceIdAddPost({ sl
2612
2846
  method: "POST",
2613
2847
  headers: oazapfts.mergeHeaders(opts?.headers, {
2614
2848
  authorization,
2615
- "x-account-id": xAccountId
2849
+ "x-account-id": xAccountId,
2850
+ "x-member-id": xMemberId
2616
2851
  })
2617
2852
  }));
2618
2853
  }
2619
2854
  /**
2620
2855
  * Remove Workspace
2621
2856
  */
2622
- export function removeWorkspaceV1QuickCommandsSlugWorkspacesWorkspaceIdRemoveDelete({ slug, workspaceId, authorization, xAccountId }: {
2857
+ export function removeWorkspaceV1QuickCommandsSlugWorkspacesWorkspaceIdRemoveDelete({ slug, workspaceId, authorization, xAccountId, xMemberId }: {
2623
2858
  slug: string;
2624
2859
  workspaceId: string;
2625
2860
  authorization: string;
2626
2861
  xAccountId?: string | null;
2862
+ xMemberId?: string | null;
2627
2863
  }, opts?: Oazapfts.RequestOpts) {
2628
2864
  return oazapfts.ok(oazapfts.fetchJson<{
2629
2865
  status: 204;
@@ -2637,18 +2873,20 @@ export function removeWorkspaceV1QuickCommandsSlugWorkspacesWorkspaceIdRemoveDel
2637
2873
  method: "DELETE",
2638
2874
  headers: oazapfts.mergeHeaders(opts?.headers, {
2639
2875
  authorization,
2640
- "x-account-id": xAccountId
2876
+ "x-account-id": xAccountId,
2877
+ "x-member-id": xMemberId
2641
2878
  })
2642
2879
  }));
2643
2880
  }
2644
2881
  /**
2645
2882
  * Create Execution
2646
2883
  */
2647
- export function createExecutionV1QuickCommandsCreateExecutionSlugPost({ slug, conversationId, authorization, xAccountId, quickCommandCreateRequest }: {
2884
+ export function createExecutionV1QuickCommandsCreateExecutionSlugPost({ slug, conversationId, authorization, xAccountId, xMemberId, quickCommandCreateRequest }: {
2648
2885
  slug: string;
2649
2886
  conversationId?: string | null;
2650
2887
  authorization: string;
2651
2888
  xAccountId?: string | null;
2889
+ xMemberId?: string | null;
2652
2890
  quickCommandCreateRequest?: QuickCommandCreateRequest;
2653
2891
  }, opts?: Oazapfts.RequestOpts) {
2654
2892
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -2667,17 +2905,47 @@ export function createExecutionV1QuickCommandsCreateExecutionSlugPost({ slug, co
2667
2905
  body: quickCommandCreateRequest,
2668
2906
  headers: oazapfts.mergeHeaders(opts?.headers, {
2669
2907
  authorization,
2670
- "x-account-id": xAccountId
2908
+ "x-account-id": xAccountId,
2909
+ "x-member-id": xMemberId
2910
+ })
2911
+ })));
2912
+ }
2913
+ /**
2914
+ * Triggers asynchronous execution of a Remote Quick Command
2915
+ */
2916
+ export function executeV1QuickCommandsExecuteExecutionIdPost({ executionId, authorization, xAccountId, xMemberId, quickCommandExecutionRequest }: {
2917
+ executionId: string;
2918
+ authorization: string;
2919
+ xAccountId?: string | null;
2920
+ xMemberId?: string | null;
2921
+ quickCommandExecutionRequest?: QuickCommandExecutionRequest;
2922
+ }, opts?: Oazapfts.RequestOpts) {
2923
+ return oazapfts.ok(oazapfts.fetchJson<{
2924
+ status: 204;
2925
+ } | {
2926
+ status: 404;
2927
+ } | {
2928
+ status: 422;
2929
+ data: HttpValidationError;
2930
+ }>(`/v1/quick-commands/execute/${encodeURIComponent(executionId)}`, oazapfts.json({
2931
+ ...opts,
2932
+ method: "POST",
2933
+ body: quickCommandExecutionRequest,
2934
+ headers: oazapfts.mergeHeaders(opts?.headers, {
2935
+ authorization,
2936
+ "x-account-id": xAccountId,
2937
+ "x-member-id": xMemberId
2671
2938
  })
2672
2939
  })));
2673
2940
  }
2674
2941
  /**
2675
2942
  * Callback
2676
2943
  */
2677
- export function callbackV1QuickCommandsCallbackExecutionIdGet({ executionId, authorization, xAccountId }: {
2944
+ export function callbackV1QuickCommandsCallbackExecutionIdGet({ executionId, authorization, xAccountId, xMemberId }: {
2678
2945
  executionId: string;
2679
2946
  authorization: string;
2680
2947
  xAccountId?: string | null;
2948
+ xMemberId?: string | null;
2681
2949
  }, opts?: Oazapfts.RequestOpts) {
2682
2950
  return oazapfts.ok(oazapfts.fetchJson<{
2683
2951
  status: 200;
@@ -2691,23 +2959,25 @@ export function callbackV1QuickCommandsCallbackExecutionIdGet({ executionId, aut
2691
2959
  ...opts,
2692
2960
  headers: oazapfts.mergeHeaders(opts?.headers, {
2693
2961
  authorization,
2694
- "x-account-id": xAccountId
2962
+ "x-account-id": xAccountId,
2963
+ "x-member-id": xMemberId
2695
2964
  })
2696
2965
  }));
2697
2966
  }
2698
2967
  /**
2699
2968
  * Run Fetch Step
2700
2969
  */
2701
- export function runFetchStepV1QuickCommandsSlugStepsStepSlugFetchRunPost({ slug, stepSlug, authorization, xAccountId, quickCommandsExecutionRequest }: {
2970
+ export function runFetchStepV1QuickCommandsSlugStepsStepSlugFetchRunPost({ slug, stepSlug, authorization, xAccountId, xMemberId, quickCommandsExecutionRequest }: {
2702
2971
  slug: string;
2703
2972
  stepSlug: string;
2704
2973
  authorization: string;
2705
2974
  xAccountId?: string | null;
2975
+ xMemberId?: string | null;
2706
2976
  quickCommandsExecutionRequest: QuickCommandsExecutionRequest;
2707
2977
  }, opts?: Oazapfts.RequestOpts) {
2708
2978
  return oazapfts.ok(oazapfts.fetchJson<{
2709
2979
  status: 200;
2710
- data: any;
2980
+ data: QuickCommandStepFetchResponse;
2711
2981
  } | {
2712
2982
  status: 404;
2713
2983
  } | {
@@ -2719,18 +2989,20 @@ export function runFetchStepV1QuickCommandsSlugStepsStepSlugFetchRunPost({ slug,
2719
2989
  body: quickCommandsExecutionRequest,
2720
2990
  headers: oazapfts.mergeHeaders(opts?.headers, {
2721
2991
  authorization,
2722
- "x-account-id": xAccountId
2992
+ "x-account-id": xAccountId,
2993
+ "x-member-id": xMemberId
2723
2994
  })
2724
2995
  })));
2725
2996
  }
2726
2997
  /**
2727
2998
  * List Conversations
2728
2999
  */
2729
- export function listConversationsV1ConversationsGet({ size, page, authorization, xAccountId }: {
3000
+ export function listConversationsV1ConversationsGet({ size, page, authorization, xAccountId, xMemberId }: {
2730
3001
  size?: number;
2731
3002
  page?: number;
2732
3003
  authorization: string;
2733
3004
  xAccountId?: string | null;
3005
+ xMemberId?: string | null;
2734
3006
  }, opts?: Oazapfts.RequestOpts) {
2735
3007
  return oazapfts.ok(oazapfts.fetchJson<{
2736
3008
  status: 200;
@@ -2747,17 +3019,19 @@ export function listConversationsV1ConversationsGet({ size, page, authorization,
2747
3019
  ...opts,
2748
3020
  headers: oazapfts.mergeHeaders(opts?.headers, {
2749
3021
  authorization,
2750
- "x-account-id": xAccountId
3022
+ "x-account-id": xAccountId,
3023
+ "x-member-id": xMemberId
2751
3024
  })
2752
3025
  }));
2753
3026
  }
2754
3027
  /**
2755
3028
  * Conversation History
2756
3029
  */
2757
- export function conversationHistoryV1ConversationsConversationIdGet({ conversationId, authorization, xAccountId }: {
3030
+ export function conversationHistoryV1ConversationsConversationIdGet({ conversationId, authorization, xAccountId, xMemberId }: {
2758
3031
  conversationId: string;
2759
3032
  authorization: string;
2760
3033
  xAccountId?: string | null;
3034
+ xMemberId?: string | null;
2761
3035
  }, opts?: Oazapfts.RequestOpts) {
2762
3036
  return oazapfts.ok(oazapfts.fetchJson<{
2763
3037
  status: 200;
@@ -2771,17 +3045,19 @@ export function conversationHistoryV1ConversationsConversationIdGet({ conversati
2771
3045
  ...opts,
2772
3046
  headers: oazapfts.mergeHeaders(opts?.headers, {
2773
3047
  authorization,
2774
- "x-account-id": xAccountId
3048
+ "x-account-id": xAccountId,
3049
+ "x-member-id": xMemberId
2775
3050
  })
2776
3051
  }));
2777
3052
  }
2778
3053
  /**
2779
3054
  * Update Title
2780
3055
  */
2781
- export function updateTitleV1ConversationsConversationIdPatch({ conversationId, authorization, xAccountId, conversationUpdateTitleRequest }: {
3056
+ export function updateTitleV1ConversationsConversationIdPatch({ conversationId, authorization, xAccountId, xMemberId, conversationUpdateTitleRequest }: {
2782
3057
  conversationId: string;
2783
3058
  authorization: string;
2784
3059
  xAccountId?: string | null;
3060
+ xMemberId?: string | null;
2785
3061
  conversationUpdateTitleRequest: ConversationUpdateTitleRequest;
2786
3062
  }, opts?: Oazapfts.RequestOpts) {
2787
3063
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -2798,17 +3074,19 @@ export function updateTitleV1ConversationsConversationIdPatch({ conversationId,
2798
3074
  body: conversationUpdateTitleRequest,
2799
3075
  headers: oazapfts.mergeHeaders(opts?.headers, {
2800
3076
  authorization,
2801
- "x-account-id": xAccountId
3077
+ "x-account-id": xAccountId,
3078
+ "x-member-id": xMemberId
2802
3079
  })
2803
3080
  })));
2804
3081
  }
2805
3082
  /**
2806
3083
  * Delete Conversation
2807
3084
  */
2808
- export function deleteConversationV1ConversationsConversationIdDelete({ conversationId, authorization, xAccountId }: {
3085
+ export function deleteConversationV1ConversationsConversationIdDelete({ conversationId, authorization, xAccountId, xMemberId }: {
2809
3086
  conversationId: string;
2810
3087
  authorization: string;
2811
3088
  xAccountId?: string | null;
3089
+ xMemberId?: string | null;
2812
3090
  }, opts?: Oazapfts.RequestOpts) {
2813
3091
  return oazapfts.ok(oazapfts.fetchJson<{
2814
3092
  status: 204;
@@ -2822,17 +3100,19 @@ export function deleteConversationV1ConversationsConversationIdDelete({ conversa
2822
3100
  method: "DELETE",
2823
3101
  headers: oazapfts.mergeHeaders(opts?.headers, {
2824
3102
  authorization,
2825
- "x-account-id": xAccountId
3103
+ "x-account-id": xAccountId,
3104
+ "x-member-id": xMemberId
2826
3105
  })
2827
3106
  }));
2828
3107
  }
2829
3108
  /**
2830
3109
  * Download Conversation
2831
3110
  */
2832
- export function downloadConversationV1ConversationsConversationIdDownloadGet({ conversationId, authorization, xAccountId }: {
3111
+ export function downloadConversationV1ConversationsConversationIdDownloadGet({ conversationId, authorization, xAccountId, xMemberId }: {
2833
3112
  conversationId: string;
2834
3113
  authorization: string;
2835
3114
  xAccountId?: string | null;
3115
+ xMemberId?: string | null;
2836
3116
  }, opts?: Oazapfts.RequestOpts) {
2837
3117
  return oazapfts.ok(oazapfts.fetchJson<{
2838
3118
  status: 200;
@@ -2846,7 +3126,8 @@ export function downloadConversationV1ConversationsConversationIdDownloadGet({ c
2846
3126
  ...opts,
2847
3127
  headers: oazapfts.mergeHeaders(opts?.headers, {
2848
3128
  authorization,
2849
- "x-account-id": xAccountId
3129
+ "x-account-id": xAccountId,
3130
+ "x-member-id": xMemberId
2850
3131
  })
2851
3132
  }));
2852
3133
  }
@@ -2921,10 +3202,11 @@ export function uploadKnowledgeObjectsZipV1DefaultKnowledgeSourcesSlugObjectsBat
2921
3202
  /**
2922
3203
  * Find Knowledge Source Dependencies
2923
3204
  */
2924
- export function findKnowledgeSourceDependenciesV1KnowledgeSourcesSlugDependenciesGet({ slug, authorization, xAccountId }: {
3205
+ export function findKnowledgeSourceDependenciesV1KnowledgeSourcesSlugDependenciesGet({ slug, authorization, xAccountId, xMemberId }: {
2925
3206
  slug: string;
2926
3207
  authorization: string;
2927
3208
  xAccountId?: string | null;
3209
+ xMemberId?: string | null;
2928
3210
  }, opts?: Oazapfts.RequestOpts) {
2929
3211
  return oazapfts.ok(oazapfts.fetchJson<{
2930
3212
  status: 200;
@@ -2938,7 +3220,8 @@ export function findKnowledgeSourceDependenciesV1KnowledgeSourcesSlugDependencie
2938
3220
  ...opts,
2939
3221
  headers: oazapfts.mergeHeaders(opts?.headers, {
2940
3222
  authorization,
2941
- "x-account-id": xAccountId
3223
+ "x-account-id": xAccountId,
3224
+ "x-member-id": xMemberId
2942
3225
  })
2943
3226
  }));
2944
3227
  }
@@ -2956,11 +3239,12 @@ export function getFlagsV1FlagsGet(opts?: Oazapfts.RequestOpts) {
2956
3239
  /**
2957
3240
  * Get Content Dependencies
2958
3241
  */
2959
- export function getContentDependenciesV1ContentContentTypeContentIdDependenciesGet({ contentType, contentId, authorization, xAccountId }: {
3242
+ export function getContentDependenciesV1ContentContentTypeContentIdDependenciesGet({ contentType, contentId, authorization, xAccountId, xMemberId }: {
2960
3243
  contentType: ContentDependencyType;
2961
3244
  contentId: string;
2962
3245
  authorization: string;
2963
3246
  xAccountId?: string | null;
3247
+ xMemberId?: string | null;
2964
3248
  }, opts?: Oazapfts.RequestOpts) {
2965
3249
  return oazapfts.ok(oazapfts.fetchJson<{
2966
3250
  status: 200;
@@ -2974,7 +3258,8 @@ export function getContentDependenciesV1ContentContentTypeContentIdDependenciesG
2974
3258
  ...opts,
2975
3259
  headers: oazapfts.mergeHeaders(opts?.headers, {
2976
3260
  authorization,
2977
- "x-account-id": xAccountId
3261
+ "x-account-id": xAccountId,
3262
+ "x-member-id": xMemberId
2978
3263
  })
2979
3264
  }));
2980
3265
  }
@@ -3003,11 +3288,12 @@ export function devAssistantV2V2ChatPost({ accept }: {
3003
3288
  /**
3004
3289
  * Quick Commands Run V2
3005
3290
  */
3006
- export function quickCommandsRunV2V2QuickCommandsSlugStepsStepSlugRunPost({ slug, stepSlug, authorization, xAccountId, quickCommandsExecutionRequest }: {
3291
+ export function quickCommandsRunV2V2QuickCommandsSlugStepsStepSlugRunPost({ slug, stepSlug, authorization, xAccountId, xMemberId, quickCommandsExecutionRequest }: {
3007
3292
  slug: string;
3008
3293
  stepSlug: string;
3009
3294
  authorization: string;
3010
3295
  xAccountId?: string | null;
3296
+ xMemberId?: string | null;
3011
3297
  quickCommandsExecutionRequest: QuickCommandsExecutionRequest;
3012
3298
  }, opts?: Oazapfts.RequestOpts) {
3013
3299
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -3024,19 +3310,21 @@ export function quickCommandsRunV2V2QuickCommandsSlugStepsStepSlugRunPost({ slug
3024
3310
  body: quickCommandsExecutionRequest,
3025
3311
  headers: oazapfts.mergeHeaders(opts?.headers, {
3026
3312
  authorization,
3027
- "x-account-id": xAccountId
3313
+ "x-account-id": xAccountId,
3314
+ "x-member-id": xMemberId
3028
3315
  })
3029
3316
  })));
3030
3317
  }
3031
3318
  /**
3032
3319
  * List All
3033
3320
  */
3034
- export function listAllV2QuickCommandsAllGet({ visibility, order, types, authorization, xAccountId }: {
3321
+ export function listAllV2QuickCommandsAllGet({ visibility, order, types, authorization, xAccountId, xMemberId }: {
3035
3322
  visibility?: VisibilityLevelEnum | null;
3036
3323
  order?: OrderEnum;
3037
3324
  types?: QuickCommandTypeRequest[] | null;
3038
3325
  authorization: string;
3039
3326
  xAccountId?: string | null;
3327
+ xMemberId?: string | null;
3040
3328
  }, opts?: Oazapfts.RequestOpts) {
3041
3329
  return oazapfts.ok(oazapfts.fetchJson<{
3042
3330
  status: 200;
@@ -3054,16 +3342,18 @@ export function listAllV2QuickCommandsAllGet({ visibility, order, types, authori
3054
3342
  ...opts,
3055
3343
  headers: oazapfts.mergeHeaders(opts?.headers, {
3056
3344
  authorization,
3057
- "x-account-id": xAccountId
3345
+ "x-account-id": xAccountId,
3346
+ "x-member-id": xMemberId
3058
3347
  })
3059
3348
  }));
3060
3349
  }
3061
3350
  /**
3062
3351
  * Dev Assistant V3
3063
3352
  */
3064
- export function devAssistantV3V3ChatPost({ authorization, xAccountId, chatRequest }: {
3353
+ export function devAssistantV3V3ChatPost({ authorization, xAccountId, xMemberId, chatRequest }: {
3065
3354
  authorization: string;
3066
3355
  xAccountId?: string | null;
3356
+ xMemberId?: string | null;
3067
3357
  chatRequest: ChatRequest;
3068
3358
  }, opts?: Oazapfts.RequestOpts) {
3069
3359
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -3080,7 +3370,8 @@ export function devAssistantV3V3ChatPost({ authorization, xAccountId, chatReques
3080
3370
  body: chatRequest,
3081
3371
  headers: oazapfts.mergeHeaders(opts?.headers, {
3082
3372
  authorization,
3083
- "x-account-id": xAccountId
3373
+ "x-account-id": xAccountId,
3374
+ "x-member-id": xMemberId
3084
3375
  })
3085
3376
  })));
3086
3377
  }