@salsita-ai/contracts 0.50.0-develop.3cc61485a6 → 0.50.0-develop.3f0c686dfc

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 (141) hide show
  1. package/README.md +14 -3
  2. package/dist/api/cli-access.d.ts +60 -0
  3. package/dist/api/cli-access.js +1 -0
  4. package/dist/api/cli-login-approval.d.ts +15 -0
  5. package/dist/api/cli-login-approval.js +1 -0
  6. package/dist/api/cli-sign-in.d.ts +23 -0
  7. package/dist/api/cli-sign-in.js +1 -0
  8. package/dist/api/index.d.ts +6 -0
  9. package/dist/api/index.js +1 -1
  10. package/dist/api/session-token.d.ts +1 -1
  11. package/dist/api/studio-session.d.ts +104 -0
  12. package/dist/api/studio-session.js +1 -0
  13. package/dist/api/workspace-creation-options.d.ts +19 -0
  14. package/dist/api/workspace-creation-options.js +1 -0
  15. package/dist/api/workspace-creation.d.ts +19 -0
  16. package/dist/api/workspace-creation.js +1 -0
  17. package/dist/assistant/ban-tool.d.ts +17 -0
  18. package/dist/assistant/ban-tool.js +1 -0
  19. package/dist/assistant/deployment-assistant.d.ts +113 -0
  20. package/dist/assistant/deployment-assistant.js +1 -1
  21. package/dist/assistant/graphql-tools.d.ts +18 -3
  22. package/dist/assistant/graphql-tools.js +1 -1
  23. package/dist/assistant/image-reference.d.ts +10 -0
  24. package/dist/assistant/image-reference.js +1 -0
  25. package/dist/assistant/index.d.ts +9 -4
  26. package/dist/assistant/index.js +1 -1
  27. package/dist/assistant/message-metadata.d.ts +138 -1
  28. package/dist/assistant/message-metadata.js +1 -1
  29. package/dist/assistant/speech-text.d.ts +15 -0
  30. package/dist/assistant/speech-text.js +1 -0
  31. package/dist/assistant/transcript-event.d.ts +25 -0
  32. package/dist/assistant/transcript-event.js +1 -0
  33. package/dist/assistant/voice-recording.d.ts +13 -0
  34. package/dist/assistant/voice-recording.js +1 -0
  35. package/dist/chat/api.d.ts +0 -41
  36. package/dist/chat/api.js +1 -1
  37. package/dist/chat/completions/types.d.ts +0 -3
  38. package/dist/chat/completions/types.js +1 -1
  39. package/dist/chat/functions/process.d.ts +1 -2
  40. package/dist/chat/functions/process.js +1 -1
  41. package/dist/chat/index.d.ts +3 -6
  42. package/dist/chat/index.js +1 -1
  43. package/dist/domain/account-status.d.ts +6 -0
  44. package/dist/domain/account-status.js +1 -0
  45. package/dist/domain/deployments/activations/environment-activation-kind.d.ts +11 -0
  46. package/dist/domain/deployments/activations/environment-activation-kind.js +1 -0
  47. package/dist/domain/deployments/activations/index.d.ts +2 -0
  48. package/dist/domain/deployments/activations/index.js +1 -0
  49. package/dist/domain/deployments/activations/production-rollback-state.d.ts +14 -0
  50. package/dist/domain/deployments/activations/production-rollback-state.js +1 -0
  51. package/dist/domain/deployments/api-tokens/index.d.ts +1 -0
  52. package/dist/domain/deployments/api-tokens/index.js +1 -0
  53. package/dist/domain/deployments/api-tokens/limits.d.ts +16 -0
  54. package/dist/domain/deployments/api-tokens/limits.js +1 -0
  55. package/dist/domain/deployments/assistant-limit-domain.d.ts +13 -0
  56. package/dist/domain/deployments/assistant-limit-domain.js +1 -0
  57. package/dist/domain/deployments/custom-domains/custom-domain.d.ts +40 -0
  58. package/dist/domain/deployments/custom-domains/custom-domain.js +1 -0
  59. package/dist/domain/deployments/custom-domains/index.d.ts +1 -0
  60. package/dist/domain/deployments/custom-domains/index.js +1 -0
  61. package/dist/domain/deployments/customer-domain.d.ts +2 -0
  62. package/dist/domain/deployments/deployment-build-domain.d.ts +18 -0
  63. package/dist/domain/deployments/deployment-domain.d.ts +2 -0
  64. package/dist/domain/deployments/environment-domain.d.ts +3 -0
  65. package/dist/domain/deployments/index.d.ts +9 -1
  66. package/dist/domain/deployments/index.js +1 -1
  67. package/dist/domain/deployments/oauth-connection-domain.d.ts +0 -7
  68. package/dist/domain/deployments/oauth-connection-domain.js +1 -1
  69. package/dist/domain/deployments/previews/index.d.ts +2 -0
  70. package/dist/domain/deployments/previews/index.js +1 -0
  71. package/dist/domain/deployments/previews/preview-limits.d.ts +5 -0
  72. package/dist/domain/deployments/previews/preview-limits.js +1 -0
  73. package/dist/domain/deployments/previews/preview-name.d.ts +23 -0
  74. package/dist/domain/deployments/previews/preview-name.js +1 -0
  75. package/dist/domain/deployments/project-domain.d.ts +6 -3
  76. package/dist/domain/deployments/sdk-builder-environment-domain.d.ts +20 -0
  77. package/dist/domain/deployments/sdk-builder-environment-domain.js +1 -0
  78. package/dist/domain/deployments/sdk-builder-project-domain.d.ts +22 -0
  79. package/dist/domain/deployments/sdk-builder-project-domain.js +1 -0
  80. package/dist/domain/deployments/sdk-builder-setup-domain.d.ts +5 -4
  81. package/dist/domain/deployments/teardowns/index.d.ts +1 -0
  82. package/dist/domain/deployments/teardowns/index.js +1 -0
  83. package/dist/domain/deployments/teardowns/teardown-status.d.ts +23 -0
  84. package/dist/domain/deployments/teardowns/teardown-status.js +1 -0
  85. package/dist/domain/index.d.ts +6 -0
  86. package/dist/domain/index.js +1 -1
  87. package/dist/domain/password-policy.d.ts +22 -0
  88. package/dist/domain/password-policy.js +1 -0
  89. package/dist/domain/product-configurations/analytics/configuration-chart-definition.d.ts +798 -0
  90. package/dist/domain/product-configurations/analytics/configuration-chart-definition.js +1 -0
  91. package/dist/domain/product-configurations/analytics/index.d.ts +1 -0
  92. package/dist/domain/product-configurations/analytics/index.js +1 -0
  93. package/dist/domain/product-configurations/configuration-insight-field.d.ts +54 -0
  94. package/dist/domain/product-configurations/configuration-insight-field.js +1 -0
  95. package/dist/domain/product-configurations/configuration-insight-status.d.ts +4 -0
  96. package/dist/domain/product-configurations/configuration-insight-status.js +1 -0
  97. package/dist/domain/product-configurations/configuration-insight-value.d.ts +114 -0
  98. package/dist/domain/product-configurations/configuration-insight-value.js +1 -0
  99. package/dist/domain/product-configurations/configurations-domain.d.ts +2 -7
  100. package/dist/domain/product-configurations/configurations-domain.js +1 -1
  101. package/dist/domain/product-configurations/index.d.ts +5 -1
  102. package/dist/domain/product-configurations/index.js +1 -1
  103. package/dist/domain/workspace-invitation-role.d.ts +7 -0
  104. package/dist/domain/workspace-invitation-role.js +1 -0
  105. package/dist/domain/workspace-invitation.d.ts +7 -0
  106. package/dist/domain/workspace-invitation.js +1 -0
  107. package/dist/domain/workspace-lifecycle/disabled-workspace-status.d.ts +7 -0
  108. package/dist/domain/workspace-lifecycle/disabled-workspace-status.js +1 -0
  109. package/dist/domain/workspace-lifecycle/index.d.ts +3 -0
  110. package/dist/domain/workspace-lifecycle/index.js +1 -0
  111. package/dist/domain/workspace-lifecycle/workspace-disabled-message.d.ts +6 -0
  112. package/dist/domain/workspace-lifecycle/workspace-disabled-message.js +1 -0
  113. package/dist/domain/workspace-lifecycle/workspace-status.d.ts +13 -0
  114. package/dist/domain/workspace-lifecycle/workspace-status.js +1 -0
  115. package/dist/domain/workspace-membership-status.d.ts +6 -0
  116. package/dist/domain/workspace-membership-status.js +1 -0
  117. package/dist/webhook/implementation/backend-data-response.d.ts +3 -0
  118. package/dist/webhook/implementation/backend-data-response.js +1 -0
  119. package/dist/webhook/implementation/configuration-insights-payload.d.ts +41 -0
  120. package/dist/webhook/implementation/configuration-insights-payload.js +1 -0
  121. package/dist/webhook/implementation/configuration-insights-response.d.ts +184 -0
  122. package/dist/webhook/implementation/configuration-insights-response.js +1 -0
  123. package/dist/webhook/implementation/index.d.ts +3 -2
  124. package/dist/webhook/implementation/index.js +1 -1
  125. package/dist/webhook/implementation/webhook-api-types.d.ts +161 -5
  126. package/dist/webhook/implementation/webhook-api-types.js +1 -1
  127. package/dist/webhook/implementation/webhook-routing.d.ts +3 -6
  128. package/dist/webhook/implementation/webhook-routing.js +1 -1
  129. package/dist/webhook/implementation/webhook-tunnel-types.d.ts +9 -0
  130. package/dist/webhook/implementation/webhook-tunnel-types.js +1 -1
  131. package/package.json +5 -6
  132. package/dist/assistant/browser-details-tool.d.ts +0 -16
  133. package/dist/assistant/browser-details-tool.js +0 -1
  134. package/dist/chat/completions/messages.d.ts +0 -3
  135. package/dist/chat/completions/messages.js +0 -1
  136. package/dist/chat/functions/augmentations.d.ts +0 -3
  137. package/dist/chat/functions/augmentations.js +0 -1
  138. package/dist/chat/functions/create.d.ts +0 -5
  139. package/dist/chat/functions/create.js +0 -1
  140. package/dist/webhook/implementation/webhook-client.d.ts +0 -86
  141. package/dist/webhook/implementation/webhook-client.js +0 -1
