@fourier-labs/harbour-contracts 0.93.0 → 0.94.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.
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "schema": "harbour.contract-release/1.0",
3
- "repositoryVersion": "0.93.0.0",
4
- "publishVersion": "0.93.0",
5
- "publishTag": "v0.93.0",
6
- "schemasDigest": "sha256:9fe4dd0a739805bd2029674641576a428d728fa4cd17667e1f87538ab08e14e5",
3
+ "repositoryVersion": "0.94.0.0",
4
+ "publishVersion": "0.94.0",
5
+ "publishTag": "v0.94.0",
6
+ "schemasDigest": "sha256:acc24b9a7d273b154c10996b9c13e739a289c65775bec41bdc3da68f3378c84b",
7
7
  "aiFixturesDigest": "sha256:edac31c92e146ca1c40130f2fb5649db82e24b8cd1ac758153b90612052fddb6",
8
- "generatedGoDigest": "sha256:ba1a5b846bd8b5352b117601634df3d7fdb0e66782a3bac220b2574254407102",
9
- "generatedTypeScriptDigest": "sha256:68bd763bc5f48338e257c1f48d72542fb73a70f0b26758faaaebb546dc5752e3",
8
+ "generatedGoDigest": "sha256:7b39ca1dacacadb859ec6eea7b6c61352c90cf41736f3959ebbd4558d96b4fe7",
9
+ "generatedTypeScriptDigest": "sha256:44116e206e5a11d1a50ad1c92a03577990c18b3f0b3797263d20e78631851d3e",
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)"
@@ -42,7 +42,7 @@
42
42
  "schema/data-source.schema.json": "sha256:f32b2b4312bc06e023f4e1da60eed52ddfade59b74c1a1cc8e4b740a6f9c930b",
43
43
  "schema/deploy-request.schema.json": "sha256:c978406c273fa430db262888f0a8646b14e3057f64b0633780fcd6cfa646bc67",
44
44
  "schema/deploy-response.schema.json": "sha256:09064948abdbba7022738285d802ed44648a16ddc2a5b8c2eeb170ae19a66aeb",
45
- "schema/deployment-app-registration.schema.json": "sha256:4386dfd6f5ac2604214ab161cbb37146245baf7e70b63773c9702bd3270c3ca5",
45
+ "schema/deployment-app-registration.schema.json": "sha256:bc74524a011db6e67e45fa1154eac38e5662308d4a71e199638287a109e52115",
46
46
  "schema/deployment-continuation.schema.json": "sha256:55b6945439f2c91cd851dfe4bc9484e67a64091b7763b2d8267354b4a8bfae8c",
47
47
  "schema/deployment-environment.schema.json": "sha256:35b26cae07da9ee375a842b5e87c4570c8eca06775e9fd6dd46eb9eb8aa0df6c",
48
48
  "schema/deployment-preview-retirement.schema.json": "sha256:ccf6b971b7853ca98530272f280fe62cd3aab5425b10b81ae6b717cc949e014f",
@@ -117,7 +117,7 @@
117
117
  "gen-go/integration_execute_input_rules_test.go": "sha256:6db850bbdfc31f60ac7ce6ec5cade4f5260b1836e56b2727efbfeee56db7a706",
118
118
  "gen-go/integration_operations.go": "sha256:1ba7ea4e118a2c4c8dd735b460b18d8658fbd7fd74e601ae372aff2844322f35",
119
119
  "gen-go/schema_documents.go": "sha256:c19c0d540f602ee997a84b90e20702d9bc63ed7d27aec267e76c04655fc182e0",
120
- "gen-go/types.go": "sha256:2a522bd0dac6904ac36bf6b6c0050c269e554a45b27c1d2becb9a002047de896",
120
+ "gen-go/types.go": "sha256:5e8c88f7b4e24b8ea4f9625f2693f3a78dde61d0764ed4e68a5f940918db0410",
121
121
  "gen-go/version_state.go": "sha256:4ef8abb126414c0025cf2c59bc9c79a74ef4a2ff89e8f316cbf05acc872371c1"
122
122
  },
123
123
  "generatedTypeScript": {
@@ -154,7 +154,7 @@
154
154
  "gen-ts/data-source.ts": "sha256:2566f0d5c72e44278869f55211cf3d433aeb3552e57ae0ace0ff0b85e769dde6",
155
155
  "gen-ts/deploy-request.ts": "sha256:913245577a95354849d3a8cb43fbaedbf895efe7b653c8502d25edfa22b7a864",
156
156
  "gen-ts/deploy-response.ts": "sha256:364d9f1acf32e491498237cdd3f402d5f8e102f208db7748034f4ec68c6a6137",
157
- "gen-ts/deployment-app-registration.ts": "sha256:cb02a7e54a1733fb0865802215235c0f9d532229fffca2dc26677bee5e5e950e",
157
+ "gen-ts/deployment-app-registration.ts": "sha256:15244505907451b5f31e7e872ff8f741aa577ac104b1447e22b35b40f3d4ca1b",
158
158
  "gen-ts/deployment-continuation.ts": "sha256:cc9f63af4d0da5086a79103789e4f043783b75b4ed11c6512f044439a551a79c",
159
159
  "gen-ts/deployment-environment.ts": "sha256:fc08cabe2e52ebb93cfe84d2019994260f71734c33d0e50e7c63e40ef5b17cef",
160
160
  "gen-ts/deployment-preview-retirement.ts": "sha256:309421d08daf0ade163b6457ed0e5410ec6573c40a59423a6cce14780d9c38db",
@@ -1,7 +1,7 @@
1
- export declare const ContractRepositoryVersion: "0.93.0.0";
2
- export declare const ContractPublishVersion: "0.93.0";
3
- export declare const ContractPublishTag: "v0.93.0";
4
- export declare const ContractSchemasDigest: "sha256:9fe4dd0a739805bd2029674641576a428d728fa4cd17667e1f87538ab08e14e5";
1
+ export declare const ContractRepositoryVersion: "0.94.0.0";
2
+ export declare const ContractPublishVersion: "0.94.0";
3
+ export declare const ContractPublishTag: "v0.94.0";
4
+ export declare const ContractSchemasDigest: "sha256:acc24b9a7d273b154c10996b9c13e739a289c65775bec41bdc3da68f3378c84b";
5
5
  export declare const ContractAiFixturesDigest: "sha256:edac31c92e146ca1c40130f2fb5649db82e24b8cd1ac758153b90612052fddb6";
6
- export declare const ContractGeneratedGoDigest: "sha256:ba1a5b846bd8b5352b117601634df3d7fdb0e66782a3bac220b2574254407102";
7
- export declare const ContractGeneratedTypeScriptDigest: "sha256:68bd763bc5f48338e257c1f48d72542fb73a70f0b26758faaaebb546dc5752e3";
6
+ export declare const ContractGeneratedGoDigest: "sha256:7b39ca1dacacadb859ec6eea7b6c61352c90cf41736f3959ebbd4558d96b4fe7";
7
+ export declare const ContractGeneratedTypeScriptDigest: "sha256:44116e206e5a11d1a50ad1c92a03577990c18b3f0b3797263d20e78631851d3e";
@@ -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.93.0.0";
4
- export const ContractPublishVersion = "0.93.0";
5
- export const ContractPublishTag = "v0.93.0";
6
- export const ContractSchemasDigest = "sha256:9fe4dd0a739805bd2029674641576a428d728fa4cd17667e1f87538ab08e14e5";
3
+ export const ContractRepositoryVersion = "0.94.0.0";
4
+ export const ContractPublishVersion = "0.94.0";
5
+ export const ContractPublishTag = "v0.94.0";
6
+ export const ContractSchemasDigest = "sha256:acc24b9a7d273b154c10996b9c13e739a289c65775bec41bdc3da68f3378c84b";
7
7
  export const ContractAiFixturesDigest = "sha256:edac31c92e146ca1c40130f2fb5649db82e24b8cd1ac758153b90612052fddb6";
8
- export const ContractGeneratedGoDigest = "sha256:ba1a5b846bd8b5352b117601634df3d7fdb0e66782a3bac220b2574254407102";
9
- export const ContractGeneratedTypeScriptDigest = "sha256:68bd763bc5f48338e257c1f48d72542fb73a70f0b26758faaaebb546dc5752e3";
8
+ export const ContractGeneratedGoDigest = "sha256:7b39ca1dacacadb859ec6eea7b6c61352c90cf41736f3959ebbd4558d96b4fe7";
9
+ export const ContractGeneratedTypeScriptDigest = "sha256:44116e206e5a11d1a50ad1c92a03577990c18b3f0b3797263d20e78631851d3e";
@@ -24,21 +24,26 @@ export type DeploymentAppRegistration = {
24
24
  mailArrivalTarget?: {
25
25
  functionArn: string;
26
26
  versionId: string;
27
- /**
28
- * @minItems 1
29
- * @maxItems 100
30
- */
31
- jobs: {
32
- name: string;
33
- trigger: {
34
- type: 'email.arrived';
35
- connection: string;
36
- resource: 'inbox';
37
- filter?: {
38
- from?: string;
39
- subjectContains?: string;
40
- };
41
- };
42
- }[];
27
+ jobs: MailArrivalJobs;
28
+ } | {
29
+ versionId: string;
30
+ jobs: MailArrivalJobs;
31
+ gatewayUrl: string;
43
32
  };
44
33
  };
34
+ /**
35
+ * @minItems 1
36
+ * @maxItems 100
37
+ */
38
+ export type MailArrivalJobs = {
39
+ name: string;
40
+ trigger: {
41
+ type: 'email.arrived';
42
+ connection: string;
43
+ resource: 'inbox';
44
+ filter?: {
45
+ from?: string;
46
+ subjectContains?: string;
47
+ };
48
+ };
49
+ }[];
@@ -1,10 +1,10 @@
1
1
  /* eslint-disable */
2
2
  // Code generated by tools/gen/gen.mjs from schema/*.json. DO NOT EDIT.
3
3
 
4
- export const ContractRepositoryVersion = "0.93.0.0" as const;
5
- export const ContractPublishVersion = "0.93.0" as const;
6
- export const ContractPublishTag = "v0.93.0" as const;
7
- export const ContractSchemasDigest = "sha256:9fe4dd0a739805bd2029674641576a428d728fa4cd17667e1f87538ab08e14e5" as const;
4
+ export const ContractRepositoryVersion = "0.94.0.0" as const;
5
+ export const ContractPublishVersion = "0.94.0" as const;
6
+ export const ContractPublishTag = "v0.94.0" as const;
7
+ export const ContractSchemasDigest = "sha256:acc24b9a7d273b154c10996b9c13e739a289c65775bec41bdc3da68f3378c84b" as const;
8
8
  export const ContractAiFixturesDigest = "sha256:edac31c92e146ca1c40130f2fb5649db82e24b8cd1ac758153b90612052fddb6" as const;
9
- export const ContractGeneratedGoDigest = "sha256:ba1a5b846bd8b5352b117601634df3d7fdb0e66782a3bac220b2574254407102" as const;
10
- export const ContractGeneratedTypeScriptDigest = "sha256:68bd763bc5f48338e257c1f48d72542fb73a70f0b26758faaaebb546dc5752e3" as const;
9
+ export const ContractGeneratedGoDigest = "sha256:7b39ca1dacacadb859ec6eea7b6c61352c90cf41736f3959ebbd4558d96b4fe7" as const;
10
+ export const ContractGeneratedTypeScriptDigest = "sha256:44116e206e5a11d1a50ad1c92a03577990c18b3f0b3797263d20e78631851d3e" as const;
@@ -24,24 +24,31 @@ export type DeploymentAppRegistration = {
24
24
  * @maxItems 1
25
25
  */
26
26
  signInMethods?: ('phone' | 'email')[];
27
- mailArrivalTarget?: {
28
- functionArn: string;
29
- versionId: string;
30
- /**
31
- * @minItems 1
32
- * @maxItems 100
33
- */
34
- jobs: {
35
- name: string;
36
- trigger: {
37
- type: 'email.arrived';
38
- connection: string;
39
- resource: 'inbox';
40
- filter?: {
41
- from?: string;
42
- subjectContains?: string;
43
- };
27
+ mailArrivalTarget?:
28
+ | {
29
+ functionArn: string;
30
+ versionId: string;
31
+ jobs: MailArrivalJobs;
32
+ }
33
+ | {
34
+ versionId: string;
35
+ jobs: MailArrivalJobs;
36
+ gatewayUrl: string;
44
37
  };
45
- }[];
46
- };
47
38
  };
39
+ /**
40
+ * @minItems 1
41
+ * @maxItems 100
42
+ */
43
+ export type MailArrivalJobs = {
44
+ name: string;
45
+ trigger: {
46
+ type: 'email.arrived';
47
+ connection: string;
48
+ resource: 'inbox';
49
+ filter?: {
50
+ from?: string;
51
+ subjectContains?: string;
52
+ };
53
+ };
54
+ }[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fourier-labs/harbour-contracts",
3
- "version": "0.93.0",
3
+ "version": "0.94.0",
4
4
  "description": "Single source of truth for every data shape that crosses a boundary between Isomorph components.",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,
@@ -99,79 +99,53 @@
99
99
  "maxItems": 1
100
100
  },
101
101
  "mailArrivalTarget": {
102
- "type": "object",
103
- "additionalProperties": false,
104
- "required": [
105
- "functionArn",
106
- "versionId",
107
- "jobs"
108
- ],
109
- "properties": {
110
- "functionArn": {
111
- "type": "string",
112
- "pattern": "^arn:aws:lambda:[a-z0-9-]+:[0-9]{12}:function:[A-Za-z0-9-_]+$"
113
- },
114
- "versionId": {
115
- "type": "string",
116
- "minLength": 1
102
+ "oneOf": [
103
+ {
104
+ "type": "object",
105
+ "additionalProperties": false,
106
+ "required": [
107
+ "versionId",
108
+ "jobs",
109
+ "functionArn"
110
+ ],
111
+ "properties": {
112
+ "functionArn": {
113
+ "type": "string",
114
+ "pattern": "^arn:aws:lambda:[a-z0-9-]+:[0-9]{12}:function:[A-Za-z0-9-_]+$"
115
+ },
116
+ "versionId": {
117
+ "type": "string",
118
+ "minLength": 1
119
+ },
120
+ "jobs": {
121
+ "$ref": "#/definitions/mailArrivalJobs"
122
+ }
123
+ }
117
124
  },
118
- "jobs": {
119
- "type": "array",
120
- "minItems": 1,
121
- "maxItems": 100,
122
- "items": {
123
- "type": "object",
124
- "additionalProperties": false,
125
- "required": [
126
- "name",
127
- "trigger"
128
- ],
129
- "properties": {
130
- "name": {
131
- "type": "string",
132
- "pattern": "^[a-z0-9][a-z0-9_-]{0,63}$"
133
- },
134
- "trigger": {
135
- "type": "object",
136
- "additionalProperties": false,
137
- "required": [
138
- "type",
139
- "connection",
140
- "resource"
141
- ],
142
- "properties": {
143
- "type": {
144
- "const": "email.arrived"
145
- },
146
- "connection": {
147
- "type": "string",
148
- "pattern": "^[a-z0-9][a-z0-9_-]{0,63}$"
149
- },
150
- "resource": {
151
- "const": "inbox"
152
- },
153
- "filter": {
154
- "type": "object",
155
- "additionalProperties": false,
156
- "properties": {
157
- "from": {
158
- "type": "string",
159
- "minLength": 1,
160
- "maxLength": 320
161
- },
162
- "subjectContains": {
163
- "type": "string",
164
- "minLength": 1,
165
- "maxLength": 320
166
- }
167
- }
168
- }
169
- }
170
- }
125
+ {
126
+ "type": "object",
127
+ "additionalProperties": false,
128
+ "required": [
129
+ "versionId",
130
+ "jobs",
131
+ "gatewayUrl"
132
+ ],
133
+ "properties": {
134
+ "versionId": {
135
+ "type": "string",
136
+ "minLength": 1
137
+ },
138
+ "jobs": {
139
+ "$ref": "#/definitions/mailArrivalJobs"
140
+ },
141
+ "gatewayUrl": {
142
+ "type": "string",
143
+ "format": "uri",
144
+ "pattern": "^https://[^/]+/_harbour/internal/mail-arrival$"
171
145
  }
172
146
  }
173
147
  }
174
- }
148
+ ]
175
149
  }
176
150
  },
177
151
  "allOf": [
@@ -205,5 +179,63 @@
205
179
  ]
206
180
  }
207
181
  }
208
- ]
182
+ ],
183
+ "definitions": {
184
+ "mailArrivalJobs": {
185
+ "type": "array",
186
+ "minItems": 1,
187
+ "maxItems": 100,
188
+ "items": {
189
+ "type": "object",
190
+ "additionalProperties": false,
191
+ "required": [
192
+ "name",
193
+ "trigger"
194
+ ],
195
+ "properties": {
196
+ "name": {
197
+ "type": "string",
198
+ "pattern": "^[a-z0-9][a-z0-9_-]{0,63}$"
199
+ },
200
+ "trigger": {
201
+ "type": "object",
202
+ "additionalProperties": false,
203
+ "required": [
204
+ "type",
205
+ "connection",
206
+ "resource"
207
+ ],
208
+ "properties": {
209
+ "type": {
210
+ "const": "email.arrived"
211
+ },
212
+ "connection": {
213
+ "type": "string",
214
+ "pattern": "^[a-z0-9][a-z0-9_-]{0,63}$"
215
+ },
216
+ "resource": {
217
+ "const": "inbox"
218
+ },
219
+ "filter": {
220
+ "type": "object",
221
+ "additionalProperties": false,
222
+ "properties": {
223
+ "from": {
224
+ "type": "string",
225
+ "minLength": 1,
226
+ "maxLength": 320
227
+ },
228
+ "subjectContains": {
229
+ "type": "string",
230
+ "minLength": 1,
231
+ "maxLength": 320
232
+ }
233
+ }
234
+ }
235
+ }
236
+ }
237
+ }
238
+ }
239
+ }
240
+ }
209
241
  }