@astrale-domains/services 0.4.9 → 0.5.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.
Files changed (181) hide show
  1. package/README.md +153 -816
  2. package/dist/schema/index.d.ts +4 -5
  3. package/dist/schema/index.js +2 -3
  4. package/dist/schema/modules/deployment/classes/cloudflare-deployment.d.ts +4 -321
  5. package/dist/schema/modules/deployment/classes/cloudflare-deployment.js +1 -19
  6. package/dist/schema/modules/deployment/classes/current-deployment.d.ts +20 -0
  7. package/dist/schema/modules/deployment/classes/current-deployment.js +13 -0
  8. package/dist/schema/modules/deployment/classes/{deployment-on-line.d.ts → deployment-of.d.ts} +3 -3
  9. package/dist/schema/modules/deployment/classes/deployment-of.js +11 -0
  10. package/dist/schema/modules/deployment/classes/deployment.d.ts +9 -57
  11. package/dist/schema/modules/deployment/classes/deployment.js +9 -23
  12. package/dist/schema/modules/deployment/classes/index.d.ts +2 -3
  13. package/dist/schema/modules/deployment/classes/index.js +2 -3
  14. package/dist/schema/modules/deployment/errors/deployment-not-found.d.ts +2 -5
  15. package/dist/schema/modules/deployment/errors/deployment-not-found.js +2 -5
  16. package/dist/schema/modules/deployment/errors/index.d.ts +0 -2
  17. package/dist/schema/modules/deployment/errors/index.js +0 -2
  18. package/dist/schema/modules/deployment/functions/index.d.ts +0 -10
  19. package/dist/schema/modules/deployment/functions/index.js +0 -10
  20. package/dist/schema/modules/deployment/functions/retire-deployment.d.ts +8 -7
  21. package/dist/schema/modules/deployment/functions/retire-deployment.js +8 -7
  22. package/dist/schema/modules/deployment/index.d.ts +6 -6
  23. package/dist/schema/modules/deployment/index.js +7 -5
  24. package/dist/schema/modules/deployment/policies/index.d.ts +1 -4
  25. package/dist/schema/modules/deployment/policies/index.js +1 -4
  26. package/dist/schema/modules/deployment/policies/own-deployment.d.ts +1 -1
  27. package/dist/schema/modules/deployment/policies/own-deployment.js +6 -7
  28. package/dist/schema/modules/deployment/policies/traverse-owned-service-deployment.d.ts +2 -0
  29. package/dist/schema/modules/deployment/policies/traverse-owned-service-deployment.js +7 -0
  30. package/dist/schema/modules/deployment/states/deployment-lifecycle.d.ts +6 -9
  31. package/dist/schema/modules/deployment/states/deployment-lifecycle.js +6 -7
  32. package/dist/schema/modules/deployment/types/deployment-hosting.d.ts +9 -28
  33. package/dist/schema/modules/deployment/types/deployment-hosting.js +3 -3
  34. package/dist/schema/modules/deployment/types/deployment-request.d.ts +12 -40
  35. package/dist/schema/modules/deployment/types/deployment-request.js +17 -9
  36. package/dist/schema/modules/deployment/types/deployment-response.d.ts +7 -15
  37. package/dist/schema/modules/deployment/types/deployment-response.js +2 -2
  38. package/dist/schema/modules/deployment/types/deployment-retire.d.ts +1 -1
  39. package/dist/schema/modules/deployment/types/deployment-secret.d.ts +0 -39
  40. package/dist/schema/modules/deployment/types/deployment-secret.js +0 -34
  41. package/dist/schema/modules/deployment/types/deployment-summary.d.ts +14 -45
  42. package/dist/schema/modules/deployment/types/deployment-summary.js +9 -8
  43. package/dist/schema/modules/deployment/types/index.d.ts +7 -3
  44. package/dist/schema/modules/deployment/types/index.js +4 -2
  45. package/dist/schema/modules/{service → deployment}/types/service-deployment-artifact-module.d.ts +2 -20
  46. package/dist/schema/modules/deployment/types/service-deployment-artifact-module.js +10 -0
  47. package/dist/schema/modules/{service → deployment}/types/service-deployment-assets.d.ts +4 -20
  48. package/dist/schema/modules/{service → deployment}/types/service-deployment-assets.js +4 -7
  49. package/dist/schema/modules/service/classes/cloudflare-service.d.ts +321 -0
  50. package/dist/schema/modules/service/classes/cloudflare-service.js +35 -0
  51. package/dist/schema/modules/service/classes/index.d.ts +1 -1
  52. package/dist/schema/modules/service/classes/index.js +1 -1
  53. package/dist/schema/modules/service/classes/service.d.ts +18 -107
  54. package/dist/schema/modules/service/classes/service.js +16 -27
  55. package/dist/schema/modules/service/errors/index.d.ts +1 -0
  56. package/dist/schema/modules/service/errors/index.js +1 -0
  57. package/dist/schema/modules/service/errors/service-not-found.d.ts +7 -0
  58. package/dist/schema/modules/service/errors/service-not-found.js +8 -0
  59. package/dist/schema/modules/service/functions/delete-service.d.ts +1 -1
  60. package/dist/schema/modules/service/functions/delete-service.js +1 -1
  61. package/dist/schema/modules/{deployment/functions/deploy-cloudflare-deployment.d.ts → service/functions/deploy-service.d.ts} +20 -35
  62. package/dist/schema/modules/service/functions/deploy-service.js +15 -0
  63. package/dist/schema/modules/service/functions/describe-hosting.d.ts +8 -0
  64. package/dist/schema/modules/service/functions/describe-hosting.js +11 -0
  65. package/dist/schema/modules/service/functions/index.d.ts +5 -10
  66. package/dist/schema/modules/service/functions/index.js +5 -10
  67. package/dist/schema/modules/{deployment/functions/list-cloudflare-deployments.d.ts → service/functions/list-service-deployments.d.ts} +8 -12
  68. package/dist/schema/modules/service/functions/list-service-deployments.js +10 -0
  69. package/dist/schema/modules/service/functions/list-service-logs.d.ts +2 -1
  70. package/dist/schema/modules/service/functions/list-service-logs.js +1 -1
  71. package/dist/schema/modules/service/functions/list-service-schedules.d.ts +1 -1
  72. package/dist/schema/modules/service/functions/list-service-schedules.js +1 -1
  73. package/dist/schema/modules/service/functions/list-service-secret-names.d.ts +1 -1
  74. package/dist/schema/modules/service/functions/list-service-secret-names.js +1 -1
  75. package/dist/schema/modules/service/functions/promote-service.d.ts +14 -0
  76. package/dist/schema/modules/service/functions/promote-service.js +4 -0
  77. package/dist/schema/modules/service/functions/replace-service-schedules.d.ts +1 -1
  78. package/dist/schema/modules/service/functions/replace-service-schedules.js +1 -4
  79. package/dist/schema/modules/service/functions/set-service-secret.d.ts +4 -2
  80. package/dist/schema/modules/service/functions/set-service-secret.js +1 -1
  81. package/dist/schema/modules/service/functions/transfer-service.d.ts +14 -0
  82. package/dist/schema/modules/service/functions/transfer-service.js +4 -0
  83. package/dist/schema/modules/service/index.d.ts +5 -5
  84. package/dist/schema/modules/service/index.js +5 -4
  85. package/dist/schema/modules/service/policies/act-as.d.ts +6 -0
  86. package/dist/schema/modules/service/policies/act-as.js +10 -0
  87. package/dist/schema/modules/service/policies/index.d.ts +1 -0
  88. package/dist/schema/modules/service/policies/index.js +1 -0
  89. package/dist/schema/modules/service/states/service-lifecycle.d.ts +7 -20
  90. package/dist/schema/modules/service/states/service-lifecycle.js +6 -21
  91. package/dist/schema/modules/service/types/index.d.ts +1 -13
  92. package/dist/schema/modules/service/types/index.js +1 -8
  93. package/dist/schema/modules/service/types/service-management.d.ts +65 -24
  94. package/dist/schema/modules/service/types/service-management.js +46 -21
  95. package/dist/schema/schema.d.ts +252 -758
  96. package/dist/schema/schema.js +7 -11
  97. package/package.json +2 -9
  98. package/dist/scaffold/create-service.mjs +0 -77
  99. package/dist/scaffold/template/.env.example +0 -2
  100. package/dist/scaffold/template/README.md +0 -37
  101. package/dist/scaffold/template/gitignore +0 -6
  102. package/dist/scaffold/template/scripts/build.mjs +0 -10
  103. package/dist/scaffold/template/scripts/deploy.mjs +0 -50
  104. package/dist/scaffold/template/src/account.js +0 -26
  105. package/dist/scaffold/template/src/index.js +0 -32
  106. package/dist/scaffold/template/src/job.js +0 -19
  107. package/dist/schema/modules/deployment/classes/deployment-line.d.ts +0 -23
  108. package/dist/schema/modules/deployment/classes/deployment-line.js +0 -24
  109. package/dist/schema/modules/deployment/classes/deployment-on-line.js +0 -11
  110. package/dist/schema/modules/deployment/classes/line-owned-by.d.ts +0 -26
  111. package/dist/schema/modules/deployment/classes/line-owned-by.js +0 -19
  112. package/dist/schema/modules/deployment/errors/deployment-label-not-found.d.ts +0 -12
  113. package/dist/schema/modules/deployment/errors/deployment-label-not-found.js +0 -11
  114. package/dist/schema/modules/deployment/errors/deployment-registry-only.d.ts +0 -11
  115. package/dist/schema/modules/deployment/errors/deployment-registry-only.js +0 -12
  116. package/dist/schema/modules/deployment/functions/deploy-cloudflare-deployment.js +0 -14
  117. package/dist/schema/modules/deployment/functions/describe-deployment-hosting.d.ts +0 -8
  118. package/dist/schema/modules/deployment/functions/describe-deployment-hosting.js +0 -11
  119. package/dist/schema/modules/deployment/functions/expire-deployment-previews.d.ts +0 -16
  120. package/dist/schema/modules/deployment/functions/expire-deployment-previews.js +0 -14
  121. package/dist/schema/modules/deployment/functions/list-cloudflare-deployment-secret-names.d.ts +0 -5
  122. package/dist/schema/modules/deployment/functions/list-cloudflare-deployment-secret-names.js +0 -4
  123. package/dist/schema/modules/deployment/functions/list-cloudflare-deployments.js +0 -10
  124. package/dist/schema/modules/deployment/functions/list-deployment-secret-names.d.ts +0 -4
  125. package/dist/schema/modules/deployment/functions/list-deployment-secret-names.js +0 -6
  126. package/dist/schema/modules/deployment/functions/read-deployment-last-calls.d.ts +0 -10
  127. package/dist/schema/modules/deployment/functions/read-deployment-last-calls.js +0 -13
  128. package/dist/schema/modules/deployment/functions/retain-deployment.d.ts +0 -12
  129. package/dist/schema/modules/deployment/functions/retain-deployment.js +0 -13
  130. package/dist/schema/modules/deployment/functions/set-cloudflare-deployment-secret.d.ts +0 -18
  131. package/dist/schema/modules/deployment/functions/set-cloudflare-deployment-secret.js +0 -7
  132. package/dist/schema/modules/deployment/functions/set-deployment-secret.d.ts +0 -14
  133. package/dist/schema/modules/deployment/functions/set-deployment-secret.js +0 -3
  134. package/dist/schema/modules/deployment/policies/act-for-organization.d.ts +0 -6
  135. package/dist/schema/modules/deployment/policies/act-for-organization.js +0 -10
  136. package/dist/schema/modules/deployment/policies/own-line.d.ts +0 -5
  137. package/dist/schema/modules/deployment/policies/own-line.js +0 -10
  138. package/dist/schema/modules/deployment/policies/traverse-owned-line-deployment.d.ts +0 -2
  139. package/dist/schema/modules/deployment/policies/traverse-owned-line-deployment.js +0 -7
  140. package/dist/schema/modules/deployment/policies/traverse-owned-line.d.ts +0 -2
  141. package/dist/schema/modules/deployment/policies/traverse-owned-line.js +0 -7
  142. package/dist/schema/modules/deployment/types/deployment-retention.d.ts +0 -49
  143. package/dist/schema/modules/deployment/types/deployment-retention.js +0 -45
  144. package/dist/schema/modules/service/classes/cloudflare-worker.d.ts +0 -352
  145. package/dist/schema/modules/service/classes/cloudflare-worker.js +0 -41
  146. package/dist/schema/modules/service/functions/delete-service-secret.d.ts +0 -11
  147. package/dist/schema/modules/service/functions/delete-service-secret.js +0 -3
  148. package/dist/schema/modules/service/functions/delete-worker-secret.d.ts +0 -11
  149. package/dist/schema/modules/service/functions/delete-worker-secret.js +0 -7
  150. package/dist/schema/modules/service/functions/delete-worker.d.ts +0 -9
  151. package/dist/schema/modules/service/functions/delete-worker.js +0 -7
  152. package/dist/schema/modules/service/functions/deploy-cloudflare-worker.d.ts +0 -109
  153. package/dist/schema/modules/service/functions/deploy-cloudflare-worker.js +0 -9
  154. package/dist/schema/modules/service/functions/list-worker-logs.d.ts +0 -12
  155. package/dist/schema/modules/service/functions/list-worker-logs.js +0 -7
  156. package/dist/schema/modules/service/functions/list-worker-schedules.d.ts +0 -4
  157. package/dist/schema/modules/service/functions/list-worker-schedules.js +0 -7
  158. package/dist/schema/modules/service/functions/list-worker-secret-names.d.ts +0 -4
  159. package/dist/schema/modules/service/functions/list-worker-secret-names.js +0 -7
  160. package/dist/schema/modules/service/functions/migrate-worker-ingress.d.ts +0 -24
  161. package/dist/schema/modules/service/functions/migrate-worker-ingress.js +0 -26
  162. package/dist/schema/modules/service/functions/replace-worker-schedules.d.ts +0 -11
  163. package/dist/schema/modules/service/functions/replace-worker-schedules.js +0 -7
  164. package/dist/schema/modules/service/functions/set-worker-secret.d.ts +0 -12
  165. package/dist/schema/modules/service/functions/set-worker-secret.js +0 -7
  166. package/dist/schema/modules/service/types/deploy-cloudflare-worker.d.ts +0 -286
  167. package/dist/schema/modules/service/types/deploy-cloudflare-worker.js +0 -51
  168. package/dist/schema/modules/service/types/legacy/service-deployment-content.js +0 -22
  169. package/dist/schema/modules/service/types/service-deployment-artifact-module.js +0 -13
  170. package/dist/schema/modules/service/types/service-deployment-resource-limits.d.ts +0 -6
  171. package/dist/schema/modules/service/types/service-deployment-resource-limits.js +0 -7
  172. package/dist/schema/modules/service/types/service-readiness.d.ts +0 -6
  173. package/dist/schema/modules/service/types/service-readiness.js +0 -6
  174. package/dist/schema/modules/service/types/service-secret-operation-rejection.d.ts +0 -9
  175. package/dist/schema/modules/service/types/service-secret-operation-rejection.js +0 -5
  176. /package/dist/schema/modules/{service → deployment}/types/content/index.d.ts +0 -0
  177. /package/dist/schema/modules/{service → deployment}/types/content/index.js +0 -0
  178. /package/dist/schema/modules/{service → deployment}/types/content/limits.d.ts +0 -0
  179. /package/dist/schema/modules/{service → deployment}/types/content/limits.js +0 -0
  180. /package/dist/schema/modules/{service → deployment}/types/service-deployment-content.d.ts +0 -0
  181. /package/dist/schema/modules/{service → deployment}/types/service-deployment-content.js +0 -0
