@metorial-services/slates-hub-client 1.0.10 → 1.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3200,6 +3200,155 @@ export declare let createSlatesHubInternalClient: (o: ClientOpts) => import("@lo
3200
3200
  profileName: string | null;
3201
3201
  };
3202
3202
  }>;
3203
+ decrypt: import("@lowerdeck/rpc-server").Handler<import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
3204
+ tenantId: string;
3205
+ slateAuthConfigId: string;
3206
+ note: string;
3207
+ }>, {
3208
+ decryptedAuthConfig: Record<string, any>;
3209
+ authConfig: {
3210
+ object: string;
3211
+ id: string;
3212
+ slateId: string;
3213
+ status: "active" | "failed" | "processing";
3214
+ error: {
3215
+ code: string;
3216
+ message: string;
3217
+ } | null;
3218
+ profile: {
3219
+ id: string | null;
3220
+ email: string | null;
3221
+ name: string | null;
3222
+ data: PrismaJson.AuthProfile;
3223
+ } | null;
3224
+ authMethod: {
3225
+ object: string;
3226
+ id: string;
3227
+ slateId: string;
3228
+ identifier: string;
3229
+ name: string;
3230
+ key: string;
3231
+ type: import("../../../apps/hub/prisma/generated/enums").SlateAuthMethodType;
3232
+ capabilities: {
3233
+ getDefaultInput?: {
3234
+ enabled: boolean;
3235
+ } | undefined;
3236
+ handleChangedInput?: {
3237
+ enabled: boolean;
3238
+ } | undefined;
3239
+ handleTokenRefresh?: {
3240
+ enabled: boolean;
3241
+ } | undefined;
3242
+ getProfile?: {
3243
+ enabled: boolean;
3244
+ } | undefined;
3245
+ };
3246
+ inputSchema: Record<string, any>;
3247
+ outputSchema: Record<string, any>;
3248
+ scopes: {
3249
+ id: string;
3250
+ title: string;
3251
+ description?: string | undefined;
3252
+ }[] | undefined;
3253
+ createdAt: Date;
3254
+ };
3255
+ oauthCredentials: {
3256
+ object: string;
3257
+ id: string;
3258
+ slateId: string;
3259
+ clientId: string;
3260
+ scopes: string[];
3261
+ createdAt: Date;
3262
+ updatedAt: Date;
3263
+ } | null;
3264
+ tokenExpiresAt: Date | null;
3265
+ createdAt: Date;
3266
+ updatedAt: Date;
3267
+ };
3268
+ }, {
3269
+ tenant: {} & {
3270
+ name: string;
3271
+ identifier: string;
3272
+ oid: bigint;
3273
+ id: string;
3274
+ signalTenantId: string | null;
3275
+ createdAt: Date;
3276
+ };
3277
+ slateAuthConfig: {
3278
+ slate: {
3279
+ name: string;
3280
+ identifier: string;
3281
+ oid: bigint;
3282
+ id: string;
3283
+ createdAt: Date;
3284
+ status: import("../../../apps/hub/prisma/generated/enums").SlateStatus;
3285
+ description: string | null;
3286
+ registryOid: bigint;
3287
+ currentVersionOid: bigint | null;
3288
+ slateScopeIdentifierOnRegistry: string;
3289
+ slateScopeIdOnRegistry: string;
3290
+ slateFullIdentifierOnRegistry: string;
3291
+ slateIdentifierOnRegistry: string;
3292
+ slateIdOnRegistry: string;
3293
+ updatedAt: Date;
3294
+ };
3295
+ authMethod: {
3296
+ name: string;
3297
+ identifier: string;
3298
+ oid: bigint;
3299
+ id: string;
3300
+ createdAt: Date;
3301
+ key: string;
3302
+ type: import("../../../apps/hub/prisma/generated/enums").SlateAuthMethodType;
3303
+ slateOid: bigint;
3304
+ hash: string;
3305
+ spec: PrismaJson.SlateAuthMethod;
3306
+ mostRecentSpecificationOid: bigint;
3307
+ };
3308
+ instance: {
3309
+ oid: bigint;
3310
+ id: string;
3311
+ createdAt: Date;
3312
+ tenantOid: bigint;
3313
+ slateOid: bigint;
3314
+ updatedAt: Date;
3315
+ lockedSlateVersionOid: bigint | null;
3316
+ currentConfigOid: bigint | null;
3317
+ defaultAuthConfigOid: bigint | null;
3318
+ } | null;
3319
+ oauthCredentials: {
3320
+ oid: bigint;
3321
+ id: string;
3322
+ createdAt: Date;
3323
+ tenantOid: bigint;
3324
+ slateOid: bigint;
3325
+ updatedAt: Date;
3326
+ scopes: string[];
3327
+ clientId: string;
3328
+ secretOid: bigint;
3329
+ } | null;
3330
+ } & {
3331
+ oid: bigint;
3332
+ id: string;
3333
+ createdAt: Date;
3334
+ type: import("../../../apps/hub/prisma/generated/enums").SlateAuthConfigType;
3335
+ tenantOid: bigint;
3336
+ slateOid: bigint;
3337
+ updatedAt: Date;
3338
+ errorCode: string | null;
3339
+ errorMessage: string | null;
3340
+ authMethodOid: bigint;
3341
+ instanceOid: bigint | null;
3342
+ secretOid: bigint;
3343
+ oauthCredentialsOid: bigint | null;
3344
+ isProcessing: boolean;
3345
+ tokenExpiresAt: Date | null;
3346
+ profile: PrismaJson.AuthProfile | null;
3347
+ profileUid: string | null;
3348
+ profileEmail: string | null;
3349
+ profileName: string | null;
3350
+ };
3351
+ }>;
3203
3352
  getMany: import("@lowerdeck/rpc-server").Handler<import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
