vibeusage 0.3.0 → 0.3.2

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 (127) hide show
  1. package/README.md +19 -11
  2. package/README.zh-CN.md +10 -8
  3. package/node_modules/@insforge/sdk/LICENSE +201 -201
  4. package/node_modules/@insforge/sdk/README.md +326 -259
  5. package/node_modules/@insforge/sdk/dist/index.d.mts +377 -182
  6. package/node_modules/@insforge/sdk/dist/index.d.ts +377 -182
  7. package/node_modules/@insforge/sdk/dist/index.js +1172 -677
  8. package/node_modules/@insforge/sdk/dist/index.js.map +1 -1
  9. package/node_modules/@insforge/sdk/dist/index.mjs +1171 -677
  10. package/node_modules/@insforge/sdk/dist/index.mjs.map +1 -1
  11. package/node_modules/@insforge/sdk/package.json +68 -68
  12. package/node_modules/@insforge/shared-schemas/dist/ai-api.schema.d.ts +1120 -43
  13. package/node_modules/@insforge/shared-schemas/dist/ai-api.schema.d.ts.map +1 -1
  14. package/node_modules/@insforge/shared-schemas/dist/ai-api.schema.js +179 -5
  15. package/node_modules/@insforge/shared-schemas/dist/ai-api.schema.js.map +1 -1
  16. package/node_modules/@insforge/shared-schemas/dist/ai.schema.d.ts +25 -25
  17. package/node_modules/@insforge/shared-schemas/dist/ai.schema.d.ts.map +1 -1
  18. package/node_modules/@insforge/shared-schemas/dist/ai.schema.js +2 -2
  19. package/node_modules/@insforge/shared-schemas/dist/ai.schema.js.map +1 -1
  20. package/node_modules/@insforge/shared-schemas/dist/auth-api.schema.d.ts +197 -51
  21. package/node_modules/@insforge/shared-schemas/dist/auth-api.schema.d.ts.map +1 -1
  22. package/node_modules/@insforge/shared-schemas/dist/auth-api.schema.js +87 -23
  23. package/node_modules/@insforge/shared-schemas/dist/auth-api.schema.js.map +1 -1
  24. package/node_modules/@insforge/shared-schemas/dist/auth.schema.d.ts +32 -3
  25. package/node_modules/@insforge/shared-schemas/dist/auth.schema.d.ts.map +1 -1
  26. package/node_modules/@insforge/shared-schemas/dist/auth.schema.js +21 -3
  27. package/node_modules/@insforge/shared-schemas/dist/auth.schema.js.map +1 -1
  28. package/node_modules/@insforge/shared-schemas/dist/cloud-events.schema.d.ts +380 -0
  29. package/node_modules/@insforge/shared-schemas/dist/cloud-events.schema.d.ts.map +1 -1
  30. package/node_modules/@insforge/shared-schemas/dist/cloud-events.schema.js +74 -0
  31. package/node_modules/@insforge/shared-schemas/dist/cloud-events.schema.js.map +1 -1
  32. package/node_modules/@insforge/shared-schemas/dist/database-api.schema.d.ts +13 -13
  33. package/node_modules/@insforge/shared-schemas/dist/database-api.schema.js +1 -1
  34. package/node_modules/@insforge/shared-schemas/dist/database-api.schema.js.map +1 -1
  35. package/node_modules/@insforge/shared-schemas/dist/deployments-api.schema.d.ts +735 -0
  36. package/node_modules/@insforge/shared-schemas/dist/deployments-api.schema.d.ts.map +1 -0
  37. package/node_modules/@insforge/shared-schemas/dist/deployments-api.schema.js +209 -0
  38. package/node_modules/@insforge/shared-schemas/dist/deployments-api.schema.js.map +1 -0
  39. package/node_modules/@insforge/shared-schemas/dist/deployments.schema.d.ts +37 -0
  40. package/node_modules/@insforge/shared-schemas/dist/deployments.schema.d.ts.map +1 -0
  41. package/node_modules/@insforge/shared-schemas/dist/deployments.schema.js +25 -0
  42. package/node_modules/@insforge/shared-schemas/dist/deployments.schema.js.map +1 -0
  43. package/node_modules/@insforge/shared-schemas/dist/docs.schema.d.ts +5 -1
  44. package/node_modules/@insforge/shared-schemas/dist/docs.schema.d.ts.map +1 -1
  45. package/node_modules/@insforge/shared-schemas/dist/docs.schema.js +34 -4
  46. package/node_modules/@insforge/shared-schemas/dist/docs.schema.js.map +1 -1
  47. package/node_modules/@insforge/shared-schemas/dist/email-api.schema.js +1 -1
  48. package/node_modules/@insforge/shared-schemas/dist/email-api.schema.js.map +1 -1
  49. package/node_modules/@insforge/shared-schemas/dist/functions-api.schema.d.ts +186 -6
  50. package/node_modules/@insforge/shared-schemas/dist/functions-api.schema.d.ts.map +1 -1
  51. package/node_modules/@insforge/shared-schemas/dist/functions-api.schema.js +21 -2
  52. package/node_modules/@insforge/shared-schemas/dist/functions-api.schema.js.map +1 -1
  53. package/node_modules/@insforge/shared-schemas/dist/functions.schema.d.ts +5 -5
  54. package/node_modules/@insforge/shared-schemas/dist/functions.schema.js +1 -1
  55. package/node_modules/@insforge/shared-schemas/dist/functions.schema.js.map +1 -1
  56. package/node_modules/@insforge/shared-schemas/dist/index.d.ts +24 -18
  57. package/node_modules/@insforge/shared-schemas/dist/index.d.ts.map +1 -1
  58. package/node_modules/@insforge/shared-schemas/dist/index.js +24 -18
  59. package/node_modules/@insforge/shared-schemas/dist/index.js.map +1 -1
  60. package/node_modules/@insforge/shared-schemas/dist/logs-api.schema.js +1 -1
  61. package/node_modules/@insforge/shared-schemas/dist/logs-api.schema.js.map +1 -1
  62. package/node_modules/@insforge/shared-schemas/dist/logs.schema.d.ts +43 -0
  63. package/node_modules/@insforge/shared-schemas/dist/logs.schema.d.ts.map +1 -1
  64. package/node_modules/@insforge/shared-schemas/dist/logs.schema.js +11 -0
  65. package/node_modules/@insforge/shared-schemas/dist/logs.schema.js.map +1 -1
  66. package/node_modules/@insforge/shared-schemas/dist/metadata.schema.d.ts +229 -172
  67. package/node_modules/@insforge/shared-schemas/dist/metadata.schema.d.ts.map +1 -1
  68. package/node_modules/@insforge/shared-schemas/dist/metadata.schema.js +27 -7
  69. package/node_modules/@insforge/shared-schemas/dist/metadata.schema.js.map +1 -1
  70. package/node_modules/@insforge/shared-schemas/dist/rate-limit-api.schema.d.ts +51 -0
  71. package/node_modules/@insforge/shared-schemas/dist/rate-limit-api.schema.d.ts.map +1 -0
  72. package/node_modules/@insforge/shared-schemas/dist/rate-limit-api.schema.js +31 -0
  73. package/node_modules/@insforge/shared-schemas/dist/rate-limit-api.schema.js.map +1 -0
  74. package/node_modules/@insforge/shared-schemas/dist/rate-limit.schema.d.ts +31 -0
  75. package/node_modules/@insforge/shared-schemas/dist/rate-limit.schema.d.ts.map +1 -0
  76. package/node_modules/@insforge/shared-schemas/dist/rate-limit.schema.js +12 -0
  77. package/node_modules/@insforge/shared-schemas/dist/rate-limit.schema.js.map +1 -0
  78. package/node_modules/@insforge/shared-schemas/dist/realtime-api.schema.d.ts +39 -20
  79. package/node_modules/@insforge/shared-schemas/dist/realtime-api.schema.d.ts.map +1 -1
  80. package/node_modules/@insforge/shared-schemas/dist/realtime-api.schema.js +5 -1
  81. package/node_modules/@insforge/shared-schemas/dist/realtime-api.schema.js.map +1 -1
  82. package/node_modules/@insforge/shared-schemas/dist/realtime.schema.d.ts +12 -4
  83. package/node_modules/@insforge/shared-schemas/dist/realtime.schema.d.ts.map +1 -1
  84. package/node_modules/@insforge/shared-schemas/dist/realtime.schema.js +6 -0
  85. package/node_modules/@insforge/shared-schemas/dist/realtime.schema.js.map +1 -1
  86. package/node_modules/@insforge/shared-schemas/dist/schedules-api.schema.d.ts +287 -0
  87. package/node_modules/@insforge/shared-schemas/dist/schedules-api.schema.d.ts.map +1 -0
  88. package/node_modules/@insforge/shared-schemas/dist/schedules-api.schema.js +81 -0
  89. package/node_modules/@insforge/shared-schemas/dist/schedules-api.schema.js.map +1 -0
  90. package/node_modules/@insforge/shared-schemas/dist/schedules.schema.d.ts +77 -0
  91. package/node_modules/@insforge/shared-schemas/dist/schedules.schema.d.ts.map +1 -0
  92. package/node_modules/@insforge/shared-schemas/dist/schedules.schema.js +36 -0
  93. package/node_modules/@insforge/shared-schemas/dist/schedules.schema.js.map +1 -0
  94. package/node_modules/@insforge/shared-schemas/dist/secrets-api.schema.d.ts +113 -0
  95. package/node_modules/@insforge/shared-schemas/dist/secrets-api.schema.d.ts.map +1 -0
  96. package/node_modules/@insforge/shared-schemas/dist/secrets-api.schema.js +31 -0
  97. package/node_modules/@insforge/shared-schemas/dist/secrets-api.schema.js.map +1 -0
  98. package/node_modules/@insforge/shared-schemas/dist/secrets.schema.d.ts +31 -0
  99. package/node_modules/@insforge/shared-schemas/dist/secrets.schema.d.ts.map +1 -0
  100. package/node_modules/@insforge/shared-schemas/dist/secrets.schema.js +13 -0
  101. package/node_modules/@insforge/shared-schemas/dist/secrets.schema.js.map +1 -0
  102. package/node_modules/@insforge/shared-schemas/dist/storage-api.schema.d.ts +27 -2
  103. package/node_modules/@insforge/shared-schemas/dist/storage-api.schema.d.ts.map +1 -1
  104. package/node_modules/@insforge/shared-schemas/dist/storage-api.schema.js +9 -1
  105. package/node_modules/@insforge/shared-schemas/dist/storage-api.schema.js.map +1 -1
  106. package/node_modules/@insforge/shared-schemas/dist/storage.schema.d.ts +17 -0
  107. package/node_modules/@insforge/shared-schemas/dist/storage.schema.d.ts.map +1 -1
  108. package/node_modules/@insforge/shared-schemas/dist/storage.schema.js +6 -0
  109. package/node_modules/@insforge/shared-schemas/dist/storage.schema.js.map +1 -1
  110. package/node_modules/@insforge/shared-schemas/package.json +2 -1
  111. package/package.json +2 -2
  112. package/src/commands/status.js +22 -5
  113. package/src/commands/sync.js +100 -197
  114. package/src/commands/uninstall.js +0 -11
  115. package/src/lib/diagnostics.js +34 -9
  116. package/src/lib/doctor.js +24 -15
  117. package/src/lib/insforge-client.js +13 -9
  118. package/src/lib/integrations/context.js +0 -6
  119. package/src/lib/integrations/index.js +0 -2
  120. package/src/lib/openclaw-session-plugin.js +48 -138
  121. package/src/lib/openclaw-usage-ledger.js +237 -0
  122. package/src/lib/opencode-sqlite.js +113 -0
  123. package/src/lib/opencode-usage-audit.js +3 -2
  124. package/src/lib/rollout.js +229 -153
  125. package/src/lib/vibeusage-api.js +2 -2
  126. package/src/lib/integrations/openclaw-legacy.js +0 -123
  127. package/src/lib/openclaw-hook.js +0 -420