@@ -1 +1 @@
1
- export{EnvironmentId,EnvironmentName,EnvironmentSlug,EnvironmentType,FrontendUrl,DevelopmentKey,DEFAULT_SESSION_LIMIT,PRODUCTION_ENVIRONMENT_SLUG,SessionLimit,ServerKey,BaseDomain,ServiceName,FrontendBucketName,LambdaFunctionName,TfStateKeyPrefix,DdServiceName}from"./environment-domain.js";export{ConfigurationSchemaId,ConfigurationSchemaJsonSchema,ConfigurationSchemaVersion}from"./configuration-schema-domain.js";export{ApplicationType,AllowedOrigin,ChatConfiguration,DeploymentId,ResourceUrl,LambdaWebhookUrl,PrivateS3Bucket,PrivateDeploymentResourcesPath,PublicS3Bucket,PublicDeploymentResourcesPath,DeploymentApplicationId,OAuthProviderRegistration}from"./deployment-domain.js";export{DEFAULT_PROJECT_ALIAS,ProjectId,ProjectName,ProjectSlug,ProjectCustomDomain,ParamStorePath}from"./project-domain.js";export{OAuthProviderId,OAuthClientId,OAuthClientSecret,OAuthBaseUrl,OAuthProviderName,OAuthScopes}from"./oauth-provider-domain.js";export{DeploymentBuild,DeploymentBuildId,DeploymentBuildMode,DeploymentBuildSourceKey,DeploymentBuildStatus}from"./deployment-build-domain.js";export{SdkBuilderSetupState}from"./sdk-builder-setup-domain.js";export{API_TOKEN_NAME_MAX_LENGTH,ApiTokenId}from"./api-token-domain.js";export{CustomerId,CustomerName,CustomerClerkPublishableKey,CustomerClerkSecretKey,CustomerClerkJwtSecret,CustomerClerkOAuthBaseUrl,CustomerClerkOAuthClientId,CustomerClerkOAuthClientSecret,CustomerSlug,CustomerType,CustomerTypeSchema}from"./customer-domain.js";export{OAuthConnectionId,OAuthRefreshToken,OAuthGrantedScopes,SHAREPOINT_MISSING_TENANT_DOMAIN,SharePointTenantDomainInvalidError,SharePointTenantDomainSchema,OAUTH_STALE_CONNECTION_CODE,parseRequiredSharePointTenantDomain,parseSharePointTenantDomain}from"./oauth-connection-domain.js";export{BucketTimestamp,SessionCount}from"./session-domain.js";export{AiImageCount}from"./ai-image-domain.js";export{ImageRenderCount,ImageRenderLimit,DEFAULT_IMAGE_RENDER_LIMIT}from"./image-render-domain.js";
1
+ export{EnvironmentId,EnvironmentName,EnvironmentSlug,EnvironmentType,FrontendUrl,DevelopmentKey,DEFAULT_SESSION_LIMIT,PRODUCTION_ENVIRONMENT_SLUG,SessionLimit,ServerKey,BaseDomain,ServiceName,FrontendBucketName,LambdaFunctionName,TfStateKeyPrefix,DdServiceName}from"./environment-domain.js";export{ConfigurationSchemaId,ConfigurationSchemaJsonSchema,ConfigurationSchemaVersion}from"./configuration-schema-domain.js";export{ApplicationType,AllowedOrigin,ChatConfiguration,DeploymentId,ResourceUrl,LambdaWebhookUrl,PrivateS3Bucket,PrivateDeploymentResourcesPath,PublicS3Bucket,PublicDeploymentResourcesPath,DeploymentApplicationId,OAuthProviderRegistration}from"./deployment-domain.js";export{DEFAULT_PROJECT_ALIAS,ProjectId,ProjectName,ProjectSlug,ProjectCustomDomain,ParamStorePath}from"./project-domain.js";export{OAuthProviderId,OAuthClientId,OAuthClientSecret,OAuthBaseUrl,OAuthProviderName,OAuthScopes}from"./oauth-provider-domain.js";export{DeploymentBuild,DeploymentBuildId,DeploymentBuildMode,DeploymentBuildSourceKey,DeploymentBuildStatus}from"./deployment-build-domain.js";export{SdkBuilderSetupState}from"./sdk-builder-setup-domain.js";export{EnvironmentActivationKind,ProductionRollbackState}from"./activations/index.js";export{StaffDeletionMode,TeardownStatus}from"./teardowns/index.js";export{CustomDomainProblem,CustomDomainStatus,describeCustomDomainProblem,findCustomDomainProblem,normalizeCustomDomain}from"./custom-domains/index.js";export{MAX_PREVIEWS_PER_PROJECT,PREVIEW_NAME_MAX_LENGTH,PreviewNameProblem,describePreviewNameProblem,findPreviewNameProblem}from"./previews/index.js";export{SdkBuilderEnvironmentKind,SdkBuilderEnvironmentState}from"./sdk-builder-environment-domain.js";export{SDK_BUILDER_PROJECT_SLUG_MAX_LENGTH,SdkBuilderProjectState,getSdkBuilderProjectSlugProblem}from"./sdk-builder-project-domain.js";export{API_TOKEN_NAME_MAX_LENGTH,ApiTokenId}from"./api-token-domain.js";export{CustomerId,CustomerName,CustomerClerkPublishableKey,CustomerClerkSecretKey,CustomerClerkJwtSecret,CustomerClerkOAuthBaseUrl,CustomerClerkOAuthClientId,CustomerClerkOAuthClientSecret,CustomerSlug,CustomerType,CustomerTypeSchema}from"./customer-domain.js";export{OAuthConnectionId,OAuthRefreshToken,OAuthGrantedScopes,SHAREPOINT_MISSING_TENANT_DOMAIN,OAUTH_STALE_CONNECTION_CODE,parseSharePointTenantDomain}from"./oauth-connection-domain.js";export{BucketTimestamp,SessionCount}from"./session-domain.js";export{AiImageCount}from"./ai-image-domain.js";export{ImageRenderCount,ImageRenderLimit,DEFAULT_IMAGE_RENDER_LIMIT}from"./image-render-domain.js";export{AssistantMonthlyLimit,DEFAULT_ENVIRONMENT_ASSISTANT_MONTHLY_LIMIT,DEFAULT_CUSTOMER_ASSISTANT_MONTHLY_LIMIT}from"./assistant-limit-domain.js";export{ApiTokenLimits}from"./api-tokens/index.js";
@@ -1,4 +1,3 @@
1
- import { z } from 'zod';
2
1
  import { Branded } from '@salsita-ai/common/utils';
