@stackframe/stack-shared 2.4.1 → 2.4.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.
@@ -17,6 +17,8 @@ export type OAuthProviderUpdateOptions = {
17
17
  tenantId?: string;
18
18
  });
19
19
  export type ProjectUpdateOptions = {
20
+ displayName?: string;
21
+ description?: string;
20
22
  isProductionMode?: boolean;
21
23
  config?: {
22
24
  domains?: {
@@ -3,6 +3,7 @@ import { Result } from "../utils/results";
3
3
  import { ReadonlyJson } from '../utils/json';
4
4
  import { AsyncStore, ReadonlyAsyncStore } from '../utils/stores';
5
5
  import { KnownErrors } from '../known-errors';
6
+ import { ProjectUpdateOptions } from './adminInterface';
6
7
  type UserCustomizableJson = {
7
8
  readonly displayName: string | null;
8
9
  readonly clientMetadata: ReadonlyJson;
@@ -179,7 +180,9 @@ export declare class StackClientInterface {
179
180
  getClientProject(): Promise<Result<ClientProjectJson>>;
180
181
  setClientUserCustomizableData(update: UserUpdateJson, tokenStore: TokenStore): Promise<void>;
181
182
  listProjects(tokenStore: TokenStore): Promise<ProjectJson[]>;
182
- createProject(project: Pick<ProjectJson, "displayName" | "description">, tokenStore: TokenStore): Promise<ProjectJson>;
183
+ createProject(project: ProjectUpdateOptions & {
184
+ displayName: string;
185
+ }, tokenStore: TokenStore): Promise<ProjectJson>;
183
186
  }
184
187
  export declare function getProductionModeErrors(project: ProjectJson): ProductionModeError[];
185
188
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stackframe/stack-shared",
3
- "version": "2.4.1",
3
+ "version": "2.4.2",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "files": [