@stack-spot/portal-network 0.224.0 → 0.225.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 +16 -0
- package/dist/api/account.d.ts +56 -42
- package/dist/api/account.d.ts.map +1 -1
- package/dist/api/account.js +32 -12
- package/dist/api/account.js.map +1 -1
- package/dist/client/account.d.ts +17 -1
- package/dist/client/account.d.ts.map +1 -1
- package/dist/client/account.js +11 -2
- package/dist/client/account.js.map +1 -1
- package/dist/client/cloud-platform.d.ts +2 -3
- package/dist/client/cloud-platform.d.ts.map +1 -1
- package/dist/client/cloud-platform.js +1 -2
- package/dist/client/cloud-platform.js.map +1 -1
- package/package.json +1 -1
- package/src/api/account.ts +103 -61
- package/src/client/account.ts +6 -1
- package/src/client/cloud-platform.ts +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cloud-platform.js","sourceRoot":"","sources":["../../src/client/cloud-platform.ts"],"names":[],"mappings":"AACA,OAAO,EACL,cAAc,EACd,iBAAiB,EACjB,iBAAiB,EACjB,UAAU,EACV,eAAe,EACf,aAAa,EACb,YAAY,EACZ,gBAAgB,EAChB,aAAa,EACb,aAAa,EACb,UAAU,EACV,0BAA0B,EAC1B,SAAS,EACT,QAAQ,EACR,cAAc,EACd,iBAAiB,EACjB,iBAAiB,EACjB,UAAU,EACV,eAAe,EACf,aAAa,EACb,YAAY,EACZ,aAAa,EACb,aAAa,EACb,SAAS,EACT,WAAW,EACX,cAAc,EACd,cAAc,EACd,SAAS,EACT,aAAa,EACb,aAAa,EACb,UAAU,EACV,UAAU,EACV,OAAO,EACP,uBAAuB,EACvB,mBAAmB,EACnB,YAAY,EACZ,eAAe,EACf,gBAAgB,EAChB,QAAQ,EACR,aAAa,EACb,WAAW,EACX,eAAe,EACf,WAAW,EACX,WAAW,EACX,QAAQ,EACR,wBAAwB,EACxB,QAAQ,EACR,sBAAsB,EACtB,yBAAyB,EACzB,yBAAyB,EACzB,4BAA4B,EAC5B,kBAAkB,EAClB,eAAe,EACf,kBAAkB,EAClB,WAAW,EACX,cAAc,EACd,aAAa,EACb,2BAA2B,EAC3B,cAAc,EACd,cAAc,EACd,OAAO,EACP,uBAAuB,EACvB,UAAU,GACX,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAE1D,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAA;AAC5E,OAAO,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAA;AAC9E,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAA;AAClE,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;
|
|
1
|
+
{"version":3,"file":"cloud-platform.js","sourceRoot":"","sources":["../../src/client/cloud-platform.ts"],"names":[],"mappings":"AACA,OAAO,EACL,cAAc,EACd,iBAAiB,EACjB,iBAAiB,EACjB,UAAU,EACV,eAAe,EACf,aAAa,EACb,YAAY,EACZ,gBAAgB,EAChB,aAAa,EACb,aAAa,EACb,UAAU,EACV,0BAA0B,EAC1B,SAAS,EACT,QAAQ,EACR,cAAc,EACd,iBAAiB,EACjB,iBAAiB,EACjB,UAAU,EACV,eAAe,EACf,aAAa,EACb,YAAY,EACZ,aAAa,EACb,aAAa,EACb,UAAU,EACV,SAAS,EACT,WAAW,EACX,cAAc,EACd,cAAc,EACd,SAAS,EACT,aAAa,EACb,aAAa,EACb,UAAU,EACV,UAAU,EACV,OAAO,EACP,uBAAuB,EACvB,mBAAmB,EACnB,YAAY,EACZ,eAAe,EACf,gBAAgB,EAChB,QAAQ,EACR,aAAa,EACb,WAAW,EACX,eAAe,EACf,WAAW,EACX,WAAW,EACX,QAAQ,EACR,wBAAwB,EACxB,QAAQ,EACR,sBAAsB,EACtB,yBAAyB,EACzB,yBAAyB,EACzB,4BAA4B,EAC5B,kBAAkB,EAClB,eAAe,EACf,kBAAkB,EAClB,WAAW,EACX,cAA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;;QAEA;QACA;;;;mBAAU,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,OAAO,CAAC,CAAC;WAAA;QACvD;;QAEA;QACA;;;;mBAAW,IAAI,CAAC,QAAQ,CAAC,wBAAwB,CAAC,OAAO,CAAC,CAAC;WAAA;QAC3D;;QAEA;QACA;;;;mBAAa,IAAI,CAAC,QAAQ,CAAC,wBAAwB,CAAC,UAAU,CAAC,CAAC;WAAA;IAhQhE,CAAC;IAES,mBAAmB,CAAC,KAAgB;QAC5C,OAAO,IAAI,eAAe,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,MAAM,EAAE,aAAa,EAAE,KAAK,CAAC,OAAO,CAAC,CAAA;IACpF,CAAC;CA6PF;AAED,MAAM,CAAC,MAAM,mBAAmB,GAAG,IAAI,mBAAmB,EAAE,CAAA"}
|
package/package.json
CHANGED
package/src/api/account.ts
CHANGED
|
@@ -672,22 +672,20 @@ export type PageResponseServiceCredentialResponseV3 = {
|
|
|
672
672
|
export type Permissions = {
|
|
673
673
|
/** Resource ID */
|
|
674
674
|
resourceId: string;
|
|
675
|
-
/** Action ID */
|
|
676
675
|
actions: string[];
|
|
677
676
|
};
|
|
678
677
|
export type ServiceCredentialCreateRequestV3 = {
|
|
679
678
|
/** Service credential name */
|
|
680
679
|
name: string;
|
|
681
|
-
/** Service credential
|
|
682
|
-
description
|
|
680
|
+
/** Service credential description */
|
|
681
|
+
description?: string;
|
|
683
682
|
/** Service credential expiration days */
|
|
684
683
|
expirationDays?: number;
|
|
685
684
|
/** Service credential token expiration minutes */
|
|
686
685
|
tokenExpirationMinutes?: number;
|
|
687
|
-
|
|
688
|
-
groups: string[];
|
|
686
|
+
groups?: string[];
|
|
689
687
|
/** List of permissions */
|
|
690
|
-
permissions
|
|
688
|
+
permissions?: Permissions[];
|
|
691
689
|
};
|
|
692
690
|
export type ServiceCredentialIdResponseV3 = {
|
|
693
691
|
/** Service Credential Id */
|
|
@@ -2146,6 +2144,35 @@ export type AccountPartnerAdminDataUpdateRequest = {
|
|
|
2146
2144
|
/** Admin email */
|
|
2147
2145
|
email: string;
|
|
2148
2146
|
};
|
|
2147
|
+
export type ResourceTypeIdentifierRequest = {
|
|
2148
|
+
/** Slug of the resource type. */
|
|
2149
|
+
slug?: string;
|
|
2150
|
+
/** ID of the resource type. */
|
|
2151
|
+
id?: string;
|
|
2152
|
+
};
|
|
2153
|
+
export type DeleteResourceRequestV3 = {
|
|
2154
|
+
"type": ResourceTypeIdentifierRequest;
|
|
2155
|
+
/** Slug of the resource to be deleted */
|
|
2156
|
+
slug: string;
|
|
2157
|
+
};
|
|
2158
|
+
export type DeleteResourceResponseV3 = {
|
|
2159
|
+
/** Unique identifier of the resource. */
|
|
2160
|
+
id: string;
|
|
2161
|
+
/** Name of the resource. */
|
|
2162
|
+
name: string;
|
|
2163
|
+
/** Slug version of the resource name. */
|
|
2164
|
+
slug: string;
|
|
2165
|
+
/** Optional description of the resource. */
|
|
2166
|
+
description?: string;
|
|
2167
|
+
"type"?: ResourceTypeResponse;
|
|
2168
|
+
};
|
|
2169
|
+
export type PageDtoDeleteResourceResponseV3 = {
|
|
2170
|
+
items: DeleteResourceResponseV3[];
|
|
2171
|
+
size: number;
|
|
2172
|
+
totalElements: number;
|
|
2173
|
+
page: number;
|
|
2174
|
+
totalPages: number;
|
|
2175
|
+
};
|
|
2149
2176
|
export type ResourceTypeActionResponse = {
|
|
2150
2177
|
/** Unique identifier of the action. */
|
|
2151
2178
|
id: string;
|
|
@@ -2588,35 +2615,6 @@ export type AccountPartnerResponse = {
|
|
|
2588
2615
|
/** Account current status */
|
|
2589
2616
|
isActive: boolean;
|
|
2590
2617
|
};
|
|
2591
|
-
export type ResourceTypeIdentifierRequest = {
|
|
2592
|
-
/** Slug of the resource type. */
|
|
2593
|
-
slug?: string;
|
|
2594
|
-
/** ID of the resource type. */
|
|
2595
|
-
id?: string;
|
|
2596
|
-
};
|
|
2597
|
-
export type DeleteResourceRequestV3 = {
|
|
2598
|
-
"type": ResourceTypeIdentifierRequest;
|
|
2599
|
-
/** Slug of the resource to be deleted */
|
|
2600
|
-
slug: string;
|
|
2601
|
-
};
|
|
2602
|
-
export type DeleteResourceResponseV3 = {
|
|
2603
|
-
/** Unique identifier of the resource. */
|
|
2604
|
-
id: string;
|
|
2605
|
-
/** Name of the resource. */
|
|
2606
|
-
name: string;
|
|
2607
|
-
/** Slug version of the resource name. */
|
|
2608
|
-
slug: string;
|
|
2609
|
-
/** Optional description of the resource. */
|
|
2610
|
-
description?: string;
|
|
2611
|
-
"type"?: ResourceTypeResponse;
|
|
2612
|
-
};
|
|
2613
|
-
export type PageDtoDeleteResourceResponseV3 = {
|
|
2614
|
-
items: DeleteResourceResponseV3[];
|
|
2615
|
-
size: number;
|
|
2616
|
-
totalElements: number;
|
|
2617
|
-
page: number;
|
|
2618
|
-
totalPages: number;
|
|
2619
|
-
};
|
|
2620
2618
|
/**
|
|
2621
2619
|
* Get service credential permissions
|
|
2622
2620
|
*/
|
|
@@ -7475,6 +7473,72 @@ export function updatePartnerAccountAdminData({ id, accountPartnerAdminDataUpdat
|
|
|
7475
7473
|
body: accountPartnerAdminDataUpdateRequest
|
|
7476
7474
|
})));
|
|
7477
7475
|
}
|
|
7476
|
+
/**
|
|
7477
|
+
* Retrieve AI Resources
|
|
7478
|
+
*/
|
|
7479
|
+
export function getAiResources({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
7480
|
+
size?: any;
|
|
7481
|
+
page?: any;
|
|
7482
|
+
sort?: string;
|
|
7483
|
+
direction?: "ASC" | "DESC";
|
|
7484
|
+
search?: string;
|
|
7485
|
+
filterMode?: "MATCH" | "CONTAINS" | "IN";
|
|
7486
|
+
filterBy?: string;
|
|
7487
|
+
filterValue?: string;
|
|
7488
|
+
multiFilterMode?: string;
|
|
7489
|
+
filterIn?: any;
|
|
7490
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
7491
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
7492
|
+
status: 200;
|
|
7493
|
+
data: PageResponseResourceResponse;
|
|
7494
|
+
} | {
|
|
7495
|
+
status: 403;
|
|
7496
|
+
data: ErrorResponse;
|
|
7497
|
+
} | {
|
|
7498
|
+
status: 422;
|
|
7499
|
+
data: ErrorResponse;
|
|
7500
|
+
} | {
|
|
7501
|
+
status: 500;
|
|
7502
|
+
data: ErrorResponse;
|
|
7503
|
+
}>(`/v3/resources${QS.query(QS.explode({
|
|
7504
|
+
size,
|
|
7505
|
+
page,
|
|
7506
|
+
sort,
|
|
7507
|
+
direction,
|
|
7508
|
+
search,
|
|
7509
|
+
filterMode,
|
|
7510
|
+
filterBy,
|
|
7511
|
+
filterValue,
|
|
7512
|
+
multiFilterMode,
|
|
7513
|
+
filterIn
|
|
7514
|
+
}))}`, {
|
|
7515
|
+
...opts
|
|
7516
|
+
}));
|
|
7517
|
+
}
|
|
7518
|
+
/**
|
|
7519
|
+
* Deletes a resource from the account by resource type and resource slug.
|
|
7520
|
+
*/
|
|
7521
|
+
export function deleteResource({ deleteResourceRequestV3 }: {
|
|
7522
|
+
deleteResourceRequestV3: DeleteResourceRequestV3;
|
|
7523
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
7524
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
7525
|
+
status: 200;
|
|
7526
|
+
data: PageDtoDeleteResourceResponseV3;
|
|
7527
|
+
} | {
|
|
7528
|
+
status: 403;
|
|
7529
|
+
data: ErrorResponse;
|
|
7530
|
+
} | {
|
|
7531
|
+
status: 422;
|
|
7532
|
+
data: ErrorResponse;
|
|
7533
|
+
} | {
|
|
7534
|
+
status: 500;
|
|
7535
|
+
data: ErrorResponse;
|
|
7536
|
+
}>("/v3/resources", oazapfts.json({
|
|
7537
|
+
...opts,
|
|
7538
|
+
method: "DELETE",
|
|
7539
|
+
body: deleteResourceRequestV3
|
|
7540
|
+
})));
|
|
7541
|
+
}
|
|
7478
7542
|
/**
|
|
7479
7543
|
* Get Resource Types
|
|
7480
7544
|
*/
|
|
@@ -8541,7 +8605,7 @@ export function getResourceGroups1({ resourceId, size, page, sort, direction, se
|
|
|
8541
8605
|
/**
|
|
8542
8606
|
* Get Resource Types
|
|
8543
8607
|
*/
|
|
8544
|
-
export function getResourceTypes2({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
8608
|
+
export function getResourceTypes2({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn, aiResources }: {
|
|
8545
8609
|
size?: any;
|
|
8546
8610
|
page?: any;
|
|
8547
8611
|
sort?: string;
|
|
@@ -8552,6 +8616,7 @@ export function getResourceTypes2({ size, page, sort, direction, search, filterM
|
|
|
8552
8616
|
filterValue?: string;
|
|
8553
8617
|
multiFilterMode?: string;
|
|
8554
8618
|
filterIn?: any;
|
|
8619
|
+
aiResources?: boolean;
|
|
8555
8620
|
}, opts?: Oazapfts.RequestOpts) {
|
|
8556
8621
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
8557
8622
|
status: 200;
|
|
@@ -8572,7 +8637,8 @@ export function getResourceTypes2({ size, page, sort, direction, search, filterM
|
|
|
8572
8637
|
filterBy,
|
|
8573
8638
|
filterValue,
|
|
8574
8639
|
multiFilterMode,
|
|
8575
|
-
filterIn
|
|
8640
|
+
filterIn,
|
|
8641
|
+
aiResources
|
|
8576
8642
|
}))}`, {
|
|
8577
8643
|
...opts
|
|
8578
8644
|
}));
|
|
@@ -8988,30 +9054,6 @@ export function validatePartnerAssociationLimit(opts?: Oazapfts.RequestOpts) {
|
|
|
8988
9054
|
...opts
|
|
8989
9055
|
}));
|
|
8990
9056
|
}
|
|
8991
|
-
/**
|
|
8992
|
-
* Deletes a resource from the account by resource type and resource slug.
|
|
8993
|
-
*/
|
|
8994
|
-
export function deleteResource({ deleteResourceRequestV3 }: {
|
|
8995
|
-
deleteResourceRequestV3: DeleteResourceRequestV3;
|
|
8996
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
8997
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
8998
|
-
status: 200;
|
|
8999
|
-
data: PageDtoDeleteResourceResponseV3;
|
|
9000
|
-
} | {
|
|
9001
|
-
status: 403;
|
|
9002
|
-
data: ErrorResponse;
|
|
9003
|
-
} | {
|
|
9004
|
-
status: 422;
|
|
9005
|
-
data: ErrorResponse;
|
|
9006
|
-
} | {
|
|
9007
|
-
status: 500;
|
|
9008
|
-
data: ErrorResponse;
|
|
9009
|
-
}>("/v3/resources", oazapfts.json({
|
|
9010
|
-
...opts,
|
|
9011
|
-
method: "DELETE",
|
|
9012
|
-
body: deleteResourceRequestV3
|
|
9013
|
-
})));
|
|
9014
|
-
}
|
|
9015
9057
|
/**
|
|
9016
9058
|
* Disassociate Group to Service Credential
|
|
9017
9059
|
*/
|
package/src/client/account.ts
CHANGED
|
@@ -52,6 +52,7 @@ import {
|
|
|
52
52
|
getAccounts,
|
|
53
53
|
getAccountSso,
|
|
54
54
|
getActiveExtensionVersion,
|
|
55
|
+
getAiResources,
|
|
55
56
|
getAll,
|
|
56
57
|
getAllAccountSso,
|
|
57
58
|
getAllGroupMapping,
|
|
@@ -946,7 +947,7 @@ class AccountClient extends ReactQueryNetworkClient {
|
|
|
946
947
|
/**
|
|
947
948
|
* Get all service credentials paginated
|
|
948
949
|
*/
|
|
949
|
-
|
|
950
|
+
getServicesCredentials = this.infiniteQuery(getAll, { accumulator: 'items' })
|
|
950
951
|
/**
|
|
951
952
|
* Get Service Credential V3
|
|
952
953
|
*/
|
|
@@ -983,6 +984,10 @@ class AccountClient extends ReactQueryNetworkClient {
|
|
|
983
984
|
* Revoke Service Credential V3
|
|
984
985
|
*/
|
|
985
986
|
revokeServiceCredentialV3 = this.mutation(revoke)
|
|
987
|
+
/**
|
|
988
|
+
* Get list of resources
|
|
989
|
+
*/
|
|
990
|
+
getResources = this.infiniteQuery(getAiResources, { accumulator: 'items' })
|
|
986
991
|
}
|
|
987
992
|
|
|
988
993
|
export const accountClient = new AccountClient()
|
|
@@ -23,6 +23,7 @@ import {
|
|
|
23
23
|
deleteFolder,
|
|
24
24
|
deleteNetwork,
|
|
25
25
|
deleteProject,
|
|
26
|
+
deleteRole,
|
|
26
27
|
deleteVpn,
|
|
27
28
|
getBoundary,
|
|
28
29
|
getBoundarySso,
|
|
@@ -70,7 +71,6 @@ import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient'
|
|
|
70
71
|
import { removeAuthorizationParam } from '../utils/remove-authorization-param'
|
|
71
72
|
import { scfDictionary } from '../error/dictionary/cloud-platform'
|
|
72
73
|
import { getApiAddresses } from '../api-addresses'
|
|
73
|
-
import { deleteRole } from '../api/account'
|
|
74
74
|
|
|
75
75
|
class CloudPlatformClient extends ReactQueryNetworkClient {
|
|
76
76
|
constructor() {
|