3
2
  import { type ProjectId } from './project-domain.js';
4
3
  export type OAuthConnectionId = Branded<'OAuthConnectionId', string>;
@@ -16,13 +15,7 @@ export type OAuthGrantedScopes = Branded<'OAuthGrantedScopes', readonly string[]
16
15
  export declare const OAuthGrantedScopes: (scopes: readonly string[]) => OAuthGrantedScopes;
17
16
  export declare const OAUTH_STALE_CONNECTION_CODE: 'STALE_CONNECTION';
18
17
  export declare const SHAREPOINT_MISSING_TENANT_DOMAIN: 'fill-in-tenant-domain.invalid';
19
- export declare class SharePointTenantDomainInvalidError extends Error {
20
- readonly code: 'tenant_domain_invalid';
21
- constructor(tenantDomain: string, reason: string);
22
- }
23
18
  export declare const parseSharePointTenantDomain: (rawDomain: string) => string | null;
24
- export declare const parseRequiredSharePointTenantDomain: (rawDomain: string) => string;
25
- export declare const SharePointTenantDomainSchema: z.ZodEffects<z.ZodString, string, string>;
26
19
  /**
27
20
  * Per-project SharePoint site binding, independent of the user OAuth
28
21
  * connection model used by Google — Microsoft uses app-only auth
@@ -1 +1 @@
1
- import{validate as n}from"uuid";import{z as o}from"zod";import{Branded as t}from"@salsita-ai/common/utils";export const OAuthConnectionId=o=>{if(!n(o))throw Error(`Invalid OAuthConnection id: ${o}. It must be a valid UUID.`);return t(o)};export const OAuthRefreshToken=n=>t(n);export const OAuthGrantedScopes=n=>t(n);export const OAUTH_STALE_CONNECTION_CODE="STALE_CONNECTION";export const SHAREPOINT_MISSING_TENANT_DOMAIN="fill-in-tenant-domain.invalid";let e=/^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]*[a-z0-9])?)+$/i;export class SharePointTenantDomainInvalidError extends Error{code="tenant_domain_invalid";constructor(n,o){super(`SharePoint tenant domain '${n}' is invalid. ${o}. Use a verified Azure AD tenant domain, e.g. 'contoso.onmicrosoft.com'.`),this.name="SharePointTenantDomainInvalidError"}}export const parseSharePointTenantDomain=n=>{let o=n.trim().toLowerCase();return o&&e.test(o)?o:null};export const parseRequiredSharePointTenantDomain=n=>{let o=parseSharePointTenantDomain(n);if(null===o)throw new SharePointTenantDomainInvalidError(n,"Expected a domain name");if("fill-in-tenant-domain.invalid"===o)throw new SharePointTenantDomainInvalidError(n,"This value is a migration placeholder");return o};export const SharePointTenantDomainSchema=o.string().transform((n,t)=>{try{return parseRequiredSharePointTenantDomain(n)}catch(n){if(n instanceof SharePointTenantDomainInvalidError)return t.addIssue({code:o.ZodIssueCode.custom,message:"Expected a verified Azure AD tenant domain, e.g. contoso.onmicrosoft.com."}),o.NEVER;throw n}});
1
+ import{validate as t}from"uuid";import{Branded as o}from"@salsita-ai/common/utils";export const OAuthConnectionId=n=>{if(!t(n))throw Error(`Invalid OAuthConnection id: ${n}. It must be a valid UUID.`);return o(n)};export const OAuthRefreshToken=t=>o(t);export const OAuthGrantedScopes=t=>o(t);export const OAUTH_STALE_CONNECTION_CODE="STALE_CONNECTION";export const SHAREPOINT_MISSING_TENANT_DOMAIN="fill-in-tenant-domain.invalid";let n=/^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]*[a-z0-9])?)+$/i;export const parseSharePointTenantDomain=t=>{let o=t.trim().toLowerCase();return o&&n.test(o)?o:null};
@@ -0,0 +1,2 @@
1
+ export { PREVIEW_NAME_MAX_LENGTH, PreviewNameProblem, describePreviewNameProblem, findPreviewNameProblem, } from './preview-name.js';
2
+ export { MAX_PREVIEWS_PER_PROJECT } from './preview-limits.js';
@@ -0,0 +1 @@
1
+ export{PREVIEW_NAME_MAX_LENGTH,PreviewNameProblem,describePreviewNameProblem,findPreviewNameProblem}from"./preview-name.js";export{MAX_PREVIEWS_PER_PROJECT}from"./preview-limits.js";
@@ -0,0 +1,5 @@
1
+ /**
2
+ * How many previews a builder project can have at once, production not counted, nor previews being removed. A
3
+ * constant until workspace plans set it (CON-3184).
4
+ */
5
+ export declare const MAX_PREVIEWS_PER_PROJECT = 3;
@@ -0,0 +1 @@
1
+ export const MAX_PREVIEWS_PER_PROJECT=3;
@@ -0,0 +1,23 @@
1
+ import type { ValueOf } from '@salsita-ai/common/utils';
2
+ /** Longer names would not fit a hosted address once it also names the project and the workspace. */
3
+ export declare const PREVIEW_NAME_MAX_LENGTH = 16;
4
+ /**
5
+ * Why a name cannot name a new preview of a builder project. The name becomes the environment's slug, which is part of
6
+ * its hosted address, its AWS names and its Datadog tag, so it is fixed at creation and never renamed.
7
+ */
8
+ export declare const PreviewNameProblem: {
9
+ readonly TooShort: 'too_short';
10
+ readonly TooLong: 'too_long';
11
+ readonly Characters: 'characters';
12
+ readonly Dashes: 'dashes';
13
+ readonly Reserved: 'reserved';
14
+ };
15
+ export type PreviewNameProblem = ValueOf<typeof PreviewNameProblem>;
16
+ /**
17
+ * Why a name cannot name a new preview, or null when it can: 3 to 16 lowercase letters, digits and single dashes, not
18
+ * starting or ending with a dash, and none of the names production, local work and pull requests use. Studio checks it
19
+ * beside the field and the server refuses with it.
20
+ */
21
+ export declare const findPreviewNameProblem: (name: string) => PreviewNameProblem | null;
22
+ /** What Studio shows beside the field, and the server answers with, for each problem of a preview name. */
23
+ export declare const describePreviewNameProblem: (problem: PreviewNameProblem, name: string) => string;
@@ -0,0 +1 @@
1
+ import{match as e}from"ts-pattern";export const PREVIEW_NAME_MAX_LENGTH=16;export const PreviewNameProblem={TooShort:"too_short",TooLong:"too_long",Characters:"characters",Dashes:"dashes",Reserved:"reserved"};let r=["production","prod","default","develop","development","dev"],o=["dev-","pr-"];export const findPreviewNameProblem=e=>e.length<3?PreviewNameProblem.TooShort:e.length>16?PreviewNameProblem.TooLong:/^[a-z0-9-]+$/.test(e)?/^[a-z0-9]+(-[a-z0-9]+)*$/.test(e)?r.includes(e)||o.some(r=>e.startsWith(r))?PreviewNameProblem.Reserved:null:PreviewNameProblem.Dashes:PreviewNameProblem.Characters;export const describePreviewNameProblem=(r,o)=>e(r).with(PreviewNameProblem.TooShort,()=>"Use at least 3 characters.").with(PreviewNameProblem.TooLong,()=>"Use at most 16 characters.").with(PreviewNameProblem.Characters,()=>"Use lowercase letters, digits and dashes only.").with(PreviewNameProblem.Dashes,()=>"Start and end with a letter or a digit, with no two dashes in a row.").with(PreviewNameProblem.Reserved,()=>`“${o}” is reserved for production, local work or pull requests. Choose another name.`).exhaustive();
@@ -5,9 +5,10 @@ export declare const ProjectId: (id: string) => ProjectId;
5
5
  export type ProjectName = Branded<'ProjectName', string>;
