@voyant-travel/openapi 0.2.4 → 0.2.6

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.
@@ -794,6 +794,109 @@
794
794
  }
795
795
  }
796
796
  },
797
+ "/v1/public/markets": {
798
+ "get": {
799
+ "responses": {
800
+ "200": {
801
+ "description": "The supported markets, locales, and currencies for anonymous discovery",
802
+ "content": {
803
+ "application/json": {
804
+ "schema": {
805
+ "type": "object",
806
+ "properties": {
807
+ "data": {
808
+ "type": "array",
809
+ "items": {
810
+ "type": "object",
811
+ "properties": {
812
+ "id": {
813
+ "type": "string"
814
+ },
815
+ "code": {
816
+ "type": "string"
817
+ },
818
+ "name": {
819
+ "type": "string"
820
+ },
821
+ "regionCode": {
822
+ "type": [
823
+ "string",
824
+ "null"
825
+ ]
826
+ },
827
+ "countryCode": {
828
+ "type": [
829
+ "string",
830
+ "null"
831
+ ]
832
+ },
833
+ "defaultLocale": {
834
+ "type": "string"
835
+ },
836
+ "defaultCurrency": {
837
+ "type": "string"
838
+ },
839
+ "locales": {
840
+ "type": "array",
841
+ "items": {
842
+ "type": "object",
843
+ "properties": {
844
+ "languageTag": {
845
+ "type": "string"
846
+ },
847
+ "isDefault": {
848
+ "type": "boolean"
849
+ }
850
+ },
851
+ "required": [
852
+ "languageTag",
853
+ "isDefault"
854
+ ]
855
+ }
856
+ },
857
+ "currencies": {
858
+ "type": "array",
859
+ "items": {
860
+ "type": "object",
861
+ "properties": {
862
+ "currencyCode": {
863
+ "type": "string"
864
+ },
865
+ "isDefault": {
866
+ "type": "boolean"
867
+ }
868
+ },
869
+ "required": [
870
+ "currencyCode",
871
+ "isDefault"
872
+ ]
873
+ }
874
+ }
875
+ },
876
+ "required": [
877
+ "id",
878
+ "code",
879
+ "name",
880
+ "regionCode",
881
+ "countryCode",
882
+ "defaultLocale",
883
+ "defaultCurrency",
884
+ "locales",
885
+ "currencies"
886
+ ]
887
+ }
888
+ }
889
+ },
890
+ "required": [
891
+ "data"
892
+ ]
893
+ }
894
+ }
895
+ }
896
+ }
897
+ }
898
+ }
899
+ },
797
900
  "/v1/public/products/tags": {
798
901
  "get": {
799
902
  "parameters": [
@@ -15254,11 +15357,19 @@
15254
15357
  "required": true,
15255
15358
  "name": "id",
15256
15359
  "in": "path"
15360
+ },
15361
+ {
15362
+ "schema": {
15363
+ "type": "string"
15364
+ },
15365
+ "required": false,
15366
+ "name": "token",
15367
+ "in": "query"
15257
15368
  }
15258
15369
  ],
15259
15370
  "responses": {
15260
15371
  "200": {
15261
- "description": "A public-safe contract by id (metadata stripped)",
15372
+ "description": "A token-authorized public-safe contract",
15262
15373
  "content": {
15263
15374
  "application/json": {
15264
15375
  "schema": {
@@ -15267,9 +15378,6 @@
15267
15378
  "data": {
15268
15379
  "type": "object",
15269
15380
  "properties": {
15270
- "id": {
15271
- "type": "string"
15272
- },
15273
15381
  "contractNumber": {
15274
15382
  "type": [
15275
15383
  "string",
@@ -15298,159 +15406,9 @@
15298
15406
  "void"
15299
15407
  ]
15300
15408
  },
15301
- "stageHistory": {
15302
- "type": "array",
15303
- "items": {
15304
- "type": "object",
15305
- "properties": {
15306
- "stage": {
15307
- "type": "string",
15308
- "enum": [
15309
- "draft",
15310
- "issued",
15311
- "sent",
15312
- "signed",
15313
- "executed",
15314
- "expired",
15315
- "void"
15316
- ]
15317
- },
15318
- "previousStage": {
15319
- "type": [
15320
- "string",
15321
- "null"
15322
- ],
15323
- "enum": [
15324
- "draft",
15325
- "issued",
15326
- "sent",
15327
- "signed",
15328
- "executed",
15329
- "expired",
15330
- "void",
15331
- null
15332
- ]
15333
- },
15334
- "transition": {
15335
- "type": "string",
15336
- "enum": [
15337
- "created",
15338
- "issued",
15339
- "sent",
15340
- "signed",
15341
- "executed",
15342
- "voided"
15343
- ]
15344
- },
15345
- "enteredAt": {
15346
- "type": "string"
15347
- },
15348
- "actorId": {
15349
- "type": [
15350
- "string",
15351
- "null"
15352
- ]
15353
- }
15354
- },
15355
- "required": [
15356
- "stage",
15357
- "previousStage",
15358
- "transition",
15359
- "enteredAt"
15360
- ]
15361
- }
15362
- },
15363
15409
  "title": {
15364
15410
  "type": "string"
15365
15411
  },
15366
- "templateVersionId": {
15367
- "type": [
15368
- "string",
15369
- "null"
15370
- ]
15371
- },
15372
- "seriesId": {
15373
- "type": [
15374
- "string",
15375
- "null"
15376
- ]
15377
- },
15378
- "personId": {
15379
- "type": [
15380
- "string",
15381
- "null"
15382
- ]
15383
- },
15384
- "organizationId": {
15385
- "type": [
15386
- "string",
15387
- "null"
15388
- ]
15389
- },
15390
- "supplierId": {
15391
- "type": [
15392
- "string",
15393
- "null"
15394
- ]
15395
- },
15396
- "channelId": {
15397
- "type": [
15398
- "string",
15399
- "null"
15400
- ]
15401
- },
15402
- "bookingId": {
15403
- "type": [
15404
- "string",
15405
- "null"
15406
- ]
15407
- },
15408
- "targetKind": {
15409
- "type": [
15410
- "string",
15411
- "null"
15412
- ],
15413
- "enum": [
15414
- "booking",
15415
- "quote_version",
15416
- "program",
15417
- "product",
15418
- "inventory_item",
15419
- "supplier_channel_relationship",
15420
- "provider_source_ref",
15421
- null
15422
- ]
15423
- },
15424
- "targetId": {
15425
- "type": [
15426
- "string",
15427
- "null"
15428
- ]
15429
- },
15430
- "targetProvider": {
15431
- "type": [
15432
- "string",
15433
- "null"
15434
- ]
15435
- },
15436
- "targetSourceRef": {
15437
- "type": [
15438
- "string",
15439
- "null"
15440
- ]
15441
- },
15442
- "legacyTransactionOfferId": {
15443
- "type": [
15444
- "string",
15445
- "null"
15446
- ]
15447
- },
15448
- "legacyTransactionOrderId": {
15449
- "type": [
15450
- "string",
15451
- "null"
15452
- ]
15453
- },
15454
15412
  "issuedAt": {
15455
15413
  "type": [
15456
15414
  "string",
@@ -15497,35 +15455,13 @@
15497
15455
  "string",
15498
15456
  "null"
15499
15457
  ]
15500
- },
15501
- "variables": {},
15502
- "createdAt": {
15503
- "type": "string"
15504
- },
15505
- "updatedAt": {
15506
- "type": "string"
15507
15458
  }
15508
15459
  },
15509
15460
  "required": [
15510
- "id",
15511
15461
  "contractNumber",
15512
15462
  "scope",
15513
15463
  "status",
15514
- "stageHistory",
15515
15464
  "title",
15516
- "templateVersionId",
15517
- "seriesId",
15518
- "personId",
15519
- "organizationId",
15520
- "supplierId",
15521
- "channelId",
15522
- "bookingId",
15523
- "targetKind",
15524
- "targetId",
15525
- "targetProvider",
15526
- "targetSourceRef",
15527
- "legacyTransactionOfferId",
15528
- "legacyTransactionOrderId",
15529
15465
  "issuedAt",
15530
15466
  "sentAt",
15531
15467
  "executedAt",
@@ -15533,9 +15469,7 @@
15533
15469
  "voidedAt",
15534
15470
  "language",
15535
15471
  "renderedBodyFormat",
15536
- "renderedBody",
15537
- "createdAt",
15538
- "updatedAt"
15472
+ "renderedBody"
15539
15473
  ]
15540
15474
  }
15541
15475
  },
@@ -15563,6 +15497,24 @@
15563
15497
  }
15564
15498
  }
15565
15499
  }
15500
+ },
15501
+ "410": {
15502
+ "description": "Contract access grant is no longer available",
15503
+ "content": {
15504
+ "application/json": {
15505
+ "schema": {
15506
+ "type": "object",
15507
+ "properties": {
15508
+ "error": {
15509
+ "type": "string"
15510
+ }
15511
+ },
15512
+ "required": [
15513
+ "error"
15514
+ ]
15515
+ }
15516
+ }
15517
+ }
15566
15518
  }
15567
15519
  }
