Skip to content

Commit

Permalink
Update schema
Browse files Browse the repository at this point in the history
  • Loading branch information
Herklos committed Jul 28, 2024
1 parent 1b28fa6 commit bbe00aa
Show file tree
Hide file tree
Showing 438 changed files with 2,395 additions and 884 deletions.
5 changes: 4 additions & 1 deletion client/typescript/PosthogAPIClient.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
Expand Down Expand Up @@ -42,6 +42,7 @@ import { PluginConfigsService } from './services/PluginConfigsService';
import { PluginsService } from './services/PluginsService';
import { ProjectsService } from './services/ProjectsService';
import { PropertyDefinitionsService } from './services/PropertyDefinitionsService';
import { ProxyRecordsService } from './services/ProxyRecordsService';
import { QueryService } from './services/QueryService';
import { RolesService } from './services/RolesService';
import { SessionRecordingPlaylistsService } from './services/SessionRecordingPlaylistsService';
Expand Down Expand Up @@ -90,6 +91,7 @@ export class PosthogAPIClient {
public readonly plugins: PluginsService;
public readonly projects: ProjectsService;
public readonly propertyDefinitions: PropertyDefinitionsService;
public readonly proxyRecords: ProxyRecordsService;
public readonly query: QueryService;
public readonly roles: RolesService;
public readonly sessionRecordingPlaylists: SessionRecordingPlaylistsService;
Expand Down Expand Up @@ -149,6 +151,7 @@ export class PosthogAPIClient {
this.plugins = new PluginsService(this.request);
this.projects = new ProjectsService(this.request);
this.propertyDefinitions = new PropertyDefinitionsService(this.request);
this.proxyRecords = new ProxyRecordsService(this.request);
this.query = new QueryService(this.request);
this.roles = new RolesService(this.request);
this.sessionRecordingPlaylists = new SessionRecordingPlaylistsService(this.request);
Expand Down
2 changes: 1 addition & 1 deletion client/typescript/core/ApiError.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
Expand Down
2 changes: 1 addition & 1 deletion client/typescript/core/ApiRequestOptions.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
Expand Down
2 changes: 1 addition & 1 deletion client/typescript/core/ApiResult.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
Expand Down
2 changes: 1 addition & 1 deletion client/typescript/core/BaseHttpRequest.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
Expand Down
8 changes: 4 additions & 4 deletions client/typescript/core/CancelablePromise.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
Expand Down Expand Up @@ -85,9 +85,9 @@ export class CancelablePromise<T> implements Promise<T> {
});
}

get [Symbol.toStringTag]() {
return "Cancellable Promise";
}
get [Symbol.toStringTag]() {
return "Cancellable Promise";
}

