@stack-spot/portal-network 0.74.0 → 0.76.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.
@@ -514,7 +514,7 @@ declare class WorkspaceClient extends ReactQueryNetworkClient {
514
514
  listConsolidatedWorkspaceContext: OperationObject<{
515
515
  workspaceId: string;
516
516
  stackVersionId: string;
517
- $type: "action" | "plugin";
517
+ $type: "action" | "workflow" | "plugin";
518
518
  envName?: string | undefined;
519
519
  externalId?: string | undefined;
520
520
  }>;
@@ -523,7 +523,7 @@ declare class WorkspaceClient extends ReactQueryNetworkClient {
523
523
  */
524
524
  listConsolidatedContext: OperationObject<{
525
525
  stackVersionId: string;
526
- $type: "action" | "plugin";
526
+ $type: "action" | "workflow" | "plugin";
527
527
  envName?: string | undefined;
528
528
  externalId?: string | undefined;
529
529
  }>;
@@ -534,7 +534,7 @@ declare class WorkspaceClient extends ReactQueryNetworkClient {
534
534
  workspaceId: string;
535
535
  stackVersionId: string;
536
536
  externalId: string;
537
- $type: "action" | "plugin";
537
+ $type: "action" | "workflow" | "plugin";
538
538
  contextValuesRequest: import("../api/workspace.js").ContextValuesRequest;
539
539
  }>;
540
540
  /**
@@ -543,7 +543,7 @@ declare class WorkspaceClient extends ReactQueryNetworkClient {
543
543
  saveContextInAccount: OperationObject<{
544
544
  stackVersionId: string;
545
545
  externalId: string;
546
- $type: "action" | "plugin";
546
+ $type: "action" | "workflow" | "plugin";
547
547
  contextValuesRequest: import("../api/workspace.js").ContextValuesRequest;
548
548
  }>;
549
549
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stack-spot/portal-network",
3
- "version": "0.74.0",
3
+ "version": "0.76.0",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -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.stg.stackspot.com",
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.stg.stackspot.com"
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;
@@ -197,6 +200,7 @@ export type UpdateUserResponse = {
197
200
  isActive?: boolean;
198
201
  company?: string;
199
202
  password?: string;
203
+ avatarImage?: string;
200
204
  };
201
205
  export type UpdatePasswordRequest = {
202
206
  /** New password */
@@ -634,7 +638,7 @@ export type AccountMemberResponse = {
634
638
  /** Account member status */
635
639
  isActive: boolean;
636
640
  /** Account member avatar URL */
637
- avatarUrl?: string;
641
+ avatarImage?: string;
638
642
  /** Account member full name */
639
643
  name: string;
640
644
  };
@@ -659,6 +663,8 @@ export type CreateUserRequest = {
659
663
  password?: string;
660
664
  /** User Company */
661
665
  company?: string;
666
+ /** Image profile */
667
+ avatarImageBase64?: string;
662
668
  };
663
669
  export type CreateUserResponse = {
664
670
  username: string;
@@ -801,6 +807,97 @@ export type CreateFeatureFlagRequest = {
801
807
  /** The feature flag description */
802
808
  description: string;
803
809
  };
810
+ export type ExtensionInfoByLanguageResponse = {
811
+ pt?: string;
812
+ en?: string;
813
+ };
814
+ export type ExtensionReadResponse = {
815
+ /** Extension Id */
816
+ id: string;
817
+ /** Extension Slug */
818
+ slug: string;
819
+ description?: ExtensionInfoByLanguageResponse;
820
+ displayName?: ExtensionInfoByLanguageResponse;
821
+ /** The Id from active extension version */
822
+ activeVersionId?: string;
823
+ };
824
+ export type ExtensionInfoByLanguageRequest = {
825
+ pt?: string;
826
+ en?: string;
827
+ };
828
+ export type ExtensionCreateRequest = {
829
+ /** The slug to use in URL as unique identifying part representing the extension */
830
+ slug: string;
831
+ description?: ExtensionInfoByLanguageRequest;
832
+ displayName?: ExtensionInfoByLanguageRequest;
833
+ };
834
+ export type ExtensionVersionResumedReadResponse = {
835
+ /** Extension Version Id */
836
+ id: string;
837
+ /** Extension Slug */
838
+ extensionSlug: string;
839
+ /** The extension version name */
840
+ name: string;
841
+ /** The extension version content url */
842
+ dataUrl: string;
843
+ /** The extension version date and time of creation */
844
+ createdAt: string;
845
+ };
846
+ export type ExtensionVersionCreateResponse = {
847
+ /** Extension Version Id */
848
+ id: string;
849
+ /** The extension version name */
850
+ version: string;
851
+ /** The extension version date and time of creation */
852
+ createdAt: string;
853
+ };
854
+ export type ExtensionLinkReadResponse = {
855
+ /** Extension Link Id */
856
+ id: string;
857
+ /** Extension Slug related with the link */
858
+ extensionSlug: string;
859
+ /** The extension Link type */
860
+ "type": string;
861
+ /** The extension Link path */
862
+ path?: string;
863
+ /** The workspace id where the Extension should be displayed */
864
+ workspaceId?: string;
865
+ /** The menu height from Extension */
866
+ height?: number;
867
+ /** The menu weight from Extension */
868
+ weight?: number;
869
+ displayName?: ExtensionInfoByLanguageResponse;
870
+ };
871
+ export type ExtensionLinkCreateRequest = {
872
+ /** The slug from related Extension */
873
+ extensionSlug: string;
874
+ /** The type of the Extension Link */
875
+ "type": string;
876
+ /** The Workspace Id where the Extension should be displayed */
877
+ workspaceId?: string;
878
+ /** The Extension menu height */
879
+ height?: number;
880
+ /** The Extension menu weight */
881
+ weight?: number;
882
+ /** The Extension path */
883
+ path?: string;
884
+ };
885
+ export type ExtensionLinkCreateResponse = {
886
+ /** Extension Link Id */
887
+ id: string;
888
+ /** Extension Slug related with the Link */
889
+ extensionSlug: string;
890
+ /** The type of the Extension Link */
891
+ "type": string;
892
+ /** The Workspace Id where the Extension should be displayed */
893
+ workspaceId?: string;
894
+ /** The Extension menu height */
895
+ height?: number;
896
+ /** The Extension menu weight */
897
+ weight?: number;
898
+ /** The Extension path */
899
+ path?: string;
900
+ };
804
901
  export type WelcomeEmailRequest = {
805
902
  /** Firstname of the contact requester */
806
903
  firstName: string;
@@ -1156,6 +1253,24 @@ export type UpdateGroupPermissionsRequest = {
1156
1253
  /** Slug from resource */
1157
1254
  resourceSlug: string;
1158
1255
  };
1256
+ export type ExtensionUpdateRequest = {
1257
+ /** The Id from active extension version */
1258
+ activeVersionId?: string;
1259
+ description?: ExtensionInfoByLanguageRequest;
1260
+ displayName?: ExtensionInfoByLanguageRequest;
1261
+ };
1262
+ export type ExtensionLinkUpdateRequest = {
1263
+ /** The type of the Extension Link */
1264
+ "type"?: string;
1265
+ /** The Workspace Id where the Extension should be displayed */
1266
+ workspaceId?: string;
1267
+ /** The Extension menu height */
1268
+ height?: number;
1269
+ /** The Extension menu weight */
1270
+ weight?: number;
1271
+ /** The Extension path */
1272
+ path?: string;
1273
+ };
1159
1274
  export type AddNewEmailDomainRequest = {
1160
1275
  /** Email domains list that account users will use to login into StackSpot. Example: zup.com.br */
1161
1276
  domains: string[];
@@ -1474,6 +1589,23 @@ export type ResourceDto = {
1474
1589
  description?: string;
1475
1590
  "type"?: ResourceTypeDto;
1476
1591
  };
1592
+ export type ExtensionVersionInfoByLanguageResponse = {
1593
+ pt?: string;
1594
+ en?: string;
1595
+ };
1596
+ export type ExtensionVersionResponse = {
1597
+ /** Extension Version Id */
1598
+ id: string;
1599
+ /** Extension Slug */
1600
+ extensionSlug: string;
1601
+ /** The extension version name */
1602
+ name: string;
1603
+ /** The extension version content url */
1604
+ dataUrl: string;
1605
+ /** The extension version date and time of creation */
1606
+ createdAt: string;
1607
+ displayName?: ExtensionVersionInfoByLanguageResponse;
1608
+ };
1477
1609
  export type AccountAuthenticationConfigResponse = {
1478
1610
  /** OpenID Well Known url for current account */
1479
1611
  openIdWellKnownUrl: string;
@@ -3303,6 +3435,173 @@ export function create({ createFeatureFlagRequest }: {
3303
3435
  body: createFeatureFlagRequest
3304
3436
  })));
3305
3437
  }
3438
+ /**
3439
+ * List all Account Extensions
3440
+ */
3441
+ export function listExtensions(opts?: Oazapfts.RequestOpts) {
3442
+ return oazapfts.ok(oazapfts.fetchJson<{
3443
+ status: 200;
3444
+ data: ExtensionReadResponse[];
3445
+ } | {
3446
+ status: 400;
3447
+ data: ErrorResponse;
3448
+ } | {
3449
+ status: 403;
3450
+ data: ErrorResponse;
3451
+ } | {
3452
+ status: 422;
3453
+ data: ErrorResponse;
3454
+ } | {
3455
+ status: 500;
3456
+ data: ErrorResponse;
3457
+ }>("/v1/extensions", {
3458
+ ...opts
3459
+ }));
3460
+ }
3461
+ /**
3462
+ * Create Account Extension
3463
+ */
3464
+ export function createExtension({ extensionCreateRequest }: {
3465
+ extensionCreateRequest: ExtensionCreateRequest;
3466
+ }, opts?: Oazapfts.RequestOpts) {
3467
+ return oazapfts.ok(oazapfts.fetchJson<{
3468
+ status: 201;
3469
+ } | {
3470
+ status: 400;
3471
+ data: ErrorResponse;
3472
+ } | {
3473
+ status: 403;
3474
+ data: ErrorResponse;
3475
+ } | {
3476
+ status: 422;
3477
+ data: ErrorResponse;
3478
+ } | {
3479
+ status: 500;
3480
+ data: ErrorResponse;
3481
+ }>("/v1/extensions", oazapfts.json({
3482
+ ...opts,
3483
+ method: "POST",
3484
+ body: extensionCreateRequest
3485
+ })));
3486
+ }
3487
+ /**
3488
+ * List all Account Extension Versions
3489
+ */
3490
+ export function listExtensionVersions({ slug }: {
3491
+ slug: string;
3492
+ }, opts?: Oazapfts.RequestOpts) {
3493
+ return oazapfts.ok(oazapfts.fetchJson<{
3494
+ status: 200;
3495
+ data: ExtensionVersionResumedReadResponse[];
3496
+ } | {
3497
+ status: 400;
3498
+ data: ErrorResponse;
3499
+ } | {
3500
+ status: 403;
3501
+ data: ErrorResponse;
3502
+ } | {
3503
+ status: 422;
3504
+ data: ErrorResponse;
3505
+ } | {
3506
+ status: 500;
3507
+ data: ErrorResponse;
3508
+ }>(`/v1/extensions/${encodeURIComponent(slug)}/versions`, {
3509
+ ...opts
3510
+ }));
3511
+ }
3512
+ /**
3513
+ * Create Account Extension Version
3514
+ */
3515
+ export function createExtensionVersion({ slug, name, body }: {
3516
+ slug: string;
3517
+ name: string;
3518
+ body?: {
3519
+ file: Blob;
3520
+ };
3521
+ }, opts?: Oazapfts.RequestOpts) {
3522
+ return oazapfts.ok(oazapfts.fetchJson<{
3523
+ status: 201;
3524
+ data: ExtensionVersionCreateResponse;
3525
+ } | {
3526
+ status: 400;
3527
+ data: ErrorResponse;
3528
+ } | {
3529
+ status: 403;
3530
+ data: ErrorResponse;
3531
+ } | {
3532
+ status: 422;
3533
+ data: ErrorResponse;
3534
+ } | {
3535
+ status: 500;
3536
+ data: ErrorResponse;
3537
+ }>(`/v1/extensions/${encodeURIComponent(slug)}/versions${QS.query(QS.explode({
3538
+ name
3539
+ }))}`, oazapfts.multipart({
3540
+ ...opts,
3541
+ method: "POST",
3542
+ body
3543
+ })));
3544
+ }
3545
+ /**
3546
+ * List all Account Extension Links
3547
+ */
3548
+ export function listExtensionLinks({ workspaceId, $type, extensionSlug, showOnlyActive }: {
3549
+ workspaceId?: string;
3550
+ $type?: string;
3551
+ extensionSlug?: any;
3552
+ showOnlyActive?: any;
3553
+ }, opts?: Oazapfts.RequestOpts) {
3554
+ return oazapfts.ok(oazapfts.fetchJson<{
3555
+ status: 200;
3556
+ data: ExtensionLinkReadResponse[];
3557
+ } | {
3558
+ status: 400;
3559
+ data: ErrorResponse;
3560
+ } | {
3561
+ status: 403;
3562
+ data: ErrorResponse;
3563
+ } | {
3564
+ status: 422;
3565
+ data: ErrorResponse;
3566
+ } | {
3567
+ status: 500;
3568
+ data: ErrorResponse;
3569
+ }>(`/v1/extension-links${QS.query(QS.explode({
3570
+ workspaceId,
3571
+ "type": $type,
3572
+ extensionSlug,
3573
+ showOnlyActive
3574
+ }))}`, {
3575
+ ...opts
3576
+ }));
3577
+ }
3578
+ /**
3579
+ * Create Account Extension Link
3580
+ */
3581
+ export function createExtensionLink({ extensionLinkCreateRequest }: {
3582
+ extensionLinkCreateRequest: ExtensionLinkCreateRequest;
3583
+ }, opts?: Oazapfts.RequestOpts) {
3584
+ return oazapfts.ok(oazapfts.fetchJson<{
3585
+ status: 201;
3586
+ data: ExtensionLinkCreateResponse;
3587
+ } | {
3588
+ status: 400;
3589
+ data: ErrorResponse;
3590
+ } | {
3591
+ status: 403;
3592
+ data: ErrorResponse;
3593
+ } | {
3594
+ status: 422;
3595
+ data: ErrorResponse;
3596
+ } | {
3597
+ status: 500;
3598
+ data: ErrorResponse;
3599
+ }>("/v1/extension-links", oazapfts.json({
3600
+ ...opts,
3601
+ method: "POST",
3602
+ body: extensionLinkCreateRequest
3603
+ })));
3604
+ }
3306
3605
  /**
3307
3606
  * Send Welcome Email
3308
3607
  */
@@ -4301,6 +4600,114 @@ export function disable({ id }: {
4301
4600
  method: "PATCH"
4302
4601
  }));
4303
4602
  }
4603
+ /**
4604
+ * Delete Account Extension
4605
+ */
4606
+ export function deleteExtension({ slug }: {
4607
+ slug: string;
4608
+ }, opts?: Oazapfts.RequestOpts) {
4609
+ return oazapfts.ok(oazapfts.fetchJson<{
4610
+ status: 204;
4611
+ } | {
4612
+ status: 400;
4613
+ data: ErrorResponse;
4614
+ } | {
4615
+ status: 403;
4616
+ data: ErrorResponse;
4617
+ } | {
4618
+ status: 422;
4619
+ data: ErrorResponse;
4620
+ } | {
4621
+ status: 500;
4622
+ data: ErrorResponse;
4623
+ }>(`/v1/extensions/${encodeURIComponent(slug)}`, {
4624
+ ...opts,
4625
+ method: "DELETE"
4626
+ }));
4627
+ }
4628
+ /**
4629
+ * Update Account Extension
4630
+ */
4631
+ export function updateExtension({ slug, extensionUpdateRequest }: {
4632
+ slug: string;
4633
+ extensionUpdateRequest: ExtensionUpdateRequest;
4634
+ }, opts?: Oazapfts.RequestOpts) {
4635
+ return oazapfts.ok(oazapfts.fetchJson<{
4636
+ status: 200;
4637
+ } | {
4638
+ status: 204;
4639
+ } | {
4640
+ status: 400;
4641
+ data: ErrorResponse;
4642
+ } | {
4643
+ status: 403;
4644
+ data: ErrorResponse;
4645
+ } | {
4646
+ status: 422;
4647
+ data: ErrorResponse;
4648
+ } | {
4649
+ status: 500;
4650
+ data: ErrorResponse;
4651
+ }>(`/v1/extensions/${encodeURIComponent(slug)}`, oazapfts.json({
4652
+ ...opts,
4653
+ method: "PATCH",
4654
+ body: extensionUpdateRequest
4655
+ })));
4656
+ }
4657
+ /**
4658
+ * Delete Account Extension Link
4659
+ */
4660
+ export function deleteExtensionLink({ id }: {
4661
+ id: string;
4662
+ }, opts?: Oazapfts.RequestOpts) {
4663
+ return oazapfts.ok(oazapfts.fetchJson<{
4664
+ status: 204;
4665
+ } | {
4666
+ status: 400;
4667
+ data: ErrorResponse;
4668
+ } | {
4669
+ status: 403;
4670
+ data: ErrorResponse;
4671
+ } | {
4672
+ status: 422;
4673
+ data: ErrorResponse;
4674
+ } | {
4675
+ status: 500;
4676
+ data: ErrorResponse;
4677
+ }>(`/v1/extension-links/${encodeURIComponent(id)}`, {
4678
+ ...opts,
4679
+ method: "DELETE"
4680
+ }));
4681
+ }
4682
+ /**
4683
+ * Update Account Extension Link
4684
+ */
4685
+ export function updateExtensionLink({ id, extensionLinkUpdateRequest }: {
4686
+ id: string;
4687
+ extensionLinkUpdateRequest: ExtensionLinkUpdateRequest;
4688
+ }, opts?: Oazapfts.RequestOpts) {
4689
+ return oazapfts.ok(oazapfts.fetchJson<{
4690
+ status: 200;
4691
+ } | {
4692
+ status: 204;
4693
+ } | {
4694
+ status: 400;
4695
+ data: ErrorResponse;
4696
+ } | {
4697
+ status: 403;
4698
+ data: ErrorResponse;
4699
+ } | {
4700
+ status: 422;
4701
+ data: ErrorResponse;
4702
+ } | {
4703
+ status: 500;
4704
+ data: ErrorResponse;
4705
+ }>(`/v1/extension-links/${encodeURIComponent(id)}`, oazapfts.json({
4706
+ ...opts,
4707
+ method: "PATCH",
4708
+ body: extensionLinkUpdateRequest
4709
+ })));
4710
+ }
4304
4711
  /**
4305
4712
  * Adds a new email domain to an existing account
4306
4713
  */
@@ -5552,6 +5959,83 @@ export function getAccountMembersToCollaborators({ size, page, sort, direction,
5552
5959
  ...opts
5553
5960
  }));
