@metorial-services/slates-hub-client 1.0.2 → 1.0.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.
@@ -167,6 +167,46 @@ export declare let createSlatesHubInternalClient: (o: ClientOpts) => import("@lo
167
167
  lastSyncedAt: Date | null;
168
168
  };
169
169
  }>;
170
+ listAll: import("@lowerdeck/rpc-server").Handler<import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
171
+ tenantId: string;
172
+ }>, {
173
+ object: string;
174
+ id: string;
175
+ status: import("../../../apps/hub/prisma/generated/enums").RegistryStatus;
176
+ isPredefined: boolean;
177
+ identifier: string;
178
+ name: string;
179
+ url: string;
180
+ tenant: {
181
+ object: string;
182
+ id: string;
183
+ identifier: string;
184
+ name: string;
185
+ createdAt: Date;
186
+ } | null;
187
+ createdAt: Date;
188
+ lastSyncedAt: Date | null;
189
+ }[], {}>;
190
+ getMany: import("@lowerdeck/rpc-server").Handler<import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
191
+ registryIds: string[];
192
+ }>, {
193
+ object: string;
194
+ id: string;
195
+ status: import("../../../apps/hub/prisma/generated/enums").RegistryStatus;
196
+ isPredefined: boolean;
197
+ identifier: string;
198
+ name: string;
199
+ url: string;
200
+ tenant: {
201
+ object: string;
202
+ id: string;
203
+ identifier: string;
204
+ name: string;
205
+ createdAt: Date;
206
+ } | null;
207
+ createdAt: Date;
208
+ lastSyncedAt: Date | null;
209
+ }[], {}>;
170
210
  };
171
211
  changeNotification: {
172
212
  list: import("@lowerdeck/rpc-server").Handler<Partial<Pick<{}, never>> & {} & {
@@ -512,6 +552,49 @@ export declare let createSlatesHubInternalClient: (o: ClientOpts) => import("@lo
512
552
  updatedAt: Date;
513
553
  };
514
554
  }>;
555
+ getMany: import("@lowerdeck/rpc-server").Handler<import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
556
+ slateIds: string[];
557
+ }>, {
558
+ object: string;
559
+ id: string;
560
+ identifier: string;
561
+ name: string;
562
+ description: string | null;
563
+ registryId: string;
564
+ currentVersion: {
565
+ object: string;
566
+ id: string;
567
+ status: import("../../../apps/hub/prisma/generated/enums").SlateVersionStatus;
568
+ version: string;
569
+ isCurrent: boolean;
570
+ slateId: string;
571
+ manifest: PrismaJson.SlateJson;
572
+ specification: {
573
+ object: string;
574
+ id: string;
575
+ versionId: string;
576
+ specificationId: string;
577
+ identifier: string;
578
+ createdAt: Date;
579
+ } | null;
580
+ createdAt: Date;
581
+ } | null;
582
+ scope: {
583
+ object: string;
584
+ registryId: string;
585
+ id: string;
586
+ identifier: string;
587
+ };
588
+ slate: {
589
+ object: string;
590
+ registryId: string;
591
+ id: string;
592
+ identifier: string;
593
+ fullIdentifier: string;
594
+ };
595
+ createdAt: Date;
596
+ updatedAt: Date;
597
+ }[], {}>;
515
598
  };
516
599
  slateVersion: {
517
600
  list: import("@lowerdeck/rpc-server").Handler<Partial<Pick<{
@@ -964,6 +1047,26 @@ export declare let createSlatesHubInternalClient: (o: ClientOpts) => import("@lo
964
1047
  lastDiscoveredAt: Date | null;
965
1048
  };
966
1049
  }>;
1050
+ getMany: import("@lowerdeck/rpc-server").Handler<import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
1051
+ slateVersionIds: string[];
1052
+ }>, {
1053
+ object: string;
1054
+ id: string;
1055
+ status: import("../../../apps/hub/prisma/generated/enums").SlateVersionStatus;
1056
+ version: string;
1057
+ isCurrent: boolean;
1058
+ slateId: string;
1059
+ manifest: PrismaJson.SlateJson;
1060
+ specification: {
1061
+ object: string;
1062
+ id: string;
1063
+ versionId: string;
1064
+ specificationId: string;
1065
+ identifier: string;
1066
+ createdAt: Date;
1067
+ } | null;
1068
+ createdAt: Date;
1069
+ }[], {}>;
967
1070
  };
968
1071
  slateInvocation: {
969
1072
  DANGEROUSLY_get: import("@lowerdeck/rpc-server").Handler<import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
@@ -1878,6 +1981,150 @@ export declare let createSlatesHubInternalClient: (o: ClientOpts) => import("@lo
1878
1981
  mostRecentVersionOid: bigint;
1879
1982
  };
1880
1983
  }>;
