@stack-spot/portal-network 0.113.7 → 0.115.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 +20 -0
- package/dist/api/agent.d.ts +71 -3
- package/dist/api/agent.d.ts.map +1 -1
- package/dist/api/agent.js +20 -2
- package/dist/api/agent.js.map +1 -1
- package/dist/api/ai.d.ts +42 -76
- package/dist/api/ai.d.ts.map +1 -1
- package/dist/api/ai.js +56 -89
- package/dist/api/ai.js.map +1 -1
- package/dist/api/codeShift.d.ts +12 -5
- package/dist/api/codeShift.d.ts.map +1 -1
- package/dist/api/codeShift.js +14 -8
- package/dist/api/codeShift.js.map +1 -1
- package/dist/api/dataIntegration.d.ts +666 -0
- package/dist/api/dataIntegration.d.ts.map +1 -0
- package/dist/api/dataIntegration.js +639 -0
- package/dist/api/dataIntegration.js.map +1 -0
- package/dist/api/workspace-ai.d.ts +28 -4
- package/dist/api/workspace-ai.d.ts.map +1 -1
- package/dist/api/workspace-ai.js +31 -2
- package/dist/api/workspace-ai.js.map +1 -1
- package/dist/apis.json +8 -0
- package/dist/client/agent.d.ts +28 -0
- package/dist/client/agent.d.ts.map +1 -1
- package/dist/client/agent.js +19 -1
- package/dist/client/agent.js.map +1 -1
- package/dist/client/ai.d.ts +45 -37
- package/dist/client/ai.d.ts.map +1 -1
- package/dist/client/ai.js +21 -12
- package/dist/client/ai.js.map +1 -1
- package/dist/client/cloud-account.d.ts +5 -5
- package/dist/client/cloud-account.d.ts.map +1 -1
- package/dist/client/cloud-platform-horizon.d.ts +17 -17
- package/dist/client/cloud-platform-horizon.d.ts.map +1 -1
- package/dist/client/cloud-platform.d.ts +27 -27
- package/dist/client/cloud-platform.d.ts.map +1 -1
- package/dist/client/cloud-runtimes.d.ts +21 -21
- package/dist/client/cloud-runtimes.d.ts.map +1 -1
- package/dist/client/code-shift.d.ts +22 -13
- 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/dist/client/content.d.ts +6 -6
- package/dist/client/content.d.ts.map +1 -1
- package/dist/client/data-integration.d.ts +95 -0
- package/dist/client/data-integration.d.ts.map +1 -0
- package/dist/client/data-integration.js +88 -0
- package/dist/client/data-integration.js.map +1 -0
- package/dist/client/gen-ai-inference.d.ts +5 -5
- package/dist/client/gen-ai-inference.d.ts.map +1 -1
- package/dist/client/workflow.d.ts +8 -8
- package/dist/client/workflow.d.ts.map +1 -1
- package/dist/client/workspace-ai.d.ts +27 -8
- package/dist/client/workspace-ai.d.ts.map +1 -1
- package/dist/client/workspace-ai.js +19 -1
- package/dist/client/workspace-ai.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/network/NetworkClient.d.ts +1 -1
- package/dist/network/NetworkClient.d.ts.map +1 -1
- package/dist/network/NetworkClient.js +1 -0
- package/dist/network/NetworkClient.js.map +1 -1
- package/dist/utils/remove-authorization-param.d.ts +1 -0
- package/dist/utils/remove-authorization-param.d.ts.map +1 -1
- package/dist/utils/remove-authorization-param.js.map +1 -1
- package/package.json +1 -1
- package/src/api/agent.ts +105 -3
- package/src/api/ai.ts +106 -183
- package/src/api/codeShift.ts +22 -9
- package/src/api/dataIntegration.ts +1494 -0
- package/src/api/workspace-ai.ts +63 -4
- package/src/apis.json +8 -0
- package/src/client/agent.ts +11 -1
- package/src/client/ai.ts +19 -14
- package/src/client/code-shift.ts +6 -1
- package/src/client/data-integration.ts +64 -0
- package/src/client/workspace-ai.ts +12 -0
- package/src/index.ts +1 -0
- package/src/network/NetworkClient.ts +2 -1
- package/src/utils/remove-authorization-param.ts +2 -1
package/src/api/ai.ts
CHANGED
|
@@ -54,7 +54,7 @@ export type GetAiStackResponse = {
|
|
|
54
54
|
visibility_level: string;
|
|
55
55
|
use_only?: boolean | null;
|
|
56
56
|
};
|
|
57
|
-
export type VisibilityLevelEnum = "account" | "personal" | "shared" | "workspace";
|
|
57
|
+
export type VisibilityLevelEnum = "account" | "personal" | "shared" | "workspace" | "favorite";
|
|
58
58
|
export type NewAiStackRequest = {
|
|
59
59
|
name: string;
|
|
60
60
|
use_case: string;
|
|
@@ -387,9 +387,6 @@ export type QuickCommandsCreateRequest = {
|
|
|
387
387
|
custom_inputs?: CustomInputRequest[] | null;
|
|
388
388
|
flow?: object | null;
|
|
389
389
|
};
|
|
390
|
-
export type BaseContextualRequest = {
|
|
391
|
-
context?: object | null;
|
|
392
|
-
};
|
|
393
390
|
export type QuickCommandsUpdateRequest = {
|
|
394
391
|
name?: string | null;
|
|
395
392
|
description?: string | null;
|
|
@@ -509,10 +506,6 @@ export type QuickCommandsExecutionRequest = {
|
|
|
509
506
|
} | null;
|
|
510
507
|
qc_execution_id?: string | null;
|
|
511
508
|
};
|
|
512
|
-
export type QuickCommandPromptResponse2 = {
|
|
513
|
-
answer: string;
|
|
514
|
-
sources?: (SourceStackAi | SourceKnowledgeSource | SourceProjectFile | KnowledgeSourceEvent)[] | null;
|
|
515
|
-
};
|
|
516
509
|
export type QuickCommandFinalResultResponse = {
|
|
517
510
|
result: string;
|
|
518
511
|
};
|
|
@@ -539,6 +532,7 @@ export type StepFetch = {
|
|
|
539
532
|
export type StepLlm = {
|
|
540
533
|
answer: string;
|
|
541
534
|
sources: (SourceStackAi | SourceKnowledgeSource | SourceProjectFile | KnowledgeSourceEvent)[];
|
|
535
|
+
tools?: string[];
|
|
542
536
|
};
|
|
543
537
|
export type Step = {
|
|
544
538
|
step_name: string;
|
|
@@ -554,14 +548,6 @@ export type QuickCommandExecutionResponse = {
|
|
|
554
548
|
steps?: Step[] | null;
|
|
555
549
|
result?: string | null;
|
|
556
550
|
};
|
|
557
|
-
export type ImportContentType = "ai_stack" | "knowledge_source" | "quick_command";
|
|
558
|
-
export type ImportPublicContent = {
|
|
559
|
-
"type": ImportContentType;
|
|
560
|
-
content_id: string;
|
|
561
|
-
content_slug_name: string;
|
|
562
|
-
studio_id: string | null;
|
|
563
|
-
workspace_ids?: string[] | null;
|
|
564
|
-
};
|
|
565
551
|
export type ConversationHistoryAgentEnum = "AI" | "USER";
|
|
566
552
|
export type ConversationHistoryResponse = {
|
|
567
553
|
message_id: string;
|
|
@@ -594,11 +580,6 @@ export type FeatureFlagResponse = {
|
|
|
594
580
|
action: string;
|
|
595
581
|
active: boolean;
|
|
596
582
|
};
|
|
597
|
-
export type FavoriteTypeEnum = "agent" | "ks" | "qc" | "stack" | "workspace";
|
|
598
|
-
export type FavoriteRequest = {
|
|
599
|
-
id: string;
|
|
600
|
-
"type": FavoriteTypeEnum;
|
|
601
|
-
};
|
|
602
583
|
export type ContentDependencyType = "agent" | "knowledge-source" | "quick-command";
|
|
603
584
|
export type ContentDependencyResponse = {
|
|
604
585
|
id: string;
|
|
@@ -622,6 +603,10 @@ export type ChatResponse2 = {
|
|
|
622
603
|
answer: string;
|
|
623
604
|
sources: (SourceStackAi | SourceKnowledgeSource | SourceProjectFile3)[];
|
|
624
605
|
};
|
|
606
|
+
export type QuickCommandPromptResponse2 = {
|
|
607
|
+
answer: string;
|
|
608
|
+
sources?: (SourceStackAi | SourceKnowledgeSource | SourceProjectFile | KnowledgeSourceEvent)[] | null;
|
|
609
|
+
};
|
|
625
610
|
export type ChatRequest = {
|
|
626
611
|
context?: object | null;
|
|
627
612
|
user_prompt: string;
|
|
@@ -853,9 +838,9 @@ export function removeAiStackV1AiStacksStackIdDelete({ stackId, authorization, x
|
|
|
853
838
|
}));
|
|
854
839
|
}
|
|
855
840
|
/**
|
|
856
|
-
* Get Ai Stack
|
|
841
|
+
* Get Ai Stack Exists
|
|
857
842
|
*/
|
|
858
|
-
export function
|
|
843
|
+
export function getAiStackExistsV1AiStacksStackNameExistsGet({ stackName, authorization, xAccountId }: {
|
|
859
844
|
stackName: string;
|
|
860
845
|
authorization: string;
|
|
861
846
|
xAccountId?: string | null;
|
|
@@ -875,6 +860,54 @@ export function getAiStackV1AiStacksStackNameExistsGet({ stackName, authorizatio
|
|
|
875
860
|
})
|
|
876
861
|
}));
|
|
877
862
|
}
|
|
863
|
+
/**
|
|
864
|
+
* Add Favorite
|
|
865
|
+
*/
|
|
866
|
+
export function addFavoriteV1AiStacksStackIdFavoritePost({ stackId, authorization, xAccountId }: {
|
|
867
|
+
stackId: string;
|
|
868
|
+
authorization: string;
|
|
869
|
+
xAccountId?: string | null;
|
|
870
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
871
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
872
|
+
status: 204;
|
|
873
|
+
} | {
|
|
874
|
+
status: 404;
|
|
875
|
+
} | {
|
|
876
|
+
status: 422;
|
|
877
|
+
data: HttpValidationError;
|
|
878
|
+
}>(`/v1/ai-stacks/${encodeURIComponent(stackId)}/favorite`, {
|
|
879
|
+
...opts,
|
|
880
|
+
method: "POST",
|
|
881
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
882
|
+
authorization,
|
|
883
|
+
"x-account-id": xAccountId
|
|
884
|
+
})
|
|
885
|
+
}));
|
|
886
|
+
}
|
|
887
|
+
/**
|
|
888
|
+
* Delete Favorite
|
|
889
|
+
*/
|
|
890
|
+
export function deleteFavoriteV1AiStacksStackIdFavoriteDelete({ stackId, authorization, xAccountId }: {
|
|
891
|
+
stackId: string;
|
|
892
|
+
authorization: string;
|
|
893
|
+
xAccountId?: string | null;
|
|
894
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
895
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
896
|
+
status: 204;
|
|
897
|
+
} | {
|
|
898
|
+
status: 404;
|
|
899
|
+
} | {
|
|
900
|
+
status: 422;
|
|
901
|
+
data: HttpValidationError;
|
|
902
|
+
}>(`/v1/ai-stacks/${encodeURIComponent(stackId)}/favorite`, {
|
|
903
|
+
...opts,
|
|
904
|
+
method: "DELETE",
|
|
905
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
906
|
+
authorization,
|
|
907
|
+
"x-account-id": xAccountId
|
|
908
|
+
})
|
|
909
|
+
}));
|
|
910
|
+
}
|
|
878
911
|
/**
|
|
879
912
|
* Fork
|
|
880
913
|
*/
|
|
@@ -1246,9 +1279,9 @@ export function deleteKnowledgeSourceV1KnowledgeSourcesSlugDelete({ slug, author
|
|
|
1246
1279
|
}));
|
|
1247
1280
|
}
|
|
1248
1281
|
/**
|
|
1249
|
-
*
|
|
1282
|
+
* Exists Knowledge Source
|
|
1250
1283
|
*/
|
|
1251
|
-
export function
|
|
1284
|
+
export function existsKnowledgeSourceV1KnowledgeSourcesSlugExistsGet({ slug, authorization }: {
|
|
1252
1285
|
slug: string;
|
|
1253
1286
|
authorization: string;
|
|
1254
1287
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -2105,34 +2138,6 @@ export function createQuickCommandV1QuickCommandsPost({ authorization, xAccountI
|
|
|
2105
2138
|
})
|
|
2106
2139
|
})));
|
|
2107
2140
|
}
|
|
2108
|
-
/**
|
|
2109
|
-
* List All Deprecated
|
|
2110
|
-
*/
|
|
2111
|
-
export function listAllDeprecatedV1QuickCommandsAllPost({ origin, authorization, xAccountId, baseContextualRequest }: {
|
|
2112
|
-
origin?: string;
|
|
2113
|
-
authorization: string;
|
|
2114
|
-
xAccountId?: string | null;
|
|
2115
|
-
baseContextualRequest: BaseContextualRequest;
|
|
2116
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
2117
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2118
|
-
status: 200;
|
|
2119
|
-
data: QuickCommandListResponse[];
|
|
2120
|
-
} | {
|
|
2121
|
-
status: 404;
|
|
2122
|
-
} | {
|
|
2123
|
-
status: 422;
|
|
2124
|
-
data: HttpValidationError;
|
|
2125
|
-
}>("/v1/quick-commands/all", oazapfts.json({
|
|
2126
|
-
...opts,
|
|
2127
|
-
method: "POST",
|
|
2128
|
-
body: baseContextualRequest,
|
|
2129
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2130
|
-
origin,
|
|
2131
|
-
authorization,
|
|
2132
|
-
"x-account-id": xAccountId
|
|
2133
|
-
})
|
|
2134
|
-
})));
|
|
2135
|
-
}
|
|
2136
2141
|
/**
|
|
2137
2142
|
* List All
|
|
2138
2143
|
*/
|
|
@@ -2240,6 +2245,54 @@ export function deleteQuickCommandV1QuickCommandsSlugDelete({ slug, authorizatio
|
|
|
2240
2245
|
})
|
|
2241
2246
|
}));
|
|
2242
2247
|
}
|
|
2248
|
+
/**
|
|
2249
|
+
* Share
|
|
2250
|
+
*/
|
|
2251
|
+
export function shareV1QuickCommandsSlugFavoritePost({ slug, authorization, xAccountId }: {
|
|
2252
|
+
slug: string;
|
|
2253
|
+
authorization: string;
|
|
2254
|
+
xAccountId?: string | null;
|
|
2255
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2256
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2257
|
+
status: 204;
|
|
2258
|
+
} | {
|
|
2259
|
+
status: 404;
|
|
2260
|
+
} | {
|
|
2261
|
+
status: 422;
|
|
2262
|
+
data: HttpValidationError;
|
|
2263
|
+
}>(`/v1/quick-commands/${encodeURIComponent(slug)}/favorite`, {
|
|
2264
|
+
...opts,
|
|
2265
|
+
method: "POST",
|
|
2266
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2267
|
+
authorization,
|
|
2268
|
+
"x-account-id": xAccountId
|
|
2269
|
+
})
|
|
2270
|
+
}));
|
|
2271
|
+
}
|
|
2272
|
+
/**
|
|
2273
|
+
* Share
|
|
2274
|
+
*/
|
|
2275
|
+
export function shareV1QuickCommandsSlugFavoriteDelete({ slug, authorization, xAccountId }: {
|
|
2276
|
+
slug: string;
|
|
2277
|
+
authorization: string;
|
|
2278
|
+
xAccountId?: string | null;
|
|
2279
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2280
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2281
|
+
status: 204;
|
|
2282
|
+
} | {
|
|
2283
|
+
status: 404;
|
|
2284
|
+
} | {
|
|
2285
|
+
status: 422;
|
|
2286
|
+
data: HttpValidationError;
|
|
2287
|
+
}>(`/v1/quick-commands/${encodeURIComponent(slug)}/favorite`, {
|
|
2288
|
+
...opts,
|
|
2289
|
+
method: "DELETE",
|
|
2290
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2291
|
+
authorization,
|
|
2292
|
+
"x-account-id": xAccountId
|
|
2293
|
+
})
|
|
2294
|
+
}));
|
|
2295
|
+
}
|
|
2243
2296
|
/**
|
|
2244
2297
|
* Share
|
|
2245
2298
|
*/
|
|
@@ -2437,34 +2490,6 @@ export function listByWorkspaceIdV1QuickCommandsWorkspacesWorkspaceIdGet({ works
|
|
|
2437
2490
|
})
|
|
2438
2491
|
}));
|
|
2439
2492
|
}
|
|
2440
|
-
/**
|
|
2441
|
-
* Quick Commands Run
|
|
2442
|
-
*/
|
|
2443
|
-
export function quickCommandsRunV1QuickCommandsSlugStepsStepSlugRunPost({ slug, stepSlug, authorization, xAccountId, quickCommandsExecutionRequest }: {
|
|
2444
|
-
slug: string;
|
|
2445
|
-
stepSlug: string;
|
|
2446
|
-
authorization: string;
|
|
2447
|
-
xAccountId?: string | null;
|
|
2448
|
-
quickCommandsExecutionRequest: QuickCommandsExecutionRequest;
|
|
2449
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
2450
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2451
|
-
status: 200;
|
|
2452
|
-
data: QuickCommandPromptResponse2;
|
|
2453
|
-
} | {
|
|
2454
|
-
status: 404;
|
|
2455
|
-
} | {
|
|
2456
|
-
status: 422;
|
|
2457
|
-
data: HttpValidationError;
|
|
2458
|
-
}>(`/v1/quick-commands/${encodeURIComponent(slug)}/steps/${encodeURIComponent(stepSlug)}/run`, oazapfts.json({
|
|
2459
|
-
...opts,
|
|
2460
|
-
method: "POST",
|
|
2461
|
-
body: quickCommandsExecutionRequest,
|
|
2462
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2463
|
-
authorization,
|
|
2464
|
-
"x-account-id": xAccountId
|
|
2465
|
-
})
|
|
2466
|
-
})));
|
|
2467
|
-
}
|
|
2468
2493
|
/**
|
|
2469
2494
|
* Format Fetch Step
|
|
2470
2495
|
*/
|
|
@@ -2624,31 +2649,6 @@ export function callbackV1QuickCommandsCallbackExecutionIdGet({ executionId, aut
|
|
|
2624
2649
|
})
|
|
2625
2650
|
}));
|
|
2626
2651
|
}
|
|
2627
|
-
/**
|
|
2628
|
-
* Import Content
|
|
2629
|
-
*/
|
|
2630
|
-
export function importContentV1ImportPost({ authorization, xAccountId, importPublicContent }: {
|
|
2631
|
-
authorization: string;
|
|
2632
|
-
xAccountId?: string | null;
|
|
2633
|
-
importPublicContent: ImportPublicContent;
|
|
2634
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
2635
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2636
|
-
status: 204;
|
|
2637
|
-
} | {
|
|
2638
|
-
status: 404;
|
|
2639
|
-
} | {
|
|
2640
|
-
status: 422;
|
|
2641
|
-
data: HttpValidationError;
|
|
2642
|
-
}>("/v1/import", oazapfts.json({
|
|
2643
|
-
...opts,
|
|
2644
|
-
method: "POST",
|
|
2645
|
-
body: importPublicContent,
|
|
2646
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2647
|
-
authorization,
|
|
2648
|
-
"x-account-id": xAccountId
|
|
2649
|
-
})
|
|
2650
|
-
})));
|
|
2651
|
-
}
|
|
2652
2652
|
/**
|
|
2653
2653
|
* List Conversations
|
|
2654
2654
|
*/
|
|
@@ -2879,83 +2879,6 @@ export function getFlagsV1FlagsGet(opts?: Oazapfts.RequestOpts) {
|
|
|
2879
2879
|
...opts
|
|
2880
2880
|
}));
|
|
2881
2881
|
}
|
|
2882
|
-
/**
|
|
2883
|
-
* Get Favorites By Type
|
|
2884
|
-
*/
|
|
2885
|
-
export function getFavoritesByTypeV1FavoritesGet({ $type, authorization, xAccountId }: {
|
|
2886
|
-
$type: FavoriteTypeEnum;
|
|
2887
|
-
authorization: string;
|
|
2888
|
-
xAccountId?: string | null;
|
|
2889
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
2890
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2891
|
-
status: 200;
|
|
2892
|
-
data: string[];
|
|
2893
|
-
} | {
|
|
2894
|
-
status: 422;
|
|
2895
|
-
data: HttpValidationError;
|
|
2896
|
-
}>(`/v1/favorites${QS.query(QS.explode({
|
|
2897
|
-
"type": $type
|
|
2898
|
-
}))}`, {
|
|
2899
|
-
...opts,
|
|
2900
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2901
|
-
authorization,
|
|
2902
|
-
"x-account-id": xAccountId
|
|
2903
|
-
})
|
|
2904
|
-
}));
|
|
2905
|
-
}
|
|
2906
|
-
/**
|
|
2907
|
-
* Add Favorite
|
|
2908
|
-
*/
|
|
2909
|
-
export function addFavoriteV1FavoritesPost({ authorization, xAccountId, favoriteRequest }: {
|
|
2910
|
-
authorization: string;
|
|
2911
|
-
xAccountId?: string | null;
|
|
2912
|
-
favoriteRequest: FavoriteRequest;
|
|
2913
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
2914
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2915
|
-
status: 201;
|
|
2916
|
-
data: any;
|
|
2917
|
-
} | {
|
|
2918
|
-
status: 404;
|
|
2919
|
-
} | {
|
|
2920
|
-
status: 406;
|
|
2921
|
-
} | {
|
|
2922
|
-
status: 422;
|
|
2923
|
-
data: HttpValidationError;
|
|
2924
|
-
}>("/v1/favorites", oazapfts.json({
|
|
2925
|
-
...opts,
|
|
2926
|
-
method: "POST",
|
|
2927
|
-
body: favoriteRequest,
|
|
2928
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2929
|
-
authorization,
|
|
2930
|
-
"x-account-id": xAccountId
|
|
2931
|
-
})
|
|
2932
|
-
})));
|
|
2933
|
-
}
|
|
2934
|
-
/**
|
|
2935
|
-
* Delete Favorite
|
|
2936
|
-
*/
|
|
2937
|
-
export function deleteFavoriteV1FavoritesDelete({ authorization, xAccountId, favoriteRequest }: {
|
|
2938
|
-
authorization: string;
|
|
2939
|
-
xAccountId?: string | null;
|
|
2940
|
-
favoriteRequest: FavoriteRequest;
|
|
2941
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
2942
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2943
|
-
status: 204;
|
|
2944
|
-
} | {
|
|
2945
|
-
status: 404;
|
|
2946
|
-
} | {
|
|
2947
|
-
status: 422;
|
|
2948
|
-
data: HttpValidationError;
|
|
2949
|
-
}>("/v1/favorites", oazapfts.json({
|
|
2950
|
-
...opts,
|
|
2951
|
-
method: "DELETE",
|
|
2952
|
-
body: favoriteRequest,
|
|
2953
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2954
|
-
authorization,
|
|
2955
|
-
"x-account-id": xAccountId
|
|
2956
|
-
})
|
|
2957
|
-
})));
|
|
2958
|
-
}
|
|
2959
2882
|
/**
|
|
2960
2883
|
* Get Content Dependencies
|
|
2961
2884
|
*/
|
package/src/api/codeShift.ts
CHANGED
|
@@ -12,6 +12,7 @@ export const defaults: Oazapfts.Defaults<Oazapfts.CustomHeaders> = {
|
|
|
12
12
|
};
|
|
13
13
|
const oazapfts = Oazapfts.runtime(defaults);
|
|
14
14
|
export const servers = {};
|
|
15
|
+
export type CodeShiftRole = "list-applications" | "create-application" | "dispatch-module" | "create-module";
|
|
15
16
|
export type RolesResponse = {
|
|
16
17
|
result: boolean;
|
|
17
18
|
};
|
|
@@ -166,6 +167,8 @@ export type CreateModuleRequest = {
|
|
|
166
167
|
tags: string[];
|
|
167
168
|
/** Inputs of module */
|
|
168
169
|
inputs: InputRequest[];
|
|
170
|
+
/** Module studio */
|
|
171
|
+
studio: string;
|
|
169
172
|
};
|
|
170
173
|
export type InputResponse = {
|
|
171
174
|
name: string;
|
|
@@ -309,7 +312,7 @@ export type GetReportResponse = {
|
|
|
309
312
|
* Check Role Route
|
|
310
313
|
*/
|
|
311
314
|
export function checkRoleRouteV1RolesRoleGet({ role, authorization }: {
|
|
312
|
-
role:
|
|
315
|
+
role: CodeShiftRole;
|
|
313
316
|
authorization: string;
|
|
314
317
|
}, opts?: Oazapfts.RequestOpts) {
|
|
315
318
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
@@ -594,8 +597,9 @@ export function updateApplicationServiceV1ApplicationsApplicationIdPut({ applica
|
|
|
594
597
|
/**
|
|
595
598
|
* Create Module Service
|
|
596
599
|
*/
|
|
597
|
-
export function createModuleServiceV1ModulesPost({ authorization, createModuleRequest }: {
|
|
600
|
+
export function createModuleServiceV1ModulesPost({ authorization, xAccountSlug, createModuleRequest }: {
|
|
598
601
|
authorization: string;
|
|
602
|
+
xAccountSlug?: any;
|
|
599
603
|
createModuleRequest: CreateModuleRequest;
|
|
600
604
|
}, opts?: Oazapfts.RequestOpts) {
|
|
601
605
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
@@ -623,17 +627,19 @@ export function createModuleServiceV1ModulesPost({ authorization, createModuleRe
|
|
|
623
627
|
method: "POST",
|
|
624
628
|
body: createModuleRequest,
|
|
625
629
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
626
|
-
authorization
|
|
630
|
+
authorization,
|
|
631
|
+
"x-account-slug": xAccountSlug
|
|
627
632
|
})
|
|
628
633
|
})));
|
|
629
634
|
}
|
|
630
635
|
/**
|
|
631
636
|
* List Modules Service
|
|
632
637
|
*/
|
|
633
|
-
export function listModulesServiceV1ModulesGet({ pageSize, page, lastEvaluatedKey }: {
|
|
638
|
+
export function listModulesServiceV1ModulesGet({ pageSize, page, lastEvaluatedKey, authorization }: {
|
|
634
639
|
pageSize?: number;
|
|
635
640
|
page?: number;
|
|
636
641
|
lastEvaluatedKey?: string;
|
|
642
|
+
authorization: string;
|
|
637
643
|
}, opts?: Oazapfts.RequestOpts) {
|
|
638
644
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
639
645
|
status: 200;
|
|
@@ -660,15 +666,19 @@ export function listModulesServiceV1ModulesGet({ pageSize, page, lastEvaluatedKe
|
|
|
660
666
|
page,
|
|
661
667
|
lastEvaluatedKey
|
|
662
668
|
}))}`, {
|
|
663
|
-
...opts
|
|
669
|
+
...opts,
|
|
670
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
671
|
+
authorization
|
|
672
|
+
})
|
|
664
673
|
}));
|
|
665
674
|
}
|
|
666
675
|
/**
|
|
667
676
|
* Delete Module Service
|
|
668
677
|
*/
|
|
669
|
-
export function deleteModuleServiceV1ModulesModuleIdDelete({ moduleId, authorization }: {
|
|
678
|
+
export function deleteModuleServiceV1ModulesModuleIdDelete({ moduleId, authorization, xAccountSlug }: {
|
|
670
679
|
moduleId: string;
|
|
671
680
|
authorization: string;
|
|
681
|
+
xAccountSlug?: any;
|
|
672
682
|
}, opts?: Oazapfts.RequestOpts) {
|
|
673
683
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
674
684
|
status: 200;
|
|
@@ -694,16 +704,18 @@ export function deleteModuleServiceV1ModulesModuleIdDelete({ moduleId, authoriza
|
|
|
694
704
|
...opts,
|
|
695
705
|
method: "DELETE",
|
|
696
706
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
697
|
-
authorization
|
|
707
|
+
authorization,
|
|
708
|
+
"x-account-slug": xAccountSlug
|
|
698
709
|
})
|
|
699
710
|
}));
|
|
700
711
|
}
|
|
701
712
|
/**
|
|
702
713
|
* Update Module Service
|
|
703
714
|
*/
|
|
704
|
-
export function updateModuleServiceV1ModulesModuleIdPut({ moduleId, authorization, putModuleRequest }: {
|
|
715
|
+
export function updateModuleServiceV1ModulesModuleIdPut({ moduleId, authorization, xAccountSlug, putModuleRequest }: {
|
|
705
716
|
moduleId: string;
|
|
706
717
|
authorization: string;
|
|
718
|
+
xAccountSlug?: any;
|
|
707
719
|
putModuleRequest: PutModuleRequest;
|
|
708
720
|
}, opts?: Oazapfts.RequestOpts) {
|
|
709
721
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
@@ -731,7 +743,8 @@ export function updateModuleServiceV1ModulesModuleIdPut({ moduleId, authorizatio
|
|
|
731
743
|
method: "PUT",
|
|
732
744
|
body: putModuleRequest,
|
|
733
745
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
734
|
-
authorization
|
|
746
|
+
authorization,
|
|
747
|
+
"x-account-slug": xAccountSlug
|
|
735
748
|
})
|
|
736
749
|
})));
|
|
737
750
|
}
|