@stack-spot/portal-network 0.72.0 → 0.72.1-beta.1
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 +7 -0
- package/dist/api/account.d.ts +217 -1
- package/dist/api/account.d.ts.map +1 -1
- package/dist/api/account.js +135 -2
- package/dist/api/account.js.map +1 -1
- package/dist/client/account.d.ts +87 -1
- package/dist/client/account.d.ts.map +1 -1
- package/dist/client/account.js +119 -2
- package/dist/client/account.js.map +1 -1
- package/package.json +1 -1
- package/src/api/account.ts +499 -3
- package/src/client/account.ts +79 -4
package/src/api/account.ts
CHANGED
|
@@ -8,11 +8,11 @@ import * as Oazapfts from "@oazapfts/runtime";
|
|
|
8
8
|
import * as QS from "@oazapfts/runtime/query";
|
|
9
9
|
export const defaults: Oazapfts.Defaults<Oazapfts.CustomHeaders> = {
|
|
10
10
|
headers: {},
|
|
11
|
-
baseUrl: "https://account-account-api.
|
|
11
|
+
baseUrl: "https://account-account-api.dev.stackspot.com",
|
|
12
12
|
};
|
|
13
13
|
const oazapfts = Oazapfts.runtime(defaults);
|
|
14
14
|
export const servers = {
|
|
15
|
-
generatedServerUrl: "https://account-account-api.
|
|
15
|
+
generatedServerUrl: "https://account-account-api.dev.stackspot.com"
|
|
16
16
|
};
|
|
17
17
|
export type UserScmInfoResponse = {
|
|
18
18
|
/** Secrets name */
|
|
@@ -163,6 +163,7 @@ export type AccountMemberStackspotIamDto = {
|
|
|
163
163
|
properties?: {
|
|
164
164
|
[key: string]: object;
|
|
165
165
|
};
|
|
166
|
+
avatarImage?: string;
|
|
166
167
|
};
|
|
167
168
|
export type UpdateUserRequest = {
|
|
168
169
|
/** User username */
|
|
@@ -185,6 +186,8 @@ export type UpdateUserRequest = {
|
|
|
185
186
|
company?: string;
|
|
186
187
|
/** User new password */
|
|
187
188
|
password?: string;
|
|
189
|
+
/** Image profile */
|
|
190
|
+
avatarImageBase64?: string;
|
|
188
191
|
};
|
|
189
192
|
export type UpdateUserResponse = {
|
|
190
193
|
username?: string;
|
|
@@ -634,7 +637,7 @@ export type AccountMemberResponse = {
|
|
|
634
637
|
/** Account member status */
|
|
635
638
|
isActive: boolean;
|
|
636
639
|
/** Account member avatar URL */
|
|
637
|
-
|
|
640
|
+
avatarImage?: string;
|
|
638
641
|
/** Account member full name */
|
|
639
642
|
name: string;
|
|
640
643
|
};
|
|
@@ -659,6 +662,8 @@ export type CreateUserRequest = {
|
|
|
659
662
|
password?: string;
|
|
660
663
|
/** User Company */
|
|
661
664
|
company?: string;
|
|
665
|
+
/** Image profile */
|
|
666
|
+
avatarImageBase64?: string;
|
|
662
667
|
};
|
|
663
668
|
export type CreateUserResponse = {
|
|
664
669
|
username: string;
|
|
@@ -801,6 +806,89 @@ export type CreateFeatureFlagRequest = {
|
|
|
801
806
|
/** The feature flag description */
|
|
802
807
|
description: string;
|
|
803
808
|
};
|
|
809
|
+
export type ExtensionInfoByLanguageResponse = {
|
|
810
|
+
pt?: string;
|
|
811
|
+
en?: string;
|
|
812
|
+
};
|
|
813
|
+
export type ExtensionReadResponse = {
|
|
814
|
+
/** Extension Id */
|
|
815
|
+
id: string;
|
|
816
|
+
/** Extension Slug */
|
|
817
|
+
slug: string;
|
|
818
|
+
description?: ExtensionInfoByLanguageResponse;
|
|
819
|
+
displayName?: ExtensionInfoByLanguageResponse;
|
|
820
|
+
/** The Id from active extension version */
|
|
821
|
+
activeVersionId?: string;
|
|
822
|
+
};
|
|
823
|
+
export type ExtensionInfoByLanguageRequest = {
|
|
824
|
+
pt?: string;
|
|
825
|
+
en?: string;
|
|
826
|
+
};
|
|
827
|
+
export type ExtensionCreateRequest = {
|
|
828
|
+
/** The slug to use in URL as unique identifying part representing the extension */
|
|
829
|
+
slug: string;
|
|
830
|
+
description?: ExtensionInfoByLanguageRequest;
|
|
831
|
+
displayName?: ExtensionInfoByLanguageRequest;
|
|
832
|
+
};
|
|
833
|
+
export type ExtensionVersionResumedReadResponse = {
|
|
834
|
+
/** Extension Version Id */
|
|
835
|
+
id: string;
|
|
836
|
+
/** Extension Slug */
|
|
837
|
+
extensionSlug: string;
|
|
838
|
+
/** The extension version name */
|
|
839
|
+
name: string;
|
|
840
|
+
/** The extension version content url */
|
|
841
|
+
dataUrl: string;
|
|
842
|
+
/** The extension version date and time of creation */
|
|
843
|
+
createdAt: string;
|
|
844
|
+
};
|
|
845
|
+
export type ExtensionLinkReadResponse = {
|
|
846
|
+
/** Extension Link Id */
|
|
847
|
+
id: string;
|
|
848
|
+
/** Extension Slug related with the link */
|
|
849
|
+
extensionSlug: string;
|
|
850
|
+
/** The extension Link type */
|
|
851
|
+
"type": string;
|
|
852
|
+
/** The extension Link path */
|
|
853
|
+
path?: string;
|
|
854
|
+
/** The workspace id where the Extension should be displayed */
|
|
855
|
+
workspaceId?: string;
|
|
856
|
+
/** The menu height from Extension */
|
|
857
|
+
height?: number;
|
|
858
|
+
/** The menu weight from Extension */
|
|
859
|
+
weight?: number;
|
|
860
|
+
displayName?: ExtensionInfoByLanguageResponse;
|
|
861
|
+
};
|
|
862
|
+
export type ExtensionLinkCreateRequest = {
|
|
863
|
+
/** The slug from related Extension */
|
|
864
|
+
extensionSlug: string;
|
|
865
|
+
/** The type of the Extension Link */
|
|
866
|
+
"type": string;
|
|
867
|
+
/** The Workspace Id where the Extension should be displayed */
|
|
868
|
+
workspaceId?: string;
|
|
869
|
+
/** The Extension menu height */
|
|
870
|
+
height?: number;
|
|
871
|
+
/** The Extension menu weight */
|
|
872
|
+
weight?: number;
|
|
873
|
+
/** The Extension path */
|
|
874
|
+
path?: string;
|
|
875
|
+
};
|
|
876
|
+
export type ExtensionLinkCreateResponse = {
|
|
877
|
+
/** Extension Link Id */
|
|
878
|
+
id: string;
|
|
879
|
+
/** Extension Slug related with the Link */
|
|
880
|
+
extensionSlug: string;
|
|
881
|
+
/** The type of the Extension Link */
|
|
882
|
+
"type": string;
|
|
883
|
+
/** The Workspace Id where the Extension should be displayed */
|
|
884
|
+
workspaceId?: string;
|
|
885
|
+
/** The Extension menu height */
|
|
886
|
+
height?: number;
|
|
887
|
+
/** The Extension menu weight */
|
|
888
|
+
weight?: number;
|
|
889
|
+
/** The Extension path */
|
|
890
|
+
path?: string;
|
|
891
|
+
};
|
|
804
892
|
export type WelcomeEmailRequest = {
|
|
805
893
|
/** Firstname of the contact requester */
|
|
806
894
|
firstName: string;
|
|
@@ -1156,6 +1244,24 @@ export type UpdateGroupPermissionsRequest = {
|
|
|
1156
1244
|
/** Slug from resource */
|
|
1157
1245
|
resourceSlug: string;
|
|
1158
1246
|
};
|
|
1247
|
+
export type ExtensionUpdateRequest = {
|
|
1248
|
+
/** The Id from active extension version */
|
|
1249
|
+
activeVersionId?: string;
|
|
1250
|
+
description?: ExtensionInfoByLanguageRequest;
|
|
1251
|
+
displayName?: ExtensionInfoByLanguageRequest;
|
|
1252
|
+
};
|
|
1253
|
+
export type ExtensionLinkUpdateRequest = {
|
|
1254
|
+
/** The type of the Extension Link */
|
|
1255
|
+
"type"?: string;
|
|
1256
|
+
/** The Workspace Id where the Extension should be displayed */
|
|
1257
|
+
workspaceId?: string;
|
|
1258
|
+
/** The Extension menu height */
|
|
1259
|
+
height?: number;
|
|
1260
|
+
/** The Extension menu weight */
|
|
1261
|
+
weight?: number;
|
|
1262
|
+
/** The Extension path */
|
|
1263
|
+
path?: string;
|
|
1264
|
+
};
|
|
1159
1265
|
export type AddNewEmailDomainRequest = {
|
|
1160
1266
|
/** Email domains list that account users will use to login into StackSpot. Example: zup.com.br */
|
|
1161
1267
|
domains: string[];
|
|
@@ -1474,6 +1580,23 @@ export type ResourceDto = {
|
|
|
1474
1580
|
description?: string;
|
|
1475
1581
|
"type"?: ResourceTypeDto;
|
|
1476
1582
|
};
|
|
1583
|
+
export type ExtensionVersionInfoByLanguageResponse = {
|
|
1584
|
+
pt?: string;
|
|
1585
|
+
en?: string;
|
|
1586
|
+
};
|
|
1587
|
+
export type ExtensionVersionResponse = {
|
|
1588
|
+
/** Extension Version Id */
|
|
1589
|
+
id: string;
|
|
1590
|
+
/** Extension Slug */
|
|
1591
|
+
extensionSlug: string;
|
|
1592
|
+
/** The extension version name */
|
|
1593
|
+
name: string;
|
|
1594
|
+
/** The extension version content url */
|
|
1595
|
+
dataUrl: string;
|
|
1596
|
+
/** The extension version date and time of creation */
|
|
1597
|
+
createdAt: string;
|
|
1598
|
+
displayName?: ExtensionVersionInfoByLanguageResponse;
|
|
1599
|
+
};
|
|
1477
1600
|
export type AccountAuthenticationConfigResponse = {
|
|
1478
1601
|
/** OpenID Well Known url for current account */
|
|
1479
1602
|
openIdWellKnownUrl: string;
|
|
@@ -3303,6 +3426,172 @@ export function create({ createFeatureFlagRequest }: {
|
|
|
3303
3426
|
body: createFeatureFlagRequest
|
|
3304
3427
|
})));
|
|
3305
3428
|
}
|
|
3429
|
+
/**
|
|
3430
|
+
* List all Account Extensions
|
|
3431
|
+
*/
|
|
3432
|
+
export function listExtensions(opts?: Oazapfts.RequestOpts) {
|
|
3433
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3434
|
+
status: 200;
|
|
3435
|
+
data: ExtensionReadResponse[];
|
|
3436
|
+
} | {
|
|
3437
|
+
status: 400;
|
|
3438
|
+
data: ErrorResponse;
|
|
3439
|
+
} | {
|
|
3440
|
+
status: 403;
|
|
3441
|
+
data: ErrorResponse;
|
|
3442
|
+
} | {
|
|
3443
|
+
status: 422;
|
|
3444
|
+
data: ErrorResponse;
|
|
3445
|
+
} | {
|
|
3446
|
+
status: 500;
|
|
3447
|
+
data: ErrorResponse;
|
|
3448
|
+
}>("/v1/extensions", {
|
|
3449
|
+
...opts
|
|
3450
|
+
}));
|
|
3451
|
+
}
|
|
3452
|
+
/**
|
|
3453
|
+
* Create Account Extension
|
|
3454
|
+
*/
|
|
3455
|
+
export function createExtension({ extensionCreateRequest }: {
|
|
3456
|
+
extensionCreateRequest: ExtensionCreateRequest;
|
|
3457
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3458
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3459
|
+
status: 201;
|
|
3460
|
+
} | {
|
|
3461
|
+
status: 400;
|
|
3462
|
+
data: ErrorResponse;
|
|
3463
|
+
} | {
|
|
3464
|
+
status: 403;
|
|
3465
|
+
data: ErrorResponse;
|
|
3466
|
+
} | {
|
|
3467
|
+
status: 422;
|
|
3468
|
+
data: ErrorResponse;
|
|
3469
|
+
} | {
|
|
3470
|
+
status: 500;
|
|
3471
|
+
data: ErrorResponse;
|
|
3472
|
+
}>("/v1/extensions", oazapfts.json({
|
|
3473
|
+
...opts,
|
|
3474
|
+
method: "POST",
|
|
3475
|
+
body: extensionCreateRequest
|
|
3476
|
+
})));
|
|
3477
|
+
}
|
|
3478
|
+
/**
|
|
3479
|
+
* List all Account Extension Versions
|
|
3480
|
+
*/
|
|
3481
|
+
export function listExtensionVersions({ slug }: {
|
|
3482
|
+
slug: string;
|
|
3483
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3484
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3485
|
+
status: 200;
|
|
3486
|
+
data: ExtensionVersionResumedReadResponse[];
|
|
3487
|
+
} | {
|
|
3488
|
+
status: 400;
|
|
3489
|
+
data: ErrorResponse;
|
|
3490
|
+
} | {
|
|
3491
|
+
status: 403;
|
|
3492
|
+
data: ErrorResponse;
|
|
3493
|
+
} | {
|
|
3494
|
+
status: 422;
|
|
3495
|
+
data: ErrorResponse;
|
|
3496
|
+
} | {
|
|
3497
|
+
status: 500;
|
|
3498
|
+
data: ErrorResponse;
|
|
3499
|
+
}>(`/v1/extensions/${encodeURIComponent(slug)}/versions`, {
|
|
3500
|
+
...opts
|
|
3501
|
+
}));
|
|
3502
|
+
}
|
|
3503
|
+
/**
|
|
3504
|
+
* Create Account Extension Version
|
|
3505
|
+
*/
|
|
3506
|
+
export function createExtensionVersion({ slug, name, body }: {
|
|
3507
|
+
slug: string;
|
|
3508
|
+
name: string;
|
|
3509
|
+
body?: {
|
|
3510
|
+
file: Blob;
|
|
3511
|
+
};
|
|
3512
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3513
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3514
|
+
status: 201;
|
|
3515
|
+
} | {
|
|
3516
|
+
status: 400;
|
|
3517
|
+
data: ErrorResponse;
|
|
3518
|
+
} | {
|
|
3519
|
+
status: 403;
|
|
3520
|
+
data: ErrorResponse;
|
|
3521
|
+
} | {
|
|
3522
|
+
status: 422;
|
|
3523
|
+
data: ErrorResponse;
|
|
3524
|
+
} | {
|
|
3525
|
+
status: 500;
|
|
3526
|
+
data: ErrorResponse;
|
|
3527
|
+
}>(`/v1/extensions/${encodeURIComponent(slug)}/versions${QS.query(QS.explode({
|
|
3528
|
+
name
|
|
3529
|
+
}))}`, oazapfts.multipart({
|
|
3530
|
+
...opts,
|
|
3531
|
+
method: "POST",
|
|
3532
|
+
body
|
|
3533
|
+
})));
|
|
3534
|
+
}
|
|
3535
|
+
/**
|
|
3536
|
+
* List all Account Extension Links
|
|
3537
|
+
*/
|
|
3538
|
+
export function listExtensionLinks({ workspaceId, $type, extensionSlug, showOnlyActive }: {
|
|
3539
|
+
workspaceId?: string;
|
|
3540
|
+
$type?: string;
|
|
3541
|
+
extensionSlug?: any;
|
|
3542
|
+
showOnlyActive?: any;
|
|
3543
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3544
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3545
|
+
status: 200;
|
|
3546
|
+
data: ExtensionLinkReadResponse[];
|
|
3547
|
+
} | {
|
|
3548
|
+
status: 400;
|
|
3549
|
+
data: ErrorResponse;
|
|
3550
|
+
} | {
|
|
3551
|
+
status: 403;
|
|
3552
|
+
data: ErrorResponse;
|
|
3553
|
+
} | {
|
|
3554
|
+
status: 422;
|
|
3555
|
+
data: ErrorResponse;
|
|
3556
|
+
} | {
|
|
3557
|
+
status: 500;
|
|
3558
|
+
data: ErrorResponse;
|
|
3559
|
+
}>(`/v1/extension-links${QS.query(QS.explode({
|
|
3560
|
+
workspaceId,
|
|
3561
|
+
"type": $type,
|
|
3562
|
+
extensionSlug,
|
|
3563
|
+
showOnlyActive
|
|
3564
|
+
}))}`, {
|
|
3565
|
+
...opts
|
|
3566
|
+
}));
|
|
3567
|
+
}
|
|
3568
|
+
/**
|
|
3569
|
+
* Create Account Extension Link
|
|
3570
|
+
*/
|
|
3571
|
+
export function createExtensionLink({ extensionLinkCreateRequest }: {
|
|
3572
|
+
extensionLinkCreateRequest: ExtensionLinkCreateRequest;
|
|
3573
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3574
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3575
|
+
status: 201;
|
|
3576
|
+
data: ExtensionLinkCreateResponse;
|
|
3577
|
+
} | {
|
|
3578
|
+
status: 400;
|
|
3579
|
+
data: ErrorResponse;
|
|
3580
|
+
} | {
|
|
3581
|
+
status: 403;
|
|
3582
|
+
data: ErrorResponse;
|
|
3583
|
+
} | {
|
|
3584
|
+
status: 422;
|
|
3585
|
+
data: ErrorResponse;
|
|
3586
|
+
} | {
|
|
3587
|
+
status: 500;
|
|
3588
|
+
data: ErrorResponse;
|
|
3589
|
+
}>("/v1/extension-links", oazapfts.json({
|
|
3590
|
+
...opts,
|
|
3591
|
+
method: "POST",
|
|
3592
|
+
body: extensionLinkCreateRequest
|
|
3593
|
+
})));
|
|
3594
|
+
}
|
|
3306
3595
|
/**
|
|
3307
3596
|
* Send Welcome Email
|
|
3308
3597
|
*/
|
|
@@ -4301,6 +4590,114 @@ export function disable({ id }: {
|
|
|
4301
4590
|
method: "PATCH"
|
|
4302
4591
|
}));
|
|
4303
4592
|
}
|
|
4593
|
+
/**
|
|
4594
|
+
* Delete Account Extension
|
|
4595
|
+
*/
|
|
4596
|
+
export function deleteExtension({ slug }: {
|
|
4597
|
+
slug: string;
|
|
4598
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4599
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4600
|
+
status: 204;
|
|
4601
|
+
} | {
|
|
4602
|
+
status: 400;
|
|
4603
|
+
data: ErrorResponse;
|
|
4604
|
+
} | {
|
|
4605
|
+
status: 403;
|
|
4606
|
+
data: ErrorResponse;
|
|
4607
|
+
} | {
|
|
4608
|
+
status: 422;
|
|
4609
|
+
data: ErrorResponse;
|
|
4610
|
+
} | {
|
|
4611
|
+
status: 500;
|
|
4612
|
+
data: ErrorResponse;
|
|
4613
|
+
}>(`/v1/extensions/${encodeURIComponent(slug)}`, {
|
|
4614
|
+
...opts,
|
|
4615
|
+
method: "DELETE"
|
|
4616
|
+
}));
|
|
4617
|
+
}
|
|
4618
|
+
/**
|
|
4619
|
+
* Update Account Extension
|
|
4620
|
+
*/
|
|
4621
|
+
export function updateExtension({ slug, extensionUpdateRequest }: {
|
|
4622
|
+
slug: string;
|
|
4623
|
+
extensionUpdateRequest: ExtensionUpdateRequest;
|
|
4624
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4625
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4626
|
+
status: 200;
|
|
4627
|
+
} | {
|
|
4628
|
+
status: 204;
|
|
4629
|
+
} | {
|
|
4630
|
+
status: 400;
|
|
4631
|
+
data: ErrorResponse;
|
|
4632
|
+
} | {
|
|
4633
|
+
status: 403;
|
|
4634
|
+
data: ErrorResponse;
|
|
4635
|
+
} | {
|
|
4636
|
+
status: 422;
|
|
4637
|
+
data: ErrorResponse;
|
|
4638
|
+
} | {
|
|
4639
|
+
status: 500;
|
|
4640
|
+
data: ErrorResponse;
|
|
4641
|
+
}>(`/v1/extensions/${encodeURIComponent(slug)}`, oazapfts.json({
|
|
4642
|
+
...opts,
|
|
4643
|
+
method: "PATCH",
|
|
4644
|
+
body: extensionUpdateRequest
|
|
4645
|
+
})));
|
|
4646
|
+
}
|
|
4647
|
+
/**
|
|
4648
|
+
* Delete Account Extension Link
|
|
4649
|
+
*/
|
|
4650
|
+
export function deleteExtensionLink({ id }: {
|
|
4651
|
+
id: string;
|
|
4652
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4653
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4654
|
+
status: 204;
|
|
4655
|
+
} | {
|
|
4656
|
+
status: 400;
|
|
4657
|
+
data: ErrorResponse;
|
|
4658
|
+
} | {
|
|
4659
|
+
status: 403;
|
|
4660
|
+
data: ErrorResponse;
|
|
4661
|
+
} | {
|
|
4662
|
+
status: 422;
|
|
4663
|
+
data: ErrorResponse;
|
|
4664
|
+
} | {
|
|
4665
|
+
status: 500;
|
|
4666
|
+
data: ErrorResponse;
|
|
4667
|
+
}>(`/v1/extension-links/${encodeURIComponent(id)}`, {
|
|
4668
|
+
...opts,
|
|
4669
|
+
method: "DELETE"
|
|
4670
|
+
}));
|
|
4671
|
+
}
|
|
4672
|
+
/**
|
|
4673
|
+
* Update Account Extension Link
|
|
4674
|
+
*/
|
|
4675
|
+
export function updateExtensionLink({ id, extensionLinkUpdateRequest }: {
|
|
4676
|
+
id: string;
|
|
4677
|
+
extensionLinkUpdateRequest?: ExtensionLinkUpdateRequest;
|
|
4678
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4679
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4680
|
+
status: 200;
|
|
4681
|
+
} | {
|
|
4682
|
+
status: 204;
|
|
4683
|
+
} | {
|
|
4684
|
+
status: 400;
|
|
4685
|
+
data: ErrorResponse;
|
|
4686
|
+
} | {
|
|
4687
|
+
status: 403;
|
|
4688
|
+
data: ErrorResponse;
|
|
4689
|
+
} | {
|
|
4690
|
+
status: 422;
|
|
4691
|
+
data: ErrorResponse;
|
|
4692
|
+
} | {
|
|
4693
|
+
status: 500;
|
|
4694
|
+
data: ErrorResponse;
|
|
4695
|
+
}>(`/v1/extension-links/${encodeURIComponent(id)}`, oazapfts.json({
|
|
4696
|
+
...opts,
|
|
4697
|
+
method: "PATCH",
|
|
4698
|
+
body: extensionLinkUpdateRequest
|
|
4699
|
+
})));
|
|
4700
|
+
}
|
|
4304
4701
|
/**
|
|
4305
4702
|
* Adds a new email domain to an existing account
|
|
4306
4703
|
*/
|
|
@@ -5552,6 +5949,83 @@ export function getAccountMembersToCollaborators({ size, page, sort, direction,
|
|
|
5552
5949
|
...opts
|
|
5553
5950
|
}));
|
|
5554
5951
|
}
|
|
5952
|
+
/**
|
|
5953
|
+
* Get a Account Extension Version
|
|
5954
|
+
*/
|
|
5955
|
+
export function getExtensionVersion({ slug, versionName }: {
|
|
5956
|
+
slug: string;
|
|
5957
|
+
versionName: string;
|
|
5958
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
5959
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
5960
|
+
status: 200;
|
|
5961
|
+
data: ExtensionVersionResponse;
|
|
5962
|
+
} | {
|
|
5963
|
+
status: 400;
|
|
5964
|
+
data: ErrorResponse;
|
|
5965
|
+
} | {
|
|
5966
|
+
status: 403;
|
|
5967
|
+
data: ErrorResponse;
|
|
5968
|
+
} | {
|
|
5969
|
+
status: 422;
|
|
5970
|
+
data: ErrorResponse;
|
|
5971
|
+
} | {
|
|
5972
|
+
status: 500;
|
|
5973
|
+
data: ErrorResponse;
|
|
5974
|
+
}>(`/v1/extensions/${encodeURIComponent(slug)}/versions/${encodeURIComponent(versionName)}`, {
|
|
5975
|
+
...opts
|
|
5976
|
+
}));
|
|
5977
|
+
}
|
|
5978
|
+
/**
|
|
5979
|
+
* Delete Account Extension Version
|
|
5980
|
+
*/
|
|
5981
|
+
export function deleteExtensionVersion({ slug, versionName }: {
|
|
5982
|
+
slug: string;
|
|
5983
|
+
versionName: string;
|
|
5984
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
5985
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
5986
|
+
status: 204;
|
|
5987
|
+
} | {
|
|
5988
|
+
status: 400;
|
|
5989
|
+
data: ErrorResponse;
|
|
5990
|
+
} | {
|
|
5991
|
+
status: 403;
|
|
5992
|
+
data: ErrorResponse;
|
|
5993
|
+
} | {
|
|
5994
|
+
status: 422;
|
|
5995
|
+
data: ErrorResponse;
|
|
5996
|
+
} | {
|
|
5997
|
+
status: 500;
|
|
5998
|
+
data: ErrorResponse;
|
|
5999
|
+
}>(`/v1/extensions/${encodeURIComponent(slug)}/versions/${encodeURIComponent(versionName)}`, {
|
|
6000
|
+
...opts,
|
|
6001
|
+
method: "DELETE"
|
|
6002
|
+
}));
|
|
6003
|
+
}
|
|
6004
|
+
/**
|
|
6005
|
+
* Get the active Extension Version
|
|
6006
|
+
*/
|
|
6007
|
+
export function getActiveExtensionVersion({ slug }: {
|
|
6008
|
+
slug: string;
|
|
6009
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
6010
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
6011
|
+
status: 200;
|
|
6012
|
+
data: ExtensionVersionResponse;
|
|
6013
|
+
} | {
|
|
6014
|
+
status: 400;
|
|
6015
|
+
data: ErrorResponse;
|
|
6016
|
+
} | {
|
|
6017
|
+
status: 403;
|
|
6018
|
+
data: ErrorResponse;
|
|
6019
|
+
} | {
|
|
6020
|
+
status: 422;
|
|
6021
|
+
data: ErrorResponse;
|
|
6022
|
+
} | {
|
|
6023
|
+
status: 500;
|
|
6024
|
+
data: ErrorResponse;
|
|
6025
|
+
}>(`/v1/extensions/${encodeURIComponent(slug)}/active`, {
|
|
6026
|
+
...opts
|
|
6027
|
+
}));
|
|
6028
|
+
}
|
|
5555
6029
|
/**
|
|
5556
6030
|
* Get Authentication Configuration for account
|
|
5557
6031
|
*/
|
|
@@ -5848,6 +6322,28 @@ export function deleteResource({ resourceId }: {
|
|
|
5848
6322
|
method: "DELETE"
|
|
5849
6323
|
}));
|
|
5850
6324
|
}
|
|
6325
|
+
/**
|
|
6326
|
+
* Removes member profile image
|
|
6327
|
+
*/
|
|
6328
|
+
export function deleteProfileImage({ memberId }: {
|
|
6329
|
+
memberId: string;
|
|
6330
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
6331
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
6332
|
+
status: 204;
|
|
6333
|
+
} | {
|
|
6334
|
+
status: 400;
|
|
6335
|
+
data: ErrorResponse;
|
|
6336
|
+
} | {
|
|
6337
|
+
status: 404;
|
|
6338
|
+
data: ErrorResponse;
|
|
6339
|
+
} | {
|
|
6340
|
+
status: 500;
|
|
6341
|
+
data: ErrorResponse;
|
|
6342
|
+
}>(`/v1/members/${encodeURIComponent(memberId)}/profile-image`, {
|
|
6343
|
+
...opts,
|
|
6344
|
+
method: "DELETE"
|
|
6345
|
+
}));
|
|
6346
|
+
}
|
|
5851
6347
|
/**
|
|
5852
6348
|
* Remove resource from member favorites
|
|
5853
6349
|
*/
|
package/src/client/account.ts
CHANGED
|
@@ -8,13 +8,16 @@ import {
|
|
|
8
8
|
bindGroupMembers,
|
|
9
9
|
bindRoleGroups,
|
|
10
10
|
bindRoles,
|
|
11
|
-
bindToGroups, bindToRoles, create, createAccountRole, createGroupMapping, createPartner,
|
|
11
|
+
bindToGroups, bindToRoles, create, createAccountRole, createExtension, createExtensionLink, createExtensionVersion, createGroupMapping, createPartner,
|
|
12
12
|
createPersonalAccessToken,
|
|
13
13
|
createServiceCredential1,
|
|
14
14
|
createUser,
|
|
15
15
|
deactivateFidoCredentials,
|
|
16
16
|
defaults,
|
|
17
17
|
deleteAccountRole,
|
|
18
|
+
deleteExtension,
|
|
19
|
+
deleteExtensionLink,
|
|
20
|
+
deleteExtensionVersion,
|
|
18
21
|
deleteGroupMapping,
|
|
19
22
|
deleteMember,
|
|
20
23
|
deleteMemberFavorite,
|
|
@@ -22,11 +25,12 @@ import {
|
|
|
22
25
|
disassociateGroupToServiceCredential, enableFidoCredentials,
|
|
23
26
|
getAccess,
|
|
24
27
|
getAccountMembers,
|
|
25
|
-
|
|
28
|
+
getAccountMembers2,
|
|
26
29
|
getAccountSso,
|
|
30
|
+
getActiveExtensionVersion,
|
|
27
31
|
getAllAccountSso,
|
|
28
32
|
getAllGroupMapping,
|
|
29
|
-
getAllMemberFidoCredentials, getFeatures,
|
|
33
|
+
getAllMemberFidoCredentials, getExtensionVersion, getFeatures,
|
|
30
34
|
getGroupById,
|
|
31
35
|
getGroupResources,
|
|
32
36
|
getGroupResources1,
|
|
@@ -62,6 +66,9 @@ import {
|
|
|
62
66
|
isCreatedScmCredentials,
|
|
63
67
|
isCreatedScmCredentials1,
|
|
64
68
|
listAccountMemberFavorites,
|
|
69
|
+
listExtensionLinks,
|
|
70
|
+
listExtensions,
|
|
71
|
+
listExtensionVersions,
|
|
65
72
|
listMemberFavoritesByResource,
|
|
66
73
|
listScmCredentials,
|
|
67
74
|
listScmCredentials1, partialUpdateSso, personalAccessTokenAuthorization,
|
|
@@ -71,6 +78,8 @@ import {
|
|
|
71
78
|
scmCredentialSave, scmCredentialSave1, scmCredentialUpdate, scmCredentialUpdate1, scmDelete, sendDownloadEmail, ssoAddAttributes,
|
|
72
79
|
ssoConfigure, ssoGetAttributesConfig, ssoParseConfigurationFile, update1,
|
|
73
80
|
updateAccountRole,
|
|
81
|
+
updateExtension,
|
|
82
|
+
updateExtensionLink,
|
|
74
83
|
updateGroupMapping,
|
|
75
84
|
updateMemberPreferences,
|
|
76
85
|
updatePartnerAccountAdminData,
|
|
@@ -168,7 +177,7 @@ class AccountClient extends ReactQueryNetworkClient {
|
|
|
168
177
|
/**
|
|
169
178
|
* Gets all members (paginated).
|
|
170
179
|
*/
|
|
171
|
-
allMembers = this.infiniteQuery(
|
|
180
|
+
allMembers = this.infiniteQuery(getAccountMembers2)
|
|
172
181
|
/**
|
|
173
182
|
* Gets member Groups (paginated).
|
|
174
183
|
*/
|
|
@@ -610,6 +619,72 @@ class AccountClient extends ReactQueryNetworkClient {
|
|
|
610
619
|
* Get Service Credentials
|
|
611
620
|
*/
|
|
612
621
|
allServiceCredentialsWithPagination = this.query(getServiceCredentials)
|
|
622
|
+
|
|
623
|
+
/**
|
|
624
|
+
* Creates an extension.
|
|
625
|
+
*/
|
|
626
|
+
createExtension = this.mutation(createExtension)
|
|
627
|
+
|
|
628
|
+
/**
|
|
629
|
+
* Deletes an extension.
|
|
630
|
+
*/
|
|
631
|
+
deleteExtension = this.mutation(deleteExtension)
|
|
632
|
+
|
|
633
|
+
/**
|
|
634
|
+
* Updates an extension with a patch operation.
|
|
635
|
+
*/
|
|
636
|
+
patchExtension = this.mutation(updateExtension)
|
|
637
|
+
|
|
638
|
+
/**
|
|
639
|
+
* Lists all extensions.
|
|
640
|
+
*/
|
|
641
|
+
extensions = this.query(listExtensions)
|
|
642
|
+
|
|
643
|
+
/**
|
|
644
|
+
* Lists all versions of an extension.
|
|
645
|
+
*/
|
|
646
|
+
extensionVersions = this.query(listExtensionVersions)
|
|
647
|
+
|
|
648
|
+
/**
|
|
649
|
+
* Gets a specific version of an extension.
|
|
650
|
+
*/
|
|
651
|
+
getExtensionVersion = this.query(getExtensionVersion)
|
|
652
|
+
|
|
653
|
+
/**
|
|
654
|
+
* Gets the active version of an extension.
|
|
655
|
+
*/
|
|
656
|
+
getActiveExtensionVersion = this.query(getActiveExtensionVersion)
|
|
657
|
+
|
|
658
|
+
/**
|
|
659
|
+
* Creates a new version of an extension.
|
|
660
|
+
*/
|
|
661
|
+
createExtensionVersion = this.mutation(createExtensionVersion)
|
|
662
|
+
|
|
663
|
+
/**
|
|
664
|
+
* Deletes a specific version of an extension.
|
|
665
|
+
*/
|
|
666
|
+
deleteExtensionVersion = this.mutation(deleteExtensionVersion)
|
|
667
|
+
|
|
668
|
+
/**
|
|
669
|
+
* Lists all extension links.
|
|
670
|
+
*/
|
|
671
|
+
extensionLinks = this.query(listExtensionLinks)
|
|
672
|
+
|
|
673
|
+
/**
|
|
674
|
+
* Updates an extension link with a patch operation.
|
|
675
|
+
*/
|
|
676
|
+
patchExtensionLink = this.query(updateExtensionLink)
|
|
677
|
+
|
|
678
|
+
/**
|
|
679
|
+
* Creates a new extension link.
|
|
680
|
+
*/
|
|
681
|
+
createExtensionLink = this.mutation(createExtensionLink)
|
|
682
|
+
|
|
683
|
+
/**
|
|
684
|
+
* Deletes an extension link.
|
|
685
|
+
*/
|
|
686
|
+
deleteExtensionLink = this.mutation(deleteExtensionLink)
|
|
687
|
+
|
|
613
688
|
}
|
|
614
689
|
|
|
615
690
|
export const accountClient = new AccountClient()
|