@@ -4,339 +4,118 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"se
4
4
  readonly classes: {
5
5
  readonly Service: import("@astrale-os/sdk/schema").AuthoredNodeClass<{
6
6
  readonly abstract: true;
7
- readonly description: "One caller-owned provider-neutral deployed Service.";
7
+ readonly description: "One deployed Service: a stable name and URL serving its current deployment.";
8
8
  readonly icon: import("@astrale-os/sdk/schema").ClassIcon;
9
- readonly extends: readonly [import("@astrale-os/sdk/schema").KernelClass<"Named">, import("@astrale-os/sdk/schema").KernelClass<"Descriptable">, import("@astrale-os/sdk/schema").KernelClass<"Timestamped">];
9
+ readonly extends: readonly [import("@astrale-os/sdk/schema").KernelClass<"Named">, import("@astrale-os/sdk/schema").KernelClass<"Timestamped">];
10
10
  readonly properties: {
11
- providerName: import("zod").ZodString;
12
- serviceKey: import("zod").ZodString;
13
- url: import("@astrale-os/sdk/schema").AuthoredProperty<import("zod").ZodString, {
14
- readonly required: false;
15
- }>;
11
+ origin: import("zod").ZodString;
12
+ environment: import("zod").ZodString;
13
+ fingerprint: import("zod").ZodString;
14
+ url: import("zod").ZodString;
16
15
  state: import("@astrale-os/sdk/schema").StateProperty<import("@astrale-os/sdk/schema").StateMachine<{
17
- readonly deploying: {
18
- readonly recordProviderDeployment: "reconciling";
19
- readonly failDeployment: "failed";
20
- readonly rejectDeployment: "ready";
21
- readonly deleteService: "deleting";
22
- };
23
- readonly reconciling: {
24
- readonly retryDeployment: "deploying";
25
- readonly completeDeployment: "ready";
26
- readonly deleteService: "deleting";
27
- };
28
- readonly ready: {
29
- readonly redeploy: "deploying";
30
- readonly deleteService: "deleting";
31
- };
32
- readonly failed: {
33
- readonly retryDeployment: "deploying";
34
- readonly deleteService: "deleting";
16
+ readonly active: {
17
+ readonly delete: "deleting";
35
18
  };
36
19
  readonly deleting: {};
37
- }, "deploying">, {
20
+ }, "active">, {
38
21
  required?: boolean;
39
22
  description?: string;
40
23
  }>;
41
- digest: import("@astrale-os/sdk/schema").AuthoredProperty<import("zod").ZodString, {
42
- readonly required: false;
43
- }>;
44
- deploymentReceipt: import("@astrale-os/sdk/schema").AuthoredProperty<import("zod").ZodString, {
45
- readonly required: false;
46
- }>;
47
- operationExpiresAt: import("@astrale-os/sdk/schema").AuthoredProperty<Readonly<{
48
- readonly type: 'string';
49
- readonly 'x-astrale-value-kind': 'instant';
50
- }>, {
51
- readonly required: false;
52
- }>;
53
- error: import("@astrale-os/sdk/schema").AuthoredProperty<import("zod").ZodString, {
54
- readonly required: false;
55
- }>;
56
- };
57
- readonly methods: {
58
- setSecret: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
59
- name: string;
60
- value: string;
61
- }, {
62
- readonly mode: 'value';
63
- readonly value: {
64
- kind: "rejected";
65
- reason: "binding-unavailable" | "invalid-secret-name" | "service-unavailable";
66
- } | {
67
- name: string;
68
- };
69
- }, "authorized", false, true, undefined>>;
70
- deleteSecret: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
71
- name: string;
72
- }, {
73
- readonly mode: 'value';
74
- readonly value: {
75
- ok: true;
76
- } | {
77
- kind: "rejected";
78
- reason: "binding-unavailable" | "invalid-secret-name" | "service-unavailable";
79
- };
80
- }, "authorized", false, true, undefined>>;
81
- secrets: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<Record<string, never>, {
82
- readonly mode: 'value';
83
- readonly value: string[];
84
- }, "authorized", false, true, undefined>>;
85
- setSchedule: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
86
- crons: string[];
87
- }, {
88
- readonly mode: 'value';
89
- readonly value: {
90
- crons: string[];
91
- } | {
92
- kind: "rejected";
93
- reason: "invalid-schedule" | "service-unavailable";
94
- };
95
- }, "authorized", false, true, undefined>>;
96
- schedules: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<Record<string, never>, {
97
- readonly mode: 'value';
98
- readonly value: string[];
99
- }, "authorized", false, true, undefined>>;
100
- logs: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
101
- tail?: number | undefined;
102
- since?: number | undefined;
103
- }, {
104
- readonly mode: 'value';
105
- readonly value: {
106
- id: string;
107
- ts: number;
108
- level: string;
109
- line: string;
110
- }[];
111
- }, "authorized", false, true, undefined>>;
112
- delete: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<Record<string, never>, {
113
- readonly mode: 'value';
114
- readonly value: {
115
- kind: "deleted";
116
- } | {
117
- kind: "deleting";
118
- retryAfterMs: number;
119
- };
120
- }, "authorized", false, true, undefined>>;
121
24
  };
