@katerai/sdk 0.10.0 → 0.11.0
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/CHANGELOG.md +31 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts.map +1 -1
- package/client.js +7 -0
- package/client.js.map +1 -1
- package/client.mjs +7 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/v1/compiler/cache.d.mts +0 -35
- package/resources/v1/compiler/cache.d.mts.map +1 -1
- package/resources/v1/compiler/cache.d.ts +0 -35
- package/resources/v1/compiler/cache.d.ts.map +1 -1
- package/resources/v1/compiler/cache.js +0 -9
- package/resources/v1/compiler/cache.js.map +1 -1
- package/resources/v1/compiler/cache.mjs +0 -9
- package/resources/v1/compiler/cache.mjs.map +1 -1
- package/resources/v1/compiler/combination.d.mts +120 -0
- package/resources/v1/compiler/combination.d.mts.map +1 -0
- package/resources/v1/compiler/combination.d.ts +120 -0
- package/resources/v1/compiler/combination.d.ts.map +1 -0
- package/resources/v1/compiler/combination.js +30 -0
- package/resources/v1/compiler/combination.js.map +1 -0
- package/resources/v1/compiler/combination.mjs +26 -0
- package/resources/v1/compiler/combination.mjs.map +1 -0
- package/resources/v1/compiler/compiler.d.mts +482 -84
- package/resources/v1/compiler/compiler.d.mts.map +1 -1
- package/resources/v1/compiler/compiler.d.ts +482 -84
- package/resources/v1/compiler/compiler.d.ts.map +1 -1
- package/resources/v1/compiler/compiler.js +26 -0
- package/resources/v1/compiler/compiler.js.map +1 -1
- package/resources/v1/compiler/compiler.mjs +26 -0
- package/resources/v1/compiler/compiler.mjs.map +1 -1
- package/resources/v1/compiler/index.d.mts +4 -2
- package/resources/v1/compiler/index.d.mts.map +1 -1
- package/resources/v1/compiler/index.d.ts +4 -2
- package/resources/v1/compiler/index.d.ts.map +1 -1
- package/resources/v1/compiler/index.js +3 -1
- package/resources/v1/compiler/index.js.map +1 -1
- package/resources/v1/compiler/index.mjs +1 -0
- package/resources/v1/compiler/index.mjs.map +1 -1
- package/resources/v1/compiler/manifest.d.mts +52 -0
- package/resources/v1/compiler/manifest.d.mts.map +1 -0
- package/resources/v1/compiler/manifest.d.ts +52 -0
- package/resources/v1/compiler/manifest.d.ts.map +1 -0
- package/resources/v1/compiler/manifest.js +29 -0
- package/resources/v1/compiler/manifest.js.map +1 -0
- package/resources/v1/compiler/manifest.mjs +25 -0
- package/resources/v1/compiler/manifest.mjs.map +1 -0
- package/resources/v1/index.d.mts +1 -1
- package/resources/v1/index.d.mts.map +1 -1
- package/resources/v1/index.d.ts +1 -1
- package/resources/v1/index.d.ts.map +1 -1
- package/resources/v1/index.js.map +1 -1
- package/resources/v1/index.mjs.map +1 -1
- package/resources/v1/tenants/tenants.d.mts +66 -10
- package/resources/v1/tenants/tenants.d.mts.map +1 -1
- package/resources/v1/tenants/tenants.d.ts +66 -10
- package/resources/v1/tenants/tenants.d.ts.map +1 -1
- package/resources/v1/tenants/tenants.js +27 -4
- package/resources/v1/tenants/tenants.js.map +1 -1
- package/resources/v1/tenants/tenants.mjs +27 -4
- package/resources/v1/tenants/tenants.mjs.map +1 -1
- package/resources/v1/v1.d.mts +2 -2
- package/resources/v1/v1.d.mts.map +1 -1
- package/resources/v1/v1.d.ts +2 -2
- package/resources/v1/v1.d.ts.map +1 -1
- package/resources/v1/v1.js.map +1 -1
- package/resources/v1/v1.mjs.map +1 -1
- package/src/client.ts +8 -0
- package/src/resources/v1/compiler/cache.ts +1 -47
- package/src/resources/v1/compiler/combination.ts +157 -0
- package/src/resources/v1/compiler/compiler.ts +633 -190
- package/src/resources/v1/compiler/index.ts +8 -1
- package/src/resources/v1/compiler/manifest.ts +80 -0
- package/src/resources/v1/index.ts +2 -0
- package/src/resources/v1/tenants/tenants.ts +99 -12
- package/src/resources/v1/v1.ts +4 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -24,16 +24,20 @@ export declare class Tenants extends APIResource {
|
|
|
24
24
|
* - tenant_key (required): Unique tenant identifier
|
|
25
25
|
* - tenant_name (optional): Human-readable name
|
|
26
26
|
* - group_names (optional): Comma-separated list of group names
|
|
27
|
+
* - Additional columns can be mapped to attributes via attribute_columns
|
|
27
28
|
*
|
|
28
29
|
* Creates new tenants and updates existing ones with new name/groups. Groups are
|
|
29
30
|
* added additively (not replaced) and auto-created if needed.
|
|
30
31
|
*
|
|
32
|
+
* Optionally processes attribute columns: values are validated against
|
|
33
|
+
* attributes.yaml, stored additively, and validation errors are non-fatal.
|
|
34
|
+
*
|
|
31
35
|
* RLS: Filtered to current client (ClientRLSDB).
|
|
32
36
|
*
|
|
33
37
|
* Raises: ValidationError: If CSV format is invalid (400)
|
|
34
38
|
* TenantCreationNotAllowedError: If tenancy type is NONE (400)
|
|
35
39
|
*/
|
|
36
|
-
importFromCsv(
|
|
40
|
+
importFromCsv(params: TenantImportFromCsvParams, options?: RequestOptions): APIPromise<ImportTenantsResponse>;
|
|
37
41
|
/**
|
|
38
42
|
* Import tenants from a warehouse table using upsert semantics.
|
|
39
43
|
*
|
|
@@ -51,7 +55,7 @@ export declare class Tenants extends APIResource {
|
|
|
51
55
|
* Raises: ConnectionNotFoundError: If the connection doesn't exist (404)
|
|
52
56
|
* TenantCreationNotAllowedError: If tenancy type is NONE (400)
|
|
53
57
|
*/
|
|
54
|
-
importFromWarehouse(
|
|
58
|
+
importFromWarehouse(params: TenantImportFromWarehouseParams, options?: RequestOptions): APIPromise<ImportTenantsResponse>;
|
|
55
59
|
}
|
|
56
60
|
/**
|
|
57
61
|
* Response model for tenant import operation.
|
|
@@ -69,6 +73,10 @@ export interface ImportTenantsResponse {
|
|
|
69
73
|
* Existing tenants updated
|
|
70
74
|
*/
|
|
71
75
|
total_updated: number;
|
|
76
|
+
/**
|
|
77
|
+
* Non-fatal attribute validation errors during import
|
|
78
|
+
*/
|
|
79
|
+
attribute_errors?: Array<ImportTenantsResponse.AttributeError>;
|
|
72
80
|
/**
|
|
73
81
|
* Tenant-specific errors
|
|
74
82
|
*/
|
|
@@ -79,6 +87,27 @@ export interface ImportTenantsResponse {
|
|
|
79
87
|
groups_created?: Array<string>;
|
|
80
88
|
}
|
|
81
89
|
export declare namespace ImportTenantsResponse {
|
|
90
|
+
/**
|
|
91
|
+
* Error for a single attribute during import.
|
|
92
|
+
*/
|
|
93
|
+
interface AttributeError {
|
|
94
|
+
/**
|
|
95
|
+
* Attribute name that failed
|
|
96
|
+
*/
|
|
97
|
+
attribute: string;
|
|
98
|
+
/**
|
|
99
|
+
* Error message
|
|
100
|
+
*/
|
|
101
|
+
error: string;
|
|
102
|
+
/**
|
|
103
|
+
* Tenant key for which attribute processing failed
|
|
104
|
+
*/
|
|
105
|
+
tenant_key: string;
|
|
106
|
+
/**
|
|
107
|
+
* Value that caused the error
|
|
108
|
+
*/
|
|
109
|
+
value: string;
|
|
110
|
+
}
|
|
82
111
|
/**
|
|
83
112
|
* Error for a single tenant during import.
|
|
84
113
|
*/
|
|
@@ -128,39 +157,66 @@ export declare namespace TenantGetTenantsSchemaResponse {
|
|
|
128
157
|
}
|
|
129
158
|
export interface TenantImportFromCsvParams {
|
|
130
159
|
/**
|
|
131
|
-
* CSV file with tenant data
|
|
160
|
+
* Body param: CSV file with tenant data
|
|
132
161
|
*/
|
|
133
162
|
file: Uploadable;
|
|
163
|
+
/**
|
|
164
|
+
* Query param
|
|
165
|
+
*/
|
|
166
|
+
source?: string | null;
|
|
167
|
+
/**
|
|
168
|
+
* Body param: JSON mapping: attribute_name -> csv_column_name
|
|
169
|
+
*/
|
|
170
|
+
attribute_columns?: string | null;
|
|
171
|
+
/**
|
|
172
|
+
* Header param
|
|
173
|
+
*/
|
|
174
|
+
'X-Kater-CLI-ID'?: string;
|
|
134
175
|
}
|
|
135
176
|
export interface TenantImportFromWarehouseParams {
|
|
136
177
|
/**
|
|
137
|
-
* Warehouse connection ID to query
|
|
178
|
+
* Body param: Warehouse connection ID to query
|
|
138
179
|
*/
|
|
139
180
|
connection_id: string;
|
|
140
181
|
/**
|
|
141
|
-
* Database name containing the tenant table
|
|
182
|
+
* Body param: Database name containing the tenant table
|
|
142
183
|
*/
|
|
143
184
|
database: string;
|
|
144
185
|
/**
|
|
145
|
-
* Schema name containing the tenant table
|
|
186
|
+
* Body param: Schema name containing the tenant table
|
|
146
187
|
*/
|
|
147
188
|
schema: string;
|
|
148
189
|
/**
|
|
149
|
-
* Table name containing tenant data
|
|
190
|
+
* Body param: Table name containing tenant data
|
|
150
191
|
*/
|
|
151
192
|
table: string;
|
|
152
193
|
/**
|
|
153
|
-
* Column name for tenant key
|
|
194
|
+
* Body param: Column name for tenant key
|
|
154
195
|
*/
|
|
155
196
|
tenant_key_column: string;
|
|
156
197
|
/**
|
|
157
|
-
*
|
|
198
|
+
* Query param
|
|
199
|
+
*/
|
|
200
|
+
source?: string | null;
|
|
201
|
+
/**
|
|
202
|
+
* Body param: Mapping of attribute names to warehouse column names for attribute
|
|
203
|
+
* import
|
|
204
|
+
*/
|
|
205
|
+
attribute_columns?: {
|
|
206
|
+
[key: string]: string;
|
|
207
|
+
} | null;
|
|
208
|
+
/**
|
|
209
|
+
* Body param: Column name for tenant group (optional)
|
|
158
210
|
*/
|
|
159
211
|
tenant_group_column?: string | null;
|
|
160
212
|
/**
|
|
161
|
-
* Column name for tenant display name (optional)
|
|
213
|
+
* Body param: Column name for tenant display name (optional)
|
|
162
214
|
*/
|
|
163
215
|
tenant_name_column?: string | null;
|
|
216
|
+
/**
|
|
217
|
+
* Header param
|
|
218
|
+
*/
|
|
219
|
+
'X-Kater-CLI-ID'?: string;
|
|
164
220
|
}
|
|
165
221
|
export declare namespace Tenants {
|
|
166
222
|
export { type ImportTenantsResponse as ImportTenantsResponse, type TenantGetTenantsSchemaResponse as TenantGetTenantsSchemaResponse, type TenantImportFromCsvParams as TenantImportFromCsvParams, type TenantImportFromWarehouseParams as TenantImportFromWarehouseParams, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tenants.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/tenants/tenants.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,kCAAkC,EAAE,MAAM,EAAE;OAC9C,EAAE,UAAU,EAAE;OACd,EAAE,KAAK,UAAU,EAAE;
|
|
1
|
+
{"version":3,"file":"tenants.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/tenants/tenants.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,kCAAkC,EAAE,MAAM,EAAE;OAC9C,EAAE,UAAU,EAAE;OACd,EAAE,KAAK,UAAU,EAAE;OAEnB,EAAE,cAAc,EAAE;AAGzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;IAE9D;;;;;;;;OAQG;IACH,gBAAgB,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,8BAA8B,CAAC;IAItF;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,aAAa,CACX,MAAM,EAAE,yBAAyB,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,qBAAqB,CAAC;IAmBpC;;;;;;;;;;;;;;;;OAgBG;IACH,mBAAmB,CACjB,MAAM,EAAE,+BAA+B,EACvC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,qBAAqB,CAAC;CAYrC;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,gBAAgB,CAAC,EAAE,KAAK,CAAC,qBAAqB,CAAC,cAAc,CAAC,CAAC;IAE/D;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,qBAAqB,CAAC,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;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB;;;OAGG;IACH,iBAAiB,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAErD;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEpC;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEnC;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAID,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,+BAA+B,IAAI,+BAA+B,GACxE,CAAC;IAEF,OAAO,EAAE,MAAM,IAAI,MAAM,EAAE,KAAK,kCAAkC,IAAI,kCAAkC,EAAE,CAAC;CAC5G"}
|
|
@@ -24,16 +24,20 @@ export declare class Tenants extends APIResource {
|
|
|
24
24
|
* - tenant_key (required): Unique tenant identifier
|
|
25
25
|
* - tenant_name (optional): Human-readable name
|
|
26
26
|
* - group_names (optional): Comma-separated list of group names
|
|
27
|
+
* - Additional columns can be mapped to attributes via attribute_columns
|
|
27
28
|
*
|
|
28
29
|
* Creates new tenants and updates existing ones with new name/groups. Groups are
|
|
29
30
|
* added additively (not replaced) and auto-created if needed.
|
|
30
31
|
*
|
|
32
|
+
* Optionally processes attribute columns: values are validated against
|
|
33
|
+
* attributes.yaml, stored additively, and validation errors are non-fatal.
|
|
34
|
+
*
|
|
31
35
|
* RLS: Filtered to current client (ClientRLSDB).
|
|
32
36
|
*
|
|
33
37
|
* Raises: ValidationError: If CSV format is invalid (400)
|
|
34
38
|
* TenantCreationNotAllowedError: If tenancy type is NONE (400)
|
|
35
39
|
*/
|
|
36
|
-
importFromCsv(
|
|
40
|
+
importFromCsv(params: TenantImportFromCsvParams, options?: RequestOptions): APIPromise<ImportTenantsResponse>;
|
|
37
41
|
/**
|
|
38
42
|
* Import tenants from a warehouse table using upsert semantics.
|
|
39
43
|
*
|
|
@@ -51,7 +55,7 @@ export declare class Tenants extends APIResource {
|
|
|
51
55
|
* Raises: ConnectionNotFoundError: If the connection doesn't exist (404)
|
|
52
56
|
* TenantCreationNotAllowedError: If tenancy type is NONE (400)
|
|
53
57
|
*/
|
|
54
|
-
importFromWarehouse(
|
|
58
|
+
importFromWarehouse(params: TenantImportFromWarehouseParams, options?: RequestOptions): APIPromise<ImportTenantsResponse>;
|
|
55
59
|
}
|
|
56
60
|
/**
|
|
57
61
|
* Response model for tenant import operation.
|
|
@@ -69,6 +73,10 @@ export interface ImportTenantsResponse {
|
|
|
69
73
|
* Existing tenants updated
|
|
70
74
|
*/
|
|
71
75
|
total_updated: number;
|
|
76
|
+
/**
|
|
77
|
+
* Non-fatal attribute validation errors during import
|
|
78
|
+
*/
|
|
79
|
+
attribute_errors?: Array<ImportTenantsResponse.AttributeError>;
|
|
72
80
|
/**
|
|
73
81
|
* Tenant-specific errors
|
|
74
82
|
*/
|
|
@@ -79,6 +87,27 @@ export interface ImportTenantsResponse {
|
|
|
79
87
|
groups_created?: Array<string>;
|
|
80
88
|
}
|
|
81
89
|
export declare namespace ImportTenantsResponse {
|
|
90
|
+
/**
|
|
91
|
+
* Error for a single attribute during import.
|
|
92
|
+
*/
|
|
93
|
+
interface AttributeError {
|
|
94
|
+
/**
|
|
95
|
+
* Attribute name that failed
|
|
96
|
+
*/
|
|
97
|
+
attribute: string;
|
|
98
|
+
/**
|
|
99
|
+
* Error message
|
|
100
|
+
*/
|
|
101
|
+
error: string;
|
|
102
|
+
/**
|
|
103
|
+
* Tenant key for which attribute processing failed
|
|
104
|
+
*/
|
|
105
|
+
tenant_key: string;
|
|
106
|
+
/**
|
|
107
|
+
* Value that caused the error
|
|
108
|
+
*/
|
|
109
|
+
value: string;
|
|
110
|
+
}
|
|
82
111
|
/**
|
|
83
112
|
* Error for a single tenant during import.
|
|
84
113
|
*/
|
|
@@ -128,39 +157,66 @@ export declare namespace TenantGetTenantsSchemaResponse {
|
|
|
128
157
|
}
|
|
129
158
|
export interface TenantImportFromCsvParams {
|
|
130
159
|
/**
|
|
131
|
-
* CSV file with tenant data
|
|
160
|
+
* Body param: CSV file with tenant data
|
|
132
161
|
*/
|
|
133
162
|
file: Uploadable;
|
|
163
|
+
/**
|
|
164
|
+
* Query param
|
|
165
|
+
*/
|
|
166
|
+
source?: string | null;
|
|
167
|
+
/**
|
|
168
|
+
* Body param: JSON mapping: attribute_name -> csv_column_name
|
|
169
|
+
*/
|
|
170
|
+
attribute_columns?: string | null;
|
|
171
|
+
/**
|
|
172
|
+
* Header param
|
|
173
|
+
*/
|
|
174
|
+
'X-Kater-CLI-ID'?: string;
|
|
134
175
|
}
|
|
135
176
|
export interface TenantImportFromWarehouseParams {
|
|
136
177
|
/**
|
|
137
|
-
* Warehouse connection ID to query
|
|
178
|
+
* Body param: Warehouse connection ID to query
|
|
138
179
|
*/
|
|
139
180
|
connection_id: string;
|
|
140
181
|
/**
|
|
141
|
-
* Database name containing the tenant table
|
|
182
|
+
* Body param: Database name containing the tenant table
|
|
142
183
|
*/
|
|
143
184
|
database: string;
|
|
144
185
|
/**
|
|
145
|
-
* Schema name containing the tenant table
|
|
186
|
+
* Body param: Schema name containing the tenant table
|
|
146
187
|
*/
|
|
147
188
|
schema: string;
|
|
148
189
|
/**
|
|
149
|
-
* Table name containing tenant data
|
|
190
|
+
* Body param: Table name containing tenant data
|
|
150
191
|
*/
|
|
151
192
|
table: string;
|
|
152
193
|
/**
|
|
153
|
-
* Column name for tenant key
|
|
194
|
+
* Body param: Column name for tenant key
|
|
154
195
|
*/
|
|
155
196
|
tenant_key_column: string;
|
|
156
197
|
/**
|
|
157
|
-
*
|
|
198
|
+
* Query param
|
|
199
|
+
*/
|
|
200
|
+
source?: string | null;
|
|
201
|
+
/**
|
|
202
|
+
* Body param: Mapping of attribute names to warehouse column names for attribute
|
|
203
|
+
* import
|
|
204
|
+
*/
|
|
205
|
+
attribute_columns?: {
|
|
206
|
+
[key: string]: string;
|
|
207
|
+
} | null;
|
|
208
|
+
/**
|
|
209
|
+
* Body param: Column name for tenant group (optional)
|
|
158
210
|
*/
|
|
159
211
|
tenant_group_column?: string | null;
|
|
160
212
|
/**
|
|
161
|
-
* Column name for tenant display name (optional)
|
|
213
|
+
* Body param: Column name for tenant display name (optional)
|
|
162
214
|
*/
|
|
163
215
|
tenant_name_column?: string | null;
|
|
216
|
+
/**
|
|
217
|
+
* Header param
|
|
218
|
+
*/
|
|
219
|
+
'X-Kater-CLI-ID'?: string;
|
|
164
220
|
}
|
|
165
221
|
export declare namespace Tenants {
|
|
166
222
|
export { type ImportTenantsResponse as ImportTenantsResponse, type TenantGetTenantsSchemaResponse as TenantGetTenantsSchemaResponse, type TenantImportFromCsvParams as TenantImportFromCsvParams, type TenantImportFromWarehouseParams as TenantImportFromWarehouseParams, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tenants.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/tenants/tenants.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,kCAAkC,EAAE,MAAM,EAAE;OAC9C,EAAE,UAAU,EAAE;OACd,EAAE,KAAK,UAAU,EAAE;
|
|
1
|
+
{"version":3,"file":"tenants.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/tenants/tenants.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,kCAAkC,EAAE,MAAM,EAAE;OA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AAI,CAAC;IAEpC;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEnC;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAID,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,+BAA+B,IAAI,+BAA+B,GACxE,CAAC;IAEF,OAAO,EAAE,MAAM,IAAI,MAAM,EAAE,KAAK,kCAAkC,IAAI,kCAAkC,EAAE,CAAC;CAC5G"}
|
|
@@ -6,6 +6,7 @@ const tslib_1 = require("../../../internal/tslib.js");
|
|
|
6
6
|
const resource_1 = require("../../../core/resource.js");
|
|
7
7
|
const GroupsAPI = tslib_1.__importStar(require("./groups.js"));
|
|
8
8
|
const groups_1 = require("./groups.js");
|
|
9
|
+
const headers_1 = require("../../../internal/headers.js");
|
|
9
10
|
const uploads_1 = require("../../../internal/uploads.js");
|
|
10
11
|
class Tenants extends resource_1.APIResource {
|
|
11
12
|
constructor() {
|
|
@@ -32,17 +33,30 @@ class Tenants extends resource_1.APIResource {
|
|
|
32
33
|
* - tenant_key (required): Unique tenant identifier
|
|
33
34
|
* - tenant_name (optional): Human-readable name
|
|
34
35
|
* - group_names (optional): Comma-separated list of group names
|
|
36
|
+
* - Additional columns can be mapped to attributes via attribute_columns
|
|
35
37
|
*
|
|
36
38
|
* Creates new tenants and updates existing ones with new name/groups. Groups are
|
|
37
39
|
* added additively (not replaced) and auto-created if needed.
|
|
38
40
|
*
|
|
41
|
+
* Optionally processes attribute columns: values are validated against
|
|
42
|
+
* attributes.yaml, stored additively, and validation errors are non-fatal.
|
|
43
|
+
*
|
|
39
44
|
* RLS: Filtered to current client (ClientRLSDB).
|
|
40
45
|
*
|
|
41
46
|
* Raises: ValidationError: If CSV format is invalid (400)
|
|
42
47
|
* TenantCreationNotAllowedError: If tenancy type is NONE (400)
|
|
43
48
|
*/
|
|
44
|
-
importFromCsv(
|
|
45
|
-
|
|
49
|
+
importFromCsv(params, options) {
|
|
50
|
+
const { source, 'X-Kater-CLI-ID': xKaterCliID, ...body } = params;
|
|
51
|
+
return this._client.post('/api/v1/tenants/import/csv', (0, uploads_1.multipartFormRequestOptions)({
|
|
52
|
+
query: { source },
|
|
53
|
+
body,
|
|
54
|
+
...options,
|
|
55
|
+
headers: (0, headers_1.buildHeaders)([
|
|
56
|
+
{ ...(xKaterCliID != null ? { 'X-Kater-CLI-ID': xKaterCliID } : undefined) },
|
|
57
|
+
options?.headers,
|
|
58
|
+
]),
|
|
59
|
+
}, this._client));
|
|
46
60
|
}
|
|
47
61
|
/**
|
|
48
62
|
* Import tenants from a warehouse table using upsert semantics.
|
|
@@ -61,8 +75,17 @@ class Tenants extends resource_1.APIResource {
|
|
|
61
75
|
* Raises: ConnectionNotFoundError: If the connection doesn't exist (404)
|
|
62
76
|
* TenantCreationNotAllowedError: If tenancy type is NONE (400)
|
|
63
77
|
*/
|
|
64
|
-
importFromWarehouse(
|
|
65
|
-
|
|
78
|
+
importFromWarehouse(params, options) {
|
|
79
|
+
const { source, 'X-Kater-CLI-ID': xKaterCliID, ...body } = params;
|
|
80
|
+
return this._client.post('/api/v1/tenants/import/warehouse', {
|
|
81
|
+
query: { source },
|
|
82
|
+
body,
|
|
83
|
+
...options,
|
|
84
|
+
headers: (0, headers_1.buildHeaders)([
|
|
85
|
+
{ ...(xKaterCliID != null ? { 'X-Kater-CLI-ID': xKaterCliID } : undefined) },
|
|
86
|
+
options?.headers,
|
|
87
|
+
]),
|
|
88
|
+
});
|
|
66
89
|
}
|
|
67
90
|
}
|
|
68
91
|
exports.Tenants = Tenants;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tenants.js","sourceRoot":"","sources":["../../../src/resources/v1/tenants/tenants.ts"],"names":[],"mappings":";AAAA,sFAAsF;;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AM,CAAC;QAClE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kCAAkC,EAAE;YAC3D,KAAK,EAAE,EAAE,MAAM,EAAE;YACjB,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB,EAAE,GAAG,CAAC,WAAW,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,gBAAgB,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE;gBAC5E,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF;AA3FD,0BA2FC;AAiMD,OAAO,CAAC,MAAM,GAAG,eAAM,CAAC"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { APIResource } from "../../../core/resource.mjs";
|
|
3
3
|
import * as GroupsAPI from "./groups.mjs";
|
|
4
4
|
import { Groups } from "./groups.mjs";
|
|
5
|
+
import { buildHeaders } from "../../../internal/headers.mjs";
|
|
5
6
|
import { multipartFormRequestOptions } from "../../../internal/uploads.mjs";
|
|
6
7
|
export class Tenants extends APIResource {
|
|
7
8
|
constructor() {
|
|
@@ -28,17 +29,30 @@ export class Tenants extends APIResource {
|
|
|
28
29
|
* - tenant_key (required): Unique tenant identifier
|
|
29
30
|
* - tenant_name (optional): Human-readable name
|
|
30
31
|
* - group_names (optional): Comma-separated list of group names
|
|
32
|
+
* - Additional columns can be mapped to attributes via attribute_columns
|
|
31
33
|
*
|
|
32
34
|
* Creates new tenants and updates existing ones with new name/groups. Groups are
|
|
33
35
|
* added additively (not replaced) and auto-created if needed.
|
|
34
36
|
*
|
|
37
|
+
* Optionally processes attribute columns: values are validated against
|
|
38
|
+
* attributes.yaml, stored additively, and validation errors are non-fatal.
|
|
39
|
+
*
|
|
35
40
|
* RLS: Filtered to current client (ClientRLSDB).
|
|
36
41
|
*
|
|
37
42
|
* Raises: ValidationError: If CSV format is invalid (400)
|
|
38
43
|
* TenantCreationNotAllowedError: If tenancy type is NONE (400)
|
|
39
44
|
*/
|
|
40
|
-
importFromCsv(
|
|
41
|
-
|
|
45
|
+
importFromCsv(params, options) {
|
|
46
|
+
const { source, 'X-Kater-CLI-ID': xKaterCliID, ...body } = params;
|
|
47
|
+
return this._client.post('/api/v1/tenants/import/csv', multipartFormRequestOptions({
|
|
48
|
+
query: { source },
|
|
49
|
+
body,
|
|
50
|
+
...options,
|
|
51
|
+
headers: buildHeaders([
|
|
52
|
+
{ ...(xKaterCliID != null ? { 'X-Kater-CLI-ID': xKaterCliID } : undefined) },
|
|
53
|
+
options?.headers,
|
|
54
|
+
]),
|
|
55
|
+
}, this._client));
|
|
42
56
|
}
|
|
43
57
|
/**
|
|
44
58
|
* Import tenants from a warehouse table using upsert semantics.
|
|
@@ -57,8 +71,17 @@ export class Tenants extends APIResource {
|
|
|
57
71
|
* Raises: ConnectionNotFoundError: If the connection doesn't exist (404)
|
|
58
72
|
* TenantCreationNotAllowedError: If tenancy type is NONE (400)
|
|
59
73
|
*/
|
|
60
|
-
importFromWarehouse(
|
|
61
|
-
|
|
74
|
+
importFromWarehouse(params, options) {
|
|
75
|
+
const { source, 'X-Kater-CLI-ID': xKaterCliID, ...body } = params;
|
|
76
|
+
return this._client.post('/api/v1/tenants/import/warehouse', {
|
|
77
|
+
query: { source },
|
|
78
|
+
body,
|
|
79
|
+
...options,
|
|
80
|
+
headers: buildHeaders([
|
|
81
|
+
{ ...(xKaterCliID != null ? { 'X-Kater-CLI-ID': xKaterCliID } : undefined) },
|
|
82
|
+
options?.headers,
|
|
83
|
+
]),
|
|
84
|
+
});
|
|
62
85
|
}
|
|
63
86
|
}
|
|
64
87
|
Tenants.Groups = Groups;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tenants.mjs","sourceRoot":"","sources":["../../../src/resources/v1/tenants/tenants.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAsC,MAAM,E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C;QAClE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kCAAkC,EAAE;YAC3D,KAAK,EAAE,EAAE,MAAM,EAAE;YACjB,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB,EAAE,GAAG,CAAC,WAAW,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,gBAAgB,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE;gBAC5E,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF;AAiMD,OAAO,CAAC,MAAM,GAAG,MAAM,CAAC"}
|
package/resources/v1/v1.d.mts
CHANGED
|
@@ -2,7 +2,7 @@ import { APIResource } from "../../core/resource.mjs";
|
|
|
2
2
|
import * as ConnectionsAPI from "./connections.mjs";
|
|
3
3
|
import { Connection, ConnectionListConnectionsParams, ConnectionListConnectionsResponse, Connections } from "./connections.mjs";
|
|
4
4
|
import * as CompilerAPI from "./compiler/compiler.mjs";
|
|
5
|
-
import { ChartConfig, Compiler, CompilerCompileParams, CompilerCompileResponse, CompilerEnumerateParams, CompilerEnumerateResponse, CompilerErrorItem, CompilerExecuteParams, CompilerExecuteResponse, CompilerResolveParams, CompilerResolveResponse, CompilerValidateParams, CompilerValidateResponse, InlineField, Manifest, ManifestEntry, RefWithLabel, SubqueryCondition } from "./compiler/compiler.mjs";
|
|
5
|
+
import { ChartConfig, Compiler, CompilerCompileDashboardParams, CompilerCompileDashboardResponse, CompilerCompileParams, CompilerCompileResponse, CompilerEnumerateParams, CompilerEnumerateResponse, CompilerErrorItem, CompilerExecuteParams, CompilerExecuteResponse, CompilerResolveParams, CompilerResolveResponse, CompilerValidateParams, CompilerValidateResponse, InlineField, Manifest, ManifestEntry, RefWithLabel, SubqueryCondition } from "./compiler/compiler.mjs";
|
|
6
6
|
import * as TenantsAPI from "./tenants/tenants.mjs";
|
|
7
7
|
import { ImportTenantsResponse, TenantGetTenantsSchemaResponse, TenantImportFromCsvParams, TenantImportFromWarehouseParams, Tenants } from "./tenants/tenants.mjs";
|
|
8
8
|
export declare class V1 extends APIResource {
|
|
@@ -11,7 +11,7 @@ export declare class V1 extends APIResource {
|
|
|
11
11
|
tenants: TenantsAPI.Tenants;
|
|
12
12
|
}
|
|
13
13
|
export declare namespace V1 {
|
|
14
|
-
export { Compiler as Compiler, type ChartConfig as ChartConfig, type CompilerErrorItem as CompilerErrorItem, type InlineField as InlineField, type Manifest as Manifest, type ManifestEntry as ManifestEntry, type RefWithLabel as RefWithLabel, type SubqueryCondition as SubqueryCondition, type CompilerCompileResponse as CompilerCompileResponse, type CompilerEnumerateResponse as CompilerEnumerateResponse, type CompilerExecuteResponse as CompilerExecuteResponse, type CompilerResolveResponse as CompilerResolveResponse, type CompilerValidateResponse as CompilerValidateResponse, type CompilerCompileParams as CompilerCompileParams, type CompilerEnumerateParams as CompilerEnumerateParams, type CompilerExecuteParams as CompilerExecuteParams, type CompilerResolveParams as CompilerResolveParams, type CompilerValidateParams as CompilerValidateParams, };
|
|
14
|
+
export { Compiler as Compiler, type ChartConfig as ChartConfig, type CompilerErrorItem as CompilerErrorItem, type InlineField as InlineField, type Manifest as Manifest, type ManifestEntry as ManifestEntry, type RefWithLabel as RefWithLabel, type SubqueryCondition as SubqueryCondition, type CompilerCompileResponse as CompilerCompileResponse, type CompilerCompileDashboardResponse as CompilerCompileDashboardResponse, type CompilerEnumerateResponse as CompilerEnumerateResponse, type CompilerExecuteResponse as CompilerExecuteResponse, type CompilerResolveResponse as CompilerResolveResponse, type CompilerValidateResponse as CompilerValidateResponse, type CompilerCompileParams as CompilerCompileParams, type CompilerCompileDashboardParams as CompilerCompileDashboardParams, type CompilerEnumerateParams as CompilerEnumerateParams, type CompilerExecuteParams as CompilerExecuteParams, type CompilerResolveParams as CompilerResolveParams, type CompilerValidateParams as CompilerValidateParams, };
|
|
15
15
|
export { Connections as Connections, type Connection as Connection, type ConnectionListConnectionsResponse as ConnectionListConnectionsResponse, type ConnectionListConnectionsParams as ConnectionListConnectionsParams, };
|
|
16
16
|
export { Tenants as Tenants, type ImportTenantsResponse as ImportTenantsResponse, type TenantGetTenantsSchemaResponse as TenantGetTenantsSchemaResponse, type TenantImportFromCsvParams as TenantImportFromCsvParams, type TenantImportFromWarehouseParams as TenantImportFromWarehouseParams, };
|
|
17
17
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v1.d.mts","sourceRoot":"","sources":["../../src/resources/v1/v1.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,cAAc;OACnB,EACL,UAAU,EACV,+BAA+B,EAC/B,iCAAiC,EACjC,WAAW,EACZ;OACM,KAAK,WAAW;OAChB,EACL,WAAW,EACX,QAAQ,EACR,qBAAqB,EACrB,uBAAuB,EACvB,uBAAuB,EACvB,yBAAyB,EACzB,iBAAiB,EACjB,qBAAqB,EACrB,uBAAuB,EACvB,qBAAqB,EACrB,uBAAuB,EACvB,sBAAsB,EACtB,wBAAwB,EACxB,WAAW,EACX,QAAQ,EACR,aAAa,EACb,YAAY,EACZ,iBAAiB,EAClB;OACM,KAAK,UAAU;OACf,EACL,qBAAqB,EACrB,8BAA8B,EAC9B,yBAAyB,EACzB,+BAA+B,EAC/B,OAAO,EACR;AAED,qBAAa,EAAG,SAAQ,WAAW;IACjC,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0C;IACxE,WAAW,EAAE,cAAc,CAAC,WAAW,CAAgD;IACvF,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;CACpE;AAMD,MAAM,CAAC,OAAO,WAAW,EAAE,CAAC;IAC1B,OAAO,EACL,QAAQ,IAAI,QAAQ,EACpB,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,QAAQ,IAAI,QAAQ,EACzB,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,YA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,qBAAqB,EACnD,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,+BAA+B,IAAI,+BAA+B,GACxE,CAAC;CACH"}
|
package/resources/v1/v1.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { APIResource } from "../../core/resource.js";
|
|
|
2
2
|
import * as ConnectionsAPI from "./connections.js";
|
|
3
3
|
import { Connection, ConnectionListConnectionsParams, ConnectionListConnectionsResponse, Connections } from "./connections.js";
|
|
4
4
|
import * as CompilerAPI from "./compiler/compiler.js";
|
|
5
|
-
import { ChartConfig, Compiler, CompilerCompileParams, CompilerCompileResponse, CompilerEnumerateParams, CompilerEnumerateResponse, CompilerErrorItem, CompilerExecuteParams, CompilerExecuteResponse, CompilerResolveParams, CompilerResolveResponse, CompilerValidateParams, CompilerValidateResponse, InlineField, Manifest, ManifestEntry, RefWithLabel, SubqueryCondition } from "./compiler/compiler.js";
|
|
5
|
+
import { ChartConfig, Compiler, CompilerCompileDashboardParams, CompilerCompileDashboardResponse, CompilerCompileParams, CompilerCompileResponse, CompilerEnumerateParams, CompilerEnumerateResponse, CompilerErrorItem, CompilerExecuteParams, CompilerExecuteResponse, CompilerResolveParams, CompilerResolveResponse, CompilerValidateParams, CompilerValidateResponse, InlineField, Manifest, ManifestEntry, RefWithLabel, SubqueryCondition } from "./compiler/compiler.js";
|
|
6
6
|
import * as TenantsAPI from "./tenants/tenants.js";
|
|
7
7
|
import { ImportTenantsResponse, TenantGetTenantsSchemaResponse, TenantImportFromCsvParams, TenantImportFromWarehouseParams, Tenants } from "./tenants/tenants.js";
|
|
8
8
|
export declare class V1 extends APIResource {
|
|
@@ -11,7 +11,7 @@ export declare class V1 extends APIResource {
|
|
|
11
11
|
tenants: TenantsAPI.Tenants;
|
|
12
12
|
}
|
|
13
13
|
export declare namespace V1 {
|
|
14
|
-
export { Compiler as Compiler, type ChartConfig as ChartConfig, type CompilerErrorItem as CompilerErrorItem, type InlineField as InlineField, type Manifest as Manifest, type ManifestEntry as ManifestEntry, type RefWithLabel as RefWithLabel, type SubqueryCondition as SubqueryCondition, type CompilerCompileResponse as CompilerCompileResponse, type CompilerEnumerateResponse as CompilerEnumerateResponse, type CompilerExecuteResponse as CompilerExecuteResponse, type CompilerResolveResponse as CompilerResolveResponse, type CompilerValidateResponse as CompilerValidateResponse, type CompilerCompileParams as CompilerCompileParams, type CompilerEnumerateParams as CompilerEnumerateParams, type CompilerExecuteParams as CompilerExecuteParams, type CompilerResolveParams as CompilerResolveParams, type CompilerValidateParams as CompilerValidateParams, };
|
|
14
|
+
export { Compiler as Compiler, type ChartConfig as ChartConfig, type CompilerErrorItem as CompilerErrorItem, type InlineField as InlineField, type Manifest as Manifest, type ManifestEntry as ManifestEntry, type RefWithLabel as RefWithLabel, type SubqueryCondition as SubqueryCondition, type CompilerCompileResponse as CompilerCompileResponse, type CompilerCompileDashboardResponse as CompilerCompileDashboardResponse, type CompilerEnumerateResponse as CompilerEnumerateResponse, type CompilerExecuteResponse as CompilerExecuteResponse, type CompilerResolveResponse as CompilerResolveResponse, type CompilerValidateResponse as CompilerValidateResponse, type CompilerCompileParams as CompilerCompileParams, type CompilerCompileDashboardParams as CompilerCompileDashboardParams, type CompilerEnumerateParams as CompilerEnumerateParams, type CompilerExecuteParams as CompilerExecuteParams, type CompilerResolveParams as CompilerResolveParams, type CompilerValidateParams as CompilerValidateParams, };
|
|
15
15
|
export { Connections as Connections, type Connection as Connection, type ConnectionListConnectionsResponse as ConnectionListConnectionsResponse, type ConnectionListConnectionsParams as ConnectionListConnectionsParams, };
|
|
16
16
|
export { Tenants as Tenants, type ImportTenantsResponse as ImportTenantsResponse, type TenantGetTenantsSchemaResponse as TenantGetTenantsSchemaResponse, type TenantImportFromCsvParams as TenantImportFromCsvParams, type TenantImportFromWarehouseParams as TenantImportFromWarehouseParams, };
|
|
17
17
|
}
|
package/resources/v1/v1.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
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AA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,yEAAgD;AAChD,kDAKuB;AACvB,4EAAmD;AACnD,
|
|
1
|
+
{"version":3,"file":"v1.js","sourceRoot":"","sources":["../../src/resources/v1/v1.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,yEAAgD;AAChD,kDAKuB;AACvB,4EAAmD;AACnD,qDAqB6B;AAC7B,yEAAgD;AAChD,kDAM2B;AAE3B,MAAa,EAAG,SAAQ,sBAAW;IAAnC;;QACE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACvF,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACrE,CAAC;CAAA;AAJD,gBAIC;AAED,EAAE,CAAC,QAAQ,GAAG,mBAAQ,CAAC;AACvB,EAAE,CAAC,WAAW,GAAG,yBAAW,CAAC;AAC7B,EAAE,CAAC,OAAO,GAAG,iBAAO,CAAC"}
|
package/resources/v1/v1.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v1.mjs","sourceRoot":"","sources":["../../src/resources/v1/v1.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,cAAc;OACnB,EAIL,WAAW,GACZ;OACM,KAAK,WAAW;OAChB,EAEL,QAAQ,
|
|
1
|
+
{"version":3,"file":"v1.mjs","sourceRoot":"","sources":["../../src/resources/v1/v1.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,cAAc;OACnB,EAIL,WAAW,GACZ;OACM,KAAK,WAAW;OAChB,EAEL,QAAQ,GAmBT;OACM,KAAK,UAAU;OACf,EAKL,OAAO,GACR;AAED,MAAM,OAAO,EAAG,SAAQ,WAAW;IAAnC;;QACE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACvF,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACrE,CAAC;CAAA;AAED,EAAE,CAAC,QAAQ,GAAG,QAAQ,CAAC;AACvB,EAAE,CAAC,WAAW,GAAG,WAAW,CAAC;AAC7B,EAAE,CAAC,OAAO,GAAG,OAAO,CAAC"}
|
package/src/client.ts
CHANGED
|
@@ -732,6 +732,14 @@ export class Kater {
|
|
|
732
732
|
(Symbol.iterator in body && 'next' in body && typeof body.next === 'function'))
|
|
733
733
|
) {
|
|
734
734
|
return { bodyHeaders: undefined, body: Shims.ReadableStreamFrom(body as AsyncIterable<Uint8Array>) };
|
|
735
|
+
} else if (
|
|
736
|
+
typeof body === 'object' &&
|
|
737
|
+
headers.values.get('content-type') === 'application/x-www-form-urlencoded'
|
|
738
|
+
) {
|
|
739
|
+
return {
|
|
740
|
+
bodyHeaders: { 'content-type': 'application/x-www-form-urlencoded' },
|
|
741
|
+
body: this.stringifyQuery(body as Record<string, unknown>),
|
|
742
|
+
};
|
|
735
743
|
} else {
|
|
736
744
|
return this.#encoder({ body, headers });
|
|
737
745
|
}
|
|
@@ -1,51 +1,5 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../../core/resource';
|
|
4
|
-
import { APIPromise } from '../../../core/api-promise';
|
|
5
|
-
import { RequestOptions } from '../../../internal/request-options';
|
|
6
4
|
|
|
7
|
-
export class Cache extends APIResource {
|
|
8
|
-
/**
|
|
9
|
-
* Invalidate cache entries scoped by client, tenant, or connection.
|
|
10
|
-
*
|
|
11
|
-
* The caller's client_id must match the request client_id (auth scoping). No
|
|
12
|
-
* cross-client invalidation is permitted.
|
|
13
|
-
*/
|
|
14
|
-
invalidate(body: CacheInvalidateParams, options?: RequestOptions): APIPromise<CacheInvalidateResponse> {
|
|
15
|
-
return this._client.post('/api/v1/compiler/cache/invalidate', { body, ...options });
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Response from cache invalidation.
|
|
21
|
-
*/
|
|
22
|
-
export interface CacheInvalidateResponse {
|
|
23
|
-
/**
|
|
24
|
-
* Number of cache entries removed
|
|
25
|
-
*/
|
|
26
|
-
entries_invalidated: number;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export interface CacheInvalidateParams {
|
|
30
|
-
/**
|
|
31
|
-
* Client ID to invalidate cache entries for (mandatory)
|
|
32
|
-
*/
|
|
33
|
-
client_id: string;
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* Optional connection ID for connection-scoped invalidation
|
|
37
|
-
*/
|
|
38
|
-
connection_id?: string | null;
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* Optional tenant ID for tenant-scoped invalidation
|
|
42
|
-
*/
|
|
43
|
-
tenant_id?: string | null;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export declare namespace Cache {
|
|
47
|
-
export {
|
|
48
|
-
type CacheInvalidateResponse as CacheInvalidateResponse,
|
|
49
|
-
type CacheInvalidateParams as CacheInvalidateParams,
|
|
50
|
-
};
|
|
51
|
-
}
|
|
5
|
+
export class Cache extends APIResource {}
|