@stack-spot/portal-network 0.72.1-beta.0 → 0.72.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.
@@ -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: "http://account-account-api.dev.stackspot.com",
11
+ baseUrl: "https://account-account-api.stg.stackspot.com",
12
12
  };
13
13
  const oazapfts = Oazapfts.runtime(defaults);
14
14
  export const servers = {
15
- generatedServerUrl: "http://account-account-api.dev.stackspot.com"
15
+ generatedServerUrl: "https://account-account-api.stg.stackspot.com"
16
16
  };
17
17
  export type UserScmInfoResponse = {
18
18
  /** Secrets name */
@@ -163,7 +163,6 @@ export type AccountMemberStackspotIamDto = {
163
163
  properties?: {
164
164
  [key: string]: object;
165
165
  };
166
- avatarImage?: string;
167
166
  };
168
167
  export type UpdateUserRequest = {
169
168
  /** User username */
@@ -186,8 +185,6 @@ export type UpdateUserRequest = {
186
185
  company?: string;
187
186
  /** User new password */
188
187
  password?: string;
189
- /** Image profile */
190
- avatarImageBase64?: string;
191
188
  };
192
189
  export type UpdateUserResponse = {
193
190
  username?: string;
@@ -637,7 +634,7 @@ export type AccountMemberResponse = {
637
634
  /** Account member status */
638
635
  isActive: boolean;
639
636
  /** Account member avatar URL */
640
- avatarImage?: string;
637
+ avatarUrl?: string;
641
638
  /** Account member full name */
642
639
  name: string;
643
640
  };
@@ -662,8 +659,6 @@ export type CreateUserRequest = {
662
659
  password?: string;
663
660
  /** User Company */
664
661
  company?: string;
665
- /** Image profile */
666
- avatarImageBase64?: string;
667
662
  };
668
663
  export type CreateUserResponse = {
669
664
  username: string;
@@ -806,42 +801,6 @@ export type CreateFeatureFlagRequest = {
806
801
  /** The feature flag description */
807
802
  description: string;
808
803
  };
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
804
  export type WelcomeEmailRequest = {
846
805
  /** Firstname of the contact requester */
847
806
  firstName: string;
@@ -1197,12 +1156,6 @@ export type UpdateGroupPermissionsRequest = {
1197
1156
  /** Slug from resource */
1198
1157
  resourceSlug: string;
1199
1158
  };
1200
- export type ExtensionUpdateRequest = {
1201
- /** The Id from active extension version */
1202
- activeVersionId?: string;
1203
- description?: ExtensionInfoByLanguageRequest;
1204
- displayName?: ExtensionInfoByLanguageRequest;
1205
- };
1206
1159
  export type AddNewEmailDomainRequest = {
1207
1160
  /** Email domains list that account users will use to login into StackSpot. Example: zup.com.br */
1208
1161
  domains: string[];
@@ -1521,23 +1474,6 @@ export type ResourceDto = {
1521
1474
  description?: string;
1522
1475
  "type"?: ResourceTypeDto;
1523
1476
  };
1524
- export type ExtensionVersionInfoByLanguageResponse = {
1525
- pt?: string;
1526
- en?: string;
1527
- };
1528
- export type ExtensionVersionResponse = {
1529
- /** Extension Version Id */
1530
- id: string;
1531
- /** Extension Slug */
1532
- extensionSlug: string;
1533
- /** The extension version name */
1534
- name: string;
1535
- /** The extension version content url */
1536
- dataUrl: string;
1537
- /** The extension version date and time of creation */
1538
- createdAt: string;
1539
- displayName?: ExtensionVersionInfoByLanguageResponse;
1540
- };
1541
1477
  export type AccountAuthenticationConfigResponse = {
1542
1478
  /** OpenID Well Known url for current account */
1543
1479
  openIdWellKnownUrl: string;
@@ -3367,112 +3303,6 @@ export function create({ createFeatureFlagRequest }: {
3367
3303
  body: createFeatureFlagRequest
3368
3304
  })));
3369
3305
  }
3370
- /**
3371
- * List all Account Extensions
3372
- */
3373
- export function listExtensions(opts?: Oazapfts.RequestOpts) {
3374
- return oazapfts.ok(oazapfts.fetchJson<{
3375
- status: 200;
3376
- data: ExtensionReadResponse[];
3377
- } | {
3378
- status: 400;
3379
- data: ErrorResponse;
3380
- } | {
3381
- status: 403;
3382
- data: ErrorResponse;
3383
- } | {
3384
- status: 422;
3385
- data: ErrorResponse;
3386
- } | {
3387
- status: 500;
3388
- data: ErrorResponse;
3389
- }>("/v1/extensions", {
3390
- ...opts
3391
- }));
3392
- }
3393
- /**
3394
- * Update Account Extension
3395
- */
3396
- export function createExtension({ extensionCreateRequest }: {
3397
- extensionCreateRequest: ExtensionCreateRequest;
3398
- }, opts?: Oazapfts.RequestOpts) {
3399
- return oazapfts.ok(oazapfts.fetchJson<{
3400
- status: 201;
3401
- } | {
3402
- status: 400;
3403
- data: ErrorResponse;
3404
- } | {
3405
- status: 403;
3406
- data: ErrorResponse;
3407
- } | {
3408
- status: 422;
3409
- data: ErrorResponse;
3410
- } | {
3411
- status: 500;
3412
- data: ErrorResponse;
3413
- }>("/v1/extensions", oazapfts.json({
3414
- ...opts,
3415
- method: "POST",
3416
- body: extensionCreateRequest
3417
- })));
3418
- }
3419
- /**
3420
- * List all Account Extension Versions
3421
- */
3422
- export function listExtensionVersions({ slug }: {
3423
- slug: string;
3424
- }, opts?: Oazapfts.RequestOpts) {
3425
- return oazapfts.ok(oazapfts.fetchJson<{
3426
- status: 200;
3427
- data: ExtensionVersionResumedReadResponse[];
3428
- } | {
3429
- status: 400;
3430
- data: ErrorResponse;
3431
- } | {
3432
- status: 403;
3433
- data: ErrorResponse;
3434
- } | {
3435
- status: 422;
3436
- data: ErrorResponse;
3437
- } | {
3438
- status: 500;
3439
- data: ErrorResponse;
3440
- }>(`/v1/extensions/${encodeURIComponent(slug)}/versions`, {
3441
- ...opts
3442
- }));
3443
- }
3444
- /**
3445
- * Create Account Extension Version
3446
- */
3447
- export function createExtensionVersion({ slug, name, body }: {
3448
- slug: string;
3449
- name: string;
3450
- body?: {
3451
- file: Blob;
3452
- };
3453
- }, opts?: Oazapfts.RequestOpts) {
3454
- return oazapfts.ok(oazapfts.fetchJson<{
3455
- status: 201;
3456
- } | {
3457
- status: 400;
3458
- data: ErrorResponse;
3459
- } | {
3460
- status: 403;
3461
- data: ErrorResponse;
3462
- } | {
3463
- status: 422;
3464
- data: ErrorResponse;
3465
- } | {
3466
- status: 500;
3467
- data: ErrorResponse;
3468
- }>(`/v1/extensions/${encodeURIComponent(slug)}/versions${QS.query(QS.explode({
3469
- name
3470
- }))}`, oazapfts.multipart({
3471
- ...opts,
3472
- method: "POST",
3473
- body
3474
- })));
3475
- }
3476
3306
  /**
3477
3307
  * Send Welcome Email
3478
3308
  */
@@ -4471,60 +4301,6 @@ export function disable({ id }: {
4471
4301
  method: "PATCH"
4472
4302
  }));
4473
4303
  }
4474
- /**
4475
- * Delete Account Extension
4476
- */
4477
- export function deleteExtension({ slug }: {
4478
- slug: string;
4479
- }, opts?: Oazapfts.RequestOpts) {
4480
- return oazapfts.ok(oazapfts.fetchJson<{
4481
- status: 204;
4482
- } | {
4483
- status: 400;
4484
- data: ErrorResponse;
4485
- } | {
4486
- status: 403;
4487
- data: ErrorResponse;
4488
- } | {
4489
- status: 422;
4490
- data: ErrorResponse;
4491
- } | {
4492
- status: 500;
4493
- data: ErrorResponse;
4494
- }>(`/v1/extensions/${encodeURIComponent(slug)}`, {
4495
- ...opts,
4496
- method: "DELETE"
4497
- }));
4498
- }
4499
- /**
4500
- * Update Account Extension
4501
- */
4502
- export function updateExtension({ slug, extensionUpdateRequest }: {
4503
- slug: string;
4504
- extensionUpdateRequest: ExtensionUpdateRequest;
4505
- }, opts?: Oazapfts.RequestOpts) {
4506
- return oazapfts.ok(oazapfts.fetchJson<{
4507
- status: 200;
4508
- } | {
4509
- status: 204;
4510
- } | {
4511
- status: 400;
4512
- data: ErrorResponse;
4513
- } | {
4514
- status: 403;
4515
- data: ErrorResponse;
4516
- } | {
4517
- status: 422;
4518
- data: ErrorResponse;
4519
- } | {
4520
- status: 500;
4521
- data: ErrorResponse;
4522
- }>(`/v1/extensions/${encodeURIComponent(slug)}`, oazapfts.json({
4523
- ...opts,
4524
- method: "PATCH",
4525
- body: extensionUpdateRequest
4526
- })));
4527
- }
4528
4304
  /**
4529
4305
  * Adds a new email domain to an existing account
4530
4306
  */
@@ -4689,16 +4465,6 @@ export function getServiceCredentialGroups({ id }: {
4689
4465
  ...opts
4690
4466
  }));
4691
4467
  }