122
25
  }>;
123
- readonly CloudflareWorker: import("@astrale-os/sdk/schema").AuthoredNodeClass<{
124
- readonly description: "One Service placed in a Cloudflare Workers dispatch namespace.";
26
+ readonly CloudflareService: import("@astrale-os/sdk/schema").AuthoredNodeClass<{
27
+ readonly description: "One Service whose deployments are Cloudflare Workers for Platforms scripts.";
125
28
  readonly icon: import("@astrale-os/sdk/schema").ClassIcon;
126
29
  readonly extends: readonly [import("@astrale-os/sdk/schema").AuthoredNodeClass<{
127
30
  readonly abstract: true;
128
- readonly description: "One caller-owned provider-neutral deployed Service.";
31
+ readonly description: "One deployed Service: a stable name and URL serving its current deployment.";
129
32
  readonly icon: import("@astrale-os/sdk/schema").ClassIcon;
130
- readonly extends: readonly [import("@astrale-os/sdk/schema").KernelClass<"Named">, import("@astrale-os/sdk/schema").KernelClass<"Descriptable">, import("@astrale-os/sdk/schema").KernelClass<"Timestamped">];
33
+ readonly extends: readonly [import("@astrale-os/sdk/schema").KernelClass<"Named">, import("@astrale-os/sdk/schema").KernelClass<"Timestamped">];
131
34
  readonly properties: {
132
- providerName: import("zod").ZodString;
133
- serviceKey: import("zod").ZodString;
134
- url: import("@astrale-os/sdk/schema").AuthoredProperty<import("zod").ZodString, {
135
- readonly required: false;
136
- }>;
35
+ origin: import("zod").ZodString;
36
+ environment: import("zod").ZodString;
37
+ fingerprint: import("zod").ZodString;
38
+ url: import("zod").ZodString;
137
39
  state: import("@astrale-os/sdk/schema").StateProperty<import("@astrale-os/sdk/schema").StateMachine<{
138
- readonly deploying: {
139
- readonly recordProviderDeployment: "reconciling";
140
- readonly failDeployment: "failed";
141
- readonly rejectDeployment: "ready";
142
- readonly deleteService: "deleting";
143
- };
144
- readonly reconciling: {
145
- readonly retryDeployment: "deploying";
146
- readonly completeDeployment: "ready";
147
- readonly deleteService: "deleting";
148
- };
149
- readonly ready: {
150
- readonly redeploy: "deploying";
151
- readonly deleteService: "deleting";
152
- };
153
- readonly failed: {
154
- readonly retryDeployment: "deploying";
155
- readonly deleteService: "deleting";
40
+ readonly active: {
41
+ readonly delete: "deleting";
156
42
  };
157
43
  readonly deleting: {};
158
- }, "deploying">, {
44
+ }, "active">, {
159
45
  required?: boolean;
160
46
  description?: string;
161
47
  }>;
162
- digest: import("@astrale-os/sdk/schema").AuthoredProperty<import("zod").ZodString, {
163
- readonly required: false;
164
- }>;
165
- deploymentReceipt: import("@astrale-os/sdk/schema").AuthoredProperty<import("zod").ZodString, {
166
- readonly required: false;
167
- }>;
168
- operationExpiresAt: import("@astrale-os/sdk/schema").AuthoredProperty<Readonly<{
169
- readonly type: 'string';
170
- readonly 'x-astrale-value-kind': 'instant';
171
- }>, {
172
- readonly required: false;
173
- }>;
174
- error: import("@astrale-os/sdk/schema").AuthoredProperty<import("zod").ZodString, {
175
- readonly required: false;
176
- }>;
177
- };
178
- readonly methods: {
179
- setSecret: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
180
- name: string;
181
- value: string;
182
- }, {
183
- readonly mode: 'value';
184
- readonly value: {
185
- kind: "rejected";
186
- reason: "binding-unavailable" | "invalid-secret-name" | "service-unavailable";
187
- } | {
188
- name: string;
189
- };
190
- }, "authorized", false, true, undefined>>;
191
- deleteSecret: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
192
- name: string;
193
- }, {
194
- readonly mode: 'value';
195
- readonly value: {
196
- ok: true;
197
- } | {
198
- kind: "rejected";
199
- reason: "binding-unavailable" | "invalid-secret-name" | "service-unavailable";
200
- };
201
- }, "authorized", false, true, undefined>>;
202
- secrets: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<Record<string, never>, {
203
- readonly mode: 'value';
204
- readonly value: string[];
205
- }, "authorized", false, true, undefined>>;
206
- setSchedule: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
207
- crons: string[];
208
- }, {
209
- readonly mode: 'value';
210
- readonly value: {
211
- crons: string[];
212
- } | {
213
- kind: "rejected";
214
- reason: "invalid-schedule" | "service-unavailable";
215
- };
216
- }, "authorized", false, true, undefined>>;
217
- schedules: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<Record<string, never>, {
218
- readonly mode: 'value';
219
- readonly value: string[];
220
- }, "authorized", false, true, undefined>>;
221
- logs: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
222
- tail?: number | undefined;
223
- since?: number | undefined;
224
- }, {
225
- readonly mode: 'value';
226
- readonly value: {
227
- id: string;
228
- ts: number;
229
- level: string;
230
- line: string;
231
- }[];
232
- }, "authorized", false, true, undefined>>;
233
- delete: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<Record<string, never>, {
234
- readonly mode: 'value';
235
- readonly value: {
236
- kind: "deleted";
237
- } | {
238
- kind: "deleting";
239
- retryAfterMs: number;
240
- };
241
- }, "authorized", false, true, undefined>>;
242
48
  };
243
49
  }>];
