@sinatra-dev/sdk 0.0.0 → 0.1.1

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 CHANGED
@@ -144,6 +144,7 @@ npm run generate # regenerates src/generated from openapi.json
144
144
  npm run typecheck && npm run build
145
145
  npm test # wrapper tests against a local stub server
146
146
  npm run test:contract # every operation against a Prism mock of openapi.json
147
+ npm run test:contract:future # the same, with new fields added to the spec
147
148
  npm run test:version # scripts/next-version.sh
148
149
  ```
149
150
 
package/dist/index.d.cts CHANGED
@@ -416,7 +416,7 @@ type DelegateTicketResponse = {
416
416
  */
417
417
  type Error$1 = {
418
418
  /**
419
- * A machine-readable code, such as `invalid_prompt`. Branch on this, not on `reason`. New codes can appear. Known codes: `assigned_to_other`, `bad_request`, `capacity_full`, `github_identity_required`, `github_not_connected`, `github_rate_limited`, `idempotency_conflict`, `internal_error`, `invalid_body`, `invalid_cursor`, `invalid_idempotency_key`, `invalid_limit`, `invalid_prompt`, `invalid_repo`, `invalid_status`, `invalid_title`, `invalid_token`, `issue_closed`, `issue_not_found`, `linear_app_user_missing`, `linear_identity_unlinked`, `linear_not_connected`, `not_an_api_task`, `not_an_issue`, `not_found`, `not_running`, `payment_required`, `repo_disabled`, `unavailable`.
419
+ * A machine-readable code, such as `invalid_prompt`. Branch on this, not on `reason`. New codes can appear. Known codes: `assigned_to_other`, `bad_request`, `capacity_full`, `github_identity_required`, `github_not_connected`, `github_rate_limited`, `idempotency_conflict`, `internal_error`, `invalid_body`, `invalid_cursor`, `invalid_idempotency_key`, `invalid_limit`, `invalid_prompt`, `invalid_repo`, `invalid_status`, `invalid_title`, `invalid_token`, `issue_closed`, `issue_not_found`, `linear_app_user_missing`, `linear_identity_unlinked`, `linear_not_connected`, `linear_reconnect_required`, `not_an_api_task`, `not_an_issue`, `not_found`, `not_running`, `payment_required`, `repo_disabled`, `unavailable`.
420
420
  */
421
421
  error: string;
422
422
  /**
@@ -480,6 +480,10 @@ type Me = {
480
480
  * The user's name, if they have one.
481
481
  */
482
482
  name: string | null;
483
+ /**
484
+ * The user's email address: the one they sign in with by email, or their primary GitHub email.
485
+ */
486
+ email: string;
483
487
  };
484
488
  /**
485
489
  * The workspaces the user belongs to, ordered by name.
package/dist/index.d.ts CHANGED
@@ -416,7 +416,7 @@ type DelegateTicketResponse = {
416
416
  */
417
417
  type Error$1 = {
418
418
  /**
419
- * A machine-readable code, such as `invalid_prompt`. Branch on this, not on `reason`. New codes can appear. Known codes: `assigned_to_other`, `bad_request`, `capacity_full`, `github_identity_required`, `github_not_connected`, `github_rate_limited`, `idempotency_conflict`, `internal_error`, `invalid_body`, `invalid_cursor`, `invalid_idempotency_key`, `invalid_limit`, `invalid_prompt`, `invalid_repo`, `invalid_status`, `invalid_title`, `invalid_token`, `issue_closed`, `issue_not_found`, `linear_app_user_missing`, `linear_identity_unlinked`, `linear_not_connected`, `not_an_api_task`, `not_an_issue`, `not_found`, `not_running`, `payment_required`, `repo_disabled`, `unavailable`.
419
+ * A machine-readable code, such as `invalid_prompt`. Branch on this, not on `reason`. New codes can appear. Known codes: `assigned_to_other`, `bad_request`, `capacity_full`, `github_identity_required`, `github_not_connected`, `github_rate_limited`, `idempotency_conflict`, `internal_error`, `invalid_body`, `invalid_cursor`, `invalid_idempotency_key`, `invalid_limit`, `invalid_prompt`, `invalid_repo`, `invalid_status`, `invalid_title`, `invalid_token`, `issue_closed`, `issue_not_found`, `linear_app_user_missing`, `linear_identity_unlinked`, `linear_not_connected`, `linear_reconnect_required`, `not_an_api_task`, `not_an_issue`, `not_found`, `not_running`, `payment_required`, `repo_disabled`, `unavailable`.
420
420
  */
421
421
  error: string;
422
422
  /**
@@ -480,6 +480,10 @@ type Me = {
480
480
  * The user's name, if they have one.
481
481
  */
482
482
  name: string | null;
483
+ /**
484
+ * The user's email address: the one they sign in with by email, or their primary GitHub email.
485
+ */
486
+ email: string;
483
487
  };
484
488
  /**
485
489
  * The workspaces the user belongs to, ordered by name.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sinatra-dev/sdk",
3
- "version": "0.0.0",
3
+ "version": "0.1.1",
4
4
  "description": "TypeScript client for the Sinatra API: start, follow and stop Sinatra tasks, and delegate Linear and GitHub issues.",
5
5
  "keywords": [
6
6
  "sinatra",
@@ -58,7 +58,8 @@
58
58
  "smoke": "node scripts/smoke.mjs",
59
59
  "prepack": "npm run build",
60
60
  "check:package": "publint --strict && attw --pack . --profile node16",
61
- "tools": "bash scripts/install-oasdiff.sh"
61
+ "tools": "bash scripts/install-oasdiff.sh",
62
+ "test:contract:future": "mkdir -p .tools && jq -f test/contract/future-fields.jq openapi.json > .tools/future-openapi.json && CONTRACT_SPEC=.tools/future-openapi.json node scripts/contract.mjs"
62
63
  },
63
64
  "devDependencies": {
64
65
  "@arethetypeswrong/cli": "0.18.5",