public then<TResult1 = T, TResult2 = never>(
onFulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null,
Expand Down
2 changes: 1 addition & 1 deletion client/typescript/core/FetchHttpRequest.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
Expand Down
2 changes: 1 addition & 1 deletion client/typescript/core/OpenAPI.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
Expand Down
4 changes: 2 additions & 2 deletions client/typescript/core/request.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
Expand Down Expand Up @@ -164,7 +164,7 @@ export const getHeaders = async (config: OpenAPIConfig, options: ApiRequestOptio
headers['Authorization'] = `Basic ${credentials}`;
}

if (options.body !== undefined) {
if (options.body) {
if (options.mediaType) {
headers['Content-Type'] = options.mediaType;
} else if (isBlob(options.body)) {
Expand Down
63 changes: 50 additions & 13 deletions client/typescript/index.ts

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion client/typescript/models/Action.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
Expand Down
2 changes: 1 addition & 1 deletion client/typescript/models/ActionStepJSON.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
Expand Down
2 changes: 1 addition & 1 deletion client/typescript/models/ActionsNode.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
Expand Down
2 changes: 1 addition & 1 deletion client/typescript/models/ActivityLog.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
Expand Down
8 changes: 7 additions & 1 deletion client/typescript/models/ActorsQuery.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
Expand All @@ -9,6 +9,9 @@ import type { HogQLQuery } from './HogQLQuery';
import type { HogQLQueryModifiers } from './HogQLQueryModifiers';
import type { InsightActorsQuery } from './InsightActorsQuery';
export type ActorsQuery = {
/**
* Currently only person filters supported. No filters for querying groups. See `filter_conditions()` in actor_strategies.py.
*/
fixedProperties?: null;
kind?: any;
limit?: (number | null);
Expand All @@ -18,6 +21,9 @@ export type ActorsQuery = {
modifiers?: (HogQLQueryModifiers | null);
offset?: (number | null);
orderBy?: (Array<string> | null);
/**
* Currently only person filters supported. No filters for querying groups. See `filter_conditions()` in actor_strategies.py.
*/
properties?: null;
response?: (ActorsQueryResponse | null);
search?: (string | null);
Expand Down
2 changes: 1 addition & 1 deletion client/typescript/models/ActorsQueryResponse.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
Expand Down
2 changes: 1 addition & 1 deletion client/typescript/models/AggregationAxisFormat.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
Expand Down
5 changes: 4 additions & 1 deletion client/typescript/models/Annotation.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
Expand All @@ -11,8 +11,11 @@ export type Annotation = {
date_marker?: string | null;
creation_type?: CreationTypeEnum;
dashboard_item?: number | null;
readonly dashboard_id: number | null;
readonly dashboard_name: string | null;
readonly insight_short_id: string | null;
readonly insight_name: string | null;
readonly insight_derived_name: string | null;
readonly created_by: UserBasic;
readonly created_at: string | null;
readonly updated_at: string;
Expand Down
4 changes: 3 additions & 1 deletion client/typescript/models/AnnotationScopeEnum.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
/**
* * `dashboard_item` - insight
* * `dashboard` - dashboard
* * `project` - project
* * `organization` - organization
*/
export enum AnnotationScopeEnum {
DASHBOARD_ITEM = 'dashboard_item',
DASHBOARD = 'dashboard',
PROJECT = 'project',
ORGANIZATION = 'organization',
}
2 changes: 1 addition & 1 deletion client/typescript/models/AutocompleteCompletionItem.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
Expand Down
2 changes: 1 addition & 1 deletion client/typescript/models/BaseMathType.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
Expand Down
12 changes: 11 additions & 1 deletion client/typescript/models/BatchExport.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { BatchExportDestination } from './BatchExportDestination';
import type { BatchExportRun } from './BatchExportRun';
import type { BlankEnum } from './BlankEnum';
import type { IntervalEnum } from './IntervalEnum';
import type { ModelEnum } from './ModelEnum';
import type { NullEnum } from './NullEnum';
/**
* Serializer for a BatchExport model.
*/
Expand All @@ -18,6 +21,13 @@ export type BatchExport = {
* A human-readable name for this BatchExport.
*/
name: string;
/**
* Which model this BatchExport is exporting.
*
* * `events` - Events
* * `persons` - Persons
*/
model?: (ModelEnum | BlankEnum | NullEnum) | null;
destination: BatchExportDestination;
interval: IntervalEnum;
/**
Expand Down
2 changes: 1 addition & 1 deletion client/typescript/models/BatchExportDestination.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
Expand Down
2 changes: 1 addition & 1 deletion client/typescript/models/BatchExportDestinationTypeEnum.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
Expand Down
14 changes: 0 additions & 14 deletions client/typescript/models/BatchExportLogEntry.ts

This file was deleted.

18 changes: 0 additions & 18 deletions client/typescript/models/BatchExportLogEntryLevelEnum.ts

This file was deleted.

6 changes: 3 additions & 3 deletions client/typescript/models/BatchExportRun.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { StatusEnum } from './StatusEnum';
import type { BatchExportRunStatusEnum } from './BatchExportRunStatusEnum';
/**
* Serializer for a BatchExportRun model.
*/
Expand All @@ -21,7 +21,7 @@ export type BatchExportRun = {
* * `Running` - Running
* * `Starting` - Starting
*/
status: StatusEnum;
status: BatchExportRunStatusEnum;
/**
* The number of records that have been exported.
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
Expand All @@ -13,7 +13,7 @@
* * `Running` - Running
* * `Starting` - Starting
*/
export enum StatusEnum {
export enum BatchExportRunStatusEnum {
CANCELLED = 'Cancelled',
COMPLETED = 'Completed',
CONTINUED_AS_NEW = 'ContinuedAsNew',
Expand Down
2 changes: 1 addition & 1 deletion client/typescript/models/BlankEnum.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
Expand Down
8 changes: 8 additions & 0 deletions client/typescript/models/BounceRatePageViewMode.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export enum BounceRatePageViewMode {
COUNT_PAGEVIEWS = 'count_pageviews',
UNIQ_URLS = 'uniq_urls',
}
10 changes: 6 additions & 4 deletions client/typescript/models/Breakdown.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { BreakdownType } from './BreakdownType';
import type { MultipleBreakdownType } from './MultipleBreakdownType';
export type Breakdown = {
group_type_index?: (number | null);
histogram_bin_count?: (number | null);
normalize_url?: (boolean | null);
property: (string | number);
type: BreakdownType;
property: string;
type?: (MultipleBreakdownType | null);
};

2 changes: 1 addition & 1 deletion client/typescript/models/BreakdownAttributionType.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
Expand Down
2 changes: 1 addition & 1 deletion client/typescript/models/BreakdownFilter.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
Expand Down
2 changes: 1 addition & 1 deletion client/typescript/models/BreakdownItem.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
Expand Down
3 changes: 2 additions & 1 deletion client/typescript/models/BreakdownType.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
Expand All @@ -10,4 +10,5 @@ export enum BreakdownType {
SESSION = 'session',
HOGQL = 'hogql',
DATA_WAREHOUSE = 'data_warehouse',
DATA_WAREHOUSE_PERSON_PROPERTY = 'data_warehouse_person_property',
}
2 changes: 1 addition & 1 deletion client/typescript/models/BreakdownTypeEnum.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
Expand Down
2 changes: 1 addition & 1 deletion client/typescript/models/ByweekdayEnum.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
Expand Down
Loading

0 comments on commit bbe00aa

Please sign in to comment.