@@ -0,0 +1,735 @@
1
+ import { z } from 'zod';
2
+ export declare const projectSettingsSchema: z.ZodObject<{
3
+ buildCommand: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4
+ outputDirectory: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5
+ installCommand: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6
+ devCommand: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
+ rootDirectory: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
+ }, "strip", z.ZodTypeAny, {
9
+ buildCommand?: string | null | undefined;
10
+ outputDirectory?: string | null | undefined;
11
+ installCommand?: string | null | undefined;
12
+ devCommand?: string | null | undefined;
13
+ rootDirectory?: string | null | undefined;
14
+ }, {
15
+ buildCommand?: string | null | undefined;
16
+ outputDirectory?: string | null | undefined;
17
+ installCommand?: string | null | undefined;
18
+ devCommand?: string | null | undefined;
19
+ rootDirectory?: string | null | undefined;
20
+ }>;
21
+ export declare const envVarSchema: z.ZodObject<{
22
+ key: z.ZodString;
23
+ value: z.ZodString;
24
+ }, "strip", z.ZodTypeAny, {
25
+ value: string;
26
+ key: string;
27
+ }, {
28
+ value: string;
29
+ key: string;
30
+ }>;
31
+ /**
32
+ * Response from creating a deployment - includes presigned upload info
33
+ */
34
+ export declare const createDeploymentResponseSchema: z.ZodObject<{
35
+ id: z.ZodString;
36
+ uploadUrl: z.ZodString;
37
+ uploadFields: z.ZodRecord<z.ZodString, z.ZodString>;
38
+ }, "strip", z.ZodTypeAny, {
39
+ id: string;
40
+ uploadUrl: string;
41
+ uploadFields: Record<string, string>;
42
+ }, {
43
+ id: string;
44
+ uploadUrl: string;
45
+ uploadFields: Record<string, string>;
46
+ }>;
47
+ /**
48
+ * Request to start a deployment (step 2)
49
+ * Triggers upload to Vercel and creates the actual deployment
50
+ */
51
+ export declare const startDeploymentRequestSchema: z.ZodObject<{
52
+ projectSettings: z.ZodOptional<z.ZodObject<{
53
+ buildCommand: z.ZodOptional<z.ZodNullable<z.ZodString>>;
54
+ outputDirectory: z.ZodOptional<z.ZodNullable<z.ZodString>>;
55
+ installCommand: z.ZodOptional<z.ZodNullable<z.ZodString>>;
56
+ devCommand: z.ZodOptional<z.ZodNullable<z.ZodString>>;
57
+ rootDirectory: z.ZodOptional<z.ZodNullable<z.ZodString>>;
58
+ }, "strip", z.ZodTypeAny, {
59
+ buildCommand?: string | null | undefined;
60
+ outputDirectory?: string | null | undefined;
61
+ installCommand?: string | null | undefined;
62
+ devCommand?: string | null | undefined;
63
+ rootDirectory?: string | null | undefined;
64
+ }, {
65
+ buildCommand?: string | null | undefined;
66
+ outputDirectory?: string | null | undefined;
67
+ installCommand?: string | null | undefined;
68
+ devCommand?: string | null | undefined;
69
+ rootDirectory?: string | null | undefined;
70
+ }>>;
71
+ envVars: z.ZodOptional<z.ZodArray<z.ZodObject<{
72
+ key: z.ZodString;
73
+ value: z.ZodString;
74
+ }, "strip", z.ZodTypeAny, {
75
+ value: string;
76
+ key: string;
77
+ }, {
78
+ value: string;
79
+ key: string;
80
+ }>, "many">>;
81
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
82
+ }, "strip", z.ZodTypeAny, {
83
+ projectSettings?: {
84
+ buildCommand?: string | null | undefined;
85
+ outputDirectory?: string | null | undefined;
86
+ installCommand?: string | null | undefined;
87
+ devCommand?: string | null | undefined;
88
+ rootDirectory?: string | null | undefined;
89
+ } | undefined;
90
+ envVars?: {
91
+ value: string;
92
+ key: string;
93
+ }[] | undefined;
94
+ meta?: Record<string, string> | undefined;
95
+ }, {
96
+ projectSettings?: {
97
+ buildCommand?: string | null | undefined;
98
+ outputDirectory?: string | null | undefined;
99
+ installCommand?: string | null | undefined;
100
+ devCommand?: string | null | undefined;
101
+ rootDirectory?: string | null | undefined;
102
+ } | undefined;
103
+ envVars?: {
104
+ value: string;
105
+ key: string;
106
+ }[] | undefined;
107
+ meta?: Record<string, string> | undefined;
108
+ }>;
109
+ /**
110
+ * Response from starting a deployment
111
+ */
112
+ export declare const startDeploymentResponseSchema: z.ZodObject<{
113
+ id: z.ZodString;
114
+ providerDeploymentId: z.ZodNullable<z.ZodString>;
115
+ provider: z.ZodString;
116
+ status: z.ZodEnum<["WAITING", "UPLOADING", "QUEUED", "BUILDING", "READY", "ERROR", "CANCELED"]>;
117
+ url: z.ZodNullable<z.ZodString>;
118
+ metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
119
+ createdAt: z.ZodString;
120
+ updatedAt: z.ZodString;
121
+ }, "strip", z.ZodTypeAny, {
122
+ status: "WAITING" | "UPLOADING" | "QUEUED" | "BUILDING" | "READY" | "ERROR" | "CANCELED";
123
+ provider: string;
124
+ id: string;
125
+ createdAt: string;
126
+ url: string | null;
127
+ metadata: Record<string, unknown> | null;
128
+ updatedAt: string;
129
+ providerDeploymentId: string | null;
130
+ }, {
131
+ status: "WAITING" | "UPLOADING" | "QUEUED" | "BUILDING" | "READY" | "ERROR" | "CANCELED";
132
+ provider: string;
133
+ id: string;
134
+ createdAt: string;
135
+ url: string | null;
136
+ metadata: Record<string, unknown> | null;
137
+ updatedAt: string;
138
+ providerDeploymentId: string | null;
139
+ }>;
140
+ export declare const listDeploymentsResponseSchema: z.ZodObject<{
141
+ data: z.ZodArray<z.ZodObject<{
142
+ id: z.ZodString;
143
+ providerDeploymentId: z.ZodNullable<z.ZodString>;
144
+ provider: z.ZodString;
145
+ status: z.ZodEnum<["WAITING", "UPLOADING", "QUEUED", "BUILDING", "READY", "ERROR", "CANCELED"]>;
146
+ url: z.ZodNullable<z.ZodString>;
147
+ metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
148
+ createdAt: z.ZodString;
149
+ updatedAt: z.ZodString;
150
+ }, "strip", z.ZodTypeAny, {
151
+ status: "WAITING" | "UPLOADING" | "QUEUED" | "BUILDING" | "READY" | "ERROR" | "CANCELED";
152
+ provider: string;
153
+ id: string;
154
+ createdAt: string;
155
+ url: string | null;
156
+ metadata: Record<string, unknown> | null;
157
+ updatedAt: string;
158
+ providerDeploymentId: string | null;
159
+ }, {
160
+ status: "WAITING" | "UPLOADING" | "QUEUED" | "BUILDING" | "READY" | "ERROR" | "CANCELED";
161
+ provider: string;
162
+ id: string;
163
+ createdAt: string;
164
+ url: string | null;
165
+ metadata: Record<string, unknown> | null;
166
+ updatedAt: string;
167
+ providerDeploymentId: string | null;
168
+ }>, "many">;
169
+ pagination: z.ZodObject<{
170
+ limit: z.ZodNumber;
171
+ offset: z.ZodNumber;
172
+ total: z.ZodNumber;
173
+ }, "strip", z.ZodTypeAny, {
174
+ total: number;
175
+ limit: number;
176
+ offset: number;
177
+ }, {
178
+ total: number;
179
+ limit: number;
180
+ offset: number;
181
+ }>;
182
+ }, "strip", z.ZodTypeAny, {
183
+ data: {
184
+ status: "WAITING" | "UPLOADING" | "QUEUED" | "BUILDING" | "READY" | "ERROR" | "CANCELED";
185
+ provider: string;
186
+ id: string;
187
+ createdAt: string;
188
+ url: string | null;
189
+ metadata: Record<string, unknown> | null;
190
+ updatedAt: string;
191
+ providerDeploymentId: string | null;
192
+ }[];
193
+ pagination: {
194
+ total: number;
195
+ limit: number;
196
+ offset: number;
197
+ };
198
+ }, {
199
+ data: {
200
+ status: "WAITING" | "UPLOADING" | "QUEUED" | "BUILDING" | "READY" | "ERROR" | "CANCELED";
201
+ provider: string;
202
+ id: string;
203
+ createdAt: string;
204
+ url: string | null;
205
+ metadata: Record<string, unknown> | null;
206
+ updatedAt: string;
207
+ providerDeploymentId: string | null;
208
+ }[];
209
+ pagination: {
210
+ total: number;
211
+ limit: number;
212
+ offset: number;
213
+ };
214
+ }>;
215
+ /**
216
+ * Environment variable schema for list response (without value for security)
217
+ */
218
+ export declare const deploymentEnvVarSchema: z.ZodObject<{
219
+ id: z.ZodString;
220
+ key: z.ZodString;
221
+ type: z.ZodEnum<["plain", "encrypted", "secret", "sensitive", "system"]>;
222
+ updatedAt: z.ZodOptional<z.ZodNumber>;
223
+ }, "strip", z.ZodTypeAny, {
224
+ type: "system" | "plain" | "encrypted" | "secret" | "sensitive";
225
+ id: string;
226
+ key: string;
227
+ updatedAt?: number | undefined;
228
+ }, {
229
+ type: "system" | "plain" | "encrypted" | "secret" | "sensitive";
230
+ id: string;
231
+ key: string;
232
+ updatedAt?: number | undefined;
233
+ }>;
234
+ /**
235
+ * Environment variable schema with decrypted value (for single env var fetch)
236
+ */
237
+ export declare const deploymentEnvVarWithValueSchema: z.ZodObject<{
238
+ id: z.ZodString;
239
+ key: z.ZodString;
240
+ value: z.ZodString;
241
+ type: z.ZodEnum<["plain", "encrypted", "secret", "sensitive", "system"]>;
242
+ updatedAt: z.ZodOptional<z.ZodNumber>;
243
+ }, "strip", z.ZodTypeAny, {
244
+ value: string;
245
+ type: "system" | "plain" | "encrypted" | "secret" | "sensitive";
246
+ id: string;
247
+ key: string;
248
+ updatedAt?: number | undefined;
249
+ }, {
250
+ value: string;
251
+ type: "system" | "plain" | "encrypted" | "secret" | "sensitive";
252
+ id: string;
253
+ key: string;
254
+ updatedAt?: number | undefined;
255
+ }>;
256
+ /**
257
+ * Response from listing environment variables
258
+ */
259
+ export declare const listEnvVarsResponseSchema: z.ZodObject<{
260
+ envVars: z.ZodArray<z.ZodObject<{
261
+ id: z.ZodString;
262
+ key: z.ZodString;
263
+ type: z.ZodEnum<["plain", "encrypted", "secret", "sensitive", "system"]>;
264
+ updatedAt: z.ZodOptional<z.ZodNumber>;
265
+ }, "strip", z.ZodTypeAny, {
266
+ type: "system" | "plain" | "encrypted" | "secret" | "sensitive";
267
+ id: string;
268
+ key: string;
269
+ updatedAt?: number | undefined;
270
+ }, {
271
+ type: "system" | "plain" | "encrypted" | "secret" | "sensitive";
272
+ id: string;
273
+ key: string;
274
+ updatedAt?: number | undefined;
275
+ }>, "many">;
276
+ }, "strip", z.ZodTypeAny, {
277
+ envVars: {
278
+ type: "system" | "plain" | "encrypted" | "secret" | "sensitive";
279
+ id: string;
280
+ key: string;
281
+ updatedAt?: number | undefined;
282
+ }[];
283
+ }, {
284
+ envVars: {
285
+ type: "system" | "plain" | "encrypted" | "secret" | "sensitive";
286
+ id: string;
287
+ key: string;
288
+ updatedAt?: number | undefined;
289
+ }[];
290
+ }>;
291
+ /**
292
+ * Response from getting a single environment variable with value
293
+ */
294
+ export declare const getEnvVarResponseSchema: z.ZodObject<{
295
+ envVar: z.ZodObject<{
296
+ id: z.ZodString;
297
+ key: z.ZodString;
298
+ value: z.ZodString;
299
+ type: z.ZodEnum<["plain", "encrypted", "secret", "sensitive", "system"]>;
300
+ updatedAt: z.ZodOptional<z.ZodNumber>;
301
+ }, "strip", z.ZodTypeAny, {
302
+ value: string;
303
+ type: "system" | "plain" | "encrypted" | "secret" | "sensitive";
304
+ id: string;
305
+ key: string;
306
+ updatedAt?: number | undefined;
307
+ }, {
308
+ value: string;
309
+ type: "system" | "plain" | "encrypted" | "secret" | "sensitive";
310
+ id: string;
311
+ key: string;
312
+ updatedAt?: number | undefined;
313
+ }>;
314
+ }, "strip", z.ZodTypeAny, {
315
+ envVar: {
316
+ value: string;
317
+ type: "system" | "plain" | "encrypted" | "secret" | "sensitive";
318
+ id: string;
319
+ key: string;
320
+ updatedAt?: number | undefined;
321
+ };
322
+ }, {
323
+ envVar: {
324
+ value: string;
325
+ type: "system" | "plain" | "encrypted" | "secret" | "sensitive";
326
+ id: string;
327
+ key: string;
328
+ updatedAt?: number | undefined;
329
+ };
330
+ }>;
331
+ /**
332
+ * Request to create or update an environment variable
333
+ */
334
+ export declare const upsertEnvVarRequestSchema: z.ZodObject<{
335
+ key: z.ZodString;
336
+ value: z.ZodString;
337
+ }, "strip", z.ZodTypeAny, {
338
+ value: string;
339
+ key: string;
340
+ }, {
341
+ value: string;
342
+ key: string;
343
+ }>;
344
+ /**
345
+ * Request to create or update multiple environment variables
346
+ */
347
+ export declare const upsertEnvVarsRequestSchema: z.ZodEffects<z.ZodObject<{
348
+ envVars: z.ZodArray<z.ZodObject<{
349
+ key: z.ZodString;
350
+ value: z.ZodString;
351
+ }, "strip", z.ZodTypeAny, {
352
+ value: string;
353
+ key: string;
354
+ }, {
355
+ value: string;
356
+ key: string;
357
+ }>, "many">;
358
+ }, "strip", z.ZodTypeAny, {
359
+ envVars: {
360
+ value: string;
361
+ key: string;
362
+ }[];
363
+ }, {
364
+ envVars: {
365
+ value: string;
366
+ key: string;
367
+ }[];
368
+ }>, {
369
+ envVars: {
370
+ value: string;
371
+ key: string;
372
+ }[];
373
+ }, {
374
+ envVars: {
375
+ value: string;
376
+ key: string;
377
+ }[];
378
+ }>;
379
+ /**
380
+ * Response from upserting an environment variable
381
+ */
382
+ export declare const upsertEnvVarResponseSchema: z.ZodObject<{
383
+ success: z.ZodLiteral<true>;
384
+ message: z.ZodString;
385
+ }, "strip", z.ZodTypeAny, {
386
+ message: string;
387
+ success: true;
388
+ }, {
389
+ message: string;
390
+ success: true;
391
+ }>;
392
+ /**
393
+ * Response from upserting multiple environment variables
394
+ */
395
+ export declare const upsertEnvVarsResponseSchema: z.ZodObject<{
396
+ success: z.ZodLiteral<true>;
397
+ message: z.ZodString;
398
+ count: z.ZodNumber;
399
+ }, "strip", z.ZodTypeAny, {
400
+ message: string;
401
+ count: number;
402
+ success: true;
403
+ }, {
404
+ message: string;
405
+ count: number;
406
+ success: true;
407
+ }>;
408
+ /**
409
+ * Response from deleting an environment variable
410
+ */
411
+ export declare const deleteEnvVarResponseSchema: z.ZodObject<{
412
+ success: z.ZodLiteral<true>;
413
+ message: z.ZodString;
414
+ }, "strip", z.ZodTypeAny, {
415
+ message: string;
416
+ success: true;
417
+ }, {
418
+ message: string;
419
+ success: true;
420
+ }>;
421
+ /**
422
+ * Request to update the custom slug
423
+ */
424
+ export declare const updateSlugRequestSchema: z.ZodObject<{
425
+ slug: z.ZodNullable<z.ZodString>;
426
+ }, "strip", z.ZodTypeAny, {
427
+ slug: string | null;
428
+ }, {
429
+ slug: string | null;
430
+ }>;
431
+ /**
432
+ * Response from updating the custom slug
433
+ */
434
+ export declare const updateSlugResponseSchema: z.ZodObject<{
435
+ success: z.ZodBoolean;
436
+ slug: z.ZodNullable<z.ZodString>;
437
+ domain: z.ZodNullable<z.ZodString>;
438
+ }, "strip", z.ZodTypeAny, {
439
+ success: boolean;
440
+ slug: string | null;
441
+ domain: string | null;
442
+ }, {
443
+ success: boolean;
444
+ slug: string | null;
445
+ domain: string | null;
446
+ }>;
447
+ /**
448
+ * Response from getting deployment metadata
449
+ */
450
+ export declare const deploymentMetadataResponseSchema: z.ZodObject<{
451
+ currentDeploymentId: z.ZodNullable<z.ZodString>;
452
+ defaultDomainUrl: z.ZodNullable<z.ZodString>;
453
+ customDomainUrl: z.ZodNullable<z.ZodString>;
454
+ }, "strip", z.ZodTypeAny, {
455
+ currentDeploymentId: string | null;
456
+ defaultDomainUrl: string | null;
457
+ customDomainUrl: string | null;
458
+ }, {
459
+ currentDeploymentId: string | null;
460
+ defaultDomainUrl: string | null;
461
+ customDomainUrl: string | null;
462
+ }>;
463
+ export type ProjectSettings = z.infer<typeof projectSettingsSchema>;
464
+ export type EnvVar = z.infer<typeof envVarSchema>;
465
+ export type CreateDeploymentResponse = z.infer<typeof createDeploymentResponseSchema>;
466
+ export type StartDeploymentRequest = z.infer<typeof startDeploymentRequestSchema>;
467
+ export type StartDeploymentResponse = z.infer<typeof startDeploymentResponseSchema>;
468
+ export type ListDeploymentsResponse = z.infer<typeof listDeploymentsResponseSchema>;
469
+ export type DeploymentEnvVar = z.infer<typeof deploymentEnvVarSchema>;
470
+ export type DeploymentEnvVarWithValue = z.infer<typeof deploymentEnvVarWithValueSchema>;
471
+ export type ListEnvVarsResponse = z.infer<typeof listEnvVarsResponseSchema>;
472
+ export type GetEnvVarResponse = z.infer<typeof getEnvVarResponseSchema>;
473
+ export type UpsertEnvVarRequest = z.infer<typeof upsertEnvVarRequestSchema>;
474
+ export type UpsertEnvVarResponse = z.infer<typeof upsertEnvVarResponseSchema>;
475
+ export type UpsertEnvVarsRequest = z.infer<typeof upsertEnvVarsRequestSchema>;
476
+ export type UpsertEnvVarsResponse = z.infer<typeof upsertEnvVarsResponseSchema>;
477
+ export type DeleteEnvVarResponse = z.infer<typeof deleteEnvVarResponseSchema>;
478
+ export type UpdateSlugRequest = z.infer<typeof updateSlugRequestSchema>;
479
+ export type UpdateSlugResponse = z.infer<typeof updateSlugResponseSchema>;
480
+ export type DeploymentMetadataResponse = z.infer<typeof deploymentMetadataResponseSchema>;
481
+ /**
482
+ * Verification record returned by Vercel for a domain
483
+ */
484
+ export declare const domainVerificationRecordSchema: z.ZodObject<{
485
+ type: z.ZodString;
486
+ domain: z.ZodString;
487
+ value: z.ZodString;
488
+ }, "strip", z.ZodTypeAny, {
489
+ value: string;
490
+ type: string;
491
+ domain: string;
492
+ }, {
493
+ value: string;
494
+ type: string;
495
+ domain: string;
496
+ }>;
497
+ /**
498
+ * A custom domain entry returned by Vercel project domain endpoints
499
+ */
500
+ export declare const customDomainSchema: z.ZodObject<{
501
+ domain: z.ZodString;
502
+ apexDomain: z.ZodString;
503
+ verified: z.ZodBoolean;
504
+ misconfigured: z.ZodBoolean;
505
+ verification: z.ZodArray<z.ZodObject<{
506
+ type: z.ZodString;
507
+ domain: z.ZodString;
508
+ value: z.ZodString;
509
+ }, "strip", z.ZodTypeAny, {
510
+ value: string;
511
+ type: string;
512
+ domain: string;
513
+ }, {
514
+ value: string;
515
+ type: string;
516
+ domain: string;
517
+ }>, "many">;
518
+ cnameTarget: z.ZodNullable<z.ZodString>;
519
+ aRecordValue: z.ZodNullable<z.ZodString>;
520
+ }, "strip", z.ZodTypeAny, {
521
+ domain: string;
522
+ apexDomain: string;
523
+ verified: boolean;
524
+ misconfigured: boolean;
525
+ verification: {
526
+ value: string;
527
+ type: string;
528
+ domain: string;
529
+ }[];
530
+ cnameTarget: string | null;
531
+ aRecordValue: string | null;
532
+ }, {
533
+ domain: string;
534
+ apexDomain: string;
535
+ verified: boolean;
536
+ misconfigured: boolean;
537
+ verification: {
538
+ value: string;
539
+ type: string;
540
+ domain: string;
541
+ }[];
542
+ cnameTarget: string | null;
543
+ aRecordValue: string | null;
544
+ }>;
545
+ /**
546
+ * Request to add a custom domain
547
+ */
548
+ export declare const addCustomDomainRequestSchema: z.ZodObject<{
549
+ domain: z.ZodEffects<z.ZodString, string, string>;
550
+ }, "strip", z.ZodTypeAny, {
551
+ domain: string;
552
+ }, {
553
+ domain: string;
554
+ }>;
555
+ /**
556
+ * Response from adding a custom domain
557
+ */
558
+ export declare const addCustomDomainResponseSchema: z.ZodObject<{
559
+ domain: z.ZodString;
560
+ apexDomain: z.ZodString;
561
+ verified: z.ZodBoolean;
562
+ misconfigured: z.ZodBoolean;
563
+ verification: z.ZodArray<z.ZodObject<{
564
+ type: z.ZodString;
565
+ domain: z.ZodString;
566
+ value: z.ZodString;
567
+ }, "strip", z.ZodTypeAny, {
568
+ value: string;
569
+ type: string;
570
+ domain: string;
571
+ }, {
572
+ value: string;
573
+ type: string;
574
+ domain: string;
575
+ }>, "many">;
576
+ cnameTarget: z.ZodNullable<z.ZodString>;
577
+ aRecordValue: z.ZodNullable<z.ZodString>;
578
+ }, "strip", z.ZodTypeAny, {
579
+ domain: string;
580
+ apexDomain: string;
581
+ verified: boolean;
582
+ misconfigured: boolean;
583
+ verification: {
584
+ value: string;
585
+ type: string;
586
+ domain: string;
587
+ }[];
588
+ cnameTarget: string | null;
589
+ aRecordValue: string | null;
590
+ }, {
591
+ domain: string;
592
+ apexDomain: string;
593
+ verified: boolean;
594
+ misconfigured: boolean;
595
+ verification: {
596
+ value: string;
597
+ type: string;
598
+ domain: string;
599
+ }[];
600
+ cnameTarget: string | null;
601
+ aRecordValue: string | null;
602
+ }>;
603
+ /**
604
+ * Response from listing custom domains
605
+ */
606
+ export declare const listCustomDomainsResponseSchema: z.ZodObject<{
607
+ domains: z.ZodArray<z.ZodObject<{
608
+ domain: z.ZodString;
609
+ apexDomain: z.ZodString;
610
+ verified: z.ZodBoolean;
611
+ misconfigured: z.ZodBoolean;
612
+ verification: z.ZodArray<z.ZodObject<{
613
+ type: z.ZodString;
614
+ domain: z.ZodString;
615
+ value: z.ZodString;
616
+ }, "strip", z.ZodTypeAny, {
617
+ value: string;
618
+ type: string;
619
+ domain: string;
620
+ }, {
621
+ value: string;
622
+ type: string;
623
+ domain: string;
624
+ }>, "many">;
625
+ cnameTarget: z.ZodNullable<z.ZodString>;
626
+ aRecordValue: z.ZodNullable<z.ZodString>;
627
+ }, "strip", z.ZodTypeAny, {
628
+ domain: string;
629
+ apexDomain: string;
630
+ verified: boolean;
631
+ misconfigured: boolean;
632
+ verification: {
633
+ value: string;
634
+ type: string;
635
+ domain: string;
636
+ }[];
637
+ cnameTarget: string | null;
638
+ aRecordValue: string | null;
639
+ }, {
640
+ domain: string;
641
+ apexDomain: string;
642
+ verified: boolean;
643
+ misconfigured: boolean;
644
+ verification: {
645
+ value: string;
646
+ type: string;
647
+ domain: string;
648
+ }[];
649
+ cnameTarget: string | null;
650
+ aRecordValue: string | null;
651
+ }>, "many">;
652
+ }, "strip", z.ZodTypeAny, {
653
+ domains: {
654
+ domain: string;
655
+ apexDomain: string;
656
+ verified: boolean;
657
+ misconfigured: boolean;
658
+ verification: {
659
+ value: string;
660
+ type: string;
661
+ domain: string;
662
+ }[];
663
+ cnameTarget: string | null;
664
+ aRecordValue: string | null;
665
+ }[];
666
+ }, {
667
+ domains: {
668
+ domain: string;
669
+ apexDomain: string;
670
+ verified: boolean;
671
+ misconfigured: boolean;
672
+ verification: {
673
+ value: string;
674
+ type: string;
675
+ domain: string;
676
+ }[];
677
+ cnameTarget: string | null;
678
+ aRecordValue: string | null;
679
+ }[];
680
+ }>;
681
+ /**
682
+ * Response from verifying a custom domain
683
+ */
684
+ export declare const verifyCustomDomainResponseSchema: z.ZodObject<{
685
+ domain: z.ZodString;
686
+ apexDomain: z.ZodString;
687
+ verified: z.ZodBoolean;
688
+ misconfigured: z.ZodBoolean;
689
+ verification: z.ZodArray<z.ZodObject<{
690
+ type: z.ZodString;
691
+ domain: z.ZodString;
692
+ value: z.ZodString;
693
+ }, "strip", z.ZodTypeAny, {
694
+ value: string;
695
+ type: string;
696
+ domain: string;
697
+ }, {
698
+ value: string;
699
+ type: string;
700
+ domain: string;
701
+ }>, "many">;
702
+ cnameTarget: z.ZodNullable<z.ZodString>;
703
+ aRecordValue: z.ZodNullable<z.ZodString>;
704
+ }, "strip", z.ZodTypeAny, {
705
+ domain: string;
706
+ apexDomain: string;
707
+ verified: boolean;
708
+ misconfigured: boolean;
709
+ verification: {
710
+ value: string;
711
+ type: string;
712
+ domain: string;
713
+ }[];
714
+ cnameTarget: string | null;
715
+ aRecordValue: string | null;
716
+ }, {
717
+ domain: string;
718
+ apexDomain: string;
719
+ verified: boolean;
720
+ misconfigured: boolean;
721
+ verification: {
722
+ value: string;
723
+ type: string;
724
+ domain: string;
725
+ }[];
726
+ cnameTarget: string | null;
727
+ aRecordValue: string | null;
728
+ }>;
729
+ export type DomainVerificationRecord = z.infer<typeof domainVerificationRecordSchema>;
730
+ export type CustomDomain = z.infer<typeof customDomainSchema>;
731
+ export type AddCustomDomainRequest = z.infer<typeof addCustomDomainRequestSchema>;
732
+ export type AddCustomDomainResponse = z.infer<typeof addCustomDomainResponseSchema>;
733
+ export type ListCustomDomainsResponse = z.infer<typeof listCustomDomainsResponseSchema>;
734
+ export type VerifyCustomDomainResponse = z.infer<typeof verifyCustomDomainResponseSchema>;
735
+ //# sourceMappingURL=deployments-api.schema.d.ts.map