-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into automations-fixes
- Loading branch information
Showing
51 changed files
with
470 additions
and
237 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { EmailAttachment, EmailInvite } from "../../../documents" | ||
|
||
export enum EmailTemplatePurpose { | ||
CORE = "core", | ||
BASE = "base", | ||
PASSWORD_RECOVERY = "password_recovery", | ||
INVITATION = "invitation", | ||
WELCOME = "welcome", | ||
CUSTOM = "custom", | ||
} | ||
|
||
export interface SendEmailRequest { | ||
workspaceId?: string | ||
email: string | ||
userId: string | ||
purpose: EmailTemplatePurpose | ||
contents?: string | ||
from?: string | ||
subject: string | ||
cc?: boolean | ||
bcc?: boolean | ||
automation?: boolean | ||
invite?: EmailInvite | ||
attachments?: EmailAttachment[] | ||
} | ||
export interface SendEmailResponse extends Record<string, any> { | ||
message: string | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { Role } from "../../../documents" | ||
|
||
interface GlobalRoleResponse { | ||
roles: Role[] | ||
name: string | ||
version: string | ||
url?: string | ||
} | ||
|
||
export interface FetchGlobalRolesResponse | ||
extends Record<string, GlobalRoleResponse> {} | ||
|
||
export interface FindGlobalRoleResponse extends GlobalRoleResponse {} | ||
|
||
export interface RemoveAppRoleResponse { | ||
message: string | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { DevInfo, User } from "../../../documents" | ||
|
||
export interface GenerateAPIKeyRequest { | ||
userId: string | ||
} | ||
export interface GenerateAPIKeyResponse extends DevInfo {} | ||
|
||
export interface FetchAPIKeyResponse extends DevInfo {} | ||
|
||
export interface GetGlobalSelfResponse extends User { | ||
flags?: Record<string, string> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { Template } from "../../../documents" | ||
|
||
export interface GlobalTemplateDefinition { | ||
name: string | ||
description: string | ||
category: string | ||
} | ||
|
||
export interface GlobalTemplateBinding { | ||
name: string | ||
description: string | ||
} | ||
|
||
export interface FetchGlobalTemplateDefinitionResponse { | ||
info: Record<string, GlobalTemplateDefinition> | ||
bindings: Record<string, GlobalTemplateBinding[]> | ||
} | ||
|
||
export interface SaveGlobalTemplateRequest extends Template {} | ||
export interface SaveGlobalTemplateResponse extends Template {} | ||
|
||
export type FetchGlobalTemplateResponse = Template[] | ||
export type FetchGlobalTemplateByTypeResponse = Template[] | ||
export type FetchGlobalTemplateByOwnerIDResponse = Template[] | ||
|
||
export interface FindGlobalTemplateResponse extends Template {} | ||
|
||
export interface DeleteGlobalTemplateResponse { | ||
message: string | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import { Account, AccountMetadata } from "../../../documents" | ||
|
||
export interface SaveAccountRequest extends Account {} | ||
export interface SaveAccountResponse extends AccountMetadata {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
export interface GetEnvironmentResponse { | ||
multiTenancy: boolean | ||
offlineMode: boolean | ||
cloud: boolean | ||
accountPortalUrl: string | ||
baseUrl: string | ||
accountPortalUrl?: string | ||
disableAccountPortal: boolean | ||
baseUrl?: string | ||
isDev: boolean | ||
maintenance: { type: string }[] | ||
passwordMinLength?: string | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
export * from "./environment" | ||
export * from "./status" | ||
export * from "./ops" | ||
export * from "./account" | ||
export * from "./log" | ||
export * from "./migration" | ||
export * from "./restore" | ||
export * from "./tenant" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export type GetLogResponse = Buffer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { MigrationDefinition, MigrationOptions } from "../../../sdk" | ||
|
||
export interface RunGlobalMigrationRequest extends MigrationOptions {} | ||
|
||
export type FetchMigrationDefinitionsResponse = MigrationDefinition[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export interface SystemRestoreResponse { | ||
message: string | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export interface GetTenantInfoResponse { | ||
exists: boolean | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { Document } from "../document" | ||
|
||
export interface DevInfo extends Document { | ||
userId: string | ||
apiKey?: string | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.