@serve.zone/interfaces 31.9.0 → 32.0.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 (204) hide show
  1. package/.smartconfig.json +1 -0
  2. package/changelog.md +467 -0
  3. package/dist_ts/00_commitinfo_data.js +3 -3
  4. package/dist_ts/appstore/types.d.ts +4 -6
  5. package/dist_ts/appstore/types.js +5 -5
  6. package/dist_ts/data/backup.d.ts +3 -26
  7. package/dist_ts/data/cluster.d.ts +36 -11
  8. package/dist_ts/data/cluster.js +33 -22
  9. package/dist_ts/data/clusteringress.d.ts +8 -0
  10. package/dist_ts/data/clusteringress.js +13 -8
  11. package/dist_ts/data/clusternode.d.ts +121 -74
  12. package/dist_ts/data/clusternode.js +109 -132
  13. package/dist_ts/data/coremail.d.ts +3 -7
  14. package/dist_ts/data/coremail.js +2 -2
  15. package/dist_ts/data/coremail.runtime.d.ts +0 -1
  16. package/dist_ts/data/coremail.runtime.js +5 -22
  17. package/dist_ts/data/deploymentadoption.d.ts +0 -2
  18. package/dist_ts/data/deploymentadoption.js +40 -6
  19. package/dist_ts/data/deploymentoperation.js +16 -3
  20. package/dist_ts/data/deploymentpreflight.d.ts +0 -2
  21. package/dist_ts/data/deploymentpreflight.js +1 -1
  22. package/dist_ts/data/immutableimage.d.ts +38 -21
  23. package/dist_ts/data/immutableimage.js +45 -5
  24. package/dist_ts/data/index.d.ts +1 -1
  25. package/dist_ts/data/isolatedrestore.d.ts +139 -21
  26. package/dist_ts/data/isolatedrestore.golden.d.ts +0 -1
  27. package/dist_ts/data/isolatedrestore.golden.js +6 -9
  28. package/dist_ts/data/isolatedrestore.js +176 -40
  29. package/dist_ts/data/mail.d.ts +1 -1
  30. package/dist_ts/data/networkaddressplan.d.ts +8 -8
  31. package/dist_ts/data/networkaddressplan.js +4 -4
  32. package/dist_ts/data/networkauthority.d.ts +20 -22
  33. package/dist_ts/data/networkauthority.js +26 -28
  34. package/dist_ts/data/networkcredential.d.ts +10 -10
  35. package/dist_ts/data/networkcredential.js +16 -16
  36. package/dist_ts/data/networkdelivery.d.ts +18 -18
  37. package/dist_ts/data/networkdelivery.js +16 -16
  38. package/dist_ts/data/networklease.d.ts +18 -7
  39. package/dist_ts/data/networklease.js +29 -7
  40. package/dist_ts/data/networknode.d.ts +2 -2
  41. package/dist_ts/data/networkprojection.d.ts +59 -60
  42. package/dist_ts/data/networkprojection.js +53 -57
  43. package/dist_ts/data/networkprotection.d.ts +27 -28
  44. package/dist_ts/data/networkprotection.js +36 -36
  45. package/dist_ts/data/networkrouter.d.ts +11 -11
  46. package/dist_ts/data/networkrouter.js +1 -1
  47. package/dist_ts/data/networksigning.d.ts +16 -18
  48. package/dist_ts/data/networksigning.js +20 -21
  49. package/dist_ts/data/nodecredential.d.ts +4 -6
  50. package/dist_ts/data/nodeenrollment.d.ts +35 -40
  51. package/dist_ts/data/nodeenrollment.js +57 -72
  52. package/dist_ts/data/privatenetwork.d.ts +21 -24
  53. package/dist_ts/data/privatenetwork.js +39 -54
  54. package/dist_ts/data/runtimeassignment.d.ts +50 -34
  55. package/dist_ts/data/runtimeassignment.js +79 -45
  56. package/dist_ts/data/runtimeconfig.d.ts +21 -22
  57. package/dist_ts/data/runtimeconfig.js +24 -24
  58. package/dist_ts/data/runtimesession.d.ts +100 -62
  59. package/dist_ts/data/runtimesession.js +98 -79
  60. package/dist_ts/data/runtimeterminalreceipt.d.ts +28 -29
  61. package/dist_ts/data/runtimeterminalreceipt.js +42 -42
  62. package/dist_ts/data/secret.d.ts +18 -25
  63. package/dist_ts/data/secret.js +12 -52
  64. package/dist_ts/data/servicecredential.d.ts +14 -16
  65. package/dist_ts/data/servicecredential.js +17 -28
  66. package/dist_ts/data/serviceruntime.d.ts +7 -7
  67. package/dist_ts/data/serviceruntime.js +4 -4
  68. package/dist_ts/data/sparknodereport.d.ts +27 -14
  69. package/dist_ts/data/sparknodereport.js +35 -28
  70. package/dist_ts/data/webpush.d.ts +0 -1
  71. package/dist_ts/index.d.ts +2 -1
  72. package/dist_ts/index.js +3 -2
  73. package/dist_ts/platform/objectstorageretention.d.ts +21 -24
  74. package/dist_ts/platform/objectstorageretention.js +6 -18
  75. package/dist_ts/platform/storage.d.ts +1 -3
  76. package/dist_ts/platform/storagemigration.d.ts +0 -7
  77. package/dist_ts/platform/storagemigration.golden.d.ts +0 -1
  78. package/dist_ts/platform/storagemigration.golden.js +8 -12
  79. package/dist_ts/platform/storagemigration.js +6 -51
  80. package/dist_ts/platform/types.d.ts +2 -2
  81. package/dist_ts/private/canonicaljson.d.ts +9 -1
  82. package/dist_ts/private/canonicaljson.js +14 -2
  83. package/dist_ts/private/dataproperties.d.ts +62 -0
  84. package/dist_ts/private/dataproperties.js +117 -0
  85. package/dist_ts/private/networkcontract.d.ts +10 -10
  86. package/dist_ts/private/networkcontract.js +1 -1
  87. package/dist_ts/private/releaseversion.d.ts +37 -0
  88. package/dist_ts/private/releaseversion.js +48 -0
  89. package/dist_ts/private/runtimepolicy.d.ts +2 -2
  90. package/dist_ts/private/runtimepolicy.js +1 -1
  91. package/dist_ts/private/tokenlist.d.ts +9 -0
  92. package/dist_ts/private/tokenlist.js +23 -0
  93. package/dist_ts/protocol.d.ts +137 -0
  94. package/dist_ts/protocol.js +255 -0
  95. package/dist_ts/requests/admin.d.ts +8 -8
  96. package/dist_ts/requests/backup.d.ts +102 -112
  97. package/dist_ts/requests/cluster.d.ts +10 -10
  98. package/dist_ts/requests/clusteringress.d.ts +9 -0
  99. package/dist_ts/requests/clusteringress.js +1 -1
  100. package/dist_ts/requests/config.d.ts +3 -3
  101. package/dist_ts/requests/corestore.d.ts +0 -3
  102. package/dist_ts/requests/corestore.js +5 -9
  103. package/dist_ts/requests/network.d.ts +30 -30
  104. package/dist_ts/requests/node.d.ts +15 -28
  105. package/dist_ts/requests/pallet.d.ts +13 -13
  106. package/dist_ts/requests/runtimesession.d.ts +53 -41
  107. package/dist_ts/requests/secret.d.ts +4 -5
  108. package/dist_ts/requests/secret.js +1 -5
  109. package/dist_ts/runtime.corestore.d.ts +56 -74
  110. package/dist_ts/runtime.corestore.databaseexportpackage.d.ts +30 -36
  111. package/dist_ts/runtime.corestore.databaseexportpackage.golden.d.ts +11 -12
  112. package/dist_ts/runtime.corestore.databaseexportpackage.golden.js +54 -71
  113. package/dist_ts/runtime.corestore.databaseexportpackage.js +9 -25
  114. package/dist_ts/runtime.corestore.js +35 -135
  115. package/dist_ts/runtime.corestore.relay.js +2 -7
  116. package/dist_ts/runtime.d.ts +38 -48
  117. package/dist_ts/runtime.js +20 -77
  118. package/dist_ts/runtime.networkprojection.d.ts +4 -4
  119. package/dist_ts/runtime.networkprojection.js +18 -18
  120. package/dist_ts/runtime.workloadinit.d.ts +23 -24
  121. package/dist_ts/runtime.workloadinit.js +6 -13
  122. package/package.json +2 -2
  123. package/readme.md +421 -270
  124. package/ts/00_commitinfo_data.ts +3 -3
  125. package/ts/appstore/types.ts +4 -6
  126. package/ts/data/backup.ts +3 -38
  127. package/ts/data/cluster.ts +51 -34
  128. package/ts/data/clusteringress.ts +12 -12
  129. package/ts/data/clusternode.ts +204 -232
  130. package/ts/data/coremail.runtime.ts +4 -21
  131. package/ts/data/coremail.ts +3 -7
  132. package/ts/data/deploymentadoption.ts +46 -4
  133. package/ts/data/deploymentoperation.ts +16 -1
  134. package/ts/data/deploymentpreflight.ts +0 -2
  135. package/ts/data/immutableimage.ts +71 -24
  136. package/ts/data/index.ts +1 -1
  137. package/ts/data/isolatedrestore.golden.ts +5 -9
  138. package/ts/data/isolatedrestore.ts +339 -54
  139. package/ts/data/mail.ts +1 -1
  140. package/ts/data/networkaddressplan.ts +13 -13
  141. package/ts/data/networkauthority.ts +42 -46
  142. package/ts/data/networkcredential.ts +24 -24
  143. package/ts/data/networkdelivery.ts +27 -27
  144. package/ts/data/networklease.ts +40 -13
  145. package/ts/data/networknode.ts +2 -2
  146. package/ts/data/networkprojection.ts +119 -124
  147. package/ts/data/networkprotection.ts +54 -55
  148. package/ts/data/networkrouter.ts +14 -14
  149. package/ts/data/networksigning.ts +29 -32
  150. package/ts/data/nodecredential.ts +4 -6
  151. package/ts/data/nodeenrollment.ts +96 -114
  152. package/ts/data/privatenetwork.ts +58 -74
  153. package/ts/data/runtimeassignment.ts +143 -94
  154. package/ts/data/runtimeconfig.ts +45 -46
  155. package/ts/data/runtimesession.ts +185 -138
  156. package/ts/data/runtimeterminalreceipt.ts +72 -73
  157. package/ts/data/secret.ts +28 -76
  158. package/ts/data/servicecredential.ts +33 -43
  159. package/ts/data/serviceruntime.ts +11 -11
  160. package/ts/data/sparknodereport.ts +48 -36
  161. package/ts/data/webpush.ts +0 -1
  162. package/ts/index.ts +2 -0
  163. package/ts/platform/objectstorageretention.ts +36 -55
  164. package/ts/platform/storage.ts +1 -3
  165. package/ts/platform/storagemigration.golden.ts +7 -11
  166. package/ts/platform/storagemigration.ts +5 -55
  167. package/ts/platform/types.ts +2 -2
  168. package/ts/private/canonicaljson.ts +13 -1
  169. package/ts/private/dataproperties.ts +139 -0
  170. package/ts/private/networkcontract.ts +9 -9
  171. package/ts/private/releaseversion.ts +70 -0
  172. package/ts/private/runtimepolicy.ts +2 -2
  173. package/ts/private/tokenlist.ts +30 -0
  174. package/ts/protocol.ts +364 -0
  175. package/ts/requests/admin.ts +11 -11
  176. package/ts/requests/backup.ts +112 -117
  177. package/ts/requests/cluster.ts +13 -13
  178. package/ts/requests/clusteringress.ts +9 -0
  179. package/ts/requests/config.ts +3 -3
  180. package/ts/requests/corestore.ts +4 -16
  181. package/ts/requests/network.ts +40 -40
  182. package/ts/requests/node.ts +21 -38
  183. package/ts/requests/pallet.ts +17 -17
  184. package/ts/requests/runtimesession.ts +63 -51
  185. package/ts/requests/secret.ts +5 -10
  186. package/ts/runtime.corestore.databaseexportpackage.golden.ts +77 -95
  187. package/ts/runtime.corestore.databaseexportpackage.ts +51 -73
  188. package/ts/runtime.corestore.relay.ts +1 -10
  189. package/ts/runtime.corestore.ts +118 -268
  190. package/ts/runtime.networkprojection.ts +30 -30
  191. package/ts/runtime.ts +83 -158
  192. package/ts/runtime.workloadinit.ts +36 -48
  193. package/dist_ts/runtime.cloudlylegacydeploymentsettlement.d.ts +0 -902
  194. package/dist_ts/runtime.cloudlylegacydeploymentsettlement.golden.d.ts +0 -35
  195. package/dist_ts/runtime.cloudlylegacydeploymentsettlement.golden.js +0 -315
  196. package/dist_ts/runtime.cloudlylegacydeploymentsettlement.js +0 -3315
  197. package/dist_ts/runtime.cloudlylegacydeploymentsettlement.offlineexport.d.ts +0 -291
  198. package/dist_ts/runtime.cloudlylegacydeploymentsettlement.offlineexport.golden.d.ts +0 -30
  199. package/dist_ts/runtime.cloudlylegacydeploymentsettlement.offlineexport.golden.js +0 -408
  200. package/dist_ts/runtime.cloudlylegacydeploymentsettlement.offlineexport.js +0 -1126
  201. package/ts/runtime.cloudlylegacydeploymentsettlement.golden.ts +0 -421
  202. package/ts/runtime.cloudlylegacydeploymentsettlement.offlineexport.golden.ts +0 -510
  203. package/ts/runtime.cloudlylegacydeploymentsettlement.offlineexport.ts +0 -2470
  204. package/ts/runtime.cloudlylegacydeploymentsettlement.ts +0 -6630