6
6
  export declare const ProjectName: (name: string) => ProjectName;
7
7
  /**
8
- * What a project's application spec writes as `project` to mean "the default project of the customer I am signed in
9
- * to". The server resolves it for an API token's customer, so a starter project runs in any workspace without naming
10
- * a real project. It is not a project slug: no project may be created with it.
8
+ * A reserved project slug: no project may be created with it or renamed to it. Older SDKs wrote it as the spec's
9
+ * `project` to mean "the default project of the customer I am signed in to"; nothing resolves that alias any more, so
10
+ * every client names a real project slug. It stays reserved so a request from an older SDK can never reach a project
11
+ * that happens to carry it, and so the server can tell such a request apart and explain what to change.
11
12
  */
12
13
  export declare const DEFAULT_PROJECT_ALIAS = "default";
13
14
  export type ProjectSlug = Branded<'ProjectSlug', string>;
@@ -23,4 +24,6 @@ export interface Project {
23
24
  readonly slug: ProjectSlug;
24
25
  readonly paramStorePath: ParamStorePath;
25
26
  readonly customDomain: ProjectCustomDomain | null;
27
+ /** Enables saved-configuration analytics. Missing on older clients means disabled. */
28
+ readonly configurationInsightsEnabled?: boolean;
26
29
  }
