@to11ai/sdk 2.1.0-rc.2 → 2.1.0-rc.3
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/generated/types.gen.d.ts +8 -6
- package/dist/generated/zod.gen.d.ts +16 -20
- package/dist/projectEnvironments/resource.cjs +0 -4
- package/dist/projectEnvironments/resource.js +0 -4
- package/dist/projectEnvironments/types.d.ts +0 -4
- package/package.json +1 -1
- package/src/generated/types.gen.ts +8 -6
- package/src/generated/zod.gen.ts +2 -6
- package/src/projectEnvironments/resource.ts +0 -3
- package/src/projectEnvironments/types.ts +0 -4
|
@@ -178,12 +178,18 @@ export type ProjectEnvironment = {
|
|
|
178
178
|
id: string;
|
|
179
179
|
isDefault: boolean;
|
|
180
180
|
isGatewayFallback: boolean;
|
|
181
|
-
|
|
181
|
+
/**
|
|
182
|
+
* @deprecated Always `false`. To be removed.
|
|
183
|
+
*/
|
|
184
|
+
isPointer?: boolean | null;
|
|
182
185
|
isProduction: boolean;
|
|
183
186
|
isSystem: boolean;
|
|
184
187
|
name: string;
|
|
185
188
|
projectId: string;
|
|
186
|
-
|
|
189
|
+
/**
|
|
190
|
+
* @deprecated Always `false`. To be removed.
|
|
191
|
+
*/
|
|
192
|
+
requiresApproval?: boolean | null;
|
|
187
193
|
slug: string;
|
|
188
194
|
sortOrder: number;
|
|
189
195
|
updatedAt: string;
|
|
@@ -10766,10 +10772,8 @@ export type ProjectEnvironmentsCreateProjectEnvironmentData = {
|
|
|
10766
10772
|
description?: string | null | null;
|
|
10767
10773
|
isDefault?: boolean | null;
|
|
10768
10774
|
isGatewayFallback?: boolean | null;
|
|
10769
|
-
isPointer?: boolean | null;
|
|
10770
10775
|
isProduction?: boolean | null;
|
|
10771
10776
|
name: string;
|
|
10772
|
-
requiresApproval?: boolean | null;
|
|
10773
10777
|
slug: string;
|
|
10774
10778
|
sortOrder?: number | null;
|
|
10775
10779
|
};
|
|
@@ -10982,10 +10986,8 @@ export type ProjectEnvironmentsUpdateProjectEnvironmentData = {
|
|
|
10982
10986
|
description?: string | null | null;
|
|
10983
10987
|
isDefault?: boolean | null;
|
|
10984
10988
|
isGatewayFallback?: boolean | null;
|
|
10985
|
-
isPointer?: boolean | null;
|
|
10986
10989
|
isProduction?: boolean | null;
|
|
10987
10990
|
name?: string | null;
|
|
10988
|
-
requiresApproval?: boolean | null;
|
|
10989
10991
|
slug?: string | null;
|
|
10990
10992
|
sortOrder?: number | null;
|
|
10991
10993
|
};
|
|
@@ -201,12 +201,12 @@ export declare const zProjectEnvironment: z.ZodObject<{
|
|
|
201
201
|
id: z.ZodString;
|
|
202
202
|
isDefault: z.ZodBoolean;
|
|
203
203
|
isGatewayFallback: z.ZodBoolean;
|
|
204
|
-
isPointer: z.ZodBoolean
|
|
204
|
+
isPointer: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
205
205
|
isProduction: z.ZodBoolean;
|
|
206
206
|
isSystem: z.ZodBoolean;
|
|
207
207
|
name: z.ZodString;
|
|
208
208
|
projectId: z.ZodString;
|
|
209
|
-
requiresApproval: z.ZodBoolean
|
|
209
|
+
requiresApproval: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
210
210
|
slug: z.ZodString;
|
|
211
211
|
sortOrder: z.ZodInt;
|
|
212
212
|
updatedAt: z.ZodISODateTime;
|
|
@@ -222,12 +222,12 @@ export declare const zArchiveProjectEnvironmentResult: z.ZodObject<{
|
|
|
222
222
|
id: z.ZodString;
|
|
223
223
|
isDefault: z.ZodBoolean;
|
|
224
224
|
isGatewayFallback: z.ZodBoolean;
|
|
225
|
-
isPointer: z.ZodBoolean
|
|
225
|
+
isPointer: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
226
226
|
isProduction: z.ZodBoolean;
|
|
227
227
|
isSystem: z.ZodBoolean;
|
|
228
228
|
name: z.ZodString;
|
|
229
229
|
projectId: z.ZodString;
|
|
230
|
-
requiresApproval: z.ZodBoolean
|
|
230
|
+
requiresApproval: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
231
231
|
slug: z.ZodString;
|
|
232
232
|
sortOrder: z.ZodInt;
|
|
233
233
|
updatedAt: z.ZodISODateTime;
|
|
@@ -5937,12 +5937,12 @@ export declare const zProjectEnvironmentsListProjectEnvironmentsResponse: z.ZodO
|
|
|
5937
5937
|
id: z.ZodString;
|
|
5938
5938
|
isDefault: z.ZodBoolean;
|
|
5939
5939
|
isGatewayFallback: z.ZodBoolean;
|
|
5940
|
-
isPointer: z.ZodBoolean
|
|
5940
|
+
isPointer: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
5941
5941
|
isProduction: z.ZodBoolean;
|
|
5942
5942
|
isSystem: z.ZodBoolean;
|
|
5943
5943
|
name: z.ZodString;
|
|
5944
5944
|
projectId: z.ZodString;
|
|
5945
|
-
requiresApproval: z.ZodBoolean
|
|
5945
|
+
requiresApproval: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
5946
5946
|
slug: z.ZodString;
|
|
5947
5947
|
sortOrder: z.ZodInt;
|
|
5948
5948
|
updatedAt: z.ZodISODateTime;
|
|
@@ -5975,10 +5975,8 @@ export declare const zProjectEnvironmentsCreateProjectEnvironmentBody: z.ZodObje
|
|
|
5975
5975
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5976
5976
|
isDefault: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
5977
5977
|
isGatewayFallback: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
5978
|
-
isPointer: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
5979
5978
|
isProduction: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
5980
5979
|
name: z.ZodString;
|
|
5981
|
-
requiresApproval: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
5982
5980
|
slug: z.ZodString;
|
|
5983
5981
|
sortOrder: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
5984
5982
|
}, z.core.$strip>;
|
|
@@ -5999,12 +5997,12 @@ export declare const zProjectEnvironmentsCreateProjectEnvironmentResponse: z.Zod
|
|
|
5999
5997
|
id: z.ZodString;
|
|
6000
5998
|
isDefault: z.ZodBoolean;
|
|
6001
5999
|
isGatewayFallback: z.ZodBoolean;
|
|
6002
|
-
isPointer: z.ZodBoolean
|
|
6000
|
+
isPointer: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
6003
6001
|
isProduction: z.ZodBoolean;
|
|
6004
6002
|
isSystem: z.ZodBoolean;
|
|
6005
6003
|
name: z.ZodString;
|
|
6006
6004
|
projectId: z.ZodString;
|
|
6007
|
-
requiresApproval: z.ZodBoolean
|
|
6005
|
+
requiresApproval: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
6008
6006
|
slug: z.ZodString;
|
|
6009
6007
|
sortOrder: z.ZodInt;
|
|
6010
6008
|
updatedAt: z.ZodISODateTime;
|
|
@@ -6088,10 +6086,8 @@ export declare const zProjectEnvironmentsUpdateProjectEnvironmentBody: z.ZodObje
|
|
|
6088
6086
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6089
6087
|
isDefault: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
6090
6088
|
isGatewayFallback: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
6091
|
-
isPointer: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
6092
6089
|
isProduction: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
6093
6090
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6094
|
-
requiresApproval: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
6095
6091
|
slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6096
6092
|
sortOrder: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
6097
6093
|
}, z.core.$strip>;
|
|
@@ -6113,12 +6109,12 @@ export declare const zProjectEnvironmentsUpdateProjectEnvironmentResponse: z.Zod
|
|
|
6113
6109
|
id: z.ZodString;
|
|
6114
6110
|
isDefault: z.ZodBoolean;
|
|
6115
6111
|
isGatewayFallback: z.ZodBoolean;
|
|
6116
|
-
isPointer: z.ZodBoolean
|
|
6112
|
+
isPointer: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
6117
6113
|
isProduction: z.ZodBoolean;
|
|
6118
6114
|
isSystem: z.ZodBoolean;
|
|
6119
6115
|
name: z.ZodString;
|
|
6120
6116
|
projectId: z.ZodString;
|
|
6121
|
-
requiresApproval: z.ZodBoolean
|
|
6117
|
+
requiresApproval: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
6122
6118
|
slug: z.ZodString;
|
|
6123
6119
|
sortOrder: z.ZodInt;
|
|
6124
6120
|
updatedAt: z.ZodISODateTime;
|
|
@@ -6164,12 +6160,12 @@ export declare const zProjectEnvironmentsGetProjectEnvironmentResponse: z.ZodObj
|
|
|
6164
6160
|
id: z.ZodString;
|
|
6165
6161
|
isDefault: z.ZodBoolean;
|
|
6166
6162
|
isGatewayFallback: z.ZodBoolean;
|
|
6167
|
-
isPointer: z.ZodBoolean
|
|
6163
|
+
isPointer: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
6168
6164
|
isProduction: z.ZodBoolean;
|
|
6169
6165
|
isSystem: z.ZodBoolean;
|
|
6170
6166
|
name: z.ZodString;
|
|
6171
6167
|
projectId: z.ZodString;
|
|
6172
|
-
requiresApproval: z.ZodBoolean
|
|
6168
|
+
requiresApproval: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
6173
6169
|
slug: z.ZodString;
|
|
6174
6170
|
sortOrder: z.ZodInt;
|
|
6175
6171
|
updatedAt: z.ZodISODateTime;
|
|
@@ -6216,12 +6212,12 @@ export declare const zProjectEnvironmentsArchiveProjectEnvironmentResponse: z.Zo
|
|
|
6216
6212
|
id: z.ZodString;
|
|
6217
6213
|
isDefault: z.ZodBoolean;
|
|
6218
6214
|
isGatewayFallback: z.ZodBoolean;
|
|
6219
|
-
isPointer: z.ZodBoolean
|
|
6215
|
+
isPointer: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
6220
6216
|
isProduction: z.ZodBoolean;
|
|
6221
6217
|
isSystem: z.ZodBoolean;
|
|
6222
6218
|
name: z.ZodString;
|
|
6223
6219
|
projectId: z.ZodString;
|
|
6224
|
-
requiresApproval: z.ZodBoolean
|
|
6220
|
+
requiresApproval: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
6225
6221
|
slug: z.ZodString;
|
|
6226
6222
|
sortOrder: z.ZodInt;
|
|
6227
6223
|
updatedAt: z.ZodISODateTime;
|
|
@@ -6273,12 +6269,12 @@ export declare const zProjectEnvironmentsRestoreProjectEnvironmentResponse: z.Zo
|
|
|
6273
6269
|
id: z.ZodString;
|
|
6274
6270
|
isDefault: z.ZodBoolean;
|
|
6275
6271
|
isGatewayFallback: z.ZodBoolean;
|
|
6276
|
-
isPointer: z.ZodBoolean
|
|
6272
|
+
isPointer: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
6277
6273
|
isProduction: z.ZodBoolean;
|
|
6278
6274
|
isSystem: z.ZodBoolean;
|
|
6279
6275
|
name: z.ZodString;
|
|
6280
6276
|
projectId: z.ZodString;
|
|
6281
|
-
requiresApproval: z.ZodBoolean
|
|
6277
|
+
requiresApproval: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
6282
6278
|
slug: z.ZodString;
|
|
6283
6279
|
sortOrder: z.ZodInt;
|
|
6284
6280
|
updatedAt: z.ZodISODateTime;
|
|
@@ -91,10 +91,6 @@ class ProjectEnvironmentResource {
|
|
|
91
91
|
body.color = rest.color;
|
|
92
92
|
if (rest.description !== undefined)
|
|
93
93
|
body.description = rest.description;
|
|
94
|
-
if (rest.isPointer !== undefined)
|
|
95
|
-
body.isPointer = rest.isPointer;
|
|
96
|
-
if (rest.requiresApproval !== undefined)
|
|
97
|
-
body.requiresApproval = rest.requiresApproval;
|
|
98
94
|
if (rest.isDefault !== undefined)
|
|
99
95
|
body.isDefault = rest.isDefault;
|
|
100
96
|
if (rest.isGatewayFallback !== undefined)
|
|
@@ -48,10 +48,6 @@ class ProjectEnvironmentResource {
|
|
|
48
48
|
body.color = rest.color;
|
|
49
49
|
if (rest.description !== undefined)
|
|
50
50
|
body.description = rest.description;
|
|
51
|
-
if (rest.isPointer !== undefined)
|
|
52
|
-
body.isPointer = rest.isPointer;
|
|
53
|
-
if (rest.requiresApproval !== undefined)
|
|
54
|
-
body.requiresApproval = rest.requiresApproval;
|
|
55
51
|
if (rest.isDefault !== undefined)
|
|
56
52
|
body.isDefault = rest.isDefault;
|
|
57
53
|
if (rest.isGatewayFallback !== undefined)
|
|
@@ -18,8 +18,6 @@ export interface CreateProjectEnvironmentInput {
|
|
|
18
18
|
name: string;
|
|
19
19
|
color?: string | null;
|
|
20
20
|
description?: string | null;
|
|
21
|
-
isPointer?: boolean;
|
|
22
|
-
requiresApproval?: boolean;
|
|
23
21
|
isDefault?: boolean;
|
|
24
22
|
isGatewayFallback?: boolean;
|
|
25
23
|
sortOrder?: number;
|
|
@@ -32,8 +30,6 @@ export interface UpdateProjectEnvironmentInput {
|
|
|
32
30
|
name?: string;
|
|
33
31
|
color?: string | null;
|
|
34
32
|
description?: string | null;
|
|
35
|
-
isPointer?: boolean;
|
|
36
|
-
requiresApproval?: boolean;
|
|
37
33
|
isDefault?: boolean;
|
|
38
34
|
isGatewayFallback?: boolean;
|
|
39
35
|
sortOrder?: number;
|
package/package.json
CHANGED
|
@@ -194,12 +194,18 @@ export type ProjectEnvironment = {
|
|
|
194
194
|
id: string;
|
|
195
195
|
isDefault: boolean;
|
|
196
196
|
isGatewayFallback: boolean;
|
|
197
|
-
|
|
197
|
+
/**
|
|
198
|
+
* @deprecated Always `false`. To be removed.
|
|
199
|
+
*/
|
|
200
|
+
isPointer?: boolean | null;
|
|
198
201
|
isProduction: boolean;
|
|
199
202
|
isSystem: boolean;
|
|
200
203
|
name: string;
|
|
201
204
|
projectId: string;
|
|
202
|
-
|
|
205
|
+
/**
|
|
206
|
+
* @deprecated Always `false`. To be removed.
|
|
207
|
+
*/
|
|
208
|
+
requiresApproval?: boolean | null;
|
|
203
209
|
slug: string;
|
|
204
210
|
sortOrder: number;
|
|
205
211
|
updatedAt: string;
|
|
@@ -11302,10 +11308,8 @@ export type ProjectEnvironmentsCreateProjectEnvironmentData = {
|
|
|
11302
11308
|
description?: string | null | null;
|
|
11303
11309
|
isDefault?: boolean | null;
|
|
11304
11310
|
isGatewayFallback?: boolean | null;
|
|
11305
|
-
isPointer?: boolean | null;
|
|
11306
11311
|
isProduction?: boolean | null;
|
|
11307
11312
|
name: string;
|
|
11308
|
-
requiresApproval?: boolean | null;
|
|
11309
11313
|
slug: string;
|
|
11310
11314
|
sortOrder?: number | null;
|
|
11311
11315
|
};
|
|
@@ -11528,10 +11532,8 @@ export type ProjectEnvironmentsUpdateProjectEnvironmentData = {
|
|
|
11528
11532
|
description?: string | null | null;
|
|
11529
11533
|
isDefault?: boolean | null;
|
|
11530
11534
|
isGatewayFallback?: boolean | null;
|
|
11531
|
-
isPointer?: boolean | null;
|
|
11532
11535
|
isProduction?: boolean | null;
|
|
11533
11536
|
name?: string | null;
|
|
11534
|
-
requiresApproval?: boolean | null;
|
|
11535
11537
|
slug?: string | null;
|
|
11536
11538
|
sortOrder?: number | null;
|
|
11537
11539
|
};
|
package/src/generated/zod.gen.ts
CHANGED
|
@@ -191,12 +191,12 @@ export const zProjectEnvironment = z.object({
|
|
|
191
191
|
id: z.string(),
|
|
192
192
|
isDefault: z.boolean(),
|
|
193
193
|
isGatewayFallback: z.boolean(),
|
|
194
|
-
isPointer: z.boolean(),
|
|
194
|
+
isPointer: z.boolean().nullish(),
|
|
195
195
|
isProduction: z.boolean(),
|
|
196
196
|
isSystem: z.boolean(),
|
|
197
197
|
name: z.string().min(1).max(120),
|
|
198
198
|
projectId: z.string(),
|
|
199
|
-
requiresApproval: z.boolean(),
|
|
199
|
+
requiresApproval: z.boolean().nullish(),
|
|
200
200
|
slug: z.string(),
|
|
201
201
|
sortOrder: z.int(),
|
|
202
202
|
updatedAt: z.iso.datetime(),
|
|
@@ -5648,10 +5648,8 @@ export const zProjectEnvironmentsCreateProjectEnvironmentBody = z.object({
|
|
|
5648
5648
|
description: z.string().max(280).nullish(),
|
|
5649
5649
|
isDefault: z.boolean().nullish(),
|
|
5650
5650
|
isGatewayFallback: z.boolean().nullish(),
|
|
5651
|
-
isPointer: z.boolean().nullish(),
|
|
5652
5651
|
isProduction: z.boolean().nullish(),
|
|
5653
5652
|
name: z.string().min(1).max(120),
|
|
5654
|
-
requiresApproval: z.boolean().nullish(),
|
|
5655
5653
|
slug: z.string().min(1).max(63).regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/),
|
|
5656
5654
|
sortOrder: z.int().nullish()
|
|
5657
5655
|
});
|
|
@@ -5748,10 +5746,8 @@ export const zProjectEnvironmentsUpdateProjectEnvironmentBody = z.object({
|
|
|
5748
5746
|
description: z.string().max(280).nullish(),
|
|
5749
5747
|
isDefault: z.boolean().nullish(),
|
|
5750
5748
|
isGatewayFallback: z.boolean().nullish(),
|
|
5751
|
-
isPointer: z.boolean().nullish(),
|
|
5752
5749
|
isProduction: z.boolean().nullish(),
|
|
5753
5750
|
name: z.string().min(1).max(120).nullish(),
|
|
5754
|
-
requiresApproval: z.boolean().nullish(),
|
|
5755
5751
|
slug: z.string().min(1).max(63).regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/).nullish(),
|
|
5756
5752
|
sortOrder: z.int().nullish()
|
|
5757
5753
|
});
|
|
@@ -167,9 +167,6 @@ export class ProjectEnvironmentResource {
|
|
|
167
167
|
if (rest.name !== undefined) body.name = rest.name;
|
|
168
168
|
if (rest.color !== undefined) body.color = rest.color;
|
|
169
169
|
if (rest.description !== undefined) body.description = rest.description;
|
|
170
|
-
if (rest.isPointer !== undefined) body.isPointer = rest.isPointer;
|
|
171
|
-
if (rest.requiresApproval !== undefined)
|
|
172
|
-
body.requiresApproval = rest.requiresApproval;
|
|
173
170
|
if (rest.isDefault !== undefined) body.isDefault = rest.isDefault;
|
|
174
171
|
if (rest.isGatewayFallback !== undefined)
|
|
175
172
|
body.isGatewayFallback = rest.isGatewayFallback;
|
|
@@ -31,8 +31,6 @@ export interface CreateProjectEnvironmentInput {
|
|
|
31
31
|
name: string;
|
|
32
32
|
color?: string | null;
|
|
33
33
|
description?: string | null;
|
|
34
|
-
isPointer?: boolean;
|
|
35
|
-
requiresApproval?: boolean;
|
|
36
34
|
isDefault?: boolean;
|
|
37
35
|
isGatewayFallback?: boolean;
|
|
38
36
|
sortOrder?: number;
|
|
@@ -47,8 +45,6 @@ export interface UpdateProjectEnvironmentInput {
|
|
|
47
45
|
name?: string;
|
|
48
46
|
color?: string | null;
|
|
49
47
|
description?: string | null;
|
|
50
|
-
isPointer?: boolean;
|
|
51
|
-
requiresApproval?: boolean;
|
|
52
48
|
isDefault?: boolean;
|
|
53
49
|
isGatewayFallback?: boolean;
|
|
54
50
|
sortOrder?: number;
|