@greatwait/contracts 0.2.1 → 0.2.2

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 (46) hide show
  1. package/dist/billing.d.ts +339 -0
  2. package/dist/billing.js +131 -1
  3. package/dist/host-correlation.d.ts +4 -0
  4. package/dist/host-correlation.js +18 -0
  5. package/dist/identifiers.d.ts +2 -0
  6. package/dist/identifiers.js +3 -0
  7. package/dist/index.d.ts +2 -1
  8. package/dist/index.js +2 -1
  9. package/dist/operations.d.ts +514 -0
  10. package/dist/operations.js +93 -1
  11. package/dist/protocol.d.ts +2 -0
  12. package/dist/protocol.js +3 -0
  13. package/dist/scheduling-records.d.ts +4 -0
  14. package/dist/scheduling.d.ts +12 -0
  15. package/dist/scheduling.js +13 -0
  16. package/generated/v1/examples/billing.promotions.response.json +26 -0
  17. package/generated/v1/examples/billing.redeem.request.json +4 -0
  18. package/generated/v1/examples/billing.redeem.response.json +43 -0
  19. package/generated/v1/manifest.json +56 -0
  20. package/generated/v1/openapi.json +2749 -89
  21. package/generated/v1/policy-matrix.json +14 -0
  22. package/generated/v1/schemas/billing.change.response.json +64 -0
  23. package/generated/v1/schemas/billing.projects.response.json +64 -0
  24. package/generated/v1/schemas/billing.promotions.response.json +188 -0
  25. package/generated/v1/schemas/billing.quote.response.json +51 -0
  26. package/generated/v1/schemas/billing.reconcile.response.json +324 -0
  27. package/generated/v1/schemas/billing.redeem.request-headers.json +13 -0
  28. package/generated/v1/schemas/billing.redeem.request.json +22 -0
  29. package/generated/v1/schemas/billing.redeem.response-headers.json +10 -0
  30. package/generated/v1/schemas/billing.redeem.response.json +326 -0
  31. package/generated/v1/schemas/billing.summary.response.json +324 -0
  32. package/generated/v1/schemas/executions.list.query.json +12 -0
  33. package/generated/v1/schemas/schedules.archive.response.json +17 -0
  34. package/generated/v1/schemas/schedules.cancel.response.json +17 -0
  35. package/generated/v1/schemas/schedules.create.request.json +17 -0
  36. package/generated/v1/schemas/schedules.create.response.json +17 -0
  37. package/generated/v1/schemas/schedules.list.query.json +12 -0
  38. package/generated/v1/schemas/schedules.list.response.json +17 -0
  39. package/generated/v1/schemas/schedules.pause.response.json +17 -0
  40. package/generated/v1/schemas/schedules.read.response.json +17 -0
  41. package/generated/v1/schemas/schedules.replace.request.json +17 -0
  42. package/generated/v1/schemas/schedules.replace.response.json +17 -0
  43. package/generated/v1/schemas/schedules.resume.response.json +17 -0
  44. package/generated/v1/snippets/billing.promotions.json +6 -0
  45. package/generated/v1/snippets/billing.redeem.json +6 -0
  46. package/package.json +1 -1
@@ -314,6 +314,23 @@
314
314
  "minLength": 1,
315
315
  "maxLength": 120
316
316
  },
317
+ "external_identifier": {
318
+ "type": "string",
319
+ "minLength": 1,
320
+ "maxLength": 256,
321
+ "description": "Host application identifier, matched exactly and case-sensitively; at most 256 UTF-8 bytes. Readable by schedule readers; do not include secrets."
322
+ },
323
+ "tags": {
324
+ "maxItems": 16,
325
+ "type": "array",
326
+ "items": {
327
+ "type": "string",
328
+ "minLength": 1,
329
+ "maxLength": 64,
330
+ "description": "An exact, case-sensitive tag of at most 64 UTF-8 bytes."
331
+ },
332
+ "description": "Up to 16 distinct searchable tags. Omission preserves tags on replacement; [] clears them."
333
+ },
317
334
  "partitionKey": {
318
335
  "type": "string",
319
336
  "minLength": 1,
@@ -314,6 +314,23 @@
314
314
  "minLength": 1,
315
315
  "maxLength": 120
316
316
  },
317
+ "external_identifier": {
318
+ "type": "string",
319
+ "minLength": 1,
320
+ "maxLength": 256,
321
+ "description": "Host application identifier, matched exactly and case-sensitively; at most 256 UTF-8 bytes. Readable by schedule readers; do not include secrets."
322
+ },
323
+ "tags": {
324
+ "maxItems": 16,
325
+ "type": "array",
326
+ "items": {
327
+ "type": "string",
328
+ "minLength": 1,
329
+ "maxLength": 64,
330
+ "description": "An exact, case-sensitive tag of at most 64 UTF-8 bytes."
331
+ },
332
+ "description": "Up to 16 distinct searchable tags. Omission preserves tags on replacement; [] clears them."
333
+ },
317
334
  "partitionKey": {
318
335
  "type": "string",
319
336
  "minLength": 1,
@@ -210,6 +210,23 @@
210
210
  "minLength": 1,
211
211
  "maxLength": 120
212
212
  },
213
+ "external_identifier": {
214
+ "type": "string",
215
+ "minLength": 1,
216
+ "maxLength": 256,
217
+ "description": "Host application identifier, matched exactly and case-sensitively; at most 256 UTF-8 bytes. Readable by schedule readers; do not include secrets."
218
+ },
219
+ "tags": {
220
+ "maxItems": 16,
221
+ "type": "array",
222
+ "items": {
223
+ "type": "string",
224
+ "minLength": 1,
225
+ "maxLength": 64,
226
+ "description": "An exact, case-sensitive tag of at most 64 UTF-8 bytes."
227
+ },
228
+ "description": "Up to 16 distinct searchable tags. Omission preserves tags on replacement; [] clears them."
229
+ },
213
230
  "timeZone": {
214
231
  "type": "string",
215
232
  "minLength": 1
@@ -314,6 +314,23 @@
314
314
  "minLength": 1,
315
315
  "maxLength": 120
316
316
  },
317
+ "external_identifier": {
318
+ "type": "string",
319
+ "minLength": 1,
320
+ "maxLength": 256,
321
+ "description": "Host application identifier, matched exactly and case-sensitively; at most 256 UTF-8 bytes. Readable by schedule readers; do not include secrets."
322
+ },
323
+ "tags": {
324
+ "maxItems": 16,
325
+ "type": "array",
326
+ "items": {
327
+ "type": "string",
328
+ "minLength": 1,
329
+ "maxLength": 64,
330
+ "description": "An exact, case-sensitive tag of at most 64 UTF-8 bytes."
331
+ },
332
+ "description": "Up to 16 distinct searchable tags. Omission preserves tags on replacement; [] clears them."
333
+ },
317
334
  "partitionKey": {
318
335
  "type": "string",
319
336
  "minLength": 1,
@@ -12,6 +12,18 @@
12
12
  "minimum": 1,
13
13
  "maximum": 100
14
14
  },
15
+ "external_identifier": {
16
+ "type": "string",
17
+ "minLength": 1,
18
+ "maxLength": 256,
19
+ "description": "Host application identifier, matched exactly and case-sensitively; at most 256 UTF-8 bytes. Readable by schedule readers; do not include secrets."
20
+ },
21
+ "tag": {
22
+ "type": "string",
23
+ "minLength": 1,
24
+ "maxLength": 64,
25
+ "description": "An exact, case-sensitive tag of at most 64 UTF-8 bytes."
26
+ },
15
27
  "dueBefore": {
16
28
  "type": "string",
17
29
  "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
@@ -234,6 +234,23 @@
234
234
  "minLength": 1,
235
235
  "maxLength": 120
236
236
  },
