terse-types 0.4.4 → 0.4.6
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/ApiRouteBuilder.d.ts +1 -0
- package/dist/ApiRoutes.json +1 -0
- package/dist/types.d.ts +9 -0
- package/dist/types.js +10 -2
- package/package.json +1 -1
package/dist/ApiRoutes.json
CHANGED
|
@@ -154,6 +154,7 @@
|
|
|
154
154
|
"LIST": "/projects",
|
|
155
155
|
"BY_ID": "/projects/:id",
|
|
156
156
|
"DEPLOYS": "/projects/:id/deploys",
|
|
157
|
+
"ENABLE_SELF_HOSTED": "/projects/:id/enable-self-hosted",
|
|
157
158
|
"ROTATE_SIGNING_SECRET": "/projects/:id/rotate-signing-secret",
|
|
158
159
|
"ROTATE_API_KEY": "/projects/:id/rotate-api-key"
|
|
159
160
|
},
|
package/dist/types.d.ts
CHANGED
|
@@ -14096,11 +14096,14 @@ export declare const sdkInputResponsePayloadSchema: z.ZodObject<{
|
|
|
14096
14096
|
export type SdkInputResponsePayload = z.infer<typeof sdkInputResponsePayloadSchema>;
|
|
14097
14097
|
export declare const sdkCreateProjectRequestBodySchema: z.ZodObject<{
|
|
14098
14098
|
name: z.ZodString;
|
|
14099
|
+
selfHosted: z.ZodOptional<z.ZodBoolean>;
|
|
14099
14100
|
}, z.core.$strip>;
|
|
14100
14101
|
export type SdkCreateProjectRequestBody = z.infer<typeof sdkCreateProjectRequestBodySchema>;
|
|
14101
14102
|
export declare const sdkCreateProjectResponseBodySchema: z.ZodObject<{
|
|
14102
14103
|
projectId: z.ZodString;
|
|
14103
14104
|
name: z.ZodString;
|
|
14105
|
+
signingSecret: z.ZodOptional<z.ZodString>;
|
|
14106
|
+
projectApiKey: z.ZodOptional<z.ZodString>;
|
|
14104
14107
|
}, z.core.$strip>;
|
|
14105
14108
|
export type SdkCreateProjectResponseBody = z.infer<typeof sdkCreateProjectResponseBodySchema>;
|
|
14106
14109
|
export declare const projectListItemSchema: z.ZodObject<{
|
|
@@ -14143,6 +14146,12 @@ export declare const projectRotateApiKeyResponseSchema: z.ZodObject<{
|
|
|
14143
14146
|
projectApiKey: z.ZodString;
|
|
14144
14147
|
}, z.core.$strip>;
|
|
14145
14148
|
export type ProjectRotateApiKeyResponse = z.infer<typeof projectRotateApiKeyResponseSchema>;
|
|
14149
|
+
/** Marks a project self-hosted and replaces both data plane credentials, returning them exactly once. */
|
|
14150
|
+
export declare const projectEnableSelfHostedResponseSchema: z.ZodObject<{
|
|
14151
|
+
signingSecret: z.ZodString;
|
|
14152
|
+
projectApiKey: z.ZodString;
|
|
14153
|
+
}, z.core.$strip>;
|
|
14154
|
+
export type ProjectEnableSelfHostedResponse = z.infer<typeof projectEnableSelfHostedResponseSchema>;
|
|
14146
14155
|
export declare const SECRET_NAME_PATTERN: RegExp;
|
|
14147
14156
|
export declare const MAX_SECRET_VALUE_BYTES: number;
|
|
14148
14157
|
export declare function validateSecretName(name: string): string | null;
|
package/dist/types.js
CHANGED
|
@@ -584,11 +584,14 @@ export const sdkInputResponsePayloadSchema = z.object({
|
|
|
584
584
|
})
|
|
585
585
|
});
|
|
586
586
|
export const sdkCreateProjectRequestBodySchema = z.object({
|
|
587
|
-
name: z.string().min(1)
|
|
587
|
+
name: z.string().min(1),
|
|
588
|
+
selfHosted: z.boolean().optional()
|
|
588
589
|
});
|
|
589
590
|
export const sdkCreateProjectResponseBodySchema = z.object({
|
|
590
591
|
projectId: z.string(),
|
|
591
|
-
name: z.string()
|
|
592
|
+
name: z.string(),
|
|
593
|
+
signingSecret: z.string().optional(),
|
|
594
|
+
projectApiKey: z.string().optional()
|
|
592
595
|
});
|
|
593
596
|
export const projectListItemSchema = z.object({
|
|
594
597
|
id: z.string(),
|
|
@@ -622,6 +625,11 @@ export const projectRotateSigningSecretResponseSchema = z.object({
|
|
|
622
625
|
export const projectRotateApiKeyResponseSchema = z.object({
|
|
623
626
|
projectApiKey: z.string()
|
|
624
627
|
});
|
|
628
|
+
/** Marks a project self-hosted and replaces both data plane credentials, returning them exactly once. */
|
|
629
|
+
export const projectEnableSelfHostedResponseSchema = z.object({
|
|
630
|
+
signingSecret: z.string(),
|
|
631
|
+
projectApiKey: z.string()
|
|
632
|
+
});
|
|
625
633
|
export const SECRET_NAME_PATTERN = /^[A-Z][A-Z0-9_]{0,63}$/;
|
|
626
634
|
export const MAX_SECRET_VALUE_BYTES = 32 * 1024;
|
|
627
635
|
export function validateSecretName(name) {
|