@kya-os/contracts 1.7.25 → 1.7.26

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.
@@ -48,18 +48,18 @@ export declare const moltiDeployConfigSchema: z.ZodObject<{
48
48
  }, "strip", z.ZodTypeAny, {
49
49
  projectName: string;
50
50
  agentName?: string | undefined;
51
- agentDescription?: string | undefined;
52
51
  agentShieldProjectId?: string | undefined;
53
52
  agentShieldApiKey?: string | undefined;
54
- instanceType?: "lite" | "basic" | "standard-1" | "standard-2" | "standard-3" | "standard-4" | undefined;
53
+ agentDescription?: string | undefined;
54
+ instanceType?: "basic" | "lite" | "standard-1" | "standard-2" | "standard-3" | "standard-4" | undefined;
55
55
  enableReputation?: boolean | undefined;
56
56
  }, {
57
57
  projectName: string;
58
58
  agentName?: string | undefined;
59
- agentDescription?: string | undefined;
60
59
  agentShieldProjectId?: string | undefined;
61
60
  agentShieldApiKey?: string | undefined;
62
- instanceType?: "lite" | "basic" | "standard-1" | "standard-2" | "standard-3" | "standard-4" | undefined;
61
+ agentDescription?: string | undefined;
62
+ instanceType?: "basic" | "lite" | "standard-1" | "standard-2" | "standard-3" | "standard-4" | undefined;
63
63
  enableReputation?: boolean | undefined;
64
64
  }>;