1984
+ getMany: import("@lowerdeck/rpc-server").Handler<import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
1985
+ slateId: string;
1986
+ slateSpecificationIds: string[];
1987
+ }>, {
1988
+ object: string;
1989
+ id: string;
1990
+ slateId: string;
1991
+ identifier: string;
1992
+ name: string;
1993
+ key: string;
1994
+ providerInfo: {
1995
+ type: "provider";
1996
+ id: string;
1997
+ name: string;
1998
+ description?: string | undefined;
1999
+ metadata?: Record<string, any> | undefined;
2000
+ };
2001
+ configSchema: any;
2002
+ authMethods: {
2003
+ object: string;
2004
+ id: string;
2005
+ slateId: string;
2006
+ identifier: string;
2007
+ name: string;
2008
+ key: string;
2009
+ type: import("../../../apps/hub/prisma/generated/enums").SlateAuthMethodType;
2010
+ capabilities: {
2011
+ getDefaultInput?: {
2012
+ enabled: boolean;
2013
+ } | undefined;
2014
+ handleChangedInput?: {
2015
+ enabled: boolean;
2016
+ } | undefined;
2017
+ handleTokenRefresh?: {
2018
+ enabled: boolean;
2019
+ } | undefined;
2020
+ getProfile?: {
2021
+ enabled: boolean;
2022
+ } | undefined;
2023
+ };
2024
+ inputSchema: Record<string, any>;
2025
+ outputSchema: Record<string, any>;
2026
+ scopes: {
2027
+ id: string;
2028
+ title: string;
2029
+ description?: string | undefined;
2030
+ }[] | undefined;
2031
+ createdAt: Date;
2032
+ }[];
2033
+ actions: {
2034
+ object: string;
2035
+ id: string;
2036
+ slateId: string;
2037
+ identifier: string;
2038
+ name: string;
2039
+ key: string;
2040
+ type: import("../../../apps/hub/prisma/generated/enums").SlateActionType;
2041
+ capabilities: Record<string, never>;
2042
+ inputSchema: Record<string, any>;
2043
+ outputSchema: Record<string, any>;
2044
+ constraints: string[] | undefined;
2045
+ description: string | undefined;
2046
+ instructions: string[] | undefined;
2047
+ metadata: Record<string, any> | undefined;
2048
+ tags: {
2049
+ destructive?: boolean | undefined;
2050
+ readOnly?: boolean | undefined;
2051
+ } | {
2052
+ destructive?: boolean | undefined;
2053
+ readOnly?: boolean | undefined;
2054
+ } | undefined;
2055
+ createdAt: Date;
2056
+ }[];
2057
+ createdAt: Date;
2058
+ }[], {
2059
+ slate: {
2060
+ registry: {
2061
+ name: string;
2062
+ identifier: string;
2063
+ url: string;
2064
+ oid: bigint;
2065
+ id: string;
2066
+ createdAt: Date;
2067
+ status: import("../../../apps/hub/prisma/generated/enums").RegistryStatus;
2068
+ tenantOid: bigint | null;
2069
+ isPredefined: boolean;
2070
+ encryptedReaderToken: string | null;
2071
+ changeNotificationCursor: string | null;
2072
+ lastSyncedAt: Date | null;
2073
+ };
2074
+ currentVersion: ({
2075
+ specification: {
2076
+ name: string;
2077
+ identifier: string;
2078
+ oid: bigint;
2079
+ id: string;
2080
+ createdAt: Date;
2081
+ key: string;
2082
+ slateOid: bigint;
2083
+ hash: string;
2084
+ protocolVersion: string;
2085
+ providerInfo: PrismaJson.SlateProviderInfo;
2086
+ configSchema: PrismaJson.SlateConfigSchema;
2087
+ authMethods: PrismaJson.SlateAuthMethods;
2088
+ actions: PrismaJson.SlateActions;
2089
+ mostRecentVersionOid: bigint;
2090
+ } | null;
2091
+ } & {
2092
+ oid: bigint;
2093
+ id: string;
2094
+ createdAt: Date;
2095
+ status: import("../../../apps/hub/prisma/generated/enums").SlateVersionStatus;
2096
+ slateOid: bigint;
2097
+ registryOid: bigint;
2098
+ updatedAt: Date;
2099
+ isCurrent: boolean;
2100
+ willBeCurrent: boolean;
2101
+ version: string;
2102
+ versionIdOnRegistry: string;
2103
+ versionIdentifierOnRegistry: string;
2104
+ manifest: PrismaJson.SlateJson;
2105
+ providerDeploymentInfo: PrismaJson.SlateDeploymentProviderDeploymentInfo;
2106
+ activeDeploymentOid: bigint | null;
2107
+ specificationOid: bigint | null;
2108
+ lastDiscoveredAt: Date | null;
2109
+ }) | null;
2110
+ } & {
2111
+ name: string;
2112
+ identifier: string;
2113
+ oid: bigint;
2114
+ id: string;
2115
+ createdAt: Date;
2116
+ status: import("../../../apps/hub/prisma/generated/enums").SlateStatus;
2117
+ description: string | null;
2118
+ registryOid: bigint;
2119
+ currentVersionOid: bigint | null;
2120
+ slateScopeIdentifierOnRegistry: string;
2121
+ slateScopeIdOnRegistry: string;
2122
+ slateFullIdentifierOnRegistry: string;
2123
+ slateIdentifierOnRegistry: string;
2124
+ slateIdOnRegistry: string;
2125
+ updatedAt: Date;
2126
+ };
2127
+ }>;
1881
2128
  };
