@stack-spot/portal-network 0.157.2-beta.2 → 0.158.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.
Files changed (67) hide show
  1. package/CHANGELOG.md +12 -65
  2. package/dist/api/account.d.ts +40 -5
  3. package/dist/api/account.d.ts.map +1 -1
  4. package/dist/api/account.js +34 -2
  5. package/dist/api/account.js.map +1 -1
  6. package/dist/api/codeShift.d.ts +196 -110
  7. package/dist/api/codeShift.d.ts.map +1 -1
  8. package/dist/api/codeShift.js +94 -37
  9. package/dist/api/codeShift.js.map +1 -1
  10. package/dist/api/workspaceManager.d.ts +387 -48
  11. package/dist/api/workspaceManager.d.ts.map +1 -1
  12. package/dist/api/workspaceManager.js +334 -2
  13. package/dist/api/workspaceManager.js.map +1 -1
  14. package/dist/apis.json +1 -1
  15. package/dist/client/account.d.ts +1 -1
  16. package/dist/client/agent-tools.d.ts +3 -89
  17. package/dist/client/agent-tools.d.ts.map +1 -1
  18. package/dist/client/agent-tools.js +2 -133
  19. package/dist/client/agent-tools.js.map +1 -1
  20. package/dist/client/agent.d.ts +50 -5
  21. package/dist/client/agent.d.ts.map +1 -1
  22. package/dist/client/agent.js +64 -0
  23. package/dist/client/agent.js.map +1 -1
  24. package/dist/client/ai.d.ts +0 -7
  25. package/dist/client/ai.d.ts.map +1 -1
  26. package/dist/client/ai.js +1 -10
  27. package/dist/client/ai.js.map +1 -1
  28. package/dist/client/code-shift.d.ts +67 -25
  29. package/dist/client/code-shift.d.ts.map +1 -1
  30. package/dist/client/code-shift.js +73 -30
  31. package/dist/client/code-shift.js.map +1 -1
  32. package/dist/client/gen-ai-inference.d.ts +0 -9
  33. package/dist/client/gen-ai-inference.d.ts.map +1 -1
  34. package/dist/client/gen-ai-inference.js +1 -10
  35. package/dist/client/gen-ai-inference.js.map +1 -1
  36. package/dist/client/types.d.ts +4 -5
  37. package/dist/client/types.d.ts.map +1 -1
  38. package/dist/client/workspace-manager.d.ts +6 -0
  39. package/dist/client/workspace-manager.d.ts.map +1 -1
  40. package/dist/client/workspace-manager.js +10 -1
  41. package/dist/client/workspace-manager.js.map +1 -1
  42. package/dist/error/DefaultAPIError.d.ts +1 -1
  43. package/dist/error/DefaultAPIError.d.ts.map +1 -1
  44. package/dist/error/DefaultAPIError.js +0 -7
  45. package/dist/error/DefaultAPIError.js.map +1 -1
  46. package/package.json +1 -1
  47. package/readme.md +1 -1
  48. package/src/api/account.ts +79 -7
  49. package/src/api/agent-tools.ts +0 -3
  50. package/src/api/agent.ts +0 -2
  51. package/src/api/codeShift.ts +481 -257
  52. package/src/api/notification.ts +0 -2
  53. package/src/api/workspaceManager.ts +409 -50
  54. package/src/apis.json +1 -1
  55. package/src/client/agent-tools.ts +3 -102
  56. package/src/client/agent.ts +68 -0
  57. package/src/client/ai.ts +0 -6
  58. package/src/client/code-shift.ts +57 -19
  59. package/src/client/gen-ai-inference.ts +1 -6
  60. package/src/client/types.ts +5 -7
  61. package/src/client/workspace-manager.ts +5 -0
  62. package/src/error/DefaultAPIError.ts +1 -9
  63. package/dist/error/types.d.ts +0 -18
  64. package/dist/error/types.d.ts.map +0 -1
  65. package/dist/error/types.js +0 -2
  66. package/dist/error/types.js.map +0 -1
  67. package/src/error/types.ts +0 -20
package/CHANGELOG.md CHANGED
@@ -1,55 +1,39 @@
1
1
  # Changelog
2
2
 
3
- ## [0.157.2-beta.2](https://github.com/stack-spot/portal-commons/compare/portal-network-beta@v0.157.1-beta.2...portal-network-beta@v0.157.2-beta.2) (2025-07-15)
3
+ ## [0.158.0](https://github.com/stack-spot/portal-commons/compare/portal-network@v0.157.0...portal-network@v0.158.0) (2025-07-17)
4
4
 
5
5
 
