@crowdin/n8n-nodes-crowdin 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/dist/nodes/Crowdin/properties/crowdin/fileBased/ai.js +526 -311
- package/dist/nodes/Crowdin/properties/crowdin/fileBased/ai.js.map +1 -1
- package/dist/nodes/Crowdin/properties/crowdin/stringBased/ai.js +526 -311
- package/dist/nodes/Crowdin/properties/crowdin/stringBased/ai.js.map +1 -1
- package/dist/nodes/Crowdin/properties/enterprise/fileBased/ai.js +527 -312
- package/dist/nodes/Crowdin/properties/enterprise/fileBased/ai.js.map +1 -1
- package/dist/nodes/Crowdin/properties/enterprise/stringBased/ai.js +527 -312
- package/dist/nodes/Crowdin/properties/enterprise/stringBased/ai.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -2960,6 +2960,20 @@ exports.aiProperties = [
|
|
|
2960
2960
|
typeOptions: {
|
|
2961
2961
|
password: true
|
|
2962
2962
|
}
|
|
2963
|
+
},
|
|
2964
|
+
{
|
|
2965
|
+
displayName: 'Base Url',
|
|
2966
|
+
name: 'baseUrl',
|
|
2967
|
+
type: 'string',
|
|
2968
|
+
default: '',
|
|
2969
|
+
description: 'Override the provider API base URL (e.g. a self-hosted proxy or third-party gateway)'
|
|
2970
|
+
},
|
|
2971
|
+
{
|
|
2972
|
+
displayName: 'Headers',
|
|
2973
|
+
name: 'json:headers',
|
|
2974
|
+
type: 'json',
|
|
2975
|
+
default: '{}',
|
|
2976
|
+
description: 'Custom HTTP headers sent with every request to the provider. Authorization headers are managed by the provider and can\'t be overridden.'
|
|
2963
2977
|
}
|
|
2964
2978
|
]
|
|
2965
2979
|
},
|
|
@@ -2997,6 +3011,20 @@ exports.aiProperties = [
|
|
|
2997
3011
|
type: 'string',
|
|
2998
3012
|
default: '',
|
|
2999
3013
|
required: true
|
|
3014
|
+
},
|
|
3015
|
+
{
|
|
3016
|
+
displayName: 'Base Url',
|
|
3017
|
+
name: 'baseUrl',
|
|
3018
|
+
type: 'string',
|
|
3019
|
+
default: '',
|
|
3020
|
+
description: 'Override the provider API base URL (e.g. a self-hosted proxy or third-party gateway)'
|
|
3021
|
+
},
|
|
3022
|
+
{
|
|
3023
|
+
displayName: 'Headers',
|
|
3024
|
+
name: 'json:headers',
|
|
3025
|
+
type: 'json',
|
|
3026
|
+
default: '{}',
|
|
3027
|
+
description: 'Custom HTTP headers sent with every request to the provider. Authorization headers are managed by the provider and can\'t be overridden.'
|
|
3000
3028
|
}
|
|
3001
3029
|
]
|
|
3002
3030
|
},
|
|
@@ -3024,6 +3052,20 @@ exports.aiProperties = [
|
|
|
3024
3052
|
type: 'json',
|
|
3025
3053
|
default: '{}',
|
|
3026
3054
|
required: true
|
|
3055
|
+
},
|
|
3056
|
+
{
|
|
3057
|
+
displayName: 'Base Url',
|
|
3058
|
+
name: 'baseUrl',
|
|
3059
|
+
type: 'string',
|
|
3060
|
+
default: '',
|
|
3061
|
+
description: 'Override the provider API base URL (e.g. a self-hosted proxy or third-party gateway)'
|
|
3062
|
+
},
|
|
3063
|
+
{
|
|
3064
|
+
displayName: 'Headers',
|
|
3065
|
+
name: 'json:headers',
|
|
3066
|
+
type: 'json',
|
|
3067
|
+
default: '{}',
|
|
3068
|
+
description: 'Custom HTTP headers sent with every request to the provider. Authorization headers are managed by the provider and can\'t be overridden.'
|
|
3027
3069
|
}
|
|
3028
3070
|
]
|
|
3029
3071
|
},
|
|
@@ -3041,6 +3083,20 @@ exports.aiProperties = [
|
|
|
3041
3083
|
typeOptions: {
|
|
3042
3084
|
password: true
|
|
3043
3085
|
}
|
|
3086
|
+
},
|
|
3087
|
+
{
|
|
3088
|
+
displayName: 'Base Url',
|
|
3089
|
+
name: 'baseUrl',
|
|
3090
|
+
type: 'string',
|
|
3091
|
+
default: '',
|
|
3092
|
+
description: 'Override the provider API base URL (e.g. a self-hosted proxy or third-party gateway)'
|
|
3093
|
+
},
|
|
3094
|
+
{
|
|
3095
|
+
displayName: 'Headers',
|
|
3096
|
+
name: 'json:headers',
|
|
3097
|
+
type: 'json',
|
|
3098
|
+
default: '{}',
|
|
3099
|
+
description: 'Custom HTTP headers sent with every request to the provider. Authorization headers are managed by the provider and can\'t be overridden.'
|
|
3044
3100
|
}
|
|
3045
3101
|
]
|
|
3046
3102
|
},
|
|
@@ -3057,6 +3113,20 @@ exports.aiProperties = [
|
|
|
3057
3113
|
typeOptions: {
|
|
3058
3114
|
password: true
|
|
3059
3115
|
}
|
|
3116
|
+
},
|
|
3117
|
+
{
|
|
3118
|
+
displayName: 'Base Url',
|
|
3119
|
+
name: 'baseUrl',
|
|
3120
|
+
type: 'string',
|
|
3121
|
+
default: '',
|
|
3122
|
+
description: 'Override the provider API base URL (e.g. a self-hosted proxy or third-party gateway)'
|
|
3123
|
+
},
|
|
3124
|
+
{
|
|
3125
|
+
displayName: 'Headers',
|
|
3126
|
+
name: 'json:headers',
|
|
3127
|
+
type: 'json',
|
|
3128
|
+
default: '{}',
|
|
3129
|
+
description: 'Custom HTTP headers sent with every request to the provider. Authorization headers are managed by the provider and can\'t be overridden.'
|
|
3060
3130
|
}
|
|
3061
3131
|
]
|
|
3062
3132
|
},
|
|
@@ -3073,6 +3143,20 @@ exports.aiProperties = [
|
|
|
3073
3143
|
typeOptions: {
|
|
3074
3144
|
password: true
|
|
3075
3145
|
}
|
|
3146
|
+
},
|
|
3147
|
+
{
|
|
3148
|
+
displayName: 'Base Url',
|
|
3149
|
+
name: 'baseUrl',
|
|
3150
|
+
type: 'string',
|
|
3151
|
+
default: '',
|
|
3152
|
+
description: 'Override the provider API base URL (e.g. a self-hosted proxy or third-party gateway)'
|
|
3153
|
+
},
|
|
3154
|
+
{
|
|
3155
|
+
displayName: 'Headers',
|
|
3156
|
+
name: 'json:headers',
|
|
3157
|
+
type: 'json',
|
|
3158
|
+
default: '{}',
|
|
3159
|
+
description: 'Custom HTTP headers sent with every request to the provider. Authorization headers are managed by the provider and can\'t be overridden.'
|
|
3076
3160
|
}
|
|
3077
3161
|
]
|
|
3078
3162
|
},
|
|
@@ -3089,6 +3173,20 @@ exports.aiProperties = [
|
|
|
3089
3173
|
typeOptions: {
|
|
3090
3174
|
password: true
|
|
3091
3175
|
}
|
|
3176
|
+
},
|
|
3177
|
+
{
|
|
3178
|
+
displayName: 'Base Url',
|
|
3179
|
+
name: 'baseUrl',
|
|
3180
|
+
type: 'string',
|
|
3181
|
+
default: '',
|
|
3182
|
+
description: 'Override the provider API base URL (e.g. a self-hosted proxy or third-party gateway)'
|
|
3183
|
+
},
|
|
3184
|
+
{
|
|
3185
|
+
displayName: 'Headers',
|
|
3186
|
+
name: 'json:headers',
|
|
3187
|
+
type: 'json',
|
|
3188
|
+
default: '{}',
|
|
3189
|
+
description: 'Custom HTTP headers sent with every request to the provider. Authorization headers are managed by the provider and can\'t be overridden.'
|
|
3092
3190
|
}
|
|
3093
3191
|
]
|
|
3094
3192
|
},
|
|
@@ -3119,6 +3217,20 @@ exports.aiProperties = [
|
|
|
3119
3217
|
type: 'string',
|
|
3120
3218
|
default: '',
|
|
3121
3219
|
required: true
|
|
3220
|
+
},
|
|
3221
|
+
{
|
|
3222
|
+
displayName: 'Base Url',
|
|
3223
|
+
name: 'baseUrl',
|
|
3224
|
+
type: 'string',
|
|
3225
|
+
default: '',
|
|
3226
|
+
description: 'Override the provider API base URL (e.g. a self-hosted proxy or third-party gateway)'
|
|
3227
|
+
},
|
|
3228
|
+
{
|
|
3229
|
+
displayName: 'Headers',
|
|
3230
|
+
name: 'json:headers',
|
|
3231
|
+
type: 'json',
|
|
3232
|
+
default: '{}',
|
|
3233
|
+
description: 'Custom HTTP headers sent with every request to the provider. Authorization headers are managed by the provider and can\'t be overridden.'
|
|
3122
3234
|
}
|
|
3123
3235
|
]
|
|
3124
3236
|
},
|
|
@@ -3135,6 +3247,20 @@ exports.aiProperties = [
|
|
|
3135
3247
|
typeOptions: {
|
|
3136
3248
|
password: true
|
|
3137
3249
|
}
|
|
3250
|
+
},
|
|
3251
|
+
{
|
|
3252
|
+
displayName: 'Base Url',
|
|
3253
|
+
name: 'baseUrl',
|
|
3254
|
+
type: 'string',
|
|
3255
|
+
default: '',
|
|
3256
|
+
description: 'Override the provider API base URL (e.g. a self-hosted proxy or third-party gateway)'
|
|
3257
|
+
},
|
|
3258
|
+
{
|
|
3259
|
+
displayName: 'Headers',
|
|
3260
|
+
name: 'json:headers',
|
|
3261
|
+
type: 'json',
|
|
3262
|
+
default: '{}',
|
|
3263
|
+
description: 'Custom HTTP headers sent with every request to the provider. Authorization headers are managed by the provider and can\'t be overridden.'
|
|
3138
3264
|
}
|
|
3139
3265
|
]
|
|
3140
3266
|
},
|
|
@@ -3589,20 +3715,11 @@ exports.aiProperties = [
|
|
|
3589
3715
|
}
|
|
3590
3716
|
},
|
|
3591
3717
|
{
|
|
3592
|
-
displayName: '
|
|
3593
|
-
|
|
3594
|
-
|
|
3595
|
-
type: 'fixedCollection',
|
|
3718
|
+
displayName: 'Body',
|
|
3719
|
+
name: '_body',
|
|
3720
|
+
description: 'Select configuration type',
|
|
3596
3721
|
default: {},
|
|
3597
|
-
|
|
3598
|
-
routing: {
|
|
3599
|
-
send: {
|
|
3600
|
-
property: 'strings',
|
|
3601
|
-
propertyInDotNotation: false,
|
|
3602
|
-
type: 'body',
|
|
3603
|
-
value: '={{ $value.items?.map(i => i._value) || undefined }}'
|
|
3604
|
-
}
|
|
3605
|
-
},
|
|
3722
|
+
type: 'fixedCollection',
|
|
3606
3723
|
displayOptions: {
|
|
3607
3724
|
show: {
|
|
3608
3725
|
resource: [
|
|
@@ -3613,322 +3730,294 @@ exports.aiProperties = [
|
|
|
3613
3730
|
]
|
|
3614
3731
|
}
|
|
3615
3732
|
},
|
|
3616
|
-
typeOptions: {
|
|
3617
|
-
multipleValues: true
|
|
3618
|
-
},
|
|
3619
|
-
placeholder: 'Add Item',
|
|
3620
3733
|
options: [
|
|
3621
3734
|
{
|
|
3622
|
-
displayName: '
|
|
3623
|
-
name: '
|
|
3735
|
+
displayName: 'Ai Translate By Prompt Form',
|
|
3736
|
+
name: '_aiTranslateByPromptForm',
|
|
3624
3737
|
values: [
|
|
3625
3738
|
{
|
|
3626
|
-
displayName: '
|
|
3627
|
-
name: '
|
|
3628
|
-
type: '
|
|
3629
|
-
|
|
3630
|
-
|
|
3631
|
-
|
|
3632
|
-
|
|
3633
|
-
|
|
3634
|
-
|
|
3635
|
-
|
|
3636
|
-
|
|
3637
|
-
|
|
3638
|
-
|
|
3639
|
-
|
|
3640
|
-
|
|
3641
|
-
|
|
3642
|
-
|
|
3643
|
-
|
|
3644
|
-
|
|
3645
|
-
|
|
3646
|
-
|
|
3647
|
-
|
|
3648
|
-
|
|
3649
|
-
|
|
3650
|
-
|
|
3651
|
-
|
|
3652
|
-
|
|
3653
|
-
|
|
3654
|
-
|
|
3655
|
-
|
|
3656
|
-
|
|
3657
|
-
|
|
3658
|
-
|
|
3659
|
-
|
|
3660
|
-
|
|
3661
|
-
|
|
3662
|
-
|
|
3663
|
-
|
|
3664
|
-
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
|
|
3671
|
-
|
|
3672
|
-
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
|
|
3699
|
-
|
|
3700
|
-
|
|
3701
|
-
|
|
3702
|
-
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
|
|
3715
|
-
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
-
|
|
3719
|
-
|
|
3720
|
-
|
|
3721
|
-
|
|
3722
|
-
|
|
3723
|
-
|
|
3724
|
-
|
|
3725
|
-
|
|
3726
|
-
|
|
3727
|
-
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
|
|
3732
|
-
|
|
3733
|
-
|
|
3734
|
-
|
|
3735
|
-
|
|
3736
|
-
|
|
3737
|
-
|
|
3738
|
-
|
|
3739
|
-
|
|
3740
|
-
|
|
3741
|
-
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
|
|
3747
|
-
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
-
name: 'styleGuideIds',
|
|
3751
|
-
type: 'multiOptions',
|
|
3752
|
-
default: [],
|
|
3753
|
-
description: 'Array of Style Guide Identifiers. Get via [List Style Guides](#operation/api.style-guides.getMany)',
|
|
3754
|
-
routing: {
|
|
3755
|
-
send: {
|
|
3756
|
-
property: 'styleGuideIds',
|
|
3757
|
-
propertyInDotNotation: false,
|
|
3758
|
-
type: 'body',
|
|
3759
|
-
value: '={{ $value }}'
|
|
3760
|
-
}
|
|
3761
|
-
},
|
|
3762
|
-
displayOptions: {
|
|
3763
|
-
show: {
|
|
3764
|
-
resource: [
|
|
3765
|
-
'ai'
|
|
3766
|
-
],
|
|
3767
|
-
operation: [
|
|
3768
|
-
'api.ai.translate.strings.post'
|
|
3769
|
-
]
|
|
3770
|
-
}
|
|
3771
|
-
},
|
|
3772
|
-
typeOptions: {
|
|
3773
|
-
loadOptionsMethod: 'getStyleGuidesMulti'
|
|
3774
|
-
}
|
|
3775
|
-
},
|
|
3776
|
-
{
|
|
3777
|
-
displayName: 'Ai Prompt Id',
|
|
3778
|
-
name: 'aiPromptId',
|
|
3779
|
-
type: 'options',
|
|
3780
|
-
default: '',
|
|
3781
|
-
description: 'Pre-Translation Prompt Identifier. Get via [List Prompts](#operation/api.ai.prompts.getMany)\n\n__Note:__ Can\'t be used with `aiProviderId` or `aiModelId` in same request',
|
|
3782
|
-
routing: {
|
|
3783
|
-
send: {
|
|
3784
|
-
property: 'aiPromptId',
|
|
3785
|
-
propertyInDotNotation: false,
|
|
3786
|
-
type: 'body',
|
|
3787
|
-
value: '={{ typeof $value === \'number\' ? $value : undefined }}'
|
|
3788
|
-
}
|
|
3789
|
-
},
|
|
3790
|
-
displayOptions: {
|
|
3791
|
-
show: {
|
|
3792
|
-
resource: [
|
|
3793
|
-
'ai'
|
|
3794
|
-
],
|
|
3795
|
-
operation: [
|
|
3796
|
-
'api.ai.translate.strings.post'
|
|
3797
|
-
]
|
|
3798
|
-
}
|
|
3799
|
-
},
|
|
3800
|
-
typeOptions: {
|
|
3801
|
-
loadOptionsMethod: 'getAiPrompts'
|
|
3802
|
-
}
|
|
3803
|
-
},
|
|
3804
|
-
{
|
|
3805
|
-
displayName: 'Ai Provider Id',
|
|
3806
|
-
name: 'aiProviderId',
|
|
3807
|
-
type: 'options',
|
|
3808
|
-
default: '',
|
|
3809
|
-
description: 'AI Provider Identifier. Get via [List AI Providers](#operation/api.ai.providers.getMany)\n\n__Note:__ Must be used together with `aiModelId`. Can\'t be used with `aiPromptId` in same request',
|
|
3810
|
-
routing: {
|
|
3811
|
-
send: {
|
|
3812
|
-
property: 'aiProviderId',
|
|
3813
|
-
propertyInDotNotation: false,
|
|
3814
|
-
type: 'body',
|
|
3815
|
-
value: '={{ typeof $value === \'number\' ? $value : undefined }}'
|
|
3816
|
-
}
|
|
3817
|
-
},
|
|
3818
|
-
displayOptions: {
|
|
3819
|
-
show: {
|
|
3820
|
-
resource: [
|
|
3821
|
-
'ai'
|
|
3822
|
-
],
|
|
3823
|
-
operation: [
|
|
3824
|
-
'api.ai.translate.strings.post'
|
|
3825
|
-
]
|
|
3826
|
-
}
|
|
3827
|
-
},
|
|
3828
|
-
typeOptions: {
|
|
3829
|
-
loadOptionsMethod: 'getAiProviders'
|
|
3830
|
-
}
|
|
3831
|
-
},
|
|
3832
|
-
{
|
|
3833
|
-
displayName: 'Ai Model Id',
|
|
3834
|
-
name: 'aiModelId',
|
|
3835
|
-
type: 'options',
|
|
3836
|
-
default: '',
|
|
3837
|
-
description: 'AI Model ID. Get via [List AI Provider Models](#operation/api.ai.providers.models.getMany)\n\n__Note:__ Must be used together with `aiProviderId`. Can\'t be used with `aiPromptId` in same request',
|
|
3838
|
-
routing: {
|
|
3839
|
-
send: {
|
|
3840
|
-
property: 'aiModelId',
|
|
3841
|
-
propertyInDotNotation: false,
|
|
3842
|
-
type: 'body',
|
|
3843
|
-
value: '={{ $value || undefined }}'
|
|
3844
|
-
}
|
|
3845
|
-
},
|
|
3846
|
-
displayOptions: {
|
|
3847
|
-
show: {
|
|
3848
|
-
resource: [
|
|
3849
|
-
'ai'
|
|
3850
|
-
],
|
|
3851
|
-
operation: [
|
|
3852
|
-
'api.ai.translate.strings.post'
|
|
3853
|
-
]
|
|
3854
|
-
}
|
|
3855
|
-
},
|
|
3856
|
-
typeOptions: {
|
|
3857
|
-
loadOptionsMethod: 'getAiProviderModels',
|
|
3858
|
-
loadOptionsDependsOn: [
|
|
3859
|
-
'aiProviderId'
|
|
3860
|
-
]
|
|
3861
|
-
}
|
|
3862
|
-
},
|
|
3863
|
-
{
|
|
3864
|
-
displayName: 'Instructions',
|
|
3865
|
-
name: 'instructions',
|
|
3866
|
-
type: 'fixedCollection',
|
|
3867
|
-
default: {},
|
|
3868
|
-
description: 'Custom instructions for translation',
|
|
3869
|
-
routing: {
|
|
3870
|
-
send: {
|
|
3871
|
-
property: 'instructions',
|
|
3872
|
-
propertyInDotNotation: false,
|
|
3873
|
-
type: 'body',
|
|
3874
|
-
value: '={{ $value.items?.map(i => i._value) || undefined }}'
|
|
3875
|
-
}
|
|
3876
|
-
},
|
|
3877
|
-
displayOptions: {
|
|
3878
|
-
show: {
|
|
3879
|
-
resource: [
|
|
3880
|
-
'ai'
|
|
3881
|
-
],
|
|
3882
|
-
operation: [
|
|
3883
|
-
'api.ai.translate.strings.post'
|
|
3739
|
+
displayName: 'Strings',
|
|
3740
|
+
name: 'strings',
|
|
3741
|
+
type: 'fixedCollection',
|
|
3742
|
+
typeOptions: {
|
|
3743
|
+
multipleValues: true
|
|
3744
|
+
},
|
|
3745
|
+
default: {},
|
|
3746
|
+
description: 'Array of strings to translate (max 500 strings, each max 10000 characters)',
|
|
3747
|
+
placeholder: 'Add Item',
|
|
3748
|
+
options: [
|
|
3749
|
+
{
|
|
3750
|
+
displayName: 'Items',
|
|
3751
|
+
name: 'items',
|
|
3752
|
+
values: [
|
|
3753
|
+
{
|
|
3754
|
+
displayName: 'Value',
|
|
3755
|
+
name: '_value',
|
|
3756
|
+
type: 'string',
|
|
3757
|
+
default: '',
|
|
3758
|
+
description: undefined
|
|
3759
|
+
}
|
|
3760
|
+
]
|
|
3761
|
+
}
|
|
3762
|
+
],
|
|
3763
|
+
required: true
|
|
3764
|
+
},
|
|
3765
|
+
{
|
|
3766
|
+
displayName: 'Source Language Id',
|
|
3767
|
+
name: 'sourceLanguageId',
|
|
3768
|
+
type: 'options',
|
|
3769
|
+
default: '',
|
|
3770
|
+
description: 'Source Language Identifier. Get via [List Supported Languages](#operation/api.languages.getMany). If not specified, auto-detection will be used.',
|
|
3771
|
+
typeOptions: {
|
|
3772
|
+
loadOptionsMethod: 'getLanguages'
|
|
3773
|
+
}
|
|
3774
|
+
},
|
|
3775
|
+
{
|
|
3776
|
+
displayName: 'Target Language Id',
|
|
3777
|
+
name: 'targetLanguageId',
|
|
3778
|
+
type: 'options',
|
|
3779
|
+
default: '',
|
|
3780
|
+
description: 'Target Language Identifier. Get via [List Supported Languages](#operation/api.languages.getMany)',
|
|
3781
|
+
required: true,
|
|
3782
|
+
typeOptions: {
|
|
3783
|
+
loadOptionsMethod: 'getLanguages'
|
|
3784
|
+
}
|
|
3785
|
+
},
|
|
3786
|
+
{
|
|
3787
|
+
displayName: 'Tm Ids',
|
|
3788
|
+
name: 'tmIds',
|
|
3789
|
+
type: 'multiOptions',
|
|
3790
|
+
typeOptions: {
|
|
3791
|
+
loadOptionsMethod: 'getTranslationMemoriesMulti'
|
|
3792
|
+
},
|
|
3793
|
+
default: [],
|
|
3794
|
+
description: 'Array of Translation Memory Identifiers. Get via [List TMs](#operation/api.tms.getMany)'
|
|
3795
|
+
},
|
|
3796
|
+
{
|
|
3797
|
+
displayName: 'Glossary Ids',
|
|
3798
|
+
name: 'glossaryIds',
|
|
3799
|
+
type: 'multiOptions',
|
|
3800
|
+
typeOptions: {
|
|
3801
|
+
loadOptionsMethod: 'getGlossariesMulti'
|
|
3802
|
+
},
|
|
3803
|
+
default: [],
|
|
3804
|
+
description: 'Array of Glossary Identifiers. Get via [List Glossaries](#operation/api.glossaries.getMany)'
|
|
3805
|
+
},
|
|
3806
|
+
{
|
|
3807
|
+
displayName: 'Style Guide Ids',
|
|
3808
|
+
name: 'styleGuideIds',
|
|
3809
|
+
type: 'multiOptions',
|
|
3810
|
+
typeOptions: {
|
|
3811
|
+
loadOptionsMethod: 'getStyleGuidesMulti'
|
|
3812
|
+
},
|
|
3813
|
+
default: [],
|
|
3814
|
+
description: 'Array of Style Guide Identifiers. Get via [List Style Guides](#operation/api.style-guides.getMany)'
|
|
3815
|
+
},
|
|
3816
|
+
{
|
|
3817
|
+
displayName: 'Instructions',
|
|
3818
|
+
name: 'instructions',
|
|
3819
|
+
type: 'fixedCollection',
|
|
3820
|
+
typeOptions: {
|
|
3821
|
+
multipleValues: true
|
|
3822
|
+
},
|
|
3823
|
+
default: {},
|
|
3824
|
+
description: 'Custom instructions for translation',
|
|
3825
|
+
placeholder: 'Add Item',
|
|
3826
|
+
options: [
|
|
3827
|
+
{
|
|
3828
|
+
displayName: 'Items',
|
|
3829
|
+
name: 'items',
|
|
3830
|
+
values: [
|
|
3831
|
+
{
|
|
3832
|
+
displayName: 'Value',
|
|
3833
|
+
name: '_value',
|
|
3834
|
+
type: 'string',
|
|
3835
|
+
default: '',
|
|
3836
|
+
description: undefined
|
|
3837
|
+
}
|
|
3838
|
+
]
|
|
3839
|
+
}
|
|
3840
|
+
]
|
|
3841
|
+
},
|
|
3842
|
+
{
|
|
3843
|
+
displayName: 'Attachment Ids',
|
|
3844
|
+
name: 'attachmentIds',
|
|
3845
|
+
type: 'multiOptions',
|
|
3846
|
+
typeOptions: {
|
|
3847
|
+
loadOptionsMethod: 'getStoragesMulti'
|
|
3848
|
+
},
|
|
3849
|
+
default: [],
|
|
3850
|
+
description: 'Storage IDs of images to pass to AI as attachments (max 10). Get via [List Storages](#operation/api.storages.getMany)\n\nOnly image files are allowed:\n * jpeg\n * jpg\n * png\n * gif\n * webp'
|
|
3851
|
+
},
|
|
3852
|
+
{
|
|
3853
|
+
displayName: 'Ai Prompt Id',
|
|
3854
|
+
name: 'aiPromptId',
|
|
3855
|
+
type: 'options',
|
|
3856
|
+
default: '',
|
|
3857
|
+
description: 'Pre-Translation Prompt Identifier. Get via [List Prompts](#operation/api.ai.prompts.getMany)\n\n__Note:__ Can\'t be used with `aiProviderId` or `aiModelId` in same request',
|
|
3858
|
+
required: true,
|
|
3859
|
+
typeOptions: {
|
|
3860
|
+
loadOptionsMethod: 'getAiPrompts'
|
|
3861
|
+
}
|
|
3862
|
+
}
|
|
3884
3863
|
]
|
|
3885
|
-
}
|
|
3886
|
-
},
|
|
3887
|
-
typeOptions: {
|
|
3888
|
-
multipleValues: true
|
|
3889
|
-
},
|
|
3890
|
-
placeholder: 'Add Item',
|
|
3891
|
-
options: [
|
|
3864
|
+
},
|
|
3892
3865
|
{
|
|
3893
|
-
displayName: '
|
|
3894
|
-
name: '
|
|
3866
|
+
displayName: 'Ai Translate By Provider Model Form',
|
|
3867
|
+
name: '_aiTranslateByProviderModelForm',
|
|
3895
3868
|
values: [
|
|
3896
3869
|
{
|
|
3897
|
-
displayName: '
|
|
3898
|
-
name: '
|
|
3899
|
-
type: '
|
|
3900
|
-
|
|
3870
|
+
displayName: 'Strings',
|
|
3871
|
+
name: 'strings',
|
|
3872
|
+
type: 'fixedCollection',
|
|
3873
|
+
typeOptions: {
|
|
3874
|
+
multipleValues: true
|
|
3875
|
+
},
|
|
3876
|
+
default: {},
|
|
3877
|
+
description: 'Array of strings to translate (max 500 strings, each max 10000 characters)',
|
|
3878
|
+
placeholder: 'Add Item',
|
|
3879
|
+
options: [
|
|
3880
|
+
{
|
|
3881
|
+
displayName: 'Items',
|
|
3882
|
+
name: 'items',
|
|
3883
|
+
values: [
|
|
3884
|
+
{
|
|
3885
|
+
displayName: 'Value',
|
|
3886
|
+
name: '_value',
|
|
3887
|
+
type: 'string',
|
|
3888
|
+
default: '',
|
|
3889
|
+
description: undefined
|
|
3890
|
+
}
|
|
3891
|
+
]
|
|
3892
|
+
}
|
|
3893
|
+
],
|
|
3894
|
+
required: true
|
|
3895
|
+
},
|
|
3896
|
+
{
|
|
3897
|
+
displayName: 'Source Language Id',
|
|
3898
|
+
name: 'sourceLanguageId',
|
|
3899
|
+
type: 'options',
|
|
3900
|
+
default: '',
|
|
3901
|
+
description: 'Source Language Identifier. Get via [List Supported Languages](#operation/api.languages.getMany). If not specified, auto-detection will be used.',
|
|
3902
|
+
typeOptions: {
|
|
3903
|
+
loadOptionsMethod: 'getLanguages'
|
|
3904
|
+
}
|
|
3905
|
+
},
|
|
3906
|
+
{
|
|
3907
|
+
displayName: 'Target Language Id',
|
|
3908
|
+
name: 'targetLanguageId',
|
|
3909
|
+
type: 'options',
|
|
3910
|
+
default: '',
|
|
3911
|
+
description: 'Target Language Identifier. Get via [List Supported Languages](#operation/api.languages.getMany)',
|
|
3912
|
+
required: true,
|
|
3913
|
+
typeOptions: {
|
|
3914
|
+
loadOptionsMethod: 'getLanguages'
|
|
3915
|
+
}
|
|
3916
|
+
},
|
|
3917
|
+
{
|
|
3918
|
+
displayName: 'Tm Ids',
|
|
3919
|
+
name: 'tmIds',
|
|
3920
|
+
type: 'multiOptions',
|
|
3921
|
+
typeOptions: {
|
|
3922
|
+
loadOptionsMethod: 'getTranslationMemoriesMulti'
|
|
3923
|
+
},
|
|
3924
|
+
default: [],
|
|
3925
|
+
description: 'Array of Translation Memory Identifiers. Get via [List TMs](#operation/api.tms.getMany)'
|
|
3926
|
+
},
|
|
3927
|
+
{
|
|
3928
|
+
displayName: 'Glossary Ids',
|
|
3929
|
+
name: 'glossaryIds',
|
|
3930
|
+
type: 'multiOptions',
|
|
3931
|
+
typeOptions: {
|
|
3932
|
+
loadOptionsMethod: 'getGlossariesMulti'
|
|
3933
|
+
},
|
|
3934
|
+
default: [],
|
|
3935
|
+
description: 'Array of Glossary Identifiers. Get via [List Glossaries](#operation/api.glossaries.getMany)'
|
|
3936
|
+
},
|
|
3937
|
+
{
|
|
3938
|
+
displayName: 'Style Guide Ids',
|
|
3939
|
+
name: 'styleGuideIds',
|
|
3940
|
+
type: 'multiOptions',
|
|
3941
|
+
typeOptions: {
|
|
3942
|
+
loadOptionsMethod: 'getStyleGuidesMulti'
|
|
3943
|
+
},
|
|
3944
|
+
default: [],
|
|
3945
|
+
description: 'Array of Style Guide Identifiers. Get via [List Style Guides](#operation/api.style-guides.getMany)'
|
|
3946
|
+
},
|
|
3947
|
+
{
|
|
3948
|
+
displayName: 'Instructions',
|
|
3949
|
+
name: 'instructions',
|
|
3950
|
+
type: 'fixedCollection',
|
|
3951
|
+
typeOptions: {
|
|
3952
|
+
multipleValues: true
|
|
3953
|
+
},
|
|
3954
|
+
default: {},
|
|
3955
|
+
description: 'Custom instructions for translation',
|
|
3956
|
+
placeholder: 'Add Item',
|
|
3957
|
+
options: [
|
|
3958
|
+
{
|
|
3959
|
+
displayName: 'Items',
|
|
3960
|
+
name: 'items',
|
|
3961
|
+
values: [
|
|
3962
|
+
{
|
|
3963
|
+
displayName: 'Value',
|
|
3964
|
+
name: '_value',
|
|
3965
|
+
type: 'string',
|
|
3966
|
+
default: '',
|
|
3967
|
+
description: undefined
|
|
3968
|
+
}
|
|
3969
|
+
]
|
|
3970
|
+
}
|
|
3971
|
+
]
|
|
3972
|
+
},
|
|
3973
|
+
{
|
|
3974
|
+
displayName: 'Attachment Ids',
|
|
3975
|
+
name: 'attachmentIds',
|
|
3976
|
+
type: 'multiOptions',
|
|
3977
|
+
typeOptions: {
|
|
3978
|
+
loadOptionsMethod: 'getStoragesMulti'
|
|
3979
|
+
},
|
|
3980
|
+
default: [],
|
|
3981
|
+
description: 'Storage IDs of images to pass to AI as attachments (max 10). Get via [List Storages](#operation/api.storages.getMany)\n\nOnly image files are allowed:\n * jpeg\n * jpg\n * png\n * gif\n * webp'
|
|
3982
|
+
},
|
|
3983
|
+
{
|
|
3984
|
+
displayName: 'Ai Provider Id',
|
|
3985
|
+
name: 'aiProviderId',
|
|
3986
|
+
type: 'options',
|
|
3987
|
+
default: '',
|
|
3988
|
+
description: 'AI Provider Identifier. Get via [List AI Providers](#operation/api.ai.providers.getMany)\n\n__Note:__ Must be used together with `aiModelId`. Can\'t be used with `aiPromptId` in same request',
|
|
3989
|
+
required: true,
|
|
3990
|
+
typeOptions: {
|
|
3991
|
+
loadOptionsMethod: 'getAiProviders'
|
|
3992
|
+
}
|
|
3993
|
+
},
|
|
3994
|
+
{
|
|
3995
|
+
displayName: 'Ai Model Id',
|
|
3996
|
+
name: 'aiModelId',
|
|
3997
|
+
type: 'options',
|
|
3998
|
+
default: '',
|
|
3999
|
+
description: 'AI Model ID. Get via [List AI Provider Models](#operation/api.ai.providers.models.getMany)\n\n__Note:__ Must be used together with `aiProviderId`. Can\'t be used with `aiPromptId` in same request',
|
|
4000
|
+
required: true,
|
|
4001
|
+
typeOptions: {
|
|
4002
|
+
loadOptionsMethod: 'getAiProviderModels',
|
|
4003
|
+
loadOptionsDependsOn: [
|
|
4004
|
+
'aiProviderId'
|
|
4005
|
+
]
|
|
4006
|
+
}
|
|
3901
4007
|
}
|
|
3902
4008
|
]
|
|
3903
4009
|
}
|
|
3904
|
-
]
|
|
3905
|
-
},
|
|
3906
|
-
{
|
|
3907
|
-
displayName: 'Attachment Ids',
|
|
3908
|
-
name: 'attachmentIds',
|
|
3909
|
-
type: 'multiOptions',
|
|
3910
|
-
default: [],
|
|
3911
|
-
description: 'Storage IDs of images to pass to AI as attachments (max 10). Get via [List Storages](#operation/api.storages.getMany)\n\nOnly image files are allowed:\n * jpeg\n * jpg\n * png\n * gif\n * webp',
|
|
4010
|
+
],
|
|
3912
4011
|
routing: {
|
|
3913
4012
|
send: {
|
|
3914
|
-
|
|
4013
|
+
preSend: [
|
|
4014
|
+
preSend_1.normalizeRootBody
|
|
4015
|
+
],
|
|
4016
|
+
property: '_body',
|
|
3915
4017
|
propertyInDotNotation: false,
|
|
3916
4018
|
type: 'body',
|
|
3917
4019
|
value: '={{ $value }}'
|
|
3918
4020
|
}
|
|
3919
|
-
},
|
|
3920
|
-
displayOptions: {
|
|
3921
|
-
show: {
|
|
3922
|
-
resource: [
|
|
3923
|
-
'ai'
|
|
3924
|
-
],
|
|
3925
|
-
operation: [
|
|
3926
|
-
'api.ai.translate.strings.post'
|
|
3927
|
-
]
|
|
3928
|
-
}
|
|
3929
|
-
},
|
|
3930
|
-
typeOptions: {
|
|
3931
|
-
loadOptionsMethod: 'getStoragesMulti'
|
|
3932
4021
|
}
|
|
3933
4022
|
},
|
|
3934
4023
|
{
|
|
@@ -4614,6 +4703,20 @@ exports.aiProperties = [
|
|
|
4614
4703
|
typeOptions: {
|
|
4615
4704
|
password: true
|
|
4616
4705
|
}
|
|
4706
|
+
},
|
|
4707
|
+
{
|
|
4708
|
+
displayName: 'Base Url',
|
|
4709
|
+
name: 'baseUrl',
|
|
4710
|
+
type: 'string',
|
|
4711
|
+
default: '',
|
|
4712
|
+
description: 'Override the provider API base URL (e.g. a self-hosted proxy or third-party gateway)'
|
|
4713
|
+
},
|
|
4714
|
+
{
|
|
4715
|
+
displayName: 'Headers',
|
|
4716
|
+
name: 'json:headers',
|
|
4717
|
+
type: 'json',
|
|
4718
|
+
default: '{}',
|
|
4719
|
+
description: 'Custom HTTP headers sent with every request to the provider. Authorization headers are managed by the provider and can\'t be overridden.'
|
|
4617
4720
|
}
|
|
4618
4721
|
]
|
|
4619
4722
|
},
|
|
@@ -4651,6 +4754,20 @@ exports.aiProperties = [
|
|
|
4651
4754
|
type: 'string',
|
|
4652
4755
|
default: '',
|
|
4653
4756
|
required: true
|
|
4757
|
+
},
|
|
4758
|
+
{
|
|
4759
|
+
displayName: 'Base Url',
|
|
4760
|
+
name: 'baseUrl',
|
|
4761
|
+
type: 'string',
|
|
4762
|
+
default: '',
|
|
4763
|
+
description: 'Override the provider API base URL (e.g. a self-hosted proxy or third-party gateway)'
|
|
4764
|
+
},
|
|
4765
|
+
{
|
|
4766
|
+
displayName: 'Headers',
|
|
4767
|
+
name: 'json:headers',
|
|
4768
|
+
type: 'json',
|
|
4769
|
+
default: '{}',
|
|
4770
|
+
description: 'Custom HTTP headers sent with every request to the provider. Authorization headers are managed by the provider and can\'t be overridden.'
|
|
4654
4771
|
}
|
|
4655
4772
|
]
|
|
4656
4773
|
},
|
|
@@ -4678,6 +4795,20 @@ exports.aiProperties = [
|
|
|
4678
4795
|
type: 'json',
|
|
4679
4796
|
default: '{}',
|
|
4680
4797
|
required: true
|
|
4798
|
+
},
|
|
4799
|
+
{
|
|
4800
|
+
displayName: 'Base Url',
|
|
4801
|
+
name: 'baseUrl',
|
|
4802
|
+
type: 'string',
|
|
4803
|
+
default: '',
|
|
4804
|
+
description: 'Override the provider API base URL (e.g. a self-hosted proxy or third-party gateway)'
|
|
4805
|
+
},
|
|
4806
|
+
{
|
|
4807
|
+
displayName: 'Headers',
|
|
4808
|
+
name: 'json:headers',
|
|
4809
|
+
type: 'json',
|
|
4810
|
+
default: '{}',
|
|
4811
|
+
description: 'Custom HTTP headers sent with every request to the provider. Authorization headers are managed by the provider and can\'t be overridden.'
|
|
4681
4812
|
}
|
|
4682
4813
|
]
|
|
4683
4814
|
},
|
|
@@ -4695,6 +4826,20 @@ exports.aiProperties = [
|
|
|
4695
4826
|
typeOptions: {
|
|
4696
4827
|
password: true
|
|
4697
4828
|
}
|
|
4829
|
+
},
|
|
4830
|
+
{
|
|
4831
|
+
displayName: 'Base Url',
|
|
4832
|
+
name: 'baseUrl',
|
|
4833
|
+
type: 'string',
|
|
4834
|
+
default: '',
|
|
4835
|
+
description: 'Override the provider API base URL (e.g. a self-hosted proxy or third-party gateway)'
|
|
4836
|
+
},
|
|
4837
|
+
{
|
|
4838
|
+
displayName: 'Headers',
|
|
4839
|
+
name: 'json:headers',
|
|
4840
|
+
type: 'json',
|
|
4841
|
+
default: '{}',
|
|
4842
|
+
description: 'Custom HTTP headers sent with every request to the provider. Authorization headers are managed by the provider and can\'t be overridden.'
|
|
4698
4843
|
}
|
|
4699
4844
|
]
|
|
4700
4845
|
},
|
|
@@ -4711,6 +4856,20 @@ exports.aiProperties = [
|
|
|
4711
4856
|
typeOptions: {
|
|
4712
4857
|
password: true
|
|
4713
4858
|
}
|
|
4859
|
+
},
|
|
4860
|
+
{
|
|
4861
|
+
displayName: 'Base Url',
|
|
4862
|
+
name: 'baseUrl',
|
|
4863
|
+
type: 'string',
|
|
4864
|
+
default: '',
|
|
4865
|
+
description: 'Override the provider API base URL (e.g. a self-hosted proxy or third-party gateway)'
|
|
4866
|
+
},
|
|
4867
|
+
{
|
|
4868
|
+
displayName: 'Headers',
|
|
4869
|
+
name: 'json:headers',
|
|
4870
|
+
type: 'json',
|
|
4871
|
+
default: '{}',
|
|
4872
|
+
description: 'Custom HTTP headers sent with every request to the provider. Authorization headers are managed by the provider and can\'t be overridden.'
|
|
4714
4873
|
}
|
|
4715
4874
|
]
|
|
4716
4875
|
},
|
|
@@ -4727,6 +4886,20 @@ exports.aiProperties = [
|
|
|
4727
4886
|
typeOptions: {
|
|
4728
4887
|
password: true
|
|
4729
4888
|
}
|
|
4889
|
+
},
|
|
4890
|
+
{
|
|
4891
|
+
displayName: 'Base Url',
|
|
4892
|
+
name: 'baseUrl',
|
|
4893
|
+
type: 'string',
|
|
4894
|
+
default: '',
|
|
4895
|
+
description: 'Override the provider API base URL (e.g. a self-hosted proxy or third-party gateway)'
|
|
4896
|
+
},
|
|
4897
|
+
{
|
|
4898
|
+
displayName: 'Headers',
|
|
4899
|
+
name: 'json:headers',
|
|
4900
|
+
type: 'json',
|
|
4901
|
+
default: '{}',
|
|
4902
|
+
description: 'Custom HTTP headers sent with every request to the provider. Authorization headers are managed by the provider and can\'t be overridden.'
|
|
4730
4903
|
}
|
|
4731
4904
|
]
|
|
4732
4905
|
},
|
|
@@ -4743,6 +4916,20 @@ exports.aiProperties = [
|
|
|
4743
4916
|
typeOptions: {
|
|
4744
4917
|
password: true
|
|
4745
4918
|
}
|
|
4919
|
+
},
|
|
4920
|
+
{
|
|
4921
|
+
displayName: 'Base Url',
|
|
4922
|
+
name: 'baseUrl',
|
|
4923
|
+
type: 'string',
|
|
4924
|
+
default: '',
|
|
4925
|
+
description: 'Override the provider API base URL (e.g. a self-hosted proxy or third-party gateway)'
|
|
4926
|
+
},
|
|
4927
|
+
{
|
|
4928
|
+
displayName: 'Headers',
|
|
4929
|
+
name: 'json:headers',
|
|
4930
|
+
type: 'json',
|
|
4931
|
+
default: '{}',
|
|
4932
|
+
description: 'Custom HTTP headers sent with every request to the provider. Authorization headers are managed by the provider and can\'t be overridden.'
|
|
4746
4933
|
}
|
|
4747
4934
|
]
|
|
4748
4935
|
},
|
|
@@ -4773,6 +4960,20 @@ exports.aiProperties = [
|
|
|
4773
4960
|
type: 'string',
|
|
4774
4961
|
default: '',
|
|
4775
4962
|
required: true
|
|
4963
|
+
},
|
|
4964
|
+
{
|
|
4965
|
+
displayName: 'Base Url',
|
|
4966
|
+
name: 'baseUrl',
|
|
4967
|
+
type: 'string',
|
|
4968
|
+
default: '',
|
|
4969
|
+
description: 'Override the provider API base URL (e.g. a self-hosted proxy or third-party gateway)'
|
|
4970
|
+
},
|
|
4971
|
+
{
|
|
4972
|
+
displayName: 'Headers',
|
|
4973
|
+
name: 'json:headers',
|
|
4974
|
+
type: 'json',
|
|
4975
|
+
default: '{}',
|
|
4976
|
+
description: 'Custom HTTP headers sent with every request to the provider. Authorization headers are managed by the provider and can\'t be overridden.'
|
|
4776
4977
|
}
|
|
4777
4978
|
]
|
|
4778
4979
|
},
|
|
@@ -4789,6 +4990,20 @@ exports.aiProperties = [
|
|
|
4789
4990
|
typeOptions: {
|
|
4790
4991
|
password: true
|
|
4791
4992
|
}
|
|
4993
|
+
},
|
|
4994
|
+
{
|
|
4995
|
+
displayName: 'Base Url',
|
|
4996
|
+
name: 'baseUrl',
|
|
4997
|
+
type: 'string',
|
|
4998
|
+
default: '',
|
|
4999
|
+
description: 'Override the provider API base URL (e.g. a self-hosted proxy or third-party gateway)'
|
|
5000
|
+
},
|
|
5001
|
+
{
|
|
5002
|
+
displayName: 'Headers',
|
|
5003
|
+
name: 'json:headers',
|
|
5004
|
+
type: 'json',
|
|
5005
|
+
default: '{}',
|
|
5006
|
+
description: 'Custom HTTP headers sent with every request to the provider. Authorization headers are managed by the provider and can\'t be overridden.'
|
|
4792
5007
|
}
|
|
4793
5008
|
]
|
|
4794
5009
|
},
|