237
+ "external_identifier": {
238
+ "type": "string",
239
+ "minLength": 1,
240
+ "maxLength": 256,
241
+ "description": "Host application identifier, matched exactly and case-sensitively; at most 256 UTF-8 bytes. Readable by schedule readers; do not include secrets."
242
+ },
243
+ "tags": {
244
+ "maxItems": 16,
245
+ "type": "array",
246
+ "items": {
247
+ "type": "string",
248
+ "minLength": 1,
249
+ "maxLength": 64,
250
+ "description": "An exact, case-sensitive tag of at most 64 UTF-8 bytes."
251
+ },
252
+ "description": "Up to 16 distinct searchable tags. Omission preserves tags on replacement; [] clears them."
253
+ },
237
254
  "partitionKey": {
238
255
  "type": "string",
239
256
  "minLength": 1,
@@ -314,6 +314,23 @@
314
314
  "minLength": 1,
315
315
  "maxLength": 120
316
316
  },
317
+ "external_identifier": {
318
+ "type": "string",
319
+ "minLength": 1,
320
+ "maxLength": 256,
321
+ "description": "Host application identifier, matched exactly and case-sensitively; at most 256 UTF-8 bytes. Readable by schedule readers; do not include secrets."
322
+ },
323
+ "tags": {
324
+ "maxItems": 16,
325
+ "type": "array",
326
+ "items": {
327
+ "type": "string",
328
+ "minLength": 1,
329
+ "maxLength": 64,
330
+ "description": "An exact, case-sensitive tag of at most 64 UTF-8 bytes."
331
+ },
332
+ "description": "Up to 16 distinct searchable tags. Omission preserves tags on replacement; [] clears them."
333
+ },
317
334
  "partitionKey": {
318
335
  "type": "string",
319
336
  "minLength": 1,
@@ -314,6 +314,23 @@
314
314
  "minLength": 1,
315
315
  "maxLength": 120
316
316
  },
317
+ "external_identifier": {
318
+ "type": "string",
319
+ "minLength": 1,
320
+ "maxLength": 256,
321
+ "description": "Host application identifier, matched exactly and case-sensitively; at most 256 UTF-8 bytes. Readable by schedule readers; do not include secrets."
322
+ },
323
+ "tags": {
324
+ "maxItems": 16,
325
+ "type": "array",
326
+ "items": {
327
+ "type": "string",
328
+ "minLength": 1,
329
+ "maxLength": 64,
330
+ "description": "An exact, case-sensitive tag of at most 64 UTF-8 bytes."
331
+ },
332
+ "description": "Up to 16 distinct searchable tags. Omission preserves tags on replacement; [] clears them."
333
+ },
317
334
  "partitionKey": {
318
335
  "type": "string",
319
336
  "minLength": 1,
@@ -210,6 +210,23 @@
210
210
  "minLength": 1,
211
211
  "maxLength": 120
212
212
  },
213
+ "external_identifier": {
214
+ "type": "string",
215
+ "minLength": 1,
216
+ "maxLength": 256,
217
+ "description": "Host application identifier, matched exactly and case-sensitively; at most 256 UTF-8 bytes. Readable by schedule readers; do not include secrets."
218
+ },
219
+ "tags": {
220
+ "maxItems": 16,
221
+ "type": "array",
222
+ "items": {
223
+ "type": "string",
224
+ "minLength": 1,
225
+ "maxLength": 64,
226
+ "description": "An exact, case-sensitive tag of at most 64 UTF-8 bytes."
227
+ },
228
+ "description": "Up to 16 distinct searchable tags. Omission preserves tags on replacement; [] clears them."
229
+ },
213
230
  "timeZone": {
214
231
  "type": "string",
215
232
  "minLength": 1
@@ -314,6 +314,23 @@
314
314
  "minLength": 1,
315
315
  "maxLength": 120
316
316
  },