244
- readonly properties: {
245
- deploymentMode: import("zod").ZodEnum<{
246
- plain: "plain";
247
- revisioned: "revisioned";
248
- }>;
249
- tenantDomainDetachedAt: import("@astrale-os/sdk/schema").AuthoredProperty<Readonly<{
250
- readonly type: 'string';
251
- readonly 'x-astrale-value-kind': 'instant';
252
- }>, {
253
- readonly required: false;
254
- }>;
255
- tenantDomainState: import("@astrale-os/sdk/schema").AuthoredProperty<import("zod").ZodEnum<{
256
- absent: "absent";
257
- attached: "attached";
258
- unresolved: "unresolved";
259
- }>, {
260
- readonly required: false;
261
- }>;
262
- tenantDomainId: import("@astrale-os/sdk/schema").AuthoredProperty<import("zod").ZodString, {
263
- readonly required: false;
264
- }>;
265
- tenantCertificatePackId: import("@astrale-os/sdk/schema").AuthoredProperty<import("zod").ZodString, {
266
- readonly required: false;
267
- }>;
268
- tenantZoneId: import("@astrale-os/sdk/schema").AuthoredProperty<import("zod").ZodString, {
269
- readonly required: false;
270
- }>;
271
- };
272
50
  readonly methods: {
273
51
  deploy: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
274
- name?: string | undefined;
275
- entry?: string | undefined;
276
- modules?: ({
277
- name: string;
278
- kind?: "data" | "esm" | "text" | "wasm" | undefined;
279
- content: {
280
- encoding: "gzip" | "identity";
281
- decodedSize: number;
282
- contentBase64: string;
283
- } | {
284
- encoding: "gzip" | "identity";
285
- decodedSize: number;
286
- contentBase64Chunks: string[];
52
+ format: "astrale.services.deployment-request";
53
+ version: 1;
54
+ owner?: string | undefined;
55
+ origin: string;
56
+ environment: string;
57
+ addressing: "opaque";
58
+ label: string;
59
+ buildDigest: string;
60
+ configuration: {
61
+ format: "astrale.deployment.configuration";
62
+ version: 1;
63
+ vars: Record<string, string>;
64
+ settings: {
65
+ maximumRequestBytes: number;
66
+ invocationTimeoutMs: number;
67
+ tokenExchange: false | {
68
+ maximumLifetimeSeconds: number;
69
+ };
70
+ durableOptions?: {
71
+ retentionMs?: number | undefined;
72
+ retry?: {
73
+ initialIntervalMs?: number | undefined;
74
+ maxAttempts?: number | undefined;
75
+ maxIntervalMs?: number | undefined;
76
+ } | undefined;
77
+ stepTimeoutMs?: number | undefined;
78
+ } | undefined;
287
79
  };
288
- } | {
289
- contentBase64: string;
290
- name: string;
291
- kind?: "data" | "esm" | "text" | "wasm" | undefined;
292
- } | {
293
- contentBase64Chunks: string[];
294
- name: string;
295
- kind?: "data" | "esm" | "text" | "wasm" | undefined;
296
- })[] | undefined;
297
- revisioned?: {
298
- requiredSecrets: string[];
299
- release: {
300
- entry: string;
301
- modules: ({
302
- name: string;
303
- kind?: "data" | "esm" | "text" | "wasm" | undefined;
304
- content: {
305
- encoding: "gzip" | "identity";
306
- decodedSize: number;
307
- contentBase64: string;
308
- } | {
309
- encoding: "gzip" | "identity";
310
- decodedSize: number;
311
- contentBase64Chunks: string[];
312
- };
313
- } | {
314
- contentBase64: string;
80
+ runtime: {
81
+ compatibilityDate: string;
82
+ compatibilityFlags: string[];
83
+ };
84
+ bindings: {
85
+ services: {
315
86
  name: string;
316
- kind?: "data" | "esm" | "text" | "wasm" | undefined;
317
- } | {
318
- contentBase64Chunks: string[];
87
+ service: string;
88
+ }[];
89
+ dispatchNamespaces: {
319
90
  name: string;
320
- kind?: "data" | "esm" | "text" | "wasm" | undefined;
321
- })[];
91
+ namespace: string;
92
+ }[];
93
+ secrets: string[];
322
94
  };
323
- readiness?: {
324
- paths: string[];
325
- required?: boolean | undefined;
326
- } | undefined;
327
- } | undefined;
328
- compatibilityDate?: string | undefined;
329
- compatibilityFlags?: string[] | undefined;
330
- serviceBindings?: {
331
- name: string;
332
- service: string;
333
- }[] | undefined;
334
- vars?: Record<string, string> | undefined;
335
- secrets?: Record<string, string> | undefined;
336
- assets?: {
337
- files: ({
338
- path: string;
339
- contentType?: string | undefined;
95
+ router: false | {
96
+ service: string;
97
+ hostSuffix: string;
98
+ minLabels: number;
99
+ };
100
+ };
101
+ record: {
102
+ releaseDigest: string;
103
+ schemaRevision: string;
104
+ schemaBundle: string;
105
+ commit: {
106
+ sha: string;
107
+ dirty: boolean;
108
+ base?: {
109
+ version: string;
110
+ distance: number;
111
+ } | undefined;
112
+ } | null;
113
+ };
114
+ bundle: {
115
+ entrypoint: string;
116
+ modules: {
117
+ name: string;
118
+ kind?: "data" | "esm" | "text" | "wasm" | undefined;
340
119
  content: {
341
120
  encoding: "gzip" | "identity";
342
121
  decodedSize: number;
@@ -346,90 +125,182 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"se
346
125
  decodedSize: number;
347
126
  contentBase64Chunks: string[];
348
127
  };
349
- } | {
350
- contentBase64: string;
351
- path: string;
352
- contentType?: string | undefined;
353
- } | {
354
- contentBase64Chunks: string[];
355
- path: string;
356
- contentType?: string | undefined;
357
- })[];
358
- notFound?: "404-page" | "none" | "single-page-application" | undefined;
359
- runWorkerFirst?: boolean | undefined;
360
- htmlHandling?: "none" | undefined;
361
- } | undefined;
362
- limits?: {
363
- cpuMs?: number | undefined;
364
- subrequests?: number | undefined;
128
+ }[];
129
+ assets?: {
130
+ files: {
131
+ path: string;
132
+ contentType?: string | undefined;
133
+ content: {
134
+ encoding: "gzip" | "identity";
135
+ decodedSize: number;
136
+ contentBase64: string;
137
+ } | {
138
+ encoding: "gzip" | "identity";
139
+ decodedSize: number;
140
+ contentBase64Chunks: string[];
141
+ };
142
+ }[];
143
+ notFound?: "404-page" | "none" | "single-page-application" | undefined;
144
+ runWorkerFirst?: boolean | undefined;
145
+ htmlHandling?: "none" | undefined;
146
+ } | undefined;
147
+ };
148
+ secrets: Record<string, string>;
149
+ promote?: boolean | undefined;
150
+ readiness?: {
151
+ paths: string[];
365
152
  } | undefined;
366
- serviceKey: string;
367
153
  }, {
368
154
  readonly mode: 'value';
369
155
  readonly value: {
370
- id: string;
371
- serviceKey: string;
372
- url: string;
373
- digest: string;
374
- state: "ready";
375
- candidateReadiness?: "passed" | "unavailable-retained-secrets" | undefined;
376
- } | {
377
156
  kind: "rejected";
378
- reason: "artifact-mode-conflict" | "invalid-deployment" | "service-unavailable";
157
+ reason: "address-mismatch" | "build-mismatch" | "deployment-conflict" | "deployment-retired" | "hosting-unavailable" | "invalid-deployment" | "service-owned-elsewhere" | "service-unavailable";
379
158
  message: string;
159
+ retryAfter?: string | undefined;
160
+ } | {
161
+ kind: "deployed";
162
+ state: "created" | "reused";
163
+ secrets: {
164
+ state: "bound" | "unchanged" | "updated";
165
+ };
166
+ deployment: {
167
+ id: string;
168
+ url: string;
169
+ label: string;
170
+ serviceId: string;
171
+ service: string;
172
+ owner: string;
173
+ state: "active" | "deploying" | "failed" | "retired" | "retiring";
174
+ current: boolean;
175
+ createdAt: string;
176
+ retiredAt?: string | undefined;
177
+ signingKeyId: string;
178
+ record: {
179
+ format: "astrale.deployment-record";
180
+ version: 1;
181
+ origin: string;
182
+ environment: string;
183
+ releaseDigest: string;
184
+ buildDigest: string;
185
+ schemaRevision: string;
186
+ configuration: string;
187
+ providerScript: string;
188
+ commit: {
189
+ sha: string;
190
+ dirty: boolean;
191
+ base?: {
192
+ version: string;
193
+ distance: number;
194
+ } | undefined;
195
+ } | null;
196
+ };
197
+ };
380
198
  };
381
199
  }, "authenticated", true, false, undefined>>;
382
- migrateIngress: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
383
- action: "complete" | "detach" | "restore";
384
- probe: {
385
- path: string;
386
- status: number;
387
- bodySha256: string;
200
+ hosting: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<Record<string, never>, {
201
+ readonly mode: 'value';
202
+ readonly value: {
203
+ routingDomain: string;
204
+ addressing: "opaque";
388
205
  };
206
+ }, "authenticated", true, false, undefined>>;
207
+ list: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
208
+ origin?: string | undefined;
209
+ environment?: string | undefined;
210
+ }, {
211
+ readonly mode: 'value';
212
+ readonly value: {
213
+ deployments: ({
214
+ id: string;
215
+ url: string;
216
+ label: string;
217
+ serviceId: string;
218
+ service: string;
219
+ owner: string;
220
+ state: "active" | "deploying" | "failed" | "retired" | "retiring";
221
+ current: boolean;
222
+ createdAt: string;
223
+ retiredAt?: string | undefined;
224
+ signingKeyId: string;
225
+ record: {
226
+ format: "astrale.deployment-record";
227
+ version: 1;
228
+ origin: string;
229
+ environment: string;
230
+ releaseDigest: string;
231
+ buildDigest: string;
232
+ schemaRevision: string;
233
+ configuration: string;
234
+ providerScript: string;
235
+ commit: {
236
+ sha: string;
237
+ dirty: boolean;
238
+ base?: {
239
+ version: string;
240
+ distance: number;
241
+ } | undefined;
242
+ } | null;
243
+ };
244
+ } | {
245
+ id: string;
246
+ url: string;
247
+ label: string;
248
+ serviceId: string;
249
+ service: string;
250
+ owner: string;
251
+ state: "active" | "deploying" | "failed" | "retired" | "retiring";
252
+ current: boolean;
253
+ createdAt: string;
254
+ retiredAt?: string | undefined;
255
+ signingKeyId: string;
256
+ record: unknown;
257
+ })[];
258
+ };
259
+ }, "authenticated", true, false, undefined>>;
260
+ promote: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
261
+ label: string;
389
262
  }, {
390
263
  readonly mode: 'value';
391
264
  readonly value: {
392
- kind: "detached";
393
- detachedAt: string;
394
- } | {
395
- kind: "migrated";
396
- } | {
397
- kind: "restored";
398
- } | {
399
- kind: "pending";
400
- retryAfterMs: number;
401
- } | {
402
265
  kind: "rejected";
403
- reason: "missing-location" | "not-detached" | "service-unavailable";
266
+ reason: "address-mismatch" | "build-mismatch" | "deployment-conflict" | "deployment-retired" | "hosting-unavailable" | "invalid-deployment" | "service-owned-elsewhere" | "service-unavailable";
267
+ message: string;
268
+ retryAfter?: string | undefined;
269
+ } | {
270
+ current: string;
404
271
  };
405
- }, "authorized", false, false, undefined>>;
406
- setSecret: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
407
- name: string;
408
- value: string;
272
+ }, "authenticated", false, false, undefined>>;
273
+ transfer: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
274
+ owner: string;
409
275
  }, {
410
276
  readonly mode: 'value';
411
277
  readonly value: {
412
278
  kind: "rejected";
413
- reason: "binding-unavailable" | "invalid-secret-name" | "service-unavailable";
279
+ reason: "address-mismatch" | "build-mismatch" | "deployment-conflict" | "deployment-retired" | "hosting-unavailable" | "invalid-deployment" | "service-owned-elsewhere" | "service-unavailable";
280
+ message: string;
281
+ retryAfter?: string | undefined;
414
282
  } | {
415
- name: string;
283
+ owner: string;
416
284
  };
417
- }, "authorized", false, false, undefined>>;
418
- deleteSecret: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
285
+ }, "authenticated", false, false, undefined>>;
286
+ setSecret: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
419
287
  name: string;
