@metorial-services/function-bay-client 1.0.0 → 1.0.2

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.
@@ -39,9 +39,9 @@ export declare let createFunctionBayClient: (o: ClientOpts) => import("@lowerdec
39
39
  createdAt: Date;
40
40
  }, {}>;
41
41
  list: import("@lowerdeck/rpc-server").Handler<Partial<Pick<{
42
- instanceId: string;
42
+ tenantId: string;
43
43
  }, never>> & {
44
- instanceId: string;
44
+ tenantId: string;
45
45
  } & {
46
46
  limit?: number;
47
47
  after?: string;
@@ -91,7 +91,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => import("@lowerdec
91
91
  };
92
92
  }, {}>;
93
93
  };
94
- instance: {
94
+ tenant: {
95
95
  upsert: import("@lowerdeck/rpc-server").Handler<import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
96
96
  name: string;
97
97
  identifier: string;
@@ -103,7 +103,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => import("@lowerdec
103
103
  createdAt: Date;
104
104
  }, {}>;
105
105
  get: import("@lowerdeck/rpc-server").Handler<import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
106
- instanceId: string;
106
+ tenantId: string;
107
107
  }>, {
108
108
  object: string;
109
109
  id: string;
@@ -111,7 +111,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => import("@lowerdec
111
111
  name: string;
112
112
  createdAt: Date;
113
113
  }, {
114
- instance: {} & {
114
+ tenant: {} & {
115
115
  name: string;
116
116
  oid: bigint;
117
117
  id: string;
@@ -131,7 +131,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => import("@lowerdec
131
131
  };
132
132
  function: {
133
133
  upsert: import("@lowerdeck/rpc-server").Handler<import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
134
- instanceId: string;
134
+ tenantId: string;
135
135
  name: string;
136
136
  identifier: string;
137
137
  }>, {
@@ -144,7 +144,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => import("@lowerdec
144
144
  createdAt: Date;
145
145
  updatedAt: Date;
146
146
  }, {
147
- instance: {} & {
147
+ tenant: {} & {
148
148
  name: string;
149
149
  oid: bigint;
150
150
  id: string;
@@ -153,9 +153,9 @@ export declare let createFunctionBayClient: (o: ClientOpts) => import("@lowerdec
153
153
  };
154
154
  }>;
155
155
  list: import("@lowerdeck/rpc-server").Handler<Partial<Pick<{
156
- instanceId: string;
156
+ tenantId: string;
157
157
  }, never>> & {
158
- instanceId: string;
158
+ tenantId: string;
159
159
  } & {
160
160
  limit?: number;
161
161
  after?: string;
@@ -179,7 +179,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => import("@lowerdec
179
179
  has_more_before: boolean;
180
180
  };
181
181
  }, {
182
- instance: {} & {
182
+ tenant: {} & {
183
183
  name: string;
184
184
  oid: bigint;
185
185
  id: string;
@@ -188,7 +188,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => import("@lowerdec
188
188
  };
189
189
  }>;
190
190
  get: import("@lowerdeck/rpc-server").Handler<import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
191
- instanceId: string;
191
+ tenantId: string;
192
192
  functionId: string;
193
193
  }>, {
194
194
  object: string;
@@ -200,7 +200,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => import("@lowerdec
200
200
  createdAt: Date;
201
201
  updatedAt: Date;
202
202
  }, {
203
- instance: {} & {
203
+ tenant: {} & {
204
204
  name: string;
205
205
  oid: bigint;
206
206
  id: string;
@@ -220,6 +220,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => import("@lowerdec
220
220
  runtimeOid: bigint;
221
221
  functionBundleOid: bigint;
222
222
  functionOid: bigint;
223
+ encryptedEnvironmentVariables: string;
223
224
  providerData: PrismaJson.FunctionVersionProviderData;
224
225
  manifest: PrismaJson.FunctionVersionManifest;
225
226
  } | null;
@@ -232,61 +233,12 @@ export declare let createFunctionBayClient: (o: ClientOpts) => import("@lowerdec
232
233
  updatedAt: Date;
233
234
  status: import("../../../service/prisma/generated/enums").FunctionStatus;
234
235
  currentVersionOid: bigint | null;
235
- instanceOid: bigint;
236
- runtimeOid: bigint | null;
237
- };
238
- }>;
239
- delete: import("@lowerdeck/rpc-server").Handler<import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
240
- instanceId: string;
241
- functionId: string;
242
- }>, {
243
- object: string;
244
- currentVersionId: string | null;
245
- id: string;
246
- status: import("../../../service/prisma/generated/enums").FunctionStatus;
247
- identifier: string;
248
- name: string;
249
- createdAt: Date;
250
- updatedAt: Date;
251
- }, {
252
- instance: {} & {
253
- name: string;
254
- oid: bigint;
255
- id: string;
256
- identifier: string;
257
- createdAt: Date;
258
- };
259
- function: {
260
- currentVersion: {
261
- name: string;
262
- oid: bigint;
263
- id: string;
264
- identifier: string;
265
- configuration: PrismaJson.FunctionConfiguration;
266
- createdAt: Date;
267
- updatedAt: Date;
268
- status: import("../../../service/prisma/generated/enums").FunctionVersionStatus;
269
- runtimeOid: bigint;
270
- functionBundleOid: bigint;
271
- functionOid: bigint;
272
- providerData: PrismaJson.FunctionVersionProviderData;
273
- manifest: PrismaJson.FunctionVersionManifest;
274
- } | null;
275
- } & {
276
- name: string;
277
- oid: bigint;
278
- id: string;
279
- identifier: string;
280
- createdAt: Date;
281
- updatedAt: Date;
282
- status: import("../../../service/prisma/generated/enums").FunctionStatus;
283
- currentVersionOid: bigint | null;
284
- instanceOid: bigint;
236
+ tenantOid: bigint;
285
237
  runtimeOid: bigint | null;
286
238
  };
287
239
  }>;
288
240
  update: import("@lowerdeck/rpc-server").Handler<import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
289
- instanceId: string;
241
+ tenantId: string;
290
242
  functionId: string;
291
243
  name: string | undefined;
292
244
  }>, {
@@ -299,7 +251,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => import("@lowerdec
299
251
  createdAt: Date;
300
252
  updatedAt: Date;
301
253
  }, {
302
- instance: {} & {
254
+ tenant: {} & {
303
255
  name: string;
304
256
  oid: bigint;
305
257
  id: string;
@@ -319,6 +271,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => import("@lowerdec
319
271
  runtimeOid: bigint;
320
272
  functionBundleOid: bigint;
321
273
  functionOid: bigint;
274
+ encryptedEnvironmentVariables: string;
322
275
  providerData: PrismaJson.FunctionVersionProviderData;
323
276
  manifest: PrismaJson.FunctionVersionManifest;
324
277
  } | null;
@@ -331,12 +284,12 @@ export declare let createFunctionBayClient: (o: ClientOpts) => import("@lowerdec
331
284
  updatedAt: Date;
332
285
  status: import("../../../service/prisma/generated/enums").FunctionStatus;
333
286
  currentVersionOid: bigint | null;
334
- instanceOid: bigint;
287
+ tenantOid: bigint;
335
288
  runtimeOid: bigint | null;
336
289
  };
337
290
  }>;
338
291
  invoke: import("@lowerdeck/rpc-server").Handler<import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
339
- instanceId: string;
292
+ tenantId: string;
340
293
  functionId: string;
341
294
  payload: Record<string, any>;
342
295
  }>, {
@@ -360,9 +313,9 @@ export declare let createFunctionBayClient: (o: ClientOpts) => import("@lowerdec
360
313
  functionVersion: {
361
314
  list: import("@lowerdeck/rpc-server").Handler<Partial<Pick<{
362
315
  functionId: string;
363
- instanceId: string;
316
+ tenantId: string;
364
317
  }, never>> & {
365
- instanceId: string;
318
+ tenantId: string;
366
319
  functionId: string;
367
320
  } & {
368
321
  limit?: number;
@@ -431,7 +384,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => import("@lowerdec
431
384
  has_more_before: boolean;
432
385
  };
433
386
  }, {
434
- instance: {} & {
387
+ tenant: {} & {
435
388
  name: string;
436
389
  oid: bigint;
437
390
  id: string;
@@ -451,6 +404,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => import("@lowerdec
451
404
  runtimeOid: bigint;
452
405
  functionBundleOid: bigint;
453
406
  functionOid: bigint;
407
+ encryptedEnvironmentVariables: string;
454
408
  providerData: PrismaJson.FunctionVersionProviderData;
455
409
  manifest: PrismaJson.FunctionVersionManifest;
456
410
  } | null;
@@ -463,12 +417,12 @@ export declare let createFunctionBayClient: (o: ClientOpts) => import("@lowerdec
463
417
  updatedAt: Date;
464
418
  status: import("../../../service/prisma/generated/enums").FunctionStatus;
465
419
  currentVersionOid: bigint | null;
466
- instanceOid: bigint;
420
+ tenantOid: bigint;
467
421
  runtimeOid: bigint | null;
468
422
  };
469
423
  }>;
470
424
  get: import("@lowerdeck/rpc-server").Handler<import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
471
- instanceId: string;
425
+ tenantId: string;
472
426
  functionId: string;
473
427
  functionVersionId: string;
474
428
  }>, {
@@ -525,7 +479,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => import("@lowerdec
525
479
  };
526
480
  createdAt: Date;
527
481
  }, {
528
- instance: {} & {
482
+ tenant: {} & {
529
483
  name: string;
530
484
  oid: bigint;
531
485
  id: string;
@@ -545,6 +499,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => import("@lowerdec
545
499
  runtimeOid: bigint;
546
500
  functionBundleOid: bigint;
547
501
  functionOid: bigint;
502
+ encryptedEnvironmentVariables: string;
548
503
  providerData: PrismaJson.FunctionVersionProviderData;
549
504
  manifest: PrismaJson.FunctionVersionManifest;
550
505
  } | null;
@@ -557,7 +512,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => import("@lowerdec
557
512
  updatedAt: Date;
558
513
  status: import("../../../service/prisma/generated/enums").FunctionStatus;
559
514
  currentVersionOid: bigint | null;
560
- instanceOid: bigint;
515
+ tenantOid: bigint;
561
516
  runtimeOid: bigint | null;
562
517
  };
563
518
  version: {
@@ -574,6 +529,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => import("@lowerdec
574
529
  runtimeOid: bigint;
575
530
  functionBundleOid: bigint;
576
531
  functionOid: bigint;
532
+ encryptedEnvironmentVariables: string;
577
533
  providerData: PrismaJson.FunctionVersionProviderData;
578
534
  manifest: PrismaJson.FunctionVersionManifest;
579
535
  } | null;
@@ -586,7 +542,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => import("@lowerdec
586
542
  updatedAt: Date;
587
543
  status: import("../../../service/prisma/generated/enums").FunctionStatus;
588
544
  currentVersionOid: bigint | null;
589
- instanceOid: bigint;
545
+ tenantOid: bigint;
590
546
  runtimeOid: bigint | null;
591
547
  };
592
548
  runtime: {
@@ -619,6 +575,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => import("@lowerdec
619
575
  runtimeOid: bigint;
620
576
  functionBundleOid: bigint;
621
577
  functionOid: bigint;
578
+ encryptedEnvironmentVariables: string;
622
579
  providerData: PrismaJson.FunctionVersionProviderData;
623
580
  manifest: PrismaJson.FunctionVersionManifest;
624
581
  };
@@ -626,7 +583,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => import("@lowerdec
626
583
  };
627
584
  functionDeployment: {
628
585
  create: import("@lowerdeck/rpc-server").Handler<import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
629
- instanceId: string;
586
+ tenantId: string;
630
587
  functionId: string;
631
588
  name: string;
632
589
  runtime: import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
@@ -764,7 +721,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => import("@lowerdec
764
721
  } | null;
765
722
  createdAt: Date;
766
723
  }, {
767
- instance: {} & {
724
+ tenant: {} & {
768
725
  name: string;
769
726
  oid: bigint;
770
727
  id: string;
@@ -784,6 +741,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => import("@lowerdec
784
741
  runtimeOid: bigint;
785
742
  functionBundleOid: bigint;
786
743
  functionOid: bigint;
744
+ encryptedEnvironmentVariables: string;
787
745
  providerData: PrismaJson.FunctionVersionProviderData;
788
746
  manifest: PrismaJson.FunctionVersionManifest;
789
747
  } | null;
@@ -796,15 +754,15 @@ export declare let createFunctionBayClient: (o: ClientOpts) => import("@lowerdec
796
754
  updatedAt: Date;
797
755
  status: import("../../../service/prisma/generated/enums").FunctionStatus;
798
756
  currentVersionOid: bigint | null;
799
- instanceOid: bigint;
757
+ tenantOid: bigint;
800
758
  runtimeOid: bigint | null;
801
759
  };
802
760
  }>;
803
761
  list: import("@lowerdeck/rpc-server").Handler<Partial<Pick<{
804
762
  functionId: string;
805
- instanceId: string;
763
+ tenantId: string;
806
764
  }, never>> & {
807
- instanceId: string;
765
+ tenantId: string;
808
766
  functionId: string;
809
767
  } & {
810
768
  limit?: number;
@@ -931,7 +889,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => import("@lowerdec
931
889
  has_more_before: boolean;
932
890
  };
933
891
  }, {
934
- instance: {} & {
892
+ tenant: {} & {
935
893
  name: string;
936
894
  oid: bigint;
937
895
  id: string;
@@ -951,6 +909,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => import("@lowerdec
951
909
  runtimeOid: bigint;
952
910
  functionBundleOid: bigint;
953
911
  functionOid: bigint;
912
+ encryptedEnvironmentVariables: string;
954
913
  providerData: PrismaJson.FunctionVersionProviderData;
955
914
  manifest: PrismaJson.FunctionVersionManifest;
956
915
  } | null;
@@ -963,12 +922,12 @@ export declare let createFunctionBayClient: (o: ClientOpts) => import("@lowerdec
963
922
  updatedAt: Date;
964
923
  status: import("../../../service/prisma/generated/enums").FunctionStatus;
965
924
  currentVersionOid: bigint | null;
966
- instanceOid: bigint;
925
+ tenantOid: bigint;
967
926
  runtimeOid: bigint | null;
968
927
  };
969
928
  }>;
970
929
  get: import("@lowerdeck/rpc-server").Handler<import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
971
- instanceId: string;
930
+ tenantId: string;
972
931
  functionId: string;
973
932
  functionDeploymentId: string;
974
933
  }>, {
@@ -1083,7 +1042,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => import("@lowerdec
1083
1042
  } | null;
1084
1043
  createdAt: Date;
1085
1044
  }, {
1086
- instance: {} & {
1045
+ tenant: {} & {
1087
1046
  name: string;
1088
1047
  oid: bigint;
1089
1048
  id: string;
@@ -1103,6 +1062,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => import("@lowerdec
1103
1062
  runtimeOid: bigint;
1104
1063
  functionBundleOid: bigint;
1105
1064
  functionOid: bigint;
1065
+ encryptedEnvironmentVariables: string;
1106
1066
  providerData: PrismaJson.FunctionVersionProviderData;
1107
1067
  manifest: PrismaJson.FunctionVersionManifest;
1108
1068
  } | null;
@@ -1115,7 +1075,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => import("@lowerdec
1115
1075
  updatedAt: Date;
1116
1076
  status: import("../../../service/prisma/generated/enums").FunctionStatus;
1117
1077
  currentVersionOid: bigint | null;
1118
- instanceOid: bigint;
1078
+ tenantOid: bigint;
1119
1079
  runtimeOid: bigint | null;
1120
1080
  };
1121
1081
  deployment: {
@@ -1132,6 +1092,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => import("@lowerdec
1132
1092
  runtimeOid: bigint;
1133
1093
  functionBundleOid: bigint;
1134
1094
  functionOid: bigint;
1095
+ encryptedEnvironmentVariables: string;
1135
1096
  providerData: PrismaJson.FunctionVersionProviderData;
1136
1097
  manifest: PrismaJson.FunctionVersionManifest;
1137
1098
  } | null;
@@ -1144,7 +1105,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => import("@lowerdec
1144
1105
  updatedAt: Date;
1145
1106
  status: import("../../../service/prisma/generated/enums").FunctionStatus;
1146
1107
  currentVersionOid: bigint | null;
1147
- instanceOid: bigint;
1108
+ tenantOid: bigint;
1148
1109
  runtimeOid: bigint | null;
1149
1110
  };
1150
1111
  runtime: {
@@ -1177,6 +1138,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => import("@lowerdec
1177
1138
  runtimeOid: bigint;
1178
1139
  functionBundleOid: bigint;
1179
1140
  functionOid: bigint;
1141
+ encryptedEnvironmentVariables: string;
1180
1142
  providerData: PrismaJson.FunctionVersionProviderData;
1181
1143
  manifest: PrismaJson.FunctionVersionManifest;
1182
1144
  } | null;
@@ -1213,7 +1175,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => import("@lowerdec
1213
1175
  };
1214
1176
  }>;
1215
1177
  getOutput: import("@lowerdeck/rpc-server").Handler<import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
1216
- instanceId: string;
1178
+ tenantId: string;
1217
1179
  functionId: string;
1218
1180
  functionDeploymentId: string;
1219
1181
  }>, {
@@ -1230,7 +1192,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => import("@lowerdec
1230
1192
  startedAt: Date | null;
1231
1193
  endedAt: Date | null;
1232
1194
  }[], {
1233
- instance: {} & {
1195
+ tenant: {} & {
1234
1196
  name: string;
1235
1197
  oid: bigint;
1236
1198
  id: string;
@@ -1250,6 +1212,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => import("@lowerdec
1250
1212
  runtimeOid: bigint;
1251
1213
  functionBundleOid: bigint;
1252
1214
  functionOid: bigint;
1215
+ encryptedEnvironmentVariables: string;
1253
1216
  providerData: PrismaJson.FunctionVersionProviderData;
1254
1217
  manifest: PrismaJson.FunctionVersionManifest;
1255
1218
  } | null;
@@ -1262,7 +1225,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => import("@lowerdec
1262
1225
  updatedAt: Date;
1263
1226
  status: import("../../../service/prisma/generated/enums").FunctionStatus;
1264
1227
  currentVersionOid: bigint | null;
1265
- instanceOid: bigint;
1228
+ tenantOid: bigint;
1266
1229
  runtimeOid: bigint | null;
1267
1230
  };
1268
1231
  deployment: {
@@ -1279,6 +1242,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => import("@lowerdec
1279
1242
  runtimeOid: bigint;
1280
1243
  functionBundleOid: bigint;
1281
1244
  functionOid: bigint;
1245
+ encryptedEnvironmentVariables: string;
1282
1246
  providerData: PrismaJson.FunctionVersionProviderData;
1283
1247
  manifest: PrismaJson.FunctionVersionManifest;
1284
1248
  } | null;
@@ -1291,7 +1255,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => import("@lowerdec
1291
1255
  updatedAt: Date;
1292
1256
  status: import("../../../service/prisma/generated/enums").FunctionStatus;
1293
1257
  currentVersionOid: bigint | null;
1294
- instanceOid: bigint;
1258
+ tenantOid: bigint;
1295
1259
  runtimeOid: bigint | null;
1296
1260
  };
1297
1261
  runtime: {
@@ -1324,6 +1288,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => import("@lowerdec
1324
1288
  runtimeOid: bigint;
1325
1289
  functionBundleOid: bigint;
1326
1290
  functionOid: bigint;
1291
+ encryptedEnvironmentVariables: string;
1327
1292
  providerData: PrismaJson.FunctionVersionProviderData;
1328
1293
  manifest: PrismaJson.FunctionVersionManifest;
1329
1294
  } | null;
@@ -1363,9 +1328,9 @@ export declare let createFunctionBayClient: (o: ClientOpts) => import("@lowerdec
1363
1328
  functionInvocation: {
1364
1329
  list: import("@lowerdeck/rpc-server").Handler<Partial<Pick<{
1365
1330
  functionId: string;
1366
- instanceId: string;
1331
+ tenantId: string;
1367
1332
  }, never>> & {
1368
- instanceId: string;
1333
+ tenantId: string;
1369
1334
  functionId: string;
1370
1335
  } & {
1371
1336
  limit?: number;
@@ -1394,7 +1359,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => import("@lowerdec
1394
1359
  has_more_before: boolean;
1395
1360
  };
1396
1361
  }, {
1397
- instance: {} & {
1362
+ tenant: {} & {
1398
1363
  name: string;
1399
1364
  oid: bigint;
1400
1365
  id: string;
@@ -1414,6 +1379,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => import("@lowerdec
1414
1379
  runtimeOid: bigint;
1415
1380
  functionBundleOid: bigint;
1416
1381
  functionOid: bigint;
1382
+ encryptedEnvironmentVariables: string;
1417
1383
  providerData: PrismaJson.FunctionVersionProviderData;
1418
1384
  manifest: PrismaJson.FunctionVersionManifest;
1419
1385
  } | null;
@@ -1426,12 +1392,12 @@ export declare let createFunctionBayClient: (o: ClientOpts) => import("@lowerdec
1426
1392
  updatedAt: Date;
1427
1393
  status: import("../../../service/prisma/generated/enums").FunctionStatus;
1428
1394
  currentVersionOid: bigint | null;
1429
- instanceOid: bigint;
1395
+ tenantOid: bigint;
1430
1396
  runtimeOid: bigint | null;
1431
1397
  };
1432
1398
  }>;
1433
1399
  get: import("@lowerdeck/rpc-server").Handler<import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
1434
- instanceId: string;
1400
+ tenantId: string;
1435
1401
  functionId: string;
1436
1402
  functionInvocationId: string;
1437
1403
  }>, {
@@ -1448,7 +1414,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => import("@lowerdec
1448
1414
  }[];
1449
1415
  createdAt: Date;
1450
1416
  }, {
1451
- instance: {} & {
1417
+ tenant: {} & {
1452
1418
  name: string;
1453
1419
  oid: bigint;
1454
1420
  id: string;
@@ -1468,6 +1434,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => import("@lowerdec
1468
1434
  runtimeOid: bigint;
1469
1435
  functionBundleOid: bigint;
1470
1436
  functionOid: bigint;
1437
+ encryptedEnvironmentVariables: string;
1471
1438
  providerData: PrismaJson.FunctionVersionProviderData;
1472
1439
  manifest: PrismaJson.FunctionVersionManifest;
1473
1440
  } | null;
@@ -1480,7 +1447,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => import("@lowerdec
1480
1447
  updatedAt: Date;
1481
1448
  status: import("../../../service/prisma/generated/enums").FunctionStatus;
1482
1449
  currentVersionOid: bigint | null;
1483
- instanceOid: bigint;
1450
+ tenantOid: bigint;
1484
1451
  runtimeOid: bigint | null;
1485
1452
  };
1486
1453
  invocation: {
@@ -1496,6 +1463,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => import("@lowerdec
1496
1463
  runtimeOid: bigint;
1497
1464
  functionBundleOid: bigint;
1498
1465
  functionOid: bigint;
1466
+ encryptedEnvironmentVariables: string;
1499
1467
  providerData: PrismaJson.FunctionVersionProviderData;
1500
1468
  manifest: PrismaJson.FunctionVersionManifest;
1501
1469
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.ts"],"names":[],"mappings":"AACA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAuC,CAAC"}
package/dist/index.d.ts CHANGED
@@ -183,9 +183,9 @@ export declare let createFunctionBayClient: (o: ClientOpts) => InferClient<{
183
183
  createdAt: Date;
184
184
  }, {}>;
185
185
  list: Handler<Partial<Pick<{
186
- instanceId: string;
186
+ tenantId: string;
187
187
  }, never>> & {
188
- instanceId: string;
188
+ tenantId: string;
189
189
  } & {
190
190
  limit?: number;
191
191
  after?: string;
@@ -235,7 +235,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => InferClient<{
235
235
  };
236
236
  }, {}>;
237
237
  };
238
- instance: {
238
+ tenant: {
239
239
  upsert: Handler<UndefinedIsOptional<{
240
240
  name: string;
241
241
  identifier: string;
@@ -247,7 +247,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => InferClient<{
247
247
  createdAt: Date;
248
248
  }, {}>;
249
249
  get: Handler<UndefinedIsOptional<{
250
- instanceId: string;
250
+ tenantId: string;
251
251
  }>, {
252
252
  object: string;
253
253
  id: string;
@@ -255,7 +255,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => InferClient<{
255
255
  name: string;
256
256
  createdAt: Date;
257
257
  }, {
258
- instance: {} & {
258
+ tenant: {} & {
259
259
  name: string;
260
260
  oid: bigint;
261
261
  id: string;
@@ -275,7 +275,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => InferClient<{
275
275
  };
276
276
  function: {
277
277
  upsert: Handler<UndefinedIsOptional<{
278
- instanceId: string;
278
+ tenantId: string;
279
279
  name: string;
280
280
  identifier: string;
281
281
  }>, {
@@ -288,7 +288,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => InferClient<{
288
288
  createdAt: Date;
289
289
  updatedAt: Date;
290
290
  }, {
291
- instance: {} & {
291
+ tenant: {} & {
292
292
  name: string;
293
293
  oid: bigint;
294
294
  id: string;
@@ -297,9 +297,9 @@ export declare let createFunctionBayClient: (o: ClientOpts) => InferClient<{
297
297
  };
298
298
  }>;
299
299
  list: Handler<Partial<Pick<{
300
- instanceId: string;
300
+ tenantId: string;
301
301
  }, never>> & {
302
- instanceId: string;
302
+ tenantId: string;
303
303
  } & {
304
304
  limit?: number;
305
305
  after?: string;
@@ -323,7 +323,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => InferClient<{
323
323
  has_more_before: boolean;
324
324
  };
325
325
  }, {
326
- instance: {} & {
326
+ tenant: {} & {
327
327
  name: string;
328
328
  oid: bigint;
329
329
  id: string;
@@ -332,7 +332,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => InferClient<{
332
332
  };
333
333
  }>;
334
334
  get: Handler<UndefinedIsOptional<{
335
- instanceId: string;
335
+ tenantId: string;
336
336
  functionId: string;
337
337
  }>, {
338
338
  object: string;
@@ -344,7 +344,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => InferClient<{
344
344
  createdAt: Date;
345
345
  updatedAt: Date;
346
346
  }, {
347
- instance: {} & {
347
+ tenant: {} & {
348
348
  name: string;
349
349
  oid: bigint;
350
350
  id: string;
@@ -361,6 +361,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => InferClient<{
361
361
  createdAt: Date;
362
362
  updatedAt: Date;
363
363
  runtimeOid: bigint;
364
+ encryptedEnvironmentVariables: string;
364
365
  functionOid: bigint;
365
366
  functionBundleOid: bigint;
366
367
  configuration: PrismaJson.FunctionConfiguration;
@@ -374,63 +375,14 @@ export declare let createFunctionBayClient: (o: ClientOpts) => InferClient<{
374
375
  status: FunctionStatus;
375
376
  identifier: string;
376
377
  currentVersionOid: bigint | null;
377
- instanceOid: bigint;
378
- createdAt: Date;
379
- updatedAt: Date;
380
- runtimeOid: bigint | null;
381
- };
382
- }>;
383
- delete: Handler<UndefinedIsOptional<{
384
- instanceId: string;
385
- functionId: string;
386
- }>, {
387
- object: string;
388
- currentVersionId: string | null;
389
- id: string;
390
- status: FunctionStatus;
391
- identifier: string;
392
- name: string;
393
- createdAt: Date;
394
- updatedAt: Date;
395
- }, {
396
- instance: {} & {
397
- name: string;
398
- oid: bigint;
399
- id: string;
400
- identifier: string;
401
- createdAt: Date;
402
- };
403
- function: {
404
- currentVersion: {
405
- name: string;
406
- oid: bigint;
407
- id: string;
408
- status: FunctionVersionStatus;
409
- identifier: string;
410
- createdAt: Date;
411
- updatedAt: Date;
412
- runtimeOid: bigint;
413
- functionOid: bigint;
414
- functionBundleOid: bigint;
415
- configuration: PrismaJson.FunctionConfiguration;
416
- providerData: PrismaJson.FunctionVersionProviderData;
417
- manifest: PrismaJson.FunctionVersionManifest;
418
- } | null;
419
- } & {
420
- name: string;
421
- oid: bigint;
422
- id: string;
423
- status: FunctionStatus;
424
- identifier: string;
425
- currentVersionOid: bigint | null;
426
- instanceOid: bigint;
378
+ tenantOid: bigint;
427
379
  createdAt: Date;
428
380
  updatedAt: Date;
429
381
  runtimeOid: bigint | null;
430
382
  };
431
383
  }>;
432
384
  update: Handler<UndefinedIsOptional<{
433
- instanceId: string;
385
+ tenantId: string;
434
386
  functionId: string;
435
387
  name: string | undefined;
436
388
  }>, {
@@ -443,7 +395,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => InferClient<{
443
395
  createdAt: Date;
444
396
  updatedAt: Date;
445
397
  }, {
446
- instance: {} & {
398
+ tenant: {} & {
447
399
  name: string;
448
400
  oid: bigint;
449
401
  id: string;
@@ -460,6 +412,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => InferClient<{
460
412
  createdAt: Date;
461
413
  updatedAt: Date;
462
414
  runtimeOid: bigint;
415
+ encryptedEnvironmentVariables: string;
463
416
  functionOid: bigint;
464
417
  functionBundleOid: bigint;
465
418
  configuration: PrismaJson.FunctionConfiguration;
@@ -473,14 +426,14 @@ export declare let createFunctionBayClient: (o: ClientOpts) => InferClient<{
473
426
  status: FunctionStatus;
474
427
  identifier: string;
475
428
  currentVersionOid: bigint | null;
476
- instanceOid: bigint;
429
+ tenantOid: bigint;
477
430
  createdAt: Date;
478
431
  updatedAt: Date;
479
432
  runtimeOid: bigint | null;
480
433
  };
481
434
  }>;
482
435
  invoke: Handler<UndefinedIsOptional<{
483
- instanceId: string;
436
+ tenantId: string;
484
437
  functionId: string;
485
438
  payload: Record<string, any>;
486
439
  }>, {
@@ -504,9 +457,9 @@ export declare let createFunctionBayClient: (o: ClientOpts) => InferClient<{
504
457
  functionVersion: {
505
458
  list: Handler<Partial<Pick<{
506
459
  functionId: string;
507
- instanceId: string;
460
+ tenantId: string;
508
461
  }, never>> & {
509
- instanceId: string;
462
+ tenantId: string;
510
463
  functionId: string;
511
464
  } & {
512
465
  limit?: number;
@@ -575,7 +528,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => InferClient<{
575
528
  has_more_before: boolean;
576
529
  };
577
530
  }, {
578
- instance: {} & {
531
+ tenant: {} & {
579
532
  name: string;
580
533
  oid: bigint;
581
534
  id: string;
@@ -592,6 +545,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => InferClient<{
592
545
  createdAt: Date;
593
546
  updatedAt: Date;
594
547
  runtimeOid: bigint;
548
+ encryptedEnvironmentVariables: string;
595
549
  functionOid: bigint;
596
550
  functionBundleOid: bigint;
597
551
  configuration: PrismaJson.FunctionConfiguration;
@@ -605,14 +559,14 @@ export declare let createFunctionBayClient: (o: ClientOpts) => InferClient<{
605
559
  status: FunctionStatus;
606
560
  identifier: string;
607
561
  currentVersionOid: bigint | null;
608
- instanceOid: bigint;
562
+ tenantOid: bigint;
609
563
  createdAt: Date;
610
564
  updatedAt: Date;
611
565
  runtimeOid: bigint | null;
612
566
  };
613
567
  }>;
614
568
  get: Handler<UndefinedIsOptional<{
615
- instanceId: string;
569
+ tenantId: string;
616
570
  functionId: string;
617
571
  functionVersionId: string;
618
572
  }>, {
@@ -669,7 +623,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => InferClient<{
669
623
  };
670
624
  createdAt: Date;
671
625
  }, {
672
- instance: {} & {
626
+ tenant: {} & {
673
627
  name: string;
674
628
  oid: bigint;
675
629
  id: string;
@@ -686,6 +640,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => InferClient<{
686
640
  createdAt: Date;
687
641
  updatedAt: Date;
688
642
  runtimeOid: bigint;
643
+ encryptedEnvironmentVariables: string;
689
644
  functionOid: bigint;
690
645
  functionBundleOid: bigint;
691
646
  configuration: PrismaJson.FunctionConfiguration;
@@ -699,7 +654,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => InferClient<{
699
654
  status: FunctionStatus;
700
655
  identifier: string;
701
656
  currentVersionOid: bigint | null;
702
- instanceOid: bigint;
657
+ tenantOid: bigint;
703
658
  createdAt: Date;
704
659
  updatedAt: Date;
705
660
  runtimeOid: bigint | null;
@@ -715,6 +670,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => InferClient<{
715
670
  createdAt: Date;
716
671
  updatedAt: Date;
717
672
  runtimeOid: bigint;
673
+ encryptedEnvironmentVariables: string;
718
674
  functionOid: bigint;
719
675
  functionBundleOid: bigint;
720
676
  configuration: PrismaJson.FunctionConfiguration;
@@ -728,7 +684,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => InferClient<{
728
684
  status: FunctionStatus;
729
685
  identifier: string;
730
686
  currentVersionOid: bigint | null;
731
- instanceOid: bigint;
687
+ tenantOid: bigint;
732
688
  createdAt: Date;
733
689
  updatedAt: Date;
734
690
  runtimeOid: bigint | null;
@@ -760,6 +716,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => InferClient<{
760
716
  createdAt: Date;
761
717
  updatedAt: Date;
762
718
  runtimeOid: bigint;
719
+ encryptedEnvironmentVariables: string;
763
720
  functionOid: bigint;
764
721
  functionBundleOid: bigint;
765
722
  configuration: PrismaJson.FunctionConfiguration;
@@ -770,7 +727,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => InferClient<{
770
727
  };
771
728
  functionDeployment: {
772
729
  create: Handler<UndefinedIsOptional<{
773
- instanceId: string;
730
+ tenantId: string;
774
731
  functionId: string;
775
732
  name: string;
776
733
  runtime: UndefinedIsOptional<{
@@ -908,7 +865,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => InferClient<{
908
865
  } | null;
909
866
  createdAt: Date;
910
867
  }, {
911
- instance: {} & {
868
+ tenant: {} & {
912
869
  name: string;
913
870
  oid: bigint;
914
871
  id: string;
@@ -925,6 +882,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => InferClient<{
925
882
  createdAt: Date;
926
883
  updatedAt: Date;
927
884
  runtimeOid: bigint;
885
+ encryptedEnvironmentVariables: string;
928
886
  functionOid: bigint;
929
887
  functionBundleOid: bigint;
930
888
  configuration: PrismaJson.FunctionConfiguration;
@@ -938,7 +896,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => InferClient<{
938
896
  status: FunctionStatus;
939
897
  identifier: string;
940
898
  currentVersionOid: bigint | null;
941
- instanceOid: bigint;
899
+ tenantOid: bigint;
942
900
  createdAt: Date;
943
901
  updatedAt: Date;
944
902
  runtimeOid: bigint | null;
@@ -946,9 +904,9 @@ export declare let createFunctionBayClient: (o: ClientOpts) => InferClient<{
946
904
  }>;
947
905
  list: Handler<Partial<Pick<{
948
906
  functionId: string;
949
- instanceId: string;
907
+ tenantId: string;
950
908
  }, never>> & {
951
- instanceId: string;
909
+ tenantId: string;
952
910
  functionId: string;
953
911
  } & {
954
912
  limit?: number;
@@ -1075,7 +1033,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => InferClient<{
1075
1033
  has_more_before: boolean;
1076
1034
  };
1077
1035
  }, {
1078
- instance: {} & {
1036
+ tenant: {} & {
1079
1037
  name: string;
1080
1038
  oid: bigint;
1081
1039
  id: string;
@@ -1092,6 +1050,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => InferClient<{
1092
1050
  createdAt: Date;
1093
1051
  updatedAt: Date;
1094
1052
  runtimeOid: bigint;
1053
+ encryptedEnvironmentVariables: string;
1095
1054
  functionOid: bigint;
1096
1055
  functionBundleOid: bigint;
1097
1056
  configuration: PrismaJson.FunctionConfiguration;
@@ -1105,14 +1064,14 @@ export declare let createFunctionBayClient: (o: ClientOpts) => InferClient<{
1105
1064
  status: FunctionStatus;
1106
1065
  identifier: string;
1107
1066
  currentVersionOid: bigint | null;
1108
- instanceOid: bigint;
1067
+ tenantOid: bigint;
1109
1068
  createdAt: Date;
1110
1069
  updatedAt: Date;
1111
1070
  runtimeOid: bigint | null;
1112
1071
  };
1113
1072
  }>;
1114
1073
  get: Handler<UndefinedIsOptional<{
1115
- instanceId: string;
1074
+ tenantId: string;
1116
1075
  functionId: string;
1117
1076
  functionDeploymentId: string;
1118
1077
  }>, {
@@ -1227,7 +1186,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => InferClient<{
1227
1186
  } | null;
1228
1187
  createdAt: Date;
1229
1188
  }, {
1230
- instance: {} & {
1189
+ tenant: {} & {
1231
1190
  name: string;
1232
1191
  oid: bigint;
1233
1192
  id: string;
@@ -1244,6 +1203,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => InferClient<{
1244
1203
  createdAt: Date;
1245
1204
  updatedAt: Date;
1246
1205
  runtimeOid: bigint;
1206
+ encryptedEnvironmentVariables: string;
1247
1207
  functionOid: bigint;
1248
1208
  functionBundleOid: bigint;
1249
1209
  configuration: PrismaJson.FunctionConfiguration;
@@ -1257,7 +1217,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => InferClient<{
1257
1217
  status: FunctionStatus;
1258
1218
  identifier: string;
1259
1219
  currentVersionOid: bigint | null;
1260
- instanceOid: bigint;
1220
+ tenantOid: bigint;
1261
1221
  createdAt: Date;
1262
1222
  updatedAt: Date;
1263
1223
  runtimeOid: bigint | null;
@@ -1273,6 +1233,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => InferClient<{
1273
1233
  createdAt: Date;
1274
1234
  updatedAt: Date;
1275
1235
  runtimeOid: bigint;
1236
+ encryptedEnvironmentVariables: string;
1276
1237
  functionOid: bigint;
1277
1238
  functionBundleOid: bigint;
1278
1239
  configuration: PrismaJson.FunctionConfiguration;
@@ -1286,7 +1247,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => InferClient<{
1286
1247
  status: FunctionStatus;
1287
1248
  identifier: string;
1288
1249
  currentVersionOid: bigint | null;
1289
- instanceOid: bigint;
1250
+ tenantOid: bigint;
1290
1251
  createdAt: Date;
1291
1252
  updatedAt: Date;
1292
1253
  runtimeOid: bigint | null;
@@ -1300,6 +1261,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => InferClient<{
1300
1261
  createdAt: Date;
1301
1262
  updatedAt: Date;
1302
1263
  runtimeOid: bigint;
1264
+ encryptedEnvironmentVariables: string;
1303
1265
  functionOid: bigint;
1304
1266
  functionBundleOid: bigint;
1305
1267
  configuration: PrismaJson.FunctionConfiguration;
@@ -1345,19 +1307,19 @@ export declare let createFunctionBayClient: (o: ClientOpts) => InferClient<{
1345
1307
  createdAt: Date;
1346
1308
  updatedAt: Date;
1347
1309
  runtimeOid: bigint;
1310
+ encryptedEnvironmentVariables: string;
1348
1311
  functionOid: bigint;
1349
1312
  functionBundleOid: bigint | null;
1350
1313
  configuration: PrismaJson.FunctionConfiguration;
1351
1314
  forgeWorkflowId: string | null;
1352
1315
  forgeRunId: string | null;
1353
1316
  functionVersionOid: bigint | null;
1354
- encryptedEnvironmentVariables: string;
1355
1317
  errorCode: string | null;
1356
1318
  errorMessage: string | null;
1357
1319
  };
1358
1320
  }>;
1359
1321
  getOutput: Handler<UndefinedIsOptional<{
1360
- instanceId: string;
1322
+ tenantId: string;
1361
1323
  functionId: string;
1362
1324
  functionDeploymentId: string;
1363
1325
  }>, {
@@ -1374,7 +1336,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => InferClient<{
1374
1336
  startedAt: Date | null;
1375
1337
  endedAt: Date | null;
1376
1338
  }[], {
1377
- instance: {} & {
1339
+ tenant: {} & {
1378
1340
  name: string;
1379
1341
  oid: bigint;
1380
1342
  id: string;
@@ -1391,6 +1353,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => InferClient<{
1391
1353
  createdAt: Date;
1392
1354
  updatedAt: Date;
1393
1355
  runtimeOid: bigint;
1356
+ encryptedEnvironmentVariables: string;
1394
1357
  functionOid: bigint;
1395
1358
  functionBundleOid: bigint;
1396
1359
  configuration: PrismaJson.FunctionConfiguration;
@@ -1404,7 +1367,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => InferClient<{
1404
1367
  status: FunctionStatus;
1405
1368
  identifier: string;
1406
1369
  currentVersionOid: bigint | null;
1407
- instanceOid: bigint;
1370
+ tenantOid: bigint;
1408
1371
  createdAt: Date;
1409
1372
  updatedAt: Date;
1410
1373
  runtimeOid: bigint | null;
@@ -1420,6 +1383,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => InferClient<{
1420
1383
  createdAt: Date;
1421
1384
  updatedAt: Date;
1422
1385
  runtimeOid: bigint;
1386
+ encryptedEnvironmentVariables: string;
1423
1387
  functionOid: bigint;
1424
1388
  functionBundleOid: bigint;
1425
1389
  configuration: PrismaJson.FunctionConfiguration;
@@ -1433,7 +1397,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => InferClient<{
1433
1397
  status: FunctionStatus;
1434
1398
  identifier: string;
1435
1399
  currentVersionOid: bigint | null;
1436
- instanceOid: bigint;
1400
+ tenantOid: bigint;
1437
1401
  createdAt: Date;
1438
1402
  updatedAt: Date;
1439
1403
  runtimeOid: bigint | null;
@@ -1447,6 +1411,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => InferClient<{
1447
1411
  createdAt: Date;
1448
1412
  updatedAt: Date;
1449
1413
  runtimeOid: bigint;
1414
+ encryptedEnvironmentVariables: string;
1450
1415
  functionOid: bigint;
1451
1416
  functionBundleOid: bigint;
1452
1417
  configuration: PrismaJson.FunctionConfiguration;
@@ -1492,13 +1457,13 @@ export declare let createFunctionBayClient: (o: ClientOpts) => InferClient<{
1492
1457
  createdAt: Date;
1493
1458
  updatedAt: Date;
1494
1459
  runtimeOid: bigint;
1460
+ encryptedEnvironmentVariables: string;
1495
1461
  functionOid: bigint;
1496
1462
  functionBundleOid: bigint | null;
1497
1463
  configuration: PrismaJson.FunctionConfiguration;
1498
1464
  forgeWorkflowId: string | null;
1499
1465
  forgeRunId: string | null;
1500
1466
  functionVersionOid: bigint | null;
1501
- encryptedEnvironmentVariables: string;
1502
1467
  errorCode: string | null;
1503
1468
  errorMessage: string | null;
1504
1469
  };
@@ -1507,9 +1472,9 @@ export declare let createFunctionBayClient: (o: ClientOpts) => InferClient<{
1507
1472
  functionInvocation: {
1508
1473
  list: Handler<Partial<Pick<{
1509
1474
  functionId: string;
1510
- instanceId: string;
1475
+ tenantId: string;
1511
1476
  }, never>> & {
1512
- instanceId: string;
1477
+ tenantId: string;
1513
1478
  functionId: string;
1514
1479
  } & {
1515
1480
  limit?: number;
@@ -1538,7 +1503,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => InferClient<{
1538
1503
  has_more_before: boolean;
1539
1504
  };
1540
1505
  }, {
1541
- instance: {} & {
1506
+ tenant: {} & {
1542
1507
  name: string;
1543
1508
  oid: bigint;
1544
1509
  id: string;
@@ -1555,6 +1520,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => InferClient<{
1555
1520
  createdAt: Date;
1556
1521
  updatedAt: Date;
1557
1522
  runtimeOid: bigint;
1523
+ encryptedEnvironmentVariables: string;
1558
1524
  functionOid: bigint;
1559
1525
  functionBundleOid: bigint;
1560
1526
  configuration: PrismaJson.FunctionConfiguration;
@@ -1568,14 +1534,14 @@ export declare let createFunctionBayClient: (o: ClientOpts) => InferClient<{
1568
1534
  status: FunctionStatus;
1569
1535
  identifier: string;
1570
1536
  currentVersionOid: bigint | null;
1571
- instanceOid: bigint;
1537
+ tenantOid: bigint;
1572
1538
  createdAt: Date;
1573
1539
  updatedAt: Date;
1574
1540
  runtimeOid: bigint | null;
1575
1541
  };
1576
1542
  }>;
1577
1543
  get: Handler<UndefinedIsOptional<{
1578
- instanceId: string;
1544
+ tenantId: string;
1579
1545
  functionId: string;
1580
1546
  functionInvocationId: string;
1581
1547
  }>, {
@@ -1592,7 +1558,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => InferClient<{
1592
1558
  }[];
1593
1559
  createdAt: Date;
1594
1560
  }, {
1595
- instance: {} & {
1561
+ tenant: {} & {
1596
1562
  name: string;
1597
1563
  oid: bigint;
1598
1564
  id: string;
@@ -1609,6 +1575,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => InferClient<{
1609
1575
  createdAt: Date;
1610
1576
  updatedAt: Date;
1611
1577
  runtimeOid: bigint;
1578
+ encryptedEnvironmentVariables: string;
1612
1579
  functionOid: bigint;
1613
1580
  functionBundleOid: bigint;
1614
1581
  configuration: PrismaJson.FunctionConfiguration;
@@ -1622,7 +1589,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => InferClient<{
1622
1589
  status: FunctionStatus;
1623
1590
  identifier: string;
1624
1591
  currentVersionOid: bigint | null;
1625
- instanceOid: bigint;
1592
+ tenantOid: bigint;
1626
1593
  createdAt: Date;
1627
1594
  updatedAt: Date;
1628
1595
  runtimeOid: bigint | null;
@@ -1637,6 +1604,7 @@ export declare let createFunctionBayClient: (o: ClientOpts) => InferClient<{
1637
1604
  createdAt: Date;
1638
1605
  updatedAt: Date;
1639
1606
  runtimeOid: bigint;
1607
+ encryptedEnvironmentVariables: string;
1640
1608
  functionOid: bigint;
1641
1609
  functionBundleOid: bigint;
1642
1610
  configuration: PrismaJson.FunctionConfiguration;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metorial-services/function-bay-client",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },