@greatwait/contracts 0.1.0-alpha.4 → 0.1.0-alpha.5

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 (84) hide show
  1. package/README.md +1 -1
  2. package/dist/billing.d.ts +231 -1
  3. package/dist/billing.js +150 -1
  4. package/dist/callback-safety.js +13 -3
  5. package/dist/configuration-bounds.d.ts +13 -0
  6. package/dist/configuration-bounds.js +13 -0
  7. package/dist/effective-limits.d.ts +40 -0
  8. package/dist/effective-limits.js +42 -0
  9. package/dist/endpoints.d.ts +5 -5
  10. package/dist/endpoints.js +5 -5
  11. package/dist/first-value-journey.d.ts +1 -1
  12. package/dist/first-value-journey.js +11 -7
  13. package/dist/forecast.d.ts +111 -21
  14. package/dist/forecast.js +87 -24
  15. package/dist/index.d.ts +5 -4
  16. package/dist/index.js +5 -4
  17. package/dist/mcp.js +1 -1
  18. package/dist/operational-config.d.ts +101 -0
  19. package/dist/operational-config.js +341 -0
  20. package/dist/operations.d.ts +597 -16
  21. package/dist/operations.js +384 -23
  22. package/dist/partition.d.ts +17 -9
  23. package/dist/partition.js +3 -3
  24. package/dist/problems.d.ts +25 -2
  25. package/dist/problems.js +49 -1
  26. package/dist/protocol.d.ts +5 -5
  27. package/dist/protocol.js +2 -1
  28. package/dist/scheduling-records.d.ts +6 -0
  29. package/dist/scheduling.d.ts +37 -1
  30. package/dist/scheduling.js +60 -4
  31. package/dist/usage.js +6 -21
  32. package/generated/v1/examples/attempts.list.response.json +2 -0
  33. package/generated/v1/examples/attempts.read.response.json +2 -0
  34. package/generated/v1/examples/billing.fundingconfirm.response.json +120 -0
  35. package/generated/v1/examples/billing.invoicehistory.response.json +6 -0
  36. package/generated/v1/examples/billing.invoices.response.json +15 -0
  37. package/generated/v1/examples/billing.paymenthistory.response.json +6 -0
  38. package/generated/v1/examples/billing.paymentmethod.response.json +16 -0
  39. package/generated/v1/examples/billing.paymentmethodconfirm.request.json +3 -0
  40. package/generated/v1/examples/billing.paymentmethodconfirm.response.json +16 -0
  41. package/generated/v1/examples/billing.paymentmethodremove.request.json +3 -0
  42. package/generated/v1/examples/billing.paymentmethodremove.response.json +4 -0
  43. package/generated/v1/examples/billing.paymentmethodsetup.request.json +1 -0
  44. package/generated/v1/examples/billing.paymentmethodsetup.response.json +3 -0
  45. package/generated/v1/examples/limits.read.response.json +16 -0
  46. package/generated/v1/examples/occurrences.redeliver.response.json +2 -0
  47. package/generated/v1/first-value-journey.json +24 -8
  48. package/generated/v1/manifest.json +342 -10
  49. package/generated/v1/openapi.json +12395 -6543
  50. package/generated/v1/policy-matrix.json +65 -2
  51. package/generated/v1/schemas/attempts.list.response.json +15 -0
  52. package/generated/v1/schemas/attempts.read.response.json +15 -0
  53. package/generated/v1/schemas/billing.fundingconfirm.response.json +552 -0
  54. package/generated/v1/schemas/billing.invoicehistory.query.json +16 -0
  55. package/generated/v1/schemas/billing.invoicehistory.response.json +88 -0
  56. package/generated/v1/schemas/billing.invoices.response.json +51 -0
  57. package/generated/v1/schemas/billing.ledger.response.json +5 -0
  58. package/generated/v1/schemas/billing.notificationsettingsupdate.request.json +24 -17
  59. package/generated/v1/schemas/billing.paymenthistory.query.json +16 -0
  60. package/generated/v1/schemas/billing.paymenthistory.response.json +182 -0
  61. package/generated/v1/schemas/billing.paymentmethod.response.json +137 -0
  62. package/generated/v1/schemas/billing.paymentmethodconfirm.request.json +14 -0
  63. package/generated/v1/schemas/billing.paymentmethodconfirm.response.json +137 -0
  64. package/generated/v1/schemas/billing.paymentmethodremove.request.json +12 -0
  65. package/generated/v1/schemas/billing.paymentmethodremove.response.json +137 -0
  66. package/generated/v1/schemas/billing.paymentmethodsetup.request.json +12 -0
  67. package/generated/v1/schemas/billing.paymentmethodsetup.response.json +11 -0
  68. package/generated/v1/schemas/billing.purchase.request.json +4 -0
  69. package/generated/v1/schemas/forecast.read.request-headers.json +10 -0
  70. package/generated/v1/schemas/forecast.read.response.json +148 -0
  71. package/generated/v1/schemas/limits.read.response.json +79 -0
  72. package/generated/v1/schemas/occurrences.redeliver.response.json +15 -0
  73. package/generated/v1/snippets/billing.fundingconfirm.json +6 -0
  74. package/generated/v1/snippets/billing.invoicehistory.json +6 -0
  75. package/generated/v1/snippets/billing.invoices.json +6 -0
  76. package/generated/v1/snippets/billing.notificationsettingsupdate.json +1 -1
  77. package/generated/v1/snippets/billing.paymenthistory.json +6 -0
  78. package/generated/v1/snippets/billing.paymentmethod.json +6 -0
  79. package/generated/v1/snippets/billing.paymentmethodconfirm.json +6 -0
  80. package/generated/v1/snippets/billing.paymentmethodremove.json +6 -0
  81. package/generated/v1/snippets/billing.paymentmethodsetup.json +6 -0
  82. package/generated/v1/snippets/forecast.windows.json +1 -1
  83. package/generated/v1/snippets/limits.read.json +6 -0
  84. package/package.json +7 -2
@@ -0,0 +1,552 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "automaticExecutionTopUp": {
6
+ "type": "object",
7
+ "properties": {
8
+ "ceiling": {
9
+ "anyOf": [
10
+ {
11
+ "type": "object",
12
+ "properties": {
13
+ "currency": {
14
+ "type": "string",
15
+ "const": "USD"
16
+ },
17
+ "microdollars": {
18
+ "type": "string",
19
+ "pattern": "^(?:0|(?:[1-9]\\d{0,13}|[1-8]\\d{14}|9[01]\\d{13}|92[01]\\d{12}|922[0-2]\\d{11}|9223[0-2]\\d{10}|92233[0-6]\\d{9}|922337[01]\\d{8}|92233720[0-2]\\d{6}|922337203[0-5]\\d{5}|9223372036[0-7]\\d{4}|92233720368[0-4]\\d{3}|922337203685[0-3]\\d{2}|9223372036854[0-6]\\d|92233720368547[0-7])0000)$",
20
+ "description": "A canonical nonnegative integer multiple of 10,000 microdollars, no greater than 9,223,372,036,854,770,000.",
21
+ "maxLength": 19
22
+ },
23
+ "scale": {
24
+ "type": "number",
25
+ "const": 6
26
+ }
27
+ },
28
+ "required": ["currency", "microdollars", "scale"]
29
+ },
30
+ {
31
+ "type": "null"
32
+ }
33
+ ]
34
+ },
35
+ "currentPeriod": {
36
+ "type": "object",
37
+ "properties": {
38
+ "end": {
39
+ "type": "string",
40
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
41
+ },
42
+ "pending": {
43
+ "type": "object",
44
+ "properties": {
45
+ "currency": {
46
+ "type": "string",
47
+ "const": "USD"
48
+ },
49
+ "microdollars": {
50
+ "type": "string",
51
+ "pattern": "^(?:0|[1-9]\\d*)$"
52
+ },
53
+ "scale": {
54
+ "type": "number",
55
+ "const": 6
56
+ }
57
+ },
58
+ "required": ["currency", "microdollars", "scale"]
59
+ },
60
+ "remaining": {
61
+ "anyOf": [
62
+ {
63
+ "type": "object",
64
+ "properties": {
65
+ "currency": {
66
+ "type": "string",
67
+ "const": "USD"
68
+ },
69
+ "microdollars": {
70
+ "type": "string",
71
+ "pattern": "^(?:0|[1-9]\\d*)$"
72
+ },
73
+ "scale": {
74
+ "type": "number",
75
+ "const": 6
76
+ }
77
+ },
78
+ "required": ["currency", "microdollars", "scale"]
79
+ },
80
+ {
81
+ "type": "null"
82
+ }
83
+ ]
84
+ },
85
+ "settled": {
86
+ "type": "object",
87
+ "properties": {
88
+ "currency": {
89
+ "type": "string",
90
+ "const": "USD"
91
+ },
92
+ "microdollars": {
93
+ "type": "string",
94
+ "pattern": "^(?:0|[1-9]\\d*)$"
95
+ },
96
+ "scale": {
97
+ "type": "number",
98
+ "const": 6
99
+ }
100
+ },
101
+ "required": ["currency", "microdollars", "scale"]
102
+ },
103
+ "start": {
104
+ "type": "string",
105
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
106
+ }
107
+ },
108
+ "required": ["end", "pending", "remaining", "settled", "start"]
109
+ },
110
+ "rule": {
111
+ "type": "object",
112
+ "properties": {
113
+ "cooldownUntil": {
114
+ "anyOf": [
115
+ {
116
+ "type": "string",
117
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
118
+ },
119
+ {
120
+ "type": "null"
121
+ }
122
+ ]
123
+ },
124
+ "desired": {
125
+ "anyOf": [
126
+ {
127
+ "type": "object",
128
+ "properties": {
129
+ "ceiling": {
130
+ "type": "object",
131
+ "properties": {
132
+ "currency": {
133
+ "type": "string",
134
+ "const": "USD"
135
+ },
136
+ "microdollars": {
137
+ "type": "string",
138
+ "pattern": "^(?:0|(?:[1-9]\\d{0,13}|[1-8]\\d{14}|9[01]\\d{13}|92[01]\\d{12}|922[0-2]\\d{11}|9223[0-2]\\d{10}|92233[0-6]\\d{9}|922337[01]\\d{8}|92233720[0-2]\\d{6}|922337203[0-5]\\d{5}|9223372036[0-7]\\d{4}|92233720368[0-4]\\d{3}|922337203685[0-3]\\d{2}|9223372036854[0-6]\\d|92233720368547[0-7])0000)$",
139
+ "description": "A canonical nonnegative integer multiple of 10,000 microdollars, no greater than 9,223,372,036,854,770,000.",
140
+ "maxLength": 19
141
+ },
142
+ "scale": {
143
+ "type": "number",
144
+ "const": 6
145
+ }
146
+ },
147
+ "required": ["currency", "microdollars", "scale"]
148
+ },
149
+ "credit": {
150
+ "type": "object",
151
+ "properties": {
152
+ "currency": {
153
+ "type": "string",
154
+ "const": "USD"
155
+ },
156
+ "microdollars": {
157
+ "type": "string",
158
+ "pattern": "^(?:0|(?:[1-9]\\d{0,13}|[1-8]\\d{14}|9[01]\\d{13}|92[01]\\d{12}|922[0-2]\\d{11}|9223[0-2]\\d{10}|92233[0-6]\\d{9}|922337[01]\\d{8}|92233720[0-2]\\d{6}|922337203[0-5]\\d{5}|9223372036[0-7]\\d{4}|92233720368[0-4]\\d{3}|922337203685[0-3]\\d{2}|9223372036854[0-6]\\d|92233720368547[0-7])0000)$",
159
+ "description": "A canonical nonnegative integer multiple of 10,000 microdollars, no greater than 9,223,372,036,854,770,000.",
160
+ "maxLength": 19
161
+ },
162
+ "scale": {
163
+ "type": "number",
164
+ "const": 6
165
+ }
166
+ },
167
+ "required": ["currency", "microdollars", "scale"]
168
+ },
169
+ "triggerBelow": {
170
+ "type": "object",
171
+ "properties": {
172
+ "currency": {
173
+ "type": "string",
174
+ "const": "USD"
175
+ },
176
+ "microdollars": {
177
+ "type": "string",
178
+ "pattern": "^(?:0|(?:[1-9]\\d{0,13}|[1-8]\\d{14}|9[01]\\d{13}|92[01]\\d{12}|922[0-2]\\d{11}|9223[0-2]\\d{10}|92233[0-6]\\d{9}|922337[01]\\d{8}|92233720[0-2]\\d{6}|922337203[0-5]\\d{5}|9223372036[0-7]\\d{4}|92233720368[0-4]\\d{3}|922337203685[0-3]\\d{2}|9223372036854[0-6]\\d|92233720368547[0-7])0000)$",
179
+ "description": "A canonical nonnegative integer multiple of 10,000 microdollars, no greater than 9,223,372,036,854,770,000.",
180
+ "maxLength": 19
181
+ },
182
+ "scale": {
183
+ "type": "number",
184
+ "const": 6
185
+ }
186
+ },
187
+ "required": ["currency", "microdollars", "scale"]
188
+ }
189
+ },
190
+ "required": ["ceiling", "credit", "triggerBelow"]
191
+ },
192
+ {
193
+ "type": "null"
194
+ }
195
+ ]
196
+ },
197
+ "effective": {
198
+ "anyOf": [
199
+ {
200
+ "type": "object",
201
+ "properties": {
202
+ "ceiling": {
203
+ "type": "object",
204
+ "properties": {
205
+ "currency": {
206
+ "type": "string",
207
+ "const": "USD"
208
+ },
209
+ "microdollars": {
210
+ "type": "string",
211
+ "pattern": "^(?:0|(?:[1-9]\\d{0,13}|[1-8]\\d{14}|9[01]\\d{13}|92[01]\\d{12}|922[0-2]\\d{11}|9223[0-2]\\d{10}|92233[0-6]\\d{9}|922337[01]\\d{8}|92233720[0-2]\\d{6}|922337203[0-5]\\d{5}|9223372036[0-7]\\d{4}|92233720368[0-4]\\d{3}|922337203685[0-3]\\d{2}|9223372036854[0-6]\\d|92233720368547[0-7])0000)$",
212
+ "description": "A canonical nonnegative integer multiple of 10,000 microdollars, no greater than 9,223,372,036,854,770,000.",
213
+ "maxLength": 19
214
+ },
215
+ "scale": {
216
+ "type": "number",
217
+ "const": 6
218
+ }
219
+ },
220
+ "required": ["currency", "microdollars", "scale"]
221
+ },
222
+ "credit": {
223
+ "type": "object",
224
+ "properties": {
225
+ "currency": {
226
+ "type": "string",
227
+ "const": "USD"
228
+ },
229
+ "microdollars": {
230
+ "type": "string",
231
+ "pattern": "^(?:0|(?:[1-9]\\d{0,13}|[1-8]\\d{14}|9[01]\\d{13}|92[01]\\d{12}|922[0-2]\\d{11}|9223[0-2]\\d{10}|92233[0-6]\\d{9}|922337[01]\\d{8}|92233720[0-2]\\d{6}|922337203[0-5]\\d{5}|9223372036[0-7]\\d{4}|92233720368[0-4]\\d{3}|922337203685[0-3]\\d{2}|9223372036854[0-6]\\d|92233720368547[0-7])0000)$",
232
+ "description": "A canonical nonnegative integer multiple of 10,000 microdollars, no greater than 9,223,372,036,854,770,000.",
233
+ "maxLength": 19
234
+ },
235
+ "scale": {
236
+ "type": "number",
237
+ "const": 6
238
+ }
239
+ },
240
+ "required": ["currency", "microdollars", "scale"]
241
+ },
242
+ "triggerBelow": {
243
+ "type": "object",
244
+ "properties": {
245
+ "currency": {
246
+ "type": "string",
247
+ "const": "USD"
248
+ },
249
+ "microdollars": {
250
+ "type": "string",
251
+ "pattern": "^(?:0|(?:[1-9]\\d{0,13}|[1-8]\\d{14}|9[01]\\d{13}|92[01]\\d{12}|922[0-2]\\d{11}|9223[0-2]\\d{10}|92233[0-6]\\d{9}|922337[01]\\d{8}|92233720[0-2]\\d{6}|922337203[0-5]\\d{5}|9223372036[0-7]\\d{4}|92233720368[0-4]\\d{3}|922337203685[0-3]\\d{2}|9223372036854[0-6]\\d|92233720368547[0-7])0000)$",
252
+ "description": "A canonical nonnegative integer multiple of 10,000 microdollars, no greater than 9,223,372,036,854,770,000.",
253
+ "maxLength": 19
254
+ },
255
+ "scale": {
256
+ "type": "number",
257
+ "const": 6
258
+ }
259
+ },
260
+ "required": ["currency", "microdollars", "scale"]
261
+ }
262
+ },
263
+ "required": ["ceiling", "credit", "triggerBelow"]
264
+ },
265
+ {
266
+ "type": "null"
267
+ }
268
+ ]
269
+ },
270
+ "setupUrl": {
271
+ "type": "string",
272
+ "maxLength": 4096,
273
+ "format": "uri"
274
+ },
275
+ "state": {
276
+ "type": "string",
277
+ "enum": ["disabled", "payment-method-required", "ready"]
278
+ },
279
+ "suspension": {
280
+ "anyOf": [
281
+ {
282
+ "type": "object",
283
+ "properties": {
284
+ "at": {
285
+ "type": "string",
286
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
287
+ },
288
+ "reason": {
289
+ "type": "string",
290
+ "enum": ["authentication-required", "payment-failed"]
291
+ }
292
+ },
293
+ "required": ["at", "reason"]
294
+ },
295
+ {
296
+ "type": "null"
297
+ }
298
+ ]
299
+ }
300
+ },
301
+ "required": [
302
+ "cooldownUntil",
303
+ "desired",
304
+ "effective",
305
+ "state",
306
+ "suspension"
307
+ ]
308
+ },
309
+ "revision": {
310
+ "type": "integer",
311
+ "minimum": 0,
312
+ "maximum": 9007199254740991
313
+ }
314
+ },
315
+ "required": ["ceiling", "currentPeriod", "rule", "revision"]
316
+ },
317
+ "credit": {
318
+ "type": "object",
319
+ "properties": {
320
+ "amountOwed": {
321
+ "type": "object",
322
+ "properties": {
323
+ "currency": {
324
+ "type": "string",
325
+ "const": "USD"
326
+ },
327
+ "microdollars": {
328
+ "type": "string",
329
+ "pattern": "^(?:0|[1-9]\\d*)$"
330
+ },
331
+ "scale": {
332
+ "type": "number",
333
+ "const": 6
334
+ }
335
+ },
336
+ "required": ["currency", "microdollars", "scale"]
337
+ },
338
+ "available": {
339
+ "type": "object",
340
+ "properties": {
341
+ "currency": {
342
+ "type": "string",
343
+ "const": "USD"
344
+ },
345
+ "microdollars": {
346
+ "type": "string",
347
+ "pattern": "^(?:0|[1-9]\\d*)$"
348
+ },
349
+ "scale": {
350
+ "type": "number",
351
+ "const": 6
352
+ }
353
+ },
354
+ "required": ["currency", "microdollars", "scale"]
355
+ },
356
+ "reserved": {
357
+ "type": "object",
358
+ "properties": {
359
+ "currency": {
360
+ "type": "string",
361
+ "const": "USD"
362
+ },
363
+ "microdollars": {
364
+ "type": "string",
365
+ "pattern": "^(?:0|[1-9]\\d*)$"
366
+ },
367
+ "scale": {
368
+ "type": "number",
369
+ "const": 6
370
+ }
371
+ },
372
+ "required": ["currency", "microdollars", "scale"]
373
+ }
374
+ },
375
+ "required": ["amountOwed", "available", "reserved"]
376
+ },
377
+ "freshness": {
378
+ "type": "object",
379
+ "properties": {
380
+ "kind": {
381
+ "type": "string",
382
+ "const": "authoritative"
383
+ }
384
+ },
385
+ "required": ["kind"]
386
+ },
387
+ "paymentOperations": {
388
+ "maxItems": 25,
389
+ "type": "array",
390
+ "items": {
391
+ "type": "object",
392
+ "properties": {
393
+ "createdAt": {
394
+ "type": "string",
395
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
396
+ },
397
+ "credit": {
398
+ "type": "object",
399
+ "properties": {
400
+ "currency": {
401
+ "type": "string",
402
+ "const": "USD"
403
+ },
404
+ "microdollars": {
405
+ "type": "string",
406
+ "pattern": "^(?:0|(?:[1-9]\\d{0,13}|[1-8]\\d{14}|9[01]\\d{13}|92[01]\\d{12}|922[0-2]\\d{11}|9223[0-2]\\d{10}|92233[0-6]\\d{9}|922337[01]\\d{8}|92233720[0-2]\\d{6}|922337203[0-5]\\d{5}|9223372036[0-7]\\d{4}|92233720368[0-4]\\d{3}|922337203685[0-3]\\d{2}|9223372036854[0-6]\\d|92233720368547[0-7])0000)$",
407
+ "description": "A canonical nonnegative integer multiple of 10,000 microdollars, no greater than 9,223,372,036,854,770,000.",
408
+ "maxLength": 19
409
+ },
410
+ "scale": {
411
+ "type": "number",
412
+ "const": 6
413
+ }
414
+ },
415
+ "required": ["currency", "microdollars", "scale"]
416
+ },
417
+ "gross": {
418
+ "anyOf": [
419
+ {
420
+ "type": "object",
421
+ "properties": {
422
+ "currency": {
423
+ "type": "string",
424
+ "const": "USD"
425
+ },
426
+ "microdollars": {
427
+ "type": "string",
428
+ "pattern": "^(?:0|[1-9]\\d*)$"
429
+ },
430
+ "scale": {
431
+ "type": "number",
432
+ "const": 6
433
+ }
434
+ },
435
+ "required": ["currency", "microdollars", "scale"]
436
+ },
437
+ {
438
+ "type": "null"
439
+ }
440
+ ]
441
+ },
442
+ "id": {
443
+ "type": "string",
444
+ "minLength": 1,
445
+ "maxLength": 255
446
+ },
447
+ "kind": {
448
+ "type": "string",
449
+ "enum": ["manual", "automatic"]
450
+ },
451
+ "paymentUrl": {
452
+ "type": "string",
453
+ "maxLength": 4096,
454
+ "format": "uri"
455
+ },
456
+ "reason": {
457
+ "type": "string",
458
+ "pattern": "^[a-z][a-z0-9-]{0,127}$"
459
+ },
460
+ "receiptUrl": {
461
+ "type": "string",
462
+ "maxLength": 4096,
463
+ "format": "uri"
464
+ },
465
+ "state": {
466
+ "type": "string",
467
+ "enum": [
468
+ "pending",
469
+ "paid",
470
+ "failed",
471
+ "authentication-required",
472
+ "action-required",
473
+ "canceled",
474
+ "refunded",
475
+ "reversed",
476
+ "disputed"
477
+ ]
478
+ },
479
+ "tax": {
480
+ "anyOf": [
481
+ {
482
+ "type": "object",
483
+ "properties": {
484
+ "currency": {
485
+ "type": "string",
486
+ "const": "USD"
487
+ },
488
+ "microdollars": {
489
+ "type": "string",
490
+ "pattern": "^(?:0|[1-9]\\d*)$"
491
+ },
492
+ "scale": {
493
+ "type": "number",
494
+ "const": 6
495
+ }
496
+ },
497
+ "required": ["currency", "microdollars", "scale"]
498
+ },
499
+ {
500
+ "type": "null"
501
+ }
502
+ ]
503
+ },
504
+ "taxStatus": {
505
+ "type": "string",
506
+ "enum": ["calculated-at-checkout", "confirmed"]
507
+ },
508
+ "updatedAt": {
509
+ "type": "string",
510
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
511
+ }
512
+ },
513
+ "required": [
514
+ "createdAt",
515
+ "credit",
516
+ "gross",
517
+ "id",
518
+ "kind",
519
+ "state",
520
+ "tax",
521
+ "taxStatus",
522
+ "updatedAt"
523
+ ]
524
+ }
525
+ },
526
+ "subscribedProjectFees": {
527
+ "type": "object",
528
+ "properties": {
529
+ "currency": {
530
+ "type": "string",
531
+ "const": "USD"
532
+ },
533
+ "microdollars": {
534
+ "type": "string",
535
+ "pattern": "^(?:0|[1-9]\\d*)$"
536
+ },
537
+ "scale": {
538
+ "type": "number",
539
+ "const": 6
540
+ }
541
+ },
542
+ "required": ["currency", "microdollars", "scale"]
543
+ }
544
+ },
545
+ "required": [
546
+ "automaticExecutionTopUp",
547
+ "credit",
548
+ "freshness",
549
+ "paymentOperations",
550
+ "subscribedProjectFees"
551
+ ]
552
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "cursor": {
6
+ "type": "string",
7
+ "minLength": 1
8
+ },
9
+ "limit": {
10
+ "default": 25,
11
+ "type": "integer",
12
+ "minimum": 1,
13
+ "maximum": 100
14
+ }
15
+ }
16
+ }
@@ -0,0 +1,88 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "data": {
6
+ "type": "array",
7
+ "items": {
8
+ "type": "object",
9
+ "properties": {
10
+ "id": {
11
+ "type": "string",
12
+ "minLength": 1,
13
+ "maxLength": 255
14
+ },
15
+ "createdAt": {
16
+ "type": "string",
17
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
18
+ },
19
+ "amount": {
20
+ "type": "object",
21
+ "properties": {
22
+ "currency": {
23
+ "type": "string",
24
+ "const": "USD"
25
+ },
26
+ "microdollars": {
27
+ "type": "string",
28
+ "pattern": "^(?:0|[1-9]\\d*)$"
29
+ },
30
+ "scale": {
31
+ "type": "number",
32
+ "const": 6
33
+ }
34
+ },
35
+ "required": ["currency", "microdollars", "scale"]
36
+ },
37
+ "state": {
38
+ "type": "string",
39
+ "enum": ["paid", "open", "void", "uncollectible"]
40
+ },
41
+ "receiptUrl": {
42
+ "type": "string",
43
+ "format": "uri"
44
+ }
45
+ },
46
+ "required": ["id", "createdAt", "amount", "state"]
47
+ }
48
+ },
49
+ "freshness": {
50
+ "oneOf": [
51
+ {
52
+ "type": "object",
53
+ "properties": {
54
+ "kind": {
55
+ "type": "string",
56
+ "const": "authoritative"
57
+ }
58
+ },
59
+ "required": ["kind"]
60
+ },
61
+ {
62
+ "type": "object",
63
+ "properties": {
64
+ "asOf": {
65
+ "type": "string",
66
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
67
+ },
68
+ "kind": {
69
+ "type": "string",
70
+ "const": "projected"
71
+ },
72
+ "lagSeconds": {
73
+ "type": "integer",
74
+ "minimum": 0,
75
+ "maximum": 9007199254740991
76
+ }
77
+ },
78
+ "required": ["asOf", "kind", "lagSeconds"]
79
+ }
80
+ ]
81
+ },
82
+ "nextCursor": {
83
+ "type": "string",
84
+ "minLength": 1
85
+ }
86
+ },
87
+ "required": ["data", "freshness"]
88
+ }