-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathdeclarative_component_schema.yaml
2990 lines (2987 loc) · 111 KB
/
declarative_component_schema.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
"$schema": http://json-schema.org/draft-07/schema#
"$id": https://github.com/airbytehq/airbyte/blob/master/airbyte-cdk/python/airbyte_cdk/sources/declarative/declarative_component_schema.yaml
title: DeclarativeSource
type: object
description: An API source that extracts data according to its declarative components.
version: 1.0.0
required:
- type
- check
- version
anyOf:
- required:
- streams
- required:
- dynamic_streams
properties:
type:
type: string
enum: [DeclarativeSource]
check:
"$ref": "#/definitions/CheckStream"
streams:
type: array
items:
"$ref": "#/definitions/DeclarativeStream"
dynamic_streams:
type: array
items:
"$ref": "#/definitions/DynamicDeclarativeStream"
version:
type: string
description: The version of the Airbyte CDK used to build and test the source.
schemas:
"$ref": "#/definitions/Schemas"
definitions:
type: object
spec:
"$ref": "#/definitions/Spec"
concurrency_level:
"$ref": "#/definitions/ConcurrencyLevel"
metadata:
type: object
description: For internal Airbyte use only - DO NOT modify manually. Used by consumers of declarative manifests for storing related metadata.
additionalProperties: true
description:
type: string
description: A description of the connector. It will be presented on the Source documentation page.
additionalProperties: false
definitions:
AddedFieldDefinition:
title: Definition Of Field To Add
description: Defines the field to add on a record.
type: object
required:
- type
- path
- value
properties:
type:
type: string
enum: [AddedFieldDefinition]
path:
title: Path
description: List of strings defining the path where to add the value on the record.
type: array
items:
type: string
examples:
- ["segment_id"]
- ["metadata", "segment_id"]
value:
title: Value
description: Value of the new field. Use {{ record['existing_field'] }} syntax to refer to other fields in the record.
type: string
interpolation_context:
- config
- record
- stream_interval
- stream_partition
- stream_slice
- stream_state
examples:
- "{{ record['updates'] }}"
- "{{ record['MetaData']['LastUpdatedTime'] }}"
- "{{ stream_partition['segment_id'] }}"
value_type:
title: Value Type
description: Type of the value. If not specified, the type will be inferred from the value.
"$ref": "#/definitions/ValueType"
$parameters:
type: object
additionalProperties: true
AddFields:
title: Add Fields
description: Transformation which adds field to an output record. The path of the added field can be nested.
type: object
required:
- type
- fields
properties:
type:
type: string
enum: [AddFields]
fields:
title: Fields
description: List of transformations (path and corresponding value) that will be added to the record.
type: array
items:
- "$ref": "#/definitions/AddedFieldDefinition"
$parameters:
type: object
additionalProperties: true
ApiKeyAuthenticator:
title: API Key Authenticator
description: Authenticator for requests authenticated with an API token injected as an HTTP request header.
type: object
required:
- type
properties:
type:
type: string
enum: [ApiKeyAuthenticator]
api_token:
title: API Key
description: The API key to inject in the request. Fill it in the user inputs.
type: string
interpolation_context:
- config
examples:
- "{{ config['api_key'] }}"
- "Token token={{ config['api_key'] }}"
header:
title: Header Name
description: The name of the HTTP header that will be set to the API key. This setting is deprecated, use inject_into instead. Header and inject_into can not be defined at the same time.
type: string
interpolation_context:
- config
examples:
- Authorization
- Api-Token
- X-Auth-Token
inject_into:
title: Inject API Key Into Outgoing HTTP Request
description: Configure how the API Key will be sent in requests to the source API. Either inject_into or header has to be defined.
"$ref": "#/definitions/RequestOption"
examples:
- inject_into: header
field_name: Authorization
- inject_into: request_parameter
field_name: authKey
$parameters:
type: object
additionalProperties: true
AuthFlow:
title: "Auth flow"
description: |-
Additional and optional specification object to describe what an 'advanced' Auth flow would need to function.
- A connector should be able to fully function with the configuration as described by the ConnectorSpecification in a 'basic' mode.
- The 'advanced' mode provides easier UX for the user with UI improvements and automations. However, this requires further setup on the
server side by instance or workspace admins beforehand. The trade-off is that the user does not have to provide as many technical
inputs anymore and the auth process is faster and easier to complete.
type: object
properties:
auth_flow_type:
title: "Auth flow type"
description: "The type of auth to use"
type: string
enum: ["oauth2.0", "oauth1.0"] # Future auth types should be added here
predicate_key:
title: "Predicate key"
description: JSON path to a field in the connectorSpecification that should exist for the advanced auth to be applicable.
type: array
items:
type: string
examples:
- ["credentials", "auth_type"]
predicate_value:
title: "Predicate value"
description: Value of the predicate_key fields for the advanced auth to be applicable.
type: string
examples:
- "Oauth"
oauth_config_specification:
"$ref": "#/definitions/OAuthConfigSpecification"
BasicHttpAuthenticator:
title: Basic HTTP Authenticator
description: Authenticator for requests authenticated with the Basic HTTP authentication scheme, which encodes a username and an optional password in the Authorization request header.
type: object
required:
- type
- username
properties:
type:
type: string
enum: [BasicHttpAuthenticator]
username:
title: Username
description: The username that will be combined with the password, base64 encoded and used to make requests. Fill it in the user inputs.
type: string
interpolation_context:
- config
examples:
- "{{ config['username'] }}"
- "{{ config['api_key'] }}"
password:
title: Password
description: The password that will be combined with the username, base64 encoded and used to make requests. Fill it in the user inputs.
type: string
default: ""
interpolation_context:
- config
examples:
- "{{ config['password'] }}"
- ""
$parameters:
type: object
additionalProperties: true
BearerAuthenticator:
title: Bearer Token Authenticator
description: "Authenticator for requests authenticated with a bearer token injected as a request header of the form `Authorization: Bearer <token>`."
type: object
required:
- type
- api_token
properties:
type:
type: string
enum: [BearerAuthenticator]
api_token:
title: Bearer Token
description: Token to inject as request header for authenticating with the API.
type: string
interpolation_context:
- config
examples:
- "{{ config['api_key'] }}"
- "{{ config['token'] }}"
$parameters:
type: object
additionalProperties: true
SelectiveAuthenticator:
title: Selective Authenticator
description: Authenticator that selects concrete authenticator based on config property.
type: object
additionalProperties: true
required:
- type
- authenticators
- authenticator_selection_path
properties:
type:
type: string
enum: [SelectiveAuthenticator]
authenticator_selection_path:
title: Authenticator Selection Path
description: Path of the field in config with selected authenticator name
type: array
items:
type: string
examples:
- ["auth"]
- ["auth", "type"]
authenticators:
title: Authenticators
description: Authenticators to select from.
type: object
additionalProperties:
anyOf:
- "$ref": "#/definitions/ApiKeyAuthenticator"
- "$ref": "#/definitions/BasicHttpAuthenticator"
- "$ref": "#/definitions/BearerAuthenticator"
- "$ref": "#/definitions/CustomAuthenticator"
- "$ref": "#/definitions/OAuthAuthenticator"
- "$ref": "#/definitions/JwtAuthenticator"
- "$ref": "#/definitions/NoAuth"
- "$ref": "#/definitions/SessionTokenAuthenticator"
- "$ref": "#/definitions/LegacySessionTokenAuthenticator"
examples:
- authenticators:
token: "#/definitions/ApiKeyAuthenticator"
oauth: "#/definitions/OAuthAuthenticator"
jwt: "#/definitions/JwtAuthenticator"
$parameters:
type: object
additionalProperties: true
CheckStream:
title: Streams to Check
description: Defines the streams to try reading when running a check operation.
type: object
required:
- type
- stream_names
properties:
type:
type: string
enum: [CheckStream]
stream_names:
title: Stream Names
description: Names of the streams to try reading from when running a check operation.
type: array
items:
type: string
examples:
- ["users"]
- ["users", "contacts"]
CompositeErrorHandler:
title: Composite Error Handler
description: Error handler that sequentially iterates over a list of error handlers.
type: object
required:
- type
- error_handlers
properties:
type:
type: string
enum: [CompositeErrorHandler]
error_handlers:
title: Error Handlers
description: List of error handlers to iterate on to determine how to handle a failed response.
type: array
items:
anyOf:
- "$ref": "#/definitions/CompositeErrorHandler"
- "$ref": "#/definitions/DefaultErrorHandler"
$parameters:
type: object
additionalProperties: true
ConcurrencyLevel:
title: Concurrency Level
description: Defines the amount of parallelization for the streams that are being synced. The factor of parallelization is how many partitions or streams are synced at the same time. For example, with a concurrency_level of 10, ten streams or partitions of data will processed at the same time.
type: object
required:
- default_concurrency
properties:
type:
type: string
enum: [ConcurrencyLevel]
default_concurrency:
title: Default Concurrency
description: The amount of concurrency that will applied during a sync. This value can be hardcoded or user-defined in the config if different users have varying volume thresholds in the target API.
anyOf:
- type: integer
- type: string
interpolation_context:
- config
examples:
- 10
- "{{ config['num_workers'] or 10 }}"
max_concurrency:
title: Max Concurrency
description: The maximum level of concurrency that will be used during a sync. This becomes a required field when the default_concurrency derives from the config, because it serves as a safeguard against a user-defined threshold that is too high.
type: integer
examples:
- 20
- 100
$parameters:
type: object
additionalProperties: true
ConstantBackoffStrategy:
title: Constant Backoff
description: Backoff strategy with a constant backoff interval.
type: object
required:
- type
- backoff_time_in_seconds
properties:
type:
type: string
enum: [ConstantBackoffStrategy]
backoff_time_in_seconds:
title: Backoff Time
description: Backoff time in seconds.
anyOf:
- type: number
- type: string
interpolation_context:
- config
examples:
- 30
- 30.5
- "{{ config['backoff_time'] }}"
$parameters:
type: object
additionalProperties: true
CursorPagination:
title: Cursor Pagination
description: Pagination strategy that evaluates an interpolated string to define the next page to fetch.
type: object
required:
- type
- cursor_value
properties:
type:
type: string
enum: [CursorPagination]
cursor_value:
title: Cursor Value
description: Value of the cursor defining the next page to fetch.
type: string
interpolation_context:
- config
- headers
- last_page_size
- last_record
- response
examples:
- "{{ headers.link.next.cursor }}"
- "{{ last_record['key'] }}"
- "{{ response['nextPage'] }}"
page_size:
title: Page Size
description: The number of records to include in each pages.
type: integer
examples:
- 100
stop_condition:
title: Stop Condition
description: Template string evaluating when to stop paginating.
type: string
interpolation_context:
- config
- headers
- last_record
- response
examples:
- "{{ response.data.has_more is false }}"
- "{{ 'next' not in headers['link'] }}"
$parameters:
type: object
additionalProperties: true
CustomAuthenticator:
title: Custom Authenticator
description: Authenticator component whose behavior is derived from a custom code implementation of the connector.
type: object
additionalProperties: true
required:
- type
- class_name
properties:
type:
type: string
enum: [CustomAuthenticator]
class_name:
title: Class Name
description: Fully-qualified name of the class that will be implementing the custom authentication strategy. Has to be a sub class of DeclarativeAuthenticator. The format is `source_<name>.<package>.<class_name>`.
type: string
additionalProperties: true
examples:
- "source_railz.components.ShortLivedTokenAuthenticator"
$parameters:
type: object
additionalProperties: true
CustomBackoffStrategy:
title: Custom Backoff Strategy
description: Backoff strategy component whose behavior is derived from a custom code implementation of the connector.
type: object
additionalProperties: true
required:
- type
- class_name
properties:
type:
type: string
enum: [CustomBackoffStrategy]
class_name:
title: Class Name
description: Fully-qualified name of the class that will be implementing the custom backoff strategy. The format is `source_<name>.<package>.<class_name>`.
type: string
examples:
- "source_railz.components.MyCustomBackoffStrategy"
$parameters:
type: object
additionalProperties: true
CustomErrorHandler:
title: Custom Error Handler
description: Error handler component whose behavior is derived from a custom code implementation of the connector.
type: object
additionalProperties: true
required:
- type
- class_name
properties:
type:
type: string
enum: [CustomErrorHandler]
class_name:
title: Class Name
description: Fully-qualified name of the class that will be implementing the custom error handler. The format is `source_<name>.<package>.<class_name>`.
type: string
examples:
- "source_railz.components.MyCustomErrorHandler"
$parameters:
type: object
additionalProperties: true
CustomIncrementalSync:
title: Custom Incremental Sync
description: Incremental component whose behavior is derived from a custom code implementation of the connector.
type: object
additionalProperties: true
required:
- type
- class_name
- cursor_field
properties:
type:
type: string
enum: [CustomIncrementalSync]
class_name:
title: Class Name
description: Fully-qualified name of the class that will be implementing the custom incremental sync. The format is `source_<name>.<package>.<class_name>`.
type: string
additionalProperties: true
examples:
- "source_railz.components.MyCustomIncrementalSync"
cursor_field:
description: The location of the value on a record that will be used as a bookmark during sync.
type: string
$parameters:
type: object
additionalProperties: true
CustomPaginationStrategy:
title: Custom Pagination Strategy
description: Pagination strategy component whose behavior is derived from a custom code implementation of the connector.
type: object
additionalProperties: true
required:
- type
- class_name
properties:
type:
type: string
enum: [CustomPaginationStrategy]
class_name:
title: Class Name
description: Fully-qualified name of the class that will be implementing the custom pagination strategy. The format is `source_<name>.<package>.<class_name>`.
type: string
examples:
- "source_railz.components.MyCustomPaginationStrategy"
$parameters:
type: object
additionalProperties: true
CustomRecordExtractor:
title: Custom Record Extractor
description: Record extractor component whose behavior is derived from a custom code implementation of the connector.
type: object
additionalProperties: true
required:
- type
- class_name
properties:
type:
type: string
enum: [CustomRecordExtractor]
class_name:
title: Class Name
description: Fully-qualified name of the class that will be implementing the custom record extraction strategy. The format is `source_<name>.<package>.<class_name>`.
type: string
examples:
- "source_railz.components.MyCustomRecordExtractor"
$parameters:
type: object
additionalProperties: true
CustomRecordFilter:
title: Custom Record Filter
description: Record filter component whose behavior is derived from a custom code implementation of the connector.
type: object
additionalProperties: true
required:
- type
- class_name
properties:
type:
type: string
enum: [CustomRecordFilter]
class_name:
title: Class Name
description: Fully-qualified name of the class that will be implementing the custom record filter strategy. The format is `source_<name>.<package>.<class_name>`.
type: string
examples:
- "source_railz.components.MyCustomCustomRecordFilter"
$parameters:
type: object
additionalProperties: true
CustomRequester:
title: Custom Requester
description: Requester component whose behavior is derived from a custom code implementation of the connector.
type: object
additionalProperties: true
required:
- type
- class_name
properties:
type:
type: string
enum: [CustomRequester]
class_name:
title: Class Name
description: Fully-qualified name of the class that will be implementing the custom requester strategy. The format is `source_<name>.<package>.<class_name>`.
type: string
additionalProperties: true
examples:
- "source_railz.components.MyCustomRecordExtractor"
$parameters:
type: object
additionalProperties: true
CustomRetriever:
title: Custom Retriever
description: Retriever component whose behavior is derived from a custom code implementation of the connector.
type: object
additionalProperties: true
required:
- type
- class_name
properties:
type:
type: string
enum: [CustomRetriever]
class_name:
title: Class Name
description: Fully-qualified name of the class that will be implementing the custom retriever strategy. The format is `source_<name>.<package>.<class_name>`.
type: string
additionalProperties: true
examples:
- "source_railz.components.MyCustomRetriever"
$parameters:
type: object
additionalProperties: true
CustomPartitionRouter:
title: Custom Partition Router
description: Partition router component whose behavior is derived from a custom code implementation of the connector.
type: object
additionalProperties: true
required:
- type
- class_name
properties:
type:
type: string
enum: [CustomPartitionRouter]
class_name:
title: Class Name
description: Fully-qualified name of the class that will be implementing the custom partition router. The format is `source_<name>.<package>.<class_name>`.
type: string
examples:
- "source_railz.components.MyCustomPartitionRouter"
$parameters:
type: object
additionalProperties: true
CustomSchemaLoader:
title: Custom Schema Loader
description: Schema Loader component whose behavior is derived from a custom code implementation of the connector.
type: object
additionalProperties: true
required:
- type
- class_name
properties:
type:
type: string
enum: [CustomSchemaLoader]
class_name:
title: Class Name
description: Fully-qualified name of the class that will be implementing the custom schema loader. The format is `source_<name>.<package>.<class_name>`.
type: string
examples:
- "source_railz.components.MyCustomSchemaLoader"
$parameters:
type: object
additionalProperties: true
CustomStateMigration:
title: Custom State Migration
description: Apply a custom transformation on the input state.
type: object
additionalProperties: true
required:
- type
- class_name
properties:
type:
type: string
enum: [CustomStateMigration]
class_name:
title: Class Name
description: Fully-qualified name of the class that will be implementing the custom state migration. The format is `source_<name>.<package>.<class_name>`.
type: string
examples:
- "source_railz.components.MyCustomStateMigration"
$parameters:
type: object
additionalProperties: true
CustomTransformation:
title: Custom Transformation
description: Transformation component whose behavior is derived from a custom code implementation of the connector.
type: object
additionalProperties: true
required:
- type
- class_name
properties:
type:
type: string
enum: [CustomTransformation]
class_name:
title: Class Name
description: Fully-qualified name of the class that will be implementing the custom transformation. The format is `source_<name>.<package>.<class_name>`.
type: string
examples:
- "source_railz.components.MyCustomTransformation"
$parameters:
type: object
additionalProperties: true
LegacyToPerPartitionStateMigration:
title: Legacy To Per-partition-state Migration
description:
'Transforms the input state for per-partitioned streams from the legacy format to the low-code format.
The cursor field and partition ID fields are automatically extracted from the stream''s DatetimebasedCursor and SubstreamPartitionRouter.
Example input state:
{
"13506132": {
"last_changed": "2022-12-27T08:34:39+00:00"
}
Example output state:
{
"partition": {"id": "13506132"},
"cursor": {"last_changed": "2022-12-27T08:34:39+00:00"}
}
'
type: object
additionalProperties: true
properties:
type:
type: string
enum: [LegacyToPerPartitionStateMigration]
DatetimeBasedCursor:
title: Datetime Based Cursor
description: Cursor to provide incremental capabilities over datetime.
type: object
required:
- type
- cursor_field
- datetime_format
- start_datetime
properties:
type:
type: string
enum: [DatetimeBasedCursor]
cursor_field:
title: Cursor Field
description: The location of the value on a record that will be used as a bookmark during sync. To ensure no data loss, the API must return records in ascending order based on the cursor field. Nested fields are not supported, so the field must be at the top level of the record. You can use a combination of Add Field and Remove Field transformations to move the nested field to the top.
type: string
interpolation_context:
- config
examples:
- "created_at"
- "{{ config['record_cursor'] }}"
datetime_format:
title: Outgoing Datetime Format
description: |
The datetime format used to format the datetime values that are sent in outgoing requests to the API. Use placeholders starting with "%" to describe the format the API is using. The following placeholders are available:
* **%s**: Epoch unix timestamp - `1686218963`
* **%s_as_float**: Epoch unix timestamp in seconds as float with microsecond precision - `1686218963.123456`
* **%ms**: Epoch unix timestamp (milliseconds) - `1686218963123`
* **%a**: Weekday (abbreviated) - `Sun`
* **%A**: Weekday (full) - `Sunday`
* **%w**: Weekday (decimal) - `0` (Sunday), `6` (Saturday)
* **%d**: Day of the month (zero-padded) - `01`, `02`, ..., `31`
* **%b**: Month (abbreviated) - `Jan`
* **%B**: Month (full) - `January`
* **%m**: Month (zero-padded) - `01`, `02`, ..., `12`
* **%y**: Year (without century, zero-padded) - `00`, `01`, ..., `99`
* **%Y**: Year (with century) - `0001`, `0002`, ..., `9999`
* **%H**: Hour (24-hour, zero-padded) - `00`, `01`, ..., `23`
* **%I**: Hour (12-hour, zero-padded) - `01`, `02`, ..., `12`
* **%p**: AM/PM indicator
* **%M**: Minute (zero-padded) - `00`, `01`, ..., `59`
* **%S**: Second (zero-padded) - `00`, `01`, ..., `59`
* **%f**: Microsecond (zero-padded to 6 digits) - `000000`
* **%z**: UTC offset - `(empty)`, `+0000`, `-04:00`
* **%Z**: Time zone name - `(empty)`, `UTC`, `GMT`
* **%j**: Day of the year (zero-padded) - `001`, `002`, ..., `366`
* **%U**: Week number of the year (starting Sunday) - `00`, ..., `53`
* **%W**: Week number of the year (starting Monday) - `00`, ..., `53`
* **%c**: Date and time - `Tue Aug 16 21:30:00 1988`
* **%x**: Date standard format - `08/16/1988`
* **%X**: Time standard format - `21:30:00`
* **%%**: Literal '%' character
Some placeholders depend on the locale of the underlying system - in most cases this locale is configured as en/US. For more information see the [Python documentation](https://docs.python.org/3/library/datetime.html#strftime-and-strptime-format-codes).
type: string
examples:
- "%Y-%m-%dT%H:%M:%S.%f%z"
- "%Y-%m-%d"
- "%s"
- "%ms"
- "%s_as_float"
start_datetime:
title: Start Datetime
description: The datetime that determines the earliest record that should be synced.
anyOf:
- type: string
- "$ref": "#/definitions/MinMaxDatetime"
interpolation_context:
- config
examples:
- "2020-01-1T00:00:00Z"
- "{{ config['start_time'] }}"
cursor_datetime_formats:
title: Cursor Datetime Formats
description: The possible formats for the cursor field, in order of preference. The first format that matches the cursor field value will be used to parse it. If not provided, the `datetime_format` will be used.
type: array
items:
type: string
examples:
- "%Y-%m-%dT%H:%M:%S.%f%z"
- "%Y-%m-%d"
- "%s"
cursor_granularity:
title: Cursor Granularity
description:
Smallest increment the datetime_format has (ISO 8601 duration) that is used to ensure the start of a slice does not overlap with the end of the previous one, e.g. for %Y-%m-%d the granularity should
be P1D, for %Y-%m-%dT%H:%M:%SZ the granularity should be PT1S. Given this field is provided, `step` needs to be provided as well.
type: string
examples:
- "PT1S"
end_datetime:
title: End Datetime
description: The datetime that determines the last record that should be synced. If not provided, `{{ now_utc() }}` will be used.
anyOf:
- type: string
- "$ref": "#/definitions/MinMaxDatetime"
interpolation_context:
- config
examples:
- "2021-01-1T00:00:00Z"
- "{{ now_utc() }}"
- "{{ day_delta(-1) }}"
end_time_option:
title: Inject End Time Into Outgoing HTTP Request
description: Optionally configures how the end datetime will be sent in requests to the source API.
"$ref": "#/definitions/RequestOption"
is_data_feed:
title: Whether the target API is formatted as a data feed
description: A data feed API is an API that does not allow filtering and paginates the content from the most recent to the least recent. Given this, the CDK needs to know when to stop paginating and this field will generate a stop condition for pagination.
type: boolean
is_client_side_incremental:
title: Whether the target API does not support filtering and returns all data (the cursor filters records in the client instead of the API side)
description: If the target API endpoint does not take cursor values to filter records and returns all records anyway, the connector with this cursor will filter out records locally, and only emit new records from the last sync, hence incremental. This means that all records would be read from the API, but only new records will be emitted to the destination.
type: boolean
is_compare_strictly:
title: Whether to skip requests if the start time equals the end time
description: Set to True if the target API does not accept queries where the start time equal the end time.
type: boolean
default: False
global_substream_cursor:
title: Whether to store cursor as one value instead of per partition
description: This setting optimizes performance when the parent stream has thousands of partitions by storing the cursor as a single value rather than per partition. Notably, the substream state is updated only at the end of the sync, which helps prevent data loss in case of a sync failure. See more info in the [docs](https://docs.airbyte.com/connector-development/config-based/understanding-the-yaml-file/incremental-syncs).
type: boolean
default: false
lookback_window:
title: Lookback Window
description: Time interval before the start_datetime to read data for, e.g. P1M for looking back one month.
type: string
interpolation_context:
- config
examples:
- "P1D"
- "P{{ config['lookback_days'] }}D"
partition_field_end:
title: Partition Field End
description: Name of the partition start time field.
type: string
examples:
- "ending_time"
partition_field_start:
title: Partition Field Start
description: Name of the partition end time field.
type: string
examples:
- "starting_time"
start_time_option:
title: Inject Start Time Into Outgoing HTTP Request
description: Optionally configures how the start datetime will be sent in requests to the source API.
"$ref": "#/definitions/RequestOption"
step:
title: Step
description: The size of the time window (ISO8601 duration). Given this field is provided, `cursor_granularity` needs to be provided as well.
type: string
examples:
- "P1W"
- "{{ config['step_increment'] }}"
$parameters:
type: object
additionalProperties: true
JwtAuthenticator:
title: JWT Authenticator
description: Authenticator for requests using JWT authentication flow.
type: object
required:
- type
- secret_key
- algorithm
properties:
type:
type: string
enum: [JwtAuthenticator]
secret_key:
type: string
description: Secret used to sign the JSON web token.
examples:
- "{{ config['secret_key'] }}"
base64_encode_secret_key:
type: boolean
description: When set to true, the secret key will be base64 encoded prior to being encoded as part of the JWT. Only set to "true" when required by the API.
default: False
algorithm:
type: string
description: Algorithm used to sign the JSON web token.
enum:
[
"HS256",
"HS384",
"HS512",
"ES256",
"ES256K",
"ES384",
"ES512",
"RS256",
"RS384",
"RS512",
"PS256",
"PS384",
"PS512",
"EdDSA",
]
examples:
- ES256
- HS256
- RS256
- "{{ config['algorithm'] }}"
token_duration:
type: integer
title: Token Duration
description: The amount of time in seconds a JWT token can be valid after being issued.
default: 1200
examples:
- 1200
- 3600
header_prefix:
type: string
title: Header Prefix
description: The prefix to be used within the Authentication header.
examples:
- "Bearer"
- "Basic"
jwt_headers:
type: object
title: JWT Headers
description: JWT headers used when signing JSON web token.
additionalProperties: false
properties:
kid:
type: string
title: Key Identifier
description: Private key ID for user account.
examples:
- "{{ config['kid'] }}"
typ:
type: string
title: Type
description: The media type of the complete JWT.
default: JWT
examples:
- JWT
cty:
type: string
title: Content Type
description: Content type of JWT header.
examples:
- JWT
additional_jwt_headers:
type: object
title: Additional JWT Headers
description: Additional headers to be included with the JWT headers object.
additionalProperties: true
jwt_payload:
type: object
title: JWT Payload
description: JWT Payload used when signing JSON web token.
additionalProperties: false
properties:
iss:
type: string
title: Issuer
description: The user/principal that issued the JWT. Commonly a value unique to the user.
examples:
- "{{ config['iss'] }}"
sub:
type: string
title: Subject