4692
- export function getSecret({ id }: {
4693
- id: string;
4694
- }, opts?: Oazapfts.RequestOpts) {
4695
- return oazapfts.ok(oazapfts.fetchJson<{
4696
- status: 200;
4697
- data: string;
4698
- }>(`/v2/secrets/${encodeURIComponent(id)}`, {
4699
- ...opts
4700
- }));
4701
- }
4702
4468
  /**
4703
4469
  * Get Roles
4704
4470
  */
@@ -5786,83 +5552,6 @@ export function getAccountMembersToCollaborators({ size, page, sort, direction,
5786
5552
  ...opts
5787
5553
  }));
5788
5554
  }
5789
- /**
5790
- * Get a Account Extension Version
5791
- */
5792
- export function getExtensionVersion({ slug, versionName }: {
5793
- slug: string;
5794
- versionName: string;
5795
- }, opts?: Oazapfts.RequestOpts) {
5796
- return oazapfts.ok(oazapfts.fetchJson<{
5797
- status: 200;
5798
- data: ExtensionVersionResponse;
5799
- } | {
5800
- status: 400;
5801
- data: ErrorResponse;
5802
- } | {
5803
- status: 403;
5804
- data: ErrorResponse;
5805
- } | {
5806
- status: 422;
5807
- data: ErrorResponse;
5808
- } | {
5809
- status: 500;
5810
- data: ErrorResponse;
5811
- }>(`/v1/extensions/${encodeURIComponent(slug)}/versions/${encodeURIComponent(versionName)}`, {
5812
- ...opts
5813
- }));
5814
- }
5815
- /**
5816
- * Delete Account Extension Version
5817
- */
5818
- export function deleteExtensionVersion({ slug, versionName }: {
5819
- slug: string;
5820
- versionName: string;
5821
- }, opts?: Oazapfts.RequestOpts) {
5822
- return oazapfts.ok(oazapfts.fetchJson<{
5823
- status: 204;
5824
- } | {
5825
- status: 400;
5826
- data: ErrorResponse;
5827
- } | {
5828
- status: 403;
5829
- data: ErrorResponse;
5830
- } | {
5831
- status: 422;
5832
- data: ErrorResponse;
5833
- } | {
5834
- status: 500;
5835
- data: ErrorResponse;
5836
- }>(`/v1/extensions/${encodeURIComponent(slug)}/versions/${encodeURIComponent(versionName)}`, {
5837
- ...opts,
5838
- method: "DELETE"
5839
- }));
5840
- }
5841
- /**
5842
- * Get the active Extension Version
5843
- */
5844
- export function getActiveExtensionVersion({ slug }: {
5845
- slug: string;
5846
- }, opts?: Oazapfts.RequestOpts) {
5847
- return oazapfts.ok(oazapfts.fetchJson<{
5848
- status: 200;
5849
- data: ExtensionVersionResponse;
5850
- } | {
5851
- status: 400;
5852
- data: ErrorResponse;
5853
- } | {
5854
- status: 403;
5855
- data: ErrorResponse;
5856
- } | {
5857
- status: 422;
5858
- data: ErrorResponse;
5859
- } | {
5860
- status: 500;
5861
- data: ErrorResponse;
5862
- }>(`/v1/extensions/${encodeURIComponent(slug)}/active`, {
5863
- ...opts
5864
- }));
5865
- }
5866
5555
  /**
5867
5556
  * Get Authentication Configuration for account
5868
5557
  */
