@stack-spot/portal-network 0.195.1 → 0.196.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.
- package/CHANGELOG.md +79 -0
- package/dist/api/agent-tools.d.ts +135 -148
- package/dist/api/agent-tools.d.ts.map +1 -1
- package/dist/api/agent-tools.js +41 -4
- package/dist/api/agent-tools.js.map +1 -1
- package/dist/api/agent.d.ts +55 -55
- package/dist/api/agent.d.ts.map +1 -1
- package/dist/api/ai.d.ts +196 -25
- package/dist/api/ai.d.ts.map +1 -1
- package/dist/api/ai.js +153 -22
- package/dist/api/ai.js.map +1 -1
- package/dist/api/cloudPlatformHorizon.d.ts +178 -9
- package/dist/api/cloudPlatformHorizon.d.ts.map +1 -1
- package/dist/api/cloudPlatformHorizon.js +69 -1
- package/dist/api/cloudPlatformHorizon.js.map +1 -1
- package/dist/api/codeShift.d.ts +315 -62
- package/dist/api/codeShift.d.ts.map +1 -1
- package/dist/api/codeShift.js +153 -12
- package/dist/api/codeShift.js.map +1 -1
- package/dist/api/discover.d.ts +23 -12
- package/dist/api/discover.d.ts.map +1 -1
- package/dist/api/discover.js +10 -0
- package/dist/api/discover.js.map +1 -1
- package/dist/api-addresses.d.ts.map +1 -1
- package/dist/client/account.d.ts +233 -233
- package/dist/client/account.d.ts.map +1 -1
- package/dist/client/agent-tools.d.ts +152 -126
- package/dist/client/agent-tools.d.ts.map +1 -1
- package/dist/client/agent-tools.js +29 -2
- package/dist/client/agent-tools.js.map +1 -1
- package/dist/client/agent.d.ts +46 -46
- package/dist/client/agent.d.ts.map +1 -1
- package/dist/client/ai.d.ts +120 -110
- package/dist/client/ai.d.ts.map +1 -1
- package/dist/client/ai.js +29 -2
- package/dist/client/ai.js.map +1 -1
- package/dist/client/api-management.d.ts +2 -2
- package/dist/client/cloud-account.d.ts +13 -13
- package/dist/client/cloud-platform-horizon.d.ts +38 -19
- package/dist/client/cloud-platform-horizon.d.ts.map +1 -1
- package/dist/client/cloud-platform-horizon.js +19 -1
- package/dist/client/cloud-platform-horizon.js.map +1 -1
- package/dist/client/cloud-platform.d.ts +50 -50
- package/dist/client/cloud-runtimes.d.ts +4 -4
- package/dist/client/cloud-services.d.ts +17 -17
- package/dist/client/cloud-services.d.ts.map +1 -1
- package/dist/client/code-shift.d.ts +349 -258
- package/dist/client/code-shift.d.ts.map +1 -1
- package/dist/client/code-shift.js +82 -1
- package/dist/client/code-shift.js.map +1 -1
- package/dist/client/content.d.ts +127 -132
- package/dist/client/content.d.ts.map +1 -1
- package/dist/client/data-integration.d.ts +55 -55
- package/dist/client/data-integration.d.ts.map +1 -1
- package/dist/client/discover.d.ts +15 -9
- package/dist/client/discover.d.ts.map +1 -1
- package/dist/client/discover.js +208 -0
- package/dist/client/discover.js.map +1 -1
- package/dist/client/event-bus.d.ts.map +1 -1
- package/dist/client/gen-ai-inference.d.ts +20 -20
- package/dist/client/insights.d.ts +7 -7
- package/dist/client/notification.d.ts +10 -10
- package/dist/client/runtime-manager.d.ts +8 -8
- package/dist/client/types.d.ts +14 -0
- package/dist/client/types.d.ts.map +1 -1
- package/dist/client/workflow.d.ts +10 -10
- package/dist/client/workspace-ai.d.ts +53 -53
- package/dist/client/workspace-manager.d.ts +77 -77
- package/dist/client/workspace-search.d.ts +2 -2
- package/dist/client/workspace.d.ts +58 -105
- package/dist/client/workspace.d.ts.map +1 -1
- package/dist/error/dictionary/cloud-platform.d.ts +6 -0
- package/dist/error/dictionary/cloud-platform.d.ts.map +1 -1
- package/dist/error/dictionary/cloud-platform.js +6 -0
- package/dist/error/dictionary/cloud-platform.js.map +1 -1
- package/dist/utils/StreamedJson.d.ts.map +1 -1
- package/dist/utils/StreamedJson.js +9 -1
- package/dist/utils/StreamedJson.js.map +1 -1
- package/package.json +2 -2
- package/src/api/agent-tools.ts +182 -150
- package/src/api/ai.ts +381 -40
- package/src/api/cloudPlatformHorizon.ts +412 -9
- package/src/api/codeShift.ts +607 -69
- package/src/api/discover.ts +35 -12
- package/src/client/agent-tools.ts +20 -2
- package/src/client/ai.ts +25 -10
- package/src/client/cloud-platform-horizon.ts +12 -4
- package/src/client/code-shift.ts +50 -1
- package/src/client/discover.ts +220 -3
- package/src/client/types.ts +17 -2
- package/src/error/dictionary/cloud-platform.ts +6 -0
- 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
|
|
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 |
|
|
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]:
|
|
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
|
|
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;
|
|
@@ -735,6 +773,40 @@ export type DependencyResponse = {
|
|
|
735
773
|
delete_contents?: ContentDependencyResponse[] | null;
|
|
736
774
|
missing_list?: ContentDependencyResponse[] | null;
|
|
737
775
|
};
|
|
776
|
+
export type SortDirection = "ASC" | "DESC";
|
|
777
|
+
export type FilterMode = "MATCH" | "CONTAINS" | "IN";
|
|
778
|
+
export type ReviewAnswers = {
|
|
779
|
+
id: string;
|
|
780
|
+
memberId: string;
|
|
781
|
+
comment: string;
|
|
782
|
+
createdAt: string;
|
|
783
|
+
updatedAt?: string | null;
|
|
784
|
+
};
|
|
785
|
+
export type Review = {
|
|
786
|
+
id: string;
|
|
787
|
+
memberId: string;
|
|
788
|
+
rating: number;
|
|
789
|
+
comment: string;
|
|
790
|
+
resourceType: string;
|
|
791
|
+
resourceSlug: string;
|
|
792
|
+
createdAt: string;
|
|
793
|
+
updatedAt?: string | null;
|
|
794
|
+
reviewAnswers?: ReviewAnswers[];
|
|
795
|
+
};
|
|
796
|
+
export type ResourceReviewResponse = {
|
|
797
|
+
items: Review[];
|
|
798
|
+
totalElements: number;
|
|
799
|
+
page: number;
|
|
800
|
+
size: number;
|
|
801
|
+
totalPages: number;
|
|
802
|
+
};
|
|
803
|
+
export type ResourceReviewRequest = {
|
|
804
|
+
rating: number;
|
|
805
|
+
comment?: string | null;
|
|
806
|
+
};
|
|
807
|
+
export type ReviewAnswer = {
|
|
808
|
+
answer: string;
|
|
809
|
+
};
|
|
738
810
|
export type SourceProjectFile2 = {
|
|
739
811
|
"type": "project_file";
|
|
740
812
|
path: string;
|
|
@@ -2120,20 +2192,34 @@ export function changeExternalConfigsV1AccountsExternalConfigPatch({ body }: {
|
|
|
2120
2192
|
/**
|
|
2121
2193
|
* Tokens Usage
|
|
2122
2194
|
*/
|
|
2123
|
-
export function tokensUsageV1AccountsTokensUsageGet(
|
|
2195
|
+
export function tokensUsageV1AccountsTokensUsageGet({ authorization, xAccountId, xMemberId, xUsername }: {
|
|
2196
|
+
authorization: string;
|
|
2197
|
+
xAccountId?: string | null;
|
|
2198
|
+
xMemberId?: string | null;
|
|
2199
|
+
xUsername?: string | null;
|
|
2200
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2124
2201
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2125
2202
|
status: 200;
|
|
2126
2203
|
data: AccountTokenUsage;
|
|
2127
2204
|
} | {
|
|
2128
2205
|
status: 404;
|
|
2206
|
+
} | {
|
|
2207
|
+
status: 422;
|
|
2208
|
+
data: HttpValidationError;
|
|
2129
2209
|
}>("/v1/accounts/tokens-usage", {
|
|
2130
|
-
...opts
|
|
2210
|
+
...opts,
|
|
2211
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2212
|
+
authorization,
|
|
2213
|
+
"x-account-id": xAccountId,
|
|
2214
|
+
"x-member-id": xMemberId,
|
|
2215
|
+
"x-username": xUsername
|
|
2216
|
+
})
|
|
2131
2217
|
}));
|
|
2132
2218
|
}
|
|
2133
2219
|
/**
|
|
2134
|
-
*
|
|
2220
|
+
* Total
|
|
2135
2221
|
*/
|
|
2136
|
-
export function
|
|
2222
|
+
export function totalV1TokensUsageTotalGet({ authorization, xAccountId, xMemberId, xUsername }: {
|
|
2137
2223
|
authorization: string;
|
|
2138
2224
|
xAccountId?: string | null;
|
|
2139
2225
|
xMemberId?: string | null;
|
|
@@ -2161,8 +2247,8 @@ export function currentV1TokensUsageTotalGet({ authorization, xAccountId, xMembe
|
|
|
2161
2247
|
* Current
|
|
2162
2248
|
*/
|
|
2163
2249
|
export function currentV1TokensUsageCurrentGet({ year, month, authorization, xAccountId, xMemberId, xUsername }: {
|
|
2164
|
-
year
|
|
2165
|
-
month
|
|
2250
|
+
year?: number | null;
|
|
2251
|
+
month?: number | null;
|
|
2166
2252
|
authorization: string;
|
|
2167
2253
|
xAccountId?: string | null;
|
|
2168
2254
|
xMemberId?: string | null;
|
|
@@ -2726,9 +2812,9 @@ export function forkV1QuickCommandsSlugForkPost({ slug, authorization, xAccountI
|
|
|
2726
2812
|
})));
|
|
2727
2813
|
}
|
|
2728
2814
|
/**
|
|
2729
|
-
*
|
|
2815
|
+
* Check Quick Command Exists
|
|
2730
2816
|
*/
|
|
2731
|
-
export function
|
|
2817
|
+
export function checkQuickCommandExistsV1QuickCommandsSlugExistsGet({ slug, authorization, xAccountId, xMemberId, xUsername }: {
|
|
2732
2818
|
slug: string;
|
|
2733
2819
|
authorization: string;
|
|
2734
2820
|
xAccountId?: string | null;
|
|
@@ -3021,13 +3107,9 @@ export function removeWorkspaceV1QuickCommandsSlugWorkspacesWorkspaceIdRemoveDel
|
|
|
3021
3107
|
/**
|
|
3022
3108
|
* Create Execution
|
|
3023
3109
|
*/
|
|
3024
|
-
export function createExecutionV1QuickCommandsCreateExecutionSlugPost({ slug, conversationId,
|
|
3110
|
+
export function createExecutionV1QuickCommandsCreateExecutionSlugPost({ slug, conversationId, quickCommandCreateRequest }: {
|
|
3025
3111
|
slug: string;
|
|
3026
3112
|
conversationId?: string | null;
|
|
3027
|
-
authorization: string;
|
|
3028
|
-
xAccountId?: string | null;
|
|
3029
|
-
xMemberId?: string | null;
|
|
3030
|
-
xUsername?: string | null;
|
|
3031
3113
|
quickCommandCreateRequest?: QuickCommandCreateRequest;
|
|
3032
3114
|
}, opts?: Oazapfts.RequestOpts) {
|
|
3033
3115
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
@@ -3043,13 +3125,7 @@ export function createExecutionV1QuickCommandsCreateExecutionSlugPost({ slug, co
|
|
|
3043
3125
|
}))}`, oazapfts.json({
|
|
3044
3126
|
...opts,
|
|
3045
3127
|
method: "POST",
|
|
3046
|
-
body: quickCommandCreateRequest
|
|
3047
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
3048
|
-
authorization,
|
|
3049
|
-
"x-account-id": xAccountId,
|
|
3050
|
-
"x-member-id": xMemberId,
|
|
3051
|
-
"x-username": xUsername
|
|
3052
|
-
})
|
|
3128
|
+
body: quickCommandCreateRequest
|
|
3053
3129
|
})));
|
|
3054
3130
|
}
|
|
3055
3131
|
/**
|
|
@@ -3085,12 +3161,8 @@ export function executeV1QuickCommandsExecuteExecutionIdPost({ executionId, auth
|
|
|
3085
3161
|
/**
|
|
3086
3162
|
* Callback
|
|
3087
3163
|
*/
|
|
3088
|
-
export function callbackV1QuickCommandsCallbackExecutionIdGet({ executionId
|
|
3164
|
+
export function callbackV1QuickCommandsCallbackExecutionIdGet({ executionId }: {
|
|
3089
3165
|
executionId: string;
|
|
3090
|
-
authorization: string;
|
|
3091
|
-
xAccountId?: string | null;
|
|
3092
|
-
xMemberId?: string | null;
|
|
3093
|
-
xUsername?: string | null;
|
|
3094
3166
|
}, opts?: Oazapfts.RequestOpts) {
|
|
3095
3167
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3096
3168
|
status: 200;
|
|
@@ -3101,13 +3173,7 @@ export function callbackV1QuickCommandsCallbackExecutionIdGet({ executionId, aut
|
|
|
3101
3173
|
status: 422;
|
|
3102
3174
|
data: HttpValidationError;
|
|
3103
3175
|
}>(`/v1/quick-commands/callback/${encodeURIComponent(executionId)}`, {
|
|
3104
|
-
...opts
|
|
3105
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
3106
|
-
authorization,
|
|
3107
|
-
"x-account-id": xAccountId,
|
|
3108
|
-
"x-member-id": xMemberId,
|
|
3109
|
-
"x-username": xUsername
|
|
3110
|
-
})
|
|
3176
|
+
...opts
|
|
3111
3177
|
}));
|
|
3112
3178
|
}
|
|
3113
3179
|
/**
|
|
@@ -3142,6 +3208,46 @@ export function runFetchStepV1QuickCommandsSlugStepsStepSlugFetchRunPost({ slug,
|
|
|
3142
3208
|
})
|
|
3143
3209
|
})));
|
|
3144
3210
|
}
|
|
3211
|
+
/**
|
|
3212
|
+
* Starts the execution of a step with a user defined script
|
|
3213
|
+
*/
|
|
3214
|
+
export function startScriptStepV1QuickCommandsSlugStepsStepSlugStartScriptPost({ slug, stepSlug, quickCommandStartScriptRequest }: {
|
|
3215
|
+
slug: string;
|
|
3216
|
+
stepSlug: string;
|
|
3217
|
+
quickCommandStartScriptRequest: QuickCommandStartScriptRequest;
|
|
3218
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3219
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3220
|
+
status: 202;
|
|
3221
|
+
data: QuickCommandStartScriptResponse;
|
|
3222
|
+
} | {
|
|
3223
|
+
status: 404;
|
|
3224
|
+
} | {
|
|
3225
|
+
status: 422;
|
|
3226
|
+
data: HttpValidationError;
|
|
3227
|
+
}>(`/v1/quick-commands/${encodeURIComponent(slug)}/steps/${encodeURIComponent(stepSlug)}/start-script`, oazapfts.json({
|
|
3228
|
+
...opts,
|
|
3229
|
+
method: "POST",
|
|
3230
|
+
body: quickCommandStartScriptRequest
|
|
3231
|
+
})));
|
|
3232
|
+
}
|
|
3233
|
+
/**
|
|
3234
|
+
* Get the status of a script execution step
|
|
3235
|
+
*/
|
|
3236
|
+
export function getScriptExecutionStatusV1QuickCommandsScriptExecutionsScriptExecutionIdGet({ scriptExecutionId }: {
|
|
3237
|
+
scriptExecutionId: string;
|
|
3238
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3239
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3240
|
+
status: 200;
|
|
3241
|
+
data: QuickCommandScriptExecutionResponse;
|
|
3242
|
+
} | {
|
|
3243
|
+
status: 404;
|
|
3244
|
+
} | {
|
|
3245
|
+
status: 422;
|
|
3246
|
+
data: HttpValidationError;
|
|
3247
|
+
}>(`/v1/quick-commands/script-executions/${encodeURIComponent(scriptExecutionId)}`, {
|
|
3248
|
+
...opts
|
|
3249
|
+
}));
|
|
3250
|
+
}
|
|
3145
3251
|
/**
|
|
3146
3252
|
* List Conversations
|
|
3147
3253
|
*/
|
|
@@ -3475,6 +3581,241 @@ export function tokensByUserV1AnalyticsTokensByUserGet({ month, year, page, page
|
|
|
3475
3581
|
...opts
|
|
3476
3582
|
}));
|
|
3477
3583
|
}
|
|
3584
|
+
/**
|
|
3585
|
+
* Get Reviews By Resource
|
|
3586
|
+
*/
|
|
3587
|
+
export function getReviewsByResourceV1ResourcesResourceTypeSlugResourceSlugReviewsGet({ resourceSlug, resourceTypeSlug, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn, authorization, xAccountId, xMemberId, xUsername }: {
|
|
3588
|
+
resourceSlug: string;
|
|
3589
|
+
resourceTypeSlug: string;
|
|
3590
|
+
size?: number | null;
|
|
3591
|
+
page?: number | null;
|
|
3592
|
+
sort?: string | null;
|
|
3593
|
+
direction?: SortDirection | null;
|
|
3594
|
+
search?: string | null;
|
|
3595
|
+
filterMode?: FilterMode | null;
|
|
3596
|
+
filterBy?: string | null;
|
|
3597
|
+
filterValue?: string | null;
|
|
3598
|
+
multiFilterMode?: string | null;
|
|
3599
|
+
filterIn?: string | null;
|
|
3600
|
+
authorization: string;
|
|
3601
|
+
xAccountId?: string | null;
|
|
3602
|
+
xMemberId?: string | null;
|
|
3603
|
+
xUsername?: string | null;
|
|
3604
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3605
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3606
|
+
status: 200;
|
|
3607
|
+
data: ResourceReviewResponse;
|
|
3608
|
+
} | {
|
|
3609
|
+
status: 404;
|
|
3610
|
+
} | {
|
|
3611
|
+
status: 422;
|
|
3612
|
+
data: HttpValidationError;
|
|
3613
|
+
}>(`/v1/resources/${encodeURIComponent(resourceTypeSlug)}/${encodeURIComponent(resourceSlug)}/reviews${QS.query(QS.explode({
|
|
3614
|
+
size,
|
|
3615
|
+
page,
|
|
3616
|
+
sort,
|
|
3617
|
+
direction,
|
|
3618
|
+
search,
|
|
3619
|
+
filterMode,
|
|
3620
|
+
filterBy,
|
|
3621
|
+
filterValue,
|
|
3622
|
+
multiFilterMode,
|
|
3623
|
+
filterIn
|
|
3624
|
+
}))}`, {
|
|
3625
|
+
...opts,
|
|
3626
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
3627
|
+
authorization,
|
|
3628
|
+
"x-account-id": xAccountId,
|
|
3629
|
+
"x-member-id": xMemberId,
|
|
3630
|
+
"x-username": xUsername
|
|
3631
|
+
})
|
|
3632
|
+
}));
|
|
3633
|
+
}
|
|
3634
|
+
/**
|
|
3635
|
+
* Create Resource Review
|
|
3636
|
+
*/
|
|
3637
|
+
export function createResourceReviewV1ResourcesResourceTypeSlugResourceSlugReviewsPost({ resourceSlug, resourceTypeSlug, authorization, xAccountId, xMemberId, xUsername, resourceReviewRequest }: {
|
|
3638
|
+
resourceSlug: string;
|
|
3639
|
+
resourceTypeSlug: string;
|
|
3640
|
+
authorization: string;
|
|
3641
|
+
xAccountId?: string | null;
|
|
3642
|
+
xMemberId?: string | null;
|
|
3643
|
+
xUsername?: string | null;
|
|
3644
|
+
resourceReviewRequest: ResourceReviewRequest;
|
|
3645
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3646
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3647
|
+
status: 200;
|
|
3648
|
+
data: any;
|
|
3649
|
+
} | {
|
|
3650
|
+
status: 404;
|
|
3651
|
+
} | {
|
|
3652
|
+
status: 422;
|
|
3653
|
+
data: HttpValidationError;
|
|
3654
|
+
}>(`/v1/resources/${encodeURIComponent(resourceTypeSlug)}/${encodeURIComponent(resourceSlug)}/reviews`, oazapfts.json({
|
|
3655
|
+
...opts,
|
|
3656
|
+
method: "POST",
|
|
3657
|
+
body: resourceReviewRequest,
|
|
3658
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
3659
|
+
authorization,
|
|
3660
|
+
"x-account-id": xAccountId,
|
|
3661
|
+
"x-member-id": xMemberId,
|
|
3662
|
+
"x-username": xUsername
|
|
3663
|
+
})
|
|
3664
|
+
})));
|
|
3665
|
+
}
|
|
3666
|
+
/**
|
|
3667
|
+
* Create Answer For Review
|
|
3668
|
+
*/
|
|
3669
|
+
export function createAnswerForReviewV1ResourcesResourceTypeSlugResourceSlugReviewsReviewIdAnswersPost({ reviewId, authorization, xAccountId, xMemberId, xUsername, reviewAnswer }: {
|
|
3670
|
+
reviewId: string;
|
|
3671
|
+
authorization: string;
|
|
3672
|
+
xAccountId?: string | null;
|
|
3673
|
+
xMemberId?: string | null;
|
|
3674
|
+
xUsername?: string | null;
|
|
3675
|
+
reviewAnswer: ReviewAnswer;
|
|
3676
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3677
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3678
|
+
status: 200;
|
|
3679
|
+
data: any;
|
|
3680
|
+
} | {
|
|
3681
|
+
status: 404;
|
|
3682
|
+
} | {
|
|
3683
|
+
status: 422;
|
|
3684
|
+
data: HttpValidationError;
|
|
3685
|
+
}>(`/v1/resources/${encodeURIComponent(resourceTypeSlug)}/${encodeURIComponent(resourceSlug)}/reviews/${encodeURIComponent(reviewId)}/answers`, oazapfts.json({
|
|
3686
|
+
...opts,
|
|
3687
|
+
method: "POST",
|
|
3688
|
+
body: reviewAnswer,
|
|
3689
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
3690
|
+
authorization,
|
|
3691
|
+
"x-account-id": xAccountId,
|
|
3692
|
+
"x-member-id": xMemberId,
|
|
3693
|
+
"x-username": xUsername
|
|
3694
|
+
})
|
|
3695
|
+
})));
|
|
3696
|
+
}
|
|
3697
|
+
/**
|
|
3698
|
+
* Update Resource Review
|
|
3699
|
+
*/
|
|
3700
|
+
export function updateResourceReviewV1ResourcesResourceTypeSlugResourceSlugReviewsReviewIdPatch({ reviewId, authorization, xAccountId, xMemberId, xUsername, resourceReviewRequest }: {
|
|
3701
|
+
reviewId: string;
|
|
3702
|
+
authorization: string;
|
|
3703
|
+
xAccountId?: string | null;
|
|
3704
|
+
xMemberId?: string | null;
|
|
3705
|
+
xUsername?: string | null;
|
|
3706
|
+
resourceReviewRequest: ResourceReviewRequest;
|
|
3707
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3708
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3709
|
+
status: 200;
|
|
3710
|
+
data: any;
|
|
3711
|
+
} | {
|
|
3712
|
+
status: 404;
|
|
3713
|
+
} | {
|
|
3714
|
+
status: 422;
|
|
3715
|
+
data: HttpValidationError;
|
|
3716
|
+
}>(`/v1/resources/${encodeURIComponent(resourceTypeSlug)}/${encodeURIComponent(resourceSlug)}/reviews/${encodeURIComponent(reviewId)}`, oazapfts.json({
|
|
3717
|
+
...opts,
|
|
3718
|
+
method: "PATCH",
|
|
3719
|
+
body: resourceReviewRequest,
|
|
3720
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
3721
|
+
authorization,
|
|
3722
|
+
"x-account-id": xAccountId,
|
|
3723
|
+
"x-member-id": xMemberId,
|
|
3724
|
+
"x-username": xUsername
|
|
3725
|
+
})
|
|
3726
|
+
})));
|
|
3727
|
+
}
|
|
3728
|
+
/**
|
|
3729
|
+
* Delete Resource Review
|
|
3730
|
+
*/
|
|
3731
|
+
export function deleteResourceReviewV1ResourcesResourceTypeSlugResourceSlugReviewsReviewIdDelete({ reviewId, authorization, xAccountId, xMemberId, xUsername }: {
|
|
3732
|
+
reviewId: string;
|
|
3733
|
+
authorization: string;
|
|
3734
|
+
xAccountId?: string | null;
|
|
3735
|
+
xMemberId?: string | null;
|
|
3736
|
+
xUsername?: string | null;
|
|
3737
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3738
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3739
|
+
status: 200;
|
|
3740
|
+
data: any;
|
|
3741
|
+
} | {
|
|
3742
|
+
status: 404;
|
|
3743
|
+
} | {
|
|
3744
|
+
status: 422;
|
|
3745
|
+
data: HttpValidationError;
|
|
3746
|
+
}>(`/v1/resources/${encodeURIComponent(resourceTypeSlug)}/${encodeURIComponent(resourceSlug)}/reviews/${encodeURIComponent(reviewId)}`, {
|
|
3747
|
+
...opts,
|
|
3748
|
+
method: "DELETE",
|
|
3749
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
3750
|
+
authorization,
|
|
3751
|
+
"x-account-id": xAccountId,
|
|
3752
|
+
"x-member-id": xMemberId,
|
|
3753
|
+
"x-username": xUsername
|
|
3754
|
+
})
|
|
3755
|
+
}));
|
|
3756
|
+
}
|
|
3757
|
+
/**
|
|
3758
|
+
* Update Review Comment
|
|
3759
|
+
*/
|
|
3760
|
+
export function updateReviewCommentV1ResourcesResourceTypeSlugResourceSlugReviewsReviewIdAnswersAnswerIdPatch({ reviewId, answerId, authorization, xAccountId, xMemberId, xUsername, reviewAnswer }: {
|
|
3761
|
+
reviewId: string;
|
|
3762
|
+
answerId: string;
|
|
3763
|
+
authorization: string;
|
|
3764
|
+
xAccountId?: string | null;
|
|
3765
|
+
xMemberId?: string | null;
|
|
3766
|
+
xUsername?: string | null;
|
|
3767
|
+
reviewAnswer: ReviewAnswer;
|
|
3768
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3769
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3770
|
+
status: 200;
|
|
3771
|
+
data: any;
|
|
3772
|
+
} | {
|
|
3773
|
+
status: 404;
|
|
3774
|
+
} | {
|
|
3775
|
+
status: 422;
|
|
3776
|
+
data: HttpValidationError;
|
|
3777
|
+
}>(`/v1/resources/${encodeURIComponent(resourceTypeSlug)}/${encodeURIComponent(resourceSlug)}/reviews/${encodeURIComponent(reviewId)}/answers/${encodeURIComponent(answerId)}`, oazapfts.json({
|
|
3778
|
+
...opts,
|
|
3779
|
+
method: "PATCH",
|
|
3780
|
+
body: reviewAnswer,
|
|
3781
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
3782
|
+
authorization,
|
|
3783
|
+
"x-account-id": xAccountId,
|
|
3784
|
+
"x-member-id": xMemberId,
|
|
3785
|
+
"x-username": xUsername
|
|
3786
|
+
})
|
|
3787
|
+
})));
|
|
3788
|
+
}
|
|
3789
|
+
/**
|
|
3790
|
+
* Delete Review Comment
|
|
3791
|
+
*/
|
|
3792
|
+
export function deleteReviewCommentV1ResourcesResourceTypeSlugResourceSlugReviewsReviewIdAnswersAnswerIdDelete({ reviewId, answerId, authorization, xAccountId, xMemberId, xUsername }: {
|
|
3793
|
+
reviewId: string;
|
|
3794
|
+
answerId: string;
|
|
3795
|
+
authorization: string;
|
|
3796
|
+
xAccountId?: string | null;
|
|
3797
|
+
xMemberId?: string | null;
|
|
3798
|
+
xUsername?: string | null;
|
|
3799
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3800
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3801
|
+
status: 200;
|
|
3802
|
+
data: any;
|
|
3803
|
+
} | {
|
|
3804
|
+
status: 404;
|
|
3805
|
+
} | {
|
|
3806
|
+
status: 422;
|
|
3807
|
+
data: HttpValidationError;
|
|
3808
|
+
}>(`/v1/resources/${encodeURIComponent(resourceTypeSlug)}/${encodeURIComponent(resourceSlug)}/reviews/${encodeURIComponent(reviewId)}/answers/${encodeURIComponent(answerId)}`, {
|
|
3809
|
+
...opts,
|
|
3810
|
+
method: "DELETE",
|
|
3811
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
3812
|
+
authorization,
|
|
3813
|
+
"x-account-id": xAccountId,
|
|
3814
|
+
"x-member-id": xMemberId,
|
|
3815
|
+
"x-username": xUsername
|
|
3816
|
+
})
|
|
3817
|
+
}));
|
|
3818
|
+
}
|
|
3478
3819
|
/**
|
|
3479
3820
|
* Dev Assistant V2
|
|
3480
3821
|
*/
|