@serve.zone/interfaces 6.1.0 → 6.2.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
@@ -3,6 +3,18 @@
3
3
  ## Pending
4
4
 
5
5
 
6
+ ## 2026-05-26 - 6.2.0
7
+
8
+ - add hosted app parent upgrade admin contracts (hostedapp)
9
+ - Adds admin-facing TypedRequest contracts for hosted apps to inspect and start parent-managed upgrades without exposing app-control tokens to browsers.
10
+
11
+ ### Features
12
+
13
+ - add hosted app parent upgrade admin contracts (hostedapp)
14
+ - Adds getHostedAppParentUpgradeStatus and startHostedAppParentUpgrade TypedRequest interfaces.
15
+ - Includes identity-based requests, optional targetVersion support, hosted availability metadata, and upgrade state responses.
16
+ - Updates @types/node to ^25.9.1.
17
+
6
18
  ## 2026-05-26 - 6.1.0
7
19
 
8
20
  - add generic hosted app lifecycle contracts (hostedapp)
@@ -3,7 +3,7 @@
3
3
  */
4
4
  export const commitinfo = {
5
5
  name: '@serve.zone/interfaces',
6
- version: '6.1.0',
6
+ version: '6.2.0',
7
7
  description: 'Shared TypeScript interfaces and TypedRequest contracts for the serve.zone ecosystem.'
8
8
  };
9
9
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvMDBfY29tbWl0aW5mb19kYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sVUFBVSxHQUFHO0lBQ3hCLElBQUksRUFBRSx3QkFBd0I7SUFDOUIsT0FBTyxFQUFFLE9BQU87SUFDaEIsV0FBVyxFQUFFLHVGQUF1RjtDQUNyRyxDQUFBIn0=
@@ -1,4 +1,5 @@
1
1
  import * as plugins from '../plugins.js';
2
+ import type { IIdentity } from '../data/user.js';
2
3
  import type { IHostedAppBootstrapAction, IHostedAppBootstrapActionRequest, IHostedAppLifecycleReport, IHostedAppLifecycleState, IHostedAppRuntimeIdentity, IHostedAppUpgradeState } from '../data/hostedapp.js';
3
4
  export interface IReq_HostedApp_ReportLifecycleState extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_HostedApp_ReportLifecycleState> {
4
5
  method: 'hostedAppReportLifecycleState';
@@ -61,3 +62,26 @@ export interface IReq_HostedApp_GetManagedUpgradeStatus extends plugins.typedreq
61
62
  upgradeState: IHostedAppUpgradeState;
62
63
  };
63
64
  }
65
+ export interface IReq_Admin_GetHostedAppParentUpgradeStatus extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_Admin_GetHostedAppParentUpgradeStatus> {
66
+ method: 'getHostedAppParentUpgradeStatus';
67
+ request: {
68
+ identity: IIdentity;
69
+ };
70
+ response: {
71
+ isHosted: boolean;
72
+ unavailableReason?: string;
73
+ upgradeState: IHostedAppUpgradeState;
74
+ };
75
+ }
76
+ export interface IReq_Admin_StartHostedAppParentUpgrade extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_Admin_StartHostedAppParentUpgrade> {
77
+ method: 'startHostedAppParentUpgrade';
78
+ request: {
79
+ identity: IIdentity;
80
+ targetVersion?: string;
81
+ };
82
+ response: {
83
+ isHosted: boolean;
84
+ unavailableReason?: string;
85
+ upgradeState: IHostedAppUpgradeState;
86
+ };
87
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@serve.zone/interfaces",
3
- "version": "6.1.0",
3
+ "version": "6.2.0",
4
4
  "private": false,
5
5
  "description": "Shared TypeScript interfaces and TypedRequest contracts for the serve.zone ecosystem.",
6
6
  "exports": {
@@ -19,7 +19,7 @@
19
19
  "@git.zone/tsdoc": "^2.0.6",
20
20
  "@git.zone/tsrun": "^2.0.4",
21
21
  "@git.zone/tstest": "^3.6.6",
22
- "@types/node": "^25.8.0"
22
+ "@types/node": "^25.9.1"
23
23
  },
24
24
  "files": [
25
25
  "ts/**/*",
@@ -3,6 +3,6 @@
3
3
  */
4
4
  export const commitinfo = {
5
5
  name: '@serve.zone/interfaces',
6
- version: '6.1.0',
6
+ version: '6.2.0',
7
7
  description: 'Shared TypeScript interfaces and TypedRequest contracts for the serve.zone ecosystem.'
8
8
  }
@@ -1,4 +1,5 @@
1
1
  import * as plugins from '../plugins.js';
2
+ import type { IIdentity } from '../data/user.js';
2
3
  import type {
3
4
  IHostedAppBootstrapAction,
4
5
  IHostedAppBootstrapActionRequest,
@@ -92,3 +93,34 @@ export interface IReq_HostedApp_GetManagedUpgradeStatus extends plugins.typedreq
92
93
  upgradeState: IHostedAppUpgradeState;
93
94
  };
94
95
  }
96
+
97
+ export interface IReq_Admin_GetHostedAppParentUpgradeStatus extends plugins.typedrequestInterfaces.implementsTR<
98
+ plugins.typedrequestInterfaces.ITypedRequest,
99
+ IReq_Admin_GetHostedAppParentUpgradeStatus
100
+ > {
101
+ method: 'getHostedAppParentUpgradeStatus';
102
+ request: {
103
+ identity: IIdentity;
104
+ };
105
+ response: {
106
+ isHosted: boolean;
107
+ unavailableReason?: string;
108
+ upgradeState: IHostedAppUpgradeState;
109
+ };
110
+ }
111
+
112
+ export interface IReq_Admin_StartHostedAppParentUpgrade extends plugins.typedrequestInterfaces.implementsTR<
113
+ plugins.typedrequestInterfaces.ITypedRequest,
114
+ IReq_Admin_StartHostedAppParentUpgrade
115
+ > {
116
+ method: 'startHostedAppParentUpgrade';
117
+ request: {
118
+ identity: IIdentity;
119
+ targetVersion?: string;
120
+ };
121
+ response: {
122
+ isHosted: boolean;
123
+ unavailableReason?: string;
124
+ upgradeState: IHostedAppUpgradeState;
125
+ };
126
+ }