1882
2129
  slateInstance: {
1883
2130
  list: import("@lowerdeck/rpc-server").Handler<Partial<Pick<{
@@ -2049,6 +2296,30 @@ export declare let createSlatesHubInternalClient: (o: ClientOpts) => import("@lo
2049
2296
  defaultAuthConfigOid: bigint | null;
2050
2297
  };
2051
2298
  }>;
2299
+ getMany: import("@lowerdeck/rpc-server").Handler<import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
2300
+ tenantId: string;
2301
+ slateInstanceIds: string[];
2302
+ }>, {
2303
+ object: string;
2304
+ id: string;
2305
+ slateId: string;
2306
+ lockedSlateVersionId: string | null;
2307
+ config: PrismaJson.AnyRecord;
2308
+ error: {
2309
+ code: string;
2310
+ message: string;
2311
+ } | null;
2312
+ createdAt: Date;
2313
+ updatedAt: Date;
2314
+ }[], {
2315
+ tenant: {} & {
2316
+ name: string;
2317
+ identifier: string;
2318
+ oid: bigint;
2319
+ id: string;
2320
+ createdAt: Date;
2321
+ };
2322
+ }>;
2052
2323
  };
2053
2324
  slateOAuthCredentials: {
2054
2325
  list: import("@lowerdeck/rpc-server").Handler<Partial<Pick<{
@@ -2170,6 +2441,26 @@ export declare let createSlatesHubInternalClient: (o: ClientOpts) => import("@lo
2170
2441
  secretOid: bigint;
2171
2442
  };
2172
2443
  }>;
2444
+ getMany: import("@lowerdeck/rpc-server").Handler<import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
2445
+ tenantId: string;
2446
+ slateOAuthCredentialsIds: string[];
2447
+ }>, {
2448
+ object: string;
2449
+ id: string;
2450
+ slateId: string;
2451
+ clientId: string;
2452
+ scopes: string[];
2453
+ createdAt: Date;
2454
+ updatedAt: Date;
2455
+ }[], {
2456
+ tenant: {} & {
2457
+ name: string;
2458
+ identifier: string;
2459
+ oid: bigint;
2460
+ id: string;
2461
+ createdAt: Date;
2462
+ };
2463
+ }>;
2173
2464
  };
2174
2465
  slateOAuthSetup: {
2175
2466
  list: import("@lowerdeck/rpc-server").Handler<Partial<Pick<{
@@ -2692,6 +2983,99 @@ export declare let createSlatesHubInternalClient: (o: ClientOpts) => import("@lo
2692
2983
  slateAuthConfigOid: bigint | null;
2693
2984
  };
2694
2985
  }>;
2986
+ getMany: import("@lowerdeck/rpc-server").Handler<import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
2987
+ tenantId: string;
2988
+ slateOAuthSetupIds: string[];
2989
+ }>, {
2990
+ object: string;
2991
+ id: string;
2992
+ slateId: string;
2993
+ status: import("../../../apps/hub/prisma/generated/enums").SlateInstanceOAuthSetupStatus;
2994
+ redirectUrl: string;
2995
+ url: string | null;
2996
+ error: {
2997
+ code: string;
2998
+ message: string;
2999
+ } | null;
3000
+ credentials: {
3001
+ object: string;
3002
+ id: string;
3003
+ slateId: string;
3004
+ clientId: string;
3005
+ scopes: string[];
3006
+ createdAt: Date;
3007
+ updatedAt: Date;
3008
+ };
3009
+ authConfig: {
3010
+ object: string;
3011
+ id: string;
3012
+ slateId: string;
3013
+ status: "active" | "failed" | "processing";
3014
+ error: {
3015
+ code: string;
3016
+ message: string;
3017
+ } | null;
3018
+ profile: {
3019
+ id: string | null;
3020
+ email: string | null;
3021
+ name: string | null;
3022
+ data: PrismaJson.AuthProfile;
3023
+ } | null;
3024
+ authMethod: {
3025
+ object: string;
3026
+ id: string;
3027
+ slateId: string;
3028
+ identifier: string;
3029
+ name: string;
3030
+ key: string;
3031
+ type: import("../../../apps/hub/prisma/generated/enums").SlateAuthMethodType;
3032
+ capabilities: {
3033
+ getDefaultInput?: {
3034
+ enabled: boolean;
3035
+ } | undefined;
3036
+ handleChangedInput?: {
3037
+ enabled: boolean;
3038
+ } | undefined;
3039
+ handleTokenRefresh?: {
3040
+ enabled: boolean;
3041
+ } | undefined;
3042
+ getProfile?: {
3043
+ enabled: boolean;
3044
+ } | undefined;
3045
+ };
3046
+ inputSchema: Record<string, any>;
3047
+ outputSchema: Record<string, any>;
3048
+ scopes: {
3049
+ id: string;
3050
+ title: string;
3051
+ description?: string | undefined;
3052
+ }[] | undefined;
3053
+ createdAt: Date;
3054
+ };
3055
+ oauthCredentials: {
3056
+ object: string;
3057
+ id: string;
3058
+ slateId: string;
3059
+ clientId: string;
3060
+ scopes: string[];
3061
+ createdAt: Date;
3062
+ updatedAt: Date;
3063
+ } | null;
3064
+ tokenExpiresAt: Date | null;
3065
+ createdAt: Date;
3066
+ updatedAt: Date;
3067
+ } | null;
3068
+ createdAt: Date;
3069
+ updatedAt: Date;
3070
+ }[], {
3071
+ tenant: {} & {
3072
+ name: string;
3073
+ identifier: string;
3074
+ oid: bigint;
3075
+ id: string;
3076
+ createdAt: Date;
3077
+ };
3078
+ }>;
2695
3079
  };