288
+ value: string;
420
289
  }, {
421
290
  readonly mode: 'value';
422
291
  readonly value: {
423
- ok: true;
292
+ name: string;
424
293
  } | {
425
294
  kind: "rejected";
426
- reason: "binding-unavailable" | "invalid-secret-name" | "service-unavailable";
295
+ reason: "secret-undeclared" | "service-unavailable";
296
+ message: string;
297
+ retryAfter?: string | undefined;
427
298
  };
428
- }, "authorized", false, false, undefined>>;
299
+ }, "authenticated", false, false, undefined>>;
429
300
  secrets: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<Record<string, never>, {
430
301
  readonly mode: 'value';
431
302
  readonly value: string[];
432
- }, "authorized", false, false, undefined>>;
303
+ }, "authenticated", false, false, undefined>>;
433
304
  setSchedule: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
434
305
  crons: string[];
435
306
  }, {
@@ -440,12 +311,13 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"se
440
311
  kind: "rejected";
441
312
  reason: "invalid-schedule" | "service-unavailable";
442
313
  };
443
- }, "authorized", false, false, undefined>>;
314
+ }, "authenticated", false, false, undefined>>;
444
315
  schedules: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<Record<string, never>, {
445
316
  readonly mode: 'value';
446
317
  readonly value: string[];
447
- }, "authorized", false, false, undefined>>;
318
+ }, "authenticated", false, false, undefined>>;
448
319
  logs: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