3204
3353
  tenantId: string;
3205
3354
  slateAuthConfigIds: string[];
@@ -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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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAD7q6B,CAAC"}
package/dist/index.d.ts CHANGED
@@ -4046,6 +4046,155 @@ export declare let createSlatesHubInternalClient: (o: ClientOpts) => InferClient
4046
4046
  oauthCredentialsOid: bigint | null;
4047
4047
  };
4048
4048
  }>;
4049
+ decrypt: Handler<UndefinedIsOptional<{
4050
+ tenantId: string;
4051
+ slateAuthConfigId: string;
4052
+ note: string;
4053
+ }>, {
4054
+ decryptedAuthConfig: Record<string, any>;
4055
+ authConfig: {
4056
+ object: string;
4057
+ id: string;
4058
+ slateId: string;
4059
+ status: "active" | "failed" | "processing";
4060
+ error: {
4061
+ code: string;
4062
+ message: string;
4063
+ } | null;
4064
+ profile: {
4065
+ id: string | null;
4066
+ email: string | null;
4067
+ name: string | null;
4068
+ data: PrismaJson.AuthProfile;
4069
+ } | null;
4070
+ authMethod: {
4071
+ object: string;
4072
+ id: string;
4073
+ slateId: string;
4074
+ identifier: string;
4075
+ name: string;
4076
+ key: string;
4077
+ type: SlateAuthMethodType;
4078
+ capabilities: {
4079
+ getDefaultInput?: {
4080
+ enabled: boolean;
4081
+ } | undefined;
4082
+ handleChangedInput?: {
4083
+ enabled: boolean;
4084
+ } | undefined;
4085
+ handleTokenRefresh?: {
4086
+ enabled: boolean;
4087
+ } | undefined;
4088
+ getProfile?: {
4089
+ enabled: boolean;
4090
+ } | undefined;
4091
+ };
4092
+ inputSchema: Record<string, any>;
4093
+ outputSchema: Record<string, any>;
4094
+ scopes: {
4095
+ id: string;
4096
+ title: string;
4097
+ description?: string | undefined;
4098
+ }[] | undefined;
4099
+ createdAt: Date;
4100
+ };
4101
+ oauthCredentials: {
4102
+ object: string;
4103
+ id: string;
4104
+ slateId: string;
4105
+ clientId: string;
4106
+ scopes: string[];
4107
+ createdAt: Date;
4108
+ updatedAt: Date;
4109
+ } | null;
4110
+ tokenExpiresAt: Date | null;
4111
+ createdAt: Date;
4112
+ updatedAt: Date;
4113
+ };
4114
+ }, {
4115
+ tenant: {} & {
4116
+ name: string;
4117
+ oid: bigint;
4118
+ id: string;
4119
+ createdAt: Date;
4120
+ identifier: string;
4121
+ signalTenantId: string | null;
4122
+ };
4123
+ slateAuthConfig: {
4124
+ slate: {
4125
+ name: string;
4126
+ oid: bigint;
4127
+ id: string;
4128
+ createdAt: Date;
4129
+ identifier: string;
4130
+ status: SlateStatus;
4131
+ registryOid: bigint;
4132
+ updatedAt: Date;
4133
+ description: string | null;
4134
+ currentVersionOid: bigint | null;
4135
+ slateScopeIdentifierOnRegistry: string;
4136
+ slateScopeIdOnRegistry: string;
4137
+ slateFullIdentifierOnRegistry: string;
4138
+ slateIdentifierOnRegistry: string;
4139
+ slateIdOnRegistry: string;
4140
+ };
4141
+ oauthCredentials: {
4142
+ oid: bigint;
4143
+ id: string;
4144
+ slateOid: bigint;
4145
+ createdAt: Date;
4146
+ tenantOid: bigint;
4147
+ updatedAt: Date;
4148
+ scopes: string[];
4149
+ clientId: string;
4150
+ secretOid: bigint;
4151
+ } | null;
4152
+ instance: {
4153
+ oid: bigint;
4154
+ id: string;
4155
+ slateOid: bigint;
4156
+ createdAt: Date;
4157
+ tenantOid: bigint;
4158
+ updatedAt: Date;
4159
+ lockedSlateVersionOid: bigint | null;
4160
+ currentConfigOid: bigint | null;
4161
+ defaultAuthConfigOid: bigint | null;
4162
+ } | null;
4163
+ authMethod: {
4164
+ name: string;
4165
+ oid: bigint;
4166
+ id: string;
4167
+ type: SlateAuthMethodType;
4168
+ slateOid: bigint;
4169
+ createdAt: Date;
4170
+ identifier: string;
4171
+ hash: string;
4172
+ key: string;
4173
+ spec: PrismaJson.SlateAuthMethod;
4174
+ mostRecentSpecificationOid: bigint;
4175
+ };
4176
+ } & {
4177
+ oid: bigint;
4178
+ id: string;
4179
+ type: SlateAuthConfigType;
4180
+ slateOid: bigint;
4181
+ createdAt: Date;
4182
+ tenantOid: bigint;
4183
+ updatedAt: Date;
4184
+ secretOid: bigint;
4185
+ isProcessing: boolean;
4186
+ errorCode: string | null;
4187
+ errorMessage: string | null;
4188
+ tokenExpiresAt: Date | null;
4189
+ profile: PrismaJson.AuthProfile | null;
4190
+ profileUid: string | null;
4191
+ profileEmail: string | null;
4192
+ profileName: string | null;
4193
+ instanceOid: bigint | null;
4194
+ authMethodOid: bigint;
4195
+ oauthCredentialsOid: bigint | null;
4196
+ };
4197
+ }>;
4049
4198
  getMany: Handler<UndefinedIsOptional<{
4050
4199
  tenantId: string;
4051
4200
  slateAuthConfigIds: string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metorial-services/slates-hub-client",
3
- "version": "1.0.10",
3
+ "version": "1.0.12",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },