@fourier-labs/harbour-contracts 0.74.0 → 0.76.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/README.md +3 -3
- package/contract-release.json +22 -22
- package/dist/gen-ts/app-integrations-declaration.d.ts +15 -1
- package/dist/gen-ts/contract-release.d.ts +6 -6
- package/dist/gen-ts/contract-release.js +6 -6
- package/dist/gen-ts/data-grant-v2.d.ts +5 -5
- package/dist/gen-ts/integration-execute-input-rules.d.ts +214 -0
- package/dist/gen-ts/integration-execute-input-rules.js +85 -0
- package/dist/gen-ts/integration-execute-request.d.ts +53 -6
- package/dist/gen-ts/integration-execute-result.d.ts +161 -1
- package/dist/gen-ts/integration-operations.d.ts +77 -0
- package/dist/gen-ts/integration-operations.js +99 -0
- package/dist/gen-ts/saas-connection.d.ts +22 -8
- package/gen-ts/app-integrations-declaration.ts +15 -1
- package/gen-ts/contract-release.ts +6 -6
- package/gen-ts/data-grant-v2.ts +15 -4
- package/gen-ts/integration-execute-input-rules.ts +86 -1
- package/gen-ts/integration-execute-request.ts +63 -5
- package/gen-ts/integration-execute-result.ts +161 -1
- package/gen-ts/integration-operations.ts +99 -0
- package/gen-ts/saas-connection.ts +32 -7
- package/package.json +1 -1
- package/schema/app-integrations-declaration.schema.json +233 -2
- package/schema/data-grant-v2.schema.json +4 -4
- package/schema/integration-execute-request.schema.json +529 -4
- package/schema/integration-execute-result.schema.json +542 -1
- package/schema/saas-connection.schema.json +35 -7
package/README.md
CHANGED
|
@@ -38,9 +38,9 @@ exist here first.
|
|
|
38
38
|
| `binding-classification-subject.schema.json` | Complete value-free binding-name classification before version allocation | AI governance §5.7 / SEC-UP-01 |
|
|
39
39
|
| `sanitized-binding-evidence.schema.json` | Exact-version sanitized runtime-binding allocation receipt | AI governance §5.7 / SEC-UP-02 |
|
|
40
40
|
| `ai-pricing-revision`, `ai-metering-policy`, `ai-budget-ledger-event`, `ai-trace-event-v2` | Additive metering v2 records, including media dimensions and P5 trace attribution; v1 records remain readable | AI governance §9 |
|
|
41
|
-
| `app-integrations-declaration.schema.json` | Committed `.isomorph/integrations.json` (`isomorph.app-integrations/2.0`): closed
|
|
42
|
-
| `integration-execute-request`, `integration-execute-result`, `integration-connect-result`, `integration-error-details` | App SDK integrations wire contract on `/_harbour/integrations/*`: per-operation input bounds (a warehouse read filters, groups, aggregates and sorts in the warehouse and says when it was `truncated` — ADR 0017; Slack and Gmail reads page, posts thread, mail carries HTML and attachments — ADR 0018; a development warehouse read may carry the app's `sampleRows` and the result says `sample` — ADR 0021), the per-operation result shapes, consent states and the closed `details.code` reason set | Dev kit §4, §8 |
|
|
43
|
-
| `saas-connection.schema.json`, `data-grant-v2.schema.json` | Tenant SaaS connection record (one installation and channel map per tenant and provider; IT's optional `oauthClient`, `userModeApproval`, `directMessages`, `externalRecipients` — ADR 0018) and the additive `harbour.data-grant/2.0` grant record with structured resources and provisioning lease/cleanup (status machine generated; legacy `data-grant` untouched) | Dev kit §5 |
|
|
41
|
+
| `app-integrations-declaration.schema.json` | Committed `.isomorph/integrations.json` (`isomorph.app-integrations/2.0`): closed twenty-four-operation set (Slack read/post/update/delete/DM/lookup, Gmail list/thread/read/send/attachment — ADR 0018; Basecamp project/to-do list/to-do/message/comment/people lists, to-do create and complete, message, comment and Campfire posts — ADR 0022; warehouse view read; service request) with fixed or declared identity modes; owns the shared operation/identity/environment enums | Dev kit §4 |
|
|
42
|
+
| `integration-execute-request`, `integration-execute-result`, `integration-connect-result`, `integration-error-details` | App SDK integrations wire contract on `/_harbour/integrations/*`: per-operation input bounds (a warehouse read filters, groups, aggregates and sorts in the warehouse and says when it was `truncated` — ADR 0017; Slack and Gmail reads page, posts thread, mail carries HTML and attachments — ADR 0018; a development warehouse read may carry the app's `sampleRows` and the result says `sample` — ADR 0021; Basecamp lists page by `pageToken`, ids are digit strings, writes answer `{id, appUrl}` — ADR 0022), the per-operation result shapes, consent states and the closed `details.code` reason set | Dev kit §4, §8 |
|
|
43
|
+
| `saas-connection.schema.json`, `data-grant-v2.schema.json` | Tenant SaaS connection record (one installation and channel map per tenant and provider; IT's optional `oauthClient`, `userModeApproval`, `directMessages`, `externalRecipients` — ADR 0018; a Basecamp connection's pinned `account` and project ids in `channels` — ADR 0022) and the additive `harbour.data-grant/2.0` grant record with structured resources and provisioning lease/cleanup (status machine generated; legacy `data-grant` untouched) | Dev kit §5 |
|
|
44
44
|
| `kit-bundle-manifest.schema.json`, `kit-lock.schema.json` | Published kit bundle identity (SDK tarball digest plus optional `sdk.version` and https `sdk.url` download location) and the committed `.isomorph/kit.lock.json` the CodeBuild SDK-vendoring gate compares against | Dev kit §3 |
|
|
45
45
|
| `deploy-response.schema.json` | 202 Accepted body for `POST /v1/tenants/{tenant}/apps/{app}/deployments`, returned only after the authoritative QUEUED version exists and its SQS message is accepted | — |
|
|
46
46
|
| `deployment-source.schema.json` | Credential-free GitHub source in the `DeployRequest` body; credentials are resolved internally by MaterializeSource | — |
|
package/contract-release.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema": "harbour.contract-release/1.0",
|
|
3
|
-
"repositoryVersion": "0.
|
|
4
|
-
"publishVersion": "0.
|
|
5
|
-
"publishTag": "v0.
|
|
6
|
-
"schemasDigest": "sha256:
|
|
3
|
+
"repositoryVersion": "0.76.0.0",
|
|
4
|
+
"publishVersion": "0.76.0",
|
|
5
|
+
"publishTag": "v0.76.0",
|
|
6
|
+
"schemasDigest": "sha256:20ed0df1c63b7aec22d74c3582b1e6c5d36a974005bfe656f03f8f746b371fa7",
|
|
7
7
|
"aiFixturesDigest": "sha256:edac31c92e146ca1c40130f2fb5649db82e24b8cd1ac758153b90612052fddb6",
|
|
8
|
-
"generatedGoDigest": "sha256:
|
|
9
|
-
"generatedTypeScriptDigest": "sha256:
|
|
8
|
+
"generatedGoDigest": "sha256:db5f27b48a5e6b3706ac0173ebe37ec26deed375be46646b592da35a3aebcce4",
|
|
9
|
+
"generatedTypeScriptDigest": "sha256:9467bd533c557df0b263789b8585f0201abd9f536506ec28400e245be18dae42",
|
|
10
10
|
"generatedExclusions": {
|
|
11
11
|
"gen-go/contract_release.go": "contains the generated aggregate digests (self-reference)",
|
|
12
12
|
"gen-ts/contract-release.ts": "contains the generated aggregate digests (self-reference)"
|
|
@@ -31,12 +31,12 @@
|
|
|
31
31
|
"schema/ai-transform-result.schema.json": "sha256:244e380a36957ab2dcb526ea22aaecb56b53664ce1fda6934d0021c084c99133",
|
|
32
32
|
"schema/ai-verification-evidence.schema.json": "sha256:bdbc762df256d2a8dd0bdda60d4d13915ce40034cd756af9515871d145f10ad9",
|
|
33
33
|
"schema/api-error-response.schema.json": "sha256:3d43d5bdf0b59c944e20509d832e6776c3ecdba4d6c245a9118bbe52062a8304",
|
|
34
|
-
"schema/app-integrations-declaration.schema.json": "sha256:
|
|
34
|
+
"schema/app-integrations-declaration.schema.json": "sha256:83d3e2bd38fbdb2e4a0da2f222405faa28c4c5b2e7d639a377f0cf7a631318ba",
|
|
35
35
|
"schema/artifact-contract.schema.json": "sha256:8047b461a1c6d07bbe867a259c57bdf5cc0fdf282cf842ec7b683a9e93713b10",
|
|
36
36
|
"schema/binding-classification-subject.schema.json": "sha256:a8825ce652e7e00a18759c4249bd5bcd0cae552dd58440513f867e87f685133c",
|
|
37
37
|
"schema/builder-input-proposal.schema.json": "sha256:fe85cffa6d76b1e1effe1f5d75525f8fe0e1eaa3be4a304e491aa23ad72c0e72",
|
|
38
38
|
"schema/data-dependency.schema.json": "sha256:b4cc2b2484e982cfed64c0f56b8f1e9d1363c71854cd71f845b24fbe7d85c971",
|
|
39
|
-
"schema/data-grant-v2.schema.json": "sha256:
|
|
39
|
+
"schema/data-grant-v2.schema.json": "sha256:b843703ff1a8091c726fee3a5ce07e06dfed684326318163ba7dd070273aada3",
|
|
40
40
|
"schema/data-grant.schema.json": "sha256:e640553831ecc1c01cc9a37fe388b84d0ffeaa0d0050e63712b48f65fa437c8a",
|
|
41
41
|
"schema/data-source.schema.json": "sha256:46ef4ace5fce612fce055813bf4f99956423b46c929993fbbc5dfec497087bad",
|
|
42
42
|
"schema/deploy-request.schema.json": "sha256:32531e21983cdfeec511f8b4cddd4dad6530cd90e4e9fe147225d78d138b6198",
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
"schema/error-envelope.schema.json": "sha256:75dccda7dd16fdf8435deda53fc7dbcdc109b65114617a17f11763010c656f90",
|
|
55
55
|
"schema/integration-connect-result.schema.json": "sha256:3f254b67ef739dc1fa395bdc8c4dc93359b16d481dba2a2d777aa5b6f34b7af8",
|
|
56
56
|
"schema/integration-error-details.schema.json": "sha256:5a290584b1542b2b8cdd4966869126180ce29c1f0dd250dca7fb68c05e76b8e9",
|
|
57
|
-
"schema/integration-execute-request.schema.json": "sha256:
|
|
58
|
-
"schema/integration-execute-result.schema.json": "sha256:
|
|
57
|
+
"schema/integration-execute-request.schema.json": "sha256:01eaac5d1a7272eec2aed3547a08313ac9ed314ec8996a39c2c7ee28c90f5145",
|
|
58
|
+
"schema/integration-execute-result.schema.json": "sha256:38afef6aebc81e875c7a246f01de2d5a04392bda455c17da08146d953c4ceb4b",
|
|
59
59
|
"schema/internal-configuration-request.schema.json": "sha256:229d44a3458f68dceddfba802e5c1adcd95523a45af29b93b972706b88461a7d",
|
|
60
60
|
"schema/kit-bundle-manifest.schema.json": "sha256:4a9fcdd52ba0d55718ef4dbdab112b145ef90471d9356d4d3fb41e50fe9e400d",
|
|
61
61
|
"schema/kit-lock.schema.json": "sha256:a48154d9471e49a893d928f7b0e1e0bc77708a4a7edce4fdf14073203e0e8987",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"schema/promotion-request.schema.json": "sha256:00e96dfd8ddbdba88ea222941d43f3609ff6c815a79e34f6705cab458101c969",
|
|
64
64
|
"schema/promotion-response.schema.json": "sha256:4129712d2e29d6ef21d93d4bd0bacfd60ada3f2ee0ade852824e64346b817634",
|
|
65
65
|
"schema/resolved-app-serving.schema.json": "sha256:260e30ca16831ddd96b15f44eadc7daa2a5f87a0025588bd6318b236f349ec6b",
|
|
66
|
-
"schema/saas-connection.schema.json": "sha256:
|
|
66
|
+
"schema/saas-connection.schema.json": "sha256:695d075f0237682f26c9a4005ee165c871d0327edea9675858d3fd6b53badfb0",
|
|
67
67
|
"schema/sanitized-binding-evidence.schema.json": "sha256:1191ab88e2764df927e5f17837674cebebe068d480da2b2fdb390e589f96b51f",
|
|
68
68
|
"schema/secret-reference.schema.json": "sha256:db4e3c2c6a2dbd72d7ea0f9c91cb3b2343a7e67b601996c6818b2ef08e440895",
|
|
69
69
|
"schema/security-scan-input-v2.schema.json": "sha256:0d418342078c9b5046ea6f4bef3c2c57539285dfee99cc0850d4f0d03739ee13",
|
|
@@ -109,11 +109,11 @@
|
|
|
109
109
|
"gen-go/contracts_test.go": "sha256:56376287cb1548be1b35ab4c65d6f0b558c5d34885f7a47cb3d9e8d786607bf5",
|
|
110
110
|
"gen-go/doc.go": "sha256:316d610ce568597a2ce6f38e9782e34fa5920f6f51ab0866e6d061b8a41cd822",
|
|
111
111
|
"gen-go/error_category.go": "sha256:b2ddea22dcfa030f1a45e721e635485b0bd816cf1f38e7654628a653f5ed4583",
|
|
112
|
-
"gen-go/integration_execute_input_rules.go": "sha256:
|
|
113
|
-
"gen-go/integration_execute_input_rules_test.go": "sha256:
|
|
114
|
-
"gen-go/integration_operations.go": "sha256:
|
|
112
|
+
"gen-go/integration_execute_input_rules.go": "sha256:814ff2c29672565b0d1a2092e3b2c564a902f2627411860c94251ff7dedcb152",
|
|
113
|
+
"gen-go/integration_execute_input_rules_test.go": "sha256:607de6367fff4ab8cdfba2c68ed0adedd26f0d56fecc409b953d8d5acb885b58",
|
|
114
|
+
"gen-go/integration_operations.go": "sha256:05824e16c898c91952a374929082dd06e80ff3a271e3dfeff49beba7e459bf20",
|
|
115
115
|
"gen-go/schema_documents.go": "sha256:c19c0d540f602ee997a84b90e20702d9bc63ed7d27aec267e76c04655fc182e0",
|
|
116
|
-
"gen-go/types.go": "sha256:
|
|
116
|
+
"gen-go/types.go": "sha256:d8bfe22533a1c3bad12b868068d43397dd2f1a9008521c132f13b3d4b8ab5dd4",
|
|
117
117
|
"gen-go/version_state.go": "sha256:4ef8abb126414c0025cf2c59bc9c79a74ef4a2ff89e8f316cbf05acc872371c1"
|
|
118
118
|
},
|
|
119
119
|
"generatedTypeScript": {
|
|
@@ -138,13 +138,13 @@
|
|
|
138
138
|
"gen-ts/ai-transform-result.ts": "sha256:208c66b2aeb425c0cbcc18b7191f6e8989443f2b2c1690648e0e06cc1448ce25",
|
|
139
139
|
"gen-ts/ai-verification-evidence.ts": "sha256:979439d77f8b47631d1eb3b6c3c54ea6fec41089d2a51dc815fd370b1c4917fc",
|
|
140
140
|
"gen-ts/api-error-response.ts": "sha256:0fd73be282e7a5d72d6c343a4e64d09c232556b16161167f0cffd6278ed7e3d3",
|
|
141
|
-
"gen-ts/app-integrations-declaration.ts": "sha256:
|
|
141
|
+
"gen-ts/app-integrations-declaration.ts": "sha256:2e2038c9b0279154d91e94cae23fad7e1ce7dad01293651cc5a121cacfea755b",
|
|
142
142
|
"gen-ts/artifact-contract.ts": "sha256:4a6dc6d2caaeed4bb2066cc8a333e6e09e5a0d4745e0b1038293d54ab9403aeb",
|
|
143
143
|
"gen-ts/binding-classification-digest-helper.ts": "sha256:40fc7d85b4c3f3ffc5caf7d7950c62d013c83ee42058c7453b2100d95817f167",
|
|
144
144
|
"gen-ts/binding-classification-subject.ts": "sha256:c409a3fd7b942b50419632c51d9a79474fb30d6374bdc79c0e25c73618e800c3",
|
|
145
145
|
"gen-ts/builder-input-proposal.ts": "sha256:b0108c3787873d3cf1a39f00967379418a6766275d3474cfa55f5a9d93ead174",
|
|
146
146
|
"gen-ts/data-dependency.ts": "sha256:259f19e2759395d72ead90b8ed74a6dcef0c2641124f4f182823138cfd19bedf",
|
|
147
|
-
"gen-ts/data-grant-v2.ts": "sha256:
|
|
147
|
+
"gen-ts/data-grant-v2.ts": "sha256:311bee6359ab57a01d8652c432c3616d2c441e708a29f079d83432cf83e2a940",
|
|
148
148
|
"gen-ts/data-grant.ts": "sha256:2358579d8aa1e57b01a6f2b0eacce5531e7f21ef226404c9809925365e0d6155",
|
|
149
149
|
"gen-ts/data-source.ts": "sha256:f30d4c14c15afbb9530d30af9235844198765984ce1579fa25961d7f07bcfb1f",
|
|
150
150
|
"gen-ts/deploy-request.ts": "sha256:0214faa8be6680f0bfc117d5ce67c1a59fcc18bd0ea4bc840e03e7d051fa9ab6",
|
|
@@ -164,10 +164,10 @@
|
|
|
164
164
|
"gen-ts/index.ts": "sha256:57927b9fcddf506785671bbd44cced9f729373e4dd3e3480bc6c37fd05fb59e8",
|
|
165
165
|
"gen-ts/integration-connect-result.ts": "sha256:4b10f169b6e1af364e9b418de21caa9fadbfb77b43cbff77d741cfae0b52180c",
|
|
166
166
|
"gen-ts/integration-error-details.ts": "sha256:e73cb5942373ef88b2d8e03a1de56d5a69e71069ecd14e68396f7edba1f60780",
|
|
167
|
-
"gen-ts/integration-execute-input-rules.ts": "sha256:
|
|
168
|
-
"gen-ts/integration-execute-request.ts": "sha256:
|
|
169
|
-
"gen-ts/integration-execute-result.ts": "sha256:
|
|
170
|
-
"gen-ts/integration-operations.ts": "sha256:
|
|
167
|
+
"gen-ts/integration-execute-input-rules.ts": "sha256:7480d9a6c27a432ceab65eeee26873b0986f9f6ff7415cf72a4563972b649c30",
|
|
168
|
+
"gen-ts/integration-execute-request.ts": "sha256:09e9e58918c027b318350b9d4b03c8ba1c76dc32f756d5c8627c57f190606ed6",
|
|
169
|
+
"gen-ts/integration-execute-result.ts": "sha256:45cd672f02b604905b3e8b4e16f2a10b3ff06fe05c2bdd01d9eba53452d156c5",
|
|
170
|
+
"gen-ts/integration-operations.ts": "sha256:460b0f44d68488c7f4cb84c564b87b4a011aa2931efb606a778d239a0bd011ab",
|
|
171
171
|
"gen-ts/internal-configuration-request.ts": "sha256:7032437797473fa1c581d134adef2f3d4b4f4132f482cd17743e9d47097886bc",
|
|
172
172
|
"gen-ts/kit-bundle-manifest.ts": "sha256:2777a268aef8787b81e71d154a7d05f6f5ded09d66f378211ff5493ddb885171",
|
|
173
173
|
"gen-ts/kit-lock.ts": "sha256:00ceeb97e9b7d0187bec00728f5099fd34e775e9cc44c85c4714f7a3a4118ef6",
|
|
@@ -175,7 +175,7 @@
|
|
|
175
175
|
"gen-ts/promotion-request.ts": "sha256:9db88cef67f777a16bac628039ec3f582acb9e8cfff6fb592b30d0a0e55abc68",
|
|
176
176
|
"gen-ts/promotion-response.ts": "sha256:f1c9cafac96faeb02a443a31786f67714e818f38d90108e7af41958396524d6f",
|
|
177
177
|
"gen-ts/resolved-app-serving.ts": "sha256:6131a6cc5f784f0d101081d2ce1b96b76b2f904b2c5e7b2809f9ede5878ada1f",
|
|
178
|
-
"gen-ts/saas-connection.ts": "sha256:
|
|
178
|
+
"gen-ts/saas-connection.ts": "sha256:d65689c51add42233744b037da88dd3110449e2d3fa8afbae7bd21bee6c4f16e",
|
|
179
179
|
"gen-ts/sanitized-binding-digest-helper.ts": "sha256:c47d7fdc20500e2e72c23fe39ecdd610fc397c47fcba51335ebec3c380fe6872",
|
|
180
180
|
"gen-ts/sanitized-binding-evidence.ts": "sha256:f3fb7b1d7d2e0929eb0ea981eaf32db3104010647185f6ae59f67167d42538a9",
|
|
181
181
|
"gen-ts/secret-reference.ts": "sha256:731fbcde7315cb4128d5b01bdbe6e6f248f13c7ad8dea04a3a4e927ac4890198",
|
|
@@ -13,6 +13,17 @@ export type DeclaredConnection = {
|
|
|
13
13
|
'gmail.message.read'?: UserModeChannelOperation;
|
|
14
14
|
'gmail.message.send'?: UserModeChannelOperation;
|
|
15
15
|
'gmail.attachment.read'?: UserModeChannelOperation;
|
|
16
|
+
'basecamp.project.list'?: UserModeChannelOperation;
|
|
17
|
+
'basecamp.todolist.list'?: UserModeChannelOperation;
|
|
18
|
+
'basecamp.todo.list'?: UserModeChannelOperation;
|
|
19
|
+
'basecamp.todo.create'?: UserModeChannelOperation;
|
|
20
|
+
'basecamp.todo.complete'?: UserModeChannelOperation;
|
|
21
|
+
'basecamp.message.list'?: UserModeChannelOperation;
|
|
22
|
+
'basecamp.message.post'?: UserModeChannelOperation;
|
|
23
|
+
'basecamp.comment.list'?: UserModeChannelOperation;
|
|
24
|
+
'basecamp.comment.post'?: UserModeChannelOperation;
|
|
25
|
+
'basecamp.campfire.post'?: UserModeChannelOperation;
|
|
26
|
+
'basecamp.people.list'?: UserModeChannelOperation;
|
|
16
27
|
'warehouse.view.read'?: AppModeViewOperation;
|
|
17
28
|
'service.request'?: ServiceOperation;
|
|
18
29
|
};
|
|
@@ -36,7 +47,7 @@ export type ResourceNames = IntegrationAlias[];
|
|
|
36
47
|
*/
|
|
37
48
|
export type ColumnName = string;
|
|
38
49
|
/**
|
|
39
|
-
* Committed `.isomorph/integrations.json`: the app's declared use of tenant-wide integration connections. Keys are logical connection aliases (the governance sourceId); resources are logical names (Slack channel alias, warehouse view name), never IDs, tokens or URLs. The operation set is closed (
|
|
50
|
+
* Committed `.isomorph/integrations.json`: the app's declared use of tenant-wide integration connections. Keys are logical connection aliases (the governance sourceId); resources are logical names (Slack channel alias, warehouse view name), never IDs, tokens or URLs. The operation set is closed (twenty-four operations since 0.76.0, ADR 0018 and ADR 0022). Each operation carries a fixed identity mode — slack.dm.send=app, slack.user.lookup=app, every gmail.* operation=user, every basecamp.* operation=user, warehouse.view.read=app, service.request=app — except the declared-mode Slack operations (slack.message.post, and since 0.71.0 slack.channel.history, slack.message.update and slack.message.delete), whose mode the app DECLARES: `app` acts as the company's Slack app (the one audited bot identity; a post goes out under the IT-approved per-app display name when the connection declares `presentation`), `user` acts as the signed-in person after their own consent (reads what they can read, edits what they wrote). The declared mode is the one the app requests access for; an app may hold approved grants for both modes after two requests, and each declared-mode call names which approved mode it runs under (`mode` on the execute request, 0.55.0) — a mode IT did not approve is refused, never swapped for the other. A `saas` connection may declare only the Slack, Gmail and Basecamp operations and a `database` connection only warehouse.view.read; `presentation` is a `saas` connection's optional per-app display name and icon for app-mode Slack posts, shown to IT at approval time and applied only from the approved grant. Gmail is user-mode only (reads, one send); its single resource is the fixed `inbox` alias. Basecamp (0.76.0, ADR 0022) is user-mode only too: basecamp.project.list runs on the fixed `account` alias (the company's pinned Basecamp account) and every other basecamp.* operation on a project alias IT mapped in the connection's `channels` map, so Basecamp itself refuses an id outside that project. slack.dm.send and slack.user.lookup address people by email rather than a channel, so their single resource is the fixed `workspace` alias (the connection's installed workspace), the way Gmail's is `inbox`. This file also owns the shared IntegrationOperation / IntegrationIdentityMode / IntegrationEnvironment / IntegrationConnectionKind / IntegrationPresentation definitions referenced by the other integration schemas.
|
|
40
51
|
*/
|
|
41
52
|
export interface AppIntegrationsDeclaration {
|
|
42
53
|
schema: 'isomorph.app-integrations/2.0';
|
|
@@ -71,6 +82,9 @@ export interface AppModeChannelOperation {
|
|
|
71
82
|
identity: 'app';
|
|
72
83
|
resources: ResourceNames;
|
|
73
84
|
}
|
|
85
|
+
/**
|
|
86
|
+
* Every gmail.* operation (resource: the fixed `inbox` alias) and, since 0.76.0, every basecamp.* operation (resource: a project alias from the connection's `channels` map, or the fixed `account` alias for basecamp.project.list): user mode only — the app acts as the signed-in person after their own consent.
|
|
87
|
+
*/
|
|
74
88
|
export interface UserModeChannelOperation {
|
|
75
89
|
identity: 'user';
|
|
76
90
|
resources: ResourceNames;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export declare const ContractRepositoryVersion: "0.
|
|
2
|
-
export declare const ContractPublishVersion: "0.
|
|
3
|
-
export declare const ContractPublishTag: "v0.
|
|
4
|
-
export declare const ContractSchemasDigest: "sha256:
|
|
1
|
+
export declare const ContractRepositoryVersion: "0.76.0.0";
|
|
2
|
+
export declare const ContractPublishVersion: "0.76.0";
|
|
3
|
+
export declare const ContractPublishTag: "v0.76.0";
|
|
4
|
+
export declare const ContractSchemasDigest: "sha256:20ed0df1c63b7aec22d74c3582b1e6c5d36a974005bfe656f03f8f746b371fa7";
|
|
5
5
|
export declare const ContractAiFixturesDigest: "sha256:edac31c92e146ca1c40130f2fb5649db82e24b8cd1ac758153b90612052fddb6";
|
|
6
|
-
export declare const ContractGeneratedGoDigest: "sha256:
|
|
7
|
-
export declare const ContractGeneratedTypeScriptDigest: "sha256:
|
|
6
|
+
export declare const ContractGeneratedGoDigest: "sha256:db5f27b48a5e6b3706ac0173ebe37ec26deed375be46646b592da35a3aebcce4";
|
|
7
|
+
export declare const ContractGeneratedTypeScriptDigest: "sha256:9467bd533c557df0b263789b8585f0201abd9f536506ec28400e245be18dae42";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
// Code generated by tools/gen/gen.mjs from schema/*.json. DO NOT EDIT.
|
|
3
|
-
export const ContractRepositoryVersion = "0.
|
|
4
|
-
export const ContractPublishVersion = "0.
|
|
5
|
-
export const ContractPublishTag = "v0.
|
|
6
|
-
export const ContractSchemasDigest = "sha256:
|
|
3
|
+
export const ContractRepositoryVersion = "0.76.0.0";
|
|
4
|
+
export const ContractPublishVersion = "0.76.0";
|
|
5
|
+
export const ContractPublishTag = "v0.76.0";
|
|
6
|
+
export const ContractSchemasDigest = "sha256:20ed0df1c63b7aec22d74c3582b1e6c5d36a974005bfe656f03f8f746b371fa7";
|
|
7
7
|
export const ContractAiFixturesDigest = "sha256:edac31c92e146ca1c40130f2fb5649db82e24b8cd1ac758153b90612052fddb6";
|
|
8
|
-
export const ContractGeneratedGoDigest = "sha256:
|
|
9
|
-
export const ContractGeneratedTypeScriptDigest = "sha256:
|
|
8
|
+
export const ContractGeneratedGoDigest = "sha256:db5f27b48a5e6b3706ac0173ebe37ec26deed375be46646b592da35a3aebcce4";
|
|
9
|
+
export const ContractGeneratedTypeScriptDigest = "sha256:9467bd533c557df0b263789b8585f0201abd9f536506ec28400e245be18dae42";
|
|
@@ -8,7 +8,7 @@ export type DataGrantV2Status = 'REQUESTED' | 'GRANTED' | 'DENIED' | 'REVOKED';
|
|
|
8
8
|
export type DataGrantV2ProvisioningStatus = 'NONE' | 'PENDING' | 'FAILED' | 'DONE';
|
|
9
9
|
export type DataGrantV2CleanupStatus = 'PENDING' | 'FAILED' | 'DONE';
|
|
10
10
|
/**
|
|
11
|
-
* An app's integration grant for one connection, environment and identity mode (control table sk APP#<appId>#IGRANT#<environment>#<sourceId>#<mode>; grantId = base64url(JSON ["v2",appId,environment,sourceId,mode])). Additive to the legacy DataGrant (data-grant.schema.json), which is never consulted by v2 paths. A fresh REQUESTED record carries empty `operations`/`resources` until the attached request is approved; approved resources are structured `{name, columns?}` entries (a Slack channel alias, the fixed Gmail `inbox` alias, or a warehouse view alias with its approved columns). Expiry is enforced from UTC time on every call and SDK calls never extend it; `expiredAt` is stamped by the recovery sweep afterwards. Status edges live in x-transitions; DENIED and REVOKED are terminal (a regrant after revocation is a new REQUESTED record once cleanup is DONE). Database grants add credentialRef/mintedPrincipal; both hold references only. An app-mode Slack grant may carry `presentation` (0.53.0): the IT-approved display name and icon the app's posts go out under, copied from the approved request and read by every post — never from the call. `identityMode` and `installation` are the deprecated 0.45.0 spellings: the record carries `mode`, and a SaaS grant runs on the connection's single installation.
|
|
11
|
+
* An app's integration grant for one connection, environment and identity mode (control table sk APP#<appId>#IGRANT#<environment>#<sourceId>#<mode>; grantId = base64url(JSON ["v2",appId,environment,sourceId,mode])). Additive to the legacy DataGrant (data-grant.schema.json), which is never consulted by v2 paths. A fresh REQUESTED record carries empty `operations`/`resources` until the attached request is approved; approved resources are structured `{name, columns?}` entries (a Slack channel alias, the fixed Gmail `inbox` alias, a Basecamp project alias or the fixed Basecamp `account` alias, or a warehouse view alias with its approved columns). Expiry is enforced from UTC time on every call and SDK calls never extend it; `expiredAt` is stamped by the recovery sweep afterwards. Status edges live in x-transitions; DENIED and REVOKED are terminal (a regrant after revocation is a new REQUESTED record once cleanup is DONE). Database grants add credentialRef/mintedPrincipal; both hold references only. An app-mode Slack grant may carry `presentation` (0.53.0): the IT-approved display name and icon the app's posts go out under, copied from the approved request and read by every post — never from the call. `identityMode` and `installation` are the deprecated 0.45.0 spellings: the record carries `mode`, and a SaaS grant runs on the connection's single installation.
|
|
12
12
|
*/
|
|
13
13
|
export interface DataGrantV2 {
|
|
14
14
|
schema: 'harbour.data-grant/2.0';
|
|
@@ -29,11 +29,11 @@ export interface DataGrantV2 {
|
|
|
29
29
|
kind: 'saas' | 'database' | 'service';
|
|
30
30
|
status: DataGrantV2Status;
|
|
31
31
|
/**
|
|
32
|
-
* Approved operations; each must match this grant's mode. Empty until the first approval. At most the
|
|
32
|
+
* Approved operations; each must match this grant's mode. Empty until the first approval. At most the twenty-two SaaS operations (0.76.0: eleven Slack and Gmail, eleven Basecamp); a database grant holds one.
|
|
33
33
|
*
|
|
34
|
-
* @maxItems
|
|
34
|
+
* @maxItems 22
|
|
35
35
|
*/
|
|
36
|
-
operations: ('slack.channel.history' | 'slack.message.post' | 'slack.message.update' | 'slack.message.delete' | 'slack.dm.send' | 'slack.user.lookup' | 'gmail.thread.list' | 'gmail.thread.read' | 'gmail.message.read' | 'gmail.message.send' | 'gmail.attachment.read' | 'warehouse.view.read' | 'service.request')[];
|
|
36
|
+
operations: ('slack.channel.history' | 'slack.message.post' | 'slack.message.update' | 'slack.message.delete' | 'slack.dm.send' | 'slack.user.lookup' | 'gmail.thread.list' | 'gmail.thread.read' | 'gmail.message.read' | 'gmail.message.send' | 'gmail.attachment.read' | 'basecamp.project.list' | 'basecamp.todolist.list' | 'basecamp.todo.list' | 'basecamp.todo.create' | 'basecamp.todo.complete' | 'basecamp.message.list' | 'basecamp.message.post' | 'basecamp.comment.list' | 'basecamp.comment.post' | 'basecamp.campfire.post' | 'basecamp.people.list' | 'warehouse.view.read' | 'service.request')[];
|
|
37
37
|
/**
|
|
38
38
|
* Approved logical resources. Never inherited by wildcard. Empty until the first approval.
|
|
39
39
|
*
|
|
@@ -82,7 +82,7 @@ export interface DataGrantV2 {
|
|
|
82
82
|
installation?: string;
|
|
83
83
|
}
|
|
84
84
|
/**
|
|
85
|
-
* One approved logical resource: a channel alias, the fixed Gmail `inbox` alias, or a warehouse view alias with the approved columns.
|
|
85
|
+
* One approved logical resource: a Slack channel alias, the fixed Gmail `inbox` alias, a Basecamp project alias or the fixed Basecamp `account` alias (0.76.0), or a warehouse view alias with the approved columns.
|
|
86
86
|
*/
|
|
87
87
|
export interface IntegrationResource {
|
|
88
88
|
/**
|
|
@@ -53,6 +53,9 @@ export type IntegrationExecuteInputFieldRule = {
|
|
|
53
53
|
maxItems: number;
|
|
54
54
|
types: readonly IntegrationExecuteInputValueType[];
|
|
55
55
|
};
|
|
56
|
+
} | {
|
|
57
|
+
kind: 'boolean';
|
|
58
|
+
required: boolean;
|
|
56
59
|
};
|
|
57
60
|
/** The scalar types a `value` input accepts, alone or in its list form. */
|
|
58
61
|
export type IntegrationExecuteInputValueType = 'string' | 'number' | 'boolean';
|
|
@@ -355,6 +358,217 @@ export declare const IntegrationExecuteInputRules: {
|
|
|
355
358
|
};
|
|
356
359
|
};
|
|
357
360
|
};
|
|
361
|
+
readonly "basecamp.project.list": {
|
|
362
|
+
readonly idempotencyKey: false;
|
|
363
|
+
readonly fields: {
|
|
364
|
+
readonly pageToken: {
|
|
365
|
+
readonly kind: "string";
|
|
366
|
+
readonly required: false;
|
|
367
|
+
readonly minLength: 1;
|
|
368
|
+
readonly maxLength: 256;
|
|
369
|
+
};
|
|
370
|
+
readonly projectStatus: {
|
|
371
|
+
readonly kind: "enum";
|
|
372
|
+
readonly required: false;
|
|
373
|
+
readonly values: readonly ["active", "archived"];
|
|
374
|
+
};
|
|
375
|
+
};
|
|
376
|
+
};
|
|
377
|
+
readonly "basecamp.todolist.list": {
|
|
378
|
+
readonly idempotencyKey: false;
|
|
379
|
+
readonly fields: {
|
|
380
|
+
readonly pageToken: {
|
|
381
|
+
readonly kind: "string";
|
|
382
|
+
readonly required: false;
|
|
383
|
+
readonly minLength: 1;
|
|
384
|
+
readonly maxLength: 256;
|
|
385
|
+
};
|
|
386
|
+
};
|
|
387
|
+
};
|
|
388
|
+
readonly "basecamp.todo.list": {
|
|
389
|
+
readonly idempotencyKey: false;
|
|
390
|
+
readonly fields: {
|
|
391
|
+
readonly todolistId: {
|
|
392
|
+
readonly kind: "string";
|
|
393
|
+
readonly required: true;
|
|
394
|
+
readonly minLength: 0;
|
|
395
|
+
readonly pattern: "^[0-9]{1,20}$";
|
|
396
|
+
};
|
|
397
|
+
readonly completed: {
|
|
398
|
+
readonly kind: "boolean";
|
|
399
|
+
readonly required: false;
|
|
400
|
+
};
|
|
401
|
+
readonly pageToken: {
|
|
402
|
+
readonly kind: "string";
|
|
403
|
+
readonly required: false;
|
|
404
|
+
readonly minLength: 1;
|
|
405
|
+
readonly maxLength: 256;
|
|
406
|
+
};
|
|
407
|
+
};
|
|
408
|
+
};
|
|
409
|
+
readonly "basecamp.todo.create": {
|
|
410
|
+
readonly idempotencyKey: true;
|
|
411
|
+
readonly fields: {
|
|
412
|
+
readonly todolistId: {
|
|
413
|
+
readonly kind: "string";
|
|
414
|
+
readonly required: true;
|
|
415
|
+
readonly minLength: 0;
|
|
416
|
+
readonly pattern: "^[0-9]{1,20}$";
|
|
417
|
+
};
|
|
418
|
+
readonly content: {
|
|
419
|
+
readonly kind: "string";
|
|
420
|
+
readonly required: true;
|
|
421
|
+
readonly minLength: 1;
|
|
422
|
+
readonly maxLength: 1000;
|
|
423
|
+
};
|
|
424
|
+
readonly description: {
|
|
425
|
+
readonly kind: "string";
|
|
426
|
+
readonly required: false;
|
|
427
|
+
readonly minLength: 1;
|
|
428
|
+
readonly maxLength: 16384;
|
|
429
|
+
};
|
|
430
|
+
readonly contentFormat: {
|
|
431
|
+
readonly kind: "enum";
|
|
432
|
+
readonly required: false;
|
|
433
|
+
readonly values: readonly ["plain", "html"];
|
|
434
|
+
readonly default: "plain";
|
|
435
|
+
};
|
|
436
|
+
readonly dueOn: {
|
|
437
|
+
readonly kind: "string";
|
|
438
|
+
readonly required: false;
|
|
439
|
+
readonly minLength: 0;
|
|
440
|
+
readonly pattern: "^\\d{4}-\\d{2}-\\d{2}$";
|
|
441
|
+
};
|
|
442
|
+
readonly assigneeIds: {
|
|
443
|
+
readonly kind: "string[]";
|
|
444
|
+
readonly required: false;
|
|
445
|
+
readonly minItems: 1;
|
|
446
|
+
readonly maxItems: 20;
|
|
447
|
+
readonly uniqueItems: true;
|
|
448
|
+
readonly item: {
|
|
449
|
+
readonly minLength: 0;
|
|
450
|
+
readonly pattern: "^[0-9]{1,20}$";
|
|
451
|
+
};
|
|
452
|
+
};
|
|
453
|
+
readonly notify: {
|
|
454
|
+
readonly kind: "boolean";
|
|
455
|
+
readonly required: false;
|
|
456
|
+
};
|
|
457
|
+
};
|
|
458
|
+
};
|
|
459
|
+
readonly "basecamp.todo.complete": {
|
|
460
|
+
readonly idempotencyKey: false;
|
|
461
|
+
readonly fields: {
|
|
462
|
+
readonly todoId: {
|
|
463
|
+
readonly kind: "string";
|
|
464
|
+
readonly required: true;
|
|
465
|
+
readonly minLength: 0;
|
|
466
|
+
readonly pattern: "^[0-9]{1,20}$";
|
|
467
|
+
};
|
|
468
|
+
};
|
|
469
|
+
};
|
|
470
|
+
readonly "basecamp.message.list": {
|
|
471
|
+
readonly idempotencyKey: false;
|
|
472
|
+
readonly fields: {
|
|
473
|
+
readonly pageToken: {
|
|
474
|
+
readonly kind: "string";
|
|
475
|
+
readonly required: false;
|
|
476
|
+
readonly minLength: 1;
|
|
477
|
+
readonly maxLength: 256;
|
|
478
|
+
};
|
|
479
|
+
};
|
|
480
|
+
};
|
|
481
|
+
readonly "basecamp.message.post": {
|
|
482
|
+
readonly idempotencyKey: true;
|
|
483
|
+
readonly fields: {
|
|
484
|
+
readonly subject: {
|
|
485
|
+
readonly kind: "string";
|
|
486
|
+
readonly required: true;
|
|
487
|
+
readonly minLength: 1;
|
|
488
|
+
readonly maxLength: 256;
|
|
489
|
+
};
|
|
490
|
+
readonly content: {
|
|
491
|
+
readonly kind: "string";
|
|
492
|
+
readonly required: true;
|
|
493
|
+
readonly minLength: 1;
|
|
494
|
+
readonly maxLength: 65536;
|
|
495
|
+
};
|
|
496
|
+
readonly contentFormat: {
|
|
497
|
+
readonly kind: "enum";
|
|
498
|
+
readonly required: false;
|
|
499
|
+
readonly values: readonly ["plain", "html"];
|
|
500
|
+
readonly default: "plain";
|
|
501
|
+
};
|
|
502
|
+
};
|
|
503
|
+
};
|
|
504
|
+
readonly "basecamp.comment.list": {
|
|
505
|
+
readonly idempotencyKey: false;
|
|
506
|
+
readonly fields: {
|
|
507
|
+
readonly recordingId: {
|
|
508
|
+
readonly kind: "string";
|
|
509
|
+
readonly required: true;
|
|
510
|
+
readonly minLength: 0;
|
|
511
|
+
readonly pattern: "^[0-9]{1,20}$";
|
|
512
|
+
};
|
|
513
|
+
readonly pageToken: {
|
|
514
|
+
readonly kind: "string";
|
|
515
|
+
readonly required: false;
|
|
516
|
+
readonly minLength: 1;
|
|
517
|
+
readonly maxLength: 256;
|
|
518
|
+
};
|
|
519
|
+
};
|
|
520
|
+
};
|
|
521
|
+
readonly "basecamp.comment.post": {
|
|
522
|
+
readonly idempotencyKey: true;
|
|
523
|
+
readonly fields: {
|
|
524
|
+
readonly recordingId: {
|
|
525
|
+
readonly kind: "string";
|
|
526
|
+
readonly required: true;
|
|
527
|
+
readonly minLength: 0;
|
|
528
|
+
readonly pattern: "^[0-9]{1,20}$";
|
|
529
|
+
};
|
|
530
|
+
readonly content: {
|
|
531
|
+
readonly kind: "string";
|
|
532
|
+
readonly required: true;
|
|
533
|
+
readonly minLength: 1;
|
|
534
|
+
readonly maxLength: 16384;
|
|
535
|
+
};
|
|
536
|
+
readonly contentFormat: {
|
|
537
|
+
readonly kind: "enum";
|
|
538
|
+
readonly required: false;
|
|
539
|
+
readonly values: readonly ["plain", "html"];
|
|
540
|
+
readonly default: "plain";
|
|
541
|
+
};
|
|
542
|
+
};
|
|
543
|
+
};
|
|
544
|
+
readonly "basecamp.campfire.post": {
|
|
545
|
+
readonly idempotencyKey: true;
|
|
546
|
+
readonly fields: {
|
|
547
|
+
readonly content: {
|
|
548
|
+
readonly kind: "string";
|
|
549
|
+
readonly required: true;
|
|
550
|
+
readonly minLength: 1;
|
|
551
|
+
readonly maxLength: 4000;
|
|
552
|
+
};
|
|
553
|
+
readonly contentFormat: {
|
|
554
|
+
readonly kind: "enum";
|
|
555
|
+
readonly required: false;
|
|
556
|
+
readonly values: readonly ["plain", "html"];
|
|
557
|
+
readonly default: "plain";
|
|
558
|
+
};
|
|
559
|
+
};
|
|
560
|
+
};
|
|
561
|
+
readonly "basecamp.people.list": {
|
|
562
|
+
readonly idempotencyKey: false;
|
|
563
|
+
readonly fields: {
|
|
564
|
+
readonly pageToken: {
|
|
565
|
+
readonly kind: "string";
|
|
566
|
+
readonly required: false;
|
|
567
|
+
readonly minLength: 1;
|
|
568
|
+
readonly maxLength: 256;
|
|
569
|
+
};
|
|
570
|
+
};
|
|
571
|
+
};
|
|
358
572
|
readonly "warehouse.view.read": {
|
|
359
573
|
readonly idempotencyKey: false;
|
|
360
574
|
readonly fields: {
|
|
@@ -91,6 +91,87 @@ export const IntegrationExecuteInputRules = {
|
|
|
91
91
|
attachmentId: { kind: "string", required: true, minLength: 1, maxLength: 512 },
|
|
92
92
|
},
|
|
93
93
|
},
|
|
94
|
+
"basecamp.project.list": {
|
|
95
|
+
idempotencyKey: false,
|
|
96
|
+
fields: {
|
|
97
|
+
pageToken: { kind: "string", required: false, minLength: 1, maxLength: 256 },
|
|
98
|
+
projectStatus: { kind: "enum", required: false, values: ["active", "archived"] },
|
|
99
|
+
},
|
|
100
|
+
},
|
|
101
|
+
"basecamp.todolist.list": {
|
|
102
|
+
idempotencyKey: false,
|
|
103
|
+
fields: {
|
|
104
|
+
pageToken: { kind: "string", required: false, minLength: 1, maxLength: 256 },
|
|
105
|
+
},
|
|
106
|
+
},
|
|
107
|
+
"basecamp.todo.list": {
|
|
108
|
+
idempotencyKey: false,
|
|
109
|
+
fields: {
|
|
110
|
+
todolistId: { kind: "string", required: true, minLength: 0, pattern: "^[0-9]{1,20}$" },
|
|
111
|
+
completed: { kind: "boolean", required: false },
|
|
112
|
+
pageToken: { kind: "string", required: false, minLength: 1, maxLength: 256 },
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
"basecamp.todo.create": {
|
|
116
|
+
idempotencyKey: true,
|
|
117
|
+
fields: {
|
|
118
|
+
todolistId: { kind: "string", required: true, minLength: 0, pattern: "^[0-9]{1,20}$" },
|
|
119
|
+
content: { kind: "string", required: true, minLength: 1, maxLength: 1000 },
|
|
120
|
+
description: { kind: "string", required: false, minLength: 1, maxLength: 16384 },
|
|
121
|
+
contentFormat: { kind: "enum", required: false, values: ["plain", "html"], default: "plain" },
|
|
122
|
+
dueOn: { kind: "string", required: false, minLength: 0, pattern: "^\\d{4}-\\d{2}-\\d{2}$" },
|
|
123
|
+
assigneeIds: { kind: "string[]", required: false, minItems: 1, maxItems: 20, uniqueItems: true, item: { minLength: 0, pattern: "^[0-9]{1,20}$" } },
|
|
124
|
+
notify: { kind: "boolean", required: false },
|
|
125
|
+
},
|
|
126
|
+
},
|
|
127
|
+
"basecamp.todo.complete": {
|
|
128
|
+
idempotencyKey: false,
|
|
129
|
+
fields: {
|
|
130
|
+
todoId: { kind: "string", required: true, minLength: 0, pattern: "^[0-9]{1,20}$" },
|
|
131
|
+
},
|
|
132
|
+
},
|
|
133
|
+
"basecamp.message.list": {
|
|
134
|
+
idempotencyKey: false,
|
|
135
|
+
fields: {
|
|
136
|
+
pageToken: { kind: "string", required: false, minLength: 1, maxLength: 256 },
|
|
137
|
+
},
|
|
138
|
+
},
|
|
139
|
+
"basecamp.message.post": {
|
|
140
|
+
idempotencyKey: true,
|
|
141
|
+
fields: {
|
|
142
|
+
subject: { kind: "string", required: true, minLength: 1, maxLength: 256 },
|
|
143
|
+
content: { kind: "string", required: true, minLength: 1, maxLength: 65536 },
|
|
144
|
+
contentFormat: { kind: "enum", required: false, values: ["plain", "html"], default: "plain" },
|
|
145
|
+
},
|
|
146
|
+
},
|
|
147
|
+
"basecamp.comment.list": {
|
|
148
|
+
idempotencyKey: false,
|
|
149
|
+
fields: {
|
|
150
|
+
recordingId: { kind: "string", required: true, minLength: 0, pattern: "^[0-9]{1,20}$" },
|
|
151
|
+
pageToken: { kind: "string", required: false, minLength: 1, maxLength: 256 },
|
|
152
|
+
},
|
|
153
|
+
},
|
|
154
|
+
"basecamp.comment.post": {
|
|
155
|
+
idempotencyKey: true,
|
|
156
|
+
fields: {
|
|
157
|
+
recordingId: { kind: "string", required: true, minLength: 0, pattern: "^[0-9]{1,20}$" },
|
|
158
|
+
content: { kind: "string", required: true, minLength: 1, maxLength: 16384 },
|
|
159
|
+
contentFormat: { kind: "enum", required: false, values: ["plain", "html"], default: "plain" },
|
|
160
|
+
},
|
|
161
|
+
},
|
|
162
|
+
"basecamp.campfire.post": {
|
|
163
|
+
idempotencyKey: true,
|
|
164
|
+
fields: {
|
|
165
|
+
content: { kind: "string", required: true, minLength: 1, maxLength: 4000 },
|
|
166
|
+
contentFormat: { kind: "enum", required: false, values: ["plain", "html"], default: "plain" },
|
|
167
|
+
},
|
|
168
|
+
},
|
|
169
|
+
"basecamp.people.list": {
|
|
170
|
+
idempotencyKey: false,
|
|
171
|
+
fields: {
|
|
172
|
+
pageToken: { kind: "string", required: false, minLength: 1, maxLength: 256 },
|
|
173
|
+
},
|
|
174
|
+
},
|
|
94
175
|
"warehouse.view.read": {
|
|
95
176
|
idempotencyKey: false,
|
|
96
177
|
fields: {
|
|
@@ -188,6 +269,10 @@ function checkField(operation, path, name, field, value) {
|
|
|
188
269
|
if (value === null || typeof value !== 'object' || Array.isArray(value))
|
|
189
270
|
return refuse(path, `${path} must be a JSON object`);
|
|
190
271
|
return { ok: true, value };
|
|
272
|
+
case 'boolean':
|
|
273
|
+
if (typeof value !== 'boolean')
|
|
274
|
+
return refuse(path, `${path} must be a boolean`);
|
|
275
|
+
return { ok: true, value };
|
|
191
276
|
case 'integer':
|
|
192
277
|
if (typeof value !== 'number' || !Number.isInteger(value) || value < field.minimum || value > field.maximum)
|
|
193
278
|
return refuse(path, `${path} must be an integer between ${field.minimum} and ${field.maximum}`);
|