2696
3080
  slateAuthConfig: {
2697
3081
  list: import("@lowerdeck/rpc-server").Handler<Partial<Pick<{
@@ -3006,6 +3390,76 @@ export declare let createSlatesHubInternalClient: (o: ClientOpts) => import("@lo
3006
3390
  profileName: string | null;
3007
3391
  };
3008
3392
  }>;
3393
+ getMany: import("@lowerdeck/rpc-server").Handler<import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
3394
+ tenantId: string;
3395
+ slateAuthConfigIds: string[];
3396
+ }>, {
3397
+ object: string;
3398
+ id: string;
3399
+ slateId: string;
3400
+ status: "active" | "failed" | "processing";
3401
+ error: {
3402
+ code: string;
3403
+ message: string;
3404
+ } | null;
3405
+ profile: {
3406
+ id: string | null;
3407
+ email: string | null;
3408
+ name: string | null;
3409
+ data: PrismaJson.AuthProfile;
3410
+ } | null;
3411
+ authMethod: {
3412
+ object: string;
3413
+ id: string;
3414
+ slateId: string;
3415
+ identifier: string;
3416
+ name: string;
3417
+ key: string;
3418
+ type: import("../../../apps/hub/prisma/generated/enums").SlateAuthMethodType;
3419
+ capabilities: {
3420
+ getDefaultInput?: {
3421
+ enabled: boolean;
3422
+ } | undefined;
3423
+ handleChangedInput?: {
3424
+ enabled: boolean;
3425
+ } | undefined;
3426
+ handleTokenRefresh?: {
3427
+ enabled: boolean;
3428
+ } | undefined;
3429
+ getProfile?: {
3430
+ enabled: boolean;
3431
+ } | undefined;
3432
+ };
3433
+ inputSchema: Record<string, any>;
3434
+ outputSchema: Record<string, any>;
3435
+ scopes: {
3436
+ id: string;
3437
+ title: string;
3438
+ description?: string | undefined;
3439
+ }[] | undefined;
3440
+ createdAt: Date;
3441
+ };
3442
+ oauthCredentials: {
3443
+ object: string;
3444
+ id: string;
3445
+ slateId: string;
3446
+ clientId: string;
3447
+ scopes: string[];
3448
+ createdAt: Date;
3449
+ updatedAt: Date;
3450
+ } | null;
3451
+ tokenExpiresAt: Date | null;
3452
+ createdAt: Date;
3453
+ updatedAt: Date;
3454
+ }[], {
3455
+ tenant: {} & {
3456
+ name: string;
3457
+ identifier: string;
3458
+ oid: bigint;
3459
+ id: string;
3460
+ createdAt: Date;
3461
+ };
3462
+ }>;
3009
3463
  };
3010
3464
  slateSession: {
3011
3465
  list: import("@lowerdeck/rpc-server").Handler<Partial<Pick<{
@@ -3130,6 +3584,25 @@ export declare let createSlatesHubInternalClient: (o: ClientOpts) => import("@lo
3130
3584
  lastActiveAt: Date | null;
3131
3585
  };
3132
3586
  }>;
3587
+ getMany: import("@lowerdeck/rpc-server").Handler<import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
3588
+ tenantId: string;
3589
+ slateSessionIds: string[];
3590
+ }>, {
3591
+ object: string;
3592
+ id: string;
3593
+ slateId: string;
3594
+ slateInstanceId: string;
3595
+ createdAt: Date;
3596
+ lastActiveAt: Date | null;
3597
+ }[], {
3598
+ tenant: {} & {
3599
+ name: string;
3600
+ identifier: string;
3601
+ oid: bigint;
3602
+ id: string;
3603
+ createdAt: Date;
3604
+ };
3605
+ }>;
3133
3606
  };
3134
3607
  slateSessionToolCall: {
3135
3608
  list: import("@lowerdeck/rpc-server").Handler<Partial<Pick<{
@@ -3412,6 +3885,30 @@ export declare let createSlatesHubInternalClient: (o: ClientOpts) => import("@lo
3412
3885
  sessionOid: bigint;
3413
3886
  };
3414
3887
  }>;
3888
+ getMany: import("@lowerdeck/rpc-server").Handler<import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
3889
+ tenantId: string;
3890
+ slateSessionToolCallIds: string[];
3891
+ }>, {
3892
+ object: string;
3893
+ id: string;
3894
+ sessionId: string;
3895
+ slateVersionId: string;
3896
+ action: {
3897
+ object: string;
3898
+ id: string;
3899
+ key: string;
3900
+ name: string;
3901
+ };
3902
+ createdAt: Date;
3903
+ }[], {
3904
+ tenant: {} & {
3905
+ name: string;
3906
+ identifier: string;
3907
+ oid: bigint;
3908
+ id: string;
3909
+ createdAt: Date;
3910
+ };
3911
+ }>;
3415
3912
  };
