@fourier-labs/harbour-contracts 0.88.0 → 0.91.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.
Files changed (29) hide show
  1. package/contract-release.json +24 -24
  2. package/dist/gen-ts/app-integrations-declaration.d.ts +8 -0
  3. package/dist/gen-ts/contract-release.d.ts +6 -6
  4. package/dist/gen-ts/contract-release.js +6 -6
  5. package/dist/gen-ts/data-grant-v2.d.ts +16 -2
  6. package/dist/gen-ts/integration-execute-input-rules.d.ts +230 -0
  7. package/dist/gen-ts/integration-execute-input-rules.js +70 -0
  8. package/dist/gen-ts/integration-execute-request.d.ts +19 -2
  9. package/dist/gen-ts/integration-execute-result.d.ts +49 -0
  10. package/dist/gen-ts/integration-operations.d.ts +56 -0
  11. package/dist/gen-ts/integration-operations.js +72 -0
  12. package/dist/gen-ts/resolved-app-serving.d.ts +4 -0
  13. package/dist/gen-ts/saas-connection.d.ts +34 -3
  14. package/gen-ts/app-integrations-declaration.ts +8 -0
  15. package/gen-ts/contract-release.ts +6 -6
  16. package/gen-ts/data-grant-v2.ts +113 -1
  17. package/gen-ts/integration-execute-input-rules.ts +70 -0
  18. package/gen-ts/integration-execute-request.ts +27 -2
  19. package/gen-ts/integration-execute-result.ts +49 -0
  20. package/gen-ts/integration-operations.ts +72 -0
  21. package/gen-ts/resolved-app-serving.ts +4 -0
  22. package/gen-ts/saas-connection.ts +222 -2
  23. package/package.json +1 -1
  24. package/schema/app-integrations-declaration.schema.json +121 -9
  25. package/schema/data-grant-v2.schema.json +17 -1
  26. package/schema/integration-execute-request.schema.json +458 -7
  27. package/schema/integration-execute-result.schema.json +234 -2
  28. package/schema/resolved-app-serving.schema.json +1 -0
  29. package/schema/saas-connection.schema.json +732 -126
@@ -470,8 +470,8 @@
470
470
  },
471
471
  "documentId": {
472
472
  "type": "string",
473
- "pattern": "^[A-Za-z0-9_-]{10,128}$",
474
- "description": "docs.document.read / docs.document.append / docs.text.replace (0.86.0): the Google Docs document id (the `/document/d/<id>` path segment, or a docs.document.create result's id)."
473
+ "pattern": "^(?:[A-Za-z0-9_-]{10,128}|[0-9]{1,32})$",
474
+ "description": "Google Docs document id or Zoho Books document id; each operation restricts its provider format."
475
475
  },
476
476
  "spreadsheetId": {
477
477
  "type": "string",
@@ -524,7 +524,7 @@
524
524
  "items": {
525
525
  "$ref": "#/definitions/DocsReplacement"
526
526
  },
527
- "description": "docs.text.replace (0.86.0): the find-and-replace pairs applied over the whole document, 1..64, in order (a mail merge: `{{customer}}` → the name)."
527
+ "description": "docs.text.replace (0.86.0): the find-and-replace pairs applied over the whole document, 1..64, in order (a mail merge: `{{customer}}` \u2192 the name)."
528
528
  },
529
529
  "worksheet": {
530
530
  "type": "string",
@@ -571,6 +571,76 @@
571
571
  "maxLength": 100
572
572
  },
573
573
  "description": "sheets.spreadsheet.create (0.86.0): the titles of the sheets the new spreadsheet starts with, 1..20; absent creates the one default sheet."
