@amerged/ohmyhost-sdk 0.1.73 → 0.1.75

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amerged/ohmyhost-sdk",
3
- "version": "0.1.73",
3
+ "version": "0.1.75",
4
4
  "type": "module",
5
5
  "engines": {
6
6
  "node": ">=22"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ohmyhost/sdk-ts",
3
- "version": "0.1.73",
3
+ "version": "0.1.75",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "exports": {
@@ -1036,6 +1036,7 @@ export type {
1036
1036
  PrepareManagedMailWebhookResponses,
1037
1037
  Preview,
1038
1038
  PreviewEnvironment,
1039
+ PreviewSource,
1039
1040
  ProblemDetails,
1040
1041
  Project,
1041
1042
  ProjectContext,
@@ -72,9 +72,9 @@ import {
72
72
  writeProjectDatabase,
73
73
  } from "./sdk.gen.js";
74
74
  export const remoteMcpContractSha256 =
75
- "1cb53afbb2abd3322167436062b0925bc9d931a34da1ab5d9bb33dff0abf8e3c";
75
+ "61ed92a391a6fc6c187cab53c0e0307dcc45652563857384745d0d8aab25dde0";
76
76
  export const remoteMcpContractVersion = "0.0.0";
77
- export const remoteMcpReleaseVersion = "0.1.73";
77
+ export const remoteMcpReleaseVersion = "0.1.75";
78
78
  export interface RemoteMcpOperation {
79
79
  operationId: string;
80
80
  method: string;
@@ -159,7 +159,16 @@ export const remoteMcpOperations: readonly RemoteMcpOperation[] = [
159
159
  outputSchema: {
160
160
  type: "object",
161
161
  additionalProperties: false,
162
- required: ["id", "project_id", "environment", "status", "url", "source"],
162
+ required: [
163
+ "id",
164
+ "project_id",
165
+ "environment",
166
+ "status",
167
+ "url",
168
+ "source",
169
+ "applied_source",
170
+ "ready_to_show",
171
+ ],
163
172
  properties: {
164
173
  id: { type: "string", pattern: "^[0-9A-HJKMNP-TV-Z]{26}$" },
165
174
  project_id: { type: "string", pattern: "^[0-9A-HJKMNP-TV-Z]{26}$" },
@@ -178,11 +187,33 @@ export const remoteMcpOperations: readonly RemoteMcpOperation[] = [
178
187
  additionalProperties: false,
179
188
  required: ["sequence", "commit_sha"],
180
189
  properties: {
181
- sequence: { type: "integer", minimum: 1 },
182
- commit_sha: { type: "string", pattern: "^[0-9a-f]{40}$" },
190
+ sequence: { type: "integer", minimum: 1, maximum: 9007199254740991 },
191
+ commit_sha: { type: "string", pattern: "^(?!0{40}$)[0-9a-f]{40}$" },
183
192
  },
184
193
  },
185
194
  ],
195
+ description: "The saved version selected for this preview, or null if there is none.",
196
+ },
197
+ applied_source: {
198
+ oneOf: [
199
+ { type: "null" },
200
+ {
201
+ type: "object",
202
+ additionalProperties: false,
203
+ required: ["sequence", "commit_sha"],
204
+ properties: {
205
+ sequence: { type: "integer", minimum: 1, maximum: 9007199254740991 },
206
+ commit_sha: { type: "string", pattern: "^(?!0{40}$)[0-9a-f]{40}$" },
207
+ },
208
+ },
209
+ ],
210
+ description:
211
+ "The version applied to the preview, or null if no version has been applied.",
212
+ },
213
+ ready_to_show: {
214
+ type: "boolean",
215
+ description:
216
+ "True when the preview is ready and its applied version has the same sequence as the saved version.",
186
217
  },
187
218
  },
188
219
  },
@@ -239,7 +270,16 @@ export const remoteMcpOperations: readonly RemoteMcpOperation[] = [
239
270
  outputSchema: {
240
271
  type: "object",
241
272
  additionalProperties: false,
242
- required: ["id", "project_id", "environment", "status", "url", "source"],
273
+ required: [
274
+ "id",
275
+ "project_id",
276
+ "environment",
277
+ "status",
278
+ "url",
279
+ "source",
280
+ "applied_source",
281
+ "ready_to_show",
282
+ ],
243
283
  properties: {
244
284
  id: { type: "string", pattern: "^[0-9A-HJKMNP-TV-Z]{26}$" },
245
285
  project_id: { type: "string", pattern: "^[0-9A-HJKMNP-TV-Z]{26}$" },
@@ -258,11 +298,33 @@ export const remoteMcpOperations: readonly RemoteMcpOperation[] = [
258
298
  additionalProperties: false,
259
299
  required: ["sequence", "commit_sha"],
260
300
  properties: {
261
- sequence: { type: "integer", minimum: 1 },
262
- commit_sha: { type: "string", pattern: "^[0-9a-f]{40}$" },
301
+ sequence: { type: "integer", minimum: 1, maximum: 9007199254740991 },
302
+ commit_sha: { type: "string", pattern: "^(?!0{40}$)[0-9a-f]{40}$" },
263
303
  },
264
304
  },
265
305
  ],
306
+ description: "The saved version selected for this preview, or null if there is none.",
307
+ },
308
+ applied_source: {
309
+ oneOf: [
310
+ { type: "null" },
311
+ {
312
+ type: "object",
313
+ additionalProperties: false,
314
+ required: ["sequence", "commit_sha"],
315
+ properties: {
316
+ sequence: { type: "integer", minimum: 1, maximum: 9007199254740991 },
317
+ commit_sha: { type: "string", pattern: "^(?!0{40}$)[0-9a-f]{40}$" },
318
+ },
319
+ },
320
+ ],
321
+ description:
322
+ "The version applied to the preview, or null if no version has been applied.",
323
+ },
324
+ ready_to_show: {
325
+ type: "boolean",
326
+ description:
327
+ "True when the preview is ready and its applied version has the same sequence as the saved version.",
266
328
  },
267
329
  },
268
330
  },
@@ -332,7 +394,16 @@ export const remoteMcpOperations: readonly RemoteMcpOperation[] = [
332
394
  outputSchema: {
333
395
  type: "object",
334
396
  additionalProperties: false,
335
- required: ["id", "project_id", "environment", "status", "url", "source"],
397
+ required: [
398
+ "id",
399
+ "project_id",
400
+ "environment",
401
+ "status",
402
+ "url",
403
+ "source",
404
+ "applied_source",
405
+ "ready_to_show",
406
+ ],
336
407
  properties: {
337
408
  id: { type: "string", pattern: "^[0-9A-HJKMNP-TV-Z]{26}$" },
338
409
  project_id: { type: "string", pattern: "^[0-9A-HJKMNP-TV-Z]{26}$" },
@@ -351,11 +422,33 @@ export const remoteMcpOperations: readonly RemoteMcpOperation[] = [
351
422
  additionalProperties: false,
352
423
  required: ["sequence", "commit_sha"],
353
424
  properties: {
354
- sequence: { type: "integer", minimum: 1 },
355
- commit_sha: { type: "string", pattern: "^[0-9a-f]{40}$" },
425
+ sequence: { type: "integer", minimum: 1, maximum: 9007199254740991 },
426
+ commit_sha: { type: "string", pattern: "^(?!0{40}$)[0-9a-f]{40}$" },
356
427
  },
357
428
  },
358
429
  ],
430
+ description: "The saved version selected for this preview, or null if there is none.",
431
+ },
432
+ applied_source: {
433
+ oneOf: [
434
+ { type: "null" },
435
+ {
436
+ type: "object",
437
+ additionalProperties: false,
438
+ required: ["sequence", "commit_sha"],
439
+ properties: {
440
+ sequence: { type: "integer", minimum: 1, maximum: 9007199254740991 },
441
+ commit_sha: { type: "string", pattern: "^(?!0{40}$)[0-9a-f]{40}$" },
442
+ },
443
+ },
444
+ ],
445
+ description:
446
+ "The version applied to the preview, or null if no version has been applied.",
447
+ },
448
+ ready_to_show: {
449
+ type: "boolean",
450
+ description:
451
+ "True when the preview is ready and its applied version has the same sequence as the saved version.",
359
452
  },
360
453
  },
361
454
  },
@@ -425,7 +518,16 @@ export const remoteMcpOperations: readonly RemoteMcpOperation[] = [
425
518
  outputSchema: {
426
519
  type: "object",
427
520
  additionalProperties: false,
428
- required: ["id", "project_id", "environment", "status", "url", "source"],
521
+ required: [
522
+ "id",
523
+ "project_id",
524
+ "environment",
525
+ "status",
526
+ "url",
527
+ "source",
528
+ "applied_source",
529
+ "ready_to_show",
530
+ ],
429
531
  properties: {
430
532
  id: { type: "string", pattern: "^[0-9A-HJKMNP-TV-Z]{26}$" },
431
533
  project_id: { type: "string", pattern: "^[0-9A-HJKMNP-TV-Z]{26}$" },
@@ -444,11 +546,33 @@ export const remoteMcpOperations: readonly RemoteMcpOperation[] = [
444
546
  additionalProperties: false,
445
547
  required: ["sequence", "commit_sha"],
446
548
  properties: {
447
- sequence: { type: "integer", minimum: 1 },
448
- commit_sha: { type: "string", pattern: "^[0-9a-f]{40}$" },
549
+ sequence: { type: "integer", minimum: 1, maximum: 9007199254740991 },
550
+ commit_sha: { type: "string", pattern: "^(?!0{40}$)[0-9a-f]{40}$" },
449
551
  },
450
552
  },
451
553
  ],
554
+ description: "The saved version selected for this preview, or null if there is none.",
555
+ },
556
+ applied_source: {
557
+ oneOf: [
558
+ { type: "null" },
559
+ {
560
+ type: "object",
561
+ additionalProperties: false,
562
+ required: ["sequence", "commit_sha"],
563
+ properties: {
564
+ sequence: { type: "integer", minimum: 1, maximum: 9007199254740991 },
565
+ commit_sha: { type: "string", pattern: "^(?!0{40}$)[0-9a-f]{40}$" },
566
+ },
567
+ },
568
+ ],
569
+ description:
570
+ "The version applied to the preview, or null if no version has been applied.",
571
+ },
572
+ ready_to_show: {
573
+ type: "boolean",
574
+ description:
575
+ "True when the preview is ready and its applied version has the same sequence as the saved version.",
452
576
  },
453
577
  },
454
578
  },
@@ -13,10 +13,23 @@ export type Preview = {
13
13
  * Stable private capability URL without an expiration time.
14
14
  */
15
15
  url: string;
16
- source: null | {
17
- sequence: number;
18
- commit_sha: string;
19
- };
16
+ /**
17
+ * The saved version selected for this preview, or null if there is none.
18
+ */
19
+ source: PreviewSource;
20
+ /**
21
+ * The version applied to the preview, or null if no version has been applied.
22
+ */
23
+ applied_source: PreviewSource;
24
+ /**
25
+ * True when the preview is ready and its applied version has the same sequence as the saved version.
26
+ */
27
+ ready_to_show: boolean;
28
+ };
29
+
30
+ export type PreviewSource = null | {
31
+ sequence: number;
32
+ commit_sha: string;
20
33
  };
21
34
 
22
35
  export type ConnectionBegin = {