15568
15520
  }
@@ -15577,6 +15529,14 @@
15577
15529
  "required": true,
15578
15530
  "name": "id",
15579
15531
  "in": "path"
15532
+ },
15533
+ {
15534
+ "schema": {
15535
+ "type": "string"
15536
+ },
15537
+ "required": false,
15538
+ "name": "token",
15539
+ "in": "query"
15580
15540
  }
15581
15541
  ],
15582
15542
  "requestBody": {
@@ -15605,112 +15565,6 @@
15605
15565
  ],
15606
15566
  "maxLength": 255
15607
15567
  },
15608
- "personId": {
15609
- "type": [
15610
- "string",
15611
- "null"
15612
- ]
15613
- },
15614
- "targetKind": {
15615
- "type": [
15616
- "string",
15617
- "null"
15618
- ],
15619
- "enum": [
15620
- "booking",
15621
- "quote_version",
15622
- "program",
15623
- "product",
15624
- "inventory_item",
15625
- "supplier_channel_relationship",
15626
- "provider_source_ref",
15627
- null
15628
- ]
15629
- },
15630
- "targetId": {
15631
- "anyOf": [
15632
- {
15633
- "type": "string",
15634
- "enum": [
15635
- ""
15636
- ]
15637
- },
15638
- {
15639
- "type": "string"
15640
- },
15641
- {
15642
- "type": "null"
15643
- }
15644
- ]
15645
- },
15646
- "targetProvider": {
15647
- "anyOf": [
15648
- {
15649
- "type": "string",
15650
- "enum": [
15651
- ""
15652
- ]
15653
- },
15654
- {
15655
- "type": "string",
15656
- "minLength": 1,
15657
- "maxLength": 100
15658
- },
15659
- {
15660
- "type": "null"
15661
- }
15662
- ]
15663
- },
15664
- "targetSourceRef": {
15665
- "anyOf": [
15666
- {
15667
- "type": "string",
15668
- "enum": [
15669
- ""
15670
- ]
15671
- },
15672
- {
15673
- "type": "string",
15674
- "minLength": 1,
15675
- "maxLength": 500
15676
- },
15677
- {
15678
- "type": "null"
15679
- }
15680
- ]
15681
- },
15682
- "legacyTransactionOfferId": {
15683
- "anyOf": [
15684
- {
15685
- "type": "string",
15686
- "enum": [
15687
- ""
15688
- ]
15689
- },
15690
- {
15691
- "type": "string"
15692
- },
15693
- {
15694
- "type": "null"
15695
- }
15696
- ]
15697
- },
15698
- "legacyTransactionOrderId": {
15699
- "anyOf": [
15700
- {
15701
- "type": "string",
15702
- "enum": [
15703
- ""
15704
- ]
15705
- },
15706
- {
15707
- "type": "string"
15708
- },
15709
- {
15710
- "type": "null"
15711
- }
15712
- ]
15713
- },
15714
15568
  "method": {
15715
15569
  "type": "string",
15716
15570
  "enum": [
@@ -15721,46 +15575,11 @@
15721
15575
  ],
15722
15576
  "default": "manual"
15723
15577
  },