3416
3913
  }>;
3417
3914
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,iDAAiD,CAAC;AAG7E,eAAO,IAAI,6BAA6B,GAAI,GAAG,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EADhv3B,CAAC"}
package/dist/index.d.ts CHANGED
@@ -1013,6 +1013,46 @@ export declare let createSlatesHubInternalClient: (o: ClientOpts) => InferClient
1013
1013
  lastSyncedAt: Date | null;
1014
1014
  };
1015
1015
  }>;
1016
+ listAll: Handler<UndefinedIsOptional<{
1017
+ tenantId: string;
1018
+ }>, {
1019
+ object: string;
1020
+ id: string;
1021
+ status: RegistryStatus;
1022
+ isPredefined: boolean;
1023
+ identifier: string;
1024
+ name: string;
1025
+ url: string;
1026
+ tenant: {
1027
+ object: string;
1028
+ id: string;
1029
+ identifier: string;
1030
+ name: string;
1031
+ createdAt: Date;
1032
+ } | null;
1033
+ createdAt: Date;
1034
+ lastSyncedAt: Date | null;
1035
+ }[], {}>;
1036
+ getMany: Handler<UndefinedIsOptional<{
1037
+ registryIds: string[];
1038
+ }>, {
1039
+ object: string;
1040
+ id: string;
1041
+ status: RegistryStatus;
1042
+ isPredefined: boolean;
1043
+ identifier: string;
1044
+ name: string;
1045
+ url: string;
1046
+ tenant: {
1047
+ object: string;
1048
+ id: string;
1049
+ identifier: string;
1050
+ name: string;
1051
+ createdAt: Date;
1052
+ } | null;
1053
+ createdAt: Date;
1054
+ lastSyncedAt: Date | null;
1055
+ }[], {}>;
1016
1056
  };
1017
1057
  changeNotification: {
1018
1058
  list: Handler<Partial<Pick<{}, never>> & {} & {
@@ -1358,6 +1398,49 @@ export declare let createSlatesHubInternalClient: (o: ClientOpts) => InferClient
1358
1398
  slateIdOnRegistry: string;
1359
1399
  };
1360
1400
  }>;
1401
+ getMany: Handler<UndefinedIsOptional<{
1402
+ slateIds: string[];
1403
+ }>, {
1404
+ object: string;
1405
+ id: string;
1406
+ identifier: string;
1407
+ name: string;
1408
+ description: string | null;
1409
+ registryId: string;
1410
+ currentVersion: {
1411
+ object: string;
1412
+ id: string;
1413
+ status: SlateVersionStatus;
1414
+ version: string;
1415
+ isCurrent: boolean;
1416
+ slateId: string;
1417
+ manifest: PrismaJson.SlateJson;
1418
+ specification: {
1419
+ object: string;
1420
+ id: string;
1421
+ versionId: string;
1422
+ specificationId: string;
1423
+ identifier: string;
1424
+ createdAt: Date;
1425
+ } | null;
1426
+ createdAt: Date;
1427
+ } | null;
1428
+ scope: {
1429
+ object: string;
1430
+ registryId: string;
1431
+ id: string;
1432
+ identifier: string;
1433
+ };
1434
+ slate: {
1435
+ object: string;
1436
+ registryId: string;
1437
+ id: string;
1438
+ identifier: string;
1439
+ fullIdentifier: string;
1440
+ };
1441
+ createdAt: Date;
1442
+ updatedAt: Date;
1443
+ }[], {}>;
1361
1444
  };
1362
1445
  slateVersion: {
1363
1446
  list: Handler<Partial<Pick<{
@@ -1810,6 +1893,26 @@ export declare let createSlatesHubInternalClient: (o: ClientOpts) => InferClient
1810
1893
  lastDiscoveredAt: Date | null;
1811
1894
  };
1812
1895
  }>;
1896
+ getMany: Handler<UndefinedIsOptional<{
1897
+ slateVersionIds: string[];
1898
+ }>, {
1899
+ object: string;
1900
+ id: string;
1901
+ status: SlateVersionStatus;
1902
+ version: string;
1903
+ isCurrent: boolean;
1904
+ slateId: string;
1905
+ manifest: PrismaJson.SlateJson;
1906
+ specification: {
1907
+ object: string;
1908
+ id: string;
1909
+ versionId: string;
1910
+ specificationId: string;
1911
+ identifier: string;
1912
+ createdAt: Date;
1913
+ } | null;
1914
+ createdAt: Date;
1915
+ }[], {}>;
1813
1916
  };
1814
1917
  slateInvocation: {
1815
1918
  DANGEROUSLY_get: Handler<UndefinedIsOptional<{
@@ -2724,6 +2827,150 @@ export declare let createSlatesHubInternalClient: (o: ClientOpts) => InferClient
2724
2827
  mostRecentVersionOid: bigint;
2725
2828
  };
2726
2829
  }>;
2830
+ getMany: Handler<UndefinedIsOptional<{
2831
+ slateId: string;
2832
+ slateSpecificationIds: string[];
2833
+ }>, {
2834
+ object: string;
2835
+ id: string;
2836
+ slateId: string;
2837
+ identifier: string;
2838
+ name: string;
2839
+ key: string;
2840
+ providerInfo: {
2841
+ type: "provider";
2842
+ id: string;
2843
+ name: string;
2844
+ description?: string | undefined;
2845
+ metadata?: Record<string, any> | undefined;
2846
+ };
2847
+ configSchema: any;
2848
+ authMethods: {
2849
+ object: string;
2850
+ id: string;
2851
+ slateId: string;
2852
+ identifier: string;
2853
+ name: string;
2854
+ key: string;
2855
+ type: SlateAuthMethodType;
2856
+ capabilities: {
2857
+ getDefaultInput?: {
2858
+ enabled: boolean;
2859
+ } | undefined;
2860
+ handleChangedInput?: {
2861
+ enabled: boolean;
2862
+ } | undefined;
2863
+ handleTokenRefresh?: {
2864
+ enabled: boolean;
2865
+ } | undefined;
2866
+ getProfile?: {
2867
+ enabled: boolean;
2868
+ } | undefined;
2869
+ };
2870
+ inputSchema: Record<string, any>;
2871
+ outputSchema: Record<string, any>;
2872
+ scopes: {
2873
+ id: string;
2874
+ title: string;
2875
+ description?: string | undefined;
2876
+ }[] | undefined;
2877
+ createdAt: Date;
2878
+ }[];
2879
+ actions: {
2880
+ object: string;
2881
+ id: string;
2882
+ slateId: string;
2883
+ identifier: string;
2884
+ name: string;
2885
+ key: string;
2886
+ type: SlateActionType;
2887
+ capabilities: Record<string, never>;
2888
+ inputSchema: Record<string, any>;
2889
+ outputSchema: Record<string, any>;
2890
+ constraints: string[] | undefined;
2891
+ description: string | undefined;
2892
+ instructions: string[] | undefined;
2893
+ metadata: Record<string, any> | undefined;
2894
+ tags: {
2895
+ destructive?: boolean | undefined;
2896
+ readOnly?: boolean | undefined;
2897
+ } | {
2898
+ destructive?: boolean | undefined;
2899
+ readOnly?: boolean | undefined;
2900
+ } | undefined;
2901
+ createdAt: Date;
2902
+ }[];
2903
+ createdAt: Date;
2904
+ }[], {
2905
+ slate: {
2906
+ registry: {
2907
+ name: string;
2908
+ oid: bigint;
2909
+ id: string;
2910
+ createdAt: Date;
2911
+ identifier: string;
2912
+ status: RegistryStatus;
2913
+ isPredefined: boolean;
2914
+ url: string;
2915
+ encryptedReaderToken: string | null;
2916
+ changeNotificationCursor: string | null;
2917
+ tenantOid: bigint | null;
2918
+ lastSyncedAt: Date | null;
2919
+ };
2920
+ currentVersion: ({
2921
+ specification: {
2922
+ name: string;
2923
+ oid: bigint;
2924
+ id: string;
2925
+ slateOid: bigint;
2926
+ createdAt: Date;
2927
+ identifier: string;
2928
+ hash: string;
2929
+ key: string;
2930
+ protocolVersion: string;
2931
+ providerInfo: PrismaJson.SlateProviderInfo;
2932
+ configSchema: PrismaJson.SlateConfigSchema;
2933
+ authMethods: PrismaJson.SlateAuthMethods;
2934
+ actions: PrismaJson.SlateActions;
2935
+ mostRecentVersionOid: bigint;
2936
+ } | null;
2937
+ } & {
2938
+ oid: bigint;
2939
+ id: string;
2940
+ slateOid: bigint;
2941
+ createdAt: Date;
2942
+ status: SlateVersionStatus;
2943
+ isCurrent: boolean;
2944
+ willBeCurrent: boolean;
2945
+ version: string;
2946
+ versionIdOnRegistry: string;
2947
+ versionIdentifierOnRegistry: string;
2948
+ manifest: PrismaJson.SlateJson;
2949
+ providerDeploymentInfo: PrismaJson.SlateDeploymentProviderDeploymentInfo;
2950
+ registryOid: bigint;
2951
+ activeDeploymentOid: bigint | null;
2952
+ specificationOid: bigint | null;
2953
+ updatedAt: Date;
2954
+ lastDiscoveredAt: Date | null;
2955
+ }) | null;
2956
+ } & {
2957
+ name: string;
2958
+ oid: bigint;
2959
+ id: string;
2960
+ createdAt: Date;
2961
+ identifier: string;
2962
+ status: SlateStatus;
2963
+ registryOid: bigint;
2964
+ updatedAt: Date;
2965
+ description: string | null;
2966
+ currentVersionOid: bigint | null;
2967
+ slateScopeIdentifierOnRegistry: string;
2968
+ slateScopeIdOnRegistry: string;
2969
+ slateFullIdentifierOnRegistry: string;
2970
+ slateIdentifierOnRegistry: string;
2971
+ slateIdOnRegistry: string;
2972
+ };
2973
+ }>;
2727
2974
  };
