@stack-spot/portal-network 0.204.1 → 0.204.2
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 +7 -0
- package/dist/api/ai.d.ts +18 -183
- package/dist/api/ai.d.ts.map +1 -1
- package/dist/api/ai.js +18 -143
- package/dist/api/ai.js.map +1 -1
- package/dist/client/ai.d.ts +8 -14
- package/dist/client/ai.d.ts.map +1 -1
- package/dist/client/ai.js +9 -19
- package/dist/client/ai.js.map +1 -1
- package/package.json +1 -1
- package/src/api/ai.ts +32 -358
- package/src/client/ai.ts +8 -10
package/src/api/ai.ts
CHANGED
|
@@ -416,12 +416,6 @@ 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
|
-
};
|
|
425
419
|
export type CustomInputRequest = {
|
|
426
420
|
slug: string;
|
|
427
421
|
question: string;
|
|
@@ -433,7 +427,7 @@ export type QuickCommandsCreateRequest = {
|
|
|
433
427
|
"type"?: QuickCommandTypeRequest;
|
|
434
428
|
description: string;
|
|
435
429
|
final_result: string;
|
|
436
|
-
steps: (QuickCommandsStepFetchRequest | QuickCommandsStepPromptRequest | QuickCommandsStepRouterRequest
|
|
430
|
+
steps: (QuickCommandsStepFetchRequest | QuickCommandsStepPromptRequest | QuickCommandsStepRouterRequest)[];
|
|
437
431
|
return_type?: QuickCommandsReturnType | null;
|
|
438
432
|
preserve_conversation?: boolean;
|
|
439
433
|
custom_inputs?: CustomInputRequest[] | null;
|
|
@@ -445,7 +439,7 @@ export type QuickCommandsCreateRequest = {
|
|
|
445
439
|
export type QuickCommandsUpdateRequest = {
|
|
446
440
|
name?: string | null;
|
|
447
441
|
description?: string | null;
|
|
448
|
-
steps?: (QuickCommandsStepFetchRequest | QuickCommandsStepPromptRequest | QuickCommandsStepRouterRequest
|
|
442
|
+
steps?: (QuickCommandsStepFetchRequest | QuickCommandsStepPromptRequest | QuickCommandsStepRouterRequest)[] | null;
|
|
449
443
|
return_type?: QuickCommandsReturnType | null;
|
|
450
444
|
knowledge_source_slugs?: string[] | null;
|
|
451
445
|
final_result?: string | null;
|
|
@@ -458,7 +452,7 @@ export type QuickCommandsUpdateRequest = {
|
|
|
458
452
|
use_only?: boolean | null;
|
|
459
453
|
use_uploaded_files?: boolean | null;
|
|
460
454
|
};
|
|
461
|
-
export type QuickCommandStepType = "LLM" | "FETCH" | "ROUTER"
|
|
455
|
+
export type QuickCommandStepType = "LLM" | "FETCH" | "ROUTER";
|
|
462
456
|
export type Method2 = "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
463
457
|
export type QuickCommandStepFetchResponse = {
|
|
464
458
|
slug: string;
|
|
@@ -541,12 +535,6 @@ export type QuickCommandsStepRouterResponse = {
|
|
|
541
535
|
routes: RouterStepRoute2[];
|
|
542
536
|
max_executions: number;
|
|
543
537
|
};
|
|
544
|
-
export type QuickCommandsStepScriptResponse = {
|
|
545
|
-
slug: string;
|
|
546
|
-
"type": QuickCommandStepType;
|
|
547
|
-
script: string;
|
|
548
|
-
use_uploaded_files: boolean;
|
|
549
|
-
};
|
|
550
538
|
export type CustomInputResponse = {
|
|
551
539
|
slug: string;
|
|
552
540
|
question: string;
|
|
@@ -560,7 +548,7 @@ export type QuickCommandResponse = {
|
|
|
560
548
|
studio_id?: string | null;
|
|
561
549
|
return_type?: QuickCommandsReturnType | null;
|
|
562
550
|
final_result?: string | null;
|
|
563
|
-
steps?: (QuickCommandStepFetchResponse | QuickCommandStepLlmResponse | QuickCommandsStepRouterResponse
|
|
551
|
+
steps?: (QuickCommandStepFetchResponse | QuickCommandStepLlmResponse | QuickCommandsStepRouterResponse)[] | null;
|
|
564
552
|
flow?: {
|
|
565
553
|
[key: string]: any;
|
|
566
554
|
} | null;
|
|
@@ -600,16 +588,6 @@ export type QuickCommandFetchResponseResult = {
|
|
|
600
588
|
data?: string | null;
|
|
601
589
|
status: number;
|
|
602
590
|
};
|
|
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;
|
|
613
591
|
export type QuickCommandsExecutionRequest = {
|
|
614
592
|
context?: {
|
|
615
593
|
[key: string]: any;
|
|
@@ -618,7 +596,7 @@ export type QuickCommandsExecutionRequest = {
|
|
|
618
596
|
code_selection?: string | null;
|
|
619
597
|
input_data?: string | null;
|
|
620
598
|
slugs_executions?: {
|
|
621
|
-
[key: string]: string |
|
|
599
|
+
[key: string]: string | QuickCommandPromptResponse | QuickCommandFetchResponseResult;
|
|
622
600
|
} | null;
|
|
623
601
|
qc_execution_id?: string | null;
|
|
624
602
|
};
|
|
@@ -632,7 +610,7 @@ export type QuickCommandEvaluateStepRouterRequest = {
|
|
|
632
610
|
} | null;
|
|
633
611
|
selected_code?: string | null;
|
|
634
612
|
slugs_executions: {
|
|
635
|
-
[key: string]:
|
|
613
|
+
[key: string]: QuickCommandPromptResponse | QuickCommandFetchResponseResult;
|
|
636
614
|
} | null;
|
|
637
615
|
};
|
|
638
616
|
export type QuickCommandEvaluateStepRouterResponse = {
|
|
@@ -710,21 +688,6 @@ export type QuickCommandExecutionResponse = {
|
|
|
710
688
|
steps?: Step[] | null;
|
|
711
689
|
result?: string | null;
|
|
712
690
|
};
|
|
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
|
-
};
|
|
728
691
|
export type ConversationHistoryAgentEnum = "AI" | "USER";
|
|
729
692
|
export type ConversationHistoryResponse = {
|
|
730
693
|
message_id: string;
|
|
@@ -773,40 +736,6 @@ export type DependencyResponse = {
|
|
|
773
736
|
delete_contents?: ContentDependencyResponse[] | null;
|
|
774
737
|
missing_list?: ContentDependencyResponse[] | null;
|
|
775
738
|
};
|
|
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
|
-
};
|
|
810
739
|
export type SourceProjectFile2 = {
|
|
811
740
|
"type": "project_file";
|
|
812
741
|
path: string;
|
|
@@ -2812,9 +2741,9 @@ export function forkV1QuickCommandsSlugForkPost({ slug, authorization, xAccountI
|
|
|
2812
2741
|
})));
|
|
2813
2742
|
}
|
|
2814
2743
|
/**
|
|
2815
|
-
*
|
|
2744
|
+
* Get Quick Command
|
|
2816
2745
|
*/
|
|
2817
|
-
export function
|
|
2746
|
+
export function getQuickCommandV1QuickCommandsSlugExistsGet({ slug, authorization, xAccountId, xMemberId, xUsername }: {
|
|
2818
2747
|
slug: string;
|
|
2819
2748
|
authorization: string;
|
|
2820
2749
|
xAccountId?: string | null;
|
|
@@ -3107,9 +3036,13 @@ export function removeWorkspaceV1QuickCommandsSlugWorkspacesWorkspaceIdRemoveDel
|
|
|
3107
3036
|
/**
|
|
3108
3037
|
* Create Execution
|
|
3109
3038
|
*/
|
|
3110
|
-
export function createExecutionV1QuickCommandsCreateExecutionSlugPost({ slug, conversationId, quickCommandCreateRequest }: {
|
|
3039
|
+
export function createExecutionV1QuickCommandsCreateExecutionSlugPost({ slug, conversationId, authorization, xAccountId, xMemberId, xUsername, quickCommandCreateRequest }: {
|
|
3111
3040
|
slug: string;
|
|
3112
3041
|
conversationId?: string | null;
|
|
3042
|
+
authorization: string;
|
|
3043
|
+
xAccountId?: string | null;
|
|
3044
|
+
xMemberId?: string | null;
|
|
3045
|
+
xUsername?: string | null;
|
|
3113
3046
|
quickCommandCreateRequest?: QuickCommandCreateRequest;
|
|
3114
3047
|
}, opts?: Oazapfts.RequestOpts) {
|
|
3115
3048
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
@@ -3125,7 +3058,13 @@ export function createExecutionV1QuickCommandsCreateExecutionSlugPost({ slug, co
|
|
|
3125
3058
|
}))}`, oazapfts.json({
|
|
3126
3059
|
...opts,
|
|
3127
3060
|
method: "POST",
|
|
3128
|
-
body: quickCommandCreateRequest
|
|
3061
|
+
body: quickCommandCreateRequest,
|
|
3062
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
3063
|
+
authorization,
|
|
3064
|
+
"x-account-id": xAccountId,
|
|
3065
|
+
"x-member-id": xMemberId,
|
|
3066
|
+
"x-username": xUsername
|
|
3067
|
+
})
|
|
3129
3068
|
})));
|
|
3130
3069
|
}
|
|
3131
3070
|
/**
|
|
@@ -3161,8 +3100,12 @@ export function executeV1QuickCommandsExecuteExecutionIdPost({ executionId, auth
|
|
|
3161
3100
|
/**
|
|
3162
3101
|
* Callback
|
|
3163
3102
|
*/
|
|
3164
|
-
export function callbackV1QuickCommandsCallbackExecutionIdGet({ executionId }: {
|
|
3103
|
+
export function callbackV1QuickCommandsCallbackExecutionIdGet({ executionId, authorization, xAccountId, xMemberId, xUsername }: {
|
|
3165
3104
|
executionId: string;
|
|
3105
|
+
authorization: string;
|
|
3106
|
+
xAccountId?: string | null;
|
|
3107
|
+
xMemberId?: string | null;
|
|
3108
|
+
xUsername?: string | null;
|
|
3166
3109
|
}, opts?: Oazapfts.RequestOpts) {
|
|
3167
3110
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3168
3111
|
status: 200;
|
|
@@ -3173,7 +3116,13 @@ export function callbackV1QuickCommandsCallbackExecutionIdGet({ executionId }: {
|
|
|
3173
3116
|
status: 422;
|
|
3174
3117
|
data: HttpValidationError;
|
|
3175
3118
|
}>(`/v1/quick-commands/callback/${encodeURIComponent(executionId)}`, {
|
|
3176
|
-
...opts
|
|
3119
|
+
...opts,
|
|
3120
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
3121
|
+
authorization,
|
|
3122
|
+
"x-account-id": xAccountId,
|
|
3123
|
+
"x-member-id": xMemberId,
|
|
3124
|
+
"x-username": xUsername
|
|
3125
|
+
})
|
|
3177
3126
|
}));
|
|
3178
3127
|
}
|
|
3179
3128
|
/**
|
|
@@ -3208,46 +3157,6 @@ export function runFetchStepV1QuickCommandsSlugStepsStepSlugFetchRunPost({ slug,
|
|
|
3208
3157
|
})
|
|
3209
3158
|
})));
|
|
3210
3159
|
}
|
|
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
|
-
}
|
|
3251
3160
|
/**
|
|
3252
3161
|
* List Conversations
|
|
3253
3162
|
*/
|
|
@@ -3581,241 +3490,6 @@ export function tokensByUserV1AnalyticsTokensByUserGet({ month, year, page, page
|
|
|
3581
3490
|
...opts
|
|
3582
3491
|
}));
|
|
3583
3492
|
}
|
|
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
|
-
}
|
|
3819
3493
|
/**
|
|
3820
3494
|
* Dev Assistant V2
|
|
3821
3495
|
*/
|
package/src/client/ai.ts
CHANGED
|
@@ -22,7 +22,6 @@ import {
|
|
|
22
22
|
getContentDependenciesV1ContentContentTypeContentIdDependenciesGet,
|
|
23
23
|
getFlagsV1FlagsGet,
|
|
24
24
|
getQuickCommandV1QuickCommandsSlugGet,
|
|
25
|
-
getScriptExecutionStatusV1QuickCommandsScriptExecutionsScriptExecutionIdGet,
|
|
26
25
|
getUploadFormV1FileUploadFormPost,
|
|
27
26
|
HttpValidationError,
|
|
28
27
|
listAiStacksV1AiStacksGet,
|
|
@@ -39,7 +38,6 @@ import {
|
|
|
39
38
|
resetKnowledgeObjectsV1KnowledgeSourcesSlugObjectsDelete,
|
|
40
39
|
runFetchStepV1QuickCommandsSlugStepsStepSlugFetchRunPost,
|
|
41
40
|
searchKnowledgeSourcesV1KnowledgeSourcesSearchPost,
|
|
42
|
-
startScriptStepV1QuickCommandsSlugStepsStepSlugStartScriptPost,
|
|
43
41
|
totalV1TokensUsageTotalGet,
|
|
44
42
|
updateQuickCommandV1QuickCommandsSlugPatch,
|
|
45
43
|
updateTitleV1ConversationsConversationIdPatch,
|
|
@@ -264,14 +262,14 @@ class AIClient extends ReactQueryNetworkClient {
|
|
|
264
262
|
* Lists all the feature flags for this user.
|
|
265
263
|
*/
|
|
266
264
|
flags = this.query(getFlagsV1FlagsGet)
|
|
267
|
-
/**
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
startScriptStep = this.mutation(removeAuthorizationParam(startScriptStepV1QuickCommandsSlugStepsStepSlugStartScriptPost))
|
|
271
|
-
/**
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
getStatusScriptStep = this.query(removeAuthorizationParam(getScriptExecutionStatusV1QuickCommandsScriptExecutionsScriptExecutionIdGet))
|
|
265
|
+
// /**
|
|
266
|
+
// * Starts the execution of a script step
|
|
267
|
+
// */
|
|
268
|
+
// startScriptStep = this.mutation(removeAuthorizationParam(startScriptStepV1QuickCommandsSlugStepsStepSlugStartScriptPost))
|
|
269
|
+
// /**
|
|
270
|
+
// * Gets the status of the execution of a script step
|
|
271
|
+
// */
|
|
272
|
+
// getStatusScriptStep = this.query(removeAuthorizationParam(getScriptExecutionStatusV1QuickCommandsScriptExecutionsScriptExecutionIdGet))
|
|
275
273
|
|
|
276
274
|
private static async toolsOfAgent(agentId?: string) {
|
|
277
275
|
try {
|