317
+ "external_identifier": {
318
+ "type": "string",
319
+ "minLength": 1,
320
+ "maxLength": 256,
321
+ "description": "Host application identifier, matched exactly and case-sensitively; at most 256 UTF-8 bytes. Readable by schedule readers; do not include secrets."
322
+ },
323
+ "tags": {
324
+ "maxItems": 16,
325
+ "type": "array",
326
+ "items": {
327
+ "type": "string",
328
+ "minLength": 1,
329
+ "maxLength": 64,
330
+ "description": "An exact, case-sensitive tag of at most 64 UTF-8 bytes."
331
+ },
332
+ "description": "Up to 16 distinct searchable tags. Omission preserves tags on replacement; [] clears them."
333
+ },
317
334
  "partitionKey": {
318
335
  "type": "string",
319
336
  "minLength": 1,
@@ -314,6 +314,23 @@
314
314
  "minLength": 1,
315
315
  "maxLength": 120
316
316
  },
317
+ "external_identifier": {
318
+ "type": "string",
319
+ "minLength": 1,
320
+ "maxLength": 256,
321
+ "description": "Host application identifier, matched exactly and case-sensitively; at most 256 UTF-8 bytes. Readable by schedule readers; do not include secrets."
322
+ },
323
+ "tags": {
324
+ "maxItems": 16,
325
+ "type": "array",
326
+ "items": {
327
+ "type": "string",
328
+ "minLength": 1,
329
+ "maxLength": 64,
330
+ "description": "An exact, case-sensitive tag of at most 64 UTF-8 bytes."
331
+ },
332
+ "description": "Up to 16 distinct searchable tags. Omission preserves tags on replacement; [] clears them."
333
+ },
317
334
  "partitionKey": {
318
335
  "type": "string",
319
336
  "minLength": 1,
@@ -0,0 +1,6 @@
1
+ {
2
+ "curl": "curl -sS -X GET \"$GREATWAIT_API_URL/v1/billing/promotions\" \\\n --variable %GREATWAIT_API_KEY \\\n --expand-header \"Authorization: Bearer {{GREATWAIT_API_KEY}}\"",
3
+ "environments": ["live"],
4
+ "javascript": "import { createGreatwaitClient } from \"@greatwait/api-client\";\n\nconst greatwait = createGreatwaitClient({\n baseUrl: process.env.GREATWAIT_API_URL,\n credential: process.env.GREATWAIT_API_KEY,\n fetch,\n});\n\nconst result = await greatwait.request(\"billing_promotions\");",
5
+ "mcp": "// Any MCP client, against $GREATWAIT_API_URL/mcp.\n{\n \"arguments\": {},\n \"name\": \"billing_promotions\"\n}"
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "curl": "curl -sS -X POST \"$GREATWAIT_API_URL/v1/billing/promotions/redeem\" \\\n --variable %GREATWAIT_API_KEY \\\n --expand-header \"Authorization: Bearer {{GREATWAIT_API_KEY}}\" \\\n -H 'Content-Type: application/json' \\\n -H 'Idempotency-Key: $GREATWAIT_IDEMPOTENCY_KEY' \\\n --data-binary '{\"code\":\"LAUNCH-2026\",\"confirmed\":true}'",
3
+ "environments": ["live"],
4
+ "javascript": "import { createGreatwaitClient } from \"@greatwait/api-client\";\n\nconst greatwait = createGreatwaitClient({\n baseUrl: process.env.GREATWAIT_API_URL,\n credential: process.env.GREATWAIT_API_KEY,\n fetch,\n});\n\nconst body = {\n \"code\": \"LAUNCH-2026\",\n \"confirmed\": true\n};\n\nconst result = await greatwait.request(\"billing_redeem\", body, { \"Idempotency-Key\": process.env.GREATWAIT_IDEMPOTENCY_KEY });",
5
+ "mcp": "// Any MCP client, against $GREATWAIT_API_URL/mcp.\n{\n \"arguments\": {\n \"Idempotency-Key\": \"$IDEMPOTENCY_KEY\",\n \"code\": \"LAUNCH-2026\",\n \"confirmed\": true\n },\n \"name\": \"billing_redeem\"\n}"
6
+ }
package/package.json CHANGED
@@ -154,5 +154,5 @@
154
154
  },
155
155
  "sideEffects": false,
156
156
  "type": "module",
157
- "version": "0.2.1"
157
+ "version": "0.2.2"
158
158
  }