320
+ label?: string | undefined;
449
321
  tail?: number | undefined;
450
322
  since?: number | undefined;
451
323
  }, {
@@ -456,7 +328,7 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"se
456
328
  level: string;
457
329
  line: string;
458
330
  }[];
459
- }, "authorized", false, false, undefined>>;
331
+ }, "authenticated", false, false, undefined>>;
460
332
  delete: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<Record<string, never>, {
461
333
  readonly mode: 'value';
462
334
  readonly value: {
@@ -465,10 +337,10 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"se
465
337
  kind: "deleting";
466
338
  retryAfterMs: number;
467
339
  };
468
- }, "authorized", false, false, undefined>>;
340
+ }, "authenticated", false, false, undefined>>;
469
341
  };
470
342
  readonly policies: {
471
- read: import("@astrale-os/sdk/schema").Policy;
343
+ read: () => import("@astrale-os/sdk/schema").Policy;
472
344
  };
473
345
  }>;
474
346
  readonly service_owned_by: import("@astrale-os/sdk/schema").DirectedEdgeClass<{
@@ -487,23 +359,9 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"se
487
359
  readonly constraints: Record<never, never>;
488
360
  readonly effectiveProperties: never;
489
361
  }>;
490
- readonly DeploymentLine: import("@astrale-os/sdk/schema").AuthoredNodeClass<{
491
- readonly description: "The deployment line of one origin in one environment, held by one organisation.";
492
- readonly icon: import("@astrale-os/sdk/schema").ClassIcon;
493
- readonly extends: readonly [import("@astrale-os/sdk/schema").KernelClass<"Timestamped">];
494
- readonly properties: {
495
- origin: import("zod").ZodString;
496
- environment: import("zod").ZodString;
497
- fingerprint: import("zod").ZodString;
498
- line: import("zod").ZodString;
499
- };
500
- readonly policies: {
501
- read: () => import("@astrale-os/sdk/schema").Policy;
502
- };
503
- }>;
504
362
  readonly Deployment: import("@astrale-os/sdk/schema").AuthoredNodeClass<{
505
363
  readonly abstract: true;
506
- readonly description: "One immutable deployment of a release on a publisher line.";
364
+ readonly description: "One immutable deployment of a Service.";
507
365
  readonly icon: import("@astrale-os/sdk/schema").ClassIcon;
508
366
  readonly extends: readonly [import("@astrale-os/sdk/schema").KernelClass<"Timestamped">];
509
367
  readonly properties: {
@@ -520,9 +378,7 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"se
520
378
  readonly retiring: {
521
379
  readonly completeRetirement: "retired";
522
380
  };
523
- readonly retired: {
524
- readonly revive: "deploying";
525
- };
381
+ readonly retired: {};
526
382
  readonly failed: {
527
383
  readonly retry: "deploying";
528
384
  readonly retire: "retiring";
@@ -531,10 +387,6 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"se
531
387
  required?: boolean;
532
388
  description?: string;
533
389
  }>;
534
- retention: import("zod").ZodEnum<{
535
- preview: "preview";
536
- published: "published";
537
- }>;
538
390
  record: import("zod").ZodObject<{
539
391
  format: import("zod").ZodLiteral<"astrale.deployment-record">;
540
392
  version: import("zod").ZodLiteral<1>;
@@ -613,30 +465,12 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"se
613
465
  }>, {
614
466
  readonly required: false;
615
467
  }>;
616
- lastCallAt: import("@astrale-os/sdk/schema").AuthoredProperty<Readonly<{
617
- readonly type: 'string';
618
- readonly 'x-astrale-value-kind': 'instant';
619
- }>, {
620
- readonly required: false;
621
- }>;
622
- expiresAt: import("@astrale-os/sdk/schema").AuthoredProperty<Readonly<{
623
- readonly type: 'string';
624
- readonly 'x-astrale-value-kind': 'instant';
625
- }>, {
626
- readonly required: false;
627
- }>;
628
468
  retiredAt: import("@astrale-os/sdk/schema").AuthoredProperty<Readonly<{
629
469
  readonly type: 'string';
630
470
  readonly 'x-astrale-value-kind': 'instant';
631
471
  }>, {
632
472
  readonly required: false;
633
473
  }>;
634
- retirement: import("@astrale-os/sdk/schema").AuthoredProperty<import("zod").ZodEnum<{
635
- expired: "expired";
636
- withdrawn: "withdrawn";
637
- }>, {
638
- readonly required: false;
639
- }>;
640
474
  operationReceipt: import("@astrale-os/sdk/schema").AuthoredProperty<import("zod").ZodString, {
641
475
  readonly required: false;
642
476
  }>;
@@ -647,33 +481,13 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"se
647
481
  readonly required: false;
648
482
  }>;
649
483
  };
650
- readonly methods: {
651
- setSecret: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
652
- name: string;
653
- value: string;
654
- }, {
655
- readonly mode: 'value';
656
- readonly value: {
657
- name: string;
658
- } | {
659
- kind: "rejected";
660
- reason: "secret-undeclared" | "service-unavailable";
661
- message: string;
662
- retryAfter?: string | undefined;
663
- };
664
- }, "authenticated", false, true, undefined>>;
665
- secrets: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<Record<string, never>, {
666
- readonly mode: 'value';
667
- readonly value: string[];
668
- }, "authenticated", false, true, undefined>>;
669
- };
670
484
  }>;