@@ -6159,28 +5848,6 @@ export function deleteResource({ resourceId }: {
6159
5848
  method: "DELETE"
6160
5849
  }));
6161
5850
  }
6162
- /**
6163
- * Removes member profile image
6164
- */
6165
- export function deleteProfileImage({ memberId }: {
6166
- memberId: string;
6167
- }, opts?: Oazapfts.RequestOpts) {
6168
- return oazapfts.ok(oazapfts.fetchJson<{
6169
- status: 204;
6170
- } | {
6171
- status: 400;
6172
- data: ErrorResponse;
6173
- } | {
6174
- status: 404;
6175
- data: ErrorResponse;
6176
- } | {
6177
- status: 500;
6178
- data: ErrorResponse;
6179
- }>(`/v1/members/${encodeURIComponent(memberId)}/profile-image`, {
6180
- ...opts,
6181
- method: "DELETE"
6182
- }));
6183
- }
6184
5851
  /**
6185
5852
  * Remove resource from member favorites
6186
5853
  */
@@ -8,15 +8,13 @@ import {
8
8
  bindGroupMembers,
9
9
  bindRoleGroups,
10
10
  bindRoles,
11
- bindToGroups, bindToRoles, create, createAccountRole, createExtension, createExtensionVersion, createGroupMapping, createPartner,
11
+ bindToGroups, bindToRoles, create, createAccountRole, createGroupMapping, createPartner,
12
12
  createPersonalAccessToken,
13
13
  createServiceCredential1,
14
14
  createUser,
15
15
  deactivateFidoCredentials,
16
16
  defaults,
17
17
  deleteAccountRole,
18
- deleteExtension,
19
- deleteExtensionVersion,
20
18
  deleteGroupMapping,
21
19
  deleteMember,
22
20
  deleteMemberFavorite,
@@ -26,10 +24,9 @@ import {
26
24
  getAccountMembers,
27
25
  getAccountMembers2,
28
26
  getAccountSso,
29
- getActiveExtensionVersion,
30
27
  getAllAccountSso,
31
28
  getAllGroupMapping,
32
- getAllMemberFidoCredentials, getExtensionVersion, getFeatures,
29
+ getAllMemberFidoCredentials, getFeatures,
33
30
  getGroupById,
34
31
  getGroupResources,
35
32
  getGroupResources1,
@@ -65,8 +62,6 @@ import {
65
62
  isCreatedScmCredentials,
66
63
  isCreatedScmCredentials1,
67
64
  listAccountMemberFavorites,
68
- listExtensions,
69
- listExtensionVersions,
70
65
  listMemberFavoritesByResource,
71
66
  listScmCredentials,
72
67
  listScmCredentials1, partialUpdateSso, personalAccessTokenAuthorization,
@@ -76,7 +71,6 @@ import {
76
71
  scmCredentialSave, scmCredentialSave1, scmCredentialUpdate, scmCredentialUpdate1, scmDelete, sendDownloadEmail, ssoAddAttributes,
77
72
  ssoConfigure, ssoGetAttributesConfig, ssoParseConfigurationFile, update1,
78
73
  updateAccountRole,
79
- updateExtension,
80
74
  updateGroupMapping,
81
75
  updateMemberPreferences,
82
76
  updatePartnerAccountAdminData,
@@ -616,52 +610,6 @@ class AccountClient extends ReactQueryNetworkClient {
616
610
  * Get Service Credentials
617
611
  */
618
612
  allServiceCredentialsWithPagination = this.query(getServiceCredentials)
619
-
620
- /**
621
- * Creates an extension.
622
- */
623
- createExtension = this.mutation(createExtension)
624
-
625
- /**
626
- * Deletes an extension.
627
- */
628
- deleteExtension = this.mutation(deleteExtension)
629
-
630
- /**
631
- * Updates an extension with a patch operation.
632
- */
633
- patchExtension = this.mutation(updateExtension)
634
-
635
- /**
636
- * Lists all extensions.
637
- */
638
- extensions = this.query(listExtensions)
639
-
640
- /**
641
- * Lists all versions of an extension.
642
- */
643
- extensionVersions = this.query(listExtensionVersions)
644
-
645
- /**
646
- * Gets a specific version of an extension.
647
- */
648
- getExtensionVersion = this.query(getExtensionVersion)
649
-
650
- /**
651
- * Gets the active version of an extension.
652
- */
653
- getActiveExtensionVersion = this.query(getActiveExtensionVersion)
654
-
655
- /**
656
- * Creates a new version of an extension.
657
- */
658
- createExtensionVersion = this.mutation(createExtensionVersion)
659
-
660
- /**
661
- * Deletes a specific version of an extension.
662
- */
663
- deleteExtensionVersion = this.mutation(deleteExtensionVersion)
664
-
665
613
  }
666
614
 
667
615
  export const accountClient = new AccountClient()