574
+ },
575
+ "vendorId": {
576
+ "type": "string",
577
+ "pattern": "^[0-9]{1,32}$",
578
+ "maxLength": 32
579
+ },
580
+ "customerId": {
581
+ "type": "string",
582
+ "pattern": "^[0-9]{1,32}$",
583
+ "maxLength": 32
584
+ },
585
+ "purchaseOrderId": {
586
+ "type": "string",
587
+ "pattern": "^[0-9]{1,32}$",
588
+ "maxLength": 32
589
+ },
590
+ "documentNumber": {
591
+ "type": "string",
592
+ "minLength": 1,
593
+ "maxLength": 100
594
+ },
595
+ "documentDate": {
596
+ "type": "string",
597
+ "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
598
+ "maxLength": 10
599
+ },
600
+ "referenceNumber": {
601
+ "type": "string",
602
+ "minLength": 1,
603
+ "maxLength": 100
604
+ },
605
+ "lineItems": {
606
+ "type": "array",
607
+ "minItems": 1,
608
+ "maxItems": 100,
609
+ "items": {
610
+ "type": "object",
611
+ "additionalProperties": false,
612
+ "required": [
613
+ "itemId",
614
+ "quantity",
615
+ "rate"
616
+ ],
617
+ "properties": {
618
+ "itemId": {
619
+ "type": "string",
620
+ "pattern": "^[0-9]{1,32}$",
621
+ "maxLength": 32
622
+ },
623
+ "quantity": {
624
+ "type": "string",
625
+ "pattern": "^[0-9]{1,10}(\\.[0-9]{1,6})?$",
626
+ "maxLength": 17
627
+ },
628
+ "rate": {
629
+ "type": "string",
630
+ "pattern": "^[0-9]{1,10}(\\.[0-9]{1,6})?$",
631
+ "maxLength": 17
632
+ },
633
+ "taxId": {
634
+ "type": "string",
635
+ "pattern": "^[0-9]{1,32}$",
636
+ "maxLength": 32
637
+ },
638
+ "description": {
639
+ "type": "string",
640
+ "maxLength": 2000
641
+ }
642
+ }
643
+ }
574
644
  }
575
645
  }
576
646
  },
@@ -589,7 +659,12 @@
589
659
  "items": {
590
660
  "type": "object",
591
661
  "additionalProperties": {
592
- "type": ["string", "number", "boolean", "null"]
662
+ "type": [
663
+ "string",
664
+ "number",
665
+ "boolean",
666
+ "null"
667
+ ]
593
668
  },
594
669
  "description": "One sample row keyed by column name; each value is a scalar that governance parses by the column's recorded type."
595
670
  },
@@ -2201,7 +2276,14 @@
2201
2276
  },
2202
2277
  "required": [
2203
2278
  "documentId"
2204
- ]
2279
+ ],
2280
+ "properties": {
2281
+ "documentId": {
2282
+ "type": "string",
2283
+ "pattern": "^[A-Za-z0-9_-]{10,128}$",
2284
+ "description": "docs.document.read / docs.document.append / docs.text.replace (0.86.0): the Google Docs document id (the `/document/d/<id>` path segment, or a docs.document.create result's id)."
2285
+ }
2286
+ }
2205
2287
  }
2206
2288
  }
2207
2289
  }
@@ -2264,7 +2346,14 @@
2264
2346
  "required": [
2265
2347
  "documentId",
2266
2348
  "text"
2267
- ]
2349
+ ],
2350
+ "properties": {
2351
+ "documentId": {
2352
+ "type": "string",
2353
+ "pattern": "^[A-Za-z0-9_-]{10,128}$",
2354
+ "description": "docs.document.read / docs.document.append / docs.text.replace (0.86.0): the Google Docs document id (the `/document/d/<id>` path segment, or a docs.document.create result's id)."
2355
+ }
2356
+ }
2268
2357
  }
2269
2358
  }
2270
2359
  }
@@ -2297,7 +2386,14 @@
2297
2386
  "required": [
2298
2387
  "documentId",
2299
2388
  "replacements"
2300
- ]
2389
+ ],
2390
+ "properties": {
2391
+ "documentId": {
2392
+ "type": "string",
2393
+ "pattern": "^[A-Za-z0-9_-]{10,128}$",
2394
+ "description": "docs.document.read / docs.document.append / docs.text.replace (0.86.0): the Google Docs document id (the `/document/d/<id>` path segment, or a docs.document.create result's id)."
2395
+ }
2396
+ }
2301
2397
  }
2302
2398
  }
2303
2399
  }
@@ -3344,6 +3440,280 @@
3344
3440
  }
3345
3441
  }
3346
3442
  }
