@stack-spot/portal-network 0.19.0 → 0.21.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.21.0](https://github.com/stack-spot/portal-commons/compare/portal-network@v0.20.0...portal-network@v0.21.0) (2024-08-26)
4
+
5
+
6
+ ### Features
7
+
8
+ * add request otp ([#318](https://github.com/stack-spot/portal-commons/issues/318)) ([6ad0e96](https://github.com/stack-spot/portal-commons/commit/6ad0e96a750110d613e69b4aeffe5f3000e702c7))
9
+
10
+ ## [0.20.0](https://github.com/stack-spot/portal-commons/compare/portal-network@v0.19.0...portal-network@v0.20.0) (2024-08-23)
11
+
12
+
13
+ ### Features
14
+
15
+ * Add studio requests ([#311](https://github.com/stack-spot/portal-commons/issues/311)) ([ed5f891](https://github.com/stack-spot/portal-commons/commit/ed5f891bd5d3ce0bec559f02dbb1fbc3f2e63fdc))
16
+
3
17
  ## [0.19.0](https://github.com/stack-spot/portal-commons/compare/portal-network@v0.18.1...portal-network@v0.19.0) (2024-08-21)
4
18
 
5
19
 
@@ -105,10 +105,19 @@ export type CreateConnectionInterfaceTypeRequest = {
105
105
  outputs: CreateConnectionInterfaceTypeOutputRequest[];
106
106
  };
107
107
  export type StudioResponse = {
108
+ id: string;
108
109
  slug: string;
109
110
  name: string;
110
111
  imageUrl?: string;
111
- description?: string;
112
+ verified: boolean;
113
+ description: string;
114
+ accountSlug: string;
115
+ teams: string[];
116
+ editAllowed: boolean;
117
+ createdBy: string;
118
+ visibility: "ACCOUNT_ONLY" | "SELECTED_WORKSPACES" | "RESTRICTED_ACCESS" | "PUBLIC";
119
+ isGoverned: boolean;
120
+ tabs: string[];
112
121
  };
113
122
  export type CreateStudioRequest = {
114
123
  name: string;
@@ -172,7 +181,7 @@ export type StackVersionResponse = {
172
181
  copyFromStackVersionId?: string;
173
182
  documentation?: DocumentationContentResponse;
174
183
  };
175
- export type PluginStudioResponse = {
184
+ export type StackPluginResponseStudio = {
176
185
  id: string;
177
186
  slug: string;
178
187
  name: string;
@@ -200,20 +209,20 @@ export type PluginRequiresResponse = {
200
209
  actions: PluginVersionRequiresActionsResponse[];
201
210
  plugins: PluginVersionRequiresPluginsResponse[];
202
211
  };
203
- export type Connections = {
212
+ export type StackPluginResponseConnections = {
204
213
  typeId: string;
205
214
  "type": string;
206
215
  alias: string;
207
216
  optional?: boolean;
208
217
  source?: string;
209
218
  };
210
- export type GeneratesResponse = {
211
- connections: Connections[];
219
+ export type StackPluginResponseGenerates = {
220
+ connections: StackPluginResponseConnections[];
212
221
  };
213
- export type Requires = {
214
- connections: Connections[];
222
+ export type StackPluginActionsResponseRequires = {
223
+ connections: StackPluginResponseConnections[];
215
224
  };
216
- export type PluginActionsResponse = {
225
+ export type StackPluginActionsResponse = {
217
226
  id: string;
218
227
  versionId: string;
219
228
  version: string;
@@ -223,32 +232,32 @@ export type PluginActionsResponse = {
223
232
  description: string;
224
233
  qualifier: string;
225
234
  status: string;
226
- requires?: Requires;
235
+ requires?: StackPluginActionsResponseRequires;
227
236
  };
228
- export type PluginResponse = {
237
+ export type StackPluginResponse = {
229
238
  pluginId: string;
230
239
  pluginVersionId: string;
231
240
  slug: string;
232
241
  displayName: string;
233
242
  description?: string;
234
243
  pluginQualifier: string;
235
- studio: PluginStudioResponse;
244
+ studio: StackPluginResponseStudio;
236
245
  range?: string;
237
246
  version: string;
238
247
  "type": string;
239
248
  status: string;
240
249
  requires: PluginRequiresResponse;
241
- generates: GeneratesResponse;
250
+ generates: StackPluginResponseGenerates;
242
251
  appAllowed: boolean;
243
252
  singleUse: boolean;
244
253
  stkProjectsOnly: boolean;
245
- actions?: PluginActionsResponse[];
254
+ actions?: StackPluginActionsResponse[];
246
255
  };
247
256
  export type GetPluginsResponse = {
248
257
  stackSlug: string;
249
258
  stackSemanticVersion: string;
250
- appPluginVersions: PluginResponse[];
251
- infraPluginVersions: PluginResponse[];
259
+ appPluginVersions: StackPluginResponse[];
260
+ infraPluginVersions: StackPluginResponse[];
252
261
  };
253
262
  export type StackActionStudioResponse = {
254
263
  slug: string;
@@ -393,6 +402,12 @@ export type FilterPluginVersionRequest = {
393
402
  technologies?: string[];
394
403
  text?: string;
395
404
  };
405
+ export type PluginStudioResponse = {
406
+ slug: string;
407
+ name: string;
408
+ imageUrl?: string;
409
+ description?: string;
410
+ };
396
411
  export type PluginEnvironmentResponse = {
397
412
  environments: string[];
398
413
  };
@@ -417,14 +432,14 @@ export type PluginGeneratesResponse = {
417
432
  connections: PluginGeneratesConnectionResponse[];
418
433
  links?: LinkResponse[];
419
434
  };
420
- export type GovernanceResponse = {
435
+ export type PluginGovernanceResponse = {
421
436
  id?: string;
422
437
  pendingDiscussionReading?: boolean;
423
438
  status: string;
424
439
  };
425
440
  export type PluginVersionResponse = {
426
441
  id: string;
427
- studio: StudioResponse;
442
+ studio: PluginStudioResponse;
428
443
  studioSlug: string;
429
444
  accountSlug?: string;
430
445
  pluginId: string;
@@ -442,7 +457,7 @@ export type PluginVersionResponse = {
442
457
  requires: PluginRequiresResponse;
443
458
  generates: PluginGeneratesResponse;
444
459
  isDocumented: boolean;
445
- governance?: GovernanceResponse;
460
+ governance?: PluginGovernanceResponse;
446
461
  singleUse: boolean;
447
462
  stkProjectsOnly: boolean;
448
463
  };
@@ -463,12 +478,12 @@ export type ActionCommandResponse = {
463
478
  "default": string;
464
479
  workspace: string;
465
480
  };
466
- export type ExternalItems = {
481
+ export type ActionInputResponseExternalItems = {
467
482
  source: string;
468
483
  value: string;
469
484
  label?: string;
470
485
  };
471
- export type ConditionResponse = {
486
+ export type ActionInputResponseCondition = {
472
487
  variable: string;
473
488
  operator: string;
474
489
  value: object;
@@ -481,8 +496,8 @@ export type ActionVersionSubInputResponse = {
481
496
  help?: string;
482
497
  "default"?: JsonNode;
483
498
  items?: string[];
484
- condition?: ConditionResponse;
485
- externalItems?: ExternalItems;
499
+ condition?: ActionInputResponseCondition;
500
+ externalItems?: ActionInputResponseExternalItems;
486
501
  connectionInterfaceType?: string;
487
502
  input?: ActionVersionSubInputResponse;
488
503
  inputs?: ActionVersionInputResponse[];
@@ -496,8 +511,8 @@ export type ActionVersionInputResponse = {
496
511
  help?: string;
497
512
  "default"?: JsonNode;
498
513
  items?: string[];
499
- externalItems?: ExternalItems;
500
- condition?: ConditionResponse;
514
+ externalItems?: ActionInputResponseExternalItems;
515
+ condition?: ActionInputResponseCondition;
501
516
  envInput?: boolean;
502
517
  connectionInterfaceType?: string;
503
518
  input?: ActionVersionSubInputResponse;
@@ -516,6 +531,11 @@ export type ActionRequiresResponse = {
516
531
  connections?: ConnectionResponse[];
517
532
  secrets?: string[];
518
533
  };
534
+ export type ActionGovernanceResponse = {
535
+ id?: string;
536
+ status: string;
537
+ pendingDiscussionReading?: boolean;
538
+ };
519
539
  export type GetActionResponse = {
520
540
  id: string;
521
541
  versionId: string;
@@ -546,7 +566,7 @@ export type GetActionResponse = {
546
566
  studioSlug: string;
547
567
  accountSlug: string;
548
568
  status: string;
549
- governance?: GovernanceResponse;
569
+ governance?: ActionGovernanceResponse;
550
570
  documentation?: DocumentationContentResponse;
551
571
  justify?: string;
552
572
  };
@@ -578,7 +598,7 @@ export type ActionResponse = {
578
598
  description?: string;
579
599
  isDocumented: boolean;
580
600
  repository?: string;
581
- governance?: GovernanceResponse;
601
+ governance?: ActionGovernanceResponse;
582
602
  status: string;
583
603
  };
584
604
  export type PageActionResponse = {
@@ -675,19 +695,51 @@ export type FilterStackVersionPluginRequest = {
675
695
  technologies: string[];
676
696
  text?: string;
677
697
  };
678
- export type PagePluginResponse = {
698
+ export type PageStackPluginResponse = {
679
699
  totalElements?: number;
680
700
  totalPages?: number;
681
701
  first?: boolean;
682
702
  last?: boolean;
683
703
  size?: number;
684
- content?: PluginResponse[];
704
+ content?: StackPluginResponse[];
685
705
  "number"?: number;
686
706
  sort?: SortObject[];
687
707
  numberOfElements?: number;
688
708
  pageable?: PageableObject;
689
709
  empty?: boolean;
690
710
  };
711
+ export type LinkPluginStudioResponse = {
712
+ id: string;
713
+ slug: string;
714
+ name: string;
715
+ };
716
+ export type LinkPluginActionsResponseConnections = {
717
+ "type": string;
718
+ alias: string;
719
+ };
720
+ export type LinkPluginActionsResponseRequires = {
721
+ connections: LinkPluginActionsResponseConnections[];
722
+ };
723
+ export type LinkPluginActionsResponse = {
724
+ id: string;
725
+ versionId: string;
726
+ version: string;
727
+ slug: string;
728
+ displayName: string;
729
+ description: string;
730
+ qualifier: string;
731
+ requires?: LinkPluginActionsResponseRequires;
732
+ };
733
+ export type LinkPluginVersionResponse = {
734
+ pluginId: string;
735
+ id: string;
736
+ slug: string;
737
+ displayName: string;
738
+ description?: string;
739
+ qualifier: string;
740
+ studio: LinkPluginStudioResponse;
741
+ actions?: LinkPluginActionsResponse[];
742
+ };
691
743
  export type GetLinkResponse = {
692
744
  id: string;
693
745
  name: string;
@@ -695,7 +747,7 @@ export type GetLinkResponse = {
695
747
  source: "PLUGIN" | "STACK";
696
748
  "type"?: string;
697
749
  imageUrl?: string;
698
- pluginVersion?: PluginVersionResponse;
750
+ pluginVersion?: LinkPluginVersionResponse;
699
751
  };
700
752
  export type AddLinkRequest = {
701
753
  name: string;
@@ -819,8 +871,8 @@ export type ActionVersionDataSubInputResponse = {
819
871
  help?: string;
820
872
  "default"?: JsonNode;
821
873
  items?: string[];
822
- condition?: ConditionResponse;
823
- externalItems?: ExternalItems;
874
+ condition?: ActionInputResponseCondition;
875
+ externalItems?: ActionInputResponseExternalItems;
824
876
  connectionInterfaceType?: string;
825
877
  input?: ActionVersionSubInputResponse;
826
878
  };
@@ -833,8 +885,8 @@ export type ActionVersionDataInputResponse = {
833
885
  help?: string;
834
886
  "default"?: JsonNode;
835
887
  items?: string[];
836
- externalItems?: ExternalItems;
837
- condition?: ConditionResponse;
888
+ externalItems?: ActionInputResponseExternalItems;
889
+ condition?: ActionInputResponseCondition;
838
890
  connectionInterfaceType?: string;
839
891
  input?: ActionVersionDataSubInputResponse;
840
892
  };
@@ -980,12 +1032,17 @@ export type GetStackV2Response = {
980
1032
  latestVersion: StackVersionV2Response;
981
1033
  versions: StackVersionShortV2Response[];
982
1034
  };
983
- export type ExternalItemsResponse = {
1035
+ export type PluginInputResponseExternalItem = {
984
1036
  source: string;
985
1037
  value: string;
986
1038
  label?: string;
987
1039
  };
988
- export type InputResponse = {
1040
+ export type PluginInputResponseCondition = {
1041
+ variable?: string;
1042
+ operator?: string;
1043
+ value?: JsonNode;
1044
+ };
1045
+ export type PluginInputResponse = {
989
1046
  label?: string;
990
1047
  name?: string;
991
1048
  "type"?: string;
@@ -994,16 +1051,16 @@ export type InputResponse = {
994
1051
  help?: string;
995
1052
  "default"?: JsonNode;
996
1053
  items?: string;
997
- externalItems?: ExternalItemsResponse;
1054
+ externalItems?: PluginInputResponseExternalItem;
998
1055
  itemsValues?: string[];
999
- condition?: ConditionResponse;
1056
+ condition?: PluginInputResponseCondition;
1000
1057
  isGlobal?: boolean;
1001
1058
  inputEnv?: boolean;
1002
1059
  connectionInterfaceType?: string;
1003
- input?: InputResponse;
1060
+ input?: PluginInputResponse;
1004
1061
  };
1005
1062
  export type PluginInputV2Response = {
1006
- inputs: InputResponse[];
1063
+ inputs: PluginInputResponse[];
1007
1064
  computedInputs: ComputedInputResponse[];
1008
1065
  globalComputedInputs: ComputedInputResponse[];
1009
1066
  };
@@ -1097,10 +1154,10 @@ export type PluginVersionShortResponse = {
1097
1154
  singleUse: boolean;
1098
1155
  stkProjectOnly: boolean;
1099
1156
  stkProjectsOnly: boolean;
1100
- governance?: GovernanceResponse;
1157
+ governance?: PluginGovernanceResponse;
1101
1158
  requires?: PluginRequiresResponse;
1102
1159
  };
1103
- export type ActionStudioResponse = {
1160
+ export type RequirementsPluginResponseActionStudio = {
1104
1161
  slug: string;
1105
1162
  };
1106
1163
  export type RequirementsPluginActionsResponse = {
@@ -1113,7 +1170,20 @@ export type RequirementsPluginActionsResponse = {
1113
1170
  description: string;
1114
1171
  actionQualifier: string;
1115
1172
  status: string;
1116
- studio: ActionStudioResponse;
1173
+ studio: RequirementsPluginResponseActionStudio;
1174
+ };
1175
+ export type RequirementsPluginResponseStudio = {
1176
+ id: string;
1177
+ slug: string;
1178
+ name: string;
1179
+ };
1180
+ export type RequirementsPluginResponseConnections = {
1181
+ typeId: string;
1182
+ "type": string;
1183
+ alias: string;
1184
+ };
1185
+ export type RequirementsPluginResponseGenerates = {
1186
+ connections: RequirementsPluginResponseConnections[];
1117
1187
  };
1118
1188
  export type RequirementsPluginResponse = {
1119
1189
  pluginId: string;
@@ -1123,11 +1193,11 @@ export type RequirementsPluginResponse = {
1123
1193
  displayName: string;
1124
1194
  description?: string;
1125
1195
  pluginQualifier: string;
1126
- studio: PluginStudioResponse;
1196
+ studio: RequirementsPluginResponseStudio;
1127
1197
  range?: string;
1128
1198
  version: string;
1129
1199
  status: string;
1130
- generates: GeneratesResponse;
1200
+ generates: RequirementsPluginResponseGenerates;
1131
1201
  appAllowed: boolean;
1132
1202
  };
1133
1203
  export type DependencyTree = {
@@ -1151,7 +1221,7 @@ export type PluginCommandResponse = {
1151
1221
  };
1152
1222
  export type GetPluginResponse = {
1153
1223
  id: string;
1154
- studio: StudioResponse;
1224
+ studio: PluginStudioResponse;
1155
1225
  pluginVersionId: string;
1156
1226
  "type": string;
1157
1227
  version: string;
@@ -1174,8 +1244,8 @@ export type GetPluginResponse = {
1174
1244
  createdBy: string;
1175
1245
  updatedAt?: string;
1176
1246
  runtime?: PluginEnvironmentResponse;
1177
- inputs: InputResponse[];
1178
- inputsEnvs: InputResponse[];
1247
+ inputs: PluginInputResponse[];
1248
+ inputsEnvs: PluginInputResponse[];
1179
1249
  computedInputs?: string;
1180
1250
  requires?: PluginRequiresResponse;
1181
1251
  generates: PluginGeneratesResponse;
@@ -1184,7 +1254,7 @@ export type GetPluginResponse = {
1184
1254
  studioSlug: string;
1185
1255
  status: string;
1186
1256
  isDocumented: boolean;
1187
- governance?: GovernanceResponse;
1257
+ governance?: PluginGovernanceResponse;
1188
1258
  documentation?: DocumentationContentResponse;
1189
1259
  singleUse: boolean;
1190
1260
  justify?: string;
@@ -1197,7 +1267,7 @@ export type PluginStarterResponse = {
1197
1267
  "type": string;
1198
1268
  description?: string;
1199
1269
  totalLinkedVersions: number;
1200
- studio: StudioResponse;
1270
+ studio: PluginStudioResponse;
1201
1271
  stack: StackResponse;
1202
1272
  };
1203
1273
  export type PagePluginStarterResponse = {
@@ -1246,7 +1316,7 @@ export type PluginStacksResponse = {
1246
1316
  description: string;
1247
1317
  imageUrl: string;
1248
1318
  totalLinkedVersions: number;
1249
- studio: StudioResponse;
1319
+ studio: PluginStudioResponse;
1250
1320
  };
1251
1321
  export type PagePluginStacksResponse = {
1252
1322
  totalElements?: number;
@@ -1347,7 +1417,7 @@ export type PluginViewUsageMonitorResponse = {
1347
1417
  imageUrl: string;
1348
1418
  "type": string;
1349
1419
  totalLinkedVersions: number;
1350
- studio: StudioResponse;
1420
+ studio: PluginStudioResponse;
1351
1421
  };
1352
1422
  export type PagePluginViewUsageMonitorResponse = {
1353
1423
  totalElements?: number;
@@ -1464,7 +1534,7 @@ export type ActionVersionResponse = {
1464
1534
  createdAt: string;
1465
1535
  updatedAt?: string;
1466
1536
  status: string;
1467
- governance?: GovernanceResponse;
1537
+ governance?: ActionGovernanceResponse;
1468
1538
  };
1469
1539
  export type GetActionVersionListResponse = {
1470
1540
  actionId: string;
@@ -1516,16 +1586,23 @@ export type PluginVersionByConnectionResponse = {
1516
1586
  id: string;
1517
1587
  slug: string;
1518
1588
  accountSlug?: string;
1519
- studio: StudioResponse;
1589
+ studio: PluginStudioResponse;
1520
1590
  pluginVersions?: PluginVersionResponse[];
1521
1591
  };
1592
+ export type ContentStudioResponse = {
1593
+ slug: string;
1594
+ createdBy: string;
1595
+ visibility: "ACCOUNT_ONLY" | "SELECTED_WORKSPACES" | "RESTRICTED_ACCESS" | "PUBLIC";
1596
+ teams: string[];
1597
+ workspaces: string[];
1598
+ };
1522
1599
  export type ContentDataResponse = {
1523
1600
  id: string;
1524
1601
  slug: string;
1525
1602
  contentType: "STUDIO" | "ACTION" | "PLUGIN" | "STACK" | "STARTER" | "ACTION_VERSION" | "PLUGIN_VERSION" | "STACK_VERSION";
1526
1603
  };
1527
1604
  export type ContentResponse = {
1528
- studio: StudioResponse;
1605
+ studio: ContentStudioResponse;
1529
1606
  content: ContentDataResponse;
1530
1607
  parent?: ContentDataResponse;
1531
1608
  };
@@ -1948,7 +2025,7 @@ export declare function filterStackVersionPlugins({ xWorkspaceId, stackVersionId
1948
2025
  stackVersionId: string;
1949
2026
  pageable: Pageable;
1950
2027
  filterStackVersionPluginRequest: FilterStackVersionPluginRequest;
1951
- }, opts?: Oazapfts.RequestOpts): Promise<PagePluginResponse>;
2028
+ }, opts?: Oazapfts.RequestOpts): Promise<PageStackPluginResponse>;
1952
2029
  /**
1953
2030
  * List links by stack version
1954
2031
  */
@@ -2705,7 +2782,7 @@ export declare function getPluginYamlContent({ pluginVersionId, xWorkspaceId }:
2705
2782
  export declare function getInputs1({ pluginVersionId, xWorkspaceId }: {
2706
2783
  pluginVersionId: string;
2707
2784
  xWorkspaceId?: string;
2708
- }, opts?: Oazapfts.RequestOpts): Promise<InputResponse[]>;
2785
+ }, opts?: Oazapfts.RequestOpts): Promise<PluginInputResponse[]>;
2709
2786
  /**
2710
2787
  * Plugin Version Usage Summary
2711
2788
  */