@stack-spot/portal-network 0.3.0 → 0.4.0-beta.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 +15 -0
- package/dist/api/account.d.ts +2368 -0
- package/dist/api/account.d.ts.map +1 -0
- package/dist/api/account.js +1521 -0
- package/dist/api/account.js.map +1 -0
- package/dist/api/ai.d.ts +1432 -0
- package/dist/api/ai.d.ts.map +1 -0
- package/dist/api/ai.js +1342 -0
- package/dist/api/ai.js.map +1 -0
- package/dist/api/apiRuntime.d.ts +922 -0
- package/dist/api/apiRuntime.d.ts.map +1 -0
- package/dist/api/apiRuntime.js +599 -0
- package/dist/api/apiRuntime.js.map +1 -0
- package/dist/api/cloudAccount.d.ts +473 -0
- package/dist/api/cloudAccount.d.ts.map +1 -0
- package/dist/api/cloudAccount.js +300 -0
- package/dist/api/cloudAccount.js.map +1 -0
- package/dist/api/cloudServices.d.ts +1233 -0
- package/dist/api/cloudServices.d.ts.map +1 -0
- package/dist/api/cloudServices.js +715 -0
- package/dist/api/cloudServices.js.map +1 -0
- package/dist/api/insights.d.ts +123 -0
- package/dist/api/insights.d.ts.map +1 -0
- package/dist/api/insights.js +112 -0
- package/dist/api/insights.js.map +1 -0
- package/dist/api/secrets.d.ts +100 -0
- package/dist/api/secrets.d.ts.map +1 -0
- package/dist/api/secrets.js +101 -0
- package/dist/api/secrets.js.map +1 -0
- package/dist/api/serviceCatalog.d.ts +737 -0
- package/dist/api/serviceCatalog.d.ts.map +1 -0
- package/dist/api/serviceCatalog.js +611 -0
- package/dist/api/serviceCatalog.js.map +1 -0
- package/dist/api/workflows.d.ts +366 -0
- package/dist/api/workflows.d.ts.map +1 -0
- package/dist/api/workflows.js +175 -0
- package/dist/api/workflows.js.map +1 -0
- package/dist/api/workspace.js +1476 -0
- package/dist/api/workspace.js.map +1 -0
- package/dist/api/workspaceManager.d.ts +1121 -0
- package/dist/api/workspaceManager.d.ts.map +1 -0
- package/dist/api/workspaceManager.js +357 -0
- package/dist/api/workspaceManager.js.map +1 -0
- package/dist/api/workspaceSearchEngine.d.ts +93 -0
- package/dist/api/workspaceSearchEngine.d.ts.map +1 -0
- package/dist/api/workspaceSearchEngine.js +55 -0
- package/dist/api/workspaceSearchEngine.js.map +1 -0
- package/dist/apis.json +129 -0
- package/dist/client/account.d.ts +449 -0
- package/dist/client/account.d.ts.map +1 -0
- package/dist/client/account.js +501 -0
- package/dist/client/account.js.map +1 -0
- package/dist/client/secrets.d.ts +50 -0
- package/dist/client/secrets.d.ts.map +1 -0
- package/dist/client/secrets.js +78 -0
- package/dist/client/secrets.js.map +1 -0
- package/dist/error/CanceledError.d.ts +8 -0
- package/dist/error/CanceledError.d.ts.map +1 -0
- package/dist/error/CanceledError.js +10 -0
- package/dist/error/CanceledError.js.map +1 -0
- package/dist/error/DefaultAPIError.d.ts +34 -0
- package/dist/error/DefaultAPIError.d.ts.map +1 -0
- package/dist/error/DefaultAPIError.js +82 -0
- package/dist/error/DefaultAPIError.js.map +1 -0
- package/dist/error/StackspotAPIError.d.ts +50 -0
- package/dist/error/StackspotAPIError.d.ts.map +1 -0
- package/dist/error/StackspotAPIError.js +54 -0
- package/dist/error/StackspotAPIError.js.map +1 -0
- package/dist/error/dictionary/account.d.ts +57 -0
- package/dist/error/dictionary/account.d.ts.map +1 -0
- package/dist/error/dictionary/account.js +57 -0
- package/dist/error/dictionary/account.js.map +1 -0
- package/dist/error/dictionary/action.d.ts +163 -0
- package/dist/error/dictionary/action.d.ts.map +1 -0
- package/dist/error/dictionary/action.js +163 -0
- package/dist/error/dictionary/action.js.map +1 -0
- package/dist/error/dictionary/base.d.ts +21 -0
- package/dist/error/dictionary/base.d.ts.map +1 -0
- package/dist/error/dictionary/base.js +21 -0
- package/dist/error/dictionary/base.js.map +1 -0
- package/dist/error/dictionary/cnt-fields.d.ts +13 -0
- package/dist/error/dictionary/cnt-fields.d.ts.map +1 -0
- package/dist/error/dictionary/cnt-fields.js +13 -0
- package/dist/error/dictionary/cnt-fields.js.map +1 -0
- package/dist/error/dictionary/cnt.d.ts +79 -0
- package/dist/error/dictionary/cnt.d.ts.map +1 -0
- package/dist/error/dictionary/cnt.js +79 -0
- package/dist/error/dictionary/cnt.js.map +1 -0
- package/dist/error/dictionary/rte.d.ts +23 -0
- package/dist/error/dictionary/rte.d.ts.map +1 -0
- package/dist/error/dictionary/rte.js +23 -0
- package/dist/error/dictionary/rte.js.map +1 -0
- package/dist/error/dictionary/rtm.d.ts +9 -0
- package/dist/error/dictionary/rtm.d.ts.map +1 -0
- package/dist/error/dictionary/rtm.js +9 -0
- package/dist/error/dictionary/rtm.js.map +1 -0
- package/dist/error/dictionary/secrets.d.ts +13 -0
- package/dist/error/dictionary/secrets.d.ts.map +1 -0
- package/dist/error/dictionary/secrets.js +13 -0
- package/dist/error/dictionary/secrets.js.map +1 -0
- package/dist/error/dictionary/workspace-fields.d.ts +9 -0
- package/dist/error/dictionary/workspace-fields.d.ts.map +1 -0
- package/dist/error/dictionary/workspace-fields.js +9 -0
- package/dist/error/dictionary/workspace-fields.js.map +1 -0
- package/dist/error/dictionary/workspace.d.ts +99 -0
- package/dist/error/dictionary/workspace.d.ts.map +1 -0
- package/dist/error/dictionary/workspace.js +99 -0
- package/dist/error/dictionary/workspace.js.map +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -0
- package/dist/network/AutoInfiniteQuery.d.ts +23 -0
- package/dist/network/AutoInfiniteQuery.d.ts.map +1 -0
- package/dist/network/AutoInfiniteQuery.js +70 -0
- package/dist/network/AutoInfiniteQuery.js.map +1 -0
- package/dist/network/AutoMutation.d.ts +10 -0
- package/dist/network/AutoMutation.d.ts.map +1 -0
- package/dist/network/AutoMutation.js +20 -0
- package/dist/network/AutoMutation.js.map +1 -0
- package/dist/network/AutoOperation.d.ts +19 -0
- package/dist/network/AutoOperation.d.ts.map +1 -0
- package/dist/network/AutoOperation.js +105 -0
- package/dist/network/AutoOperation.js.map +1 -0
- package/dist/network/AutoQuery.d.ts +19 -0
- package/dist/network/AutoQuery.d.ts.map +1 -0
- package/dist/network/AutoQuery.js +73 -0
- package/dist/network/AutoQuery.js.map +1 -0
- package/dist/network/ManualInfiniteQuery.d.ts +26 -0
- package/dist/network/ManualInfiniteQuery.d.ts.map +1 -0
- package/dist/network/ManualInfiniteQuery.js +62 -0
- package/dist/network/ManualInfiniteQuery.js.map +1 -0
- package/dist/network/ManualMutation.d.ts +11 -0
- package/dist/network/ManualMutation.d.ts.map +1 -0
- package/dist/network/ManualMutation.js +35 -0
- package/dist/network/ManualMutation.js.map +1 -0
- package/dist/network/ManualOperation.d.ts +14 -0
- package/dist/network/ManualOperation.d.ts.map +1 -0
- package/dist/network/ManualOperation.js +64 -0
- package/dist/network/ManualOperation.js.map +1 -0
- package/dist/network/ManualQuery.d.ts +20 -0
- package/dist/network/ManualQuery.d.ts.map +1 -0
- package/dist/network/ManualQuery.js +80 -0
- package/dist/network/ManualQuery.js.map +1 -0
- package/dist/network/NetworkClient.d.ts +58 -0
- package/dist/network/NetworkClient.d.ts.map +1 -0
- package/dist/network/NetworkClient.js +107 -0
- package/dist/network/NetworkClient.js.map +1 -0
- package/dist/network/ReactQueryNetworkClient.d.ts +78 -0
- package/dist/network/ReactQueryNetworkClient.d.ts.map +1 -0
- package/dist/network/ReactQueryNetworkClient.js +134 -0
- package/dist/network/ReactQueryNetworkClient.js.map +1 -0
- package/dist/network/react-query-client.d.ts +6 -0
- package/dist/network/react-query-client.d.ts.map +1 -0
- package/dist/network/react-query-client.js +6 -0
- package/dist/network/react-query-client.js.map +1 -0
- package/dist/network/types.d.ts +235 -0
- package/dist/network/types.d.ts.map +1 -0
- package/dist/network/types.js +2 -0
- package/dist/network/types.js.map +1 -0
- package/dist/utils/use-extended-list.d.ts +39 -0
- package/dist/utils/use-extended-list.d.ts.map +1 -0
- package/dist/utils/use-extended-list.js +36 -0
- package/dist/utils/use-extended-list.js.map +1 -0
- package/package.json +2 -3
- package/src/api/secrets.ts +279 -0
- package/src/apis.json +8 -0
- package/src/client/account.ts +124 -3
- package/src/client/secrets.ts +56 -0
- package/src/error/DefaultAPIError.ts +4 -5
- package/src/error/dictionary/account.ts +2 -0
- package/src/error/dictionary/secrets.ts +14 -0
- package/src/index.ts +1 -0
- package/src/network/AutoQuery.ts +3 -1
- package/src/network/ManualInfiniteQuery.ts +4 -1
- package/src/network/ManualMutation.ts +2 -0
- package/src/network/ManualOperation.ts +16 -5
- package/src/network/ManualQuery.ts +2 -0
- package/src/network/ReactQueryNetworkClient.ts +9 -16
- package/src/network/types.ts +1 -0
package/dist/apis.json
ADDED
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
{
|
|
2
|
+
"ai": {
|
|
3
|
+
"url": {
|
|
4
|
+
"dev": "https://genai-code-buddy-api.dev.stackspot.com",
|
|
5
|
+
"stg": "https://genai-code-buddy-api.stg.stackspot.com",
|
|
6
|
+
"prd": "https://genai-code-buddy-api.stackspot.com"
|
|
7
|
+
},
|
|
8
|
+
"docs": "/openapi.json"
|
|
9
|
+
},
|
|
10
|
+
"workspace": {
|
|
11
|
+
"url": {
|
|
12
|
+
"dev": "https://workspace-workspace-api.dev.stackspot.com",
|
|
13
|
+
"stg": "https://workspace-workspace-api.stg.stackspot.com",
|
|
14
|
+
"prd": "https://workspace.v1.stackspot.com"
|
|
15
|
+
},
|
|
16
|
+
"docs": "/v3/api-docs"
|
|
17
|
+
},
|
|
18
|
+
"account": {
|
|
19
|
+
"url": {
|
|
20
|
+
"dev": "https://account-account-api.dev.stackspot.com",
|
|
21
|
+
"stg": "https://account-account-api.stg.stackspot.com",
|
|
22
|
+
"prd": "https://account.v1.stackspot.com"
|
|
23
|
+
},
|
|
24
|
+
"docs": "/v3/api-docs"
|
|
25
|
+
},
|
|
26
|
+
"content": {
|
|
27
|
+
"url": {
|
|
28
|
+
"dev": "https://content-content-api.dev.stackspot.com",
|
|
29
|
+
"stg": "https://content-content-api.stg.stackspot.com",
|
|
30
|
+
"prd": "https://content-api.v1.stackspot.com"
|
|
31
|
+
},
|
|
32
|
+
"docs": "/v3/api-docs"
|
|
33
|
+
},
|
|
34
|
+
"serviceCatalog": {
|
|
35
|
+
"url": {
|
|
36
|
+
"dev": "https://catalog-tech-products-catalog-api.dev.stackspot.com",
|
|
37
|
+
"stg": "https://catalog-tech-products-catalog-api.stg.stackspot.com",
|
|
38
|
+
"prd": "https://catalog-api.v1.stackspot.com"
|
|
39
|
+
},
|
|
40
|
+
"docs": "/v3/api-docs"
|
|
41
|
+
},
|
|
42
|
+
"apiRuntime": {
|
|
43
|
+
"url": {
|
|
44
|
+
"dev": "https://runtime-manager.dev.stackspot.com",
|
|
45
|
+
"stg": "https://runtime-manager.stg.stackspot.com",
|
|
46
|
+
"prd": "https://runtime-engine.v1.stackspot.com"
|
|
47
|
+
},
|
|
48
|
+
"docs": "/v3/api-docs"
|
|
49
|
+
},
|
|
50
|
+
"cloudServices": {
|
|
51
|
+
"url": {
|
|
52
|
+
"dev": "https://cloud-services-cloud-services-api.dev.stackspot.com",
|
|
53
|
+
"stg": "https://cloud-services-cloud-services-api.stg.stackspot.com",
|
|
54
|
+
"prd": "https://cloud-services-api.stackspot.com"
|
|
55
|
+
},
|
|
56
|
+
"docs": "/v3/api-docs"
|
|
57
|
+
},
|
|
58
|
+
"cloudAccount": {
|
|
59
|
+
"url": {
|
|
60
|
+
"dev": "https://account-account-external-connections-api.dev.stackspot.com",
|
|
61
|
+
"stg": "https://account-account-external-connections-api.stg.stackspot.com",
|
|
62
|
+
"prd": "https://account-external-connections-api.stackspot.com"
|
|
63
|
+
},
|
|
64
|
+
"docs": "/v3/api-docs"
|
|
65
|
+
},
|
|
66
|
+
"dataPlatform": {
|
|
67
|
+
"url": {
|
|
68
|
+
"dev": "https://data-platform-metabase.dev.stackspot.com",
|
|
69
|
+
"stg": "https://data-platform-metabase.stg.stackspot.com",
|
|
70
|
+
"prd": "https://data-platform-stackspot-public.stackspot.com"
|
|
71
|
+
},
|
|
72
|
+
"docs": "/v3/api-docs"
|
|
73
|
+
},
|
|
74
|
+
"insights": {
|
|
75
|
+
"url": {
|
|
76
|
+
"dev": "https://insights-insights-api.dev.stackspot.com",
|
|
77
|
+
"stg": "https://insights-insights-api.stg.stackspot.com",
|
|
78
|
+
"prd": "https://insights-api.stackspot.com"
|
|
79
|
+
},
|
|
80
|
+
"docs": "/v3/api-docs"
|
|
81
|
+
},
|
|
82
|
+
"workflows": {
|
|
83
|
+
"url": {
|
|
84
|
+
"dev": "https://workflow-workflow-api.dev.stackspot.com",
|
|
85
|
+
"stg": "https://workflow-workflow-api.stg.stackspot.com",
|
|
86
|
+
"prd": "https://workflow-api.v1.stackspot.com"
|
|
87
|
+
},
|
|
88
|
+
"docs": "/openapi.json"
|
|
89
|
+
},
|
|
90
|
+
"workspaceManager": {
|
|
91
|
+
"url": {
|
|
92
|
+
"dev": "https://workspace-workspace-manager.dev.stackspot.com",
|
|
93
|
+
"stg": "https://workspace-workspace-manager.stg.stackspot.com",
|
|
94
|
+
"prd": "https://workspace-manager.v1.stackspot.com"
|
|
95
|
+
},
|
|
96
|
+
"docs": "/v3/api-docs"
|
|
97
|
+
},
|
|
98
|
+
"workspaceSearchEngine": {
|
|
99
|
+
"url": {
|
|
100
|
+
"dev": "https://workspace-search-engine-api.dev.stackspot.com",
|
|
101
|
+
"stg": "https://workspace-search-engine-api.stg.stackspot.com",
|
|
102
|
+
"prd": "https://workspace-search-engine-api.stackspot.com"
|
|
103
|
+
},
|
|
104
|
+
"docs": "/v3/api-docs"
|
|
105
|
+
},
|
|
106
|
+
"permissionValidation": {
|
|
107
|
+
"url": {
|
|
108
|
+
"dev": "https://portal-portal-opa-server.dev.stackspot.com/v1/validate",
|
|
109
|
+
"stg": "https://portal-portal-opa-server.stg.stackspot.com/v1/validate",
|
|
110
|
+
"prd": "https://portal-opa-server.stackspot.com/v1/validate"
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
"apiManagement": {
|
|
114
|
+
"url": {
|
|
115
|
+
"dev": "https://api-management-apigw.dev.stackspot.com/api-management",
|
|
116
|
+
"stg": "https://api-management-apigw.stg.stackspot.com/api-management",
|
|
117
|
+
"prd": "https://api-management-apigw.stackspot.com/api-management"
|
|
118
|
+
},
|
|
119
|
+
"docs": "/v3/api-docs"
|
|
120
|
+
},
|
|
121
|
+
"secrets": {
|
|
122
|
+
"url": {
|
|
123
|
+
"dev": "https://workspace-workspace-secrets-api.dev.stackspot.com",
|
|
124
|
+
"stg": "https://workspace-workspace-secrets-api.stg.stackspot.com",
|
|
125
|
+
"prd": "https://workspace-workspace-secrets-api.stg.stackspot.com"
|
|
126
|
+
},
|
|
127
|
+
"docs": "/v3/api-docs"
|
|
128
|
+
}
|
|
129
|
+
}
|
|
@@ -0,0 +1,449 @@
|
|
|
1
|
+
import { HttpError } from '@oazapfts/runtime';
|
|
2
|
+
import { StackspotAPIError } from '../error/StackspotAPIError.js';
|
|
3
|
+
import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient.js';
|
|
4
|
+
declare class AccountClient extends ReactQueryNetworkClient {
|
|
5
|
+
constructor();
|
|
6
|
+
protected buildStackSpotError(error: HttpError): StackspotAPIError;
|
|
7
|
+
/**
|
|
8
|
+
* Gets credentials from personal service client (create if not exists one to the logged user).
|
|
9
|
+
*/
|
|
10
|
+
generatePersonalClientCredentials: import("../network/types.js").MutationObject<void, import("../api/account.js").PersonalClientCredentialsResponse>;
|
|
11
|
+
/**
|
|
12
|
+
* Creates a Feature Flag
|
|
13
|
+
*/
|
|
14
|
+
createFeatureFlag: import("../network/types.js").MutationObject<{
|
|
15
|
+
createFeatureFlagRequest: import("../api/account.js").CreateFeatureFlagRequest;
|
|
16
|
+
}, unknown>;
|
|
17
|
+
/**
|
|
18
|
+
* Returns information if account data (name and slug) are available to be registered
|
|
19
|
+
*/
|
|
20
|
+
isAvailable: import("../network/types.js").QueryObject<{
|
|
21
|
+
name: string;
|
|
22
|
+
slug: string;
|
|
23
|
+
}, import("../api/account.js").AccountDataAvailableResponse>;
|
|
24
|
+
/**
|
|
25
|
+
* Lists all Feature Flags in an Account
|
|
26
|
+
*/
|
|
27
|
+
featureFlags: import("../network/types.js").QueryObject<void, import("../api/account.js").FeatureFlagsResponse[]>;
|
|
28
|
+
/**
|
|
29
|
+
* Gets Partners with whom it is allowed to share content.
|
|
30
|
+
*/
|
|
31
|
+
partners: import("../network/types.js").QueryObject<{
|
|
32
|
+
name?: string | undefined;
|
|
33
|
+
}, import("../api/account.js").AccountPartnerResponse[]>;
|
|
34
|
+
/**
|
|
35
|
+
* Gets Partner by account Id
|
|
36
|
+
*/
|
|
37
|
+
partner: import("../network/types.js").QueryObject<{
|
|
38
|
+
id: string;
|
|
39
|
+
}, import("../api/account.js").AccountResponse>;
|
|
40
|
+
/**
|
|
41
|
+
* Creates an Account Order for Partner
|
|
42
|
+
*/
|
|
43
|
+
createPartner: import("../network/types.js").MutationObject<{
|
|
44
|
+
createAccountPartnerOrderRequest: import("../api/account.js").CreateAccountPartnerOrderRequest;
|
|
45
|
+
}, import("../api/account.js").IdResponse>;
|
|
46
|
+
/**
|
|
47
|
+
* Updates Partner Account data.
|
|
48
|
+
*/
|
|
49
|
+
updatePartner: import("../network/types.js").MutationObject<{
|
|
50
|
+
id: string;
|
|
51
|
+
accountPartnerAccountDataUpdateRequest: import("../api/account.js").AccountPartnerAccountDataUpdateRequest;
|
|
52
|
+
}, unknown>;
|
|
53
|
+
/**
|
|
54
|
+
* Updates Partner Account Admin data.
|
|
55
|
+
*/
|
|
56
|
+
updatePartnerAdmin: import("../network/types.js").MutationObject<{
|
|
57
|
+
id: string;
|
|
58
|
+
accountPartnerAdminDataUpdateRequest: import("../api/account.js").AccountPartnerAdminDataUpdateRequest;
|
|
59
|
+
}, unknown>;
|
|
60
|
+
/**
|
|
61
|
+
* Deletes Partner
|
|
62
|
+
*/
|
|
63
|
+
deactivatePartner: import("../network/types.js").MutationObject<{
|
|
64
|
+
id: string;
|
|
65
|
+
}, unknown>;
|
|
66
|
+
/**
|
|
67
|
+
* Validates new Partner account data
|
|
68
|
+
*/
|
|
69
|
+
validateNewPartnerData: import("../network/types.js").MutationObject<{
|
|
70
|
+
validateAccountPartnerDataRequest: import("../api/account.js").ValidateAccountPartnerDataRequest;
|
|
71
|
+
}, unknown>;
|
|
72
|
+
/**
|
|
73
|
+
* Validates the association limit for the partner. Yields `{ isValid: true }` if valid or `{ isValid: false, message: string }`
|
|
74
|
+
* otherwise.
|
|
75
|
+
*/
|
|
76
|
+
validatePartnerAssociationLimit: Omit<import("../network/types.js").QueryObject<void, {
|
|
77
|
+
isValid: boolean;
|
|
78
|
+
message: string;
|
|
79
|
+
}>, "isAllowed" | "useAllowed" | "getPermissionKey">;
|
|
80
|
+
/**
|
|
81
|
+
* Gets member by id.
|
|
82
|
+
*/
|
|
83
|
+
member: import("../network/types.js").QueryObject<{
|
|
84
|
+
memberId: string;
|
|
85
|
+
}, import("../api/account.js").AccountMemberStackspotIamDto>;
|
|
86
|
+
/**
|
|
87
|
+
* Gets all members (paginated).
|
|
88
|
+
*/
|
|
89
|
+
allMembers: import("../network/types.js").InfiniteQueryObject<{
|
|
90
|
+
size?: any;
|
|
91
|
+
page?: any;
|
|
92
|
+
sort?: string | undefined;
|
|
93
|
+
direction?: "ASC" | "DESC" | undefined;
|
|
94
|
+
search?: string | undefined;
|
|
95
|
+
filterMode?: "MATCH" | "CONTAINS" | undefined;
|
|
96
|
+
filterBy?: string | undefined;
|
|
97
|
+
filterValue?: string | undefined;
|
|
98
|
+
multiFilterMode?: string | undefined;
|
|
99
|
+
filterIn?: any;
|
|
100
|
+
}, import("../api/account.js").AccountMemberResponse[], "">;
|
|
101
|
+
/**
|
|
102
|
+
* Gets member Groups (paginated).
|
|
103
|
+
*/
|
|
104
|
+
memberGroups: import("../network/types.js").InfiniteQueryObject<{
|
|
105
|
+
memberId: string;
|
|
106
|
+
size?: any;
|
|
107
|
+
page?: any;
|
|
108
|
+
sort?: string | undefined;
|
|
109
|
+
direction?: "ASC" | "DESC" | undefined;
|
|
110
|
+
search?: string | undefined;
|
|
111
|
+
filterMode?: "MATCH" | "CONTAINS" | undefined;
|
|
112
|
+
filterBy?: string | undefined;
|
|
113
|
+
filterValue?: string | undefined;
|
|
114
|
+
multiFilterMode?: string | undefined;
|
|
115
|
+
filterIn?: any;
|
|
116
|
+
}, import("../api/account.js").GroupReadResponse[], "">;
|
|
117
|
+
/**
|
|
118
|
+
* Gets member roles (paginated).
|
|
119
|
+
*/
|
|
120
|
+
memberRoles: import("../network/types.js").InfiniteQueryObject<{
|
|
121
|
+
memberId: string;
|
|
122
|
+
size?: any;
|
|
123
|
+
page?: any;
|
|
124
|
+
sort?: string | undefined;
|
|
125
|
+
direction?: "ASC" | "DESC" | undefined;
|
|
126
|
+
search?: string | undefined;
|
|
127
|
+
filterMode?: "MATCH" | "CONTAINS" | undefined;
|
|
128
|
+
filterBy?: string | undefined;
|
|
129
|
+
filterValue?: string | undefined;
|
|
130
|
+
multiFilterMode?: string | undefined;
|
|
131
|
+
filterIn?: any;
|
|
132
|
+
}, import("../api/account.js").ReadMemberRoleResponse[], "">;
|
|
133
|
+
/**
|
|
134
|
+
* Gets member resources.
|
|
135
|
+
*/
|
|
136
|
+
memberResources: import("../network/types.js").QueryObject<{
|
|
137
|
+
memberId: string;
|
|
138
|
+
}, import("../api/account.js").ResourceDto[]>;
|
|
139
|
+
/**
|
|
140
|
+
* Gets All Fido credentials for the given member (paginated).
|
|
141
|
+
*/
|
|
142
|
+
fidoCredentials: import("../network/types.js").InfiniteQueryObject<{
|
|
143
|
+
memberId: string;
|
|
144
|
+
size?: any;
|
|
145
|
+
page?: any;
|
|
146
|
+
sort?: string | undefined;
|
|
147
|
+
direction?: "ASC" | "DESC" | undefined;
|
|
148
|
+
search?: string | undefined;
|
|
149
|
+
filterMode?: "MATCH" | "CONTAINS" | undefined;
|
|
150
|
+
filterBy?: string | undefined;
|
|
151
|
+
filterValue?: string | undefined;
|
|
152
|
+
multiFilterMode?: string | undefined;
|
|
153
|
+
filterIn?: any;
|
|
154
|
+
}, import("../api/account.js").MemberCredentialsListResponse, "items">;
|
|
155
|
+
/**
|
|
156
|
+
* Creates member on current tenant.
|
|
157
|
+
*/
|
|
158
|
+
createMember: import("../network/types.js").MutationObject<{
|
|
159
|
+
createUserRequest: import("../api/account.js").CreateUserRequest;
|
|
160
|
+
}, import("../api/account.js").CreateUserResponse>;
|
|
161
|
+
/**
|
|
162
|
+
* Updates member on current tenant.
|
|
163
|
+
*/
|
|
164
|
+
updateMember: import("../network/types.js").MutationObject<{
|
|
165
|
+
memberId: string;
|
|
166
|
+
updateUserRequest: import("../api/account.js").UpdateUserRequest;
|
|
167
|
+
}, import("../api/account.js").UpdateUserResponse>;
|
|
168
|
+
/**
|
|
169
|
+
* Adds a member to several groups.
|
|
170
|
+
*/
|
|
171
|
+
addMemberToGroups: import("../network/types.js").MutationObject<{
|
|
172
|
+
memberId: string;
|
|
173
|
+
memberIdsCommonRequest: import("../api/account.js").MemberIdsCommonRequest;
|
|
174
|
+
}, unknown>;
|
|
175
|
+
/**
|
|
176
|
+
* Attributes several roles to a member.
|
|
177
|
+
*/
|
|
178
|
+
addRolesToMember: import("../network/types.js").MutationObject<{
|
|
179
|
+
memberId: string;
|
|
180
|
+
memberIdsCommonRequest: import("../api/account.js").MemberIdsCommonRequest;
|
|
181
|
+
}, unknown>;
|
|
182
|
+
/**
|
|
183
|
+
* Removes a role from a member.
|
|
184
|
+
*/
|
|
185
|
+
removeRoleFromMember: import("../network/types.js").MutationObject<{
|
|
186
|
+
roleId: string;
|
|
187
|
+
memberId: string;
|
|
188
|
+
}, unknown>;
|
|
189
|
+
/**
|
|
190
|
+
* Sends an e-mail to reset the password of the member with the provided e-mail address.
|
|
191
|
+
*/
|
|
192
|
+
resetMemberPassword: import("../network/types.js").MutationObject<{
|
|
193
|
+
memberEmailRequest: import("../api/account.js").MemberEmailRequest;
|
|
194
|
+
}, unknown>;
|
|
195
|
+
/**
|
|
196
|
+
* Enables Fido credentials for the given member.
|
|
197
|
+
*/
|
|
198
|
+
enableFidoCredentials: import("../network/types.js").MutationObject<{
|
|
199
|
+
memberId: string;
|
|
200
|
+
}, unknown>;
|
|
201
|
+
/**
|
|
202
|
+
* Disables Fido credentials for the given member.
|
|
203
|
+
*/
|
|
204
|
+
disableFidoCredentials: import("../network/types.js").MutationObject<{
|
|
205
|
+
memberId: string;
|
|
206
|
+
}, unknown>;
|
|
207
|
+
/**
|
|
208
|
+
* Gets group by id.
|
|
209
|
+
*/
|
|
210
|
+
group: import("../network/types.js").QueryObject<{
|
|
211
|
+
groupId: string;
|
|
212
|
+
}, import("../api/account.js").GroupReadDetailResponse>;
|
|
213
|
+
/**
|
|
214
|
+
* Get all groups (paginated).
|
|
215
|
+
*/
|
|
216
|
+
allGroups: import("../network/types.js").InfiniteQueryObject<{
|
|
217
|
+
size?: any;
|
|
218
|
+
page?: any;
|
|
219
|
+
sort?: string | undefined;
|
|
220
|
+
direction?: "ASC" | "DESC" | undefined;
|
|
221
|
+
search?: string | undefined;
|
|
222
|
+
filterMode?: "MATCH" | "CONTAINS" | undefined;
|
|
223
|
+
filterBy?: string | undefined;
|
|
224
|
+
filterValue?: string | undefined;
|
|
225
|
+
multiFilterMode?: string | undefined;
|
|
226
|
+
filterIn?: any;
|
|
227
|
+
}, import("../api/account.js").GroupReadResponse[], "">;
|
|
228
|
+
/**
|
|
229
|
+
* Creates a group.
|
|
230
|
+
*/
|
|
231
|
+
createGroup: import("../network/types.js").MutationObject<{
|
|
232
|
+
newGroupRequest: import("../api/account.js").NewGroupRequest;
|
|
233
|
+
}, import("../api/account.js").IamIdResponse>;
|
|
234
|
+
/**
|
|
235
|
+
* Updates a group.
|
|
236
|
+
*/
|
|
237
|
+
updateGroup: import("../network/types.js").MutationObject<{
|
|
238
|
+
groupId: string;
|
|
239
|
+
updateGroupRequest: import("../api/account.js").UpdateGroupRequest;
|
|
240
|
+
}, import("../api/account.js").IamIdResponse>;
|
|
241
|
+
/**
|
|
242
|
+
* Deletes a group.
|
|
243
|
+
*/
|
|
244
|
+
deleteGroup: import("../network/types.js").MutationObject<{
|
|
245
|
+
groupId: string;
|
|
246
|
+
}, unknown>;
|
|
247
|
+
/**
|
|
248
|
+
* Gets all members in a group (paginated).
|
|
249
|
+
*/
|
|
250
|
+
groupMembers: import("../network/types.js").InfiniteQueryObject<{
|
|
251
|
+
groupId: string;
|
|
252
|
+
size?: any;
|
|
253
|
+
page?: any;
|
|
254
|
+
sort?: string | undefined;
|
|
255
|
+
direction?: "ASC" | "DESC" | undefined;
|
|
256
|
+
search?: string | undefined;
|
|
257
|
+
filterMode?: "MATCH" | "CONTAINS" | undefined;
|
|
258
|
+
filterBy?: string | undefined;
|
|
259
|
+
filterValue?: string | undefined;
|
|
260
|
+
multiFilterMode?: string | undefined;
|
|
261
|
+
filterIn?: any;
|
|
262
|
+
}, import("../api/account.js").ReadGroupMembersResponse[], "">;
|
|
263
|
+
/**
|
|
264
|
+
* Adds several members to a group
|
|
265
|
+
*/
|
|
266
|
+
addMembersToGroup: import("../network/types.js").MutationObject<{
|
|
267
|
+
groupId: string;
|
|
268
|
+
groupMemberIdsRequest: import("../api/account.js").GroupMemberIdsRequest;
|
|
269
|
+
}, unknown>;
|
|
270
|
+
/**
|
|
271
|
+
* Removes a member from a group
|
|
272
|
+
*/
|
|
273
|
+
removeMemberFromGroup: import("../network/types.js").MutationObject<{
|
|
274
|
+
groupId: string;
|
|
275
|
+
memberId: string;
|
|
276
|
+
}, unknown>;
|
|
277
|
+
/**
|
|
278
|
+
* Gets all roles of a group.
|
|
279
|
+
*/
|
|
280
|
+
groupRoles: import("../network/types.js").InfiniteQueryObject<{
|
|
281
|
+
groupId: string;
|
|
282
|
+
size?: any;
|
|
283
|
+
page?: any;
|
|
284
|
+
sort?: string | undefined;
|
|
285
|
+
direction?: "ASC" | "DESC" | undefined;
|
|
286
|
+
search?: string | undefined;
|
|
287
|
+
filterMode?: "MATCH" | "CONTAINS" | undefined;
|
|
288
|
+
filterBy?: string | undefined;
|
|
289
|
+
filterValue?: string | undefined;
|
|
290
|
+
multiFilterMode?: string | undefined;
|
|
291
|
+
filterIn?: any;
|
|
292
|
+
}, import("../api/account.js").RoleResponse[], "">;
|
|
293
|
+
/**
|
|
294
|
+
* Adds several roles to a group.
|
|
295
|
+
*/
|
|
296
|
+
addRolesToGroup: import("../network/types.js").MutationObject<{
|
|
297
|
+
groupId: string;
|
|
298
|
+
groupRoleIdsRequest: import("../api/account.js").GroupRoleIdsRequest;
|
|
299
|
+
}, unknown>;
|
|
300
|
+
/**
|
|
301
|
+
* Removes a role from a group.
|
|
302
|
+
*/
|
|
303
|
+
removeRoleFromGroup: import("../network/types.js").MutationObject<{
|
|
304
|
+
groupId: string;
|
|
305
|
+
roleId: string;
|
|
306
|
+
}, unknown>;
|
|
307
|
+
/**
|
|
308
|
+
* Gets all resources of a group (paginated).
|
|
309
|
+
*/
|
|
310
|
+
groupResources: import("../network/types.js").InfiniteQueryObject<{
|
|
311
|
+
groupId: string;
|
|
312
|
+
size?: any;
|
|
313
|
+
page?: any;
|
|
314
|
+
sort?: string | undefined;
|
|
315
|
+
direction?: "ASC" | "DESC" | undefined;
|
|
316
|
+
search?: string | undefined;
|
|
317
|
+
filterMode?: "MATCH" | "CONTAINS" | undefined;
|
|
318
|
+
filterBy?: string | undefined;
|
|
319
|
+
filterValue?: string | undefined;
|
|
320
|
+
multiFilterMode?: string | undefined;
|
|
321
|
+
filterIn?: any;
|
|
322
|
+
}, import("../api/account.js").ResourceResponse[], "">;
|
|
323
|
+
/**
|
|
324
|
+
* Adds several resources to a group.
|
|
325
|
+
*/
|
|
326
|
+
addResourcesToGroup: import("../network/types.js").MutationObject<{
|
|
327
|
+
groupId: string;
|
|
328
|
+
addResourcesToGroupRequest: import("../api/account.js").AddResourcesToGroupRequest;
|
|
329
|
+
}, unknown>;
|
|
330
|
+
/**
|
|
331
|
+
* Removes a resource from a group.
|
|
332
|
+
*/
|
|
333
|
+
removeResourceFromGroup: import("../network/types.js").MutationObject<{
|
|
334
|
+
groupId: string;
|
|
335
|
+
resourceId: string;
|
|
336
|
+
}, unknown>;
|
|
337
|
+
/**
|
|
338
|
+
* Gets all roles in the account (paginated)
|
|
339
|
+
*/
|
|
340
|
+
allRoles: import("../network/types.js").InfiniteQueryObject<{
|
|
341
|
+
size?: any;
|
|
342
|
+
page?: any;
|
|
343
|
+
sort?: string | undefined;
|
|
344
|
+
direction?: "ASC" | "DESC" | undefined;
|
|
345
|
+
search?: string | undefined;
|
|
346
|
+
filterMode?: "MATCH" | "CONTAINS" | undefined;
|
|
347
|
+
filterBy?: string | undefined;
|
|
348
|
+
filterValue?: string | undefined;
|
|
349
|
+
multiFilterMode?: string | undefined;
|
|
350
|
+
filterIn?: any;
|
|
351
|
+
}, import("../api/account.js").RoleResponse[], "">;
|
|
352
|
+
/**
|
|
353
|
+
* Get a role by id
|
|
354
|
+
*/
|
|
355
|
+
role: Omit<import("../network/types.js").QueryObject<{
|
|
356
|
+
id: string;
|
|
357
|
+
}, import("../api/account.js").RoleResponse>, "isAllowed" | "useAllowed" | "getPermissionKey">;
|
|
358
|
+
/**
|
|
359
|
+
* Gets all members with the provided role (paginated)
|
|
360
|
+
*/
|
|
361
|
+
roleMembers: import("../network/types.js").InfiniteQueryObject<{
|
|
362
|
+
roleId: string;
|
|
363
|
+
size?: any;
|
|
364
|
+
page?: any;
|
|
365
|
+
sort?: string | undefined;
|
|
366
|
+
direction?: "ASC" | "DESC" | undefined;
|
|
367
|
+
search?: string | undefined;
|
|
368
|
+
filterMode?: "MATCH" | "CONTAINS" | undefined;
|
|
369
|
+
filterBy?: string | undefined;
|
|
370
|
+
filterValue?: string | undefined;
|
|
371
|
+
multiFilterMode?: string | undefined;
|
|
372
|
+
filterIn?: any;
|
|
373
|
+
}, import("../api/account.js").RoleMemberResponse[], "">;
|
|
374
|
+
/**
|
|
375
|
+
* Creates a role
|
|
376
|
+
*/
|
|
377
|
+
createRole: import("../network/types.js").MutationObject<{
|
|
378
|
+
createAccountRoleRequest: import("../api/account.js").CreateAccountRoleRequest;
|
|
379
|
+
}, import("../api/account.js").IdResponse>;
|
|
380
|
+
/**
|
|
381
|
+
* Updates a role
|
|
382
|
+
*/
|
|
383
|
+
updateRole: import("../network/types.js").MutationObject<{
|
|
384
|
+
roleId: string;
|
|
385
|
+
updateAccountRoleRequest: import("../api/account.js").UpdateAccountRoleRequest;
|
|
386
|
+
}, unknown>;
|
|
387
|
+
/**
|
|
388
|
+
* Deletes a role
|
|
389
|
+
*/
|
|
390
|
+
deleteRole: import("../network/types.js").MutationObject<{
|
|
391
|
+
roleId: string;
|
|
392
|
+
}, unknown>;
|
|
393
|
+
/**
|
|
394
|
+
* Adds a role to several members
|
|
395
|
+
*/
|
|
396
|
+
addRoleToMembers: import("../network/types.js").MutationObject<{
|
|
397
|
+
roleId: string;
|
|
398
|
+
addRoleToMemberRequest: import("../api/account.js").AddRoleToMemberRequest;
|
|
399
|
+
}, import("../api/account.js").AddUsersToRoleResponse>;
|
|
400
|
+
/**
|
|
401
|
+
* Gets all groups with the provided role (paginated)
|
|
402
|
+
*/
|
|
403
|
+
roleGroups: import("../network/types.js").InfiniteQueryObject<{
|
|
404
|
+
roleId: string;
|
|
405
|
+
size?: any;
|
|
406
|
+
page?: any;
|
|
407
|
+
sort?: string | undefined;
|
|
408
|
+
direction?: "ASC" | "DESC" | undefined;
|
|
409
|
+
search?: string | undefined;
|
|
410
|
+
filterMode?: "MATCH" | "CONTAINS" | undefined;
|
|
411
|
+
filterBy?: string | undefined;
|
|
412
|
+
filterValue?: string | undefined;
|
|
413
|
+
multiFilterMode?: string | undefined;
|
|
414
|
+
filterIn?: any;
|
|
415
|
+
}, import("../api/account.js").RoleGroupResponse[], "">;
|
|
416
|
+
/**
|
|
417
|
+
* Adds a role to several groups
|
|
418
|
+
*/
|
|
419
|
+
addRoleToGroups: import("../network/types.js").MutationObject<{
|
|
420
|
+
roleId: string;
|
|
421
|
+
roleGroupIdsRequest: import("../api/account.js").RoleGroupIdsRequest;
|
|
422
|
+
}, unknown>;
|
|
423
|
+
/**
|
|
424
|
+
* Get the actions a role is allowed to perform
|
|
425
|
+
*/
|
|
426
|
+
rolePermissions: import("../network/types.js").InfiniteQueryObject<{
|
|
427
|
+
roleId: string;
|
|
428
|
+
size?: any;
|
|
429
|
+
page?: any;
|
|
430
|
+
sort?: string | undefined;
|
|
431
|
+
direction?: "ASC" | "DESC" | undefined;
|
|
432
|
+
search?: string | undefined;
|
|
433
|
+
filterMode?: "MATCH" | "CONTAINS" | undefined;
|
|
434
|
+
filterBy?: string | undefined;
|
|
435
|
+
filterValue?: string | undefined;
|
|
436
|
+
multiFilterMode?: string | undefined;
|
|
437
|
+
filterIn?: any;
|
|
438
|
+
}, import("../api/account.js").IamResourceType[], "">;
|
|
439
|
+
/**
|
|
440
|
+
* Updates a role with new actions
|
|
441
|
+
*/
|
|
442
|
+
updateRolePermissions: import("../network/types.js").MutationObject<{
|
|
443
|
+
roleId: string;
|
|
444
|
+
body: import("../api/account.js").IamCreateStatementRequest[];
|
|
445
|
+
}, unknown>;
|
|
446
|
+
}
|
|
447
|
+
export declare const accountClient: AccountClient;
|
|
448
|
+
export {};
|
|
449
|
+
//# sourceMappingURL=account.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../src/client/account.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAuC7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAA;AAE5E,cAAM,aAAc,SAAQ,uBAAuB;;IAKjD,SAAS,CAAC,mBAAmB,CAAC,KAAK,EAAE,SAAS,GAAG,iBAAiB;IAIlE;;OAEG;IACH,iCAAiC,8GAA8C;IAC/E;;OAEG;IACH,iBAAiB;;gBAAwB;IACzC;;OAEG;IACH,WAAW;;;8DAAqC;IAChD;;OAEG;IACH,YAAY,gGAA0B;IACtC;;OAEG;IACH,QAAQ;;0DAAwC;IAChD;;OAEG;IACH,OAAO;;iDAAgC;IACvC;;OAEG;IACH,aAAa;;4CAA+B;IAC5C;;OAEG;IACH,aAAa;;;gBAA0C;IACvD;;OAEG;IACH,kBAAkB;;;gBAA+C;IACjE;;OAEG;IACH,iBAAiB;;gBAA+B;IAChD;;OAEG;IACH,sBAAsB;;gBAAwC;IAC9D;;;OAGG;IACH,+BAA+B;;;yDAc7B;IACF;;OAEG;IACH,MAAM;;8DAA4B;IAClC;;OAEG;IACH,UAAU;;;;;;;;;;;6DAAyC;IACnD;;OAEG;IACH,YAAY;;;;;;;;;;;;yDAAsC;IAClD;;OAEG;IACH,WAAW;;;;;;;;;;;;8DAAgC;IAC3C;;OAEG;IACH,eAAe;;+CAA4B;IAC3C;;OAEG;IACH,eAAe;;;;;;;;;;;;wEAA4E;IAC3F;;OAEG;IACH,YAAY;;oDAA4B;IACxC;;OAEG;IACH,YAAY;;;oDAA4B;IACxC;;OAEG;IACH,iBAAiB;;;gBAA8B;IAC/C;;OAEG;IACH,gBAAgB;;;gBAA6B;IAC7C;;OAEG;IACH,oBAAoB;;;gBAAsC;IAC1D;;OAEG;IACH,mBAAmB;;gBAA+B;IAClD;;OAEG;IACH,qBAAqB;;gBAAuC;IAC5D;;OAEG;IACH,sBAAsB;;gBAA2C;IACjE;;OAEG;IACH,KAAK;;yDAA2B;IAChC;;OAEG;IACH,SAAS;;;;;;;;;;;yDAAgC;IACzC;;OAEG;IACH,WAAW;;+CAAsB;IACjC;;OAEG;IACH,WAAW;;;+CAAyB;IACpC;;OAEG;IACH,WAAW;;gBAAyC;IACpD;;OAEG;IACH,YAAY;;;;;;;;;;;;gEAAiC;IAC7C;;OAEG;IACH,iBAAiB;;;gBAAkC;IACnD;;OAEG;IACH,qBAAqB;;;gBAA8B;IACnD;;OAEG;IACH,UAAU;;;;;;;;;;;;oDAAgC;IAC1C;;OAEG;IACH,eAAe;;;gBAA2B;IAC1C;;OAEG;IACH,mBAAmB;;;gBAA4B;IAC/C;;OAEG;IACH,cAAc;;;;;;;;;;;;wDAAwC;IACtD;;OAEG;IACH,mBAAmB;;;gBAAqC;IACxD;;OAEG;IACH,uBAAuB;;;gBAAyC;IAChE;;OAEG;IACH,QAAQ;;;;;;;;;;;oDAA+B;IACvC;;OAEG;IACH,IAAI;YAEoC,MAAM;gGAK5C;IACF;;OAEG;IACH,WAAW;;;;;;;;;;;;0DAAqC;IAChD;;OAEG;IACH,UAAU;;4CAAmC;IAC7C;;OAEG;IACH,UAAU;;;gBAAmC;IAC7C;;OAEG;IACH,UAAU;;gBAAmC;IAC7C;;OAEG;IACH,gBAAgB;;;wDAAiC;IACjD;;OAEG;IACH,UAAU;;;;;;;;;;;;yDAAoC;IAC9C;;OAEG;IACH,eAAe;;;gBAAgC;IAC/C;;OAEG;IACH,eAAe;;;;;;;;;;;;uDAAuD;IACtE;;OAEG;IACH,qBAAqB;;;gBAA0C;CAChE;AAED,eAAO,MAAM,aAAa,eAAsB,CAAA"}
|