@renai-labs/sdk 0.1.5 → 0.1.6
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/@tanstack/react-query.gen.d.ts +39 -59
- package/dist/generated/@tanstack/react-query.gen.js +95 -79
- package/dist/generated/internal/types.gen.d.ts +0 -60
- package/dist/generated/sdk.gen.d.ts +27 -35
- package/dist/generated/sdk.gen.js +58 -46
- package/dist/generated/types.gen.d.ts +135 -116
- package/dist/generated/zod.gen.d.ts +79 -137
- package/dist/generated/zod.gen.js +51 -55
- package/package.json +1 -1
|
@@ -816,6 +816,10 @@ export declare const zVault: z.ZodObject<{
|
|
|
816
816
|
export declare const zSlackChannel: z.ZodObject<{
|
|
817
817
|
id: z.ZodString;
|
|
818
818
|
name: z.ZodString;
|
|
819
|
+
projectId: z.ZodNullable<z.ZodString>;
|
|
820
|
+
defaultProjectAgentId: z.ZodNullable<z.ZodString>;
|
|
821
|
+
fallbackSenderUserId: z.ZodNullable<z.ZodString>;
|
|
822
|
+
projectName: z.ZodNullable<z.ZodString>;
|
|
819
823
|
}, z.core.$strip>;
|
|
820
824
|
export declare const zSlackInstallationResponse: z.ZodObject<{
|
|
821
825
|
id: z.ZodString;
|
|
@@ -825,12 +829,6 @@ export declare const zSlackInstallationResponse: z.ZodObject<{
|
|
|
825
829
|
teamName: z.ZodNullable<z.ZodString>;
|
|
826
830
|
botUserId: z.ZodString;
|
|
827
831
|
scope: z.ZodString;
|
|
828
|
-
channelMappings: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
829
|
-
channelName: z.ZodNullable<z.ZodString>;
|
|
830
|
-
projectId: z.ZodString;
|
|
831
|
-
defaultProjectAgentId: z.ZodNullable<z.ZodString>;
|
|
832
|
-
fallbackSenderUserId: z.ZodNullable<z.ZodString>;
|
|
833
|
-
}, z.core.$strip>>;
|
|
834
832
|
createdAt: z.ZodISODateTime;
|
|
835
833
|
updatedAt: z.ZodISODateTime;
|
|
836
834
|
archivedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
@@ -845,17 +843,14 @@ export declare const zSlackStatus: z.ZodObject<{
|
|
|
845
843
|
teamName: z.ZodNullable<z.ZodString>;
|
|
846
844
|
botUserId: z.ZodString;
|
|
847
845
|
scope: z.ZodString;
|
|
848
|
-
channelMappings: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
849
|
-
channelName: z.ZodNullable<z.ZodString>;
|
|
850
|
-
projectId: z.ZodString;
|
|
851
|
-
defaultProjectAgentId: z.ZodNullable<z.ZodString>;
|
|
852
|
-
fallbackSenderUserId: z.ZodNullable<z.ZodString>;
|
|
853
|
-
}, z.core.$strip>>;
|
|
854
846
|
createdAt: z.ZodISODateTime;
|
|
855
847
|
updatedAt: z.ZodISODateTime;
|
|
856
848
|
archivedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
857
849
|
}, z.core.$strip>>;
|
|
858
850
|
}, z.core.$strip>;
|
|
851
|
+
export declare const zSlackOAuthStartResult: z.ZodObject<{
|
|
852
|
+
url: z.ZodURL;
|
|
853
|
+
}, z.core.$strip>;
|
|
859
854
|
export declare const zWebhookTrigger: z.ZodObject<{
|
|
860
855
|
id: z.ZodString;
|
|
861
856
|
projectId: z.ZodString;
|
|
@@ -1752,6 +1747,9 @@ export declare const zGithubStatus: z.ZodObject<{
|
|
|
1752
1747
|
archivedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
1753
1748
|
}, z.core.$strip>>;
|
|
1754
1749
|
}, z.core.$strip>;
|
|
1750
|
+
export declare const zGithubOAuthStartResult: z.ZodObject<{
|
|
1751
|
+
url: z.ZodURL;
|
|
1752
|
+
}, z.core.$strip>;
|
|
1755
1753
|
export declare const zStoreStartUploadResponse: z.ZodObject<{
|
|
1756
1754
|
url: z.ZodString;
|
|
1757
1755
|
expiresAt: z.ZodISODateTime;
|
|
@@ -6112,6 +6110,39 @@ export declare const zFileStoreFilesFinalizeUploadResponse: z.ZodObject<{
|
|
|
6112
6110
|
lastModified: z.ZodOptional<z.ZodISODateTime>;
|
|
6113
6111
|
contentSha256: z.ZodOptional<z.ZodString>;
|
|
6114
6112
|
}, z.core.$strip>;
|
|
6113
|
+
export declare const zGithubUninstallQuery: z.ZodObject<{
|
|
6114
|
+
scope: z.ZodOptional<z.ZodEnum<{
|
|
6115
|
+
user: "user";
|
|
6116
|
+
}>>;
|
|
6117
|
+
}, z.core.$strip>;
|
|
6118
|
+
/**
|
|
6119
|
+
* Removed
|
|
6120
|
+
*/
|
|
6121
|
+
export declare const zGithubUninstallResponse: z.ZodVoid;
|
|
6122
|
+
export declare const zGithubInstallQuery: z.ZodObject<{
|
|
6123
|
+
scope: z.ZodOptional<z.ZodEnum<{
|
|
6124
|
+
user: "user";
|
|
6125
|
+
}>>;
|
|
6126
|
+
returnTo: z.ZodOptional<z.ZodString>;
|
|
6127
|
+
}, z.core.$strip>;
|
|
6128
|
+
/**
|
|
6129
|
+
* Authorization URL for the user to visit
|
|
6130
|
+
*/
|
|
6131
|
+
export declare const zGithubInstallResponse: z.ZodObject<{
|
|
6132
|
+
url: z.ZodURL;
|
|
6133
|
+
}, z.core.$strip>;
|
|
6134
|
+
export declare const zGithubConnectQuery: z.ZodObject<{
|
|
6135
|
+
scope: z.ZodOptional<z.ZodEnum<{
|
|
6136
|
+
user: "user";
|
|
6137
|
+
}>>;
|
|
6138
|
+
returnTo: z.ZodOptional<z.ZodString>;
|
|
6139
|
+
}, z.core.$strip>;
|
|
6140
|
+
/**
|
|
6141
|
+
* Authorization URL for the user to visit
|
|
6142
|
+
*/
|
|
6143
|
+
export declare const zGithubConnectResponse: z.ZodObject<{
|
|
6144
|
+
url: z.ZodURL;
|
|
6145
|
+
}, z.core.$strip>;
|
|
6115
6146
|
export declare const zGithubStatusQuery: z.ZodObject<{
|
|
6116
6147
|
scope: z.ZodOptional<z.ZodEnum<{
|
|
6117
6148
|
user: "user";
|
|
@@ -6146,40 +6177,7 @@ export declare const zGithubStatusResponse: z.ZodObject<{
|
|
|
6146
6177
|
archivedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
6147
6178
|
}, z.core.$strip>>;
|
|
6148
6179
|
}, z.core.$strip>;
|
|
6149
|
-
export declare const
|
|
6150
|
-
scope: z.ZodOptional<z.ZodEnum<{
|
|
6151
|
-
user: "user";
|
|
6152
|
-
}>>;
|
|
6153
|
-
}, z.core.$strip>;
|
|
6154
|
-
/**
|
|
6155
|
-
* Installations
|
|
6156
|
-
*/
|
|
6157
|
-
export declare const zGithubInstallationListResponse: z.ZodArray<z.ZodObject<{
|
|
6158
|
-
id: z.ZodString;
|
|
6159
|
-
orgId: z.ZodString;
|
|
6160
|
-
installedById: z.ZodNullable<z.ZodString>;
|
|
6161
|
-
installationId: z.ZodString;
|
|
6162
|
-
accountLogin: z.ZodString;
|
|
6163
|
-
accountType: z.ZodEnum<{
|
|
6164
|
-
User: "User";
|
|
6165
|
-
Organization: "Organization";
|
|
6166
|
-
}>;
|
|
6167
|
-
repositorySelection: z.ZodEnum<{
|
|
6168
|
-
all: "all";
|
|
6169
|
-
selected: "selected";
|
|
6170
|
-
}>;
|
|
6171
|
-
selectedRepos: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
6172
|
-
fullName: z.ZodString;
|
|
6173
|
-
}, z.core.$strip>>>;
|
|
6174
|
-
appPermissions: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
6175
|
-
createdAt: z.ZodISODateTime;
|
|
6176
|
-
updatedAt: z.ZodISODateTime;
|
|
6177
|
-
archivedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
6178
|
-
}, z.core.$strip>>;
|
|
6179
|
-
export declare const zGithubInstallationReposListPath: z.ZodObject<{
|
|
6180
|
-
id: z.ZodString;
|
|
6181
|
-
}, z.core.$strip>;
|
|
6182
|
-
export declare const zGithubInstallationReposListQuery: z.ZodObject<{
|
|
6180
|
+
export declare const zGithubReposQuery: z.ZodObject<{
|
|
6183
6181
|
scope: z.ZodOptional<z.ZodEnum<{
|
|
6184
6182
|
user: "user";
|
|
6185
6183
|
}>>;
|
|
@@ -6187,54 +6185,9 @@ export declare const zGithubInstallationReposListQuery: z.ZodObject<{
|
|
|
6187
6185
|
/**
|
|
6188
6186
|
* Repositories
|
|
6189
6187
|
*/
|
|
6190
|
-
export declare const
|
|
6188
|
+
export declare const zGithubReposResponse: z.ZodArray<z.ZodObject<{
|
|
6191
6189
|
fullName: z.ZodString;
|
|
6192
6190
|
}, z.core.$strip>>;
|
|
6193
|
-
export declare const zGithubInstallationRefreshPath: z.ZodObject<{
|
|
6194
|
-
id: z.ZodString;
|
|
6195
|
-
}, z.core.$strip>;
|
|
6196
|
-
export declare const zGithubInstallationRefreshQuery: z.ZodObject<{
|
|
6197
|
-
scope: z.ZodOptional<z.ZodEnum<{
|
|
6198
|
-
user: "user";
|
|
6199
|
-
}>>;
|
|
6200
|
-
}, z.core.$strip>;
|
|
6201
|
-
/**
|
|
6202
|
-
* Updated installation snapshot
|
|
6203
|
-
*/
|
|
6204
|
-
export declare const zGithubInstallationRefreshResponse: z.ZodObject<{
|
|
6205
|
-
id: z.ZodString;
|
|
6206
|
-
orgId: z.ZodString;
|
|
6207
|
-
installedById: z.ZodNullable<z.ZodString>;
|
|
6208
|
-
installationId: z.ZodString;
|
|
6209
|
-
accountLogin: z.ZodString;
|
|
6210
|
-
accountType: z.ZodEnum<{
|
|
6211
|
-
User: "User";
|
|
6212
|
-
Organization: "Organization";
|
|
6213
|
-
}>;
|
|
6214
|
-
repositorySelection: z.ZodEnum<{
|
|
6215
|
-
all: "all";
|
|
6216
|
-
selected: "selected";
|
|
6217
|
-
}>;
|
|
6218
|
-
selectedRepos: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
6219
|
-
fullName: z.ZodString;
|
|
6220
|
-
}, z.core.$strip>>>;
|
|
6221
|
-
appPermissions: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
6222
|
-
createdAt: z.ZodISODateTime;
|
|
6223
|
-
updatedAt: z.ZodISODateTime;
|
|
6224
|
-
archivedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
6225
|
-
}, z.core.$strip>;
|
|
6226
|
-
export declare const zGithubInstallationRemovePath: z.ZodObject<{
|
|
6227
|
-
id: z.ZodString;
|
|
6228
|
-
}, z.core.$strip>;
|
|
6229
|
-
export declare const zGithubInstallationRemoveQuery: z.ZodObject<{
|
|
6230
|
-
scope: z.ZodOptional<z.ZodEnum<{
|
|
6231
|
-
user: "user";
|
|
6232
|
-
}>>;
|
|
6233
|
-
}, z.core.$strip>;
|
|
6234
|
-
/**
|
|
6235
|
-
* Removed
|
|
6236
|
-
*/
|
|
6237
|
-
export declare const zGithubInstallationRemoveResponse: z.ZodVoid;
|
|
6238
6191
|
export declare const zMcpListQuery: z.ZodObject<{
|
|
6239
6192
|
scope: z.ZodOptional<z.ZodEnum<{
|
|
6240
6193
|
user: "user";
|
|
@@ -11050,6 +11003,27 @@ export declare const zWebhookTriggerArchiveResponse: z.ZodObject<{
|
|
|
11050
11003
|
updatedAt: z.ZodISODateTime;
|
|
11051
11004
|
archivedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
11052
11005
|
}, z.core.$strip>;
|
|
11006
|
+
export declare const zSlackUninstallQuery: z.ZodObject<{
|
|
11007
|
+
scope: z.ZodOptional<z.ZodEnum<{
|
|
11008
|
+
user: "user";
|
|
11009
|
+
}>>;
|
|
11010
|
+
}, z.core.$strip>;
|
|
11011
|
+
/**
|
|
11012
|
+
* Removed
|
|
11013
|
+
*/
|
|
11014
|
+
export declare const zSlackUninstallResponse: z.ZodVoid;
|
|
11015
|
+
export declare const zSlackInstallQuery: z.ZodObject<{
|
|
11016
|
+
scope: z.ZodOptional<z.ZodEnum<{
|
|
11017
|
+
user: "user";
|
|
11018
|
+
}>>;
|
|
11019
|
+
returnTo: z.ZodOptional<z.ZodString>;
|
|
11020
|
+
}, z.core.$strip>;
|
|
11021
|
+
/**
|
|
11022
|
+
* Authorization URL for the user to visit
|
|
11023
|
+
*/
|
|
11024
|
+
export declare const zSlackInstallResponse: z.ZodObject<{
|
|
11025
|
+
url: z.ZodURL;
|
|
11026
|
+
}, z.core.$strip>;
|
|
11053
11027
|
export declare const zSlackStatusQuery: z.ZodObject<{
|
|
11054
11028
|
scope: z.ZodOptional<z.ZodEnum<{
|
|
11055
11029
|
user: "user";
|
|
@@ -11068,33 +11042,12 @@ export declare const zSlackStatusResponse: z.ZodObject<{
|
|
|
11068
11042
|
teamName: z.ZodNullable<z.ZodString>;
|
|
11069
11043
|
botUserId: z.ZodString;
|
|
11070
11044
|
scope: z.ZodString;
|
|
11071
|
-
channelMappings: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
11072
|
-
channelName: z.ZodNullable<z.ZodString>;
|
|
11073
|
-
projectId: z.ZodString;
|
|
11074
|
-
defaultProjectAgentId: z.ZodNullable<z.ZodString>;
|
|
11075
|
-
fallbackSenderUserId: z.ZodNullable<z.ZodString>;
|
|
11076
|
-
}, z.core.$strip>>;
|
|
11077
11045
|
createdAt: z.ZodISODateTime;
|
|
11078
11046
|
updatedAt: z.ZodISODateTime;
|
|
11079
11047
|
archivedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
11080
11048
|
}, z.core.$strip>>;
|
|
11081
11049
|
}, z.core.$strip>;
|
|
11082
|
-
export declare const
|
|
11083
|
-
id: z.ZodString;
|
|
11084
|
-
}, z.core.$strip>;
|
|
11085
|
-
export declare const zSlackInstallationRemoveQuery: z.ZodObject<{
|
|
11086
|
-
scope: z.ZodOptional<z.ZodEnum<{
|
|
11087
|
-
user: "user";
|
|
11088
|
-
}>>;
|
|
11089
|
-
}, z.core.$strip>;
|
|
11090
|
-
/**
|
|
11091
|
-
* Removed
|
|
11092
|
-
*/
|
|
11093
|
-
export declare const zSlackInstallationRemoveResponse: z.ZodVoid;
|
|
11094
|
-
export declare const zSlackInstallationChannelListPath: z.ZodObject<{
|
|
11095
|
-
id: z.ZodString;
|
|
11096
|
-
}, z.core.$strip>;
|
|
11097
|
-
export declare const zSlackInstallationChannelListQuery: z.ZodObject<{
|
|
11050
|
+
export declare const zSlackChannelListQuery: z.ZodObject<{
|
|
11098
11051
|
scope: z.ZodOptional<z.ZodEnum<{
|
|
11099
11052
|
user: "user";
|
|
11100
11053
|
}>>;
|
|
@@ -11102,15 +11055,18 @@ export declare const zSlackInstallationChannelListQuery: z.ZodObject<{
|
|
|
11102
11055
|
/**
|
|
11103
11056
|
* Channels visible to the Ren bot
|
|
11104
11057
|
*/
|
|
11105
|
-
export declare const
|
|
11058
|
+
export declare const zSlackChannelListResponse: z.ZodArray<z.ZodObject<{
|
|
11106
11059
|
id: z.ZodString;
|
|
11107
11060
|
name: z.ZodString;
|
|
11061
|
+
projectId: z.ZodNullable<z.ZodString>;
|
|
11062
|
+
defaultProjectAgentId: z.ZodNullable<z.ZodString>;
|
|
11063
|
+
fallbackSenderUserId: z.ZodNullable<z.ZodString>;
|
|
11064
|
+
projectName: z.ZodNullable<z.ZodString>;
|
|
11108
11065
|
}, z.core.$strip>>;
|
|
11109
|
-
export declare const
|
|
11110
|
-
id: z.ZodString;
|
|
11066
|
+
export declare const zSlackChannelUnsetPath: z.ZodObject<{
|
|
11111
11067
|
channelId: z.ZodString;
|
|
11112
11068
|
}, z.core.$strip>;
|
|
11113
|
-
export declare const
|
|
11069
|
+
export declare const zSlackChannelUnsetQuery: z.ZodObject<{
|
|
11114
11070
|
scope: z.ZodOptional<z.ZodEnum<{
|
|
11115
11071
|
user: "user";
|
|
11116
11072
|
}>>;
|
|
@@ -11118,7 +11074,7 @@ export declare const zSlackInstallationChannelRemoveQuery: z.ZodObject<{
|
|
|
11118
11074
|
/**
|
|
11119
11075
|
* Updated installation
|
|
11120
11076
|
*/
|
|
11121
|
-
export declare const
|
|
11077
|
+
export declare const zSlackChannelUnsetResponse: z.ZodObject<{
|
|
11122
11078
|
id: z.ZodString;
|
|
11123
11079
|
orgId: z.ZodString;
|
|
11124
11080
|
installedById: z.ZodString;
|
|
@@ -11126,27 +11082,19 @@ export declare const zSlackInstallationChannelRemoveResponse: z.ZodObject<{
|
|
|
11126
11082
|
teamName: z.ZodNullable<z.ZodString>;
|
|
11127
11083
|
botUserId: z.ZodString;
|
|
11128
11084
|
scope: z.ZodString;
|
|
11129
|
-
channelMappings: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
11130
|
-
channelName: z.ZodNullable<z.ZodString>;
|
|
11131
|
-
projectId: z.ZodString;
|
|
11132
|
-
defaultProjectAgentId: z.ZodNullable<z.ZodString>;
|
|
11133
|
-
fallbackSenderUserId: z.ZodNullable<z.ZodString>;
|
|
11134
|
-
}, z.core.$strip>>;
|
|
11135
11085
|
createdAt: z.ZodISODateTime;
|
|
11136
11086
|
updatedAt: z.ZodISODateTime;
|
|
11137
11087
|
archivedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
11138
11088
|
}, z.core.$strip>;
|
|
11139
|
-
export declare const
|
|
11140
|
-
channelName: z.ZodNullable<z.ZodString>;
|
|
11089
|
+
export declare const zSlackChannelSetBody: z.ZodObject<{
|
|
11141
11090
|
projectId: z.ZodString;
|
|
11142
11091
|
defaultProjectAgentId: z.ZodNullable<z.ZodString>;
|
|
11143
11092
|
fallbackSenderUserId: z.ZodNullable<z.ZodString>;
|
|
11144
11093
|
}, z.core.$strip>;
|
|
11145
|
-
export declare const
|
|
11146
|
-
id: z.ZodString;
|
|
11094
|
+
export declare const zSlackChannelSetPath: z.ZodObject<{
|
|
11147
11095
|
channelId: z.ZodString;
|
|
11148
11096
|
}, z.core.$strip>;
|
|
11149
|
-
export declare const
|
|
11097
|
+
export declare const zSlackChannelSetQuery: z.ZodObject<{
|
|
11150
11098
|
scope: z.ZodOptional<z.ZodEnum<{
|
|
11151
11099
|
user: "user";
|
|
11152
11100
|
}>>;
|
|
@@ -11154,7 +11102,7 @@ export declare const zSlackInstallationChannelSetQuery: z.ZodObject<{
|
|
|
11154
11102
|
/**
|
|
11155
11103
|
* Updated installation
|
|
11156
11104
|
*/
|
|
11157
|
-
export declare const
|
|
11105
|
+
export declare const zSlackChannelSetResponse: z.ZodObject<{
|
|
11158
11106
|
id: z.ZodString;
|
|
11159
11107
|
orgId: z.ZodString;
|
|
11160
11108
|
installedById: z.ZodString;
|
|
@@ -11162,12 +11110,6 @@ export declare const zSlackInstallationChannelSetResponse: z.ZodObject<{
|
|
|
11162
11110
|
teamName: z.ZodNullable<z.ZodString>;
|
|
11163
11111
|
botUserId: z.ZodString;
|
|
11164
11112
|
scope: z.ZodString;
|
|
11165
|
-
channelMappings: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
11166
|
-
channelName: z.ZodNullable<z.ZodString>;
|
|
11167
|
-
projectId: z.ZodString;
|
|
11168
|
-
defaultProjectAgentId: z.ZodNullable<z.ZodString>;
|
|
11169
|
-
fallbackSenderUserId: z.ZodNullable<z.ZodString>;
|
|
11170
|
-
}, z.core.$strip>>;
|
|
11171
11113
|
createdAt: z.ZodISODateTime;
|
|
11172
11114
|
updatedAt: z.ZodISODateTime;
|
|
11173
11115
|
archivedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
@@ -264,6 +264,10 @@ export const zVault = z.object({
|
|
|
264
264
|
export const zSlackChannel = z.object({
|
|
265
265
|
id: z.string(),
|
|
266
266
|
name: z.string(),
|
|
267
|
+
projectId: z.string().nullable(),
|
|
268
|
+
defaultProjectAgentId: z.string().nullable(),
|
|
269
|
+
fallbackSenderUserId: z.string().nullable(),
|
|
270
|
+
projectName: z.string().nullable(),
|
|
267
271
|
});
|
|
268
272
|
export const zSlackInstallationResponse = z.object({
|
|
269
273
|
id: z.string(),
|
|
@@ -273,12 +277,6 @@ export const zSlackInstallationResponse = z.object({
|
|
|
273
277
|
teamName: z.string().nullable(),
|
|
274
278
|
botUserId: z.string(),
|
|
275
279
|
scope: z.string(),
|
|
276
|
-
channelMappings: z.record(z.string(), z.object({
|
|
277
|
-
channelName: z.string().nullable(),
|
|
278
|
-
projectId: z.string(),
|
|
279
|
-
defaultProjectAgentId: z.string().nullable(),
|
|
280
|
-
fallbackSenderUserId: z.string().nullable(),
|
|
281
|
-
})),
|
|
282
280
|
createdAt: z.iso
|
|
283
281
|
.datetime()
|
|
284
282
|
.regex(/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$/),
|
|
@@ -294,6 +292,9 @@ export const zSlackStatus = z.object({
|
|
|
294
292
|
hasInstallation: z.boolean(),
|
|
295
293
|
installations: z.array(zSlackInstallationResponse),
|
|
296
294
|
});
|
|
295
|
+
export const zSlackOAuthStartResult = z.object({
|
|
296
|
+
url: z.url(),
|
|
297
|
+
});
|
|
297
298
|
export const zWebhookTrigger = z.object({
|
|
298
299
|
id: z.string(),
|
|
299
300
|
projectId: z.string(),
|
|
@@ -949,6 +950,9 @@ export const zGithubStatus = z.object({
|
|
|
949
950
|
hasUserCredential: z.boolean(),
|
|
950
951
|
installations: z.array(zGithubInstallationResponse),
|
|
951
952
|
});
|
|
953
|
+
export const zGithubOAuthStartResult = z.object({
|
|
954
|
+
url: z.url(),
|
|
955
|
+
});
|
|
952
956
|
export const zStoreStartUploadResponse = z.object({
|
|
953
957
|
url: z.string(),
|
|
954
958
|
expiresAt: z.iso
|
|
@@ -1767,52 +1771,45 @@ export const zFileStoreFilesFinalizeUploadQuery = z.object({
|
|
|
1767
1771
|
* Finalized file info
|
|
1768
1772
|
*/
|
|
1769
1773
|
export const zFileStoreFilesFinalizeUploadResponse = zFileStoreFile;
|
|
1770
|
-
export const
|
|
1774
|
+
export const zGithubUninstallQuery = z.object({
|
|
1771
1775
|
scope: z.enum(["user"]).optional(),
|
|
1772
1776
|
});
|
|
1773
1777
|
/**
|
|
1774
|
-
*
|
|
1778
|
+
* Removed
|
|
1775
1779
|
*/
|
|
1776
|
-
export const
|
|
1777
|
-
export const
|
|
1780
|
+
export const zGithubUninstallResponse = z.void();
|
|
1781
|
+
export const zGithubInstallQuery = z.object({
|
|
1778
1782
|
scope: z.enum(["user"]).optional(),
|
|
1783
|
+
returnTo: z.string().optional(),
|
|
1779
1784
|
});
|
|
1780
1785
|
/**
|
|
1781
|
-
*
|
|
1786
|
+
* Authorization URL for the user to visit
|
|
1782
1787
|
*/
|
|
1783
|
-
export const
|
|
1784
|
-
export const
|
|
1785
|
-
id: z.string().regex(/^ghi_[0-9A-HJKMNP-TV-Z]{26}$/),
|
|
1786
|
-
});
|
|
1787
|
-
export const zGithubInstallationReposListQuery = z.object({
|
|
1788
|
+
export const zGithubInstallResponse = zGithubOAuthStartResult;
|
|
1789
|
+
export const zGithubConnectQuery = z.object({
|
|
1788
1790
|
scope: z.enum(["user"]).optional(),
|
|
1791
|
+
returnTo: z.string().optional(),
|
|
1789
1792
|
});
|
|
1790
1793
|
/**
|
|
1791
|
-
*
|
|
1794
|
+
* Authorization URL for the user to visit
|
|
1792
1795
|
*/
|
|
1793
|
-
export const
|
|
1794
|
-
|
|
1795
|
-
}));
|
|
1796
|
-
export const zGithubInstallationRefreshPath = z.object({
|
|
1797
|
-
id: z.string().regex(/^ghi_[0-9A-HJKMNP-TV-Z]{26}$/),
|
|
1798
|
-
});
|
|
1799
|
-
export const zGithubInstallationRefreshQuery = z.object({
|
|
1796
|
+
export const zGithubConnectResponse = zGithubOAuthStartResult;
|
|
1797
|
+
export const zGithubStatusQuery = z.object({
|
|
1800
1798
|
scope: z.enum(["user"]).optional(),
|
|
1801
1799
|
});
|
|
1802
1800
|
/**
|
|
1803
|
-
*
|
|
1801
|
+
* GitHub configuration status
|
|
1804
1802
|
*/
|
|
1805
|
-
export const
|
|
1806
|
-
export const
|
|
1807
|
-
id: z.string().regex(/^ghi_[0-9A-HJKMNP-TV-Z]{26}$/),
|
|
1808
|
-
});
|
|
1809
|
-
export const zGithubInstallationRemoveQuery = z.object({
|
|
1803
|
+
export const zGithubStatusResponse = zGithubStatus;
|
|
1804
|
+
export const zGithubReposQuery = z.object({
|
|
1810
1805
|
scope: z.enum(["user"]).optional(),
|
|
1811
1806
|
});
|
|
1812
1807
|
/**
|
|
1813
|
-
*
|
|
1808
|
+
* Repositories
|
|
1814
1809
|
*/
|
|
1815
|
-
export const
|
|
1810
|
+
export const zGithubReposResponse = z.array(z.object({
|
|
1811
|
+
fullName: z.string(),
|
|
1812
|
+
}));
|
|
1816
1813
|
export const zMcpListQuery = z.object({
|
|
1817
1814
|
scope: z.enum(["user"]).optional(),
|
|
1818
1815
|
limit: z.number().gte(1).lte(1000).optional(),
|
|
@@ -3130,61 +3127,60 @@ export const zWebhookTriggerArchiveQuery = z.object({
|
|
|
3130
3127
|
* Archived webhook trigger
|
|
3131
3128
|
*/
|
|
3132
3129
|
export const zWebhookTriggerArchiveResponse = zWebhookTrigger;
|
|
3133
|
-
export const
|
|
3130
|
+
export const zSlackUninstallQuery = z.object({
|
|
3134
3131
|
scope: z.enum(["user"]).optional(),
|
|
3135
3132
|
});
|
|
3136
3133
|
/**
|
|
3137
|
-
*
|
|
3134
|
+
* Removed
|
|
3138
3135
|
*/
|
|
3139
|
-
export const
|
|
3140
|
-
export const
|
|
3141
|
-
id: z.string().regex(/^sli_[0-9A-HJKMNP-TV-Z]{26}$/),
|
|
3142
|
-
});
|
|
3143
|
-
export const zSlackInstallationRemoveQuery = z.object({
|
|
3136
|
+
export const zSlackUninstallResponse = z.void();
|
|
3137
|
+
export const zSlackInstallQuery = z.object({
|
|
3144
3138
|
scope: z.enum(["user"]).optional(),
|
|
3139
|
+
returnTo: z.string().optional(),
|
|
3145
3140
|
});
|
|
3146
3141
|
/**
|
|
3147
|
-
*
|
|
3142
|
+
* Authorization URL for the user to visit
|
|
3148
3143
|
*/
|
|
3149
|
-
export const
|
|
3150
|
-
export const
|
|
3151
|
-
|
|
3144
|
+
export const zSlackInstallResponse = zSlackOAuthStartResult;
|
|
3145
|
+
export const zSlackStatusQuery = z.object({
|
|
3146
|
+
scope: z.enum(["user"]).optional(),
|
|
3152
3147
|
});
|
|
3153
|
-
|
|
3148
|
+
/**
|
|
3149
|
+
* Slack installation status
|
|
3150
|
+
*/
|
|
3151
|
+
export const zSlackStatusResponse = zSlackStatus;
|
|
3152
|
+
export const zSlackChannelListQuery = z.object({
|
|
3154
3153
|
scope: z.enum(["user"]).optional(),
|
|
3155
3154
|
});
|
|
3156
3155
|
/**
|
|
3157
3156
|
* Channels visible to the Ren bot
|
|
3158
3157
|
*/
|
|
3159
|
-
export const
|
|
3160
|
-
export const
|
|
3161
|
-
id: z.string().regex(/^sli_[0-9A-HJKMNP-TV-Z]{26}$/),
|
|
3158
|
+
export const zSlackChannelListResponse = z.array(zSlackChannel);
|
|
3159
|
+
export const zSlackChannelUnsetPath = z.object({
|
|
3162
3160
|
channelId: z.string().min(1),
|
|
3163
3161
|
});
|
|
3164
|
-
export const
|
|
3162
|
+
export const zSlackChannelUnsetQuery = z.object({
|
|
3165
3163
|
scope: z.enum(["user"]).optional(),
|
|
3166
3164
|
});
|
|
3167
3165
|
/**
|
|
3168
3166
|
* Updated installation
|
|
3169
3167
|
*/
|
|
3170
|
-
export const
|
|
3171
|
-
export const
|
|
3172
|
-
channelName: z.string().nullable(),
|
|
3168
|
+
export const zSlackChannelUnsetResponse = zSlackInstallationResponse;
|
|
3169
|
+
export const zSlackChannelSetBody = z.object({
|
|
3173
3170
|
projectId: z.string(),
|
|
3174
3171
|
defaultProjectAgentId: z.string().nullable(),
|
|
3175
3172
|
fallbackSenderUserId: z.string().nullable(),
|
|
3176
3173
|
});
|
|
3177
|
-
export const
|
|
3178
|
-
id: z.string().regex(/^sli_[0-9A-HJKMNP-TV-Z]{26}$/),
|
|
3174
|
+
export const zSlackChannelSetPath = z.object({
|
|
3179
3175
|
channelId: z.string().min(1),
|
|
3180
3176
|
});
|
|
3181
|
-
export const
|
|
3177
|
+
export const zSlackChannelSetQuery = z.object({
|
|
3182
3178
|
scope: z.enum(["user"]).optional(),
|
|
3183
3179
|
});
|
|
3184
3180
|
/**
|
|
3185
3181
|
* Updated installation
|
|
3186
3182
|
*/
|
|
3187
|
-
export const
|
|
3183
|
+
export const zSlackChannelSetResponse = zSlackInstallationResponse;
|
|
3188
3184
|
export const zVaultListQuery = z.object({
|
|
3189
3185
|
scope: z.enum(["user"]).optional(),
|
|
3190
3186
|
limit: z.number().gte(1).lte(1000).optional(),
|