@magemetrics/core 0.11.1 → 0.11.4
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.
- package/dist/index.d.ts +590 -288
- package/dist/index.js +27 -10
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -150,9 +150,6 @@ declare interface components {
|
|
|
150
150
|
ReportData: {
|
|
151
151
|
[key: string]: unknown;
|
|
152
152
|
}[];
|
|
153
|
-
VisualizationData: {
|
|
154
|
-
[key: string]: string | (number | null) | unknown | null;
|
|
155
|
-
}[];
|
|
156
153
|
VisualizationWithData: {
|
|
157
154
|
id: number;
|
|
158
155
|
flow_data_id: number;
|
|
@@ -275,6 +272,9 @@ declare interface components {
|
|
|
275
272
|
sampledCount: number;
|
|
276
273
|
};
|
|
277
274
|
};
|
|
275
|
+
VisualizationData: {
|
|
276
|
+
[key: string]: string | (number | null) | unknown | null;
|
|
277
|
+
}[];
|
|
278
278
|
/** @description Prompt starter template */
|
|
279
279
|
PromptStarter: {
|
|
280
280
|
id: number;
|
|
@@ -292,7 +292,7 @@ declare interface components {
|
|
|
292
292
|
/** Format: uuid */
|
|
293
293
|
id: string;
|
|
294
294
|
/** Format: uuid */
|
|
295
|
-
agent_id: string;
|
|
295
|
+
agent_id: string | null;
|
|
296
296
|
/** Format: uuid */
|
|
297
297
|
flow_id: string | null;
|
|
298
298
|
/** @enum {string} */
|
|
@@ -328,6 +328,13 @@ declare interface components {
|
|
|
328
328
|
}[];
|
|
329
329
|
}[] | null;
|
|
330
330
|
error_message: string | null;
|
|
331
|
+
execution_context?: {
|
|
332
|
+
companyId: number;
|
|
333
|
+
userMetadata: {
|
|
334
|
+
[key: string]: unknown;
|
|
335
|
+
};
|
|
336
|
+
} | null;
|
|
337
|
+
cached?: boolean;
|
|
331
338
|
};
|
|
332
339
|
StartAgentRunRequest: {
|
|
333
340
|
/** Format: uuid */
|
|
@@ -336,6 +343,28 @@ declare interface components {
|
|
|
336
343
|
inputs: {
|
|
337
344
|
[key: string]: unknown;
|
|
338
345
|
};
|
|
346
|
+
execution_context?: components["schemas"]["ExecutionContextInput"];
|
|
347
|
+
};
|
|
348
|
+
ExecutionContextInput: components["schemas"]["ImpersonateContext"] | components["schemas"]["CustomMetadataContext"];
|
|
349
|
+
ImpersonateContext: {
|
|
350
|
+
/**
|
|
351
|
+
* @description discriminator enum property added by openapi-typescript
|
|
352
|
+
* @enum {string}
|
|
353
|
+
*/
|
|
354
|
+
mode: "impersonate";
|
|
355
|
+
/** @description The user ID in the customer's system */
|
|
356
|
+
external_user_id: string;
|
|
357
|
+
};
|
|
358
|
+
CustomMetadataContext: {
|
|
359
|
+
/**
|
|
360
|
+
* @description discriminator enum property added by openapi-typescript
|
|
361
|
+
* @enum {string}
|
|
362
|
+
*/
|
|
363
|
+
mode: "custom";
|
|
364
|
+
/** @description Raw metadata key-value pairs for data access rules */
|
|
365
|
+
metadata: {
|
|
366
|
+
[key: string]: unknown;
|
|
367
|
+
};
|
|
339
368
|
};
|
|
340
369
|
Agent: {
|
|
341
370
|
/** Format: uuid */
|
|
@@ -382,11 +411,58 @@ declare interface components {
|
|
|
382
411
|
/** @description Detailed steps or description of what the task will do */
|
|
383
412
|
description?: string;
|
|
384
413
|
}[] | null;
|
|
414
|
+
model_config: {
|
|
415
|
+
/** @enum {string} */
|
|
416
|
+
model: "gemini-3.1-pro-preview";
|
|
417
|
+
/** @enum {string} */
|
|
418
|
+
thinking?: "low" | "high";
|
|
419
|
+
} | {
|
|
420
|
+
/** @enum {string} */
|
|
421
|
+
model: "claude-sonnet-4-6" | "claude-opus-4-6";
|
|
422
|
+
/** @enum {string} */
|
|
423
|
+
effort?: "low" | "medium" | "high";
|
|
424
|
+
} | {
|
|
425
|
+
/** @enum {string} */
|
|
426
|
+
model: "claude-haiku-4-5";
|
|
427
|
+
} | null;
|
|
385
428
|
master_prompt_name: string | null;
|
|
386
429
|
master_prompt_version: number | null;
|
|
387
430
|
created_at: string;
|
|
388
431
|
updated_at: string;
|
|
389
432
|
};
|
|
433
|
+
CreateGlobalKnowledgeItem: {
|
|
434
|
+
content: string;
|
|
435
|
+
/** @description Optional identifier from your system, used for lookup and batch operations */
|
|
436
|
+
external_id?: string;
|
|
437
|
+
/** @default true */
|
|
438
|
+
is_active: boolean;
|
|
439
|
+
tags?: string[];
|
|
440
|
+
/** @description IDs of applications this item is scoped to. Empty or omitted means all applications. */
|
|
441
|
+
application_ids?: number[];
|
|
442
|
+
/** @enum {string} */
|
|
443
|
+
type: "global";
|
|
444
|
+
};
|
|
445
|
+
CreateSchemaKnowledgeItem: {
|
|
446
|
+
content: string;
|
|
447
|
+
/** @description Optional identifier from your system, used for lookup and batch operations */
|
|
448
|
+
external_id?: string;
|
|
449
|
+
/** @default true */
|
|
450
|
+
is_active: boolean;
|
|
451
|
+
tags?: string[];
|
|
452
|
+
/** @description IDs of applications this item is scoped to. Empty or omitted means all applications. */
|
|
453
|
+
application_ids?: number[];
|
|
454
|
+
/** @enum {string} */
|
|
455
|
+
type: "schema";
|
|
456
|
+
path: components["schemas"]["SchemaPath"];
|
|
457
|
+
};
|
|
458
|
+
SchemaPath: {
|
|
459
|
+
/** @description Schema or dataset name in the source database */
|
|
460
|
+
dataset: string;
|
|
461
|
+
/** @description Table name in the source database */
|
|
462
|
+
table_name: string;
|
|
463
|
+
/** @description Column name (optional). Omit for table-level items, include for column-level items. */
|
|
464
|
+
column_name?: string;
|
|
465
|
+
};
|
|
390
466
|
};
|
|
391
467
|
responses: never;
|
|
392
468
|
parameters: never;
|
|
@@ -524,8 +600,8 @@ declare const FrontendRecentFlowsSchema: z.ZodObject<{
|
|
|
524
600
|
id: z.ZodString;
|
|
525
601
|
request: z.ZodString;
|
|
526
602
|
created_at: z.ZodString;
|
|
527
|
-
user_id: z.ZodNullable<z.ZodString>;
|
|
528
603
|
application_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
604
|
+
user_id: z.ZodNullable<z.ZodString>;
|
|
529
605
|
}, z.core.$strip>;
|
|
530
606
|
|
|
531
607
|
export declare const getPublicApiClient: (apiUrl: string, apiKey: string) => Client<PublicPaths>;
|
|
@@ -662,7 +738,7 @@ export declare class MageMetricsClient {
|
|
|
662
738
|
last_materialized_at: string | null;
|
|
663
739
|
materialized_error_message: string | null;
|
|
664
740
|
materialized_status: "completed" | "running" | "failed" | null;
|
|
665
|
-
};
|
|
741
|
+
} | undefined;
|
|
666
742
|
configuration: {
|
|
667
743
|
type: "bar";
|
|
668
744
|
title: string;
|
|
@@ -670,7 +746,7 @@ export declare class MageMetricsClient {
|
|
|
670
746
|
xAxisLabel: string;
|
|
671
747
|
yAxisLabel: string;
|
|
672
748
|
categoryColumn: string;
|
|
673
|
-
secondaryCategoryColumn?: string;
|
|
749
|
+
secondaryCategoryColumn?: string | undefined;
|
|
674
750
|
valueColumn: string;
|
|
675
751
|
} | {
|
|
676
752
|
type: "line/area";
|
|
@@ -711,29 +787,27 @@ export declare class MageMetricsClient {
|
|
|
711
787
|
title: string;
|
|
712
788
|
request: string | null;
|
|
713
789
|
data_summary: {
|
|
790
|
+
[x: string]: unknown;
|
|
714
791
|
columns: {
|
|
715
|
-
[
|
|
716
|
-
|
|
792
|
+
[x: string]: {
|
|
793
|
+
[x: string]: unknown;
|
|
794
|
+
position?: number | undefined;
|
|
717
795
|
data_type: string;
|
|
718
796
|
null_count: number | null;
|
|
719
797
|
unique_count: number | null;
|
|
720
798
|
unique_percentage: number | null;
|
|
721
|
-
min_value?: number | null;
|
|
722
|
-
max_value?: number | null;
|
|
723
|
-
avg_value?: number | null;
|
|
724
|
-
median_value?: number | null;
|
|
725
|
-
std_value?: number | null;
|
|
726
|
-
min_date?: string | null;
|
|
727
|
-
max_date?: string | null;
|
|
728
|
-
min_length?: number | null;
|
|
729
|
-
max_length?: number | null;
|
|
730
|
-
avg_length?: number | null;
|
|
731
|
-
} & {
|
|
732
|
-
[key: string]: unknown;
|
|
799
|
+
min_value?: number | null | undefined;
|
|
800
|
+
max_value?: number | null | undefined;
|
|
801
|
+
avg_value?: number | null | undefined;
|
|
802
|
+
median_value?: number | null | undefined;
|
|
803
|
+
std_value?: number | null | undefined;
|
|
804
|
+
min_date?: string | null | undefined;
|
|
805
|
+
max_date?: string | null | undefined;
|
|
806
|
+
min_length?: number | null | undefined;
|
|
807
|
+
max_length?: number | null | undefined;
|
|
808
|
+
avg_length?: number | null | undefined;
|
|
733
809
|
};
|
|
734
810
|
};
|
|
735
|
-
} & {
|
|
736
|
-
[key: string]: unknown;
|
|
737
811
|
};
|
|
738
812
|
status: string | null;
|
|
739
813
|
is_removed: boolean;
|
|
@@ -748,7 +822,7 @@ export declare class MageMetricsClient {
|
|
|
748
822
|
request: string;
|
|
749
823
|
title: string | null;
|
|
750
824
|
user_id: string | null;
|
|
751
|
-
application_id?: number | null;
|
|
825
|
+
application_id?: number | null | undefined;
|
|
752
826
|
}>;
|
|
753
827
|
getRecentFlows: (params?: {
|
|
754
828
|
limit?: number;
|
|
@@ -769,7 +843,7 @@ export declare class MageMetricsClient {
|
|
|
769
843
|
request: string;
|
|
770
844
|
title: string | null;
|
|
771
845
|
user_id: string | null;
|
|
772
|
-
application_id?: number | null;
|
|
846
|
+
application_id?: number | null | undefined;
|
|
773
847
|
}[];
|
|
774
848
|
}[]>;
|
|
775
849
|
get: (canvasId: string) => Promise<{
|
|
@@ -801,7 +875,7 @@ export declare class MageMetricsClient {
|
|
|
801
875
|
getChatTransport: (flowId: string, options?: MageMetricsChatTransportOptions) => MageMetricsChatTransport;
|
|
802
876
|
getChatMessages: (flowId: string) => Promise<MMChatUIMessage[]>;
|
|
803
877
|
fetchReportData: (reportId: number, { columns, limit, sorting, filters, cursor }: ReportDataFilters, signal?: AbortSignal) => Promise<{
|
|
804
|
-
[
|
|
878
|
+
[x: string]: unknown;
|
|
805
879
|
}[]>;
|
|
806
880
|
createSpeechToken: () => Promise<{
|
|
807
881
|
token: string;
|
|
@@ -812,15 +886,15 @@ export declare class MageMetricsClient {
|
|
|
812
886
|
name: string;
|
|
813
887
|
data_type: string;
|
|
814
888
|
dataType: string;
|
|
815
|
-
renderType?: string;
|
|
816
|
-
unit?: string;
|
|
817
|
-
canonicalDataType?: "numeric" | "boolean" | "datetime" | "text" | "array" | "json" | "other";
|
|
889
|
+
renderType?: string | undefined;
|
|
890
|
+
unit?: string | undefined;
|
|
891
|
+
canonicalDataType?: "numeric" | "boolean" | "datetime" | "text" | "array" | "json" | "other" | undefined;
|
|
818
892
|
}[];
|
|
819
893
|
rowCount: {
|
|
820
894
|
count: number;
|
|
821
895
|
};
|
|
822
896
|
data: (reportId: number, { columns, limit, sorting, filters, cursor }: ReportDataFilters, signal?: AbortSignal) => Promise<{
|
|
823
|
-
[
|
|
897
|
+
[x: string]: unknown;
|
|
824
898
|
}[]>;
|
|
825
899
|
}>;
|
|
826
900
|
};
|
|
@@ -3160,6 +3234,20 @@ declare interface operations {
|
|
|
3160
3234
|
/** @description Detailed steps or description of what the task will do */
|
|
3161
3235
|
description?: string;
|
|
3162
3236
|
}[];
|
|
3237
|
+
model_config?: {
|
|
3238
|
+
/** @enum {string} */
|
|
3239
|
+
model: "gemini-3.1-pro-preview";
|
|
3240
|
+
/** @enum {string} */
|
|
3241
|
+
thinking?: "low" | "high";
|
|
3242
|
+
} | {
|
|
3243
|
+
/** @enum {string} */
|
|
3244
|
+
model: "claude-sonnet-4-6" | "claude-opus-4-6";
|
|
3245
|
+
/** @enum {string} */
|
|
3246
|
+
effort?: "low" | "medium" | "high";
|
|
3247
|
+
} | {
|
|
3248
|
+
/** @enum {string} */
|
|
3249
|
+
model: "claude-haiku-4-5";
|
|
3250
|
+
};
|
|
3163
3251
|
master_prompt_name?: string;
|
|
3164
3252
|
master_prompt_version?: number;
|
|
3165
3253
|
};
|
|
@@ -3300,6 +3388,20 @@ declare interface operations {
|
|
|
3300
3388
|
/** @description Detailed steps or description of what the task will do */
|
|
3301
3389
|
description?: string;
|
|
3302
3390
|
}[] | null;
|
|
3391
|
+
model_config?: {
|
|
3392
|
+
/** @enum {string} */
|
|
3393
|
+
model: "gemini-3.1-pro-preview";
|
|
3394
|
+
/** @enum {string} */
|
|
3395
|
+
thinking?: "low" | "high";
|
|
3396
|
+
} | {
|
|
3397
|
+
/** @enum {string} */
|
|
3398
|
+
model: "claude-sonnet-4-6" | "claude-opus-4-6";
|
|
3399
|
+
/** @enum {string} */
|
|
3400
|
+
effort?: "low" | "medium" | "high";
|
|
3401
|
+
} | {
|
|
3402
|
+
/** @enum {string} */
|
|
3403
|
+
model: "claude-haiku-4-5";
|
|
3404
|
+
} | null;
|
|
3303
3405
|
master_prompt_name?: string | null;
|
|
3304
3406
|
master_prompt_version?: number | null;
|
|
3305
3407
|
};
|
|
@@ -3418,9 +3520,7 @@ declare interface operations {
|
|
|
3418
3520
|
content: {
|
|
3419
3521
|
"application/json": {
|
|
3420
3522
|
id: number;
|
|
3421
|
-
company_id: number;
|
|
3422
3523
|
name: string;
|
|
3423
|
-
is_removed: boolean;
|
|
3424
3524
|
created_at: string;
|
|
3425
3525
|
}[];
|
|
3426
3526
|
};
|
|
@@ -3463,9 +3563,7 @@ declare interface operations {
|
|
|
3463
3563
|
content: {
|
|
3464
3564
|
"application/json": {
|
|
3465
3565
|
id: number;
|
|
3466
|
-
company_id: number;
|
|
3467
3566
|
name: string;
|
|
3468
|
-
is_removed: boolean;
|
|
3469
3567
|
created_at: string;
|
|
3470
3568
|
};
|
|
3471
3569
|
};
|
|
@@ -3526,9 +3624,7 @@ declare interface operations {
|
|
|
3526
3624
|
content: {
|
|
3527
3625
|
"application/json": {
|
|
3528
3626
|
id: number;
|
|
3529
|
-
company_id: number;
|
|
3530
3627
|
name: string;
|
|
3531
|
-
is_removed: boolean;
|
|
3532
3628
|
created_at: string;
|
|
3533
3629
|
};
|
|
3534
3630
|
};
|
|
@@ -3632,9 +3728,7 @@ declare interface operations {
|
|
|
3632
3728
|
content: {
|
|
3633
3729
|
"application/json": {
|
|
3634
3730
|
id: number;
|
|
3635
|
-
company_id: number;
|
|
3636
3731
|
name: string;
|
|
3637
|
-
is_removed: boolean;
|
|
3638
3732
|
created_at: string;
|
|
3639
3733
|
};
|
|
3640
3734
|
};
|
|
@@ -3685,7 +3779,7 @@ declare interface operations {
|
|
|
3685
3779
|
};
|
|
3686
3780
|
};
|
|
3687
3781
|
};
|
|
3688
|
-
|
|
3782
|
+
listTables: {
|
|
3689
3783
|
parameters: {
|
|
3690
3784
|
query?: never;
|
|
3691
3785
|
header?: {
|
|
@@ -3696,7 +3790,7 @@ declare interface operations {
|
|
|
3696
3790
|
};
|
|
3697
3791
|
requestBody?: never;
|
|
3698
3792
|
responses: {
|
|
3699
|
-
/** @description All
|
|
3793
|
+
/** @description All tables for the company */
|
|
3700
3794
|
200: {
|
|
3701
3795
|
headers: {
|
|
3702
3796
|
[name: string]: unknown;
|
|
@@ -3704,13 +3798,11 @@ declare interface operations {
|
|
|
3704
3798
|
content: {
|
|
3705
3799
|
"application/json": {
|
|
3706
3800
|
id: number;
|
|
3707
|
-
|
|
3801
|
+
/** @description Schema or dataset name in the source database */
|
|
3708
3802
|
dataset: string;
|
|
3709
3803
|
table_name: string;
|
|
3710
3804
|
description: string | null;
|
|
3711
3805
|
is_visible: boolean;
|
|
3712
|
-
tags: string[];
|
|
3713
|
-
row_count: number | null;
|
|
3714
3806
|
created_at: string;
|
|
3715
3807
|
updated_at: string;
|
|
3716
3808
|
}[];
|
|
@@ -3729,7 +3821,7 @@ declare interface operations {
|
|
|
3729
3821
|
};
|
|
3730
3822
|
};
|
|
3731
3823
|
};
|
|
3732
|
-
|
|
3824
|
+
createTable: {
|
|
3733
3825
|
parameters: {
|
|
3734
3826
|
query?: never;
|
|
3735
3827
|
header?: {
|
|
@@ -3741,13 +3833,37 @@ declare interface operations {
|
|
|
3741
3833
|
requestBody: {
|
|
3742
3834
|
content: {
|
|
3743
3835
|
"application/json": {
|
|
3836
|
+
/** @description Schema or dataset name in the source database */
|
|
3744
3837
|
dataset: string;
|
|
3745
3838
|
table_name: string;
|
|
3839
|
+
/** @default true */
|
|
3840
|
+
is_visible?: boolean;
|
|
3841
|
+
/** @description Optional RLS policy to create alongside the table */
|
|
3842
|
+
rls_policy?: {
|
|
3843
|
+
/** @description SQL condition appended to queries on this table to restrict row access. Use [var:name] for context variables and [table:name] for table references — these are auto-detected and stored as context_variables and depends_on_tables. */
|
|
3844
|
+
condition: string;
|
|
3845
|
+
/** @default true */
|
|
3846
|
+
is_active?: boolean;
|
|
3847
|
+
};
|
|
3848
|
+
/** @description Optional access rules to create alongside the table */
|
|
3849
|
+
access?: {
|
|
3850
|
+
/** @description Top-level field name in the user metadata (e.g., company_id, department_name) */
|
|
3851
|
+
context_variable: string;
|
|
3852
|
+
/**
|
|
3853
|
+
* @description Comparison operator. Must be "=" or "!=".
|
|
3854
|
+
* @enum {string}
|
|
3855
|
+
*/
|
|
3856
|
+
operator: "=" | "!=";
|
|
3857
|
+
/** @description Static value to compare against, e.g. `user_123`. */
|
|
3858
|
+
value: string;
|
|
3859
|
+
/** @default true */
|
|
3860
|
+
is_active?: boolean;
|
|
3861
|
+
}[];
|
|
3746
3862
|
};
|
|
3747
3863
|
};
|
|
3748
3864
|
};
|
|
3749
3865
|
responses: {
|
|
3750
|
-
/** @description The
|
|
3866
|
+
/** @description The created table with auto-discovered columns, RLS policy, and access rules */
|
|
3751
3867
|
201: {
|
|
3752
3868
|
headers: {
|
|
3753
3869
|
[name: string]: unknown;
|
|
@@ -3755,15 +3871,52 @@ declare interface operations {
|
|
|
3755
3871
|
content: {
|
|
3756
3872
|
"application/json": {
|
|
3757
3873
|
id: number;
|
|
3758
|
-
|
|
3874
|
+
/** @description Schema or dataset name in the source database */
|
|
3759
3875
|
dataset: string;
|
|
3760
3876
|
table_name: string;
|
|
3761
3877
|
description: string | null;
|
|
3762
3878
|
is_visible: boolean;
|
|
3763
|
-
tags: string[];
|
|
3764
|
-
row_count: number | null;
|
|
3765
3879
|
created_at: string;
|
|
3766
3880
|
updated_at: string;
|
|
3881
|
+
columns: {
|
|
3882
|
+
id: number;
|
|
3883
|
+
table_id: number;
|
|
3884
|
+
name: string;
|
|
3885
|
+
data_type: string | null;
|
|
3886
|
+
description: string | null;
|
|
3887
|
+
/** @description Whether this column is visible to end users */
|
|
3888
|
+
is_visible: boolean;
|
|
3889
|
+
/** @description Whether this column is indexed for search and filtering */
|
|
3890
|
+
is_indexed: boolean;
|
|
3891
|
+
created_at: string;
|
|
3892
|
+
updated_at: string;
|
|
3893
|
+
}[];
|
|
3894
|
+
rls_policy: {
|
|
3895
|
+
id: number;
|
|
3896
|
+
table_id: number;
|
|
3897
|
+
/** @description SQL condition appended to queries on this table to restrict row access */
|
|
3898
|
+
condition: string;
|
|
3899
|
+
/** @description Variables referenced in the condition, resolved from user context at query time */
|
|
3900
|
+
context_variables: string[];
|
|
3901
|
+
/** @description Other tables referenced by this policy's condition (for query planning) */
|
|
3902
|
+
depends_on_tables: string[];
|
|
3903
|
+
is_active: boolean;
|
|
3904
|
+
created_at: string;
|
|
3905
|
+
updated_at: string;
|
|
3906
|
+
} | null;
|
|
3907
|
+
access: {
|
|
3908
|
+
id: number;
|
|
3909
|
+
table_id: number;
|
|
3910
|
+
/** @description Top-level field name in the user metadata (e.g., company_id, department_name) */
|
|
3911
|
+
context_variable: string;
|
|
3912
|
+
/** @description Comparison operator. Must be "=" or "!=". */
|
|
3913
|
+
operator: string;
|
|
3914
|
+
/** @description Static value to compare against, e.g. `user_123`. */
|
|
3915
|
+
value: string;
|
|
3916
|
+
is_active: boolean;
|
|
3917
|
+
created_at: string;
|
|
3918
|
+
updated_at: string;
|
|
3919
|
+
}[];
|
|
3767
3920
|
};
|
|
3768
3921
|
};
|
|
3769
3922
|
};
|
|
@@ -3778,7 +3931,18 @@ declare interface operations {
|
|
|
3778
3931
|
};
|
|
3779
3932
|
};
|
|
3780
3933
|
};
|
|
3781
|
-
/** @description
|
|
3934
|
+
/** @description Table exists in source database but is not queryable (permission issue) */
|
|
3935
|
+
403: {
|
|
3936
|
+
headers: {
|
|
3937
|
+
[name: string]: unknown;
|
|
3938
|
+
};
|
|
3939
|
+
content: {
|
|
3940
|
+
"application/json": {
|
|
3941
|
+
error: string;
|
|
3942
|
+
};
|
|
3943
|
+
};
|
|
3944
|
+
};
|
|
3945
|
+
/** @description Source connector not found, or table not found in source database */
|
|
3782
3946
|
404: {
|
|
3783
3947
|
headers: {
|
|
3784
3948
|
[name: string]: unknown;
|
|
@@ -3789,7 +3953,7 @@ declare interface operations {
|
|
|
3789
3953
|
};
|
|
3790
3954
|
};
|
|
3791
3955
|
};
|
|
3792
|
-
/** @description
|
|
3956
|
+
/** @description Table with this dataset and table_name already exists */
|
|
3793
3957
|
409: {
|
|
3794
3958
|
headers: {
|
|
3795
3959
|
[name: string]: unknown;
|
|
@@ -3813,7 +3977,7 @@ declare interface operations {
|
|
|
3813
3977
|
};
|
|
3814
3978
|
};
|
|
3815
3979
|
};
|
|
3816
|
-
|
|
3980
|
+
getTable: {
|
|
3817
3981
|
parameters: {
|
|
3818
3982
|
query?: never;
|
|
3819
3983
|
header?: {
|
|
@@ -3826,7 +3990,7 @@ declare interface operations {
|
|
|
3826
3990
|
};
|
|
3827
3991
|
requestBody?: never;
|
|
3828
3992
|
responses: {
|
|
3829
|
-
/** @description The
|
|
3993
|
+
/** @description The table with columns, RLS policy, and access rules */
|
|
3830
3994
|
200: {
|
|
3831
3995
|
headers: {
|
|
3832
3996
|
[name: string]: unknown;
|
|
@@ -3834,19 +3998,56 @@ declare interface operations {
|
|
|
3834
3998
|
content: {
|
|
3835
3999
|
"application/json": {
|
|
3836
4000
|
id: number;
|
|
3837
|
-
|
|
4001
|
+
/** @description Schema or dataset name in the source database */
|
|
3838
4002
|
dataset: string;
|
|
3839
4003
|
table_name: string;
|
|
3840
4004
|
description: string | null;
|
|
3841
4005
|
is_visible: boolean;
|
|
3842
|
-
tags: string[];
|
|
3843
|
-
row_count: number | null;
|
|
3844
4006
|
created_at: string;
|
|
3845
4007
|
updated_at: string;
|
|
4008
|
+
columns: {
|
|
4009
|
+
id: number;
|
|
4010
|
+
table_id: number;
|
|
4011
|
+
name: string;
|
|
4012
|
+
data_type: string | null;
|
|
4013
|
+
description: string | null;
|
|
4014
|
+
/** @description Whether this column is visible to end users */
|
|
4015
|
+
is_visible: boolean;
|
|
4016
|
+
/** @description Whether this column is indexed for search and filtering */
|
|
4017
|
+
is_indexed: boolean;
|
|
4018
|
+
created_at: string;
|
|
4019
|
+
updated_at: string;
|
|
4020
|
+
}[];
|
|
4021
|
+
rls_policy: {
|
|
4022
|
+
id: number;
|
|
4023
|
+
table_id: number;
|
|
4024
|
+
/** @description SQL condition appended to queries on this table to restrict row access */
|
|
4025
|
+
condition: string;
|
|
4026
|
+
/** @description Variables referenced in the condition, resolved from user context at query time */
|
|
4027
|
+
context_variables: string[];
|
|
4028
|
+
/** @description Other tables referenced by this policy's condition (for query planning) */
|
|
4029
|
+
depends_on_tables: string[];
|
|
4030
|
+
is_active: boolean;
|
|
4031
|
+
created_at: string;
|
|
4032
|
+
updated_at: string;
|
|
4033
|
+
} | null;
|
|
4034
|
+
access: {
|
|
4035
|
+
id: number;
|
|
4036
|
+
table_id: number;
|
|
4037
|
+
/** @description Top-level field name in the user metadata (e.g., company_id, department_name) */
|
|
4038
|
+
context_variable: string;
|
|
4039
|
+
/** @description Comparison operator. Must be "=" or "!=". */
|
|
4040
|
+
operator: string;
|
|
4041
|
+
/** @description Static value to compare against, e.g. `user_123`. */
|
|
4042
|
+
value: string;
|
|
4043
|
+
is_active: boolean;
|
|
4044
|
+
created_at: string;
|
|
4045
|
+
updated_at: string;
|
|
4046
|
+
}[];
|
|
3846
4047
|
};
|
|
3847
4048
|
};
|
|
3848
4049
|
};
|
|
3849
|
-
/** @description
|
|
4050
|
+
/** @description Table not found */
|
|
3850
4051
|
404: {
|
|
3851
4052
|
headers: {
|
|
3852
4053
|
[name: string]: unknown;
|
|
@@ -3870,7 +4071,7 @@ declare interface operations {
|
|
|
3870
4071
|
};
|
|
3871
4072
|
};
|
|
3872
4073
|
};
|
|
3873
|
-
|
|
4074
|
+
deleteTable: {
|
|
3874
4075
|
parameters: {
|
|
3875
4076
|
query?: never;
|
|
3876
4077
|
header?: {
|
|
@@ -3883,7 +4084,7 @@ declare interface operations {
|
|
|
3883
4084
|
};
|
|
3884
4085
|
requestBody?: never;
|
|
3885
4086
|
responses: {
|
|
3886
|
-
/** @description
|
|
4087
|
+
/** @description Soft delete: sets is_visible to false. The table remains accessible via GET and LIST. */
|
|
3887
4088
|
200: {
|
|
3888
4089
|
headers: {
|
|
3889
4090
|
[name: string]: unknown;
|
|
@@ -3894,7 +4095,7 @@ declare interface operations {
|
|
|
3894
4095
|
};
|
|
3895
4096
|
};
|
|
3896
4097
|
};
|
|
3897
|
-
/** @description
|
|
4098
|
+
/** @description Table not found */
|
|
3898
4099
|
404: {
|
|
3899
4100
|
headers: {
|
|
3900
4101
|
[name: string]: unknown;
|
|
@@ -3918,7 +4119,7 @@ declare interface operations {
|
|
|
3918
4119
|
};
|
|
3919
4120
|
};
|
|
3920
4121
|
};
|
|
3921
|
-
|
|
4122
|
+
updateTable: {
|
|
3922
4123
|
parameters: {
|
|
3923
4124
|
query?: never;
|
|
3924
4125
|
header?: {
|
|
@@ -3933,13 +4134,34 @@ declare interface operations {
|
|
|
3933
4134
|
content: {
|
|
3934
4135
|
"application/json": {
|
|
3935
4136
|
description?: string;
|
|
4137
|
+
/** @description Toggle table visibility. Prefer this over deleting — hidden tables retain their metadata and can be re-enabled later. */
|
|
3936
4138
|
is_visible?: boolean;
|
|
3937
|
-
|
|
4139
|
+
/** @description Upsert the RLS policy: updates existing if found, creates if not (condition required for create) */
|
|
4140
|
+
rls_policy?: {
|
|
4141
|
+
/** @description SQL condition appended to queries on this table to restrict row access. Use [var:name] for context variables and [table:name] for table references — these are auto-detected and stored as context_variables and depends_on_tables. */
|
|
4142
|
+
condition?: string;
|
|
4143
|
+
/** @default true */
|
|
4144
|
+
is_active?: boolean;
|
|
4145
|
+
};
|
|
4146
|
+
/** @description Replace all access rules — existing rules are removed and replaced with these */
|
|
4147
|
+
access?: {
|
|
4148
|
+
/** @description Top-level field name in the user metadata (e.g., company_id, department_name) */
|
|
4149
|
+
context_variable: string;
|
|
4150
|
+
/**
|
|
4151
|
+
* @description Comparison operator. Must be "=" or "!=".
|
|
4152
|
+
* @enum {string}
|
|
4153
|
+
*/
|
|
4154
|
+
operator: "=" | "!=";
|
|
4155
|
+
/** @description Static value to compare against, e.g. `user_123`. */
|
|
4156
|
+
value: string;
|
|
4157
|
+
/** @default true */
|
|
4158
|
+
is_active?: boolean;
|
|
4159
|
+
}[];
|
|
3938
4160
|
};
|
|
3939
4161
|
};
|
|
3940
4162
|
};
|
|
3941
4163
|
responses: {
|
|
3942
|
-
/** @description Updated
|
|
4164
|
+
/** @description Updated table with columns, RLS policy, and access rules */
|
|
3943
4165
|
200: {
|
|
3944
4166
|
headers: {
|
|
3945
4167
|
[name: string]: unknown;
|
|
@@ -3947,15 +4169,52 @@ declare interface operations {
|
|
|
3947
4169
|
content: {
|
|
3948
4170
|
"application/json": {
|
|
3949
4171
|
id: number;
|
|
3950
|
-
|
|
4172
|
+
/** @description Schema or dataset name in the source database */
|
|
3951
4173
|
dataset: string;
|
|
3952
4174
|
table_name: string;
|
|
3953
4175
|
description: string | null;
|
|
3954
4176
|
is_visible: boolean;
|
|
3955
|
-
tags: string[];
|
|
3956
|
-
row_count: number | null;
|
|
3957
4177
|
created_at: string;
|
|
3958
4178
|
updated_at: string;
|
|
4179
|
+
columns: {
|
|
4180
|
+
id: number;
|
|
4181
|
+
table_id: number;
|
|
4182
|
+
name: string;
|
|
4183
|
+
data_type: string | null;
|
|
4184
|
+
description: string | null;
|
|
4185
|
+
/** @description Whether this column is visible to end users */
|
|
4186
|
+
is_visible: boolean;
|
|
4187
|
+
/** @description Whether this column is indexed for search and filtering */
|
|
4188
|
+
is_indexed: boolean;
|
|
4189
|
+
created_at: string;
|
|
4190
|
+
updated_at: string;
|
|
4191
|
+
}[];
|
|
4192
|
+
rls_policy: {
|
|
4193
|
+
id: number;
|
|
4194
|
+
table_id: number;
|
|
4195
|
+
/** @description SQL condition appended to queries on this table to restrict row access */
|
|
4196
|
+
condition: string;
|
|
4197
|
+
/** @description Variables referenced in the condition, resolved from user context at query time */
|
|
4198
|
+
context_variables: string[];
|
|
4199
|
+
/** @description Other tables referenced by this policy's condition (for query planning) */
|
|
4200
|
+
depends_on_tables: string[];
|
|
4201
|
+
is_active: boolean;
|
|
4202
|
+
created_at: string;
|
|
4203
|
+
updated_at: string;
|
|
4204
|
+
} | null;
|
|
4205
|
+
access: {
|
|
4206
|
+
id: number;
|
|
4207
|
+
table_id: number;
|
|
4208
|
+
/** @description Top-level field name in the user metadata (e.g., company_id, department_name) */
|
|
4209
|
+
context_variable: string;
|
|
4210
|
+
/** @description Comparison operator. Must be "=" or "!=". */
|
|
4211
|
+
operator: string;
|
|
4212
|
+
/** @description Static value to compare against, e.g. `user_123`. */
|
|
4213
|
+
value: string;
|
|
4214
|
+
is_active: boolean;
|
|
4215
|
+
created_at: string;
|
|
4216
|
+
updated_at: string;
|
|
4217
|
+
}[];
|
|
3959
4218
|
};
|
|
3960
4219
|
};
|
|
3961
4220
|
};
|
|
@@ -3970,7 +4229,7 @@ declare interface operations {
|
|
|
3970
4229
|
};
|
|
3971
4230
|
};
|
|
3972
4231
|
};
|
|
3973
|
-
/** @description
|
|
4232
|
+
/** @description Table not found */
|
|
3974
4233
|
404: {
|
|
3975
4234
|
headers: {
|
|
3976
4235
|
[name: string]: unknown;
|
|
@@ -3994,20 +4253,20 @@ declare interface operations {
|
|
|
3994
4253
|
};
|
|
3995
4254
|
};
|
|
3996
4255
|
};
|
|
3997
|
-
|
|
4256
|
+
listTableRls: {
|
|
3998
4257
|
parameters: {
|
|
3999
|
-
query
|
|
4000
|
-
table_id: number;
|
|
4001
|
-
};
|
|
4258
|
+
query?: never;
|
|
4002
4259
|
header?: {
|
|
4003
4260
|
"sp-access-token"?: string;
|
|
4004
4261
|
};
|
|
4005
|
-
path
|
|
4262
|
+
path: {
|
|
4263
|
+
id: number;
|
|
4264
|
+
};
|
|
4006
4265
|
cookie?: never;
|
|
4007
4266
|
};
|
|
4008
4267
|
requestBody?: never;
|
|
4009
4268
|
responses: {
|
|
4010
|
-
/** @description
|
|
4269
|
+
/** @description RLS policies for this table */
|
|
4011
4270
|
200: {
|
|
4012
4271
|
headers: {
|
|
4013
4272
|
[name: string]: unknown;
|
|
@@ -4016,14 +4275,13 @@ declare interface operations {
|
|
|
4016
4275
|
"application/json": {
|
|
4017
4276
|
id: number;
|
|
4018
4277
|
table_id: number;
|
|
4019
|
-
|
|
4020
|
-
|
|
4021
|
-
description
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
|
|
4026
|
-
is_system: boolean;
|
|
4278
|
+
/** @description SQL condition appended to queries on this table to restrict row access */
|
|
4279
|
+
condition: string;
|
|
4280
|
+
/** @description Variables referenced in the condition, resolved from user context at query time */
|
|
4281
|
+
context_variables: string[];
|
|
4282
|
+
/** @description Other tables referenced by this policy's condition (for query planning) */
|
|
4283
|
+
depends_on_tables: string[];
|
|
4284
|
+
is_active: boolean;
|
|
4027
4285
|
created_at: string;
|
|
4028
4286
|
updated_at: string;
|
|
4029
4287
|
}[];
|
|
@@ -4053,7 +4311,7 @@ declare interface operations {
|
|
|
4053
4311
|
};
|
|
4054
4312
|
};
|
|
4055
4313
|
};
|
|
4056
|
-
|
|
4314
|
+
createTableRls: {
|
|
4057
4315
|
parameters: {
|
|
4058
4316
|
query?: never;
|
|
4059
4317
|
header?: {
|
|
@@ -4064,10 +4322,19 @@ declare interface operations {
|
|
|
4064
4322
|
};
|
|
4065
4323
|
cookie?: never;
|
|
4066
4324
|
};
|
|
4067
|
-
requestBody
|
|
4325
|
+
requestBody: {
|
|
4326
|
+
content: {
|
|
4327
|
+
"application/json": {
|
|
4328
|
+
/** @description SQL condition appended to queries on this table to restrict row access. Use [var:name] for context variables and [table:name] for table references — these are auto-detected and stored as context_variables and depends_on_tables. */
|
|
4329
|
+
condition: string;
|
|
4330
|
+
/** @default true */
|
|
4331
|
+
is_active?: boolean;
|
|
4332
|
+
};
|
|
4333
|
+
};
|
|
4334
|
+
};
|
|
4068
4335
|
responses: {
|
|
4069
|
-
/** @description The
|
|
4070
|
-
|
|
4336
|
+
/** @description The created RLS policy */
|
|
4337
|
+
201: {
|
|
4071
4338
|
headers: {
|
|
4072
4339
|
[name: string]: unknown;
|
|
4073
4340
|
};
|
|
@@ -4075,20 +4342,30 @@ declare interface operations {
|
|
|
4075
4342
|
"application/json": {
|
|
4076
4343
|
id: number;
|
|
4077
4344
|
table_id: number;
|
|
4078
|
-
|
|
4079
|
-
|
|
4080
|
-
description
|
|
4081
|
-
|
|
4082
|
-
|
|
4083
|
-
|
|
4084
|
-
|
|
4085
|
-
is_system: boolean;
|
|
4345
|
+
/** @description SQL condition appended to queries on this table to restrict row access */
|
|
4346
|
+
condition: string;
|
|
4347
|
+
/** @description Variables referenced in the condition, resolved from user context at query time */
|
|
4348
|
+
context_variables: string[];
|
|
4349
|
+
/** @description Other tables referenced by this policy's condition (for query planning) */
|
|
4350
|
+
depends_on_tables: string[];
|
|
4351
|
+
is_active: boolean;
|
|
4086
4352
|
created_at: string;
|
|
4087
4353
|
updated_at: string;
|
|
4088
4354
|
};
|
|
4089
4355
|
};
|
|
4090
4356
|
};
|
|
4091
|
-
/** @description
|
|
4357
|
+
/** @description Invalid request */
|
|
4358
|
+
400: {
|
|
4359
|
+
headers: {
|
|
4360
|
+
[name: string]: unknown;
|
|
4361
|
+
};
|
|
4362
|
+
content: {
|
|
4363
|
+
"application/json": {
|
|
4364
|
+
error: string;
|
|
4365
|
+
};
|
|
4366
|
+
};
|
|
4367
|
+
};
|
|
4368
|
+
/** @description Table not found */
|
|
4092
4369
|
404: {
|
|
4093
4370
|
headers: {
|
|
4094
4371
|
[name: string]: unknown;
|
|
@@ -4112,7 +4389,7 @@ declare interface operations {
|
|
|
4112
4389
|
};
|
|
4113
4390
|
};
|
|
4114
4391
|
};
|
|
4115
|
-
|
|
4392
|
+
getTableRls: {
|
|
4116
4393
|
parameters: {
|
|
4117
4394
|
query?: never;
|
|
4118
4395
|
header?: {
|
|
@@ -4120,19 +4397,13 @@ declare interface operations {
|
|
|
4120
4397
|
};
|
|
4121
4398
|
path: {
|
|
4122
4399
|
id: number;
|
|
4400
|
+
rlsId: number;
|
|
4123
4401
|
};
|
|
4124
4402
|
cookie?: never;
|
|
4125
4403
|
};
|
|
4126
|
-
requestBody
|
|
4127
|
-
content: {
|
|
4128
|
-
"application/json": {
|
|
4129
|
-
is_visible?: boolean;
|
|
4130
|
-
is_indexed?: boolean;
|
|
4131
|
-
};
|
|
4132
|
-
};
|
|
4133
|
-
};
|
|
4404
|
+
requestBody?: never;
|
|
4134
4405
|
responses: {
|
|
4135
|
-
/** @description
|
|
4406
|
+
/** @description The RLS policy */
|
|
4136
4407
|
200: {
|
|
4137
4408
|
headers: {
|
|
4138
4409
|
[name: string]: unknown;
|
|
@@ -4141,31 +4412,19 @@ declare interface operations {
|
|
|
4141
4412
|
"application/json": {
|
|
4142
4413
|
id: number;
|
|
4143
4414
|
table_id: number;
|
|
4144
|
-
|
|
4145
|
-
|
|
4146
|
-
description
|
|
4147
|
-
|
|
4148
|
-
|
|
4149
|
-
|
|
4150
|
-
|
|
4151
|
-
is_system: boolean;
|
|
4415
|
+
/** @description SQL condition appended to queries on this table to restrict row access */
|
|
4416
|
+
condition: string;
|
|
4417
|
+
/** @description Variables referenced in the condition, resolved from user context at query time */
|
|
4418
|
+
context_variables: string[];
|
|
4419
|
+
/** @description Other tables referenced by this policy's condition (for query planning) */
|
|
4420
|
+
depends_on_tables: string[];
|
|
4421
|
+
is_active: boolean;
|
|
4152
4422
|
created_at: string;
|
|
4153
4423
|
updated_at: string;
|
|
4154
4424
|
};
|
|
4155
4425
|
};
|
|
4156
4426
|
};
|
|
4157
|
-
/** @description
|
|
4158
|
-
400: {
|
|
4159
|
-
headers: {
|
|
4160
|
-
[name: string]: unknown;
|
|
4161
|
-
};
|
|
4162
|
-
content: {
|
|
4163
|
-
"application/json": {
|
|
4164
|
-
error: string;
|
|
4165
|
-
};
|
|
4166
|
-
};
|
|
4167
|
-
};
|
|
4168
|
-
/** @description Column not found */
|
|
4427
|
+
/** @description RLS policy not found */
|
|
4169
4428
|
404: {
|
|
4170
4429
|
headers: {
|
|
4171
4430
|
[name: string]: unknown;
|
|
@@ -4189,39 +4448,40 @@ declare interface operations {
|
|
|
4189
4448
|
};
|
|
4190
4449
|
};
|
|
4191
4450
|
};
|
|
4192
|
-
|
|
4451
|
+
deleteTableRls: {
|
|
4193
4452
|
parameters: {
|
|
4194
|
-
query?:
|
|
4195
|
-
table_id?: number;
|
|
4196
|
-
};
|
|
4453
|
+
query?: never;
|
|
4197
4454
|
header?: {
|
|
4198
4455
|
"sp-access-token"?: string;
|
|
4199
4456
|
};
|
|
4200
|
-
path
|
|
4457
|
+
path: {
|
|
4458
|
+
id: number;
|
|
4459
|
+
rlsId: number;
|
|
4460
|
+
};
|
|
4201
4461
|
cookie?: never;
|
|
4202
4462
|
};
|
|
4203
4463
|
requestBody?: never;
|
|
4204
4464
|
responses: {
|
|
4205
|
-
/** @description
|
|
4465
|
+
/** @description Deletion result */
|
|
4206
4466
|
200: {
|
|
4207
4467
|
headers: {
|
|
4208
4468
|
[name: string]: unknown;
|
|
4209
4469
|
};
|
|
4210
4470
|
content: {
|
|
4211
4471
|
"application/json": {
|
|
4212
|
-
|
|
4213
|
-
|
|
4214
|
-
|
|
4215
|
-
|
|
4216
|
-
|
|
4217
|
-
|
|
4218
|
-
|
|
4219
|
-
|
|
4220
|
-
|
|
4221
|
-
|
|
4222
|
-
|
|
4223
|
-
|
|
4224
|
-
}
|
|
4472
|
+
deleted: boolean;
|
|
4473
|
+
};
|
|
4474
|
+
};
|
|
4475
|
+
};
|
|
4476
|
+
/** @description RLS policy not found */
|
|
4477
|
+
404: {
|
|
4478
|
+
headers: {
|
|
4479
|
+
[name: string]: unknown;
|
|
4480
|
+
};
|
|
4481
|
+
content: {
|
|
4482
|
+
"application/json": {
|
|
4483
|
+
error: string;
|
|
4484
|
+
};
|
|
4225
4485
|
};
|
|
4226
4486
|
};
|
|
4227
4487
|
/** @description Internal server error */
|
|
@@ -4237,47 +4497,44 @@ declare interface operations {
|
|
|
4237
4497
|
};
|
|
4238
4498
|
};
|
|
4239
4499
|
};
|
|
4240
|
-
|
|
4500
|
+
updateTableRls: {
|
|
4241
4501
|
parameters: {
|
|
4242
4502
|
query?: never;
|
|
4243
4503
|
header?: {
|
|
4244
4504
|
"sp-access-token"?: string;
|
|
4245
4505
|
};
|
|
4246
|
-
path
|
|
4506
|
+
path: {
|
|
4507
|
+
id: number;
|
|
4508
|
+
rlsId: number;
|
|
4509
|
+
};
|
|
4247
4510
|
cookie?: never;
|
|
4248
4511
|
};
|
|
4249
4512
|
requestBody: {
|
|
4250
4513
|
content: {
|
|
4251
4514
|
"application/json": {
|
|
4252
|
-
|
|
4253
|
-
condition
|
|
4254
|
-
/** @default [] */
|
|
4255
|
-
context_variables?: string[];
|
|
4256
|
-
/** @default [] */
|
|
4257
|
-
depends_on_tables?: string[];
|
|
4258
|
-
/** @default true */
|
|
4515
|
+
/** @description SQL condition appended to queries on this table to restrict row access. Use [var:name] for context variables and [table:name] for table references — these are auto-detected and stored as context_variables and depends_on_tables. */
|
|
4516
|
+
condition?: string;
|
|
4259
4517
|
is_active?: boolean;
|
|
4260
4518
|
};
|
|
4261
4519
|
};
|
|
4262
4520
|
};
|
|
4263
4521
|
responses: {
|
|
4264
|
-
/** @description
|
|
4265
|
-
|
|
4522
|
+
/** @description Updated RLS policy */
|
|
4523
|
+
200: {
|
|
4266
4524
|
headers: {
|
|
4267
4525
|
[name: string]: unknown;
|
|
4268
4526
|
};
|
|
4269
4527
|
content: {
|
|
4270
4528
|
"application/json": {
|
|
4271
4529
|
id: number;
|
|
4272
|
-
company_id: number;
|
|
4273
4530
|
table_id: number;
|
|
4274
|
-
|
|
4275
|
-
schema_name: string;
|
|
4531
|
+
/** @description SQL condition appended to queries on this table to restrict row access */
|
|
4276
4532
|
condition: string;
|
|
4533
|
+
/** @description Variables referenced in the condition, resolved from user context at query time */
|
|
4277
4534
|
context_variables: string[];
|
|
4535
|
+
/** @description Other tables referenced by this policy's condition (for query planning) */
|
|
4278
4536
|
depends_on_tables: string[];
|
|
4279
4537
|
is_active: boolean;
|
|
4280
|
-
is_removed: boolean;
|
|
4281
4538
|
created_at: string;
|
|
4282
4539
|
updated_at: string;
|
|
4283
4540
|
};
|
|
@@ -4294,7 +4551,7 @@ declare interface operations {
|
|
|
4294
4551
|
};
|
|
4295
4552
|
};
|
|
4296
4553
|
};
|
|
4297
|
-
/** @description
|
|
4554
|
+
/** @description RLS policy not found */
|
|
4298
4555
|
404: {
|
|
4299
4556
|
headers: {
|
|
4300
4557
|
[name: string]: unknown;
|
|
@@ -4318,7 +4575,7 @@ declare interface operations {
|
|
|
4318
4575
|
};
|
|
4319
4576
|
};
|
|
4320
4577
|
};
|
|
4321
|
-
|
|
4578
|
+
listTableAccess: {
|
|
4322
4579
|
parameters: {
|
|
4323
4580
|
query?: never;
|
|
4324
4581
|
header?: {
|
|
@@ -4331,7 +4588,7 @@ declare interface operations {
|
|
|
4331
4588
|
};
|
|
4332
4589
|
requestBody?: never;
|
|
4333
4590
|
responses: {
|
|
4334
|
-
/** @description
|
|
4591
|
+
/** @description Access rules for this table */
|
|
4335
4592
|
200: {
|
|
4336
4593
|
headers: {
|
|
4337
4594
|
[name: string]: unknown;
|
|
@@ -4339,21 +4596,20 @@ declare interface operations {
|
|
|
4339
4596
|
content: {
|
|
4340
4597
|
"application/json": {
|
|
4341
4598
|
id: number;
|
|
4342
|
-
company_id: number;
|
|
4343
4599
|
table_id: number;
|
|
4344
|
-
|
|
4345
|
-
|
|
4346
|
-
|
|
4347
|
-
|
|
4348
|
-
|
|
4600
|
+
/** @description Top-level field name in the user metadata (e.g., company_id, department_name) */
|
|
4601
|
+
context_variable: string;
|
|
4602
|
+
/** @description Comparison operator. Must be "=" or "!=". */
|
|
4603
|
+
operator: string;
|
|
4604
|
+
/** @description Static value to compare against, e.g. `user_123`. */
|
|
4605
|
+
value: string;
|
|
4349
4606
|
is_active: boolean;
|
|
4350
|
-
is_removed: boolean;
|
|
4351
4607
|
created_at: string;
|
|
4352
4608
|
updated_at: string;
|
|
4353
|
-
};
|
|
4609
|
+
}[];
|
|
4354
4610
|
};
|
|
4355
4611
|
};
|
|
4356
|
-
/** @description
|
|
4612
|
+
/** @description Table not found */
|
|
4357
4613
|
404: {
|
|
4358
4614
|
headers: {
|
|
4359
4615
|
[name: string]: unknown;
|
|
@@ -4377,7 +4633,7 @@ declare interface operations {
|
|
|
4377
4633
|
};
|
|
4378
4634
|
};
|
|
4379
4635
|
};
|
|
4380
|
-
|
|
4636
|
+
createTableAccess: {
|
|
4381
4637
|
parameters: {
|
|
4382
4638
|
query?: never;
|
|
4383
4639
|
header?: {
|
|
@@ -4388,20 +4644,57 @@ declare interface operations {
|
|
|
4388
4644
|
};
|
|
4389
4645
|
cookie?: never;
|
|
4390
4646
|
};
|
|
4391
|
-
requestBody
|
|
4647
|
+
requestBody: {
|
|
4648
|
+
content: {
|
|
4649
|
+
"application/json": {
|
|
4650
|
+
/** @description Top-level field name in the user metadata (e.g., company_id, department_name) */
|
|
4651
|
+
context_variable: string;
|
|
4652
|
+
/**
|
|
4653
|
+
* @description Comparison operator. Must be "=" or "!=".
|
|
4654
|
+
* @enum {string}
|
|
4655
|
+
*/
|
|
4656
|
+
operator: "=" | "!=";
|
|
4657
|
+
/** @description Static value to compare against, e.g. `user_123`. */
|
|
4658
|
+
value: string;
|
|
4659
|
+
/** @default true */
|
|
4660
|
+
is_active?: boolean;
|
|
4661
|
+
};
|
|
4662
|
+
};
|
|
4663
|
+
};
|
|
4392
4664
|
responses: {
|
|
4393
|
-
/** @description
|
|
4394
|
-
|
|
4665
|
+
/** @description The created access rule */
|
|
4666
|
+
201: {
|
|
4395
4667
|
headers: {
|
|
4396
4668
|
[name: string]: unknown;
|
|
4397
4669
|
};
|
|
4398
4670
|
content: {
|
|
4399
4671
|
"application/json": {
|
|
4400
|
-
|
|
4672
|
+
id: number;
|
|
4673
|
+
table_id: number;
|
|
4674
|
+
/** @description Top-level field name in the user metadata (e.g., company_id, department_name) */
|
|
4675
|
+
context_variable: string;
|
|
4676
|
+
/** @description Comparison operator. Must be "=" or "!=". */
|
|
4677
|
+
operator: string;
|
|
4678
|
+
/** @description Static value to compare against, e.g. `user_123`. */
|
|
4679
|
+
value: string;
|
|
4680
|
+
is_active: boolean;
|
|
4681
|
+
created_at: string;
|
|
4682
|
+
updated_at: string;
|
|
4401
4683
|
};
|
|
4402
4684
|
};
|
|
4403
4685
|
};
|
|
4404
|
-
/** @description
|
|
4686
|
+
/** @description Invalid request */
|
|
4687
|
+
400: {
|
|
4688
|
+
headers: {
|
|
4689
|
+
[name: string]: unknown;
|
|
4690
|
+
};
|
|
4691
|
+
content: {
|
|
4692
|
+
"application/json": {
|
|
4693
|
+
error: string;
|
|
4694
|
+
};
|
|
4695
|
+
};
|
|
4696
|
+
};
|
|
4697
|
+
/** @description Table not found */
|
|
4405
4698
|
404: {
|
|
4406
4699
|
headers: {
|
|
4407
4700
|
[name: string]: unknown;
|
|
@@ -4425,7 +4718,7 @@ declare interface operations {
|
|
|
4425
4718
|
};
|
|
4426
4719
|
};
|
|
4427
4720
|
};
|
|
4428
|
-
|
|
4721
|
+
getTableAccess: {
|
|
4429
4722
|
parameters: {
|
|
4430
4723
|
query?: never;
|
|
4431
4724
|
header?: {
|
|
@@ -4433,21 +4726,13 @@ declare interface operations {
|
|
|
4433
4726
|
};
|
|
4434
4727
|
path: {
|
|
4435
4728
|
id: number;
|
|
4729
|
+
accessId: number;
|
|
4436
4730
|
};
|
|
4437
4731
|
cookie?: never;
|
|
4438
4732
|
};
|
|
4439
|
-
requestBody
|
|
4440
|
-
content: {
|
|
4441
|
-
"application/json": {
|
|
4442
|
-
condition?: string;
|
|
4443
|
-
context_variables?: string[];
|
|
4444
|
-
depends_on_tables?: string[];
|
|
4445
|
-
is_active?: boolean;
|
|
4446
|
-
};
|
|
4447
|
-
};
|
|
4448
|
-
};
|
|
4733
|
+
requestBody?: never;
|
|
4449
4734
|
responses: {
|
|
4450
|
-
/** @description
|
|
4735
|
+
/** @description The access rule */
|
|
4451
4736
|
200: {
|
|
4452
4737
|
headers: {
|
|
4453
4738
|
[name: string]: unknown;
|
|
@@ -4455,32 +4740,20 @@ declare interface operations {
|
|
|
4455
4740
|
content: {
|
|
4456
4741
|
"application/json": {
|
|
4457
4742
|
id: number;
|
|
4458
|
-
company_id: number;
|
|
4459
4743
|
table_id: number;
|
|
4460
|
-
|
|
4461
|
-
|
|
4462
|
-
|
|
4463
|
-
|
|
4464
|
-
|
|
4744
|
+
/** @description Top-level field name in the user metadata (e.g., company_id, department_name) */
|
|
4745
|
+
context_variable: string;
|
|
4746
|
+
/** @description Comparison operator. Must be "=" or "!=". */
|
|
4747
|
+
operator: string;
|
|
4748
|
+
/** @description Static value to compare against, e.g. `user_123`. */
|
|
4749
|
+
value: string;
|
|
4465
4750
|
is_active: boolean;
|
|
4466
|
-
is_removed: boolean;
|
|
4467
4751
|
created_at: string;
|
|
4468
4752
|
updated_at: string;
|
|
4469
4753
|
};
|
|
4470
4754
|
};
|
|
4471
4755
|
};
|
|
4472
|
-
/** @description
|
|
4473
|
-
400: {
|
|
4474
|
-
headers: {
|
|
4475
|
-
[name: string]: unknown;
|
|
4476
|
-
};
|
|
4477
|
-
content: {
|
|
4478
|
-
"application/json": {
|
|
4479
|
-
error: string;
|
|
4480
|
-
};
|
|
4481
|
-
};
|
|
4482
|
-
};
|
|
4483
|
-
/** @description RLS policy not found */
|
|
4756
|
+
/** @description Access rule not found */
|
|
4484
4757
|
404: {
|
|
4485
4758
|
headers: {
|
|
4486
4759
|
[name: string]: unknown;
|
|
@@ -4504,36 +4777,40 @@ declare interface operations {
|
|
|
4504
4777
|
};
|
|
4505
4778
|
};
|
|
4506
4779
|
};
|
|
4507
|
-
|
|
4780
|
+
deleteTableAccess: {
|
|
4508
4781
|
parameters: {
|
|
4509
|
-
query
|
|
4510
|
-
table_id: number;
|
|
4511
|
-
};
|
|
4782
|
+
query?: never;
|
|
4512
4783
|
header?: {
|
|
4513
4784
|
"sp-access-token"?: string;
|
|
4514
4785
|
};
|
|
4515
|
-
path
|
|
4786
|
+
path: {
|
|
4787
|
+
id: number;
|
|
4788
|
+
accessId: number;
|
|
4789
|
+
};
|
|
4516
4790
|
cookie?: never;
|
|
4517
4791
|
};
|
|
4518
4792
|
requestBody?: never;
|
|
4519
4793
|
responses: {
|
|
4520
|
-
/** @description
|
|
4794
|
+
/** @description Deletion result */
|
|
4521
4795
|
200: {
|
|
4522
4796
|
headers: {
|
|
4523
4797
|
[name: string]: unknown;
|
|
4524
4798
|
};
|
|
4525
4799
|
content: {
|
|
4526
4800
|
"application/json": {
|
|
4527
|
-
|
|
4528
|
-
|
|
4529
|
-
|
|
4530
|
-
|
|
4531
|
-
|
|
4532
|
-
|
|
4533
|
-
|
|
4534
|
-
|
|
4535
|
-
|
|
4536
|
-
|
|
4801
|
+
deleted: boolean;
|
|
4802
|
+
};
|
|
4803
|
+
};
|
|
4804
|
+
};
|
|
4805
|
+
/** @description Access rule not found */
|
|
4806
|
+
404: {
|
|
4807
|
+
headers: {
|
|
4808
|
+
[name: string]: unknown;
|
|
4809
|
+
};
|
|
4810
|
+
content: {
|
|
4811
|
+
"application/json": {
|
|
4812
|
+
error: string;
|
|
4813
|
+
};
|
|
4537
4814
|
};
|
|
4538
4815
|
};
|
|
4539
4816
|
/** @description Internal server error */
|
|
@@ -4549,30 +4826,37 @@ declare interface operations {
|
|
|
4549
4826
|
};
|
|
4550
4827
|
};
|
|
4551
4828
|
};
|
|
4552
|
-
|
|
4829
|
+
updateTableAccess: {
|
|
4553
4830
|
parameters: {
|
|
4554
4831
|
query?: never;
|
|
4555
4832
|
header?: {
|
|
4556
4833
|
"sp-access-token"?: string;
|
|
4557
4834
|
};
|
|
4558
|
-
path
|
|
4835
|
+
path: {
|
|
4836
|
+
id: number;
|
|
4837
|
+
accessId: number;
|
|
4838
|
+
};
|
|
4559
4839
|
cookie?: never;
|
|
4560
4840
|
};
|
|
4561
4841
|
requestBody: {
|
|
4562
4842
|
content: {
|
|
4563
4843
|
"application/json": {
|
|
4564
|
-
|
|
4565
|
-
|
|
4566
|
-
|
|
4567
|
-
|
|
4568
|
-
|
|
4844
|
+
/** @description Top-level field name in the user metadata (e.g., company_id, department_name) */
|
|
4845
|
+
context_variable?: string;
|
|
4846
|
+
/**
|
|
4847
|
+
* @description Comparison operator. Must be "=" or "!=".
|
|
4848
|
+
* @enum {string}
|
|
4849
|
+
*/
|
|
4850
|
+
operator?: "=" | "!=";
|
|
4851
|
+
/** @description Static value to compare against, e.g. `user_123`. */
|
|
4852
|
+
value?: string;
|
|
4569
4853
|
is_active?: boolean;
|
|
4570
4854
|
};
|
|
4571
4855
|
};
|
|
4572
4856
|
};
|
|
4573
4857
|
responses: {
|
|
4574
|
-
/** @description
|
|
4575
|
-
|
|
4858
|
+
/** @description Updated access rule */
|
|
4859
|
+
200: {
|
|
4576
4860
|
headers: {
|
|
4577
4861
|
[name: string]: unknown;
|
|
4578
4862
|
};
|
|
@@ -4580,11 +4864,13 @@ declare interface operations {
|
|
|
4580
4864
|
"application/json": {
|
|
4581
4865
|
id: number;
|
|
4582
4866
|
table_id: number;
|
|
4583
|
-
|
|
4867
|
+
/** @description Top-level field name in the user metadata (e.g., company_id, department_name) */
|
|
4868
|
+
context_variable: string;
|
|
4869
|
+
/** @description Comparison operator. Must be "=" or "!=". */
|
|
4584
4870
|
operator: string;
|
|
4585
|
-
|
|
4871
|
+
/** @description Static value to compare against, e.g. `user_123`. */
|
|
4872
|
+
value: string;
|
|
4586
4873
|
is_active: boolean;
|
|
4587
|
-
is_removed: boolean;
|
|
4588
4874
|
created_at: string;
|
|
4589
4875
|
updated_at: string;
|
|
4590
4876
|
};
|
|
@@ -4601,7 +4887,7 @@ declare interface operations {
|
|
|
4601
4887
|
};
|
|
4602
4888
|
};
|
|
4603
4889
|
};
|
|
4604
|
-
/** @description
|
|
4890
|
+
/** @description Access rule not found */
|
|
4605
4891
|
404: {
|
|
4606
4892
|
headers: {
|
|
4607
4893
|
[name: string]: unknown;
|
|
@@ -4625,7 +4911,7 @@ declare interface operations {
|
|
|
4625
4911
|
};
|
|
4626
4912
|
};
|
|
4627
4913
|
};
|
|
4628
|
-
|
|
4914
|
+
listTableColumns: {
|
|
4629
4915
|
parameters: {
|
|
4630
4916
|
query?: never;
|
|
4631
4917
|
header?: {
|
|
@@ -4638,7 +4924,7 @@ declare interface operations {
|
|
|
4638
4924
|
};
|
|
4639
4925
|
requestBody?: never;
|
|
4640
4926
|
responses: {
|
|
4641
|
-
/** @description
|
|
4927
|
+
/** @description Columns for the given table */
|
|
4642
4928
|
200: {
|
|
4643
4929
|
headers: {
|
|
4644
4930
|
[name: string]: unknown;
|
|
@@ -4647,17 +4933,19 @@ declare interface operations {
|
|
|
4647
4933
|
"application/json": {
|
|
4648
4934
|
id: number;
|
|
4649
4935
|
table_id: number;
|
|
4650
|
-
|
|
4651
|
-
|
|
4652
|
-
|
|
4653
|
-
|
|
4654
|
-
|
|
4936
|
+
name: string;
|
|
4937
|
+
data_type: string | null;
|
|
4938
|
+
description: string | null;
|
|
4939
|
+
/** @description Whether this column is visible to end users */
|
|
4940
|
+
is_visible: boolean;
|
|
4941
|
+
/** @description Whether this column is indexed for search and filtering */
|
|
4942
|
+
is_indexed: boolean;
|
|
4655
4943
|
created_at: string;
|
|
4656
4944
|
updated_at: string;
|
|
4657
|
-
};
|
|
4945
|
+
}[];
|
|
4658
4946
|
};
|
|
4659
4947
|
};
|
|
4660
|
-
/** @description
|
|
4948
|
+
/** @description Table not found */
|
|
4661
4949
|
404: {
|
|
4662
4950
|
headers: {
|
|
4663
4951
|
[name: string]: unknown;
|
|
@@ -4681,7 +4969,7 @@ declare interface operations {
|
|
|
4681
4969
|
};
|
|
4682
4970
|
};
|
|
4683
4971
|
};
|
|
4684
|
-
|
|
4972
|
+
getTableColumn: {
|
|
4685
4973
|
parameters: {
|
|
4686
4974
|
query?: never;
|
|
4687
4975
|
header?: {
|
|
@@ -4689,23 +4977,34 @@ declare interface operations {
|
|
|
4689
4977
|
};
|
|
4690
4978
|
path: {
|
|
4691
4979
|
id: number;
|
|
4980
|
+
columnId: number;
|
|
4692
4981
|
};
|
|
4693
4982
|
cookie?: never;
|
|
4694
4983
|
};
|
|
4695
4984
|
requestBody?: never;
|
|
4696
4985
|
responses: {
|
|
4697
|
-
/** @description
|
|
4986
|
+
/** @description The column */
|
|
4698
4987
|
200: {
|
|
4699
4988
|
headers: {
|
|
4700
4989
|
[name: string]: unknown;
|
|
4701
4990
|
};
|
|
4702
4991
|
content: {
|
|
4703
4992
|
"application/json": {
|
|
4704
|
-
|
|
4993
|
+
id: number;
|
|
4994
|
+
table_id: number;
|
|
4995
|
+
name: string;
|
|
4996
|
+
data_type: string | null;
|
|
4997
|
+
description: string | null;
|
|
4998
|
+
/** @description Whether this column is visible to end users */
|
|
4999
|
+
is_visible: boolean;
|
|
5000
|
+
/** @description Whether this column is indexed for search and filtering */
|
|
5001
|
+
is_indexed: boolean;
|
|
5002
|
+
created_at: string;
|
|
5003
|
+
updated_at: string;
|
|
4705
5004
|
};
|
|
4706
5005
|
};
|
|
4707
5006
|
};
|
|
4708
|
-
/** @description
|
|
5007
|
+
/** @description Column not found */
|
|
4709
5008
|
404: {
|
|
4710
5009
|
headers: {
|
|
4711
5010
|
[name: string]: unknown;
|
|
@@ -4729,7 +5028,7 @@ declare interface operations {
|
|
|
4729
5028
|
};
|
|
4730
5029
|
};
|
|
4731
5030
|
};
|
|
4732
|
-
|
|
5031
|
+
updateTableColumn: {
|
|
4733
5032
|
parameters: {
|
|
4734
5033
|
query?: never;
|
|
4735
5034
|
header?: {
|
|
@@ -4737,21 +5036,22 @@ declare interface operations {
|
|
|
4737
5036
|
};
|
|
4738
5037
|
path: {
|
|
4739
5038
|
id: number;
|
|
5039
|
+
columnId: number;
|
|
4740
5040
|
};
|
|
4741
5041
|
cookie?: never;
|
|
4742
5042
|
};
|
|
4743
5043
|
requestBody: {
|
|
4744
5044
|
content: {
|
|
4745
5045
|
"application/json": {
|
|
4746
|
-
|
|
4747
|
-
|
|
4748
|
-
|
|
4749
|
-
|
|
5046
|
+
/** @description Whether this column is visible to end users */
|
|
5047
|
+
is_visible?: boolean;
|
|
5048
|
+
/** @description Whether this column is indexed for search and filtering */
|
|
5049
|
+
is_indexed?: boolean;
|
|
4750
5050
|
};
|
|
4751
5051
|
};
|
|
4752
5052
|
};
|
|
4753
5053
|
responses: {
|
|
4754
|
-
/** @description Updated
|
|
5054
|
+
/** @description Updated column */
|
|
4755
5055
|
200: {
|
|
4756
5056
|
headers: {
|
|
4757
5057
|
[name: string]: unknown;
|
|
@@ -4760,11 +5060,13 @@ declare interface operations {
|
|
|
4760
5060
|
"application/json": {
|
|
4761
5061
|
id: number;
|
|
4762
5062
|
table_id: number;
|
|
4763
|
-
|
|
4764
|
-
|
|
4765
|
-
|
|
4766
|
-
|
|
4767
|
-
|
|
5063
|
+
name: string;
|
|
5064
|
+
data_type: string | null;
|
|
5065
|
+
description: string | null;
|
|
5066
|
+
/** @description Whether this column is visible to end users */
|
|
5067
|
+
is_visible: boolean;
|
|
5068
|
+
/** @description Whether this column is indexed for search and filtering */
|
|
5069
|
+
is_indexed: boolean;
|
|
4768
5070
|
created_at: string;
|
|
4769
5071
|
updated_at: string;
|
|
4770
5072
|
};
|
|
@@ -4781,7 +5083,7 @@ declare interface operations {
|
|
|
4781
5083
|
};
|
|
4782
5084
|
};
|
|
4783
5085
|
};
|
|
4784
|
-
/** @description
|
|
5086
|
+
/** @description Column not found */
|
|
4785
5087
|
404: {
|
|
4786
5088
|
headers: {
|
|
4787
5089
|
[name: string]: unknown;
|
|
@@ -5441,132 +5743,132 @@ declare interface paths {
|
|
|
5441
5743
|
patch: operations["updateApplication"];
|
|
5442
5744
|
trace?: never;
|
|
5443
5745
|
};
|
|
5444
|
-
"/api/v1/
|
|
5746
|
+
"/api/v1/tables": {
|
|
5445
5747
|
parameters: {
|
|
5446
5748
|
query?: never;
|
|
5447
5749
|
header?: never;
|
|
5448
5750
|
path?: never;
|
|
5449
5751
|
cookie?: never;
|
|
5450
5752
|
};
|
|
5451
|
-
get: operations["
|
|
5753
|
+
get: operations["listTables"];
|
|
5452
5754
|
put?: never;
|
|
5453
|
-
post: operations["
|
|
5755
|
+
post: operations["createTable"];
|
|
5454
5756
|
delete?: never;
|
|
5455
5757
|
options?: never;
|
|
5456
5758
|
head?: never;
|
|
5457
5759
|
patch?: never;
|
|
5458
5760
|
trace?: never;
|
|
5459
5761
|
};
|
|
5460
|
-
"/api/v1/
|
|
5762
|
+
"/api/v1/tables/{id}": {
|
|
5461
5763
|
parameters: {
|
|
5462
5764
|
query?: never;
|
|
5463
5765
|
header?: never;
|
|
5464
5766
|
path?: never;
|
|
5465
5767
|
cookie?: never;
|
|
5466
5768
|
};
|
|
5467
|
-
get: operations["
|
|
5769
|
+
get: operations["getTable"];
|
|
5468
5770
|
put?: never;
|
|
5469
5771
|
post?: never;
|
|
5470
|
-
delete: operations["
|
|
5772
|
+
delete: operations["deleteTable"];
|
|
5471
5773
|
options?: never;
|
|
5472
5774
|
head?: never;
|
|
5473
|
-
patch: operations["
|
|
5775
|
+
patch: operations["updateTable"];
|
|
5474
5776
|
trace?: never;
|
|
5475
5777
|
};
|
|
5476
|
-
"/api/v1/
|
|
5778
|
+
"/api/v1/tables/{id}/rls": {
|
|
5477
5779
|
parameters: {
|
|
5478
5780
|
query?: never;
|
|
5479
5781
|
header?: never;
|
|
5480
5782
|
path?: never;
|
|
5481
5783
|
cookie?: never;
|
|
5482
5784
|
};
|
|
5483
|
-
get: operations["
|
|
5785
|
+
get: operations["listTableRls"];
|
|
5484
5786
|
put?: never;
|
|
5485
|
-
post
|
|
5787
|
+
post: operations["createTableRls"];
|
|
5486
5788
|
delete?: never;
|
|
5487
5789
|
options?: never;
|
|
5488
5790
|
head?: never;
|
|
5489
5791
|
patch?: never;
|
|
5490
5792
|
trace?: never;
|
|
5491
5793
|
};
|
|
5492
|
-
"/api/v1/
|
|
5794
|
+
"/api/v1/tables/{id}/rls/{rlsId}": {
|
|
5493
5795
|
parameters: {
|
|
5494
5796
|
query?: never;
|
|
5495
5797
|
header?: never;
|
|
5496
5798
|
path?: never;
|
|
5497
5799
|
cookie?: never;
|
|
5498
5800
|
};
|
|
5499
|
-
get: operations["
|
|
5801
|
+
get: operations["getTableRls"];
|
|
5500
5802
|
put?: never;
|
|
5501
5803
|
post?: never;
|
|
5502
|
-
delete
|
|
5804
|
+
delete: operations["deleteTableRls"];
|
|
5503
5805
|
options?: never;
|
|
5504
5806
|
head?: never;
|
|
5505
|
-
patch: operations["
|
|
5807
|
+
patch: operations["updateTableRls"];
|
|
5506
5808
|
trace?: never;
|
|
5507
5809
|
};
|
|
5508
|
-
"/api/v1/
|
|
5810
|
+
"/api/v1/tables/{id}/access": {
|
|
5509
5811
|
parameters: {
|
|
5510
5812
|
query?: never;
|
|
5511
5813
|
header?: never;
|
|
5512
5814
|
path?: never;
|
|
5513
5815
|
cookie?: never;
|
|
5514
5816
|
};
|
|
5515
|
-
get: operations["
|
|
5817
|
+
get: operations["listTableAccess"];
|
|
5516
5818
|
put?: never;
|
|
5517
|
-
post: operations["
|
|
5819
|
+
post: operations["createTableAccess"];
|
|
5518
5820
|
delete?: never;
|
|
5519
5821
|
options?: never;
|
|
5520
5822
|
head?: never;
|
|
5521
5823
|
patch?: never;
|
|
5522
5824
|
trace?: never;
|
|
5523
5825
|
};
|
|
5524
|
-
"/api/v1/
|
|
5826
|
+
"/api/v1/tables/{id}/access/{accessId}": {
|
|
5525
5827
|
parameters: {
|
|
5526
5828
|
query?: never;
|
|
5527
5829
|
header?: never;
|
|
5528
5830
|
path?: never;
|
|
5529
5831
|
cookie?: never;
|
|
5530
5832
|
};
|
|
5531
|
-
get: operations["
|
|
5833
|
+
get: operations["getTableAccess"];
|
|
5532
5834
|
put?: never;
|
|
5533
5835
|
post?: never;
|
|
5534
|
-
delete: operations["
|
|
5836
|
+
delete: operations["deleteTableAccess"];
|
|
5535
5837
|
options?: never;
|
|
5536
5838
|
head?: never;
|
|
5537
|
-
patch: operations["
|
|
5839
|
+
patch: operations["updateTableAccess"];
|
|
5538
5840
|
trace?: never;
|
|
5539
5841
|
};
|
|
5540
|
-
"/api/v1/
|
|
5842
|
+
"/api/v1/tables/{id}/columns": {
|
|
5541
5843
|
parameters: {
|
|
5542
5844
|
query?: never;
|
|
5543
5845
|
header?: never;
|
|
5544
5846
|
path?: never;
|
|
5545
5847
|
cookie?: never;
|
|
5546
5848
|
};
|
|
5547
|
-
get: operations["
|
|
5849
|
+
get: operations["listTableColumns"];
|
|
5548
5850
|
put?: never;
|
|
5549
|
-
post
|
|
5851
|
+
post?: never;
|
|
5550
5852
|
delete?: never;
|
|
5551
5853
|
options?: never;
|
|
5552
5854
|
head?: never;
|
|
5553
5855
|
patch?: never;
|
|
5554
5856
|
trace?: never;
|
|
5555
5857
|
};
|
|
5556
|
-
"/api/v1/
|
|
5858
|
+
"/api/v1/tables/{id}/columns/{columnId}": {
|
|
5557
5859
|
parameters: {
|
|
5558
5860
|
query?: never;
|
|
5559
5861
|
header?: never;
|
|
5560
5862
|
path?: never;
|
|
5561
5863
|
cookie?: never;
|
|
5562
5864
|
};
|
|
5563
|
-
get: operations["
|
|
5865
|
+
get: operations["getTableColumn"];
|
|
5564
5866
|
put?: never;
|
|
5565
5867
|
post?: never;
|
|
5566
|
-
delete
|
|
5868
|
+
delete?: never;
|
|
5567
5869
|
options?: never;
|
|
5568
5870
|
head?: never;
|
|
5569
|
-
patch: operations["
|
|
5871
|
+
patch: operations["updateTableColumn"];
|
|
5570
5872
|
trace?: never;
|
|
5571
5873
|
};
|
|
5572
5874
|
}
|