2728
2975
  slateInstance: {
2729
2976
  list: Handler<Partial<Pick<{
@@ -2895,6 +3142,30 @@ export declare let createSlatesHubInternalClient: (o: ClientOpts) => InferClient
2895
3142
  defaultAuthConfigOid: bigint | null;
2896
3143
  };
2897
3144
  }>;
3145
+ getMany: Handler<UndefinedIsOptional<{
3146
+ tenantId: string;
3147
+ slateInstanceIds: string[];
3148
+ }>, {
3149
+ object: string;
3150
+ id: string;
3151
+ slateId: string;
3152
+ lockedSlateVersionId: string | null;
3153
+ config: PrismaJson.AnyRecord;
3154
+ error: {
3155
+ code: string;
3156
+ message: string;
3157
+ } | null;
3158
+ createdAt: Date;
3159
+ updatedAt: Date;
3160
+ }[], {
3161
+ tenant: {} & {
3162
+ name: string;
3163
+ oid: bigint;
3164
+ id: string;
3165
+ createdAt: Date;
3166
+ identifier: string;
3167
+ };
3168
+ }>;
2898
3169
  };
2899
3170
  slateOAuthCredentials: {
2900
3171
  list: Handler<Partial<Pick<{
@@ -3016,6 +3287,26 @@ export declare let createSlatesHubInternalClient: (o: ClientOpts) => InferClient
3016
3287
  secretOid: bigint;
3017
3288
  };
3018
3289
  }>;
3290
+ getMany: Handler<UndefinedIsOptional<{
3291
+ tenantId: string;
3292
+ slateOAuthCredentialsIds: string[];
3293
+ }>, {
3294
+ object: string;
3295
+ id: string;
3296
+ slateId: string;
3297
+ clientId: string;
3298
+ scopes: string[];
3299
+ createdAt: Date;
3300
+ updatedAt: Date;
3301
+ }[], {
3302
+ tenant: {} & {
3303
+ name: string;
3304
+ oid: bigint;
3305
+ id: string;
3306
+ createdAt: Date;
3307
+ identifier: string;
3308
+ };
3309
+ }>;
3019
3310
  };
3020
3311
  slateOAuthSetup: {
3021
3312
  list: Handler<Partial<Pick<{
@@ -3538,6 +3829,99 @@ export declare let createSlatesHubInternalClient: (o: ClientOpts) => InferClient
3538
3829
  slateAuthConfigOid: bigint | null;
3539
3830
  };
3540
3831
  }>;
3832
+ getMany: Handler<UndefinedIsOptional<{
3833
+ tenantId: string;
3834
+ slateOAuthSetupIds: string[];
3835
+ }>, {
3836
+ object: string;
3837
+ id: string;
3838
+ slateId: string;
3839
+ status: SlateInstanceOAuthSetupStatus;
3840
+ redirectUrl: string;
3841
+ url: string | null;
3842
+ error: {
3843
+ code: string;
3844
+ message: string;
3845
+ } | null;
3846
+ credentials: {
3847
+ object: string;
3848
+ id: string;
3849
+ slateId: string;
3850
+ clientId: string;
3851
+ scopes: string[];
3852
+ createdAt: Date;
3853
+ updatedAt: Date;
3854
+ };
3855
+ authConfig: {
3856
+ object: string;
3857
+ id: string;
3858
+ slateId: string;
3859
+ status: "active" | "failed" | "processing";
3860
+ error: {
3861
+ code: string;
3862
+ message: string;
3863
+ } | null;
3864
+ profile: {
3865
+ id: string | null;
3866
+ email: string | null;
3867
+ name: string | null;
3868
+ data: PrismaJson.AuthProfile;
3869
+ } | null;
3870
+ authMethod: {
3871
+ object: string;
3872
+ id: string;
3873
+ slateId: string;
3874
+ identifier: string;
3875
+ name: string;
3876
+ key: string;
3877
+ type: SlateAuthMethodType;
3878
+ capabilities: {
3879
+ getDefaultInput?: {
3880
+ enabled: boolean;
3881
+ } | undefined;
3882
+ handleChangedInput?: {
3883
+ enabled: boolean;
3884
+ } | undefined;
3885
+ handleTokenRefresh?: {
3886
+ enabled: boolean;
3887
+ } | undefined;
3888
+ getProfile?: {
3889
+ enabled: boolean;
3890
+ } | undefined;
3891
+ };
3892
+ inputSchema: Record<string, any>;
3893
+ outputSchema: Record<string, any>;
3894
+ scopes: {
3895
+ id: string;
3896
+ title: string;
3897
+ description?: string | undefined;
3898
+ }[] | undefined;
3899
+ createdAt: Date;
3900
+ };
3901
+ oauthCredentials: {
3902
+ object: string;
3903
+ id: string;
3904
+ slateId: string;
3905
+ clientId: string;
3906
+ scopes: string[];
3907
+ createdAt: Date;
3908
+ updatedAt: Date;
3909
+ } | null;
3910
+ tokenExpiresAt: Date | null;
3911
+ createdAt: Date;
3912
+ updatedAt: Date;
3913
+ } | null;
3914
+ createdAt: Date;
3915
+ updatedAt: Date;
3916
+ }[], {
3917
+ tenant: {} & {
3918
+ name: string;
3919
+ oid: bigint;
3920
+ id: string;
3921
+ createdAt: Date;
3922
+ identifier: string;
3923
+ };
3924
+ }>;
3541
3925
  };
