@tailor-platform/sdk 0.13.0 → 0.14.0
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.
- package/CHANGELOG.md +19 -0
- package/dist/cli/api.d.mts +1 -1
- package/dist/cli/api.mjs +2 -2
- package/dist/cli/index.mjs +2 -2
- package/dist/configure/index.d.mts +3 -3
- package/dist/configure/index.mjs +7 -2
- package/dist/configure/index.mjs.map +1 -1
- package/dist/{index-BbM-sCHw.d.mts → index-zRgZdNLm.d.mts} +9 -3
- package/dist/{job-vYIg6hFf.mjs → job-inTmXxpa.mjs} +3 -3
- package/dist/{job-vYIg6hFf.mjs.map → job-inTmXxpa.mjs.map} +1 -1
- package/dist/{list-D-R1mEOM.mjs → list-B8Uv3SPW.mjs} +795 -320
- package/dist/list-B8Uv3SPW.mjs.map +1 -0
- package/dist/{types-JFLKYNHP.d.mts → types-DBHXcgFJ.d.mts} +45 -32
- package/dist/utils/test/index.d.mts +2 -2
- package/package.json +2 -2
- package/dist/list-D-R1mEOM.mjs.map +0 -1
|
@@ -343,13 +343,17 @@ interface OperatorFieldConfig {
|
|
|
343
343
|
}
|
|
344
344
|
//#endregion
|
|
345
345
|
//#region src/parser/service/auth/schema.d.ts
|
|
346
|
+
declare const AuthInvokerSchema: z.ZodObject<{
|
|
347
|
+
namespace: z.ZodString;
|
|
348
|
+
machineUserName: z.ZodString;
|
|
349
|
+
}, z.core.$strip>;
|
|
346
350
|
declare const OIDCSchema: z.ZodObject<{
|
|
347
351
|
name: z.ZodString;
|
|
348
352
|
kind: z.ZodLiteral<"OIDC">;
|
|
349
353
|
clientID: z.ZodString;
|
|
350
354
|
clientSecret: z.ZodObject<{
|
|
351
|
-
|
|
352
|
-
|
|
355
|
+
vaultName: z.ZodString;
|
|
356
|
+
secretKey: z.ZodString;
|
|
353
357
|
}, z.core.$strip>;
|
|
354
358
|
providerURL: z.ZodString;
|
|
355
359
|
issuerURL: z.ZodOptional<z.ZodString>;
|
|
@@ -359,12 +363,12 @@ declare const SAMLSchema: z.ZodObject<{
|
|
|
359
363
|
name: z.ZodString;
|
|
360
364
|
kind: z.ZodLiteral<"SAML">;
|
|
361
365
|
spCertBase64: z.ZodOptional<z.ZodObject<{
|
|
362
|
-
|
|
363
|
-
|
|
366
|
+
vaultName: z.ZodString;
|
|
367
|
+
secretKey: z.ZodString;
|
|
364
368
|
}, z.core.$strip>>;
|
|
365
369
|
spKeyBase64: z.ZodOptional<z.ZodObject<{
|
|
366
|
-
|
|
367
|
-
|
|
370
|
+
vaultName: z.ZodString;
|
|
371
|
+
secretKey: z.ZodString;
|
|
368
372
|
}, z.core.$strip>>;
|
|
369
373
|
metadataURL: z.ZodOptional<z.ZodString>;
|
|
370
374
|
rawMetadata: z.ZodOptional<z.ZodString>;
|
|
@@ -388,8 +392,8 @@ declare const IdProviderSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
388
392
|
kind: z.ZodLiteral<"OIDC">;
|
|
389
393
|
clientID: z.ZodString;
|
|
390
394
|
clientSecret: z.ZodObject<{
|
|
391
|
-
|
|
392
|
-
|
|
395
|
+
vaultName: z.ZodString;
|
|
396
|
+
secretKey: z.ZodString;
|
|
393
397
|
}, z.core.$strip>;
|
|
394
398
|
providerURL: z.ZodString;
|
|
395
399
|
issuerURL: z.ZodOptional<z.ZodString>;
|
|
@@ -398,12 +402,12 @@ declare const IdProviderSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
398
402
|
name: z.ZodString;
|
|
399
403
|
kind: z.ZodLiteral<"SAML">;
|
|
400
404
|
spCertBase64: z.ZodOptional<z.ZodObject<{
|
|
401
|
-
|
|
402
|
-
|
|
405
|
+
vaultName: z.ZodString;
|
|
406
|
+
secretKey: z.ZodString;
|
|
403
407
|
}, z.core.$strip>>;
|
|
404
408
|
spKeyBase64: z.ZodOptional<z.ZodObject<{
|
|
405
|
-
|
|
406
|
-
|
|
409
|
+
vaultName: z.ZodString;
|
|
410
|
+
secretKey: z.ZodString;
|
|
407
411
|
}, z.core.$strip>>;
|
|
408
412
|
metadataURL: z.ZodOptional<z.ZodString>;
|
|
409
413
|
rawMetadata: z.ZodOptional<z.ZodString>;
|
|
@@ -430,8 +434,8 @@ declare const OAuth2ClientSchema: z.ZodObject<{
|
|
|
430
434
|
declare const SCIMAuthorizationSchema: z.ZodObject<{
|
|
431
435
|
type: z.ZodUnion<readonly [z.ZodLiteral<"oauth2">, z.ZodLiteral<"bearer">]>;
|
|
432
436
|
bearerSecret: z.ZodOptional<z.ZodObject<{
|
|
433
|
-
|
|
434
|
-
|
|
437
|
+
vaultName: z.ZodString;
|
|
438
|
+
secretKey: z.ZodString;
|
|
435
439
|
}, z.core.$strip>>;
|
|
436
440
|
}, z.core.$strip>;
|
|
437
441
|
declare const SCIMAttributeTypeSchema: z.ZodUnion<readonly [z.ZodLiteral<"string">, z.ZodLiteral<"number">, z.ZodLiteral<"boolean">, z.ZodLiteral<"datetime">, z.ZodLiteral<"complex">]>;
|
|
@@ -478,8 +482,8 @@ declare const SCIMSchema: z.ZodObject<{
|
|
|
478
482
|
authorization: z.ZodObject<{
|
|
479
483
|
type: z.ZodUnion<readonly [z.ZodLiteral<"oauth2">, z.ZodLiteral<"bearer">]>;
|
|
480
484
|
bearerSecret: z.ZodOptional<z.ZodObject<{
|
|
481
|
-
|
|
482
|
-
|
|
485
|
+
vaultName: z.ZodString;
|
|
486
|
+
secretKey: z.ZodString;
|
|
483
487
|
}, z.core.$strip>>;
|
|
484
488
|
}, z.core.$strip>;
|
|
485
489
|
resources: z.ZodArray<z.ZodObject<{
|
|
@@ -513,6 +517,7 @@ declare const TenantProviderSchema: z.ZodObject<{
|
|
|
513
517
|
}, z.core.$strip>;
|
|
514
518
|
//#endregion
|
|
515
519
|
//#region src/parser/service/auth/types.d.ts
|
|
520
|
+
type AuthInvoker = z.output<typeof AuthInvokerSchema>;
|
|
516
521
|
type OIDC = z.output<typeof OIDCSchema>;
|
|
517
522
|
type SAML = z.output<typeof SAMLSchema>;
|
|
518
523
|
type IDToken = z.output<typeof IDTokenSchema>;
|
|
@@ -585,11 +590,19 @@ declare const authDefinitionBrand: unique symbol;
|
|
|
585
590
|
type AuthDefinitionBrand = {
|
|
586
591
|
readonly [authDefinitionBrand]: true;
|
|
587
592
|
};
|
|
593
|
+
/**
|
|
594
|
+
* Invoker type compatible with tailor.v1.AuthInvoker
|
|
595
|
+
* - namespace: auth service name
|
|
596
|
+
* - machineUserName: machine user name
|
|
597
|
+
*/
|
|
598
|
+
type AuthInvoker$1<M extends string> = Omit<AuthInvoker, "machineUserName"> & {
|
|
599
|
+
machineUserName: M;
|
|
600
|
+
};
|
|
588
601
|
declare function defineAuth<const Name extends string, const User extends TailorDBInstance, const AttributeMap extends UserAttributeMap<User>, const AttributeList extends UserAttributeListKey<User>[], const MachineUserNames extends string>(name: Name, config: AuthServiceInput<User, AttributeMap, AttributeList, MachineUserNames>): {
|
|
589
602
|
readonly name: Name;
|
|
590
603
|
readonly invoker: <M extends MachineUserNames>(machineUser: M) => {
|
|
591
|
-
readonly
|
|
592
|
-
readonly
|
|
604
|
+
readonly namespace: Name;
|
|
605
|
+
readonly machineUserName: M;
|
|
593
606
|
};
|
|
594
607
|
readonly userProfile?: {
|
|
595
608
|
type: User;
|
|
@@ -1341,9 +1354,9 @@ declare const FunctionOperationSchema: z.ZodObject<{
|
|
|
1341
1354
|
jobFunction: "jobFunction";
|
|
1342
1355
|
}>;
|
|
1343
1356
|
body: z.ZodCustom<Function, Function>;
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1357
|
+
authInvoker: z.ZodOptional<z.ZodObject<{
|
|
1358
|
+
namespace: z.ZodString;
|
|
1359
|
+
machineUserName: z.ZodString;
|
|
1347
1360
|
}, z.core.$strip>>;
|
|
1348
1361
|
}, z.core.$strip>;
|
|
1349
1362
|
declare const GqlOperationSchema: z.ZodObject<{
|
|
@@ -1351,9 +1364,9 @@ declare const GqlOperationSchema: z.ZodObject<{
|
|
|
1351
1364
|
appName: z.ZodOptional<z.ZodString>;
|
|
1352
1365
|
query: z.ZodString;
|
|
1353
1366
|
variables: z.ZodOptional<z.ZodCustom<Function, Function>>;
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1367
|
+
authInvoker: z.ZodOptional<z.ZodObject<{
|
|
1368
|
+
namespace: z.ZodString;
|
|
1369
|
+
machineUserName: z.ZodString;
|
|
1357
1370
|
}, z.core.$strip>>;
|
|
1358
1371
|
}, z.core.$strip>;
|
|
1359
1372
|
declare const WebhookOperationSchema: z.ZodObject<{
|
|
@@ -1394,18 +1407,18 @@ declare const ExecutorSchema: z.ZodObject<{
|
|
|
1394
1407
|
jobFunction: "jobFunction";
|
|
1395
1408
|
}>;
|
|
1396
1409
|
body: z.ZodCustom<Function, Function>;
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1410
|
+
authInvoker: z.ZodOptional<z.ZodObject<{
|
|
1411
|
+
namespace: z.ZodString;
|
|
1412
|
+
machineUserName: z.ZodString;
|
|
1400
1413
|
}, z.core.$strip>>;
|
|
1401
1414
|
}, z.core.$strip>, z.ZodObject<{
|
|
1402
1415
|
kind: z.ZodLiteral<"graphql">;
|
|
1403
1416
|
appName: z.ZodOptional<z.ZodString>;
|
|
1404
1417
|
query: z.ZodString;
|
|
1405
1418
|
variables: z.ZodOptional<z.ZodCustom<Function, Function>>;
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1419
|
+
authInvoker: z.ZodOptional<z.ZodObject<{
|
|
1420
|
+
namespace: z.ZodString;
|
|
1421
|
+
machineUserName: z.ZodString;
|
|
1409
1422
|
}, z.core.$strip>>;
|
|
1410
1423
|
}, z.core.$strip>, z.ZodObject<{
|
|
1411
1424
|
kind: z.ZodLiteral<"webhook">;
|
|
@@ -1429,5 +1442,5 @@ type WebhookOperation = z.infer<typeof WebhookOperationSchema>;
|
|
|
1429
1442
|
type Executor = z.infer<typeof ExecutorSchema>;
|
|
1430
1443
|
type ExecutorInput = z.input<typeof ExecutorSchema>;
|
|
1431
1444
|
//#endregion
|
|
1432
|
-
export { AllowedValues, AllowedValuesOutput, AppConfig, ArrayFieldOutput, AttributeList$1 as AttributeList, AttributeMap$1 as AttributeMap, AuthConfig, AuthExternalConfig, AuthOwnConfig, type AuthServiceInput, type BuiltinIdP, CodeGeneratorBase, Executor, ExecutorInput, ExecutorServiceConfig, ExecutorServiceInput, FieldMetadata, FieldOptions, FieldOutput, FunctionOperation, Generator, GqlOperation, type IDToken, IdPConfig, IdPExternalConfig, type IdProviderConfig, IncomingWebhookTrigger, InferFieldsOutput, type OAuth2Client, type OAuth2ClientGrantType, type OIDC, PermissionCondition, QueryType, RecordTrigger, Resolver, ResolverExecutedTrigger, ResolverExternalConfig, ResolverInput, ResolverServiceConfig, ResolverServiceInput, type SAML, type SCIMAttribute, type SCIMAttributeMapping, type SCIMAttributeType, type SCIMAuthorization, type SCIMConfig, type SCIMResource, ScheduleTriggerInput, StaticWebsiteConfig, TailorDBField, TailorDBInstance, TailorDBType, TailorDBTypeConfig, TailorField, TailorTypeGqlPermission, TailorTypePermission, TailorUser, type TenantProviderConfig, type UserAttributeKey, type UserAttributeListKey, type UserAttributeMap, type UsernameFieldKey, type ValueOperand, WebhookOperation, WorkflowServiceConfig, WorkflowServiceInput, db, defineAuth, defineConfig, defineGenerators, defineIdp, defineStaticWebSite, output, unauthenticatedTailorUser };
|
|
1433
|
-
//# sourceMappingURL=types-
|
|
1445
|
+
export { AllowedValues, AllowedValuesOutput, AppConfig, ArrayFieldOutput, AttributeList$1 as AttributeList, AttributeMap$1 as AttributeMap, AuthConfig, AuthExternalConfig, AuthInvoker$1 as AuthInvoker, AuthOwnConfig, type AuthServiceInput, type BuiltinIdP, CodeGeneratorBase, Executor, ExecutorInput, ExecutorServiceConfig, ExecutorServiceInput, FieldMetadata, FieldOptions, FieldOutput, FunctionOperation, Generator, GqlOperation, type IDToken, IdPConfig, IdPExternalConfig, type IdProviderConfig, IncomingWebhookTrigger, InferFieldsOutput, type OAuth2Client, type OAuth2ClientGrantType, type OIDC, PermissionCondition, QueryType, RecordTrigger, Resolver, ResolverExecutedTrigger, ResolverExternalConfig, ResolverInput, ResolverServiceConfig, ResolverServiceInput, type SAML, type SCIMAttribute, type SCIMAttributeMapping, type SCIMAttributeType, type SCIMAuthorization, type SCIMConfig, type SCIMResource, ScheduleTriggerInput, StaticWebsiteConfig, TailorDBField, TailorDBInstance, TailorDBType, TailorDBTypeConfig, TailorField, TailorTypeGqlPermission, TailorTypePermission, TailorUser, type TenantProviderConfig, type UserAttributeKey, type UserAttributeListKey, type UserAttributeMap, type UsernameFieldKey, type ValueOperand, WebhookOperation, WorkflowServiceConfig, WorkflowServiceInput, db, defineAuth, defineConfig, defineGenerators, defineIdp, defineStaticWebSite, output, unauthenticatedTailorUser };
|
|
1446
|
+
//# sourceMappingURL=types-DBHXcgFJ.d.mts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference path="./../../user-defined.d.ts" />
|
|
2
2
|
|
|
3
|
-
import { TailorDBType, TailorField, TailorUser } from "../../types-
|
|
4
|
-
import { output } from "../../index-
|
|
3
|
+
import { TailorDBType, TailorField, TailorUser } from "../../types-DBHXcgFJ.mjs";
|
|
4
|
+
import { output } from "../../index-zRgZdNLm.mjs";
|
|
5
5
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
6
6
|
|
|
7
7
|
//#region src/utils/test/index.d.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tailor-platform/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"description": "Tailor Platform SDK - The SDK to work with Tailor Platform",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./dist/configure/index.mjs",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"type-fest": "5.2.0",
|
|
65
65
|
"uuid": "13.0.0",
|
|
66
66
|
"xdg-basedir": "5.1.0",
|
|
67
|
-
"zod": "4.1.
|
|
67
|
+
"zod": "4.1.13"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"@eslint/js": "9.39.1",
|