@@ -0,0 +1,20 @@
1
+ import type { ValueOf } from '@salsita-ai/common/utils';
2
+ /**
3
+ * What the builder Studio's environment picker says about one environment of a project: a build of it is running
4
+ * (`building`), its latest build failed or timed out (`failed`), it serves a deployment (`live`), or nothing was ever
5
+ * deployed to it (`empty`). The server derives the state from the environment's latest build and its active deployment;
6
+ * the project's own setup is not an environment state.
7
+ */
8
+ export declare const SdkBuilderEnvironmentState: {
9
+ readonly Live: 'live';
10
+ readonly Building: 'building';
11
+ readonly Failed: 'failed';
12
+ readonly Empty: 'empty';
13
+ };
14
+ export type SdkBuilderEnvironmentState = ValueOf<typeof SdkBuilderEnvironmentState>;
15
+ /** Production, or any other standard environment of a builder project, which the builder Studio calls a preview. */
16
+ export declare const SdkBuilderEnvironmentKind: {
17
+ readonly Production: 'production';
18
+ readonly Preview: 'preview';
19
+ };
20
+ export type SdkBuilderEnvironmentKind = ValueOf<typeof SdkBuilderEnvironmentKind>;
@@ -0,0 +1 @@
1
+ export const SdkBuilderEnvironmentState={Live:"live",Building:"building",Failed:"failed",Empty:"empty"};export const SdkBuilderEnvironmentKind={Production:"production",Preview:"preview"};
@@ -0,0 +1,22 @@
1
+ import type { ValueOf } from '@salsita-ai/common/utils';
2
+ /**
3
+ * What a project card of the builder Studio says about a project's production. Something is live (`live`), or nothing
4
+ * is: the storage job that sets the project up is still running (`setting_up`), it failed and can be retried
5
+ * (`setup_failed`), or it finished and the project waits for its first `phoenix deploy` (`not_deployed`). A project
6
+ * being set up never goes straight to live, because setup deploys nothing.
7
+ */
8
+ export declare const SdkBuilderProjectState: {
9
+ readonly SettingUp: 'setting_up';
10
+ readonly SetupFailed: 'setup_failed';
11
+ readonly NotDeployed: 'not_deployed';
12
+ readonly Live: 'live';
13
+ };
14
+ export type SdkBuilderProjectState = ValueOf<typeof SdkBuilderProjectState>;
15
+ /** Longer slugs would not fit a hosted address once it also names the environment and the workspace. */
16
+ export declare const SDK_BUILDER_PROJECT_SLUG_MAX_LENGTH = 20;
17
+ /**
18
+ * Why a slug cannot name a project a builder creates, or null when it can. Stricter than any project slug: at most 20
19
+ * characters, and no dash at either end or two in a row, because two dashes separate the parts of a hosted address.
20
+ * Projects created before keep their slugs. Studio shows the reason next to the field; the server refuses with it.
21
+ */
22
+ export declare const getSdkBuilderProjectSlugProblem: (slug: string) => string | null;
@@ -0,0 +1 @@
1
+ import{DEFAULT_PROJECT_ALIAS as e}from"./project-domain.js";export const SdkBuilderProjectState={SettingUp:"setting_up",SetupFailed:"setup_failed",NotDeployed:"not_deployed",Live:"live"};export const SDK_BUILDER_PROJECT_SLUG_MAX_LENGTH=20;export const getSdkBuilderProjectSlugProblem=t=>t.length<3?"Use at least 3 characters.":t.length>20?"Use at most 20 characters.":/^[a-z0-9-]+$/.test(t)?t.startsWith("-")||t.endsWith("-")?"Start and end with a letter or a digit.":t.includes("--")?"Two dashes in a row are reserved: they separate the parts of a hosted address.":t===e?`“${e}” is reserved. Choose another slug.`:null:"Use lowercase letters, digits and dashes only.";
@@ -1,9 +1,10 @@
1
1
  import type { ValueOf } from '@salsita-ai/common/utils';