3542
3926
  slateAuthConfig: {
3543
3927
  list: Handler<Partial<Pick<{
@@ -3852,6 +4236,76 @@ export declare let createSlatesHubInternalClient: (o: ClientOpts) => InferClient
3852
4236
  oauthCredentialsOid: bigint | null;
3853
4237
  };
3854
4238
  }>;
4239
+ getMany: Handler<UndefinedIsOptional<{
4240
+ tenantId: string;
4241
+ slateAuthConfigIds: string[];
4242
+ }>, {
4243
+ object: string;
4244
+ id: string;
4245
+ slateId: string;
4246
+ status: "active" | "failed" | "processing";
4247
+ error: {
4248
+ code: string;
4249
+ message: string;
4250
+ } | null;
4251
+ profile: {
4252
+ id: string | null;
4253
+ email: string | null;
4254
+ name: string | null;
4255
+ data: PrismaJson.AuthProfile;
4256
+ } | null;
4257
+ authMethod: {
4258
+ object: string;
4259
+ id: string;
4260
+ slateId: string;
4261
+ identifier: string;
4262
+ name: string;
4263
+ key: string;
4264
+ type: SlateAuthMethodType;
4265
+ capabilities: {
4266
+ getDefaultInput?: {
4267
+ enabled: boolean;
4268
+ } | undefined;
4269
+ handleChangedInput?: {
4270
+ enabled: boolean;
4271
+ } | undefined;
4272
+ handleTokenRefresh?: {
4273
+ enabled: boolean;
4274
+ } | undefined;
4275
+ getProfile?: {
4276
+ enabled: boolean;
4277
+ } | undefined;
4278
+ };
4279
+ inputSchema: Record<string, any>;
4280
+ outputSchema: Record<string, any>;
4281
+ scopes: {
4282
+ id: string;
4283
+ title: string;
4284
+ description?: string | undefined;
4285
+ }[] | undefined;
4286
+ createdAt: Date;
4287
+ };
4288
+ oauthCredentials: {
4289
+ object: string;
4290
+ id: string;
4291
+ slateId: string;
4292
+ clientId: string;
4293
+ scopes: string[];
4294
+ createdAt: Date;
4295
+ updatedAt: Date;
4296
+ } | null;
4297
+ tokenExpiresAt: Date | null;
4298
+ createdAt: Date;
4299
+ updatedAt: Date;
4300
+ }[], {
4301
+ tenant: {} & {
4302
+ name: string;
4303
+ oid: bigint;
4304
+ id: string;
4305
+ createdAt: Date;
4306
+ identifier: string;
4307
+ };
4308
+ }>;
3855
4309
  };
3856
4310
  slateSession: {
3857
4311
  list: Handler<Partial<Pick<{
@@ -3976,6 +4430,25 @@ export declare let createSlatesHubInternalClient: (o: ClientOpts) => InferClient
3976
4430
  lastActiveAt: Date | null;
3977
4431
  };
3978
4432
  }>;
4433
+ getMany: Handler<UndefinedIsOptional<{
4434
+ tenantId: string;
4435
+ slateSessionIds: string[];
4436
+ }>, {
4437
+ object: string;
4438
+ id: string;
4439
+ slateId: string;
4440
+ slateInstanceId: string;
4441
+ createdAt: Date;
4442
+ lastActiveAt: Date | null;
4443
+ }[], {
4444
+ tenant: {} & {
4445
+ name: string;
4446
+ oid: bigint;
4447
+ id: string;
4448
+ createdAt: Date;
4449
+ identifier: string;
4450
+ };
4451
+ }>;
3979
4452
  };
3980
4453
  slateSessionToolCall: {
3981
4454
  list: Handler<Partial<Pick<{
@@ -4258,6 +4731,30 @@ export declare let createSlatesHubInternalClient: (o: ClientOpts) => InferClient
4258
4731
  sessionOid: bigint;
4259
4732
  };
4260
4733
  }>;
4734
+ getMany: Handler<UndefinedIsOptional<{
4735
+ tenantId: string;
4736
+ slateSessionToolCallIds: string[];
4737
+ }>, {
4738
+ object: string;
4739
+ id: string;
4740
+ sessionId: string;
4741
+ slateVersionId: string;
4742
+ action: {
4743
+ object: string;
4744
+ id: string;
4745
+ key: string;
4746
+ name: string;
4747
+ };
4748
+ createdAt: Date;
4749
+ }[], {
4750
+ tenant: {} & {
4751
+ name: string;
4752
+ oid: bigint;
4753
+ id: string;
4754
+ createdAt: Date;
4755
+ identifier: string;
4756
+ };
4757
+ }>;
4261
4758
  };
4262
4759
  }>;
4263
4760
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metorial-services/slates-hub-client",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },