@stack-spot/portal-network 0.204.2 → 0.205.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/CHANGELOG.md +13 -0
- package/dist/api/ai.d.ts +275 -12
- package/dist/api/ai.d.ts.map +1 -1
- package/dist/api/ai.js +186 -7
- package/dist/api/ai.js.map +1 -1
- package/dist/client/ai.d.ts +131 -0
- package/dist/client/ai.d.ts.map +1 -1
- package/dist/client/ai.js +92 -9
- package/dist/client/ai.js.map +1 -1
- package/dist/client/code-shift.d.ts +8 -0
- package/dist/client/code-shift.d.ts.map +1 -1
- package/dist/client/code-shift.js +10 -1
- package/dist/client/code-shift.js.map +1 -1
- package/package.json +1 -1
- package/src/api/ai.ts +498 -16
- package/src/client/ai.ts +66 -8
- package/src/client/code-shift.ts +5 -0
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;
|
|
@@ -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 = {
|
|
@@ -688,6 +710,21 @@ export type QuickCommandExecutionResponse = {
|
|
|
688
710
|
steps?: Step[] | null;
|
|
689
711
|
result?: string | null;
|
|
690
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
|
+
};
|
|
691
728
|
export type ConversationHistoryAgentEnum = "AI" | "USER";
|
|
692
729
|
export type ConversationHistoryResponse = {
|
|
693
730
|
message_id: string;
|
|
@@ -698,6 +735,9 @@ export type ConversationHistoryResponse = {
|
|
|
698
735
|
[key: string]: any;
|
|
699
736
|
} | null;
|
|
700
737
|
updated: string;
|
|
738
|
+
agent_info?: {
|
|
739
|
+
[key: string]: any;
|
|
740
|
+
} | null;
|
|
701
741
|
};
|
|
702
742
|
export type ConversationResponse = {
|
|
703
743
|
id: string;
|
|
@@ -736,6 +776,70 @@ export type DependencyResponse = {
|
|
|
736
776
|
delete_contents?: ContentDependencyResponse[] | null;
|
|
737
777
|
missing_list?: ContentDependencyResponse[] | null;
|
|
738
778
|
};
|
|
779
|
+
export type TokenTypeEnum = "prompt" | "embedding";
|
|
780
|
+
export type AnalyticsTokensDailyUsageResponseSeriesItem = {
|
|
781
|
+
day: number;
|
|
782
|
+
date: string;
|
|
783
|
+
total_tokens: number;
|
|
784
|
+
};
|
|
785
|
+
export type AnalyticsTokensDailyUsageResponse = {
|
|
786
|
+
year: number;
|
|
787
|
+
month: number;
|
|
788
|
+
series: AnalyticsTokensDailyUsageResponseSeriesItem[];
|
|
789
|
+
consumed_tokens: number;
|
|
790
|
+
consumed_tokens_over_last_month?: number | null;
|
|
791
|
+
purchased_token_limit?: number | null;
|
|
792
|
+
purchased_token_limit_over_last_month?: number | null;
|
|
793
|
+
available_tokens?: number | null;
|
|
794
|
+
available_tokens_over_last_month?: number | null;
|
|
795
|
+
limit_consumed?: number | null;
|
|
796
|
+
limit_consumed_over_last_month?: number | null;
|
|
797
|
+
};
|
|
798
|
+
export type AnalyticsTokensRankingUsersResponse = {
|
|
799
|
+
email: string;
|
|
800
|
+
rank: number;
|
|
801
|
+
total_tokens: number;
|
|
802
|
+
total_share: number;
|
|
803
|
+
overage_tokens: number;
|
|
804
|
+
overage_percentage: number;
|
|
805
|
+
};
|
|
806
|
+
export type AnalyticsTokensRankingUsersResponsePaginated = {
|
|
807
|
+
total_pages: number;
|
|
808
|
+
items: AnalyticsTokensRankingUsersResponse[];
|
|
809
|
+
};
|
|
810
|
+
export type SortDirection = "ASC" | "DESC";
|
|
811
|
+
export type ReviewAnswers = {
|
|
812
|
+
id: string;
|
|
813
|
+
memberId: string;
|
|
814
|
+
comment: string;
|
|
815
|
+
createdAt: string;
|
|
816
|
+
updatedAt?: string | null;
|
|
817
|
+
};
|
|
818
|
+
export type Review = {
|
|
819
|
+
id: string;
|
|
820
|
+
memberId: string;
|
|
821
|
+
rating: number;
|
|
822
|
+
comment: string;
|
|
823
|
+
resourceType: string;
|
|
824
|
+
resourceSlug: string;
|
|
825
|
+
createdAt: string;
|
|
826
|
+
updatedAt?: string | null;
|
|
827
|
+
reviewAnswers?: ReviewAnswers[];
|
|
828
|
+
};
|
|
829
|
+
export type ResourceReviewResponse = {
|
|
830
|
+
items: Review[];
|
|
831
|
+
totalElements: number;
|
|
832
|
+
page: number;
|
|
833
|
+
size: number;
|
|
834
|
+
totalPages: number;
|
|
835
|
+
};
|
|
836
|
+
export type ResourceReviewRequest = {
|
|
837
|
+
rating: number;
|
|
838
|
+
comment?: string | null;
|
|
839
|
+
};
|
|
840
|
+
export type ReviewAnswer = {
|
|
841
|
+
answer: string;
|
|
842
|
+
};
|
|
739
843
|
export type SourceProjectFile2 = {
|
|
740
844
|
"type": "project_file";
|
|
741
845
|
path: string;
|
|
@@ -767,6 +871,25 @@ export type ChatResponse3 = {
|
|
|
767
871
|
sources: (SourceStackAi | SourceKnowledgeSource | SourceProjectFile3)[];
|
|
768
872
|
message_id: string | null;
|
|
769
873
|
};
|
|
874
|
+
export type QuickCommandListResponseV3 = {
|
|
875
|
+
slug: string;
|
|
876
|
+
name: string;
|
|
877
|
+
"type": QuickCommandTypeRequest;
|
|
878
|
+
description: string;
|
|
879
|
+
studio_id?: string | null;
|
|
880
|
+
preserve_conversation: boolean;
|
|
881
|
+
use_selected_code: boolean;
|
|
882
|
+
return_type?: QuickCommandsReturnType | null;
|
|
883
|
+
creator: string | null;
|
|
884
|
+
visibility_level: string;
|
|
885
|
+
use_only: boolean;
|
|
886
|
+
share_context_between_steps?: boolean;
|
|
887
|
+
id: string;
|
|
888
|
+
};
|
|
889
|
+
export type PaginatedResponseQuickCommandListResponseV3 = {
|
|
890
|
+
total_pages: number;
|
|
891
|
+
items: QuickCommandListResponseV3[];
|
|
892
|
+
};
|
|
770
893
|
/**
|
|
771
894
|
* Metrics
|
|
772
895
|
*/
|
|
@@ -2741,9 +2864,9 @@ export function forkV1QuickCommandsSlugForkPost({ slug, authorization, xAccountI
|
|
|
2741
2864
|
})));
|
|
2742
2865
|
}
|
|
2743
2866
|
/**
|
|
2744
|
-
*
|
|
2867
|
+
* Check Quick Command Exists
|
|
2745
2868
|
*/
|
|
2746
|
-
export function
|
|
2869
|
+
export function checkQuickCommandExistsV1QuickCommandsSlugExistsGet({ slug, authorization, xAccountId, xMemberId, xUsername }: {
|
|
2747
2870
|
slug: string;
|
|
2748
2871
|
authorization: string;
|
|
2749
2872
|
xAccountId?: string | null;
|
|
@@ -3157,6 +3280,66 @@ export function runFetchStepV1QuickCommandsSlugStepsStepSlugFetchRunPost({ slug,
|
|
|
3157
3280
|
})
|
|
3158
3281
|
})));
|
|
3159
3282
|
}
|
|
3283
|
+
/**
|
|
3284
|
+
* Starts the execution of a step with a user defined script
|
|
3285
|
+
*/
|
|
3286
|
+
export function startScriptStepV1QuickCommandsSlugStepsStepSlugStartScriptPost({ slug, stepSlug, authorization, xAccountId, xMemberId, xUsername, quickCommandStartScriptRequest }: {
|
|
3287
|
+
slug: string;
|
|
3288
|
+
stepSlug: string;
|
|
3289
|
+
authorization: string;
|
|
3290
|
+
xAccountId?: string | null;
|
|
3291
|
+
xMemberId?: string | null;
|
|
3292
|
+
xUsername?: string | null;
|
|
3293
|
+
quickCommandStartScriptRequest: QuickCommandStartScriptRequest;
|
|
3294
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3295
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3296
|
+
status: 202;
|
|
3297
|
+
data: QuickCommandStartScriptResponse;
|
|
3298
|
+
} | {
|
|
3299
|
+
status: 404;
|
|
3300
|
+
} | {
|
|
3301
|
+
status: 422;
|
|
3302
|
+
data: HttpValidationError;
|
|
3303
|
+
}>(`/v1/quick-commands/${encodeURIComponent(slug)}/steps/${encodeURIComponent(stepSlug)}/start-script`, oazapfts.json({
|
|
3304
|
+
...opts,
|
|
3305
|
+
method: "POST",
|
|
3306
|
+
body: quickCommandStartScriptRequest,
|
|
3307
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
3308
|
+
authorization,
|
|
3309
|
+
"x-account-id": xAccountId,
|
|
3310
|
+
"x-member-id": xMemberId,
|
|
3311
|
+
"x-username": xUsername
|
|
3312
|
+
})
|
|
3313
|
+
})));
|
|
3314
|
+
}
|
|
3315
|
+
/**
|
|
3316
|
+
* Get the status of a script execution step
|
|
3317
|
+
*/
|
|
3318
|
+
export function getScriptExecutionStatusV1QuickCommandsScriptExecutionsScriptExecutionIdGet({ scriptExecutionId, authorization, xAccountId, xMemberId, xUsername }: {
|
|
3319
|
+
scriptExecutionId: string;
|
|
3320
|
+
authorization: string;
|
|
3321
|
+
xAccountId?: string | null;
|
|
3322
|
+
xMemberId?: string | null;
|
|
3323
|
+
xUsername?: string | null;
|
|
3324
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3325
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3326
|
+
status: 200;
|
|
3327
|
+
data: QuickCommandScriptExecutionResponse;
|
|
3328
|
+
} | {
|
|
3329
|
+
status: 404;
|
|
3330
|
+
} | {
|
|
3331
|
+
status: 422;
|
|
3332
|
+
data: HttpValidationError;
|
|
3333
|
+
}>(`/v1/quick-commands/script-executions/${encodeURIComponent(scriptExecutionId)}`, {
|
|
3334
|
+
...opts,
|
|
3335
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
3336
|
+
authorization,
|
|
3337
|
+
"x-account-id": xAccountId,
|
|
3338
|
+
"x-member-id": xMemberId,
|
|
3339
|
+
"x-username": xUsername
|
|
3340
|
+
})
|
|
3341
|
+
}));
|
|
3342
|
+
}
|
|
3160
3343
|
/**
|
|
3161
3344
|
* List Conversations
|
|
3162
3345
|
*/
|
|
@@ -3443,14 +3626,18 @@ export function getContentDependenciesV1ContentContentTypeContentIdDependenciesG
|
|
|
3443
3626
|
/**
|
|
3444
3627
|
* Tokens Daily Usage
|
|
3445
3628
|
*/
|
|
3446
|
-
export function tokensDailyUsageV1AnalyticsTokensDailyUsageGet({ month, year,
|
|
3629
|
+
export function tokensDailyUsageV1AnalyticsTokensDailyUsageGet({ month, year, tokenType, authorization, xAccountId, xMemberId, xUsername }: {
|
|
3447
3630
|
month: number;
|
|
3448
3631
|
year: number;
|
|
3449
|
-
|
|
3632
|
+
tokenType: TokenTypeEnum;
|
|
3633
|
+
authorization: string;
|
|
3634
|
+
xAccountId?: string | null;
|
|
3635
|
+
xMemberId?: string | null;
|
|
3636
|
+
xUsername?: string | null;
|
|
3450
3637
|
}, opts?: Oazapfts.RequestOpts) {
|
|
3451
3638
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3452
3639
|
status: 200;
|
|
3453
|
-
data:
|
|
3640
|
+
data: AnalyticsTokensDailyUsageResponse;
|
|
3454
3641
|
} | {
|
|
3455
3642
|
status: 404;
|
|
3456
3643
|
} | {
|
|
@@ -3459,23 +3646,34 @@ export function tokensDailyUsageV1AnalyticsTokensDailyUsageGet({ month, year, ac
|
|
|
3459
3646
|
}>(`/v1/analytics/tokens/daily-usage${QS.query(QS.explode({
|
|
3460
3647
|
month,
|
|
3461
3648
|
year,
|
|
3462
|
-
|
|
3649
|
+
token_type: tokenType
|
|
3463
3650
|
}))}`, {
|
|
3464
|
-
...opts
|
|
3651
|
+
...opts,
|
|
3652
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
3653
|
+
authorization,
|
|
3654
|
+
"x-account-id": xAccountId,
|
|
3655
|
+
"x-member-id": xMemberId,
|
|
3656
|
+
"x-username": xUsername
|
|
3657
|
+
})
|
|
3465
3658
|
}));
|
|
3466
3659
|
}
|
|
3467
3660
|
/**
|
|
3468
3661
|
* Tokens By User
|
|
3469
3662
|
*/
|
|
3470
|
-
export function tokensByUserV1AnalyticsTokensByUserGet({ month, year, page, pageSize }: {
|
|
3663
|
+
export function tokensByUserV1AnalyticsTokensByUserGet({ month, year, tokenType, page, pageSize, authorization, xAccountId, xMemberId, xUsername }: {
|
|
3471
3664
|
month: number;
|
|
3472
3665
|
year: number;
|
|
3666
|
+
tokenType: TokenTypeEnum;
|
|
3473
3667
|
page?: number;
|
|
3474
3668
|
pageSize?: number;
|
|
3669
|
+
authorization: string;
|
|
3670
|
+
xAccountId?: string | null;
|
|
3671
|
+
xMemberId?: string | null;
|
|
3672
|
+
xUsername?: string | null;
|
|
3475
3673
|
}, opts?: Oazapfts.RequestOpts) {
|
|
3476
3674
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3477
3675
|
status: 200;
|
|
3478
|
-
data:
|
|
3676
|
+
data: AnalyticsTokensRankingUsersResponsePaginated;
|
|
3479
3677
|
} | {
|
|
3480
3678
|
status: 404;
|
|
3481
3679
|
} | {
|
|
@@ -3484,10 +3682,250 @@ export function tokensByUserV1AnalyticsTokensByUserGet({ month, year, page, page
|
|
|
3484
3682
|
}>(`/v1/analytics/tokens/by-user${QS.query(QS.explode({
|
|
3485
3683
|
month,
|
|
3486
3684
|
year,
|
|
3685
|
+
token_type: tokenType,
|
|
3487
3686
|
page,
|
|
3488
3687
|
page_size: pageSize
|
|
3489
3688
|
}))}`, {
|
|
3490
|
-
...opts
|
|
3689
|
+
...opts,
|
|
3690
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
3691
|
+
authorization,
|
|
3692
|
+
"x-account-id": xAccountId,
|
|
3693
|
+
"x-member-id": xMemberId,
|
|
3694
|
+
"x-username": xUsername
|
|
3695
|
+
})
|
|
3696
|
+
}));
|
|
3697
|
+
}
|
|
3698
|
+
/**
|
|
3699
|
+
* Get Reviews By Resource
|
|
3700
|
+
*/
|
|
3701
|
+
export function getReviewsByResourceV1ResourcesResourceTypeSlugResourceSlugReviewsGet({ resourceSlug, resourceTypeSlug, size, page, sort, direction, authorization, xAccountId, xMemberId, xUsername }: {
|
|
3702
|
+
resourceSlug: string;
|
|
3703
|
+
resourceTypeSlug: string;
|
|
3704
|
+
size?: number | null;
|
|
3705
|
+
page?: number | null;
|
|
3706
|
+
sort?: string | null;
|
|
3707
|
+
direction?: SortDirection | null;
|
|
3708
|
+
authorization: string;
|
|
3709
|
+
xAccountId?: string | null;
|
|
3710
|
+
xMemberId?: string | null;
|
|
3711
|
+
xUsername?: string | null;
|
|
3712
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3713
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3714
|
+
status: 200;
|
|
3715
|
+
data: ResourceReviewResponse;
|
|
3716
|
+
} | {
|
|
3717
|
+
status: 404;
|
|
3718
|
+
} | {
|
|
3719
|
+
status: 422;
|
|
3720
|
+
data: HttpValidationError;
|
|
3721
|
+
}>(`/v1/resources/${encodeURIComponent(resourceTypeSlug)}/${encodeURIComponent(resourceSlug)}/reviews${QS.query(QS.explode({
|
|
3722
|
+
size,
|
|
3723
|
+
page,
|
|
3724
|
+
sort,
|
|
3725
|
+
direction
|
|
3726
|
+
}))}`, {
|
|
3727
|
+
...opts,
|
|
3728
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
3729
|
+
authorization,
|
|
3730
|
+
"x-account-id": xAccountId,
|
|
3731
|
+
"x-member-id": xMemberId,
|
|
3732
|
+
"x-username": xUsername
|
|
3733
|
+
})
|
|
3734
|
+
}));
|
|
3735
|
+
}
|
|
3736
|
+
/**
|
|
3737
|
+
* Create Resource Review
|
|
3738
|
+
*/
|
|
3739
|
+
export function createResourceReviewV1ResourcesResourceTypeSlugResourceSlugReviewsPost({ resourceSlug, resourceTypeSlug, authorization, xAccountId, xMemberId, xUsername, resourceReviewRequest }: {
|
|
3740
|
+
resourceSlug: string;
|
|
3741
|
+
resourceTypeSlug: string;
|
|
3742
|
+
authorization: string;
|
|
3743
|
+
xAccountId?: string | null;
|
|
3744
|
+
xMemberId?: string | null;
|
|
3745
|
+
xUsername?: string | null;
|
|
3746
|
+
resourceReviewRequest: ResourceReviewRequest;
|
|
3747
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3748
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3749
|
+
status: 200;
|
|
3750
|
+
data: any;
|
|
3751
|
+
} | {
|
|
3752
|
+
status: 404;
|
|
3753
|
+
} | {
|
|
3754
|
+
status: 422;
|
|
3755
|
+
data: HttpValidationError;
|
|
3756
|
+
}>(`/v1/resources/${encodeURIComponent(resourceTypeSlug)}/${encodeURIComponent(resourceSlug)}/reviews`, oazapfts.json({
|
|
3757
|
+
...opts,
|
|
3758
|
+
method: "POST",
|
|
3759
|
+
body: resourceReviewRequest,
|
|
3760
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
3761
|
+
authorization,
|
|
3762
|
+
"x-account-id": xAccountId,
|
|
3763
|
+
"x-member-id": xMemberId,
|
|
3764
|
+
"x-username": xUsername
|
|
3765
|
+
})
|
|
3766
|
+
})));
|
|
3767
|
+
}
|
|
3768
|
+
/**
|
|
3769
|
+
* Create Answer For Review
|
|
3770
|
+
*/
|
|
3771
|
+
export function createAnswerForReviewV1ResourcesResourceTypeSlugResourceSlugReviewsReviewIdAnswersPost({ resourceSlug, resourceTypeSlug, reviewId, authorization, xAccountId, xMemberId, xUsername, reviewAnswer }: {
|
|
3772
|
+
resourceSlug: string;
|
|
3773
|
+
resourceTypeSlug: string;
|
|
3774
|
+
reviewId: string;
|
|
3775
|
+
authorization: string;
|
|
3776
|
+
xAccountId?: string | null;
|
|
3777
|
+
xMemberId?: string | null;
|
|
3778
|
+
xUsername?: string | null;
|
|
3779
|
+
reviewAnswer: ReviewAnswer;
|
|
3780
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3781
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3782
|
+
status: 200;
|
|
3783
|
+
data: any;
|
|
3784
|
+
} | {
|
|
3785
|
+
status: 404;
|
|
3786
|
+
} | {
|
|
3787
|
+
status: 422;
|
|
3788
|
+
data: HttpValidationError;
|
|
3789
|
+
}>(`/v1/resources/${encodeURIComponent(resourceTypeSlug)}/${encodeURIComponent(resourceSlug)}/reviews/${encodeURIComponent(reviewId)}/answers`, oazapfts.json({
|
|
3790
|
+
...opts,
|
|
3791
|
+
method: "POST",
|
|
3792
|
+
body: reviewAnswer,
|
|
3793
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
3794
|
+
authorization,
|
|
3795
|
+
"x-account-id": xAccountId,
|
|
3796
|
+
"x-member-id": xMemberId,
|
|
3797
|
+
"x-username": xUsername
|
|
3798
|
+
})
|
|
3799
|
+
})));
|
|
3800
|
+
}
|
|
3801
|
+
/**
|
|
3802
|
+
* Update Resource Review
|
|
3803
|
+
*/
|
|
3804
|
+
export function updateResourceReviewV1ResourcesResourceTypeSlugResourceSlugReviewsReviewIdPatch({ resourceSlug, resourceTypeSlug, reviewId, authorization, xAccountId, xMemberId, xUsername, resourceReviewRequest }: {
|
|
3805
|
+
resourceSlug: string;
|
|
3806
|
+
resourceTypeSlug: string;
|
|
3807
|
+
reviewId: string;
|
|
3808
|
+
authorization: string;
|
|
3809
|
+
xAccountId?: string | null;
|
|
3810
|
+
xMemberId?: string | null;
|
|
3811
|
+
xUsername?: string | null;
|
|
3812
|
+
resourceReviewRequest: ResourceReviewRequest;
|
|
3813
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3814
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3815
|
+
status: 200;
|
|
3816
|
+
data: any;
|
|
3817
|
+
} | {
|
|
3818
|
+
status: 404;
|
|
3819
|
+
} | {
|
|
3820
|
+
status: 422;
|
|
3821
|
+
data: HttpValidationError;
|
|
3822
|
+
}>(`/v1/resources/${encodeURIComponent(resourceTypeSlug)}/${encodeURIComponent(resourceSlug)}/reviews/${encodeURIComponent(reviewId)}`, oazapfts.json({
|
|
3823
|
+
...opts,
|
|
3824
|
+
method: "PATCH",
|
|
3825
|
+
body: resourceReviewRequest,
|
|
3826
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
3827
|
+
authorization,
|
|
3828
|
+
"x-account-id": xAccountId,
|
|
3829
|
+
"x-member-id": xMemberId,
|
|
3830
|
+
"x-username": xUsername
|
|
3831
|
+
})
|
|
3832
|
+
})));
|
|
3833
|
+
}
|
|
3834
|
+
/**
|
|
3835
|
+
* Delete Resource Review
|
|
3836
|
+
*/
|
|
3837
|
+
export function deleteResourceReviewV1ResourcesResourceTypeSlugResourceSlugReviewsReviewIdDelete({ resourceSlug, resourceTypeSlug, reviewId, authorization, xAccountId, xMemberId, xUsername }: {
|
|
3838
|
+
resourceSlug: string;
|
|
3839
|
+
resourceTypeSlug: string;
|
|
3840
|
+
reviewId: string;
|
|
3841
|
+
authorization: string;
|
|
3842
|
+
xAccountId?: string | null;
|
|
3843
|
+
xMemberId?: string | null;
|
|
3844
|
+
xUsername?: string | null;
|
|
3845
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3846
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3847
|
+
status: 200;
|
|
3848
|
+
data: any;
|
|
3849
|
+
} | {
|
|
3850
|
+
status: 404;
|
|
3851
|
+
} | {
|
|
3852
|
+
status: 422;
|
|
3853
|
+
data: HttpValidationError;
|
|
3854
|
+
}>(`/v1/resources/${encodeURIComponent(resourceTypeSlug)}/${encodeURIComponent(resourceSlug)}/reviews/${encodeURIComponent(reviewId)}`, {
|
|
3855
|
+
...opts,
|
|
3856
|
+
method: "DELETE",
|
|
3857
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
3858
|
+
authorization,
|
|
3859
|
+
"x-account-id": xAccountId,
|
|
3860
|
+
"x-member-id": xMemberId,
|
|
3861
|
+
"x-username": xUsername
|
|
3862
|
+
})
|
|
3863
|
+
}));
|
|
3864
|
+
}
|
|
3865
|
+
/**
|
|
3866
|
+
* Update Review Comment
|
|
3867
|
+
*/
|
|
3868
|
+
export function updateReviewCommentV1ResourcesResourceTypeSlugResourceSlugReviewsReviewIdAnswersAnswerIdPatch({ resourceSlug, resourceTypeSlug, reviewId, answerId, authorization, xAccountId, xMemberId, xUsername, reviewAnswer }: {
|
|
3869
|
+
resourceSlug: string;
|
|
3870
|
+
resourceTypeSlug: string;
|
|
3871
|
+
reviewId: string;
|
|
3872
|
+
answerId: string;
|
|
3873
|
+
authorization: string;
|
|
3874
|
+
xAccountId?: string | null;
|
|
3875
|
+
xMemberId?: string | null;
|
|
3876
|
+
xUsername?: string | null;
|
|
3877
|
+
reviewAnswer: ReviewAnswer;
|
|
3878
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3879
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3880
|
+
status: 200;
|
|
3881
|
+
data: any;
|
|
3882
|
+
} | {
|
|
3883
|
+
status: 404;
|
|
3884
|
+
} | {
|
|
3885
|
+
status: 422;
|
|
3886
|
+
data: HttpValidationError;
|
|
3887
|
+
}>(`/v1/resources/${encodeURIComponent(resourceTypeSlug)}/${encodeURIComponent(resourceSlug)}/reviews/${encodeURIComponent(reviewId)}/answers/${encodeURIComponent(answerId)}`, oazapfts.json({
|
|
3888
|
+
...opts,
|
|
3889
|
+
method: "PATCH",
|
|
3890
|
+
body: reviewAnswer,
|
|
3891
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
3892
|
+
authorization,
|
|
3893
|
+
"x-account-id": xAccountId,
|
|
3894
|
+
"x-member-id": xMemberId,
|
|
3895
|
+
"x-username": xUsername
|
|
3896
|
+
})
|
|
3897
|
+
})));
|
|
3898
|
+
}
|
|
3899
|
+
/**
|
|
3900
|
+
* Delete Review Comment
|
|
3901
|
+
*/
|
|
3902
|
+
export function deleteReviewCommentV1ResourcesResourceTypeSlugResourceSlugReviewsReviewIdAnswersAnswerIdDelete({ resourceSlug, resourceTypeSlug, reviewId, answerId, authorization, xAccountId, xMemberId, xUsername }: {
|
|
3903
|
+
resourceSlug: string;
|
|
3904
|
+
resourceTypeSlug: string;
|
|
3905
|
+
reviewId: string;
|
|
3906
|
+
answerId: string;
|
|
3907
|
+
authorization: string;
|
|
3908
|
+
xAccountId?: string | null;
|
|
3909
|
+
xMemberId?: string | null;
|
|
3910
|
+
xUsername?: string | null;
|
|
3911
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3912
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3913
|
+
status: 200;
|
|
3914
|
+
data: any;
|
|
3915
|
+
} | {
|
|
3916
|
+
status: 404;
|
|
3917
|
+
} | {
|
|
3918
|
+
status: 422;
|
|
3919
|
+
data: HttpValidationError;
|
|
3920
|
+
}>(`/v1/resources/${encodeURIComponent(resourceTypeSlug)}/${encodeURIComponent(resourceSlug)}/reviews/${encodeURIComponent(reviewId)}/answers/${encodeURIComponent(answerId)}`, {
|
|
3921
|
+
...opts,
|
|
3922
|
+
method: "DELETE",
|
|
3923
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
3924
|
+
authorization,
|
|
3925
|
+
"x-account-id": xAccountId,
|
|
3926
|
+
"x-member-id": xMemberId,
|
|
3927
|
+
"x-username": xUsername
|
|
3928
|
+
})
|
|
3491
3929
|
}));
|
|
3492
3930
|
}
|
|
3493
3931
|
/**
|
|
@@ -3608,3 +4046,47 @@ export function devAssistantV3V3ChatPost({ authorization, xAccountId, xMemberId,
|
|
|
3608
4046
|
})
|
|
3609
4047
|
})));
|
|
3610
4048
|
}
|
|
4049
|
+
/**
|
|
4050
|
+
* List All
|
|
4051
|
+
*/
|
|
4052
|
+
export function listAllV3QuickCommandsGet({ name, slug, size, page, visibilityList, order, isRemote, types, authorization, xAccountId, xMemberId, xUsername }: {
|
|
4053
|
+
name?: string | null;
|
|
4054
|
+
slug?: string | null;
|
|
4055
|
+
size?: number;
|
|
4056
|
+
page?: number;
|
|
4057
|
+
visibilityList?: VisibilityLevelEnum[] | null;
|
|
4058
|
+
order?: OrderEnum | null;
|
|
4059
|
+
isRemote?: boolean;
|
|
4060
|
+
types?: QuickCommandTypeRequest[] | null;
|
|
4061
|
+
authorization: string;
|
|
4062
|
+
xAccountId?: string | null;
|
|
4063
|
+
xMemberId?: string | null;
|
|
4064
|
+
xUsername?: string | null;
|
|
4065
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4066
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4067
|
+
status: 200;
|
|
4068
|
+
data: PaginatedResponseQuickCommandListResponseV3;
|
|
4069
|
+
} | {
|
|
4070
|
+
status: 404;
|
|
4071
|
+
} | {
|
|
4072
|
+
status: 422;
|
|
4073
|
+
data: HttpValidationError;
|
|
4074
|
+
}>(`/v3/quick-commands${QS.query(QS.explode({
|
|
4075
|
+
name,
|
|
4076
|
+
slug,
|
|
4077
|
+
size,
|
|
4078
|
+
page,
|
|
4079
|
+
visibility_list: visibilityList,
|
|
4080
|
+
order,
|
|
4081
|
+
is_remote: isRemote,
|
|
4082
|
+
types
|
|
4083
|
+
}))}`, {
|
|
4084
|
+
...opts,
|
|
4085
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
4086
|
+
authorization,
|
|
4087
|
+
"x-account-id": xAccountId,
|
|
4088
|
+
"x-member-id": xMemberId,
|
|
4089
|
+
"x-username": xUsername
|
|
4090
|
+
})
|
|
4091
|
+
}));
|
|
4092
|
+
}
|