@metorial-services/slates-hub-client 1.0.2 → 1.0.4

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