3443
+ },
3444
+ {
3445
+ "if": {
3446
+ "properties": {
3447
+ "operation": {
3448
+ "const": "zohobooks.contact.list"
3449
+ }
3450
+ }
3451
+ },
3452
+ "then": {
3453
+ "x-read-only": true,
3454
+ "x-primary-identity": "user",
3455
+ "properties": {
3456
+ "mode": false,
3457
+ "input": {
3458
+ "propertyNames": {
3459
+ "enum": [
3460
+ "q",
3461
+ "pageToken"
3462
+ ]
3463
+ }
3464
+ }
3465
+ },
3466
+ "not": {
3467
+ "required": [
3468
+ "idempotencyKey"
3469
+ ]
3470
+ }
3471
+ }
3472
+ },
3473
+ {
3474
+ "if": {
3475
+ "properties": {
3476
+ "operation": {
3477
+ "const": "zohobooks.purchaseorder.list"
3478
+ }
3479
+ }
3480
+ },
3481
+ "then": {
3482
+ "x-read-only": true,
3483
+ "x-primary-identity": "user",
3484
+ "properties": {
3485
+ "mode": false,
3486
+ "input": {
3487
+ "propertyNames": {
3488
+ "enum": [
3489
+ "vendorId",
3490
+ "pageToken"
3491
+ ]
3492
+ },
3493
+ "required": [
3494
+ "vendorId"
3495
+ ]
3496
+ }
3497
+ },
3498
+ "not": {
3499
+ "required": [
3500
+ "idempotencyKey"
3501
+ ]
3502
+ }
3503
+ }
3504
+ },
3505
+ {
3506
+ "if": {
3507
+ "properties": {
3508
+ "operation": {
3509
+ "const": "zohobooks.purchaseorder.read"
3510
+ }
3511
+ }
3512
+ },
3513
+ "then": {
3514
+ "x-read-only": true,
3515
+ "x-primary-identity": "user",
3516
+ "properties": {
3517
+ "mode": false,
3518
+ "input": {
3519
+ "propertyNames": {
3520
+ "enum": [
3521
+ "purchaseOrderId"
3522
+ ]
3523
+ },
3524
+ "required": [
3525
+ "purchaseOrderId"
3526
+ ]
3527
+ }
3528
+ },
3529
+ "not": {
3530
+ "required": [
3531
+ "idempotencyKey"
3532
+ ]
3533
+ }
3534
+ }
3535
+ },
3536
+ {
3537
+ "if": {
3538
+ "properties": {
3539
+ "operation": {
3540
+ "const": "zohobooks.bill.create"
3541
+ }
3542
+ }
3543
+ },
3544
+ "then": {
3545
+ "x-read-only": false,
3546
+ "x-primary-identity": "user",
3547
+ "properties": {
3548
+ "mode": false,
3549
+ "input": {
3550
+ "propertyNames": {
3551
+ "enum": [
3552
+ "vendorId",
3553
+ "documentNumber",
3554
+ "documentDate",
3555
+ "purchaseOrderId",
3556
+ "lineItems"
3557
+ ]
3558
+ },
3559
+ "required": [
3560
+ "vendorId",
3561
+ "documentNumber",
3562
+ "documentDate",
3563
+ "lineItems"
3564
+ ]
3565
+ }
3566
+ },
3567
+ "required": [
3568
+ "idempotencyKey"
3569
+ ]
3570
+ }
3571
+ },
3572
+ {
3573
+ "if": {
3574
+ "properties": {
3575
+ "operation": {
3576
+ "const": "zohobooks.bill.read"
3577
+ }
3578
+ }
3579
+ },
3580
+ "then": {
3581
+ "x-read-only": true,
3582
+ "x-primary-identity": "user",
3583
+ "properties": {
3584
+ "mode": false,
3585
+ "input": {
3586
+ "propertyNames": {
3587
+ "enum": [
3588
+ "documentId"
3589
+ ]
3590
+ },
3591
+ "required": [
3592
+ "documentId"
3593
+ ],
3594
+ "properties": {
3595
+ "documentId": {
3596
+ "pattern": "^[0-9]{1,32}$",
3597
+ "maxLength": 32
3598
+ }
3599
+ }
3600
+ }
3601
+ },
3602
+ "not": {
3603
+ "required": [
3604
+ "idempotencyKey"
3605
+ ]
3606
+ }
3607
+ }
3608
+ },
3609
+ {
3610
+ "if": {
3611
+ "properties": {
3612
+ "operation": {
3613
+ "const": "zohobooks.invoice.create"
3614
+ }
3615
+ }
3616
+ },
3617
+ "then": {
3618
+ "x-read-only": false,
3619
+ "x-primary-identity": "user",
3620
+ "properties": {
3621
+ "mode": false,
3622
+ "input": {
3623
+ "propertyNames": {
3624
+ "enum": [
3625
+ "customerId",
3626
+ "documentNumber",
3627
+ "documentDate",
3628
+ "referenceNumber",
3629
+ "lineItems"
3630
+ ]
3631
+ },
3632
+ "required": [
3633
+ "customerId",
3634
+ "documentDate",
3635
+ "lineItems"
3636
+ ]
3637
+ }
3638
+ },
3639
+ "required": [
3640
+ "idempotencyKey"
3641
+ ]
3642
+ }
3643
+ },
3644
+ {
3645
+ "if": {
3646
+ "properties": {
3647
+ "operation": {
3648
+ "const": "zohobooks.invoice.read"
3649
+ }
3650
+ }
3651
+ },
3652
+ "then": {
3653
+ "x-read-only": true,
3654
+ "x-primary-identity": "user",
3655
+ "properties": {
3656
+ "mode": false,
3657
+ "input": {
3658
+ "propertyNames": {
3659
+ "enum": [
3660
+ "documentId"
3661
+ ]
3662
+ },
3663
+ "required": [
3664
+ "documentId"
3665
+ ],
3666
+ "properties": {
3667
+ "documentId": {
3668
+ "pattern": "^[0-9]{1,32}$",
3669
+ "maxLength": 32
3670
+ }
3671
+ }
3672
+ }
3673
+ },
3674
+ "not": {
3675
+ "required": [
3676
+ "idempotencyKey"
3677
+ ]
3678
+ }
3679
+ }
3680
+ },
3681
+ {
3682
+ "if": {
3683
+ "properties": {
3684
+ "operation": {
3685
+ "const": "zohobooks.invoice.pdf"
3686
+ }
3687
+ }
3688
+ },
3689
+ "then": {
3690
+ "x-read-only": true,
3691
+ "x-primary-identity": "user",
3692
+ "properties": {
3693
+ "mode": false,
3694
+ "input": {
3695
+ "propertyNames": {
3696
+ "enum": [
3697
+ "documentId"
3698
+ ]
3699
+ },
3700
+ "required": [
3701
+ "documentId"
3702
+ ],
3703
+ "properties": {
3704
+ "documentId": {
3705
+ "pattern": "^[0-9]{1,32}$",
3706
+ "maxLength": 32
3707
+ }
3708
+ }
3709
+ }
3710
+ },
3711
+ "not": {
3712
+ "required": [
3713
+ "idempotencyKey"
3714
+ ]
3715
+ }
3716
+ }
3347
3717
  }