671
485
  readonly CloudflareDeployment: import("@astrale-os/sdk/schema").AuthoredNodeClass<{
672
486
  readonly description: "One Deployment uploaded as the Workers for Platforms script its label names.";
673
487
  readonly icon: import("@astrale-os/sdk/schema").ClassIcon;
674
488
  readonly extends: readonly [import("@astrale-os/sdk/schema").AuthoredNodeClass<{
675
489
  readonly abstract: true;
676
- readonly description: "One immutable deployment of a release on a publisher line.";
490
+ readonly description: "One immutable deployment of a Service.";
677
491
  readonly icon: import("@astrale-os/sdk/schema").ClassIcon;
678
492
  readonly extends: readonly [import("@astrale-os/sdk/schema").KernelClass<"Timestamped">];
679
493
  readonly properties: {
@@ -690,9 +504,7 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"se
690
504
  readonly retiring: {
691
505
  readonly completeRetirement: "retired";
692
506
  };
693
- readonly retired: {
694
- readonly revive: "deploying";
695
- };
507
+ readonly retired: {};
696
508
  readonly failed: {
697
509
  readonly retry: "deploying";
698
510
  readonly retire: "retiring";
@@ -701,10 +513,6 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"se
701
513
  required?: boolean;
702
514
  description?: string;
703
515
  }>;
704
- retention: import("zod").ZodEnum<{
705
- preview: "preview";
706
- published: "published";
707
- }>;
708
516
  record: import("zod").ZodObject<{
709
517
  format: import("zod").ZodLiteral<"astrale.deployment-record">;
710
518
  version: import("zod").ZodLiteral<1>;
@@ -783,30 +591,12 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"se
783
591
  }>, {
784
592
  readonly required: false;
785
593
  }>;
786
- lastCallAt: import("@astrale-os/sdk/schema").AuthoredProperty<Readonly<{
787
- readonly type: 'string';
788
- readonly 'x-astrale-value-kind': 'instant';
789
- }>, {
790
- readonly required: false;
791
- }>;
792
- expiresAt: import("@astrale-os/sdk/schema").AuthoredProperty<Readonly<{
793
- readonly type: 'string';
794
- readonly 'x-astrale-value-kind': 'instant';
795
- }>, {
796
- readonly required: false;
797
- }>;
798
594
  retiredAt: import("@astrale-os/sdk/schema").AuthoredProperty<Readonly<{
799
595
  readonly type: 'string';
800
596
  readonly 'x-astrale-value-kind': 'instant';
801
597
  }>, {
802
598
  readonly required: false;
803
599
  }>;
804
- retirement: import("@astrale-os/sdk/schema").AuthoredProperty<import("zod").ZodEnum<{
805
- expired: "expired";
806
- withdrawn: "withdrawn";
807
- }>, {
808
- readonly required: false;
809
- }>;
810
600
  operationReceipt: import("@astrale-os/sdk/schema").AuthoredProperty<import("zod").ZodString, {
811
601
  readonly required: false;
812
602
  }>;
@@ -817,313 +607,20 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"se
817
607
  readonly required: false;
818
608
  }>;
819
609
  };
820
- readonly methods: {
821
- setSecret: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
822
- name: string;
823
- value: string;
824
- }, {
825
- readonly mode: 'value';
826
- readonly value: {
827
- name: string;
828
- } | {
829
- kind: "rejected";
830
- reason: "secret-undeclared" | "service-unavailable";
831
- message: string;
832
- retryAfter?: string | undefined;
833
- };
834
- }, "authenticated", false, true, undefined>>;
835
- secrets: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<Record<string, never>, {
836
- readonly mode: 'value';
837
- readonly value: string[];
838
- }, "authenticated", false, true, undefined>>;
839
- };
840
610
  }>];
841
611
  readonly methods: {
842
- deploy: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
843
- format: "astrale.services.deployment-request";
844
- version: 1;
845
- organization?: string | undefined;
846
- origin: string;
847
- environment: string;
848
- addressing: "opaque" | "readable";
849
- label: string;
850
- buildDigest: string;
851
- configuration: {
852
- format: "astrale.deployment.configuration";
853
- version: 1;
854
- vars: Record<string, string>;
855
- settings: {
856
- maximumRequestBytes: number;
857
- invocationTimeoutMs: number;
858
- tokenExchange: false | {
859
- maximumLifetimeSeconds: number;
860
- };
861
- durableOptions?: {
862
- retentionMs?: number | undefined;
863
- retry?: {
864
- initialIntervalMs?: number | undefined;
865
- maxAttempts?: number | undefined;
866
- maxIntervalMs?: number | undefined;
867
- } | undefined;
868
- stepTimeoutMs?: number | undefined;
869
- } | undefined;
870
- };
871
- runtime: {
872
- compatibilityDate: string;
873
- compatibilityFlags: string[];
874
- };
875
- bindings: {
876
- services: {
877
- name: string;
878
- service: string;
879
- }[];
880
- dispatchNamespaces: {
881
- name: string;
882
- namespace: string;
883
- }[];
884
- secrets: string[];
885
- };
886
- router: false | {
887
- service: string;
888
- hostSuffix: string;
889
- minLabels: number;
890
- };
891
- };
892
- record: {
893
- releaseDigest: string;
894
- schemaRevision: string;
895
- schemaBundle: string;
896
- commit: {
897
- sha: string;
898
- dirty: boolean;
899
- base?: {
900
- version: string;
901
- distance: number;
902
- } | undefined;
903
- } | null;
904
- };
905
- bundle: {
906
- entrypoint: string;
907
- modules: ({
908
- name: string;
909
- kind?: "data" | "esm" | "text" | "wasm" | undefined;
910
- content: {
911
- encoding: "gzip" | "identity";
912
- decodedSize: number;
913
- contentBase64: string;
914
- } | {
915
- encoding: "gzip" | "identity";
916
- decodedSize: number;
917
- contentBase64Chunks: string[];
918
- };
919
- } | {
920
- contentBase64: string;
921
- name: string;
922
- kind?: "data" | "esm" | "text" | "wasm" | undefined;
923
- } | {
924
- contentBase64Chunks: string[];
925
- name: string;
926
- kind?: "data" | "esm" | "text" | "wasm" | undefined;
927
- })[];
928
- assets?: {
929
- files: ({
930
- path: string;
931
- contentType?: string | undefined;
932
- content: {
933
- encoding: "gzip" | "identity";
934
- decodedSize: number;
935
- contentBase64: string;
936
- } | {
937
- encoding: "gzip" | "identity";
938
- decodedSize: number;
939
- contentBase64Chunks: string[];
940
- };
941
- } | {
942
- contentBase64: string;
943
- path: string;
944
- contentType?: string | undefined;
945
- } | {
946
- contentBase64Chunks: string[];
947
- path: string;
948
- contentType?: string | undefined;
949
- })[];
950
- notFound?: "404-page" | "none" | "single-page-application" | undefined;
951
- runWorkerFirst?: boolean | undefined;
952
- htmlHandling?: "none" | undefined;
953
- } | undefined;
954
- };
955
- secrets: Record<string, string>;
956
- readiness?: {
957
- paths: string[];
958
- } | undefined;
959
- }, {
612
+ retire: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<Record<string, never>, {
960
613
  readonly mode: 'value';
961
614
  readonly value: {
962
615
  kind: "rejected";
963
- reason: "address-mismatch" | "build-mismatch" | "deployment-conflict" | "deployment-retired" | "hosting-unavailable" | "invalid-deployment" | "line-owned-elsewhere" | "service-unavailable";
616
+ reason: "address-mismatch" | "build-mismatch" | "deployment-conflict" | "deployment-retired" | "hosting-unavailable" | "invalid-deployment" | "service-owned-elsewhere" | "service-unavailable";
964
617
  message: string;
965
618
  retryAfter?: string | undefined;
966
619
  } | {
967
- kind: "deployed";
968
- state: "created" | "reused";
969
- secrets: {
970
- state: "bound" | "unchanged" | "updated";
971
- };
972
- deployment: {
973
- id: string;
974
- url: string;
975
- label: string;
976
- line: string;
977
- owner: string;
978
- state: "active" | "deploying" | "failed" | "retired" | "retiring";
979
- retention: "preview" | "published";
980
- createdAt: string;
981
- lastCallAt?: string | undefined;
982
- expiresAt?: string | undefined;
983
- retiredAt?: string | undefined;
984
- retirement?: "expired" | "withdrawn" | undefined;
985
- signingKeyId: string;
986
- record: {
987
- format: "astrale.deployment-record";
988
- version: 1;
989
- origin: string;
990
- environment: string;
991
- releaseDigest: string;
992
- buildDigest: string;
993
- schemaRevision: string;
994
- configuration: string;
995
- providerScript: string;
996
- commit: {
997
- sha: string;
998
- dirty: boolean;
999
- base?: {
1000
- version: string;
1001
- distance: number;
1002
- } | undefined;
1003
- } | null;
1004
- };
1005
- };
1006
- };
1007
- }, "authenticated", true, false, undefined>>;
1008
- hosting: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<Record<string, never>, {
1009
- readonly mode: 'value';
1010
- readonly value: {
1011
- routingDomain: string;
1012
- addressing: "opaque" | "readable";
1013
- };
1014
- }, "authenticated", true, false, undefined>>;
1015
- list: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
1016
- origin?: string | undefined;
1017
- environment?: string | undefined;
1018
- }, {
1019
- readonly mode: 'value';
1020
- readonly value: {
1021
- deployments: ({
1022
- id: string;
1023
- url: string;
1024
- label: string;
1025
- line: string;
1026
- owner: string;
1027
- state: "active" | "deploying" | "failed" | "retired" | "retiring";
1028
- retention: "preview" | "published";
1029
- createdAt: string;
1030
- lastCallAt?: string | undefined;
1031
- expiresAt?: string | undefined;
1032
- retiredAt?: string | undefined;
1033
- retirement?: "expired" | "withdrawn" | undefined;
1034
- signingKeyId: string;
1035
- record: {
1036
- format: "astrale.deployment-record";
1037
- version: 1;
1038
- origin: string;
1039
- environment: string;
1040
- releaseDigest: string;
1041
- buildDigest: string;
1042
- schemaRevision: string;
1043
- configuration: string;
1044
- providerScript: string;
1045
- commit: {
1046
- sha: string;
1047
- dirty: boolean;
1048
- base?: {
1049
- version: string;
1050
- distance: number;
1051
- } | undefined;
1052
- } | null;
1053
- };
1054
- } | {
1055
- id: string;
1056
- url: string;
1057
- label: string;
1058
- line: string;
1059
- owner: string;
1060
- state: "active" | "deploying" | "failed" | "retired" | "retiring";
1061
- retention: "preview" | "published";
1062
- createdAt: string;
1063
- lastCallAt?: string | undefined;
1064
- expiresAt?: string | undefined;
1065
- retiredAt?: string | undefined;
1066
- retirement?: "expired" | "withdrawn" | undefined;
1067
- signingKeyId: string;
1068
- record: unknown;
1069
- })[];
1070
- };
1071
- }, "authenticated", true, false, undefined>>;
1072
- setSecret: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
1073
- name: string;
1074
- value: string;
1075
- }, {
1076
- readonly mode: 'value';
1077
- readonly value: {
1078
- name: string;
1079
- } | {
1080
- kind: "rejected";
1081
- reason: "secret-undeclared" | "service-unavailable";
1082
- message: string;
1083
- retryAfter?: string | undefined;
1084
- };
1085
- }, "authenticated", false, false, undefined>>;
1086
- secrets: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<Record<string, never>, {
1087
- readonly mode: 'value';
1088
- readonly value: string[];
1089
- }, "authenticated", false, false, undefined>>;
1090
- lastCalls: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
1091
- labels: string[];
1092
- }, {
1093
- readonly mode: 'value';
1094
- readonly value: Record<string, string | null>;
1095
- }, "authenticated", true, false, undefined>>;
1096
- expirePreviews: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
1097
- limit?: number | undefined;
1098
- apply?: boolean | undefined;
1099
- }, {
1100
- readonly mode: 'value';
1101
- readonly value: {
1102
- planned: string[];
1103
- retired: string[];
1104
- pending: string[];
1105
- };
1106
- }, "authenticated", true, false, undefined>>;
1107
- retain: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
1108
- label: string;
1109
- }, {
1110
- readonly mode: 'value';
1111
- readonly value: {
1112
- retention: "published";
1113
- };
1114
- }, "authenticated", true, false, undefined>>;
1115
- retire: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<Record<string, never>, {
1116
- readonly mode: 'value';
1117
- readonly value: {
1118
620
  kind: "retired";
1119
621
  } | {
1120
622
  kind: "retiring";
1121
623
  retryAfterMs: number;
1122
- } | {
1123
- kind: "rejected";
1124
- reason: "address-mismatch" | "build-mismatch" | "deployment-conflict" | "deployment-retired" | "hosting-unavailable" | "invalid-deployment" | "line-owned-elsewhere" | "service-unavailable";
1125
- message: string;
1126
- retryAfter?: string | undefined;
1127
624
  };
1128
625
  }, "authenticated", false, false, undefined>>;