65
65
  /**
@@ -80,14 +80,14 @@ export declare const moltiDeployRequestSchema: z.ZodObject<{
80
80
  organizationId: string;
81
81
  agentName?: string | undefined;
82
82
  agentDescription?: string | undefined;
83
- instanceType?: "lite" | "basic" | "standard-1" | "standard-2" | "standard-3" | "standard-4" | undefined;
83
+ instanceType?: "basic" | "lite" | "standard-1" | "standard-2" | "standard-3" | "standard-4" | undefined;
84
84
  existingProjectId?: string | undefined;
85
85
  }, {
86
86
  projectName: string;
87
87
  organizationId: string;
88
88
  agentName?: string | undefined;
89
89
  agentDescription?: string | undefined;
90
- instanceType?: "lite" | "basic" | "standard-1" | "standard-2" | "standard-3" | "standard-4" | undefined;
90
+ instanceType?: "basic" | "lite" | "standard-1" | "standard-2" | "standard-3" | "standard-4" | undefined;
91
91
  enableReputation?: boolean | undefined;
92
92
  existingProjectId?: string | undefined;
93
93
  }>;
@@ -98,11 +98,11 @@ export declare const moltiDeployStartResponseSchema: z.ZodObject<{
98
98
  success: z.ZodLiteral<true>;
99
99
  deploymentId: z.ZodString;
100
100
  }, "strip", z.ZodTypeAny, {
101
- success: true;
102
101
  deploymentId: string;
103
- }, {
104
102
  success: true;
103
+ }, {
105
104
  deploymentId: string;
105
+ success: true;
106
106
  }>;
107
107
  /**
108
108
  * Deploy step ID schema
@@ -124,15 +124,15 @@ export declare const moltiDeployStepSchema: z.ZodObject<{
124
124
  completedAt: z.ZodOptional<z.ZodString>;
125
125
  }, "strip", z.ZodTypeAny, {
126
126
  status: "pending" | "in_progress" | "completed" | "failed" | "skipped";
127
- id: "github_verify" | "project_create" | "api_key_create" | "kta_register" | "scaffold" | "repo_create" | "commit_files" | "add_secrets" | "gateway_route";
128
127
  name: string;
128
+ id: "project_create" | "kta_register" | "github_verify" | "api_key_create" | "scaffold" | "repo_create" | "commit_files" | "add_secrets" | "gateway_route";
129
129
  message?: string | undefined;
130
130
  startedAt?: string | undefined;
131
131
  completedAt?: string | undefined;
132
132
  }, {
133
133
  status: "pending" | "in_progress" | "completed" | "failed" | "skipped";
134
- id: "github_verify" | "project_create" | "api_key_create" | "kta_register" | "scaffold" | "repo_create" | "commit_files" | "add_secrets" | "gateway_route";
135
134
  name: string;
135
+ id: "project_create" | "kta_register" | "github_verify" | "api_key_create" | "scaffold" | "repo_create" | "commit_files" | "add_secrets" | "gateway_route";
136
136
  message?: string | undefined;
137
137
  startedAt?: string | undefined;
138
138
  completedAt?: string | undefined;
@@ -151,15 +151,15 @@ export declare const moltiDeployProgressSchema: z.ZodObject<{
151
151
  completedAt: z.ZodOptional<z.ZodString>;
152
152
  }, "strip", z.ZodTypeAny, {
153
153
  status: "pending" | "in_progress" | "completed" | "failed" | "skipped";
154
- id: "github_verify" | "project_create" | "api_key_create" | "kta_register" | "scaffold" | "repo_create" | "commit_files" | "add_secrets" | "gateway_route";
155
154
  name: string;
155
+ id: "project_create" | "kta_register" | "github_verify" | "api_key_create" | "scaffold" | "repo_create" | "commit_files" | "add_secrets" | "gateway_route";
156
156
  message?: string | undefined;
157
157
  startedAt?: string | undefined;
158
158
  completedAt?: string | undefined;
159
159
  }, {
160
160
  status: "pending" | "in_progress" | "completed" | "failed" | "skipped";
161
- id: "github_verify" | "project_create" | "api_key_create" | "kta_register" | "scaffold" | "repo_create" | "commit_files" | "add_secrets" | "gateway_route";
162
161
  name: string;
162
+ id: "project_create" | "kta_register" | "github_verify" | "api_key_create" | "scaffold" | "repo_create" | "commit_files" | "add_secrets" | "gateway_route";
163
163
  message?: string | undefined;
164
164
  startedAt?: string | undefined;
165
165
  completedAt?: string | undefined;
@@ -171,8 +171,8 @@ export declare const moltiDeployProgressSchema: z.ZodObject<{
171
171
  deploymentId: string;
172
172
  steps: {
173
173
  status: "pending" | "in_progress" | "completed" | "failed" | "skipped";
174
- id: "github_verify" | "project_create" | "api_key_create" | "kta_register" | "scaffold" | "repo_create" | "commit_files" | "add_secrets" | "gateway_route";
175
174
  name: string;
175
+ id: "project_create" | "kta_register" | "github_verify" | "api_key_create" | "scaffold" | "repo_create" | "commit_files" | "add_secrets" | "gateway_route";
176
176
  message?: string | undefined;
177
177
  startedAt?: string | undefined;
178
178
  completedAt?: string | undefined;
@@ -184,8 +184,8 @@ export declare const moltiDeployProgressSchema: z.ZodObject<{
184
184
  deploymentId: string;
185
185
  steps: {
186
186
  status: "pending" | "in_progress" | "completed" | "failed" | "skipped";
187
- id: "github_verify" | "project_create" | "api_key_create" | "kta_register" | "scaffold" | "repo_create" | "commit_files" | "add_secrets" | "gateway_route";
188
187
  name: string;
188
+ id: "project_create" | "kta_register" | "github_verify" | "api_key_create" | "scaffold" | "repo_create" | "commit_files" | "add_secrets" | "gateway_route";
189
189
  message?: string | undefined;
190
190
  startedAt?: string | undefined;
191
191
  completedAt?: string | undefined;
@@ -208,18 +208,18 @@ export declare const moltiDeployResultSchema: z.ZodObject<{
208
208
  gatewayHostname: z.ZodOptional<z.ZodString>;
209
209
  }, "strip", z.ZodTypeAny, {
210
210
  agentDid: string;
211
+ projectId: string;
211
212
  repoUrl: string;
212
213
  repoFullName: string;
213
- projectId: string;
214
214
  projectFriendlyId: string;
215
215
  deployButtonUrl: string;
216
216
  ktaClaimUrl?: string | undefined;
217
217
  gatewayHostname?: string | undefined;
218
218
  }, {
219
219
  agentDid: string;
220
+ projectId: string;
220
221
  repoUrl: string;
221
222
  repoFullName: string;
222
- projectId: string;
223
223
  projectFriendlyId: string;
224
224
  deployButtonUrl: string;
225
225
  ktaClaimUrl?: string | undefined;
@@ -239,24 +239,24 @@ export declare const moltiDeployErrorResponseSchema: z.ZodObject<{
239
239
  message: z.ZodString;
240
240
  details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
241
241
  }, "strip", z.ZodTypeAny, {
242
- code: "GITHUB_NOT_CONNECTED" | "REPO_NAME_TAKEN" | "REPO_NAME_INVALID" | "RATE_LIMIT_EXCEEDED" | "PLAN_LIMIT_EXCEEDED" | "SCAFFOLDER_ERROR" | "IDENTITY_ERROR" | "PROJECT_CREATION_ERROR" | "KTA_REGISTRATION_ERROR" | "SECRETS_ERROR" | "GATEWAY_ERROR" | "GITHUB_API_ERROR" | "INTERNAL_ERROR";
242
+ code: "IDENTITY_ERROR" | "PROJECT_CREATION_ERROR" | "KTA_REGISTRATION_ERROR" | "RATE_LIMIT_EXCEEDED" | "INTERNAL_ERROR" | "GITHUB_NOT_CONNECTED" | "REPO_NAME_TAKEN" | "REPO_NAME_INVALID" | "PLAN_LIMIT_EXCEEDED" | "GITHUB_API_ERROR" | "SCAFFOLDER_ERROR" | "SECRETS_ERROR" | "GATEWAY_ERROR";
243
243
  message: string;
244
244
  details?: Record<string, unknown> | undefined;
245
245
  }, {
246
- code: "GITHUB_NOT_CONNECTED" | "REPO_NAME_TAKEN" | "REPO_NAME_INVALID" | "RATE_LIMIT_EXCEEDED" | "PLAN_LIMIT_EXCEEDED" | "SCAFFOLDER_ERROR" | "IDENTITY_ERROR" | "PROJECT_CREATION_ERROR" | "KTA_REGISTRATION_ERROR" | "SECRETS_ERROR" | "GATEWAY_ERROR" | "GITHUB_API_ERROR" | "INTERNAL_ERROR";
246
+ code: "IDENTITY_ERROR" | "PROJECT_CREATION_ERROR" | "KTA_REGISTRATION_ERROR" | "RATE_LIMIT_EXCEEDED" | "INTERNAL_ERROR" | "GITHUB_NOT_CONNECTED" | "REPO_NAME_TAKEN" | "REPO_NAME_INVALID" | "PLAN_LIMIT_EXCEEDED" | "GITHUB_API_ERROR" | "SCAFFOLDER_ERROR" | "SECRETS_ERROR" | "GATEWAY_ERROR";
247
247
  message: string;
248
248
  details?: Record<string, unknown> | undefined;
249
249
  }>;
250
250
  }, "strip", z.ZodTypeAny, {
251
251
  error: {
252
- code: "GITHUB_NOT_CONNECTED" | "REPO_NAME_TAKEN" | "REPO_NAME_INVALID" | "RATE_LIMIT_EXCEEDED" | "PLAN_LIMIT_EXCEEDED" | "SCAFFOLDER_ERROR" | "IDENTITY_ERROR" | "PROJECT_CREATION_ERROR" | "KTA_REGISTRATION_ERROR" | "SECRETS_ERROR" | "GATEWAY_ERROR" | "GITHUB_API_ERROR" | "INTERNAL_ERROR";
252
+ code: "IDENTITY_ERROR" | "PROJECT_CREATION_ERROR" | "KTA_REGISTRATION_ERROR" | "RATE_LIMIT_EXCEEDED" | "INTERNAL_ERROR" | "GITHUB_NOT_CONNECTED" | "REPO_NAME_TAKEN" | "REPO_NAME_INVALID" | "PLAN_LIMIT_EXCEEDED" | "GITHUB_API_ERROR" | "SCAFFOLDER_ERROR" | "SECRETS_ERROR" | "GATEWAY_ERROR";
253
253
  message: string;
254
254
  details?: Record<string, unknown> | undefined;
255
255
  };
256
256
  success: false;
257
257
  }, {
258
258
  error: {
259
- code: "GITHUB_NOT_CONNECTED" | "REPO_NAME_TAKEN" | "REPO_NAME_INVALID" | "RATE_LIMIT_EXCEEDED" | "PLAN_LIMIT_EXCEEDED" | "SCAFFOLDER_ERROR" | "IDENTITY_ERROR" | "PROJECT_CREATION_ERROR" | "KTA_REGISTRATION_ERROR" | "SECRETS_ERROR" | "GATEWAY_ERROR" | "GITHUB_API_ERROR" | "INTERNAL_ERROR";
259
+ code: "IDENTITY_ERROR" | "PROJECT_CREATION_ERROR" | "KTA_REGISTRATION_ERROR" | "RATE_LIMIT_EXCEEDED" | "INTERNAL_ERROR" | "GITHUB_NOT_CONNECTED" | "REPO_NAME_TAKEN" | "REPO_NAME_INVALID" | "PLAN_LIMIT_EXCEEDED" | "GITHUB_API_ERROR" | "SCAFFOLDER_ERROR" | "SECRETS_ERROR" | "GATEWAY_ERROR";
260
260
  message: string;
261
261
  details?: Record<string, unknown> | undefined;
262
262
  };
@@ -278,18 +278,18 @@ export declare const moltiDeploySuccessResponseSchema: z.ZodObject<{
278
278
  gatewayHostname: z.ZodOptional<z.ZodString>;
279
279
  }, "strip", z.ZodTypeAny, {
280
280
  agentDid: string;
281
+ projectId: string;
281
282
  repoUrl: string;
282
283
  repoFullName: string;
283
- projectId: string;
284
284
  projectFriendlyId: string;
285
285
  deployButtonUrl: string;
286
286
  ktaClaimUrl?: string | undefined;
287
287
  gatewayHostname?: string | undefined;
288
288
  }, {
289
289
  agentDid: string;
290
+ projectId: string;
290
291
  repoUrl: string;
291
292
  repoFullName: string;
292
- projectId: string;
293
293
  projectFriendlyId: string;
294
294
  deployButtonUrl: string;
295
295
  ktaClaimUrl?: string | undefined;
@@ -299,9 +299,9 @@ export declare const moltiDeploySuccessResponseSchema: z.ZodObject<{
299
299
  success: true;
300
300
  data: {
301
301
  agentDid: string;
302
+ projectId: string;
302
303
  repoUrl: string;
303
304
  repoFullName: string;
304
- projectId: string;
305
305
  projectFriendlyId: string;
306
306
  deployButtonUrl: string;
307
307
  ktaClaimUrl?: string | undefined;
@@ -311,9 +311,9 @@ export declare const moltiDeploySuccessResponseSchema: z.ZodObject<{
311
311
  success: true;
312
312
  data: {
313
313
  agentDid: string;
314
+ projectId: string;
314
315
  repoUrl: string;
315
316
  repoFullName: string;
316
- projectId: string;
317
317
  projectFriendlyId: string;
318
318
  deployButtonUrl: string;
319
319
  ktaClaimUrl?: string | undefined;
@@ -336,18 +336,18 @@ export declare const moltiDeployResponseSchema: z.ZodDiscriminatedUnion<"success
336
336
  gatewayHostname: z.ZodOptional<z.ZodString>;
337
337
  }, "strip", z.ZodTypeAny, {
338
338
  agentDid: string;
339
+ projectId: string;
339
340
  repoUrl: string;
340
341
  repoFullName: string;
341
- projectId: string;
342
342
  projectFriendlyId: string;
343
343
  deployButtonUrl: string;
344
344
  ktaClaimUrl?: string | undefined;
345
345
  gatewayHostname?: string | undefined;
346
346
  }, {
347
347
  agentDid: string;
348
+ projectId: string;
348
349
  repoUrl: string;
349
350
  repoFullName: string;
350
- projectId: string;
351
351
  projectFriendlyId: string;
352
352
  deployButtonUrl: string;
353
353
  ktaClaimUrl?: string | undefined;
@@ -357,9 +357,9 @@ export declare const moltiDeployResponseSchema: z.ZodDiscriminatedUnion<"success
357
357
  success: true;
358
358
  data: {
359
359
  agentDid: string;
360
+ projectId: string;
360
361
  repoUrl: string;
361
362
  repoFullName: string;
362
- projectId: string;
363
363
  projectFriendlyId: string;
364
364
  deployButtonUrl: string;
365
365
  ktaClaimUrl?: string | undefined;
@@ -369,9 +369,9 @@ export declare const moltiDeployResponseSchema: z.ZodDiscriminatedUnion<"success
369
369
  success: true;
370
370
  data: {
371
371
  agentDid: string;
372
+ projectId: string;
372
373
  repoUrl: string;
373
374
  repoFullName: string;
374
- projectId: string;
375
375
  projectFriendlyId: string;
376
376
  deployButtonUrl: string;
377
377
  ktaClaimUrl?: string | undefined;
@@ -384,24 +384,24 @@ export declare const moltiDeployResponseSchema: z.ZodDiscriminatedUnion<"success
384
384
  message: z.ZodString;
385
385
  details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
386
386
  }, "strip", z.ZodTypeAny, {
387
- code: "GITHUB_NOT_CONNECTED" | "REPO_NAME_TAKEN" | "REPO_NAME_INVALID" | "RATE_LIMIT_EXCEEDED" | "PLAN_LIMIT_EXCEEDED" | "SCAFFOLDER_ERROR" | "IDENTITY_ERROR" | "PROJECT_CREATION_ERROR" | "KTA_REGISTRATION_ERROR" | "SECRETS_ERROR" | "GATEWAY_ERROR" | "GITHUB_API_ERROR" | "INTERNAL_ERROR";
387
+ code: "IDENTITY_ERROR" | "PROJECT_CREATION_ERROR" | "KTA_REGISTRATION_ERROR" | "RATE_LIMIT_EXCEEDED" | "INTERNAL_ERROR" | "GITHUB_NOT_CONNECTED" | "REPO_NAME_TAKEN" | "REPO_NAME_INVALID" | "PLAN_LIMIT_EXCEEDED" | "GITHUB_API_ERROR" | "SCAFFOLDER_ERROR" | "SECRETS_ERROR" | "GATEWAY_ERROR";
388
388
  message: string;
389
389
  details?: Record<string, unknown> | undefined;
390
390
  }, {
391
- code: "GITHUB_NOT_CONNECTED" | "REPO_NAME_TAKEN" | "REPO_NAME_INVALID" | "RATE_LIMIT_EXCEEDED" | "PLAN_LIMIT_EXCEEDED" | "SCAFFOLDER_ERROR" | "IDENTITY_ERROR" | "PROJECT_CREATION_ERROR" | "KTA_REGISTRATION_ERROR" | "SECRETS_ERROR" | "GATEWAY_ERROR" | "GITHUB_API_ERROR" | "INTERNAL_ERROR";
391
+ code: "IDENTITY_ERROR" | "PROJECT_CREATION_ERROR" | "KTA_REGISTRATION_ERROR" | "RATE_LIMIT_EXCEEDED" | "INTERNAL_ERROR" | "GITHUB_NOT_CONNECTED" | "REPO_NAME_TAKEN" | "REPO_NAME_INVALID" | "PLAN_LIMIT_EXCEEDED" | "GITHUB_API_ERROR" | "SCAFFOLDER_ERROR" | "SECRETS_ERROR" | "GATEWAY_ERROR";
392
392
  message: string;
393
393
  details?: Record<string, unknown> | undefined;
394
394
  }>;
395
395
  }, "strip", z.ZodTypeAny, {
396
396
  error: {
397
- code: "GITHUB_NOT_CONNECTED" | "REPO_NAME_TAKEN" | "REPO_NAME_INVALID" | "RATE_LIMIT_EXCEEDED" | "PLAN_LIMIT_EXCEEDED" | "SCAFFOLDER_ERROR" | "IDENTITY_ERROR" | "PROJECT_CREATION_ERROR" | "KTA_REGISTRATION_ERROR" | "SECRETS_ERROR" | "GATEWAY_ERROR" | "GITHUB_API_ERROR" | "INTERNAL_ERROR";
397
+ code: "IDENTITY_ERROR" | "PROJECT_CREATION_ERROR" | "KTA_REGISTRATION_ERROR" | "RATE_LIMIT_EXCEEDED" | "INTERNAL_ERROR" | "GITHUB_NOT_CONNECTED" | "REPO_NAME_TAKEN" | "REPO_NAME_INVALID" | "PLAN_LIMIT_EXCEEDED" | "GITHUB_API_ERROR" | "SCAFFOLDER_ERROR" | "SECRETS_ERROR" | "GATEWAY_ERROR";
398
398
  message: string;
399
399
  details?: Record<string, unknown> | undefined;
400
400
  };
401
401
  success: false;
402
402
  }, {
403
403
  error: {
404
- code: "GITHUB_NOT_CONNECTED" | "REPO_NAME_TAKEN" | "REPO_NAME_INVALID" | "RATE_LIMIT_EXCEEDED" | "PLAN_LIMIT_EXCEEDED" | "SCAFFOLDER_ERROR" | "IDENTITY_ERROR" | "PROJECT_CREATION_ERROR" | "KTA_REGISTRATION_ERROR" | "SECRETS_ERROR" | "GATEWAY_ERROR" | "GITHUB_API_ERROR" | "INTERNAL_ERROR";
404
+ code: "IDENTITY_ERROR" | "PROJECT_CREATION_ERROR" | "KTA_REGISTRATION_ERROR" | "RATE_LIMIT_EXCEEDED" | "INTERNAL_ERROR" | "GITHUB_NOT_CONNECTED" | "REPO_NAME_TAKEN" | "REPO_NAME_INVALID" | "PLAN_LIMIT_EXCEEDED" | "GITHUB_API_ERROR" | "SCAFFOLDER_ERROR" | "SECRETS_ERROR" | "GATEWAY_ERROR";
405
405
  message: string;
406
406
  details?: Record<string, unknown> | undefined;
407
407
  };
@@ -420,7 +420,7 @@ export declare const moltiHealthStatusSchema: z.ZodObject<{
420
420
  workerUrl: z.ZodOptional<z.ZodString>;
421
421
  }, "strip", z.ZodTypeAny, {
422
422
  agentDid: string;
423
- containerStatus: "pending" | "deploying" | "running" | "stopped" | "unhealthy" | "error";
423
+ containerStatus: "running" | "stopped" | "error" | "pending" | "deploying" | "unhealthy";
424
424
  gatewayRunning: boolean;
425
425
  gatewayPort: number;
426
426
  lastCheckedAt: string;
@@ -428,7 +428,7 @@ export declare const moltiHealthStatusSchema: z.ZodObject<{
428
428
  workerUrl?: string | undefined;
429
429
  }, {
430
430
  agentDid: string;
431
- containerStatus: "pending" | "deploying" | "running" | "stopped" | "unhealthy" | "error";
431
+ containerStatus: "running" | "stopped" | "error" | "pending" | "deploying" | "unhealthy";
432
432
  gatewayRunning: boolean;
433
433
  gatewayPort: number;
434
434
  lastCheckedAt: string;
@@ -451,15 +451,15 @@ export declare const moltiSSEProgressEventSchema: z.ZodObject<{
451
451
  completedAt: z.ZodOptional<z.ZodString>;
452
452
  }, "strip", z.ZodTypeAny, {
453
453
  status: "pending" | "in_progress" | "completed" | "failed" | "skipped";
454
- id: "github_verify" | "project_create" | "api_key_create" | "kta_register" | "scaffold" | "repo_create" | "commit_files" | "add_secrets" | "gateway_route";
455
454
  name: string;
455
+ id: "project_create" | "kta_register" | "github_verify" | "api_key_create" | "scaffold" | "repo_create" | "commit_files" | "add_secrets" | "gateway_route";
456
456
  message?: string | undefined;
457
457
  startedAt?: string | undefined;
458
458
  completedAt?: string | undefined;
459
459
  }, {
460
460
  status: "pending" | "in_progress" | "completed" | "failed" | "skipped";
461
- id: "github_verify" | "project_create" | "api_key_create" | "kta_register" | "scaffold" | "repo_create" | "commit_files" | "add_secrets" | "gateway_route";
462
461
  name: string;
462
+ id: "project_create" | "kta_register" | "github_verify" | "api_key_create" | "scaffold" | "repo_create" | "commit_files" | "add_secrets" | "gateway_route";
463
463
  message?: string | undefined;
464
464
  startedAt?: string | undefined;
465
465
  completedAt?: string | undefined;
@@ -471,8 +471,8 @@ export declare const moltiSSEProgressEventSchema: z.ZodObject<{
471
471
  deploymentId: string;
472
472
  steps: {
473
473
  status: "pending" | "in_progress" | "completed" | "failed" | "skipped";
474
- id: "github_verify" | "project_create" | "api_key_create" | "kta_register" | "scaffold" | "repo_create" | "commit_files" | "add_secrets" | "gateway_route";
475
474
  name: string;
475
+ id: "project_create" | "kta_register" | "github_verify" | "api_key_create" | "scaffold" | "repo_create" | "commit_files" | "add_secrets" | "gateway_route";
476
476
  message?: string | undefined;
477
477
  startedAt?: string | undefined;
478
478
  completedAt?: string | undefined;
@@ -484,8 +484,8 @@ export declare const moltiSSEProgressEventSchema: z.ZodObject<{
484
484
  deploymentId: string;
485
485
  steps: {
486
486
  status: "pending" | "in_progress" | "completed" | "failed" | "skipped";
487
- id: "github_verify" | "project_create" | "api_key_create" | "kta_register" | "scaffold" | "repo_create" | "commit_files" | "add_secrets" | "gateway_route";
488
487
  name: string;
488
+ id: "project_create" | "kta_register" | "github_verify" | "api_key_create" | "scaffold" | "repo_create" | "commit_files" | "add_secrets" | "gateway_route";
489
489
  message?: string | undefined;
490
490
  startedAt?: string | undefined;
491
491
  completedAt?: string | undefined;
@@ -500,8 +500,8 @@ export declare const moltiSSEProgressEventSchema: z.ZodObject<{
500
500
  deploymentId: string;
501
501
  steps: {
502
502
  status: "pending" | "in_progress" | "completed" | "failed" | "skipped";
503
- id: "github_verify" | "project_create" | "api_key_create" | "kta_register" | "scaffold" | "repo_create" | "commit_files" | "add_secrets" | "gateway_route";
504
503
  name: string;
504
+ id: "project_create" | "kta_register" | "github_verify" | "api_key_create" | "scaffold" | "repo_create" | "commit_files" | "add_secrets" | "gateway_route";
505
505
  message?: string | undefined;
506
506
  startedAt?: string | undefined;
507
507
  completedAt?: string | undefined;
@@ -516,8 +516,8 @@ export declare const moltiSSEProgressEventSchema: z.ZodObject<{
516
516
  deploymentId: string;
517
517
  steps: {
518
518
  status: "pending" | "in_progress" | "completed" | "failed" | "skipped";
519
- id: "github_verify" | "project_create" | "api_key_create" | "kta_register" | "scaffold" | "repo_create" | "commit_files" | "add_secrets" | "gateway_route";
520
519
  name: string;
520
+ id: "project_create" | "kta_register" | "github_verify" | "api_key_create" | "scaffold" | "repo_create" | "commit_files" | "add_secrets" | "gateway_route";
521
521
  message?: string | undefined;
522
522
  startedAt?: string | undefined;
523
523
  completedAt?: string | undefined;
@@ -543,18 +543,18 @@ export declare const moltiSSECompleteEventSchema: z.ZodObject<{
543
543
  gatewayHostname: z.ZodOptional<z.ZodString>;
544
544
  }, "strip", z.ZodTypeAny, {
545
545
  agentDid: string;
546
+ projectId: string;
546
547
  repoUrl: string;
547
548
  repoFullName: string;
548
- projectId: string;
549
549
  projectFriendlyId: string;
550
550
  deployButtonUrl: string;
551
551
  ktaClaimUrl?: string | undefined;
552
552
  gatewayHostname?: string | undefined;
553
553
  }, {
554
554
  agentDid: string;
555
+ projectId: string;
555
556
  repoUrl: string;
556
557
  repoFullName: string;
557
- projectId: string;
558
558
  projectFriendlyId: string;
559
559
  deployButtonUrl: string;
560
560
  ktaClaimUrl?: string | undefined;
@@ -564,9 +564,9 @@ export declare const moltiSSECompleteEventSchema: z.ZodObject<{
564
564
  type: "complete";
565
565
  data: {
566
566
  agentDid: string;
567
+ projectId: string;
567
568
  repoUrl: string;
568
569
  repoFullName: string;
569
- projectId: string;
570
570
  projectFriendlyId: string;
571
571
  deployButtonUrl: string;
572
572
  ktaClaimUrl?: string | undefined;
@@ -576,9 +576,9 @@ export declare const moltiSSECompleteEventSchema: z.ZodObject<{
576
576
  type: "complete";
577
577
  data: {
578
578
  agentDid: string;
579
+ projectId: string;
579
580
  repoUrl: string;
580
581
  repoFullName: string;
581
- projectId: string;
582
582
  projectFriendlyId: string;
583
583
  deployButtonUrl: string;
584
584
  ktaClaimUrl?: string | undefined;
@@ -595,27 +595,27 @@ export declare const moltiSSEErrorEventSchema: z.ZodObject<{
595
595
  message: z.ZodString;
596
596
  step: z.ZodOptional<z.ZodEnum<["github_verify", "project_create", "api_key_create", "kta_register", "scaffold", "repo_create", "commit_files", "add_secrets", "gateway_route"]>>;
597
597
  }, "strip", z.ZodTypeAny, {
598
- code: "GITHUB_NOT_CONNECTED" | "REPO_NAME_TAKEN" | "REPO_NAME_INVALID" | "RATE_LIMIT_EXCEEDED" | "PLAN_LIMIT_EXCEEDED" | "SCAFFOLDER_ERROR" | "IDENTITY_ERROR" | "PROJECT_CREATION_ERROR" | "KTA_REGISTRATION_ERROR" | "SECRETS_ERROR" | "GATEWAY_ERROR" | "GITHUB_API_ERROR" | "INTERNAL_ERROR";
598
+ code: "IDENTITY_ERROR" | "PROJECT_CREATION_ERROR" | "KTA_REGISTRATION_ERROR" | "RATE_LIMIT_EXCEEDED" | "INTERNAL_ERROR" | "GITHUB_NOT_CONNECTED" | "REPO_NAME_TAKEN" | "REPO_NAME_INVALID" | "PLAN_LIMIT_EXCEEDED" | "GITHUB_API_ERROR" | "SCAFFOLDER_ERROR" | "SECRETS_ERROR" | "GATEWAY_ERROR";
599
599
  message: string;
600
- step?: "github_verify" | "project_create" | "api_key_create" | "kta_register" | "scaffold" | "repo_create" | "commit_files" | "add_secrets" | "gateway_route" | undefined;
600
+ step?: "project_create" | "kta_register" | "github_verify" | "api_key_create" | "scaffold" | "repo_create" | "commit_files" | "add_secrets" | "gateway_route" | undefined;
601
601
  }, {
602
- code: "GITHUB_NOT_CONNECTED" | "REPO_NAME_TAKEN" | "REPO_NAME_INVALID" | "RATE_LIMIT_EXCEEDED" | "PLAN_LIMIT_EXCEEDED" | "SCAFFOLDER_ERROR" | "IDENTITY_ERROR" | "PROJECT_CREATION_ERROR" | "KTA_REGISTRATION_ERROR" | "SECRETS_ERROR" | "GATEWAY_ERROR" | "GITHUB_API_ERROR" | "INTERNAL_ERROR";
602
+ code: "IDENTITY_ERROR" | "PROJECT_CREATION_ERROR" | "KTA_REGISTRATION_ERROR" | "RATE_LIMIT_EXCEEDED" | "INTERNAL_ERROR" | "GITHUB_NOT_CONNECTED" | "REPO_NAME_TAKEN" | "REPO_NAME_INVALID" | "PLAN_LIMIT_EXCEEDED" | "GITHUB_API_ERROR" | "SCAFFOLDER_ERROR" | "SECRETS_ERROR" | "GATEWAY_ERROR";
603
603
  message: string;
604
- step?: "github_verify" | "project_create" | "api_key_create" | "kta_register" | "scaffold" | "repo_create" | "commit_files" | "add_secrets" | "gateway_route" | undefined;
604
+ step?: "project_create" | "kta_register" | "github_verify" | "api_key_create" | "scaffold" | "repo_create" | "commit_files" | "add_secrets" | "gateway_route" | undefined;
605
605
  }>;
606
606
  }, "strip", z.ZodTypeAny, {
607
607
  type: "error";
608
608
  data: {
609
- code: "GITHUB_NOT_CONNECTED" | "REPO_NAME_TAKEN" | "REPO_NAME_INVALID" | "RATE_LIMIT_EXCEEDED" | "PLAN_LIMIT_EXCEEDED" | "SCAFFOLDER_ERROR" | "IDENTITY_ERROR" | "PROJECT_CREATION_ERROR" | "KTA_REGISTRATION_ERROR" | "SECRETS_ERROR" | "GATEWAY_ERROR" | "GITHUB_API_ERROR" | "INTERNAL_ERROR";
609
+ code: "IDENTITY_ERROR" | "PROJECT_CREATION_ERROR" | "KTA_REGISTRATION_ERROR" | "RATE_LIMIT_EXCEEDED" | "INTERNAL_ERROR" | "GITHUB_NOT_CONNECTED" | "REPO_NAME_TAKEN" | "REPO_NAME_INVALID" | "PLAN_LIMIT_EXCEEDED" | "GITHUB_API_ERROR" | "SCAFFOLDER_ERROR" | "SECRETS_ERROR" | "GATEWAY_ERROR";
610
610
  message: string;
611
- step?: "github_verify" | "project_create" | "api_key_create" | "kta_register" | "scaffold" | "repo_create" | "commit_files" | "add_secrets" | "gateway_route" | undefined;
611
+ step?: "project_create" | "kta_register" | "github_verify" | "api_key_create" | "scaffold" | "repo_create" | "commit_files" | "add_secrets" | "gateway_route" | undefined;
612
612
  };
613
613
  }, {
614
614
  type: "error";
615
615
  data: {
616
- code: "GITHUB_NOT_CONNECTED" | "REPO_NAME_TAKEN" | "REPO_NAME_INVALID" | "RATE_LIMIT_EXCEEDED" | "PLAN_LIMIT_EXCEEDED" | "SCAFFOLDER_ERROR" | "IDENTITY_ERROR" | "PROJECT_CREATION_ERROR" | "KTA_REGISTRATION_ERROR" | "SECRETS_ERROR" | "GATEWAY_ERROR" | "GITHUB_API_ERROR" | "INTERNAL_ERROR";
616
+ code: "IDENTITY_ERROR" | "PROJECT_CREATION_ERROR" | "KTA_REGISTRATION_ERROR" | "RATE_LIMIT_EXCEEDED" | "INTERNAL_ERROR" | "GITHUB_NOT_CONNECTED" | "REPO_NAME_TAKEN" | "REPO_NAME_INVALID" | "PLAN_LIMIT_EXCEEDED" | "GITHUB_API_ERROR" | "SCAFFOLDER_ERROR" | "SECRETS_ERROR" | "GATEWAY_ERROR";
617
617
  message: string;
618
- step?: "github_verify" | "project_create" | "api_key_create" | "kta_register" | "scaffold" | "repo_create" | "commit_files" | "add_secrets" | "gateway_route" | undefined;
618
+ step?: "project_create" | "kta_register" | "github_verify" | "api_key_create" | "scaffold" | "repo_create" | "commit_files" | "add_secrets" | "gateway_route" | undefined;
619
619
  };
620
620
  }>;
621
621
  /**
@@ -657,15 +657,15 @@ export declare const moltiSSEEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
657
657
  completedAt: z.ZodOptional<z.ZodString>;
658
658
  }, "strip", z.ZodTypeAny, {
659
659
  status: "pending" | "in_progress" | "completed" | "failed" | "skipped";
660
- id: "github_verify" | "project_create" | "api_key_create" | "kta_register" | "scaffold" | "repo_create" | "commit_files" | "add_secrets" | "gateway_route";
661
660
  name: string;
661
+ id: "project_create" | "kta_register" | "github_verify" | "api_key_create" | "scaffold" | "repo_create" | "commit_files" | "add_secrets" | "gateway_route";
662
662
  message?: string | undefined;
663
663
  startedAt?: string | undefined;
664
664
  completedAt?: string | undefined;
665
665
  }, {
666
666
  status: "pending" | "in_progress" | "completed" | "failed" | "skipped";
667
- id: "github_verify" | "project_create" | "api_key_create" | "kta_register" | "scaffold" | "repo_create" | "commit_files" | "add_secrets" | "gateway_route";
668
667
  name: string;
668
+ id: "project_create" | "kta_register" | "github_verify" | "api_key_create" | "scaffold" | "repo_create" | "commit_files" | "add_secrets" | "gateway_route";
669
669
  message?: string | undefined;
670
670
  startedAt?: string | undefined;
671
671
  completedAt?: string | undefined;
@@ -677,8 +677,8 @@ export declare const moltiSSEEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
677
677
  deploymentId: string;
678
678
  steps: {
679
679
  status: "pending" | "in_progress" | "completed" | "failed" | "skipped";
680
- id: "github_verify" | "project_create" | "api_key_create" | "kta_register" | "scaffold" | "repo_create" | "commit_files" | "add_secrets" | "gateway_route";
681
680
  name: string;
681
+ id: "project_create" | "kta_register" | "github_verify" | "api_key_create" | "scaffold" | "repo_create" | "commit_files" | "add_secrets" | "gateway_route";
682
682
  message?: string | undefined;
683
683
  startedAt?: string | undefined;
684
684
  completedAt?: string | undefined;
@@ -690,8 +690,8 @@ export declare const moltiSSEEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
690
690
  deploymentId: string;
691
691
  steps: {
692
692
  status: "pending" | "in_progress" | "completed" | "failed" | "skipped";
693
- id: "github_verify" | "project_create" | "api_key_create" | "kta_register" | "scaffold" | "repo_create" | "commit_files" | "add_secrets" | "gateway_route";
694
693
  name: string;
694
+ id: "project_create" | "kta_register" | "github_verify" | "api_key_create" | "scaffold" | "repo_create" | "commit_files" | "add_secrets" | "gateway_route";
695
695
  message?: string | undefined;
696
696
  startedAt?: string | undefined;
697
697
  completedAt?: string | undefined;
@@ -706,8 +706,8 @@ export declare const moltiSSEEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
706
706
  deploymentId: string;
707
707
  steps: {
708
708
  status: "pending" | "in_progress" | "completed" | "failed" | "skipped";
709
- id: "github_verify" | "project_create" | "api_key_create" | "kta_register" | "scaffold" | "repo_create" | "commit_files" | "add_secrets" | "gateway_route";
710
709
  name: string;
710
+ id: "project_create" | "kta_register" | "github_verify" | "api_key_create" | "scaffold" | "repo_create" | "commit_files" | "add_secrets" | "gateway_route";
711
711
  message?: string | undefined;
712
712
  startedAt?: string | undefined;
713
713
  completedAt?: string | undefined;
@@ -722,8 +722,8 @@ export declare const moltiSSEEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
722
722
  deploymentId: string;
723
723
  steps: {
724
724
  status: "pending" | "in_progress" | "completed" | "failed" | "skipped";
725
- id: "github_verify" | "project_create" | "api_key_create" | "kta_register" | "scaffold" | "repo_create" | "commit_files" | "add_secrets" | "gateway_route";
726
725
  name: string;
726
+ id: "project_create" | "kta_register" | "github_verify" | "api_key_create" | "scaffold" | "repo_create" | "commit_files" | "add_secrets" | "gateway_route";
727
727
  message?: string | undefined;
728
728
  startedAt?: string | undefined;
729
729
  completedAt?: string | undefined;
@@ -745,18 +745,18 @@ export declare const moltiSSEEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
745
745
  gatewayHostname: z.ZodOptional<z.ZodString>;
746
746
  }, "strip", z.ZodTypeAny, {
747
747
  agentDid: string;
748
+ projectId: string;
748
749
  repoUrl: string;
749
750
  repoFullName: string;
750
- projectId: string;
751
751
  projectFriendlyId: string;
752
752
  deployButtonUrl: string;
753
753
  ktaClaimUrl?: string | undefined;
754
754
  gatewayHostname?: string | undefined;
755
755
  }, {
756
756
  agentDid: string;
757
+ projectId: string;
757
758
  repoUrl: string;
758
759
  repoFullName: string;
759
- projectId: string;
760
760
  projectFriendlyId: string;
761
761
  deployButtonUrl: string;
762
762
  ktaClaimUrl?: string | undefined;
@@ -766,9 +766,9 @@ export declare const moltiSSEEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
766
766
  type: "complete";
767
767
  data: {
768
768
  agentDid: string;
769
+ projectId: string;
769
770
  repoUrl: string;
770
771
  repoFullName: string;
771
- projectId: string;
772
772
  projectFriendlyId: string;
773
773
  deployButtonUrl: string;
774
774
  ktaClaimUrl?: string | undefined;
@@ -778,9 +778,9 @@ export declare const moltiSSEEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
778
778
  type: "complete";
779
779
  data: {
780
780
  agentDid: string;
781
+ projectId: string;
781
782
  repoUrl: string;
782
783
  repoFullName: string;
783
- projectId: string;
784
784
  projectFriendlyId: string;
785
785
  deployButtonUrl: string;
786
786
  ktaClaimUrl?: string | undefined;
@@ -793,27 +793,27 @@ export declare const moltiSSEEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
793
793
  message: z.ZodString;
794
794
  step: z.ZodOptional<z.ZodEnum<["github_verify", "project_create", "api_key_create", "kta_register", "scaffold", "repo_create", "commit_files", "add_secrets", "gateway_route"]>>;
795
795
  }, "strip", z.ZodTypeAny, {
796
- code: "GITHUB_NOT_CONNECTED" | "REPO_NAME_TAKEN" | "REPO_NAME_INVALID" | "RATE_LIMIT_EXCEEDED" | "PLAN_LIMIT_EXCEEDED" | "SCAFFOLDER_ERROR" | "IDENTITY_ERROR" | "PROJECT_CREATION_ERROR" | "KTA_REGISTRATION_ERROR" | "SECRETS_ERROR" | "GATEWAY_ERROR" | "GITHUB_API_ERROR" | "INTERNAL_ERROR";
796
+ code: "IDENTITY_ERROR" | "PROJECT_CREATION_ERROR" | "KTA_REGISTRATION_ERROR" | "RATE_LIMIT_EXCEEDED" | "INTERNAL_ERROR" | "GITHUB_NOT_CONNECTED" | "REPO_NAME_TAKEN" | "REPO_NAME_INVALID" | "PLAN_LIMIT_EXCEEDED" | "GITHUB_API_ERROR" | "SCAFFOLDER_ERROR" | "SECRETS_ERROR" | "GATEWAY_ERROR";
797
797
  message: string;
798
- step?: "github_verify" | "project_create" | "api_key_create" | "kta_register" | "scaffold" | "repo_create" | "commit_files" | "add_secrets" | "gateway_route" | undefined;
798
+ step?: "project_create" | "kta_register" | "github_verify" | "api_key_create" | "scaffold" | "repo_create" | "commit_files" | "add_secrets" | "gateway_route" | undefined;
799
799
  }, {
800
- code: "GITHUB_NOT_CONNECTED" | "REPO_NAME_TAKEN" | "REPO_NAME_INVALID" | "RATE_LIMIT_EXCEEDED" | "PLAN_LIMIT_EXCEEDED" | "SCAFFOLDER_ERROR" | "IDENTITY_ERROR" | "PROJECT_CREATION_ERROR" | "KTA_REGISTRATION_ERROR" | "SECRETS_ERROR" | "GATEWAY_ERROR" | "GITHUB_API_ERROR" | "INTERNAL_ERROR";
800
+ code: "IDENTITY_ERROR" | "PROJECT_CREATION_ERROR" | "KTA_REGISTRATION_ERROR" | "RATE_LIMIT_EXCEEDED" | "INTERNAL_ERROR" | "GITHUB_NOT_CONNECTED" | "REPO_NAME_TAKEN" | "REPO_NAME_INVALID" | "PLAN_LIMIT_EXCEEDED" | "GITHUB_API_ERROR" | "SCAFFOLDER_ERROR" | "SECRETS_ERROR" | "GATEWAY_ERROR";
801
801
  message: string;
802
- step?: "github_verify" | "project_create" | "api_key_create" | "kta_register" | "scaffold" | "repo_create" | "commit_files" | "add_secrets" | "gateway_route" | undefined;
802
+ step?: "project_create" | "kta_register" | "github_verify" | "api_key_create" | "scaffold" | "repo_create" | "commit_files" | "add_secrets" | "gateway_route" | undefined;
803
803
  }>;
804
804
  }, "strip", z.ZodTypeAny, {
805
805
  type: "error";
806
806
  data: {
807
- code: "GITHUB_NOT_CONNECTED" | "REPO_NAME_TAKEN" | "REPO_NAME_INVALID" | "RATE_LIMIT_EXCEEDED" | "PLAN_LIMIT_EXCEEDED" | "SCAFFOLDER_ERROR" | "IDENTITY_ERROR" | "PROJECT_CREATION_ERROR" | "KTA_REGISTRATION_ERROR" | "SECRETS_ERROR" | "GATEWAY_ERROR" | "GITHUB_API_ERROR" | "INTERNAL_ERROR";
807
+ code: "IDENTITY_ERROR" | "PROJECT_CREATION_ERROR" | "KTA_REGISTRATION_ERROR" | "RATE_LIMIT_EXCEEDED" | "INTERNAL_ERROR" | "GITHUB_NOT_CONNECTED" | "REPO_NAME_TAKEN" | "REPO_NAME_INVALID" | "PLAN_LIMIT_EXCEEDED" | "GITHUB_API_ERROR" | "SCAFFOLDER_ERROR" | "SECRETS_ERROR" | "GATEWAY_ERROR";
808
808
  message: string;
809
- step?: "github_verify" | "project_create" | "api_key_create" | "kta_register" | "scaffold" | "repo_create" | "commit_files" | "add_secrets" | "gateway_route" | undefined;
809
+ step?: "project_create" | "kta_register" | "github_verify" | "api_key_create" | "scaffold" | "repo_create" | "commit_files" | "add_secrets" | "gateway_route" | undefined;
810
810
  };
811
811
  }, {
812
812
  type: "error";
813
813
  data: {
814
- code: "GITHUB_NOT_CONNECTED" | "REPO_NAME_TAKEN" | "REPO_NAME_INVALID" | "RATE_LIMIT_EXCEEDED" | "PLAN_LIMIT_EXCEEDED" | "SCAFFOLDER_ERROR" | "IDENTITY_ERROR" | "PROJECT_CREATION_ERROR" | "KTA_REGISTRATION_ERROR" | "SECRETS_ERROR" | "GATEWAY_ERROR" | "GITHUB_API_ERROR" | "INTERNAL_ERROR";
814
+ code: "IDENTITY_ERROR" | "PROJECT_CREATION_ERROR" | "KTA_REGISTRATION_ERROR" | "RATE_LIMIT_EXCEEDED" | "INTERNAL_ERROR" | "GITHUB_NOT_CONNECTED" | "REPO_NAME_TAKEN" | "REPO_NAME_INVALID" | "PLAN_LIMIT_EXCEEDED" | "GITHUB_API_ERROR" | "SCAFFOLDER_ERROR" | "SECRETS_ERROR" | "GATEWAY_ERROR";
815
815
  message: string;
816
- step?: "github_verify" | "project_create" | "api_key_create" | "kta_register" | "scaffold" | "repo_create" | "commit_files" | "add_secrets" | "gateway_route" | undefined;
816
+ step?: "project_create" | "kta_register" | "github_verify" | "api_key_create" | "scaffold" | "repo_create" | "commit_files" | "add_secrets" | "gateway_route" | undefined;
817
817
  };
818
818
  }>, z.ZodObject<{
819
819
  type: z.ZodLiteral<"keepalive">;