6
- ### Bug Fixes
7
-
8
- * changes in discover api ([#1215](https://github.com/stack-spot/portal-commons/issues/1215)) ([cb95a55](https://github.com/stack-spot/portal-commons/commit/cb95a550824854e268cce2b2a7e8adaf1b360e83))
9
-
10
- ## [0.157.1-beta.2](https://github.com/stack-spot/portal-commons/compare/portal-network-beta@v0.157.0-beta.2...portal-network-beta@v0.157.1-beta.2) (2025-07-14)
11
-
12
-
13
- ### Bug Fixes
6
+ ### Features
14
7
 
15
- * Refactors report types and adds `ReportStatus` enum ([#1209](https://github.com/stack-spot/portal-commons/issues/1209)) ([7132382](https://github.com/stack-spot/portal-commons/commit/7132382a337d3f521153ad43e529764082b81b68))
8
+ * workflow extensions ([#1234](https://github.com/stack-spot/portal-commons/issues/1234)) ([3b320ab](https://github.com/stack-spot/portal-commons/commit/3b320ab7ecff15c3af48625d1ba22396b36dcffc))
16
9
 
17
- ## [0.157.0-beta.2](https://github.com/stack-spot/portal-commons/compare/portal-network-beta@v0.156.1-beta.2...portal-network-beta@v0.157.0-beta.2) (2025-07-14)
10
+ ## [0.157.0](https://github.com/stack-spot/portal-commons/compare/portal-network@v0.156.2...portal-network@v0.157.0) (2025-07-16)
18
11
 
19
12
 
20
13
  ### Features
21
14
 
22
- * add suggested messages beta ([#1204](https://github.com/stack-spot/portal-commons/issues/1204)) ([40b58f1](https://github.com/stack-spot/portal-commons/commit/40b58f1c0b1bd5c06d9365c8cb36ad3c53b5d114))
23
- * code shift validate scm url beta ([#1205](https://github.com/stack-spot/portal-commons/issues/1205)) ([bdf9984](https://github.com/stack-spot/portal-commons/commit/bdf9984d304f90197b734d4aba8eb12528a74e1d))
15
+ * add query in workspace manager ([#1232](https://github.com/stack-spot/portal-commons/issues/1232)) ([17c617f](https://github.com/stack-spot/portal-commons/commit/17c617fbde32035f4d2ed677ebcec55b1463a3d2))
24
16
 
25
- ## [0.156.1-beta.2](https://github.com/stack-spot/portal-commons/compare/portal-network-beta@v0.156.0-beta.2...portal-network-beta@v0.156.1-beta.2) (2025-07-11)
17
+ ## [0.156.2](https://github.com/stack-spot/portal-commons/compare/portal-network@v0.156.1...portal-network@v0.156.2) (2025-07-15)
26
18
 
27
19
 
28
20
  ### Bug Fixes
29
21
 
30
- * add sendAgentMessage ([#1198](https://github.com/stack-spot/portal-commons/issues/1198)) ([c16b103](https://github.com/stack-spot/portal-commons/commit/c16b1031155661a1ad957fb909d7c44c827137a9))
22
+ * update discover prd url ([#1218](https://github.com/stack-spot/portal-commons/issues/1218)) ([7b67606](https://github.com/stack-spot/portal-commons/commit/7b6760621ccbce2040387128d210c3a6ad7a36da))
31
23
 
32
- ## [0.156.0-beta.2](https://github.com/stack-spot/portal-commons/compare/portal-network-beta@v0.155.0-beta.2...portal-network-beta@v0.156.0-beta.2) (2025-07-11)
24
+ ## [0.156.1](https://github.com/stack-spot/portal-commons/compare/portal-network@v0.156.0...portal-network@v0.156.1) (2025-07-15)
33
25
 
34
26
 
35
- ### Features
27
+ ### Bug Fixes
36
28
 
37
- * 1530 refactor ks ([#1187](https://github.com/stack-spot/portal-commons/issues/1187)) ([b133ec8](https://github.com/stack-spot/portal-commons/commit/b133ec8a047623adf4db9d839017a551fae80029))
29
+ * changes in discover api ([#1215](https://github.com/stack-spot/portal-commons/issues/1215)) ([cb95a55](https://github.com/stack-spot/portal-commons/commit/cb95a550824854e268cce2b2a7e8adaf1b360e83))
38
30
 
39
- ## [0.155.0-beta.2](https://github.com/stack-spot/portal-commons/compare/portal-network-beta@v0.154.0-beta.2...portal-network-beta@v0.155.0-beta.2) (2025-07-11)
31
+ ## [0.156.0](https://github.com/stack-spot/portal-commons/compare/portal-network@v0.155.0...portal-network@v0.156.0) (2025-07-11)
40
32
 
41
33
 
42
34
  ### Features
43
35
 
44
- * accordion component beta ([#1191](https://github.com/stack-spot/portal-commons/issues/1191)) ([b49a388](https://github.com/stack-spot/portal-commons/commit/b49a388660523bab21abcdb17fc92341ffd40570))
45
- * Add calculate condition ([#1170](https://github.com/stack-spot/portal-commons/issues/1170)) ([9a4557f](https://github.com/stack-spot/portal-commons/commit/9a4557f1a5d810649f6222c5181cd8c1e53c3d54))
46
- * code shift validate scm url ([#1195](https://github.com/stack-spot/portal-commons/issues/1195)) ([53ecdd0](https://github.com/stack-spot/portal-commons/commit/53ecdd0805494cdb072c25f05f26303b7049e874))
47
- * New account methods ([#1185](https://github.com/stack-spot/portal-commons/issues/1185)) ([2ada8ea](https://github.com/stack-spot/portal-commons/commit/2ada8eaaf1362bb90e43920d58d02be8cede93db))
48
-
49
-
50
- ### Bug Fixes
51
-
52
- * Improve naming ([#1188](https://github.com/stack-spot/portal-commons/issues/1188)) ([5beeb04](https://github.com/stack-spot/portal-commons/commit/5beeb040a4adc22ba38c1dfeaf866105e4236b9d))
36
+ * 1530 refactor ks ([#1187](https://github.com/stack-spot/portal-commons/issues/1187)) ([b133ec8](https://github.com/stack-spot/portal-commons/commit/b133ec8a047623adf4db9d839017a551fae80029))
53
37
 
54
38
  ## [0.155.0](https://github.com/stack-spot/portal-commons/compare/portal-network@v0.154.1...portal-network@v0.155.0) (2025-07-10)
55
39
 
@@ -73,49 +57,12 @@
73
57
  * New account methods ([#1185](https://github.com/stack-spot/portal-commons/issues/1185)) ([2ada8ea](https://github.com/stack-spot/portal-commons/commit/2ada8eaaf1362bb90e43920d58d02be8cede93db))
74
58
 
75
59
  ## [0.153.0](https://github.com/stack-spot/portal-commons/compare/portal-network@v0.152.0...portal-network@v0.153.0) (2025-07-10)
76
- ## [0.154.0-beta.2](https://github.com/stack-spot/portal-commons/compare/portal-network-beta@v0.153.0-beta.2...portal-network-beta@v0.154.0-beta.2) (2025-07-10)
77
60
 
78
61
 
79
62
  ### Features
80
63
 
81
64
  * add new requests in data integration api ([#1180](https://github.com/stack-spot/portal-commons/issues/1180)) ([c72662b](https://github.com/stack-spot/portal-commons/commit/c72662bef9f71a6fa166838e669d79987428b026))
82
65
 
83
- ## [0.153.0-beta.2](https://github.com/stack-spot/portal-commons/compare/portal-network-beta@v0.152.0-beta.2...portal-network-beta@v0.153.0-beta.2) (2025-07-09)
84
-
85
-
86
- ### Features
87
-
88
- * code shift validate scm url ([#1181](https://github.com/stack-spot/portal-commons/issues/1181)) ([0286404](https://github.com/stack-spot/portal-commons/commit/0286404be9c40b273afde21fc096bd309159da22))
89
-
90
- ## [0.152.0-beta.2](https://github.com/stack-spot/portal-commons/compare/portal-network-beta@v0.151.0-beta.2...portal-network-beta@v0.152.0-beta.2) (2025-07-08)
91
-
92
-
93
- ### Features
94
-
95
- * add new requests in workspace ai ([#1177](https://github.com/stack-spot/portal-commons/issues/1177)) ([02a1c3b](https://github.com/stack-spot/portal-commons/commit/02a1c3bec4dbbe012a558159dcc6df8137396ba9))
96
- * add workflow error message ([#1150](https://github.com/stack-spot/portal-commons/issues/1150)) ([f6e71f8](https://github.com/stack-spot/portal-commons/commit/f6e71f825a6d97c9ef42673d1589d99cb49d2426))
97
- * toolkit fork ([#1171](https://github.com/stack-spot/portal-commons/issues/1171)) ([73b8c4a](https://github.com/stack-spot/portal-commons/commit/73b8c4a382885fb396bc1d05e0c6bce69c1dbff0))
98
-
99
-
100
- ### Bug Fixes
101
-
102
- * map cnt workflow errors ([#1165](https://github.com/stack-spot/portal-commons/issues/1165)) ([4409958](https://github.com/stack-spot/portal-commons/commit/4409958fbc4e7448a128f61ccdb9dcc8fc274c30))
103
- * merge 'feat-beta-releases' into beta-releases ([cb9e293](https://github.com/stack-spot/portal-commons/commit/cb9e2936740e3b97d4724c092c6d114e80701319))
104
- * publish Test ([#1160](https://github.com/stack-spot/portal-commons/issues/1160)) ([4507af5](https://github.com/stack-spot/portal-commons/commit/4507af5de59d6a5603d74965c75be67216e86c2b))
105
- * test ([e974bb4](https://github.com/stack-spot/portal-commons/commit/e974bb47ee5333bcf1d25307a92b17f2c1e93a1a))
106
- * test ([b8ccf50](https://github.com/stack-spot/portal-commons/commit/b8ccf507a4291abf19b83b0b4ca7b1a9893764d7))
107
- * test ([#1134](https://github.com/stack-spot/portal-commons/issues/1134)) ([e58acb9](https://github.com/stack-spot/portal-commons/commit/e58acb90919f03e99debb0ae159385bd5aaa63d6))
108
- * test ([#1135](https://github.com/stack-spot/portal-commons/issues/1135)) ([558c524](https://github.com/stack-spot/portal-commons/commit/558c5243e599031f6bee6160614fbae9ec715d5d))
109
- * test ([#1157](https://github.com/stack-spot/portal-commons/issues/1157)) ([2c50106](https://github.com/stack-spot/portal-commons/commit/2c5010606c2b9c2b95091370bef895727b1c36ec))
110
- * Test ([#1162](https://github.com/stack-spot/portal-commons/issues/1162)) ([94c553d](https://github.com/stack-spot/portal-commons/commit/94c553d41ec9c3a77d3c79292fc7552938c56080))
111
- * teste ([01ab2f6](https://github.com/stack-spot/portal-commons/commit/01ab2f6deb912cf19256bd874b33ebe266579c90))
112
- * testing ([#1128](https://github.com/stack-spot/portal-commons/issues/1128)) ([54a3e1c](https://github.com/stack-spot/portal-commons/commit/54a3e1c49c787275646e0ac6238ae32b7338f592))
113
- * Testing ([#1144](https://github.com/stack-spot/portal-commons/issues/1144)) ([7671400](https://github.com/stack-spot/portal-commons/commit/76714008d9ba587af41d46135e2819fc7b2b991a))
114
- * testing ([#1146](https://github.com/stack-spot/portal-commons/issues/1146)) ([fd80eff](https://github.com/stack-spot/portal-commons/commit/fd80eff96a07182ead5ad8d5975796a558b97830))
115
- * update 'main' into beta-release ([5205864](https://github.com/stack-spot/portal-commons/commit/5205864d2f7782035d640648c8a8554c01573936))
116
- * update tools 'feat-1615-agent-migration' into beta-release ([d9c6b6f](https://github.com/stack-spot/portal-commons/commit/d9c6b6fccbdcaacaa5067b7e3f1251c7ffe8236a))
117
- * update version ([#1179](https://github.com/stack-spot/portal-commons/issues/1179)) ([76e4408](https://github.com/stack-spot/portal-commons/commit/76e4408f5cfa084ab010e31f2a7cada104111d6c))
118
-
119
66
  ## [0.152.0](https://github.com/stack-spot/portal-commons/compare/portal-network@v0.151.0...portal-network@v0.152.0) (2025-07-08)
120
67
 
121
68
 
@@ -167,7 +167,7 @@ export type SecretResponse = {
167
167
  /** Secret scope */
168
168
  scope: "USER" | "SCOPED" | "ACCOUNT";
169
169
  /** Scoped to */
170
- scopedTo?: "WORKSPACE";
170
+ scopedTo?: "WORKSPACE" | "SPOT";
171
171
  /** Scoped to value */
172
172
  scopedValue?: string;
173
173
  /** Expiration date of the secret */
@@ -205,7 +205,7 @@ export type UpdateSecretRequest = {
205
205
  /** Secret scope */
206
206
  scope?: "USER" | "SCOPED" | "ACCOUNT";
207
207
  /** Scoped to */
208
- scopedTo?: "WORKSPACE";
208
+ scopedTo?: "WORKSPACE" | "SPOT";
209
209
  /** Scope value */
210
210
  scopeValue?: string;
211
211
  /** Expiration date of the secret */
@@ -822,7 +822,7 @@ export type CreateSecretRequest = {
822
822
  /** Secret scope */
823
823
  scope: "USER" | "SCOPED" | "ACCOUNT";
824
824
  /** Scoped of */
825
- scopedTo?: "WORKSPACE";
825
+ scopedTo?: "WORKSPACE" | "SPOT";
826
826
  /** Bind to scope value */
827
827
  scopeValue?: string;
828
828
  /** Expiration date of the secret */
@@ -1353,6 +1353,19 @@ export type ExtensionLinkCreateResponse = {
1353
1353
  /** The Extension path */
1354
1354
  path?: string;
1355
1355
  };
1356
+ export type InputStreamSource = {
1357
+ inputStream?: object;
1358
+ };
1359
+ export type HasUserAnsweredFormRequest = {
1360
+ formIds: string[];
1361
+ "from"?: string;
1362
+ to?: string;
1363
+ };
1364
+ export type HasUserAnsweredFormResponse = {
1365
+ answers: {
1366
+ [key: string]: string[];
1367
+ };
1368
+ };
1356
1369
  export type WelcomeEmailRequest = {
1357
1370
  /** Firstname of the contact requester */
1358
1371
  firstName: string;
@@ -2652,7 +2665,7 @@ export declare function findSecrets1({ size, page, sort, direction, search, filt
2652
2665
  search?: string;
2653
2666
  filterByScope?: "USER" | "SCOPED" | "ACCOUNT";
2654
2667
  filterByType?: "API_KEY" | "OAUTH" | "CERTIFICATE" | "KEY_VALUE" | "BEARER_TOKEN";
2655
- filterByScopedBy?: "WORKSPACE";
2668
+ filterByScopedBy?: "WORKSPACE" | "SPOT";
2656
2669
  filterByScopedValue?: string;
2657
2670
  authorizedOnly?: boolean;
2658
2671
  }, opts?: Oazapfts.RequestOpts): Promise<PageResponseSecretResponse>;
@@ -3032,6 +3045,19 @@ export declare function listExtensionLinks({ workspaceId, $type, extensionSlug,
3032
3045
  export declare function createExtensionLink({ extensionLinkCreateRequest }: {
3033
3046
  extensionLinkCreateRequest: ExtensionLinkCreateRequest;
3034
3047
  }, opts?: Oazapfts.RequestOpts): Promise<ExtensionLinkCreateResponse>;
3048
+ /**
3049
+ * Receive engagement form webhook
3050
+ */
3051
+ export declare function receiveWebhook({ provider, inputStreamSource }: {
3052
+ provider: string;
3053
+ inputStreamSource: InputStreamSource;
3054
+ }, opts?: Oazapfts.RequestOpts): Promise<never>;
3055
+ /**
3056
+ * Check if user has answered forms
3057
+ */
3058
+ export declare function hasUserAnsweredForm({ hasUserAnsweredFormRequest }: {
3059
+ hasUserAnsweredFormRequest: HasUserAnsweredFormRequest;
3060
+ }, opts?: Oazapfts.RequestOpts): Promise<HasUserAnsweredFormResponse>;
3035
3061
  /**
3036
3062
  * Send Welcome Email
3037
3063
  */
@@ -3744,6 +3770,13 @@ export declare function getEnabledFeatureFlagsForAccount({ queryParams }: {
3744
3770
  export declare function getExternalLinksByType({ externalLinkType }: {
3745
3771
  externalLinkType: string;
3746
3772
  }, opts?: Oazapfts.RequestOpts): Promise<ExternalLinkResponse>;
3773
+ /**
3774
+ * Returns the Feature Flag.
3775
+ */
3776
+ export declare function getFeatureFlag1({ id, accountId }: {
3777
+ id: number;
3778
+ accountId: string;
3779
+ }, opts?: Oazapfts.RequestOpts): Promise<FeatureFlagsAccountResponse>;
3747
3780
  /**
3748
3781
  * Verifies if SCM credentials exist for the current user's account and email, throwing an error if not found.
3749
3782
  */
@@ -3799,7 +3832,9 @@ export declare function getServiceCredentialGroups1({ id }: {
3799
3832
  /**
3800
3833
  * Retrieve secret value
3801
3834
  */
3802
- export declare function getSecretValue({ secretId }: {
3835
+ export declare function getSecretValue({ xMemberId, xAccountId, secretId }: {
3836
+ xMemberId?: string;
3837
+ xAccountId?: string;
3803
3838
  secretId: string;
3804
3839
  }, opts?: Oazapfts.RequestOpts): Promise<SecretResponse>;
3805
3840
  /**