15724
- "provider": {
15725
- "type": [
15726
- "string",
15727
- "null"
15728
- ],
15729
- "maxLength": 255
15730
- },
15731
- "externalReference": {
15732
- "type": [
15733
- "string",
15734
- "null"
15735
- ],
15736
- "maxLength": 255
15737
- },
15738
15578
  "signatureData": {
15739
15579
  "type": [
15740
15580
  "string",
15741
15581
  "null"
15742
15582
  ]
15743
- },
15744
- "ipAddress": {
15745
- "type": [
15746
- "string",
15747
- "null"
15748
- ],
15749
- "maxLength": 64
15750
- },
15751
- "userAgent": {
15752
- "type": [
15753
- "string",
15754
- "null"
15755
- ],
15756
- "maxLength": 500
15757
- },
15758
- "metadata": {
15759
- "type": [
15760
- "object",
15761
- "null"
15762
- ],
15763
- "additionalProperties": {}
15764
15583
  }
15765
15584
  },
15766
15585
  "required": [
@@ -15784,12 +15603,6 @@
15784
15603
  "signature": {
15785
15604
  "type": "object",
15786
15605
  "properties": {
15787
- "id": {
15788
- "type": "string"
15789
- },
15790
- "contractId": {
15791
- "type": "string"
15792
- },
15793
15606
  "signerName": {
15794
15607
  "type": "string"
15795
15608
  },
@@ -15805,58 +15618,6 @@
15805
15618
  "null"
15806
15619
  ]
15807
15620
  },
15808
- "personId": {
15809
- "type": [
15810
- "string",
15811
- "null"
15812
- ]
15813
- },
15814
- "targetKind": {
15815
- "type": [
15816
- "string",
15817
- "null"
15818
- ],
15819
- "enum": [
15820
- "booking",
15821
- "quote_version",
15822
- "program",
15823
- "product",
15824
- "inventory_item",
15825
- "supplier_channel_relationship",
15826
- "provider_source_ref",
15827
- null
15828
- ]
15829
- },
15830
- "targetId": {
15831
- "type": [
15832
- "string",
15833
- "null"
15834
- ]
15835
- },
15836
- "targetProvider": {
15837
- "type": [
15838
- "string",
15839
- "null"
15840
- ]
15841
- },
15842
- "targetSourceRef": {
15843
- "type": [
15844
- "string",
15845
- "null"
15846
- ]
15847
- },
15848
- "legacyTransactionOfferId": {
15849
- "type": [
15850
- "string",
15851
- "null"
15852
- ]
15853
- },
15854
- "legacyTransactionOrderId": {
15855
- "type": [
15856
- "string",
15857
- "null"
15858
- ]
15859
- },
15860
15621
  "method": {
15861
15622
  "type": "string",
15862
15623
  "enum": [
@@ -15866,65 +15627,16 @@
15866
15627
  "other"
15867
15628
  ]
15868
15629
  },
15869
- "provider": {
15870
- "type": [
15871
- "string",
15872
- "null"
15873
- ]
15874
- },
15875
- "externalReference": {
15876
- "type": [
15877
- "string",
15878
- "null"
15879
- ]
15880
- },
15881
- "signatureData": {
15882
- "type": [
15883
- "string",
15884
- "null"
15885
- ]
15886
- },
15887
- "ipAddress": {
15888
- "type": [
15889
- "string",
15890
- "null"
15891
- ]
15892
- },
15893
- "userAgent": {
15894
- "type": [
15895
- "string",
15896
- "null"
15897
- ]
15898
- },
15899
15630
  "signedAt": {
15900
15631
  "type": "string"
15901
- },
15902
- "metadata": {},
15903
- "createdAt": {
15904
- "type": "string"
15905
15632
  }
15906
15633
  },