2
2
  /**
3
- * Where the setup of an SDK builder's workspace is. Setup is the init build that deploys the hello-world starter to
4
- * the workspace's one environment: it is still running (`pending`), it made the environment live (`ready`), or it
5
- * ended or timed out without a live deployment and can be retried (`failed`). The server derives it for the builder
6
- * Studio's overview and to decide whether a setup retry is allowed.
3
+ * Where the setup of an SDK builder's project is. Setup is the storage job that creates the project's two buckets
4
+ * when the project is created: it is still running (`pending`), the buckets are ready and the project accepts
5
+ * `phoenix deploy` (`ready`), or the job failed, never reported or could not be started and can be retried (`failed`).
6
+ * Nothing is deployed by setup; the first `phoenix deploy` makes an environment live. The server derives the state
7
+ * for the builder Studio's overview and to decide whether a setup retry, a deploy or `phoenix dev` is allowed.
7
8
  */
8
9
  export declare const SdkBuilderSetupState: {
9
10
  readonly Pending: 'pending';
@@ -0,0 +1 @@
1
+ export { StaffDeletionMode, TeardownStatus } from './teardown-status.js';
@@ -0,0 +1 @@
1
+ export{StaffDeletionMode,TeardownStatus}from"./teardown-status.js";
@@ -0,0 +1,23 @@
1
+ import type { ValueOf } from '@salsita-ai/common/utils';
2
+ /**
3
+ * Where the removal of a deleted builder project or preview stands, as staff Studio's Removals page shows it: waiting
4
+ * for staff to start it, the runner removing the hosting, the server deleting the stored parameters and records
5
+ * (`finalizing`), finished with the name free again, or failed at a step until it is retried.
6
+ */
7
+ export declare const TeardownStatus: {
8
+ readonly Waiting: 'waiting';
9
+ readonly Removing: 'removing';
10
+ readonly Finalizing: 'finalizing';
11
+ readonly Done: 'done';
12
+ readonly Failed: 'failed';
13
+ };
14
+ export type TeardownStatus = ValueOf<typeof TeardownStatus>;
15
+ /**
16
+ * How staff Studio deletes a project or an environment: through the builder's delete and a removal (`removal`), for a
17
+ * Cognito Builder workspace's project or hosted environment, or with the immediate delete (`hard`) otherwise.
18
+ */
19
+ export declare const StaffDeletionMode: {
20
+ readonly Removal: 'removal';
21
+ readonly Hard: 'hard';
22
+ };
23
+ export type StaffDeletionMode = ValueOf<typeof StaffDeletionMode>;
@@ -0,0 +1 @@
1
+ export const TeardownStatus={Waiting:"waiting",Removing:"removing",Finalizing:"finalizing",Done:"done",Failed:"failed"};export const StaffDeletionMode={Removal:"removal",Hard:"hard"};
@@ -1,3 +1,9 @@
1
1
  export * from './deployments/index.js';
2
2
  export * from './feedback/index.js';
3
3
  export * from './product-configurations/index.js';
4
+ export { AccountStatus } from './account-status.js';
5
+ export { PasswordPolicy } from './password-policy.js';
6
+ export { WorkspaceInvitationStatus } from './workspace-invitation.js';
7
+ export { WorkspaceInvitationRole } from './workspace-invitation-role.js';
8
+ export { WorkspaceMembershipStatus } from './workspace-membership-status.js';
9
+ export { DisabledWorkspaceStatusSchema, type DisabledWorkspaceStatus, workspaceDisabledMessage, WorkspaceStatus, WorkspaceStatusSchema, } from './workspace-lifecycle/index.js';
@@ -1 +1 @@
1
- export*from"./deployments/index.js";export*from"./feedback/index.js";export*from"./product-configurations/index.js";
1
+ export*from"./deployments/index.js";export*from"./feedback/index.js";export*from"./product-configurations/index.js";export{AccountStatus}from"./account-status.js";export{PasswordPolicy}from"./password-policy.js";export{WorkspaceInvitationStatus}from"./workspace-invitation.js";export{WorkspaceInvitationRole}from"./workspace-invitation-role.js";export{WorkspaceMembershipStatus}from"./workspace-membership-status.js";export{DisabledWorkspaceStatusSchema,workspaceDisabledMessage,WorkspaceStatus,WorkspaceStatusSchema}from"./workspace-lifecycle/index.js";
@@ -0,0 +1,22 @@
1
+ import { z } from 'zod';
2
+ /** Public password requirements; excludes all other identity-provider configuration. */
3
+ export declare const PasswordPolicy: z.ZodReadonly<z.ZodObject<{
4
+ minimumLength: z.ZodNumber;
5
+ requireLowercase: z.ZodBoolean;
6
+ requireUppercase: z.ZodBoolean;
7
+ requireNumbers: z.ZodBoolean;
8
+ requireSymbols: z.ZodBoolean;
9
+ }, "strip", z.ZodTypeAny, {
10
+ minimumLength: number;
11
+ requireLowercase: boolean;
12
+ requireUppercase: boolean;
13
+ requireNumbers: boolean;
14
+ requireSymbols: boolean;
15
+ }, {
16
+ minimumLength: number;
17
+ requireLowercase: boolean;
18
+ requireUppercase: boolean;
19
+ requireNumbers: boolean;
20
+ requireSymbols: boolean;
21
+ }>>;
22
+ export type PasswordPolicy = z.infer<typeof PasswordPolicy>;
@@ -0,0 +1 @@
1
+ import{z as e}from"zod";export const PasswordPolicy=e.object({minimumLength:e.number().int().min(6).max(99),requireLowercase:e.boolean(),requireUppercase:e.boolean(),requireNumbers:e.boolean(),requireSymbols:e.boolean()}).readonly();