@parallelworks/client 7.94.0 → 7.95.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/dist/index.js CHANGED
@@ -259,9 +259,9 @@ export class Client {
259
259
  const record = body && typeof body === 'object'
260
260
  ? body
261
261
  : {};
262
- record.status = response.status;
263
- if (typeof record.message !== 'string' || !record.message) {
264
- record.message =
262
+ record['status'] = response.status;
263
+ if (typeof record['message'] !== 'string' || !record['message']) {
264
+ record['message'] =
265
265
  response.statusText ||
266
266
  `Request failed with status ${response.status}`;
267
267
  }
@@ -6095,6 +6095,28 @@ export interface paths {
6095
6095
  patch?: never;
6096
6096
  trace?: never;
6097
6097
  };
6098
+ "/api/organizations/{organization}/gitlab-servers/ca-cert": {
6099
+ parameters: {
6100
+ query?: never;
6101
+ header?: never;
6102
+ path?: never;
6103
+ cookie?: never;
6104
+ };
6105
+ get?: never;
6106
+ put?: never;
6107
+ /**
6108
+ * Discover a GitLab server's CA certificate
6109
+ * @description > This is a system-level route, so the response will be independent of the currently authenticated user.
6110
+ *
6111
+ * Dials the GitLab server and returns the CA certificate its TLS chain is issued by, for registrations that verify against a custom CA.
6112
+ */
6113
+ post: operations["discover-organization-gitlab-server-ca-cert"];
6114
+ delete?: never;
6115
+ options?: never;
6116
+ head?: never;
6117
+ patch?: never;
6118
+ trace?: never;
6119
+ };
6098
6120
  "/api/organizations/{organization}/gitlab-servers/{server}": {
6099
6121
  parameters: {
6100
6122
  query?: never;
@@ -14622,28 +14644,6 @@ export interface paths {
14622
14644
  patch: operations["update-workflow"];
14623
14645
  trace?: never;
14624
14646
  };
14625
- "/api/workflows/{workflow}/duplicate": {
14626
- parameters: {
14627
- query?: never;
14628
- header?: never;
14629
- path?: never;
14630
- cookie?: never;
14631
- };
14632
- get?: never;
14633
- put?: never;
14634
- /**
14635
- * Duplicate Workflow
14636
- * @description > This is a user-centric route, so the response will always be in the context of the currently authenticated user.
14637
- *
14638
- * Creates a copy of an existing workflow with a new name.
14639
- */
14640
- post: operations["duplicate-workflow"];
14641
- delete?: never;
14642
- options?: never;
14643
- head?: never;
14644
- patch?: never;
14645
- trace?: never;
14646
- };
14647
14647
  "/api/workflows/{workflow}/fork": {
14648
14648
  parameters: {
14649
14649
  query?: never;
@@ -19493,8 +19493,12 @@ export interface components {
19493
19493
  CreateWorkflowBody: {
19494
19494
  /** @description Resource description */
19495
19495
  description?: string;
19496
+ /** @description Markdown description of the workflow */
19497
+ descriptionMarkdown?: string;
19496
19498
  /** @description Display name of the workflow */
19497
19499
  displayName?: string;
19500
+ /** @description URL of the workflow icon */
19501
+ imageUrl?: string;
19498
19502
  /** @description Resource name */
19499
19503
  name: string;
19500
19504
  /** @description Remote workflow configuration (required for remote type) */
@@ -19511,6 +19515,8 @@ export interface components {
19511
19515
  * @enum {string}
19512
19516
  */
19513
19517
  type: "remote" | "local";
19518
+ /** @description Workflow YAML definition as a YAML string. If not provided, a default template is used. */
19519
+ yaml?: string;
19514
19520
  };
19515
19521
  CreateWorkflowRunInputBody: {
19516
19522
  /** @description Auto-grant each workflow's declared user-variable needs (no consent prompt). */
@@ -19858,10 +19864,20 @@ export interface components {
19858
19864
  */
19859
19865
  endpoint: string;
19860
19866
  };
19867
+ DiscoverCACertInputBody1: {
19868
+ /** @description Whether the server may sit on a private network address. Platform administrators only. */
19869
+ allowPrivateAddress?: boolean;
19870
+ /** @description Origin of the GitLab instance to dial, for example https://gitlab.example.com. */
19871
+ baseUrl: string;
19872
+ };
19861
19873
  DiscoverCACertOutputBody: {
19862
19874
  /** @description PEM-encoded CA certificate served by the endpoint */
19863
19875
  caCert: string;
19864
19876
  };
19877
+ DiscoverCACertOutputBody1: {
19878
+ /** @description PEM-encoded CA certificate served by the endpoint. */
19879
+ caCert: string;
19880
+ };
19865
19881
  Disk: {
19866
19882
  /** @description Cloud service provider of the disk */
19867
19883
  csp: string;
@@ -19933,10 +19949,6 @@ export interface components {
19933
19949
  /** @description A list of mounts to be used in docker workspaces. */
19934
19950
  mounts: string[] | null;
19935
19951
  };
19936
- DuplicateWorkflowBody: {
19937
- /** @description Display name for the duplicated workflow */
19938
- newName: string;
19939
- };
19940
19952
  EffectiveProduct: {
19941
19953
  id: string;
19942
19954
  name: string;
@@ -20600,6 +20612,10 @@ export interface components {
20600
20612
  enforceWebAuthnMfa: boolean;
20601
20613
  /** @description List of configured MFA methods */
20602
20614
  mfaSettings: components["schemas"]["MfaSettingResponse"][] | null;
20615
+ /** @description Whether the user's registered security key does not meet the required level and must be replaced */
20616
+ webAuthnKeyRequiresReplacement: boolean;
20617
+ /** @description Required security key level (hardware or fips); empty when not enforced */
20618
+ webAuthnMfaLevel?: string;
20603
20619
  };
20604
20620
  GetNodeMetricsOutputBody: {
20605
20621
  dataPoints: components["schemas"]["MetricsDataPoint"][] | null;
@@ -20668,6 +20684,8 @@ export interface components {
20668
20684
  allowPrivateAddress: boolean;
20669
20685
  /** @description Origin of the GitLab instance, for example https://gitlab.example.com. */
20670
20686
  baseUrl: string;
20687
+ /** @description PEM-encoded CA certificate the server's certificate chains to, when tlsVerification is ca-certificate. */
20688
+ caCertificate?: string;
20671
20689
  /** @description Application ID of the OAuth application registered on the server, when members may connect through OAuth. */
20672
20690
  clientId?: string;
20673
20691
  /** @description Whether the application secret is stored. */
@@ -20680,10 +20698,20 @@ export interface components {
20680
20698
  readonly id: string;
20681
20699
  /** @description How members may connect: oauth, token, or both. */
20682
20700
  readonly methods: ("oauth" | "token")[] | null;
20701
+ /**
20702
+ * @description Lowest TLS version the platform negotiates with the server.
20703
+ * @enum {string}
20704
+ */
20705
+ minimumTlsVersion: "1.2" | "1.3";
20683
20706
  /** @description Short name of the server, unique within the organization. */
20684
20707
  name: string;
20685
20708
  /** @description Redirect URI to configure on the OAuth application. */
20686
20709
  readonly redirectUri: string;
20710
+ /**
20711
+ * @description How the server's certificate is verified: against the public roots, against the supplied CA certificate, or not at all.
20712
+ * @enum {string}
20713
+ */
20714
+ tlsVerification: "public" | "ca-certificate" | "skip";
20687
20715
  };
20688
20716
  GitLabServerCreateBody: {
20689
20717
  /** @description Let members connect by pasting a personal access token with the read_api scope. */
@@ -20692,12 +20720,24 @@ export interface components {
20692
20720
  allowPrivateAddress?: boolean;
20693
20721
  /** @description Origin of the GitLab instance, for example https://gitlab.example.com. */
20694
20722
  baseUrl: string;
20723
+ /** @description PEM-encoded CA certificate the server's certificate chains to. Required for ca-certificate verification and not accepted otherwise. */
20724
+ caCertificate?: string;
20695
20725
  /** @description Application ID of the OAuth application registered on the server. Give it together with clientSecret to let members connect through OAuth. */
20696
20726
  clientId?: string;
20697
20727
  /** @description Secret of the OAuth application. Stored in the platform vault and never returned. */
20698
20728
  clientSecret?: string;
20729
+ /**
20730
+ * @description Lowest TLS version the platform negotiates with the server. Defaults to 1.2.
20731
+ * @enum {string}
20732
+ */
20733
+ minimumTlsVersion?: "1.2" | "1.3";
20699
20734
  /** @description Short name of the server, unique within the organization. */
20700
20735
  name: string;
20736
+ /**
20737
+ * @description How the server's certificate is verified. Defaults to public, or ca-certificate when one is supplied.
20738
+ * @enum {string}
20739
+ */
20740
+ tlsVerification?: "public" | "ca-certificate" | "skip";
20701
20741
  };
20702
20742
  GitLabServerPatchBody: {
20703
20743
  /** @description Let members connect by pasting a personal access token with the read_api scope. */
@@ -20706,12 +20746,24 @@ export interface components {
20706
20746
  allowPrivateAddress?: boolean;
20707
20747
  /** @description New origin of the GitLab instance. */
20708
20748
  baseUrl?: string;
20749
+ /** @description PEM-encoded CA certificate the server's certificate chains to. Only accepted with ca-certificate verification. */
20750
+ caCertificate?: string;
20709
20751
  /** @description New application ID. */
20710
20752
  clientId?: string;
20711
20753
  /** @description New application secret. */
20712
20754
  clientSecret?: string;
20755
+ /**
20756
+ * @description Lowest TLS version the platform negotiates with the server.
20757
+ * @enum {string}
20758
+ */
20759
+ minimumTlsVersion?: "1.2" | "1.3";
20713
20760
  /** @description New short name of the server. */
20714
20761
  name?: string;
20762
+ /**
20763
+ * @description How the server's certificate is verified. Switching away from ca-certificate discards the stored CA certificate.
20764
+ * @enum {string}
20765
+ */
20766
+ tlsVerification?: "public" | "ca-certificate" | "skip";
20715
20767
  };
20716
20768
  GoogleBucket: {
20717
20769
  /**
@@ -28705,6 +28757,10 @@ export interface components {
28705
28757
  /** @description Step status. */
28706
28758
  status?: string;
28707
28759
  };
28760
+ StopClusterOptions: {
28761
+ /** @description Stop the controller through the cloud provider instead of waiting for the cluster agent to shut it down from inside the guest. */
28762
+ force?: boolean;
28763
+ };
28708
28764
  StorageAttachment: {
28709
28765
  /** @description ID of the resource. */
28710
28766
  id: string;
@@ -30039,12 +30095,12 @@ export interface components {
30039
30095
  createdAt: string;
30040
30096
  /**
30041
30097
  * @description the image the user workspace is currently running. This will be always be set to the same as Image when the workspace restarts.
30042
- * @example ghcr.io/parallelworks/usercontainer-theia:latest
30098
+ * @example ghcr.io/parallelworks/usercontainer-vscode:latest
30043
30099
  */
30044
30100
  currentImage: string;
30045
30101
  /**
30046
30102
  * @description the image set for the user workspace
30047
- * @example ghcr.io/parallelworks/usercontainer-theia:latest
30103
+ * @example ghcr.io/parallelworks/usercontainer-vscode:latest
30048
30104
  */
30049
30105
  image: string;
30050
30106
  /**
@@ -30194,7 +30250,7 @@ export interface components {
30194
30250
  * @example hardware
30195
30251
  * @enum {string}
30196
30252
  */
30197
- value: "hardware";
30253
+ value: "hardware" | "fips";
30198
30254
  };
30199
30255
  WebAuthnRegAuthenticatorSelection: {
30200
30256
  /** @description Required authenticator attachment */
@@ -41978,6 +42034,42 @@ export interface operations {
41978
42034
  };
41979
42035
  };
41980
42036
  };
42037
+ "discover-organization-gitlab-server-ca-cert": {
42038
+ parameters: {
42039
+ query?: never;
42040
+ header?: never;
42041
+ path: {
42042
+ /** @description The name of the organization. */
42043
+ organization: string;
42044
+ };
42045
+ cookie?: never;
42046
+ };
42047
+ requestBody: {
42048
+ content: {
42049
+ "application/json": components["schemas"]["DiscoverCACertInputBody1"];
42050
+ };
42051
+ };
42052
+ responses: {
42053
+ /** @description OK */
42054
+ 200: {
42055
+ headers: {
42056
+ [name: string]: unknown;
42057
+ };
42058
+ content: {
42059
+ "application/json": components["schemas"]["DiscoverCACertOutputBody1"];
42060
+ };
42061
+ };
42062
+ /** @description Error */
42063
+ default: {
42064
+ headers: {
42065
+ [name: string]: unknown;
42066
+ };
42067
+ content: {
42068
+ "application/json": components["schemas"]["Error"];
42069
+ };
42070
+ };
42071
+ };
42072
+ };
41981
42073
  "get-organization-gitlab-server": {
41982
42074
  parameters: {
41983
42075
  query?: never;
@@ -45815,7 +45907,7 @@ export interface operations {
45815
45907
  };
45816
45908
  requestBody: {
45817
45909
  content: {
45818
- "application/json": "hardware";
45910
+ "application/json": "hardware" | "fips";
45819
45911
  };
45820
45912
  };
45821
45913
  responses: {
@@ -50889,7 +50981,11 @@ export interface operations {
50889
50981
  };
50890
50982
  cookie?: never;
50891
50983
  };
50892
- requestBody?: never;
50984
+ requestBody?: {
50985
+ content: {
50986
+ "application/json": components["schemas"]["StopClusterOptions"];
50987
+ };
50988
+ };
50893
50989
  responses: {
50894
50990
  /** @description No Content */
50895
50991
  204: {
@@ -55984,7 +56080,7 @@ export interface operations {
55984
56080
  };
55985
56081
  requestBody: {
55986
56082
  content: {
55987
- "application/json": "hardware";
56083
+ "application/json": "hardware" | "fips";
55988
56084
  };
55989
56085
  };
55990
56086
  responses: {
@@ -59386,42 +59482,6 @@ export interface operations {
59386
59482
  };
59387
59483
  };
59388
59484
  };
59389
- "duplicate-workflow": {
59390
- parameters: {
59391
- query?: never;
59392
- header?: never;
59393
- path: {
59394
- /** @description Name of the workflow to duplicate. */
59395
- workflow: string;
59396
- };
59397
- cookie?: never;
59398
- };
59399
- requestBody: {
59400
- content: {
59401
- "application/json": components["schemas"]["DuplicateWorkflowBody"];
59402
- };
59403
- };
59404
- responses: {
59405
- /** @description OK */
59406
- 200: {
59407
- headers: {
59408
- [name: string]: unknown;
59409
- };
59410
- content: {
59411
- "application/json": components["schemas"]["WorkflowItem"];
59412
- };
59413
- };
59414
- /** @description Error */
59415
- default: {
59416
- headers: {
59417
- [name: string]: unknown;
59418
- };
59419
- content: {
59420
- "application/json": components["schemas"]["Error"];
59421
- };
59422
- };
59423
- };
59424
- };
59425
59485
  "fork-workflow": {
59426
59486
  parameters: {
59427
59487
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parallelworks/client",
3
- "version": "7.94.0",
3
+ "version": "7.95.0",
4
4
  "description": "Official TypeScript client for Parallel Works ACTIVATE API",
5
5
  "type": "module",
6
6
  "exports": {