Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/lib/database/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ const initializer = immer<Database>((set, get) => ({
created_at: params.created_at ?? new Date().toISOString(),
is_sandbox: params.is_sandbox ?? false,
is_suspended: params.is_suspended ?? false,
is_publishable_key_auth_enabled: true,
connect_partner_name: params.connect_partner_name ?? null,
company_name:
params.company_name ??
Expand Down
3 changes: 2 additions & 1 deletion src/lib/zod/workspace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ export const hex_color_code = z.string().refine((value) => {
export const workspace = z.object({
workspace_id: z.string(),
name: z.string(),
publishable_key: z.string(),
created_at: z.string(),
is_sandbox: z.boolean(),
publishable_key: z.string(),
is_publishable_key_auth_enabled: z.boolean(),
is_suspended: z.boolean(),
company_name: z.string(),
connect_partner_name: z
Expand Down
9 changes: 6 additions & 3 deletions src/route-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5122,9 +5122,10 @@ export type Routes = {
workspace: {
workspace_id: string
name: string
publishable_key: string
created_at: string
is_sandbox: boolean
publishable_key: string
is_publishable_key_auth_enabled: boolean
is_suspended: boolean
company_name: string
/** deprecated: use company_name */
Expand All @@ -5151,9 +5152,10 @@ export type Routes = {
workspace: {
workspace_id: string
name: string
publishable_key: string
created_at: string
is_sandbox: boolean
publishable_key: string
is_publishable_key_auth_enabled: boolean
is_suspended: boolean
company_name: string
/** deprecated: use company_name */
Expand All @@ -5180,9 +5182,10 @@ export type Routes = {
workspaces: {
workspace_id: string
name: string
publishable_key: string
created_at: string
is_sandbox: boolean
publishable_key: string
is_publishable_key_auth_enabled: boolean
is_suspended: boolean
company_name: string
/** deprecated: use company_name */
Expand Down
1 change: 1 addition & 0 deletions test/api/connected_accounts/get.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,5 @@ test("GET /connected_accounts/get", async (t: ExecutionContext) => {

t.is(connected_account.user_identifier.email, connected_account_email)
t.truthy(connected_account.custom_metadata)
t.deepEqual(connected_account.accepted_capabilities, [])
})
1 change: 1 addition & 0 deletions test/api/connected_accounts/list.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ test("GET /connected_accounts/list with limit", async (t: ExecutionContext) => {
} = await axios.get("/connected_accounts/list", { params: { limit: 1 } })

t.is(connected_accounts.length, 1)
t.deepEqual(connected_accounts[0]?.accepted_capabilities, [])
})

test("GET /connected_accounts/list with pages", async (t: ExecutionContext) => {
Expand Down
1 change: 1 addition & 0 deletions test/api/workspaces/create.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,5 @@ test("POST /workspaces/create", async (t: ExecutionContext) => {

t.truthy(workspace)
t.is(workspace.connect_partner_name, "Test")
t.true(workspace.is_publishable_key_auth_enabled)
})