3348
3718
  ],
3349
3719
  "definitions": {
@@ -4616,6 +4986,87 @@
4616
4986
  "text": "Thanks, shipped."
4617
4987
  },
4618
4988
  "idempotencyKey": "6f1c2c1e-3a1c-4c3e-9f0e-2b6f7d8a9d15"
4989
+ },
4990
+ {
4991
+ "connection": "company-zohobooks",
4992
+ "operation": "zohobooks.contact.list",
4993
+ "resource": "organization",
4994
+ "input": {}
4995
+ },
4996
+ {
4997
+ "connection": "company-zohobooks",
4998
+ "operation": "zohobooks.purchaseorder.list",
4999
+ "resource": "organization",
5000
+ "input": {
5001
+ "vendorId": "123"
5002
+ }
5003
+ },
5004
+ {
5005
+ "connection": "company-zohobooks",
5006
+ "operation": "zohobooks.purchaseorder.read",
5007
+ "resource": "organization",
5008
+ "input": {
5009
+ "purchaseOrderId": "456"
5010
+ }
5011
+ },
5012
+ {
5013
+ "connection": "company-zohobooks",
5014
+ "operation": "zohobooks.bill.create",
5015
+ "resource": "organization",
5016
+ "input": {
5017
+ "vendorId": "123",
5018
+ "documentNumber": "TEST-BILL-001",
5019
+ "documentDate": "2026-10-23",
5020
+ "lineItems": [
5021
+ {
5022
+ "itemId": "789",
5023
+ "quantity": "10",
5024
+ "rate": "100"
5025
+ }
5026
+ ]
5027
+ },
5028
+ "idempotencyKey": "12345678-1234-1234-1234-123456789012"
5029
+ },
5030
+ {
5031
+ "connection": "company-zohobooks",
5032
+ "operation": "zohobooks.bill.read",
5033
+ "resource": "organization",
5034
+ "input": {
5035
+ "documentId": "456"
5036
+ }
5037
+ },
5038
+ {
5039
+ "connection": "company-zohobooks",
5040
+ "operation": "zohobooks.invoice.create",
5041
+ "resource": "organization",
5042
+ "input": {
5043
+ "customerId": "123",
5044
+ "documentDate": "2026-10-23",
5045
+ "lineItems": [
5046
+ {
5047
+ "itemId": "789",
5048
+ "quantity": "10",
5049
+ "rate": "100"
5050
+ }
5051
+ ]
5052
+ },
5053
+ "idempotencyKey": "12345678-1234-1234-1234-123456789012"
5054
+ },
5055
+ {
5056
+ "connection": "company-zohobooks",
5057
+ "operation": "zohobooks.invoice.read",
5058
+ "resource": "organization",
5059
+ "input": {
5060
+ "documentId": "456"
5061
+ }
5062
+ },
5063
+ {
5064
+ "connection": "company-zohobooks",
5065
+ "operation": "zohobooks.invoice.pdf",
5066
+ "resource": "organization",
5067
+ "input": {
5068
+ "documentId": "456"
5069
+ }
4619
5070
  }
4620
5071
  ]
4621
5072
  }