@renai-labs/sdk 0.1.10 → 0.1.12

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.
@@ -273,6 +273,50 @@ export type Vault = {
273
273
  updatedAt: string;
274
274
  archivedAt: string | null;
275
275
  };
276
+ export type TelegramChatMapping = {
277
+ id: string;
278
+ chatId: string;
279
+ topicId: string;
280
+ chatTitle: string | null;
281
+ chatType: string | null;
282
+ projectId: string;
283
+ defaultProjectAgentId: string | null;
284
+ claimedByUserId: string | null;
285
+ fallbackSenderUserId: string | null;
286
+ allowedSenders: Array<string>;
287
+ blockedSenders: Array<string>;
288
+ createdAt: string;
289
+ updatedAt: string;
290
+ };
291
+ export type TelegramChat = {
292
+ id: string;
293
+ chatId: string;
294
+ topicId: string;
295
+ chatTitle: string | null;
296
+ chatType: string | null;
297
+ projectId: string;
298
+ defaultProjectAgentId: string | null;
299
+ claimedByUserId: string | null;
300
+ fallbackSenderUserId: string | null;
301
+ allowedSenders: Array<string>;
302
+ blockedSenders: Array<string>;
303
+ createdAt: string;
304
+ updatedAt: string;
305
+ projectName: string | null;
306
+ };
307
+ export type TelegramClaimCode = {
308
+ code: string;
309
+ groupUrl: string;
310
+ dmUrl: string;
311
+ };
312
+ export type TelegramLinkStatus = {
313
+ linked: boolean;
314
+ telegramUserId: string | null;
315
+ };
316
+ export type TelegramLinkCode = {
317
+ code: string;
318
+ url: string;
319
+ };
276
320
  export type ProjectEmailResponse = {
277
321
  id: string;
278
322
  orgId: string;
@@ -695,6 +739,24 @@ export type Topology = {
695
739
  enabled?: boolean;
696
740
  notes?: string;
697
741
  }>;
742
+ emails?: Array<{
743
+ /**
744
+ * A live Ren entity id (e.g. pod_…, prj_…, agt_…). Pins the spec entry to an existing row.
745
+ */
746
+ id: string;
747
+ /**
748
+ * Slug of the project this mailbox routes inbound email to.
749
+ */
750
+ project: string;
751
+ /**
752
+ * Local part of the mailbox address (before the @).
753
+ */
754
+ localPart: string;
755
+ /**
756
+ * Full inbound email address for the project.
757
+ */
758
+ address: string;
759
+ }>;
698
760
  };
