@alpic-ai/api 1.109.0 → 1.111.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -318,7 +318,7 @@ declare const contract: {
318
318
  environmentVariableId: z.ZodString;
319
319
  key: z.ZodString;
320
320
  value: z.ZodOptional<z.ZodString>;
321
- isSecret: z.ZodDefault<z.ZodBoolean>;
321
+ isSecret: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
322
322
  }, z.core.$strip>, z.ZodObject<{
323
323
  success: z.ZodLiteral<true>;
324
324
  }, z.core.$strip>, _$_orpc_contract0.MergedErrorMap<Record<never, never>, {
@@ -904,6 +904,11 @@ declare const environmentVariablesSchema: z.ZodArray<z.ZodObject<{
904
904
  value: z.ZodString;
905
905
  isSecret: z.ZodDefault<z.ZodBoolean>;
906
906
  }, z.core.$strip>>;
907
+ declare const updateEnvironmentVariableSchema: z.ZodObject<{
908
+ key: z.ZodString;
909
+ value: z.ZodOptional<z.ZodString>;
910
+ isSecret: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
911
+ }, z.core.$strip>;
907
912
  declare const buildSettingsSchema: z.ZodObject<{
908
913
  installCommand: z.ZodOptional<z.ZodString>;
909
914
  buildCommand: z.ZodOptional<z.ZodString>;
@@ -1102,4 +1107,4 @@ declare const serverFieldsSchema: z.ZodObject<{
1102
1107
  }, z.core.$strip>>>;
1103
1108
  }, z.core.$strip>;
1104
1109
  //#endregion
1105
- export { ApiContext, AuditReport, CheckCategory, CheckDetail, CheckResult, CheckScope, CheckSeverity, Platform, RouterInput, RouterOutput, Runtime, Transport, auditReportSchema, auditStatusSchema, buildSettingsSchema, checkCategorySchema, checkDetailSchema, checkResultSchema, contract, createEnvironmentContractV1, deploymentStatusSchema, environmentVariableSchema, environmentVariablesSchema, platformSchema, playgroundExamplePromptSchema, playgroundHeaderSchema, runtimeSchema, serverFieldsSchema, transportSchema };
1110
+ export { ApiContext, AuditReport, CheckCategory, CheckDetail, CheckResult, CheckScope, CheckSeverity, Platform, RouterInput, RouterOutput, Runtime, Transport, auditReportSchema, auditStatusSchema, buildSettingsSchema, checkCategorySchema, checkDetailSchema, checkResultSchema, contract, createEnvironmentContractV1, deploymentStatusSchema, environmentVariableSchema, environmentVariablesSchema, platformSchema, playgroundExamplePromptSchema, playgroundHeaderSchema, runtimeSchema, serverFieldsSchema, transportSchema, updateEnvironmentVariableSchema };
package/dist/index.mjs CHANGED
@@ -43,6 +43,10 @@ const environmentVariableSchema = z.object({
43
43
  isSecret: z.boolean().default(false)
44
44
  });
45
45
  const environmentVariablesSchema = z.array(environmentVariableSchema);
46
+ const updateEnvironmentVariableSchema = environmentVariableSchema.partial({
47
+ value: true,
48
+ isSecret: true
49
+ });
46
50
  const buildSettingsSchema = z.object({
47
51
  installCommand: z.string().optional(),
48
52
  buildCommand: z.string().optional(),
@@ -371,7 +375,7 @@ const updateEnvironmentVariableContractV1 = oc.route({
371
375
  environmentVariableId: z.string().describe("The ID of the environment variable"),
372
376
  key: environmentVariableSchema.shape.key,
373
377
  value: environmentVariableSchema.shape.value.optional(),
374
- isSecret: environmentVariableSchema.shape.isSecret
378
+ isSecret: environmentVariableSchema.shape.isSecret.optional()
375
379
  })).output(z.object({ success: z.literal(true) }));
376
380
  const deleteEnvironmentVariableContractV1 = oc.route({
377
381
  path: "/v1/environment-variables/{environmentVariableId}",
@@ -715,4 +719,4 @@ const contract = {
715
719
  }
716
720
  };
717
721
  //#endregion
718
- export { auditReportSchema, auditStatusSchema, buildSettingsSchema, checkCategorySchema, checkDetailSchema, checkResultSchema, contract, createEnvironmentContractV1, deploymentStatusSchema, environmentVariableSchema, environmentVariablesSchema, platformSchema, playgroundExamplePromptSchema, playgroundHeaderSchema, runtimeSchema, serverFieldsSchema, transportSchema };
722
+ export { auditReportSchema, auditStatusSchema, buildSettingsSchema, checkCategorySchema, checkDetailSchema, checkResultSchema, contract, createEnvironmentContractV1, deploymentStatusSchema, environmentVariableSchema, environmentVariablesSchema, platformSchema, playgroundExamplePromptSchema, playgroundHeaderSchema, runtimeSchema, serverFieldsSchema, transportSchema, updateEnvironmentVariableSchema };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alpic-ai/api",
3
- "version": "1.109.0",
3
+ "version": "1.111.0",
4
4
  "description": "Contract for the Alpic API",
5
5
  "type": "module",
6
6
  "main": "./dist/index.mjs",
@@ -27,7 +27,7 @@
27
27
  "shx": "^0.4.0",
28
28
  "tsdown": "^0.21.7",
29
29
  "typescript": "^6.0.2",
30
- "vitest": "^4.1.2"
30
+ "vitest": "^4.1.3"
31
31
  },
32
32
  "scripts": {
33
33
  "build": "shx rm -rf dist && tsdown",