@stack-spot/portal-network 1.0.0-betaadp.3 → 1.0.0-dev.1768423147036
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 +633 -0
- package/dist/api/account.d.ts +413 -277
- package/dist/api/account.d.ts.map +1 -1
- package/dist/api/account.js +261 -176
- package/dist/api/account.js.map +1 -1
- package/dist/api/accountAssetManager.d.ts +309 -0
- package/dist/api/accountAssetManager.d.ts.map +1 -0
- package/dist/api/accountAssetManager.js +169 -0
- package/dist/api/accountAssetManager.js.map +1 -0
- package/dist/api/agent-tools.d.ts +818 -261
- package/dist/api/agent-tools.d.ts.map +1 -1
- package/dist/api/agent-tools.js +245 -50
- package/dist/api/agent-tools.js.map +1 -1
- package/dist/api/agent.d.ts +55 -55
- package/dist/api/agent.d.ts.map +1 -1
- package/dist/api/ai.d.ts +488 -98
- package/dist/api/ai.d.ts.map +1 -1
- package/dist/api/ai.js +426 -146
- package/dist/api/ai.js.map +1 -1
- package/dist/api/cloudPlatform.d.ts +374 -221
- package/dist/api/cloudPlatform.d.ts.map +1 -1
- package/dist/api/cloudPlatform.js +299 -93
- package/dist/api/cloudPlatform.js.map +1 -1
- package/dist/api/cloudPlatformHorizon.d.ts +178 -9
- package/dist/api/cloudPlatformHorizon.d.ts.map +1 -1
- package/dist/api/cloudPlatformHorizon.js +69 -1
- package/dist/api/cloudPlatformHorizon.js.map +1 -1
- package/dist/api/codeShift.d.ts +1125 -83
- package/dist/api/codeShift.d.ts.map +1 -1
- package/dist/api/codeShift.js +538 -16
- package/dist/api/codeShift.js.map +1 -1
- package/dist/api/dataIntegration.d.ts +291 -1
- package/dist/api/dataIntegration.d.ts.map +1 -1
- package/dist/api/dataIntegration.js +254 -0
- package/dist/api/dataIntegration.js.map +1 -1
- package/dist/api/discover.d.ts +98 -12
- package/dist/api/discover.d.ts.map +1 -1
- package/dist/api/discover.js +78 -2
- package/dist/api/discover.js.map +1 -1
- package/dist/api/edpBfa.d.ts +215 -0
- package/dist/api/edpBfa.d.ts.map +1 -0
- package/dist/api/edpBfa.js +87 -0
- package/dist/api/edpBfa.js.map +1 -0
- package/dist/api/genAiInference.d.ts +22 -2
- package/dist/api/genAiInference.d.ts.map +1 -1
- package/dist/api/genAiInference.js +22 -3
- package/dist/api/genAiInference.js.map +1 -1
- package/dist/api/workflows.d.ts +68 -5
- package/dist/api/workflows.d.ts.map +1 -1
- package/dist/api/workflows.js +16 -0
- package/dist/api/workflows.js.map +1 -1
- package/dist/api/workspace-ai.d.ts +41 -0
- package/dist/api/workspace-ai.d.ts.map +1 -1
- package/dist/api/workspace-ai.js +34 -0
- package/dist/api/workspace-ai.js.map +1 -1
- package/dist/api/workspaceManager.d.ts +16 -10
- package/dist/api/workspaceManager.d.ts.map +1 -1
- package/dist/api/workspaceManager.js +10 -0
- package/dist/api/workspaceManager.js.map +1 -1
- package/dist/api-addresses.d.ts +20 -18
- package/dist/api-addresses.d.ts.map +1 -1
- package/dist/api-addresses.js +81 -21
- package/dist/api-addresses.js.map +1 -1
- package/dist/apis-itau.json +241 -0
- package/dist/apis.json +17 -1
- package/dist/client/account-asset-manager.d.ts +112 -0
- package/dist/client/account-asset-manager.d.ts.map +1 -0
- package/dist/client/account-asset-manager.js +160 -0
- package/dist/client/account-asset-manager.js.map +1 -0
- package/dist/client/account.d.ts +265 -242
- package/dist/client/account.d.ts.map +1 -1
- package/dist/client/account.js +80 -34
- package/dist/client/account.js.map +1 -1
- package/dist/client/agent-tools.d.ts +295 -121
- package/dist/client/agent-tools.d.ts.map +1 -1
- package/dist/client/agent-tools.js +166 -12
- package/dist/client/agent-tools.js.map +1 -1
- package/dist/client/agent.d.ts +46 -46
- package/dist/client/agent.d.ts.map +1 -1
- package/dist/client/ai.d.ts +265 -79
- package/dist/client/ai.d.ts.map +1 -1
- package/dist/client/ai.js +268 -24
- package/dist/client/ai.js.map +1 -1
- package/dist/client/api-management.d.ts +10 -1
- package/dist/client/api-management.d.ts.map +1 -1
- package/dist/client/api-management.js +11 -2
- package/dist/client/api-management.js.map +1 -1
- package/dist/client/cloud-account.d.ts +13 -13
- package/dist/client/cloud-platform-horizon.d.ts +38 -19
- package/dist/client/cloud-platform-horizon.d.ts.map +1 -1
- package/dist/client/cloud-platform-horizon.js +19 -1
- package/dist/client/cloud-platform-horizon.js.map +1 -1
- package/dist/client/cloud-platform.d.ts +213 -46
- package/dist/client/cloud-platform.d.ts.map +1 -1
- package/dist/client/cloud-platform.js +168 -33
- package/dist/client/cloud-platform.js.map +1 -1
- package/dist/client/cloud-runtimes.d.ts +4 -4
- package/dist/client/cloud-services.d.ts +17 -17
- package/dist/client/cloud-services.d.ts.map +1 -1
- package/dist/client/code-shift.d.ts +535 -162
- package/dist/client/code-shift.d.ts.map +1 -1
- package/dist/client/code-shift.js +296 -7
- package/dist/client/code-shift.js.map +1 -1
- package/dist/client/content.d.ts +127 -132
- package/dist/client/content.d.ts.map +1 -1
- package/dist/client/data-integration.d.ts +92 -53
- package/dist/client/data-integration.d.ts.map +1 -1
- package/dist/client/data-integration.js +38 -2
- package/dist/client/data-integration.js.map +1 -1
- package/dist/client/discover.d.ts +31 -10
- package/dist/client/discover.d.ts.map +1 -1
- package/dist/client/discover.js +239 -3
- package/dist/client/discover.js.map +1 -1
- package/dist/client/edp-bfa.d.ts +16 -0
- package/dist/client/edp-bfa.d.ts.map +1 -0
- package/dist/client/edp-bfa.js +24 -0
- package/dist/client/edp-bfa.js.map +1 -0
- package/dist/client/event-bus.d.ts.map +1 -1
- package/dist/client/gen-ai-inference.d.ts +20 -20
- package/dist/client/insights.d.ts +7 -7
- package/dist/client/notification.d.ts +17 -10
- package/dist/client/notification.d.ts.map +1 -1
- package/dist/client/notification.js +10 -1
- package/dist/client/notification.js.map +1 -1
- package/dist/client/runtime-manager.d.ts +8 -8
- package/dist/client/secrets.d.ts.map +1 -1
- package/dist/client/secrets.js +1 -1
- package/dist/client/secrets.js.map +1 -1
- package/dist/client/types.d.ts +50 -7
- package/dist/client/types.d.ts.map +1 -1
- package/dist/client/workflow.d.ts +10 -10
- package/dist/client/workspace-ai.d.ts +65 -55
- package/dist/client/workspace-ai.d.ts.map +1 -1
- package/dist/client/workspace-ai.js +19 -9
- package/dist/client/workspace-ai.js.map +1 -1
- package/dist/client/workspace-manager.d.ts +115 -76
- package/dist/client/workspace-manager.d.ts.map +1 -1
- package/dist/client/workspace-manager.js +47 -2
- package/dist/client/workspace-manager.js.map +1 -1
- package/dist/client/workspace-search.d.ts +2 -2
- package/dist/client/workspace.d.ts +58 -105
- package/dist/client/workspace.d.ts.map +1 -1
- package/dist/error/DefaultAPIError.d.ts.map +1 -1
- package/dist/error/DefaultAPIError.js.map +1 -1
- package/dist/error/StackspotAPIError.d.ts +3 -4
- package/dist/error/StackspotAPIError.d.ts.map +1 -1
- package/dist/error/StackspotAPIError.js +3 -3
- package/dist/error/StackspotAPIError.js.map +1 -1
- package/dist/error/dictionary/accountAssetManager.d.ts +11 -0
- package/dist/error/dictionary/accountAssetManager.d.ts.map +1 -0
- package/dist/error/dictionary/accountAssetManager.js +11 -0
- package/dist/error/dictionary/accountAssetManager.js.map +1 -0
- package/dist/error/dictionary/cloud-platform.d.ts +76 -8
- package/dist/error/dictionary/cloud-platform.d.ts.map +1 -1
- package/dist/error/dictionary/cloud-platform.js +80 -12
- package/dist/error/dictionary/cloud-platform.js.map +1 -1
- package/dist/error/dictionary/workspace-ai.d.ts +9 -0
- package/dist/error/dictionary/workspace-ai.d.ts.map +1 -0
- package/dist/error/dictionary/workspace-ai.js +9 -0
- package/dist/error/dictionary/workspace-ai.js.map +1 -0
- package/dist/index.d.ts +5 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/network/NetworkClient.d.ts +4 -2
- package/dist/network/NetworkClient.d.ts.map +1 -1
- package/dist/network/NetworkClient.js +16 -4
- package/dist/network/NetworkClient.js.map +1 -1
- package/dist/network/types.d.ts +2 -0
- package/dist/network/types.d.ts.map +1 -1
- package/dist/utils/StreamedJson.d.ts +3 -1
- package/dist/utils/StreamedJson.d.ts.map +1 -1
- package/dist/utils/StreamedJson.js +23 -3
- package/dist/utils/StreamedJson.js.map +1 -1
- package/package.dev.json +3 -0
- package/package.json +10 -9
- package/package.stg.json +3 -0
- package/readme.md +40 -1
- package/src/api/account.ts +701 -540
- package/src/api/accountAssetManager.ts +771 -0
- package/src/api/agent-tools.ts +1354 -556
- package/src/api/ai.ts +891 -170
- package/src/api/cloudPlatform.ts +667 -298
- package/src/api/cloudPlatformHorizon.ts +412 -9
- package/src/api/codeShift.ts +2088 -97
- package/src/api/dataIntegration.ts +635 -1
- package/src/api/discover.ts +180 -14
- package/src/api/edpBfa.ts +472 -0
- package/src/api/genAiInference.ts +47 -4
- package/src/api/workflows.ts +100 -5
- package/src/api/workspace-ai.ts +83 -0
- package/src/api/workspaceManager.ts +25 -10
- package/src/api-addresses.ts +113 -38
- package/src/apis-itau.json +241 -0
- package/src/apis.json +17 -1
- package/src/client/account-asset-manager.ts +100 -0
- package/src/client/account.ts +71 -40
- package/src/client/agent-tools.ts +111 -18
- package/src/client/ai.ts +237 -24
- package/src/client/api-management.ts +7 -2
- package/src/client/cloud-platform-horizon.ts +12 -4
- package/src/client/cloud-platform.ts +101 -27
- package/src/client/code-shift.ts +196 -8
- package/src/client/data-integration.ts +28 -1
- package/src/client/discover.ts +238 -5
- package/src/client/edp-bfa.ts +24 -0
- package/src/client/notification.ts +6 -1
- package/src/client/secrets.ts +1 -1
- package/src/client/types.ts +55 -9
- package/src/client/workspace-ai.ts +37 -26
- package/src/client/workspace-manager.ts +31 -2
- package/src/error/DefaultAPIError.ts +5 -5
- package/src/error/StackspotAPIError.ts +4 -4
- package/src/error/dictionary/accountAssetManager.ts +12 -0
- package/src/error/dictionary/cloud-platform.ts +80 -12
- package/src/error/dictionary/workspace-ai.ts +10 -0
- package/src/index.ts +6 -3
- package/src/network/NetworkClient.ts +18 -6
- package/src/network/types.ts +3 -0
- package/src/utils/StreamedJson.tsx +19 -4
package/dist/api/account.js
CHANGED
|
@@ -115,7 +115,7 @@ export function deleteAccountAssociation({ featureFlagId, accountId }, opts) {
|
|
|
115
115
|
/**
|
|
116
116
|
* Retrieves a list of SCM credentials associated with the current user's account, including secret names and provider details.
|
|
117
117
|
*/
|
|
118
|
-
export function
|
|
118
|
+
export function listScmCredentials(opts) {
|
|
119
119
|
return oazapfts.ok(oazapfts.fetchJson("/v1/users/scm-credentials", {
|
|
120
120
|
...opts
|
|
121
121
|
}));
|
|
@@ -208,7 +208,7 @@ export function deleteScope({ scopeId }, opts) {
|
|
|
208
208
|
/**
|
|
209
209
|
* Retrieves a list of SCM credentials associated with the current user's account.
|
|
210
210
|
*/
|
|
211
|
-
export function
|
|
211
|
+
export function listScmCredentials1(opts) {
|
|
212
212
|
return oazapfts.ok(oazapfts.fetchJson("/v1/scm-credentials", {
|
|
213
213
|
...opts
|
|
214
214
|
}));
|
|
@@ -255,7 +255,7 @@ export function deleteAccountRole({ roleId }, opts) {
|
|
|
255
255
|
/**
|
|
256
256
|
* Retrieves a of resources and their associated actions with their status compared to a specified role.
|
|
257
257
|
*/
|
|
258
|
-
export function
|
|
258
|
+
export function getResourcesAndActionsWithStatus({ roleId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
|
|
259
259
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/roles/${encodeURIComponent(roleId)}/resources${QS.query(QS.explode({
|
|
260
260
|
size,
|
|
261
261
|
page,
|
|
@@ -320,13 +320,14 @@ export function updateUserPassword({ memberId, updatePasswordRequest }, opts) {
|
|
|
320
320
|
})));
|
|
321
321
|
}
|
|
322
322
|
/**
|
|
323
|
-
*
|
|
323
|
+
* Updates an account status based on the provided account ID.
|
|
324
324
|
*/
|
|
325
|
-
export function
|
|
326
|
-
return oazapfts.ok(oazapfts.fetchJson(`/v1/
|
|
325
|
+
export function updateAccountStatus({ accountId, accountStatusRequest }, opts) {
|
|
326
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/admin/accounts/${encodeURIComponent(accountId)}/status`, oazapfts.json({
|
|
327
327
|
...opts,
|
|
328
|
-
method: "PUT"
|
|
329
|
-
|
|
328
|
+
method: "PUT",
|
|
329
|
+
body: accountStatusRequest
|
|
330
|
+
})));
|
|
330
331
|
}
|
|
331
332
|
/**
|
|
332
333
|
* Updates the sales representatives associated with an active account.
|
|
@@ -341,7 +342,7 @@ export function updateSalesRepresentatives({ accountId, updateSalesRepresentativ
|
|
|
341
342
|
/**
|
|
342
343
|
* Enables an account by updating its status.
|
|
343
344
|
*/
|
|
344
|
-
export function
|
|
345
|
+
export function updateAccountStatus1({ accountId, accountStatusRequest }, opts) {
|
|
345
346
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/accounts/${encodeURIComponent(accountId)}/status`, oazapfts.json({
|
|
346
347
|
...opts,
|
|
347
348
|
method: "PUT",
|
|
@@ -443,6 +444,64 @@ export function createServiceCredential({ serviceCredentialCreateRequestV2 }, op
|
|
|
443
444
|
body: serviceCredentialCreateRequestV2
|
|
444
445
|
})));
|
|
445
446
|
}
|
|
447
|
+
/**
|
|
448
|
+
* Retrieves a list of resources.
|
|
449
|
+
*/
|
|
450
|
+
export function getResources({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
|
|
451
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v2/resources${QS.query(QS.explode({
|
|
452
|
+
size,
|
|
453
|
+
page,
|
|
454
|
+
sort,
|
|
455
|
+
direction,
|
|
456
|
+
search,
|
|
457
|
+
filterMode,
|
|
458
|
+
filterBy,
|
|
459
|
+
filterValue,
|
|
460
|
+
multiFilterMode,
|
|
461
|
+
filterIn
|
|
462
|
+
}))}`, {
|
|
463
|
+
...opts
|
|
464
|
+
}));
|
|
465
|
+
}
|
|
466
|
+
/**
|
|
467
|
+
* Creates a new resource for the account.
|
|
468
|
+
*/
|
|
469
|
+
export function createResource({ createResourceV2Request }, opts) {
|
|
470
|
+
return oazapfts.ok(oazapfts.fetchJson("/v2/resources", oazapfts.json({
|
|
471
|
+
...opts,
|
|
472
|
+
method: "POST",
|
|
473
|
+
body: createResourceV2Request
|
|
474
|
+
})));
|
|
475
|
+
}
|
|
476
|
+
/**
|
|
477
|
+
* Get Group Resources
|
|
478
|
+
*/
|
|
479
|
+
export function getGroupResources({ groupId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
|
|
480
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v2/groups/${encodeURIComponent(groupId)}/resources${QS.query(QS.explode({
|
|
481
|
+
size,
|
|
482
|
+
page,
|
|
483
|
+
sort,
|
|
484
|
+
direction,
|
|
485
|
+
search,
|
|
486
|
+
filterMode,
|
|
487
|
+
filterBy,
|
|
488
|
+
filterValue,
|
|
489
|
+
multiFilterMode,
|
|
490
|
+
filterIn
|
|
491
|
+
}))}`, {
|
|
492
|
+
...opts
|
|
493
|
+
}));
|
|
494
|
+
}
|
|
495
|
+
/**
|
|
496
|
+
* Add Multiple Resources to Group
|
|
497
|
+
*/
|
|
498
|
+
export function addResourcesToGroupBySlugAndType({ groupId, body }, opts) {
|
|
499
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v2/groups/${encodeURIComponent(groupId)}/resources`, oazapfts.json({
|
|
500
|
+
...opts,
|
|
501
|
+
method: "POST",
|
|
502
|
+
body
|
|
503
|
+
})));
|
|
504
|
+
}
|
|
446
505
|
/**
|
|
447
506
|
* Returns a paged list of Feature Flags associated with the current user's account.
|
|
448
507
|
*/
|
|
@@ -456,7 +515,7 @@ export function getFeatures({ featureFlagPageRequest }, opts) {
|
|
|
456
515
|
/**
|
|
457
516
|
* Returns a list of Feature Flags associated with the current user's account.
|
|
458
517
|
*/
|
|
459
|
-
export function
|
|
518
|
+
export function getFeatures1(opts) {
|
|
460
519
|
return oazapfts.ok(oazapfts.fetchJson("/v2/admin/feature-flags", {
|
|
461
520
|
...opts
|
|
462
521
|
}));
|
|
@@ -474,7 +533,7 @@ export function create({ createFeatureFlagRequest }, opts) {
|
|
|
474
533
|
/**
|
|
475
534
|
* Returns a paged list of Feature Flags associated with the current user's account.
|
|
476
535
|
*/
|
|
477
|
-
export function
|
|
536
|
+
export function getFeatures2({ accountId, featureFlagPageRequest }, opts) {
|
|
478
537
|
return oazapfts.ok(oazapfts.fetchJson(`/v2/admin/feature-flags/account/${encodeURIComponent(accountId)}`, oazapfts.json({
|
|
479
538
|
...opts,
|
|
480
539
|
method: "POST",
|
|
@@ -546,7 +605,7 @@ export function notifyServiceCredentialExpiration({ serviceCredentialExpirationR
|
|
|
546
605
|
/**
|
|
547
606
|
* Find secrets with multiple filters and conditions
|
|
548
607
|
*/
|
|
549
|
-
export function
|
|
608
|
+
export function findSecrets({ size, page, sort, direction, search, filterByScope, filterByType, filterByScopedBy, filterByScopedValue, authorizedOnly }, opts) {
|
|
550
609
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/secrets${QS.query(QS.explode({
|
|
551
610
|
size,
|
|
552
611
|
page,
|
|
@@ -575,8 +634,8 @@ export function createSecret({ createSecretRequest }, opts) {
|
|
|
575
634
|
/**
|
|
576
635
|
* Associate a secret with a resource
|
|
577
636
|
*/
|
|
578
|
-
export function associateResource({ secretId, resourceSlug }, opts) {
|
|
579
|
-
return oazapfts.ok(oazapfts.fetchText(`/v1/secrets/${encodeURIComponent(secretId)}/associations/${encodeURIComponent(resourceSlug)}`, {
|
|
637
|
+
export function associateResource({ secretId, resourceSlug, resourceTypeSlug }, opts) {
|
|
638
|
+
return oazapfts.ok(oazapfts.fetchText(`/v1/secrets/${encodeURIComponent(secretId)}/associations/resources/${encodeURIComponent(resourceSlug)}/resource-type/${encodeURIComponent(resourceTypeSlug)}`, {
|
|
580
639
|
...opts,
|
|
581
640
|
method: "POST"
|
|
582
641
|
}));
|
|
@@ -584,8 +643,8 @@ export function associateResource({ secretId, resourceSlug }, opts) {
|
|
|
584
643
|
/**
|
|
585
644
|
* Disassociate a secret with a resource
|
|
586
645
|
*/
|
|
587
|
-
export function disassociateResource({ secretId, resourceSlug }, opts) {
|
|
588
|
-
return oazapfts.ok(oazapfts.fetchText(`/v1/secrets/${encodeURIComponent(secretId)}/associations/${encodeURIComponent(resourceSlug)}`, {
|
|
646
|
+
export function disassociateResource({ secretId, resourceSlug, resourceTypeSlug }, opts) {
|
|
647
|
+
return oazapfts.ok(oazapfts.fetchText(`/v1/secrets/${encodeURIComponent(secretId)}/associations/resources/${encodeURIComponent(resourceSlug)}/resource-type/${encodeURIComponent(resourceTypeSlug)}`, {
|
|
589
648
|
...opts,
|
|
590
649
|
method: "DELETE"
|
|
591
650
|
}));
|
|
@@ -593,7 +652,7 @@ export function disassociateResource({ secretId, resourceSlug }, opts) {
|
|
|
593
652
|
/**
|
|
594
653
|
* Check if user has access to secret
|
|
595
654
|
*/
|
|
596
|
-
export function
|
|
655
|
+
export function findSecrets1({ checkSecretAccessRequest }, opts) {
|
|
597
656
|
return oazapfts.ok(oazapfts.fetchJson("/v1/secrets/check-access", oazapfts.json({
|
|
598
657
|
...opts,
|
|
599
658
|
method: "POST",
|
|
@@ -623,7 +682,7 @@ export function createScope({ iamCreateScopeRequest }, opts) {
|
|
|
623
682
|
/**
|
|
624
683
|
* Retrieves a list of roles available to the current account.
|
|
625
684
|
*/
|
|
626
|
-
export function
|
|
685
|
+
export function getRoles({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
|
|
627
686
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/roles${QS.query(QS.explode({
|
|
628
687
|
size,
|
|
629
688
|
page,
|
|
@@ -652,7 +711,7 @@ export function createAccountRole({ createAccountRoleRequest }, opts) {
|
|
|
652
711
|
/**
|
|
653
712
|
* Retrieves a list of role members for a specified role.
|
|
654
713
|
*/
|
|
655
|
-
export function
|
|
714
|
+
export function getRoleMembers({ roleId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
|
|
656
715
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/roles/${encodeURIComponent(roleId)}/members${QS.query(QS.explode({
|
|
657
716
|
size,
|
|
658
717
|
page,
|
|
@@ -681,7 +740,7 @@ export function addRoleToMember({ roleId, addRoleToMemberRequest }, opts) {
|
|
|
681
740
|
/**
|
|
682
741
|
* Retrieves a list of role groups associated with a specific group ID.
|
|
683
742
|
*/
|
|
684
|
-
export function
|
|
743
|
+
export function getRoleGroups({ roleId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
|
|
685
744
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/roles/${encodeURIComponent(roleId)}/groups${QS.query(QS.explode({
|
|
686
745
|
size,
|
|
687
746
|
page,
|
|
@@ -729,17 +788,62 @@ export function getResources1({ size, page, sort, direction, search, filterMode,
|
|
|
729
788
|
/**
|
|
730
789
|
* Creates a new resource for the account.
|
|
731
790
|
*/
|
|
732
|
-
export function
|
|
791
|
+
export function createResource1({ createResourceRequest }, opts) {
|
|
733
792
|
return oazapfts.ok(oazapfts.fetchJson("/v1/resources", oazapfts.json({
|
|
734
793
|
...opts,
|
|
735
794
|
method: "POST",
|
|
736
795
|
body: createResourceRequest
|
|
737
796
|
})));
|
|
738
797
|
}
|
|
798
|
+
/**
|
|
799
|
+
* Get all resources reviews
|
|
800
|
+
*/
|
|
801
|
+
export function getReviews({ resourceSlug, resourceTypeSlug, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
|
|
802
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/resources/${encodeURIComponent(resourceSlug)}/resource-type/${encodeURIComponent(resourceTypeSlug)}/reviews${QS.query(QS.explode({
|
|
803
|
+
size,
|
|
804
|
+
page,
|
|
805
|
+
sort,
|
|
806
|
+
direction,
|
|
807
|
+
search,
|
|
808
|
+
filterMode,
|
|
809
|
+
filterBy,
|
|
810
|
+
filterValue,
|
|
811
|
+
multiFilterMode,
|
|
812
|
+
filterIn
|
|
813
|
+
}))}`, {
|
|
814
|
+
...opts
|
|
815
|
+
}));
|
|
816
|
+
}
|
|
817
|
+
/**
|
|
818
|
+
* Create a resource review
|
|
819
|
+
*/
|
|
820
|
+
export function createReview({ resourceSlug, resourceTypeSlug, xMemberId, createResourceReviewRequest }, opts) {
|
|
821
|
+
return oazapfts.ok(oazapfts.fetchText(`/v1/resources/${encodeURIComponent(resourceSlug)}/resource-type/${encodeURIComponent(resourceTypeSlug)}/reviews`, oazapfts.json({
|
|
822
|
+
...opts,
|
|
823
|
+
method: "POST",
|
|
824
|
+
body: createResourceReviewRequest,
|
|
825
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
826
|
+
"x-member-id": xMemberId
|
|
827
|
+
})
|
|
828
|
+
})));
|
|
829
|
+
}
|
|
830
|
+
/**
|
|
831
|
+
* Create an answer to a review
|
|
832
|
+
*/
|
|
833
|
+
export function createReviewAnswer({ reviewId, xMemberId, createReviewAnswerRequest }, opts) {
|
|
834
|
+
return oazapfts.ok(oazapfts.fetchText(`/v1/resources/reviews/${encodeURIComponent(reviewId)}/answers`, oazapfts.json({
|
|
835
|
+
...opts,
|
|
836
|
+
method: "POST",
|
|
837
|
+
body: createReviewAnswerRequest,
|
|
838
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
839
|
+
"x-member-id": xMemberId
|
|
840
|
+
})
|
|
841
|
+
})));
|
|
842
|
+
}
|
|
739
843
|
/**
|
|
740
844
|
* Retrieves a list of account members for a specified account.
|
|
741
845
|
*/
|
|
742
|
-
export function
|
|
846
|
+
export function getAccountMembers({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
|
|
743
847
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/members${QS.query(QS.explode({
|
|
744
848
|
size,
|
|
745
849
|
page,
|
|
@@ -768,7 +872,7 @@ export function createUser({ createUserRequest }, opts) {
|
|
|
768
872
|
/**
|
|
769
873
|
* Retrieves a paginated list of roles associated with a specific member.
|
|
770
874
|
*/
|
|
771
|
-
export function
|
|
875
|
+
export function getRoles1({ memberId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
|
|
772
876
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/members/${encodeURIComponent(memberId)}/roles${QS.query(QS.explode({
|
|
773
877
|
size,
|
|
774
878
|
page,
|
|
@@ -806,7 +910,7 @@ export function resetOtp({ memberId }, opts) {
|
|
|
806
910
|
/**
|
|
807
911
|
* Retrieves a list of groups associated with a specific member.
|
|
808
912
|
*/
|
|
809
|
-
export function
|
|
913
|
+
export function getMemberGroups({ memberId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
|
|
810
914
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/members/${encodeURIComponent(memberId)}/groups${QS.query(QS.explode({
|
|
811
915
|
size,
|
|
812
916
|
page,
|
|
@@ -870,16 +974,6 @@ export function resetPassword({ memberEmailRequest }, opts) {
|
|
|
870
974
|
body: memberEmailRequest
|
|
871
975
|
})));
|
|
872
976
|
}
|
|
873
|
-
/**
|
|
874
|
-
* Invites new members to an account and assigns them to the default group based on the account type.
|
|
875
|
-
*/
|
|
876
|
-
export function inviteMembers({ body }, opts) {
|
|
877
|
-
return oazapfts.ok(oazapfts.fetchJson("/v1/members/invitation", oazapfts.json({
|
|
878
|
-
...opts,
|
|
879
|
-
method: "POST",
|
|
880
|
-
body
|
|
881
|
-
})));
|
|
882
|
-
}
|
|
883
977
|
/**
|
|
884
978
|
* Create a personal lead contact
|
|
885
979
|
*/
|
|
@@ -900,33 +994,10 @@ export function enterpriseContact({ enterpriseLeadRequest }, opts) {
|
|
|
900
994
|
body: enterpriseLeadRequest
|
|
901
995
|
})));
|
|
902
996
|
}
|
|
903
|
-
/**
|
|
904
|
-
* Lists user invitations for account
|
|
905
|
-
*/
|
|
906
|
-
export function listUserInvitations({ filterBy, filterValue, page, size }, opts) {
|
|
907
|
-
return oazapfts.ok(oazapfts.fetchJson(`/v1/invitations${QS.query(QS.explode({
|
|
908
|
-
filterBy,
|
|
909
|
-
filterValue,
|
|
910
|
-
page,
|
|
911
|
-
size
|
|
912
|
-
}))}`, {
|
|
913
|
-
...opts
|
|
914
|
-
}));
|
|
915
|
-
}
|
|
916
|
-
/**
|
|
917
|
-
* Creates and sends an invitation to a user to join an account.
|
|
918
|
-
*/
|
|
919
|
-
export function createUserInvitation({ createUserInvitationRequest }, opts) {
|
|
920
|
-
return oazapfts.ok(oazapfts.fetchJson("/v1/invitations", oazapfts.json({
|
|
921
|
-
...opts,
|
|
922
|
-
method: "POST",
|
|
923
|
-
body: createUserInvitationRequest
|
|
924
|
-
})));
|
|
925
|
-
}
|
|
926
997
|
/**
|
|
927
998
|
* Get Groups
|
|
928
999
|
*/
|
|
929
|
-
export function
|
|
1000
|
+
export function getGroups({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn, includeDefaultGroup }, opts) {
|
|
930
1001
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/groups${QS.query(QS.explode({
|
|
931
1002
|
size,
|
|
932
1003
|
page,
|
|
@@ -956,7 +1027,7 @@ export function save({ newGroupRequest }, opts) {
|
|
|
956
1027
|
/**
|
|
957
1028
|
* Get Group members
|
|
958
1029
|
*/
|
|
959
|
-
export function
|
|
1030
|
+
export function getRoles2({ groupId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
|
|
960
1031
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/groups/${encodeURIComponent(groupId)}/roles${QS.query(QS.explode({
|
|
961
1032
|
size,
|
|
962
1033
|
page,
|
|
@@ -1014,7 +1085,7 @@ export function addResourcesToGroup({ groupId, addResourcesToGroupRequest }, opt
|
|
|
1014
1085
|
/**
|
|
1015
1086
|
* Get Group members
|
|
1016
1087
|
*/
|
|
1017
|
-
export function
|
|
1088
|
+
export function getMembers({ groupId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
|
|
1018
1089
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/groups/${encodeURIComponent(groupId)}/members${QS.query(QS.explode({
|
|
1019
1090
|
size,
|
|
1020
1091
|
page,
|
|
@@ -1041,10 +1112,12 @@ export function bindGroupMembers({ groupId, groupMemberIdsRequest }, opts) {
|
|
|
1041
1112
|
})));
|
|
1042
1113
|
}
|
|
1043
1114
|
/**
|
|
1044
|
-
* List
|
|
1115
|
+
* List extensions that user is allowed to manage
|
|
1045
1116
|
*/
|
|
1046
|
-
export function
|
|
1047
|
-
return oazapfts.ok(oazapfts.fetchJson(
|
|
1117
|
+
export function listManageableExtensions({ actions }, opts) {
|
|
1118
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/extensions${QS.query(QS.explode({
|
|
1119
|
+
actions
|
|
1120
|
+
}))}`, {
|
|
1048
1121
|
...opts
|
|
1049
1122
|
}));
|
|
1050
1123
|
}
|
|
@@ -1159,16 +1232,6 @@ export function validateCampaignCode({ code }, opts) {
|
|
|
1159
1232
|
method: "POST"
|
|
1160
1233
|
}));
|
|
1161
1234
|
}
|
|
1162
|
-
/**
|
|
1163
|
-
* Switch user to account passed in the body
|
|
1164
|
-
*/
|
|
1165
|
-
export function switchAccount({ switchAccountRequest }, opts) {
|
|
1166
|
-
return oazapfts.ok(oazapfts.fetchJson("/v1/authentication/switch-account", oazapfts.json({
|
|
1167
|
-
...opts,
|
|
1168
|
-
method: "POST",
|
|
1169
|
-
body: switchAccountRequest
|
|
1170
|
-
})));
|
|
1171
|
-
}
|
|
1172
1235
|
/**
|
|
1173
1236
|
* Get credentials from personal service client (create if not exists one to the logged user).
|
|
1174
1237
|
*/
|
|
@@ -1181,7 +1244,7 @@ export function getPersonalClientCredentials(opts) {
|
|
|
1181
1244
|
/**
|
|
1182
1245
|
* Get an Access Token generated With Audience on logged user behalf, since previously authorized.
|
|
1183
1246
|
*/
|
|
1184
|
-
export function
|
|
1247
|
+
export function getPersonalAccessToken({ apiAuthorization, generateTokenFromPersonalAccountRequest }, opts) {
|
|
1185
1248
|
return oazapfts.ok(oazapfts.fetchJson("/v1/authentication/personal-access-token", oazapfts.json({
|
|
1186
1249
|
...opts,
|
|
1187
1250
|
method: "POST",
|
|
@@ -1305,7 +1368,7 @@ export function updateVisionOne({ updateVisionOneIntegrationRequest }, opts) {
|
|
|
1305
1368
|
/**
|
|
1306
1369
|
* Finds and returns a list of accounts filtered by account type.
|
|
1307
1370
|
*/
|
|
1308
|
-
export function
|
|
1371
|
+
export function getAccounts({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
|
|
1309
1372
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/admin/accounts${QS.query(QS.explode({
|
|
1310
1373
|
size,
|
|
1311
1374
|
page,
|
|
@@ -1350,16 +1413,6 @@ export function removeTrialAccount(opts) {
|
|
|
1350
1413
|
method: "DELETE"
|
|
1351
1414
|
}));
|
|
1352
1415
|
}
|
|
1353
|
-
/**
|
|
1354
|
-
* Adds a collaborator to an account with a specified role.
|
|
1355
|
-
*/
|
|
1356
|
-
export function addCollaborator({ accountCollaboratorRequest }, opts) {
|
|
1357
|
-
return oazapfts.ok(oazapfts.fetchJson("/v1/accounts/trial/collaborators", oazapfts.json({
|
|
1358
|
-
...opts,
|
|
1359
|
-
method: "POST",
|
|
1360
|
-
body: accountCollaboratorRequest
|
|
1361
|
-
})));
|
|
1362
|
-
}
|
|
1363
1416
|
/**
|
|
1364
1417
|
* Retrieves a list of SSO group mappings.
|
|
1365
1418
|
*/
|
|
@@ -1429,6 +1482,26 @@ export function validateNewPartnerData({ validateAccountPartnerDataRequest }, op
|
|
|
1429
1482
|
body: validateAccountPartnerDataRequest
|
|
1430
1483
|
})));
|
|
1431
1484
|
}
|
|
1485
|
+
/**
|
|
1486
|
+
* Removes privileges to group's default role.
|
|
1487
|
+
*/
|
|
1488
|
+
export function removePermissions({ groupId, body }, opts) {
|
|
1489
|
+
return oazapfts.ok(oazapfts.fetchText(`/v3/groups/${encodeURIComponent(groupId)}/permissions`, oazapfts.json({
|
|
1490
|
+
...opts,
|
|
1491
|
+
method: "DELETE",
|
|
1492
|
+
body
|
|
1493
|
+
})));
|
|
1494
|
+
}
|
|
1495
|
+
/**
|
|
1496
|
+
* Add privileges to group's default role.
|
|
1497
|
+
*/
|
|
1498
|
+
export function addPrivilegesToGroup({ groupId, body }, opts) {
|
|
1499
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v3/groups/${encodeURIComponent(groupId)}/permissions`, oazapfts.json({
|
|
1500
|
+
...opts,
|
|
1501
|
+
method: "PATCH",
|
|
1502
|
+
body
|
|
1503
|
+
})));
|
|
1504
|
+
}
|
|
1432
1505
|
/**
|
|
1433
1506
|
* Rotates the secret of a service credential.
|
|
1434
1507
|
*/
|
|
@@ -1562,6 +1635,15 @@ export function disableSecret({ secretId }, opts) {
|
|
|
1562
1635
|
method: "PATCH"
|
|
1563
1636
|
}));
|
|
1564
1637
|
}
|
|
1638
|
+
/**
|
|
1639
|
+
* Cancel Secret delete
|
|
1640
|
+
*/
|
|
1641
|
+
export function cancelSecretDelete({ secretId }, opts) {
|
|
1642
|
+
return oazapfts.ok(oazapfts.fetchText(`/v1/secrets/${encodeURIComponent(secretId)}/cancel-delete`, {
|
|
1643
|
+
...opts,
|
|
1644
|
+
method: "PATCH"
|
|
1645
|
+
}));
|
|
1646
|
+
}
|
|
1565
1647
|
/**
|
|
1566
1648
|
* Migrate Api Key Secrets to new version
|
|
1567
1649
|
*/
|
|
@@ -1571,6 +1653,56 @@ export function migrateApiKeySecretsToV2(opts) {
|
|
|
1571
1653
|
method: "PATCH"
|
|
1572
1654
|
}));
|
|
1573
1655
|
}
|
|
1656
|
+
/**
|
|
1657
|
+
* Delete a resources review
|
|
1658
|
+
*/
|
|
1659
|
+
export function deleteReview({ reviewId, xMemberId }, opts) {
|
|
1660
|
+
return oazapfts.ok(oazapfts.fetchText(`/v1/resources/reviews/${encodeURIComponent(reviewId)}`, {
|
|
1661
|
+
...opts,
|
|
1662
|
+
method: "DELETE",
|
|
1663
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1664
|
+
"x-member-id": xMemberId
|
|
1665
|
+
})
|
|
1666
|
+
}));
|
|
1667
|
+
}
|
|
1668
|
+
/**
|
|
1669
|
+
* Update a resources review
|
|
1670
|
+
*/
|
|
1671
|
+
export function updateReview({ reviewId, xMemberId, updateResourceReviewRequest }, opts) {
|
|
1672
|
+
return oazapfts.ok(oazapfts.fetchText(`/v1/resources/reviews/${encodeURIComponent(reviewId)}`, oazapfts.json({
|
|
1673
|
+
...opts,
|
|
1674
|
+
method: "PATCH",
|
|
1675
|
+
body: updateResourceReviewRequest,
|
|
1676
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1677
|
+
"x-member-id": xMemberId
|
|
1678
|
+
})
|
|
1679
|
+
})));
|
|
1680
|
+
}
|
|
1681
|
+
/**
|
|
1682
|
+
* Delete an answer to a review
|
|
1683
|
+
*/
|
|
1684
|
+
export function deleteReviewAnswer({ answerId, reviewId, xMemberId }, opts) {
|
|
1685
|
+
return oazapfts.ok(oazapfts.fetchText(`/v1/resources/reviews/${encodeURIComponent(reviewId)}/answers/${encodeURIComponent(answerId)}`, {
|
|
1686
|
+
...opts,
|
|
1687
|
+
method: "DELETE",
|
|
1688
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1689
|
+
"x-member-id": xMemberId
|
|
1690
|
+
})
|
|
1691
|
+
}));
|
|
1692
|
+
}
|
|
1693
|
+
/**
|
|
1694
|
+
* Edit an evaluation comment
|
|
1695
|
+
*/
|
|
1696
|
+
export function editReviewAnswer({ reviewId, answerId, xMemberId, updateReviewAnswerRequest }, opts) {
|
|
1697
|
+
return oazapfts.ok(oazapfts.fetchText(`/v1/resources/reviews/${encodeURIComponent(reviewId)}/answers/${encodeURIComponent(answerId)}`, oazapfts.json({
|
|
1698
|
+
...opts,
|
|
1699
|
+
method: "PATCH",
|
|
1700
|
+
body: updateReviewAnswerRequest,
|
|
1701
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1702
|
+
"x-member-id": xMemberId
|
|
1703
|
+
})
|
|
1704
|
+
})));
|
|
1705
|
+
}
|
|
1574
1706
|
/**
|
|
1575
1707
|
* Retrieves the preferences of a specific member.
|
|
1576
1708
|
*/
|
|
@@ -1646,24 +1778,6 @@ export function enableFidoCredentials({ memberId }, opts) {
|
|
|
1646
1778
|
method: "PATCH"
|
|
1647
1779
|
}));
|
|
1648
1780
|
}
|
|
1649
|
-
/**
|
|
1650
|
-
* Cancel a user invitation.
|
|
1651
|
-
*/
|
|
1652
|
-
export function cancelUserInvitation({ id }, opts) {
|
|
1653
|
-
return oazapfts.ok(oazapfts.fetchJson(`/v1/invitations/${encodeURIComponent(id)}`, {
|
|
1654
|
-
...opts,
|
|
1655
|
-
method: "DELETE"
|
|
1656
|
-
}));
|
|
1657
|
-
}
|
|
1658
|
-
/**
|
|
1659
|
-
* Resends a user invitation for a specified account.
|
|
1660
|
-
*/
|
|
1661
|
-
export function resendUserInvitation({ id }, opts) {
|
|
1662
|
-
return oazapfts.ok(oazapfts.fetchJson(`/v1/invitations/${encodeURIComponent(id)}`, {
|
|
1663
|
-
...opts,
|
|
1664
|
-
method: "PATCH"
|
|
1665
|
-
}));
|
|
1666
|
-
}
|
|
1667
1781
|
/**
|
|
1668
1782
|
* Get Group by ID
|
|
1669
1783
|
*/
|
|
@@ -1759,6 +1873,15 @@ export function addNewEmailDomain({ accountId, addNewEmailDomainRequest }, opts)
|
|
|
1759
1873
|
body: addNewEmailDomainRequest
|
|
1760
1874
|
})));
|
|
1761
1875
|
}
|
|
1876
|
+
/**
|
|
1877
|
+
* Reactivates a Trial account.
|
|
1878
|
+
*/
|
|
1879
|
+
export function reactivateTrialAccount(opts) {
|
|
1880
|
+
return oazapfts.ok(oazapfts.fetchJson("/v1/accounts/trial/reactivate", {
|
|
1881
|
+
...opts,
|
|
1882
|
+
method: "PATCH"
|
|
1883
|
+
}));
|
|
1884
|
+
}
|
|
1762
1885
|
/**
|
|
1763
1886
|
* Update personal account details
|
|
1764
1887
|
*/
|
|
@@ -1845,7 +1968,7 @@ export function updatePartnerAccountAdminData({ id, accountPartnerAdminDataUpdat
|
|
|
1845
1968
|
/**
|
|
1846
1969
|
* Retrieves a list of SCM credentials associated with the current user's account, including secret names and provider details.
|
|
1847
1970
|
*/
|
|
1848
|
-
export function
|
|
1971
|
+
export function listScmCredentials2({ userId }, opts) {
|
|
1849
1972
|
return oazapfts.ok(oazapfts.fetchJson(`/v2/users/${encodeURIComponent(userId)}/scm-credentials`, {
|
|
1850
1973
|
...opts
|
|
1851
1974
|
}));
|
|
@@ -1869,7 +1992,7 @@ export function getServiceCredentialByIdRateLimit({ clientId }, opts) {
|
|
|
1869
1992
|
/**
|
|
1870
1993
|
* Get Roles
|
|
1871
1994
|
*/
|
|
1872
|
-
export function
|
|
1995
|
+
export function getRoles3({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
|
|
1873
1996
|
return oazapfts.ok(oazapfts.fetchJson(`/v2/roles${QS.query(QS.explode({
|
|
1874
1997
|
size,
|
|
1875
1998
|
page,
|
|
@@ -1888,7 +2011,7 @@ export function getRoles({ size, page, sort, direction, search, filterMode, filt
|
|
|
1888
2011
|
/**
|
|
1889
2012
|
* Get all Global Resources and Actions compared to role
|
|
1890
2013
|
*/
|
|
1891
|
-
export function
|
|
2014
|
+
export function getResourcesAndActionsWithStatus1({ roleId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
|
|
1892
2015
|
return oazapfts.ok(oazapfts.fetchJson(`/v2/roles/${encodeURIComponent(roleId)}/resources${QS.query(QS.explode({
|
|
1893
2016
|
size,
|
|
1894
2017
|
page,
|
|
@@ -1907,7 +2030,7 @@ export function getResourcesAndActionsWithStatus({ roleId, size, page, sort, dir
|
|
|
1907
2030
|
/**
|
|
1908
2031
|
* Get role members
|
|
1909
2032
|
*/
|
|
1910
|
-
export function
|
|
2033
|
+
export function getRoleMembers1({ roleId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
|
|
1911
2034
|
return oazapfts.ok(oazapfts.fetchJson(`/v2/roles/${encodeURIComponent(roleId)}/members${QS.query(QS.explode({
|
|
1912
2035
|
size,
|
|
1913
2036
|
page,
|
|
@@ -1926,7 +2049,7 @@ export function getRoleMembers({ roleId, size, page, sort, direction, search, fi
|
|
|
1926
2049
|
/**
|
|
1927
2050
|
* Get Groups from role
|
|
1928
2051
|
*/
|
|
1929
|
-
export function
|
|
2052
|
+
export function getRoleGroups1({ roleId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
|
|
1930
2053
|
return oazapfts.ok(oazapfts.fetchJson(`/v2/roles/${encodeURIComponent(roleId)}/groups${QS.query(QS.explode({
|
|
1931
2054
|
size,
|
|
1932
2055
|
page,
|
|
@@ -1942,25 +2065,6 @@ export function getRoleGroups({ roleId, size, page, sort, direction, search, fil
|
|
|
1942
2065
|
...opts
|
|
1943
2066
|
}));
|
|
1944
2067
|
}
|
|
1945
|
-
/**
|
|
1946
|
-
* Retrieves a list of resources.
|
|
1947
|
-
*/
|
|
1948
|
-
export function getResources({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
|
|
1949
|
-
return oazapfts.ok(oazapfts.fetchJson(`/v2/resources${QS.query(QS.explode({
|
|
1950
|
-
size,
|
|
1951
|
-
page,
|
|
1952
|
-
sort,
|
|
1953
|
-
direction,
|
|
1954
|
-
search,
|
|
1955
|
-
filterMode,
|
|
1956
|
-
filterBy,
|
|
1957
|
-
filterValue,
|
|
1958
|
-
multiFilterMode,
|
|
1959
|
-
filterIn
|
|
1960
|
-
}))}`, {
|
|
1961
|
-
...opts
|
|
1962
|
-
}));
|
|
1963
|
-
}
|
|
1964
2068
|
/**
|
|
1965
2069
|
* Retrieves a list of members for a specified resource.
|
|
1966
2070
|
*/
|
|
@@ -2021,7 +2125,7 @@ export function getResourceTypes({ size, page, sort, direction, search, filterMo
|
|
|
2021
2125
|
/**
|
|
2022
2126
|
* Retrieves a list of account members.
|
|
2023
2127
|
*/
|
|
2024
|
-
export function
|
|
2128
|
+
export function getAccountMembers1({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
|
|
2025
2129
|
return oazapfts.ok(oazapfts.fetchJson(`/v2/members${QS.query(QS.explode({
|
|
2026
2130
|
size,
|
|
2027
2131
|
page,
|
|
@@ -2040,7 +2144,7 @@ export function getAccountMembers({ size, page, sort, direction, search, filterM
|
|
|
2040
2144
|
/**
|
|
2041
2145
|
* Retrieves a list of roles associated with a specific member.
|
|
2042
2146
|
*/
|
|
2043
|
-
export function
|
|
2147
|
+
export function getRoles4({ memberId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
|
|
2044
2148
|
return oazapfts.ok(oazapfts.fetchJson(`/v2/members/${encodeURIComponent(memberId)}/roles${QS.query(QS.explode({
|
|
2045
2149
|
size,
|
|
2046
2150
|
page,
|
|
@@ -2059,7 +2163,7 @@ export function getRoles1({ memberId, size, page, sort, direction, search, filte
|
|
|
2059
2163
|
/**
|
|
2060
2164
|
* Retrieves a list of groups for a specified member.
|
|
2061
2165
|
*/
|
|
2062
|
-
export function
|
|
2166
|
+
export function getMemberGroups1({ memberId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
|
|
2063
2167
|
return oazapfts.ok(oazapfts.fetchJson(`/v2/members/${encodeURIComponent(memberId)}/groups${QS.query(QS.explode({
|
|
2064
2168
|
size,
|
|
2065
2169
|
page,
|
|
@@ -2078,7 +2182,7 @@ export function getMemberGroups({ memberId, size, page, sort, direction, search,
|
|
|
2078
2182
|
/**
|
|
2079
2183
|
* Get Groups
|
|
2080
2184
|
*/
|
|
2081
|
-
export function
|
|
2185
|
+
export function getGroups1({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn, includeDefaultGroup }, opts) {
|
|
2082
2186
|
return oazapfts.ok(oazapfts.fetchJson(`/v2/groups${QS.query(QS.explode({
|
|
2083
2187
|
size,
|
|
2084
2188
|
page,
|
|
@@ -2098,7 +2202,7 @@ export function getGroups({ size, page, sort, direction, search, filterMode, fil
|
|
|
2098
2202
|
/**
|
|
2099
2203
|
* Get Group roles
|
|
2100
2204
|
*/
|
|
2101
|
-
export function
|
|
2205
|
+
export function getRoles5({ groupId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
|
|
2102
2206
|
return oazapfts.ok(oazapfts.fetchJson(`/v2/groups/${encodeURIComponent(groupId)}/roles${QS.query(QS.explode({
|
|
2103
2207
|
size,
|
|
2104
2208
|
page,
|
|
@@ -2114,29 +2218,10 @@ export function getRoles2({ groupId, size, page, sort, direction, search, filter
|
|
|
2114
2218
|
...opts
|
|
2115
2219
|
}));
|
|
2116
2220
|
}
|
|
2117
|
-
/**
|
|
2118
|
-
* Get Group Resources
|
|
2119
|
-
*/
|
|
2120
|
-
export function getGroupResources({ groupId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
|
|
2121
|
-
return oazapfts.ok(oazapfts.fetchJson(`/v2/groups/${encodeURIComponent(groupId)}/resources${QS.query(QS.explode({
|
|
2122
|
-
size,
|
|
2123
|
-
page,
|
|
2124
|
-
sort,
|
|
2125
|
-
direction,
|
|
2126
|
-
search,
|
|
2127
|
-
filterMode,
|
|
2128
|
-
filterBy,
|
|
2129
|
-
filterValue,
|
|
2130
|
-
multiFilterMode,
|
|
2131
|
-
filterIn
|
|
2132
|
-
}))}`, {
|
|
2133
|
-
...opts
|
|
2134
|
-
}));
|
|
2135
|
-
}
|
|
2136
2221
|
/**
|
|
2137
2222
|
* Get Group members
|
|
2138
2223
|
*/
|
|
2139
|
-
export function
|
|
2224
|
+
export function getMembers1({ groupId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
|
|
2140
2225
|
return oazapfts.ok(oazapfts.fetchJson(`/v2/groups/${encodeURIComponent(groupId)}/members${QS.query(QS.explode({
|
|
2141
2226
|
size,
|
|
2142
2227
|
page,
|
|
@@ -2181,7 +2266,7 @@ export function isCreatedScmCredentials(opts) {
|
|
|
2181
2266
|
/**
|
|
2182
2267
|
* Get Accounts
|
|
2183
2268
|
*/
|
|
2184
|
-
export function
|
|
2269
|
+
export function getAccounts1({ accountType, slug, id }, opts) {
|
|
2185
2270
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/stackspot/accounts${QS.query(QS.explode({
|
|
2186
2271
|
accountType,
|
|
2187
2272
|
slug,
|
|
@@ -2201,7 +2286,7 @@ export function getAccount({ id }, opts) {
|
|
|
2201
2286
|
/**
|
|
2202
2287
|
* Get Account Members
|
|
2203
2288
|
*/
|
|
2204
|
-
export function
|
|
2289
|
+
export function getAccountMembers2({ id, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
|
|
2205
2290
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/stackspot/accounts/${encodeURIComponent(id)}/members${QS.query(QS.explode({
|
|
2206
2291
|
size,
|
|
2207
2292
|
page,
|
|
@@ -2244,13 +2329,14 @@ export function getServiceCredentialGroups1({ id }, opts) {
|
|
|
2244
2329
|
/**
|
|
2245
2330
|
* Retrieve secret value
|
|
2246
2331
|
*/
|
|
2247
|
-
export function getSecretValue({ xMemberId, xAccountId, xResourceSlug, secretId }, opts) {
|
|
2332
|
+
export function getSecretValue({ xMemberId, xAccountId, xResourceSlug, xResourceTypeSlug, secretId }, opts) {
|
|
2248
2333
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/secrets/${encodeURIComponent(secretId)}/value`, {
|
|
2249
2334
|
...opts,
|
|
2250
2335
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2251
2336
|
"x-member-id": xMemberId,
|
|
2252
2337
|
"x-account-id": xAccountId,
|
|
2253
|
-
"x-resource-slug": xResourceSlug
|
|
2338
|
+
"x-resource-slug": xResourceSlug,
|
|
2339
|
+
"x-resource-type-slug": xResourceTypeSlug
|
|
2254
2340
|
})
|
|
2255
2341
|
}));
|
|
2256
2342
|
}
|
|
@@ -2394,25 +2480,6 @@ export function listMemberFavoritesByResource({ memberId, resourceType }, opts)
|
|
|
2394
2480
|
...opts
|
|
2395
2481
|
}));
|
|
2396
2482
|
}
|
|
2397
|
-
/**
|
|
2398
|
-
* Retrieves a list of account members and collaborators associated with the current user's account.
|
|
2399
|
-
*/
|
|
2400
|
-
export function getAccountMembersToCollaborators({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
|
|
2401
|
-
return oazapfts.ok(oazapfts.fetchJson(`/v1/members/collaborators${QS.query(QS.explode({
|
|
2402
|
-
size,
|
|
2403
|
-
page,
|
|
2404
|
-
sort,
|
|
2405
|
-
direction,
|
|
2406
|
-
search,
|
|
2407
|
-
filterMode,
|
|
2408
|
-
filterBy,
|
|
2409
|
-
filterValue,
|
|
2410
|
-
multiFilterMode,
|
|
2411
|
-
filterIn
|
|
2412
|
-
}))}`, {
|
|
2413
|
-
...opts
|
|
2414
|
-
}));
|
|
2415
|
-
}
|
|
2416
2483
|
/**
|
|
2417
2484
|
* Returns a list of Feature Flags associated with the current user's account.
|
|
2418
2485
|
*/
|
|
@@ -2498,6 +2565,14 @@ export function getPersonalAccountDetails(opts) {
|
|
|
2498
2565
|
...opts
|
|
2499
2566
|
}));
|
|
2500
2567
|
}
|
|
2568
|
+
/**
|
|
2569
|
+
* Finds and returns personal account expiration data associated with the provided token.
|
|
2570
|
+
*/
|
|
2571
|
+
export function getPersonalAccountExpirationData(opts) {
|
|
2572
|
+
return oazapfts.ok(oazapfts.fetchJson("/v1/accounts/trial/expiration", {
|
|
2573
|
+
...opts
|
|
2574
|
+
}));
|
|
2575
|
+
}
|
|
2501
2576
|
/**
|
|
2502
2577
|
* Retrieves a list of SSO for the current account.
|
|
2503
2578
|
*/
|
|
@@ -2545,6 +2620,16 @@ export function validatePartnerAssociationLimit(opts) {
|
|
|
2545
2620
|
...opts
|
|
2546
2621
|
}));
|
|
2547
2622
|
}
|
|
2623
|
+
/**
|
|
2624
|
+
* Deletes a resource from the account by resource type and resource slug.
|
|
2625
|
+
*/
|
|
2626
|
+
export function deleteResource({ deleteResourceRequestV3 }, opts) {
|
|
2627
|
+
return oazapfts.ok(oazapfts.fetchJson("/v3/resources", oazapfts.json({
|
|
2628
|
+
...opts,
|
|
2629
|
+
method: "DELETE",
|
|
2630
|
+
body: deleteResourceRequestV3
|
|
2631
|
+
})));
|
|
2632
|
+
}
|
|
2548
2633
|
/**
|
|
2549
2634
|
* Disassociate Group to Service Credential
|
|
2550
2635
|
*/
|
|
@@ -2566,7 +2651,7 @@ export function removeRoleFromMember({ roleId, memberId }, opts) {
|
|
|
2566
2651
|
/**
|
|
2567
2652
|
* Deletes a resource from the account.
|
|
2568
2653
|
*/
|
|
2569
|
-
export function
|
|
2654
|
+
export function deleteResource1({ resourceId }, opts) {
|
|
2570
2655
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/resources/${encodeURIComponent(resourceId)}`, {
|
|
2571
2656
|
...opts,
|
|
2572
2657
|
method: "DELETE"
|