@distr-sh/distr-sdk 4.1.0 → 4.2.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.
@@ -28,8 +28,16 @@ export interface ApplicationVersion {
28
28
  chartName?: string;
29
29
  chartUrl?: string;
30
30
  chartVersion?: string;
31
+ /** The user who created this version. Only vendor users get to see it. */
32
+ createdBy?: ApplicationVersionCreator;
31
33
  resources?: ApplicationVersionResource[];
32
34
  }
35
+ export interface ApplicationVersionCreator {
36
+ id: string;
37
+ name?: string;
38
+ email?: string;
39
+ imageId?: string;
40
+ }
33
41
  export interface ApplicationVersionResource {
34
42
  id?: string;
35
43
  applicationVersionId?: string;
@@ -54,9 +54,19 @@ export interface DeploymentWithLatestRevision extends Deployment {
54
54
  deploymentRevisionId?: string;
55
55
  deploymentRevisionCreatedAt?: string;
56
56
  latestStatus?: DeploymentRevisionStatus;
57
+ /**
58
+ * The revision an agent last reported as applied, which differs from deploymentRevisionId while a
59
+ * newer revision is being rolled out or has failed.
60
+ */
61
+ currentDeploymentRevisionId?: string;
62
+ currentStatus?: DeploymentRevisionStatus;
63
+ currentApplicationVersionId?: string;
64
+ currentApplicationVersionName?: string;
57
65
  helmOptions?: HelmOptions;
58
66
  }
59
- export interface DeploymentRevisionStatus extends BaseModel {
67
+ export interface DeploymentRevisionStatus {
68
+ createdAt: string;
69
+ deploymentRevisionId: string;
60
70
  type: DeploymentStatusType;
61
71
  message: string;
62
72
  }
@@ -83,6 +93,7 @@ export interface DeploymentRevisionResponse {
83
93
  helmOptions?: HelmOptions;
84
94
  trigger: DeploymentRevisionTrigger;
85
95
  createdBy?: DeploymentRevisionCreator;
96
+ latestStatus?: DeploymentRevisionStatus;
86
97
  }
87
98
  export type DeploymentRevisionTrigger = 'user' | 'automatic_update' | 'secret_change' | 'license_key_change';
88
99
  export type DeploymentType = 'docker' | 'kubernetes';
@@ -9,6 +9,7 @@ export interface UserAccount extends BaseModel {
9
9
  mfaEnabled: boolean;
10
10
  }
11
11
  export interface UserAccountWithRole extends UserAccount {
12
+ activated: boolean;
12
13
  userRole: UserRole;
13
14
  customerOrganizationId?: string;
14
15
  partnerOrganizationId?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@distr-sh/distr-sdk",
3
- "version": "4.1.0",
3
+ "version": "4.2.1",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "Distr SDK",
@@ -28,7 +28,7 @@
28
28
  "rimraf": "^6.0.1",
29
29
  "typedoc": "^0.28.0",
30
30
  "typedoc-plugin-markdown": "^4.5.0",
31
- "typescript": "^5.7.3"
31
+ "typescript": "~6.0.3"
32
32
  },
33
33
  "scripts": {
34
34
  "build": "rimraf dist && tsc",