1129
626
  };
@@ -1131,34 +628,34 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"se
1131
628
  read: () => import("@astrale-os/sdk/schema").Policy;
1132
629
  };
1133
630
  }>;
1134
- readonly line_owned_by: import("@astrale-os/sdk/schema").DirectedEdgeClass<{
631
+ readonly deployment_of: import("@astrale-os/sdk/schema").DirectedEdgeClass<{
1135
632
  readonly depth: 0;
1136
633
  readonly abstract: false;
1137
634
  readonly extends: readonly [];
1138
635
  readonly properties: never;
1139
636
  readonly source: {
1140
- readonly as: "line";
1141
- readonly outgoing: "0..1";
637
+ readonly as: "deployment";
638
+ readonly outgoing: "1";
1142
639
  };
1143
640
  readonly target: {
1144
- readonly as: "owner";
641
+ readonly as: "service";
1145
642
  readonly incoming: "0..*";
1146
643
  };
1147
644
  readonly constraints: Record<never, never>;
1148
645
  readonly effectiveProperties: never;
1149
646
  }>;
1150
- readonly deployment_on_line: import("@astrale-os/sdk/schema").DirectedEdgeClass<{
647
+ readonly current_deployment: import("@astrale-os/sdk/schema").DirectedEdgeClass<{
1151
648
  readonly depth: 0;
1152
649
  readonly abstract: false;
1153
650
  readonly extends: readonly [];
1154
651
  readonly properties: never;
1155
652
  readonly source: {
1156
- readonly as: "deployment";
1157
- readonly outgoing: "1";
653
+ readonly as: "service";
654
+ readonly outgoing: "0..1";
1158
655
  };
1159
656
  readonly target: {
1160
- readonly as: "line";
1161
- readonly incoming: "0..*";
657
+ readonly as: "deployment";
658
+ readonly incoming: "0..1";
1162
659
  };
1163
660
  readonly constraints: Record<never, never>;
1164
661
  readonly effectiveProperties: never;
@@ -1167,15 +664,12 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"se
1167
664
  readonly policies: {
1168
665
  readonly OwnService: import("@astrale-os/sdk/schema").Policy;
1169
666
  readonly TraverseOwnedService: import("@astrale-os/sdk/schema").Policy;
1170
- readonly OwnLine: import("@astrale-os/sdk/schema").Policy;
667
+ readonly ActAs: import("@astrale-os/sdk/schema").Policy;
1171
668
  readonly OwnDeployment: import("@astrale-os/sdk/schema").Policy;
1172
- readonly ActForOrganization: import("@astrale-os/sdk/schema").Policy;
1173
- readonly TraverseOwnedLine: import("@astrale-os/sdk/schema").Policy;
1174
- readonly TraverseOwnedLineDeployment: import("@astrale-os/sdk/schema").Policy;
669
+ readonly TraverseOwnedServiceDeployment: import("@astrale-os/sdk/schema").Policy;
1175
670
  };
1176
671
  readonly views: {
1177
672
  readonly application: import("@astrale-os/sdk/schema").View;
1178
- readonly service: import("@astrale-os/sdk/schema").View;
1179
673
  };
1180
674
  }, {
1181
675
  readonly kernel: "kernel.astrale.ai";