15907
15634
  "required": [
15908
- "id",
15909
- "contractId",
15910
15635
  "signerName",
15911
15636
  "signerEmail",
15912
15637
  "signerRole",
15913
- "personId",
15914
- "targetKind",
15915
- "targetId",
15916
- "targetProvider",
15917
- "targetSourceRef",
15918
- "legacyTransactionOfferId",
15919
- "legacyTransactionOrderId",
15920
15638
  "method",
15921
- "provider",
15922
- "externalReference",
15923
- "signatureData",
15924
- "ipAddress",
15925
- "userAgent",
15926
- "signedAt",
15927
- "createdAt"
15639
+ "signedAt"
15928
15640
  ]
15929
15641
  }
15930
15642
  },
@@ -15993,6 +15705,24 @@
15993
15705
  }
15994
15706
  }
15995
15707
  }
15708
+ },
15709
+ "410": {
15710
+ "description": "Contract access grant is no longer available",
15711
+ "content": {
15712
+ "application/json": {
15713
+ "schema": {
15714
+ "type": "object",
15715
+ "properties": {
15716
+ "error": {
15717
+ "type": "string"
15718
+ }
15719
+ },
15720
+ "required": [
15721
+ "error"
15722
+ ]
15723
+ }
15724
+ }
15725
+ }
15996
15726
  }
15997
15727
  }
15998
15728
  }