5554
5961
  }
5962
+ /**
5963
+ * Get a Account Extension Version
5964
+ */
5965
+ export function getExtensionVersion({ slug, versionName }: {
5966
+ slug: string;
5967
+ versionName: string;
5968
+ }, opts?: Oazapfts.RequestOpts) {
5969
+ return oazapfts.ok(oazapfts.fetchJson<{
5970
+ status: 200;
5971
+ data: ExtensionVersionResponse;
5972
+ } | {
5973
+ status: 400;
5974
+ data: ErrorResponse;
5975
+ } | {
5976
+ status: 403;
5977
+ data: ErrorResponse;
5978
+ } | {
5979
+ status: 422;
5980
+ data: ErrorResponse;
5981
+ } | {
5982
+ status: 500;
5983
+ data: ErrorResponse;
5984
+ }>(`/v1/extensions/${encodeURIComponent(slug)}/versions/${encodeURIComponent(versionName)}`, {
5985
+ ...opts
5986
+ }));
5987
+ }
5988
+ /**
5989
+ * Delete Account Extension Version
5990
+ */
5991
+ export function deleteExtensionVersion({ slug, versionName }: {
5992
+ slug: string;
5993
+ versionName: string;
5994
+ }, opts?: Oazapfts.RequestOpts) {
5995
+ return oazapfts.ok(oazapfts.fetchJson<{
5996
+ status: 204;
5997
+ } | {
5998
+ status: 400;
5999
+ data: ErrorResponse;
6000
+ } | {
6001
+ status: 403;
6002
+ data: ErrorResponse;
6003
+ } | {
6004
+ status: 422;
6005
+ data: ErrorResponse;
6006
+ } | {
6007
+ status: 500;
6008
+ data: ErrorResponse;
6009
+ }>(`/v1/extensions/${encodeURIComponent(slug)}/versions/${encodeURIComponent(versionName)}`, {
6010
+ ...opts,
6011
+ method: "DELETE"
6012
+ }));
6013
+ }
6014
+ /**
6015
+ * Get the active Extension Version
6016
+ */
6017
+ export function getActiveExtensionVersion({ slug }: {
6018
+ slug: string;
6019
+ }, opts?: Oazapfts.RequestOpts) {
6020
+ return oazapfts.ok(oazapfts.fetchJson<{
6021
+ status: 200;
6022
+ data: ExtensionVersionResponse;
6023
+ } | {
6024
+ status: 400;
6025
+ data: ErrorResponse;
6026
+ } | {
6027
+ status: 403;
6028
+ data: ErrorResponse;
6029
+ } | {
6030
+ status: 422;
6031
+ data: ErrorResponse;
6032
+ } | {
6033
+ status: 500;
6034
+ data: ErrorResponse;
6035
+ }>(`/v1/extensions/${encodeURIComponent(slug)}/active`, {
6036
+ ...opts
6037
+ }));
6038
+ }
5555
6039
  /**
5556
6040
  * Get Authentication Configuration for account
5557
6041
  */
@@ -5848,6 +6332,28 @@ export function deleteResource({ resourceId }: {
5848
6332
  method: "DELETE"
5849
6333
  }));
5850
6334
  }
6335
+ /**
6336
+ * Removes member profile image
6337
+ */
6338
+ export function deleteProfileImage({ memberId }: {
6339
+ memberId: string;
6340
+ }, opts?: Oazapfts.RequestOpts) {
6341
+ return oazapfts.ok(oazapfts.fetchJson<{
6342
+ status: 204;
6343
+ } | {
6344
+ status: 400;
6345
+ data: ErrorResponse;
6346
+ } | {
6347
+ status: 404;
6348
+ data: ErrorResponse;
6349
+ } | {
6350
+ status: 500;
6351
+ data: ErrorResponse;
6352
+ }>(`/v1/members/${encodeURIComponent(memberId)}/profile-image`, {
6353
+ ...opts,
6354
+ method: "DELETE"
6355
+ }));
6356
+ }
5851
6357
  /**
5852
6358
  * Remove resource from member favorites
5853
6359
  */