@@ -1,25 +1,24 @@
1
1
  import type { IIdentityCredential } from './user.js';
2
- import type { IRuntimeAssignmentObservationV1, IRuntimeAssignmentReferenceV1, IRuntimeAssignmentV1, IRuntimeControllerV1 } from './runtimeassignment.js';
3
- import type { IRuntimeConfigV1 } from './runtimeconfig.js';
2
+ import type { IRuntimeAssignmentObservation, IRuntimeAssignmentReference, IRuntimeAssignment, IRuntimeController, TRuntimeWorkloadAuthority } from './runtimeassignment.js';
3
+ import { type IProtocolOffer } from '../protocol.js';
4
+ import type { IRuntimeConfig } from './runtimeconfig.js';
4
5
  /**
5
6
  * Server-issued public binding for the current authenticated physical connection.
6
7
  * It contains no bearer, peer ID or client-selected authority. A serialized binding
7
8
  * is not authentication: every receiver must compare it with its live peer context.
8
9
  * Onebox local execution uses the same shape with its own authenticated IPC owner.
9
10
  */
10
- export interface IRuntimeSessionBindingV1 {
11
- schemaVersion: 1;
11
+ export interface IRuntimeSessionBinding {
12
12
  reporterSessionId: string;
13
13
  nodeId: string;
14
14
  credentialGeneration: number;
15
15
  sessionEpoch: number;
16
16
  controllerInstanceId: string;
17
- controller: IRuntimeControllerV1;
17
+ controller: IRuntimeController;
18
18
  runtimeNamespace: string;
19
19
  }
20
20
  /** Pallet-initiated WSS on its configured Cloudly HTTPS origin; never HTTP RPC. */
21
- export interface IRegisterPalletRuntimeSessionRequestV1 {
22
- schemaVersion: 1;
21
+ export interface IRegisterPalletRuntimeSessionRequest {
23
22
  nodeId: string;
24
23
  credentialGeneration: number;
25
24
  /** Sensitive ephemeral input; exclude the complete request from hooks and logs. */
@@ -29,69 +28,103 @@ export interface IRegisterPalletRuntimeSessionRequestV1 {
29
28
  * registration. It proves which node process is registering when the transport cannot:
30
29
  * one relay socket carries many nodes, so the physical peer no longer distinguishes a
31
30
  * node restart from a replay. It is not a secret and it grants no authority; the bearer
32
- * still authenticates. Absent only from legacy senders, which a controller may accept
33
- * exclusively from a directly connected node.
31
+ * still authenticates.
34
32
  */
35
- nodeInstanceNonce?: string;
33
+ nodeInstanceNonce: string;
34
+ /**
35
+ * What this node can resolve for a workload, sorted and duplicate-free.
36
+ *
37
+ * It states a capability of the build that is registering, not a permission: the controller
38
+ * refuses an assignment whose `requiredWorkloadAuthorities` this list does not cover, instead
39
+ * of a node accepting work it cannot carry out. It is not part of the registration identity —
40
+ * a changed build is a new process and therefore a new `nodeInstanceNonce` — so a replay of one
41
+ * registration with different authorities is a conflict rather than an update.
42
+ */
43
+ resolvedAuthorities: TRuntimeWorkloadAuthority[];
44
+ /** Read and negotiated before anything else on this body; see `runtimeSessionContract`. */
45
+ protocol: IProtocolOffer;
46
+ }
47
+ /**
48
+ * What the controller answers an accepted registration with.
49
+ *
50
+ * The offer travels beside the binding rather than inside it: the binding is embedded in every
51
+ * session-scoped request and compared as a whole, so an offer in it would make two builds of one
52
+ * controller produce two bindings for one session.
53
+ */
54
+ export interface IRegisterPalletRuntimeSessionResponse {
55
+ session: IRuntimeSessionBinding;
56
+ protocol: IProtocolOffer;
36
57
  }
37
- export interface IApplyRuntimeAssignmentRequestV1 {
38
- session: IRuntimeSessionBindingV1;
39
- assignment: IRuntimeAssignmentV1;
40
- config: IRuntimeConfigV1;
58
+ export interface IApplyRuntimeAssignmentRequest {
59
+ session: IRuntimeSessionBinding;
60
+ assignment: IRuntimeAssignment;
61
+ config: IRuntimeConfig;
41
62
  /** Exact removed incumbent for a new attempt; not assignment.previous. */
42
- predecessor: IRuntimeAssignmentReferenceV1 | null;
63
+ predecessor: IRuntimeAssignmentReference | null;
43
64
  }
44
65
  /** Durable admission acknowledgement only; it asserts neither effects nor readiness. */
45
- export interface IApplyRuntimeAssignmentResponseV1 {
66
+ export interface IApplyRuntimeAssignmentResponse {
46
67
  status: 'accepted' | 'replay' | 'historical';
47
- assignment: IRuntimeAssignmentReferenceV1;
68
+ assignment: IRuntimeAssignmentReference;
48
69
  }
49
- export interface IReportRuntimeAssignmentObservationRequestV1 {
70
+ export interface IReportRuntimeAssignmentObservationRequest {
50
71
  /** Always the CURRENT authenticated connection, including after credential rotation. */
51
- session: IRuntimeSessionBindingV1;
72
+ session: IRuntimeSessionBinding;
52
73
  /** Exact durable outbox body. Never rewrite reporterSessionId, digest or sequence. */
53
- observation: IRuntimeAssignmentObservationV1;
74
+ observation: IRuntimeAssignmentObservation;
54
75
  }
55
- export type TRuntimeObservationAuthorityUseV1 = 'current-session' | 'historical-recovery';
76
+ export type TRuntimeObservationAuthorityUse = 'current-session' | 'historical-recovery';
56
77
  /** Content comparison result only; all supplied authority must come from its trusted owner. */
57
- export interface IRuntimeReporterSessionBindingV1 {
58
- session: IRuntimeSessionBindingV1;
59
- assignment: IRuntimeAssignmentV1;
60
- reporterHistory: IRuntimeSessionBindingV1;
61
- authorityUse: TRuntimeObservationAuthorityUseV1;
78
+ export interface IRuntimeReporterSessionBinding {
79
+ session: IRuntimeSessionBinding;
80
+ assignment: IRuntimeAssignment;
81
+ reporterHistory: IRuntimeSessionBinding;
82
+ authorityUse: TRuntimeObservationAuthorityUse;
62
83
  }
63
- export interface IReportRuntimeAssignmentObservationResponseV1 {
84
+ export interface IReportRuntimeAssignmentObservationResponse {
64
85
  /** Exact request body after a durable sequence/receipt transaction. */
65
- observation: IRuntimeAssignmentObservationV1;
86
+ observation: IRuntimeAssignmentObservation;
66
87
  /**
67
88
  * Historical recovery can advance the durable counter and ACK only. It must not
68
89
  * update active readiness, routing or liveness; those require a fresh report
69
90
  * from the current session. Neither classification is proof of writer fencing.
70
91
  */
71
- authorityUse: TRuntimeObservationAuthorityUseV1;
92
+ authorityUse: TRuntimeObservationAuthorityUse;
72
93
  }
73
- export interface IGetRuntimeRegistryCredentialRequestV1 {
74
- session: IRuntimeSessionBindingV1;
94
+ export interface IGetRuntimeRegistryCredentialRequest {
95
+ session: IRuntimeSessionBinding;
75
96
  /** The server must authorize this exact CURRENT assignment, including its node. */
76
- assignment: IRuntimeAssignmentReferenceV1;
97
+ assignment: IRuntimeAssignmentReference;
77
98
  }
78
99
  /** Sensitive ephemeral material; never persist, hash, log or include in diagnostics. */
79
- export interface IGetRuntimeRegistryCredentialResponseV1 {
100
+ export interface IGetRuntimeRegistryCredentialResponse {
80
101
  username: string;
81
102
  password: string;
82
103
  expiresAt: number;
83
104
  }
84
105
  /** Cloudly human/machine JWT registration on a physical TypedSocket; reject HTTP. */
85
- export interface IRegisterCloudlyClientSessionRequestV1 {
86
- schemaVersion: 1;
106
+ export interface IRegisterCloudlyClientSessionRequest {
87
107
  /** Authenticate the current JWT server-side; do not accept client identity claims. */
88
108
  identity: IIdentityCredential;
109
+ /** Read and negotiated before the identity is authenticated; see `runtimeSessionContract`. */
110
+ protocol: IProtocolOffer;
89
111
  }
90
- export interface IRegisterCloudlyClientSessionResponseV1 {
112
+ export interface IRegisterCloudlyClientSessionResponse {
91
113
  /** Server-owned identity tagging completed; never trust a client-authored tag. */
92
114
  registered: true;
115
+ /** The controller's offer, so an accepted client can judge the session it just opened. */
116
+ protocol: IProtocolOffer;
93
117
  }
94
- export declare const runtimeSessionV1Contract: Readonly<{
118
+ /**
119
+ * The rules every runtime session registration is judged by.
120
+ *
121
+ * Every carrier here is judged in the one server order `protocol.readProtocolOffer` states,
122
+ * against this session kind's own offer, so the snapshots below see a body whose offer this
123
+ * controller already accepted. For a node that order is also what keeps a refused registration
124
+ * from touching its packet access: the refusal is named before `networkVpn` is asked to mutate
125
+ * anything.
126
+ */
127
+ export declare const runtimeSessionContract: Readonly<{
95
128
  readonly maximumWireCanonicalBytes: 327680;
96
129
  readonly maximumCredentialBytes: 16384;
97
130
  readonly maximumRegistryPasswordBytes: 8192;
@@ -100,33 +133,38 @@ export declare const runtimeSessionV1Contract: Readonly<{
100
133
  readonly nodeInstanceNonceFormat: "canonical-lowercase-uuid-per-node-process";
101
134
  /** The registration a controller must treat as one: a change in any part is a new session. */
102
135
  readonly registrationIdentity: "node-id-and-credential-generation-and-node-instance-nonce";
103
- /** A relay socket carries many nodes, so its transport cannot prove a node process. */
104
- readonly relayRegistrationRequiresNodeInstanceNonce: true;
105
136
  readonly error: "Runtime session contract rejected.";
106
137
  }>;
107
138
  /** Synchronous detached structural assertion only; never an authentication check. */
108
- export declare const snapshotRuntimeSessionBindingV1: (valueArg: unknown) => IRuntimeSessionBindingV1;
109
- export declare const snapshotRegisterPalletRuntimeSessionRequestV1: (valueArg: unknown) => IRegisterPalletRuntimeSessionRequestV1;
110
- export declare const snapshotApplyRuntimeAssignmentRequestV1: (valueArg: unknown) => IApplyRuntimeAssignmentRequestV1;
111
- export declare const snapshotApplyRuntimeAssignmentResponseV1: (valueArg: unknown) => IApplyRuntimeAssignmentResponseV1;
112
- export declare const snapshotReportRuntimeAssignmentObservationRequestV1: (valueArg: unknown) => IReportRuntimeAssignmentObservationRequestV1;
113
- export declare const snapshotReportRuntimeAssignmentObservationResponseV1: (valueArg: unknown) => IReportRuntimeAssignmentObservationResponseV1;
114
- export declare const snapshotGetRuntimeRegistryCredentialRequestV1: (valueArg: unknown) => IGetRuntimeRegistryCredentialRequestV1;
115
- export declare const snapshotGetRuntimeRegistryCredentialResponseV1: (valueArg: unknown) => IGetRuntimeRegistryCredentialResponseV1;
116
- export declare const snapshotRegisterCloudlyClientSessionRequestV1: (valueArg: unknown) => IRegisterCloudlyClientSessionRequestV1;
117
- export declare const snapshotRegisterCloudlyClientSessionResponseV1: (valueArg: unknown) => IRegisterCloudlyClientSessionResponseV1;
118
- /** Bind the authenticated Cloudly registration reply to the node and credential sent. */
119
- export declare const bindRegisterPalletRuntimeSessionResponseV1: (valueArg: unknown, requestArg: unknown) => IRuntimeSessionBindingV1;
139
+ export declare const snapshotRuntimeSessionBinding: (valueArg: unknown) => IRuntimeSessionBinding;
140
+ export declare const snapshotRegisterPalletRuntimeSessionRequest: (valueArg: unknown) => IRegisterPalletRuntimeSessionRequest;
141
+ export declare const snapshotRegisterPalletRuntimeSessionResponse: (valueArg: unknown) => IRegisterPalletRuntimeSessionResponse;
142
+ export declare const snapshotApplyRuntimeAssignmentRequest: (valueArg: unknown) => IApplyRuntimeAssignmentRequest;
143
+ export declare const snapshotApplyRuntimeAssignmentResponse: (valueArg: unknown) => IApplyRuntimeAssignmentResponse;
144
+ export declare const snapshotReportRuntimeAssignmentObservationRequest: (valueArg: unknown) => IReportRuntimeAssignmentObservationRequest;
145
+ export declare const snapshotReportRuntimeAssignmentObservationResponse: (valueArg: unknown) => IReportRuntimeAssignmentObservationResponse;
146
+ export declare const snapshotGetRuntimeRegistryCredentialRequest: (valueArg: unknown) => IGetRuntimeRegistryCredentialRequest;
147
+ export declare const snapshotGetRuntimeRegistryCredentialResponse: (valueArg: unknown) => IGetRuntimeRegistryCredentialResponse;
148
+ export declare const snapshotRegisterCloudlyClientSessionRequest: (valueArg: unknown) => IRegisterCloudlyClientSessionRequest;
149
+ export declare const snapshotRegisterCloudlyClientSessionResponse: (valueArg: unknown) => IRegisterCloudlyClientSessionResponse;
150
+ /**
151
+ * Bind the authenticated Cloudly registration reply to the node, credential and offer sent.
152
+ *
153
+ * The client negotiates the answered offer against the one it sent: acceptance by a controller is
154
+ * that controller's judgement, and a node that cannot serve the session it was given must not open
155
+ * it. Both offers were read from the two bodies, so this compares what was actually exchanged.
156
+ */
157
+ export declare const bindRegisterPalletRuntimeSessionResponse: (valueArg: unknown, requestArg: unknown) => IRegisterPalletRuntimeSessionResponse;
120
158
  /** Reject already expired material; issuance policy and current assignment authority remain server-owned. */
121
- export declare const bindGetRuntimeRegistryCredentialResponseV1: (valueArg: unknown, nowArg: number) => IGetRuntimeRegistryCredentialResponseV1;
159
+ export declare const bindGetRuntimeRegistryCredentialResponse: (valueArg: unknown, nowArg: number) => IGetRuntimeRegistryCredentialResponse;
122
160
  /**
123
161
  * Capture every input before awaiting digest verification. trustedSessionArg must
124
162
  * come from the receiving live connection, never from another request field.
125
163
  * This binds content only; durable CAS, slot admission and authority remain owners.
126
164
  */
127
- export declare const bindApplyRuntimeAssignmentRequestV1: (valueArg: unknown, trustedSessionArg: unknown) => Promise<IApplyRuntimeAssignmentRequestV1>;
165
+ export declare const bindApplyRuntimeAssignmentRequest: (valueArg: unknown, trustedSessionArg: unknown) => Promise<IApplyRuntimeAssignmentRequest>;
128
166
  /** Match an admission acknowledgement to the exact sent revision, including historical replies. */
129
- export declare const bindApplyRuntimeAssignmentResponseV1: (valueArg: unknown, requestArg: unknown) => IApplyRuntimeAssignmentResponseV1;
167
+ export declare const bindApplyRuntimeAssignmentResponse: (valueArg: unknown, requestArg: unknown) => IApplyRuntimeAssignmentResponse;
130
168
  /**
131
169
  * Synchronous detached content binding, not authentication. trustedSessionArg must
132
170
  * be the CURRENT authenticated physical peer; reporterHistoryArg must be immutable
@@ -134,23 +172,23 @@ export declare const bindApplyRuntimeAssignmentResponseV1: (valueArg: unknown, r
134
172
  * The owning transaction must recheck current credential/peer authority. Assignment
135
173
  * digest validation and report-specific authority remain the caller's responsibility.
136
174
  */
137
- export declare const bindRuntimeReporterSessionV1: (sessionArg: unknown, reporterSessionIdArg: string, assignmentArg: unknown, trustedSessionArg: unknown, reporterHistoryArg: unknown) => IRuntimeReporterSessionBindingV1;
175
+ export declare const bindRuntimeReporterSession: (sessionArg: unknown, reporterSessionIdArg: string, assignmentArg: unknown, trustedSessionArg: unknown, reporterHistoryArg: unknown) => IRuntimeReporterSessionBinding;
138
176
  /**
139
177
  * trustedSessionArg is the CURRENT authenticated physical peer. reporterHistoryArg
140
178
  * must be server-indexed immutable session history, obtained by the original
141
- * observation's reporterSessionId; never accept caller-supplied history. All V1
142
- * runtime sessions are Pallet-purpose sessions, so Spark history cannot qualify.
179
+ * observation's reporterSessionId; never accept caller-supplied history. Every
180
+ * runtime session is a Pallet-purpose session, so Spark history cannot qualify.
143
181
  *
144
182
  * This verifies content and classifies recovery, not authentication, history
145
183
  * provenance, sequence admission or current authority. The server must transact
146
184
  * receipt/counter acceptance under current credential and peer authority. A
147
185
  * historical result MUST NOT restore active readiness, routes or liveness.
148
186
  */
149
- export declare const bindReportRuntimeAssignmentObservationRequestV1: (valueArg: unknown, assignmentArg: unknown, trustedSessionArg: unknown, reporterHistoryArg: unknown) => Promise<{
150
- request: IReportRuntimeAssignmentObservationRequestV1;
151
- authorityUse: TRuntimeObservationAuthorityUseV1;
187
+ export declare const bindReportRuntimeAssignmentObservationRequest: (valueArg: unknown, assignmentArg: unknown, trustedSessionArg: unknown, reporterHistoryArg: unknown) => Promise<{
188
+ request: IReportRuntimeAssignmentObservationRequest;
189
+ authorityUse: TRuntimeObservationAuthorityUse;
152
190
  }>;
153
191
  /** Reject body rewriting and a historical receipt mislabeled as current authority. */
154
- export declare const bindReportRuntimeAssignmentObservationResponseV1: (valueArg: unknown, requestArg: unknown) => IReportRuntimeAssignmentObservationResponseV1;
192
+ export declare const bindReportRuntimeAssignmentObservationResponse: (valueArg: unknown, requestArg: unknown) => IReportRuntimeAssignmentObservationResponse;
155
193
  /** Current assignment lookup and live peer authorization remain mandatory server-owned inputs. */
156
- export declare const bindGetRuntimeRegistryCredentialRequestV1: (valueArg: unknown, assignmentArg: unknown, trustedSessionArg: unknown) => Promise<IGetRuntimeRegistryCredentialRequestV1>;
194
+ export declare const bindGetRuntimeRegistryCredentialRequest: (valueArg: unknown, assignmentArg: unknown, trustedSessionArg: unknown) => Promise<IGetRuntimeRegistryCredentialRequest>;