699
761
  export type SkillVersion = {
700
762
  id: string;
@@ -8963,6 +9025,282 @@ export type EmailSetResponses = {
8963
9025
  200: ProjectEmailResponse;
8964
9026
  };
8965
9027
  export type EmailSetResponse = EmailSetResponses[keyof EmailSetResponses];
9028
+ export type TelegramLinkCodeData = {
9029
+ body?: never;
9030
+ path?: never;
9031
+ query?: {
9032
+ /**
9033
+ * Pass 'user' to scope the operation to the authenticated user's private namespace. Omit for the org-wide namespace.
9034
+ */
9035
+ scope?: "user";
9036
+ };
9037
+ url: "/api/telegram/link-code";
9038
+ };
9039
+ export type TelegramLinkCodeErrors = {
9040
+ /**
9041
+ * Unauthorized
9042
+ */
9043
+ 401: {
9044
+ error: string;
9045
+ };
9046
+ /**
9047
+ * Forbidden
9048
+ */
9049
+ 403: {
9050
+ error: string;
9051
+ };
9052
+ };
9053
+ export type TelegramLinkCodeError = TelegramLinkCodeErrors[keyof TelegramLinkCodeErrors];
9054
+ export type TelegramLinkCodeResponses = {
9055
+ /**
9056
+ * Link code
9057
+ */
9058
+ 200: TelegramLinkCode;
9059
+ };
9060
+ export type TelegramLinkCodeResponse = TelegramLinkCodeResponses[keyof TelegramLinkCodeResponses];
9061
+ export type TelegramMeData = {
9062
+ body?: never;
9063
+ path?: never;
9064
+ query?: {
9065
+ /**
9066
+ * Pass 'user' to scope the operation to the authenticated user's private namespace. Omit for the org-wide namespace.
9067
+ */
9068
+ scope?: "user";
9069
+ };
9070
+ url: "/api/telegram/me";
9071
+ };
9072
+ export type TelegramMeErrors = {
9073
+ /**
9074
+ * Unauthorized
9075
+ */
9076
+ 401: {
9077
+ error: string;
9078
+ };
9079
+ /**
9080
+ * Forbidden
9081
+ */
9082
+ 403: {
9083
+ error: string;
9084
+ };
9085
+ };
9086
+ export type TelegramMeError = TelegramMeErrors[keyof TelegramMeErrors];
9087
+ export type TelegramMeResponses = {
9088
+ /**
9089
+ * Link status
9090
+ */
9091
+ 200: TelegramLinkStatus;
9092
+ };
9093
+ export type TelegramMeResponse = TelegramMeResponses[keyof TelegramMeResponses];
9094
+ export type TelegramUnlinkData = {
9095
+ body?: never;
9096
+ path?: never;
9097
+ query?: {
9098
+ /**
9099
+ * Pass 'user' to scope the operation to the authenticated user's private namespace. Omit for the org-wide namespace.
9100
+ */
9101
+ scope?: "user";
9102
+ };
9103
+ url: "/api/telegram/link";
9104
+ };
9105
+ export type TelegramUnlinkErrors = {
9106
+ /**
9107
+ * Unauthorized
9108
+ */
9109
+ 401: {
9110
+ error: string;
9111
+ };
9112
+ /**
9113
+ * Forbidden
9114
+ */
9115
+ 403: {
9116
+ error: string;
9117
+ };
9118
+ };
9119
+ export type TelegramUnlinkError = TelegramUnlinkErrors[keyof TelegramUnlinkErrors];
9120
+ export type TelegramUnlinkResponses = {
9121
+ /**
9122
+ * Unlinked
9123
+ */
9124
+ 204: void;
9125
+ };
9126
+ export type TelegramUnlinkResponse = TelegramUnlinkResponses[keyof TelegramUnlinkResponses];
9127
+ export type TelegramClaimCodeData = {
9128
+ body?: {
9129
+ projectId: string;
9130
+ defaultProjectAgentId?: string | null;
9131
+ };
9132
+ path?: never;
9133
+ query?: {
9134
+ /**
9135
+ * Pass 'user' to scope the operation to the authenticated user's private namespace. Omit for the org-wide namespace.
9136
+ */
9137
+ scope?: "user";
9138
+ };
9139
+ url: "/api/telegram/chats/claim-code";
9140
+ };
9141
+ export type TelegramClaimCodeErrors = {
9142
+ /**
9143
+ * Bad request
9144
+ */
9145
+ 400: {
9146
+ error: string;
9147
+ };
9148
+ /**
9149
+ * Unauthorized
9150
+ */
9151
+ 401: {
9152
+ error: string;
9153
+ };
9154
+ /**
9155
+ * Forbidden
9156
+ */
9157
+ 403: {
9158
+ error: string;
9159
+ };
9160
+ /**
9161
+ * Not found
9162
+ */
9163
+ 404: {
9164
+ error: string;
9165
+ };
9166
+ };
9167
+ export type TelegramClaimCodeError = TelegramClaimCodeErrors[keyof TelegramClaimCodeErrors];
9168
+ export type TelegramClaimCodeResponses = {
9169
+ /**
9170
+ * Claim code
9171
+ */
9172
+ 200: TelegramClaimCode;
9173
+ };
9174
+ export type TelegramClaimCodeResponse = TelegramClaimCodeResponses[keyof TelegramClaimCodeResponses];
9175
+ export type TelegramChatListData = {
9176
+ body?: never;
9177
+ path?: never;
9178
+ query?: {
9179
+ /**
9180
+ * Pass 'user' to scope the operation to the authenticated user's private namespace. Omit for the org-wide namespace.
9181
+ */
9182
+ scope?: "user";
9183
+ };
9184
+ url: "/api/telegram/chats";
9185
+ };
9186
+ export type TelegramChatListErrors = {
9187
+ /**
9188
+ * Unauthorized
9189
+ */
9190
+ 401: {
9191
+ error: string;
9192
+ };
9193
+ /**
9194
+ * Forbidden
9195
+ */
9196
+ 403: {
9197
+ error: string;
9198
+ };
9199
+ };
9200
+ export type TelegramChatListError = TelegramChatListErrors[keyof TelegramChatListErrors];
9201
+ export type TelegramChatListResponses = {
9202
+ /**
9203
+ * Mapped chats
9204
+ */
9205
+ 200: Array<TelegramChat>;
9206
+ };
9207
+ export type TelegramChatListResponse = TelegramChatListResponses[keyof TelegramChatListResponses];
9208
+ export type TelegramChatUnsetData = {
9209
+ body?: never;
9210
+ path: {
9211
+ chatId: string;
9212
+ };
9213
+ query?: {
9214
+ /**
9215
+ * Pass 'user' to scope the operation to the authenticated user's private namespace. Omit for the org-wide namespace.
9216
+ */
9217
+ scope?: "user";
9218
+ topicId?: string;
9219
+ };
9220
+ url: "/api/telegram/chats/{chatId}";
9221
+ };
9222
+ export type TelegramChatUnsetErrors = {
9223
+ /**
9224
+ * Unauthorized
9225
+ */
9226
+ 401: {
9227
+ error: string;
9228
+ };
9229
+ /**
9230
+ * Forbidden
9231
+ */
9232
+ 403: {
9233
+ error: string;
9234
+ };
9235
+ /**
9236
+ * Not found
9237
+ */
9238
+ 404: {
9239
+ error: string;
9240
+ };
9241
+ };
9242
+ export type TelegramChatUnsetError = TelegramChatUnsetErrors[keyof TelegramChatUnsetErrors];
9243
+ export type TelegramChatUnsetResponses = {
9244
+ /**
9245
+ * Removed
9246
+ */
9247
+ 204: void;
9248
+ };
9249
+ export type TelegramChatUnsetResponse = TelegramChatUnsetResponses[keyof TelegramChatUnsetResponses];
9250
+ export type TelegramChatSetData = {
9251
+ body?: {
9252
+ projectId: string;
9253
+ defaultProjectAgentId?: string | null;
9254
+ fallbackSenderUserId?: string | null;
9255
+ allowedSenders?: Array<string>;
9256
+ blockedSenders?: Array<string>;
9257
+ };
9258
+ path: {
9259
+ chatId: string;
9260
+ };
9261
+ query?: {
9262
+ /**
9263
+ * Pass 'user' to scope the operation to the authenticated user's private namespace. Omit for the org-wide namespace.
9264
+ */
9265
+ scope?: "user";
9266
+ topicId?: string;
9267
+ };
9268
+ url: "/api/telegram/chats/{chatId}";
9269
+ };
9270
+ export type TelegramChatSetErrors = {
9271
+ /**
9272
+ * Bad request
9273
+ */
9274
+ 400: {
9275
+ error: string;
9276
+ };
9277
+ /**
9278
+ * Unauthorized
9279
+ */
9280
+ 401: {
9281
+ error: string;
9282
+ };
9283
+ /**
9284
+ * Forbidden
9285
+ */
9286
+ 403: {
9287
+ error: string;
9288
+ };
9289
+ /**
9290
+ * Not found
9291
+ */
9292
+ 404: {
9293
+ error: string;
9294
+ };
9295
+ };
9296
+ export type TelegramChatSetError = TelegramChatSetErrors[keyof TelegramChatSetErrors];
9297
+ export type TelegramChatSetResponses = {
9298
+ /**
9299
+ * Updated mapping
9300
+ */
9301
+ 200: TelegramChatMapping;
9302
+ };
9303
+ export type TelegramChatSetResponse = TelegramChatSetResponses[keyof TelegramChatSetResponses];
8966
9304
  export type VaultListData = {
8967
9305
  body?: never;
8968
9306
  path?: never;
@@ -836,6 +836,50 @@ export declare const zVault: z.ZodObject<{
836
836
  updatedAt: z.ZodISODateTime;
837
837
  archivedAt: z.ZodNullable<z.ZodISODateTime>;
838
838
  }, z.core.$strip>;
839
+ export declare const zTelegramChatMapping: z.ZodObject<{
840
+ id: z.ZodString;
841
+ chatId: z.ZodString;
842
+ topicId: z.ZodString;
843
+ chatTitle: z.ZodNullable<z.ZodString>;
844
+ chatType: z.ZodNullable<z.ZodString>;
845
+ projectId: z.ZodString;
846
+ defaultProjectAgentId: z.ZodNullable<z.ZodString>;
847
+ claimedByUserId: z.ZodNullable<z.ZodString>;
848
+ fallbackSenderUserId: z.ZodNullable<z.ZodString>;
849
+ allowedSenders: z.ZodArray<z.ZodString>;
850
+ blockedSenders: z.ZodArray<z.ZodString>;
851
+ createdAt: z.ZodISODateTime;
852
+ updatedAt: z.ZodISODateTime;
853
+ }, z.core.$strip>;
854
+ export declare const zTelegramChat: z.ZodObject<{
855
+ id: z.ZodString;
856
+ chatId: z.ZodString;
857
+ topicId: z.ZodString;
858
+ chatTitle: z.ZodNullable<z.ZodString>;
859
+ chatType: z.ZodNullable<z.ZodString>;
860
+ projectId: z.ZodString;
861
+ defaultProjectAgentId: z.ZodNullable<z.ZodString>;
862
+ claimedByUserId: z.ZodNullable<z.ZodString>;
863
+ fallbackSenderUserId: z.ZodNullable<z.ZodString>;
864
+ allowedSenders: z.ZodArray<z.ZodString>;
865
+ blockedSenders: z.ZodArray<z.ZodString>;
866
+ createdAt: z.ZodISODateTime;
867
+ updatedAt: z.ZodISODateTime;
868
+ projectName: z.ZodNullable<z.ZodString>;
869
+ }, z.core.$strip>;
870
+ export declare const zTelegramClaimCode: z.ZodObject<{
871
+ code: z.ZodString;
872
+ groupUrl: z.ZodURL;
873
+ dmUrl: z.ZodURL;
874
+ }, z.core.$strip>;
875
+ export declare const zTelegramLinkStatus: z.ZodObject<{
876
+ linked: z.ZodBoolean;
877
+ telegramUserId: z.ZodNullable<z.ZodString>;
878
+ }, z.core.$strip>;
879
+ export declare const zTelegramLinkCode: z.ZodObject<{
880
+ code: z.ZodString;
881
+ url: z.ZodURL;
882
+ }, z.core.$strip>;
839
883
  export declare const zProjectEmailResponse: z.ZodObject<{
840
884
  id: z.ZodString;
841
885
  orgId: z.ZodString;
@@ -1133,6 +1177,12 @@ export declare const zTopology: z.ZodObject<{
1133
1177
  enabled: z.ZodOptional<z.ZodBoolean>;
1134
1178
  notes: z.ZodOptional<z.ZodString>;
1135
1179
  }, z.core.$strip>>>;
1180
+ emails: z.ZodOptional<z.ZodArray<z.ZodObject<{
1181
+ id: z.ZodString;
1182
+ project: z.ZodString;
1183
+ localPart: z.ZodString;
1184
+ address: z.ZodEmail;
1185
+ }, z.core.$strip>>>;
1136
1186
  }, z.core.$strip>;
1137
1187
  export declare const zSkillVersion: z.ZodObject<{
1138
1188
  id: z.ZodString;
@@ -11427,6 +11477,12 @@ export declare const zTopologyGetResponse: z.ZodObject<{
11427
11477
  enabled: z.ZodOptional<z.ZodBoolean>;
11428
11478
  notes: z.ZodOptional<z.ZodString>;
11429
11479
  }, z.core.$strip>>>;
11480
+ emails: z.ZodOptional<z.ZodArray<z.ZodObject<{
11481
+ id: z.ZodString;
11482
+ project: z.ZodString;
11483
+ localPart: z.ZodString;
11484
+ address: z.ZodEmail;
11485
+ }, z.core.$strip>>>;
11430
11486
  }, z.core.$strip>;
11431
11487
  export declare const zTopologyShareListQuery: z.ZodObject<{
11432
11488
  scope: z.ZodOptional<z.ZodEnum<{
@@ -11976,6 +12032,127 @@ export declare const zEmailSetResponse: z.ZodObject<{
11976
12032
  address: z.ZodString;
11977
12033
  projectName: z.ZodNullable<z.ZodString>;
11978
12034
  }, z.core.$strip>;
12035
+ export declare const zTelegramLinkCodeQuery: z.ZodObject<{
12036
+ scope: z.ZodOptional<z.ZodEnum<{
12037
+ user: "user";
12038
+ }>>;
12039
+ }, z.core.$strip>;
12040
+ /**
12041
+ * Link code
12042
+ */
12043
+ export declare const zTelegramLinkCodeResponse: z.ZodObject<{
12044
+ code: z.ZodString;
12045
+ url: z.ZodURL;
12046
+ }, z.core.$strip>;
12047
+ export declare const zTelegramMeQuery: z.ZodObject<{
12048
+ scope: z.ZodOptional<z.ZodEnum<{
12049
+ user: "user";
12050
+ }>>;
12051
+ }, z.core.$strip>;
12052
+ /**
12053
+ * Link status
12054
+ */
12055
+ export declare const zTelegramMeResponse: z.ZodObject<{
12056
+ linked: z.ZodBoolean;
12057
+ telegramUserId: z.ZodNullable<z.ZodString>;
12058
+ }, z.core.$strip>;
12059
+ export declare const zTelegramUnlinkQuery: z.ZodObject<{
12060
+ scope: z.ZodOptional<z.ZodEnum<{
12061
+ user: "user";
12062
+ }>>;
12063
+ }, z.core.$strip>;
12064
+ /**
12065
+ * Unlinked
12066
+ */
12067
+ export declare const zTelegramUnlinkResponse: z.ZodVoid;
12068
+ export declare const zTelegramClaimCodeBody: z.ZodObject<{
12069
+ projectId: z.ZodString;
12070
+ defaultProjectAgentId: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
12071
+ }, z.core.$strip>;
12072
+ export declare const zTelegramClaimCodeQuery: z.ZodObject<{
12073
+ scope: z.ZodOptional<z.ZodEnum<{
12074
+ user: "user";
12075
+ }>>;
12076
+ }, z.core.$strip>;
12077
+ /**
12078
+ * Claim code
12079
+ */
12080
+ export declare const zTelegramClaimCodeResponse: z.ZodObject<{
12081
+ code: z.ZodString;
12082
+ groupUrl: z.ZodURL;
12083
+ dmUrl: z.ZodURL;
12084
+ }, z.core.$strip>;
12085
+ export declare const zTelegramChatListQuery: z.ZodObject<{
12086
+ scope: z.ZodOptional<z.ZodEnum<{
12087
+ user: "user";
12088
+ }>>;
12089
+ }, z.core.$strip>;
12090
+ /**
12091
+ * Mapped chats
12092
+ */
12093
+ export declare const zTelegramChatListResponse: z.ZodArray<z.ZodObject<{
12094
+ id: z.ZodString;
12095
+ chatId: z.ZodString;
12096
+ topicId: z.ZodString;
12097
+ chatTitle: z.ZodNullable<z.ZodString>;
12098
+ chatType: z.ZodNullable<z.ZodString>;
12099
+ projectId: z.ZodString;
12100
+ defaultProjectAgentId: z.ZodNullable<z.ZodString>;
12101
+ claimedByUserId: z.ZodNullable<z.ZodString>;
12102
+ fallbackSenderUserId: z.ZodNullable<z.ZodString>;
12103
+ allowedSenders: z.ZodArray<z.ZodString>;
12104
+ blockedSenders: z.ZodArray<z.ZodString>;
12105
+ createdAt: z.ZodISODateTime;
12106
+ updatedAt: z.ZodISODateTime;
12107
+ projectName: z.ZodNullable<z.ZodString>;
12108
+ }, z.core.$strip>>;
12109
+ export declare const zTelegramChatUnsetPath: z.ZodObject<{
12110
+ chatId: z.ZodString;
12111
+ }, z.core.$strip>;
12112
+ export declare const zTelegramChatUnsetQuery: z.ZodObject<{
12113
+ scope: z.ZodOptional<z.ZodEnum<{
12114
+ user: "user";
12115
+ }>>;
12116
+ topicId: z.ZodDefault<z.ZodOptional<z.ZodString>>;
12117
+ }, z.core.$strip>;
12118
+ /**
12119
+ * Removed
12120
+ */
12121
+ export declare const zTelegramChatUnsetResponse: z.ZodVoid;
12122
+ export declare const zTelegramChatSetBody: z.ZodObject<{
12123
+ projectId: z.ZodString;
12124
+ defaultProjectAgentId: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
12125
+ fallbackSenderUserId: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
12126
+ allowedSenders: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
12127
+ blockedSenders: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
12128
+ }, z.core.$strip>;
12129
+ export declare const zTelegramChatSetPath: z.ZodObject<{
12130
+ chatId: z.ZodString;
12131
+ }, z.core.$strip>;
12132
+ export declare const zTelegramChatSetQuery: z.ZodObject<{
12133
+ scope: z.ZodOptional<z.ZodEnum<{
12134
+ user: "user";
12135
+ }>>;
12136
+ topicId: z.ZodDefault<z.ZodOptional<z.ZodString>>;
12137
+ }, z.core.$strip>;
12138
+ /**
12139
+ * Updated mapping
12140
+ */
12141
+ export declare const zTelegramChatSetResponse: z.ZodObject<{
12142
+ id: z.ZodString;
12143
+ chatId: z.ZodString;
12144
+ topicId: z.ZodString;
12145
+ chatTitle: z.ZodNullable<z.ZodString>;
12146
+ chatType: z.ZodNullable<z.ZodString>;
12147
+ projectId: z.ZodString;
12148
+ defaultProjectAgentId: z.ZodNullable<z.ZodString>;
12149
+ claimedByUserId: z.ZodNullable<z.ZodString>;
12150
+ fallbackSenderUserId: z.ZodNullable<z.ZodString>;
12151
+ allowedSenders: z.ZodArray<z.ZodString>;
12152
+ blockedSenders: z.ZodArray<z.ZodString>;
12153
+ createdAt: z.ZodISODateTime;
12154
+ updatedAt: z.ZodISODateTime;
12155
+ }, z.core.$strip>;
11979
12156
  export declare const zVaultListQuery: z.ZodObject<{
11980
12157
  scope: z.ZodOptional<z.ZodEnum<{
11981
12158
  user: "user";
@@ -13398,4 +13575,10 @@ export declare const zRegistryTopologyShareGetResponse: z.ZodObject<{
13398
13575
  enabled: z.ZodOptional<z.ZodBoolean>;
13399
13576
  notes: z.ZodOptional<z.ZodString>;
13400
13577
  }, z.core.$strip>>>;
13578
+ emails: z.ZodOptional<z.ZodArray<z.ZodObject<{
13579
+ id: z.ZodString;
13580
+ project: z.ZodString;
13581
+ localPart: z.ZodString;
13582
+ address: z.ZodEmail;
13583
+ }, z.core.$strip>>>;
13401
13584
  }, z.core.$strip>;