@sess.si/sdk 0.0.0-stage → 0.1.0-rc.10

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 (65) hide show
  1. package/CHANGELOG.md +185 -0
  2. package/LICENSE +201 -0
  3. package/NOTICE +27 -0
  4. package/README.md +327 -2
  5. package/dist/ask.d.ts +161 -0
  6. package/dist/ask.js +499 -0
  7. package/dist/cli/main.d.ts +2 -0
  8. package/dist/cli/main.js +7 -0
  9. package/dist/cli/verify.d.ts +13 -0
  10. package/dist/cli/verify.js +322 -0
  11. package/dist/client.d.ts +19 -0
  12. package/dist/client.js +43 -0
  13. package/dist/commerce/builders.d.ts +99 -0
  14. package/dist/commerce/builders.js +208 -0
  15. package/dist/commerce/currency.d.ts +4 -0
  16. package/dist/commerce/currency.js +25 -0
  17. package/dist/commerce/items.d.ts +119 -0
  18. package/dist/commerce/items.js +280 -0
  19. package/dist/commerce/lint.d.ts +16 -0
  20. package/dist/commerce/lint.js +56 -0
  21. package/dist/errors.d.ts +61 -0
  22. package/dist/errors.js +63 -0
  23. package/dist/generated/openapi.d.ts +8360 -0
  24. package/dist/generated/openapi.js +1 -0
  25. package/dist/index.d.ts +11 -0
  26. package/dist/index.js +6 -0
  27. package/dist/internal/decode.d.ts +20 -0
  28. package/dist/internal/decode.js +380 -0
  29. package/dist/internal/json.d.ts +3 -0
  30. package/dist/internal/json.js +74 -0
  31. package/dist/internal/time.d.ts +10 -0
  32. package/dist/internal/time.js +70 -0
  33. package/dist/internal/version.d.ts +2 -0
  34. package/dist/internal/version.js +2 -0
  35. package/dist/polling.d.ts +11 -0
  36. package/dist/polling.js +137 -0
  37. package/dist/qr/encoder.d.ts +10 -0
  38. package/dist/qr/encoder.js +343 -0
  39. package/dist/qr/index.d.ts +55 -0
  40. package/dist/qr/index.js +150 -0
  41. package/dist/receipts/bundle.d.ts +123 -0
  42. package/dist/receipts/bundle.js +423 -0
  43. package/dist/receipts/index.d.ts +8 -0
  44. package/dist/receipts/index.js +3 -0
  45. package/dist/receipts/json.d.ts +21 -0
  46. package/dist/receipts/json.js +151 -0
  47. package/dist/receipts/key-cache.d.ts +27 -0
  48. package/dist/receipts/key-cache.js +109 -0
  49. package/dist/receipts/renderers.d.ts +57 -0
  50. package/dist/receipts/renderers.js +153 -0
  51. package/dist/receipts/resource.d.ts +38 -0
  52. package/dist/receipts/resource.js +145 -0
  53. package/dist/receipts/verify.d.ts +112 -0
  54. package/dist/receipts/verify.js +339 -0
  55. package/dist/sessions.d.ts +18 -0
  56. package/dist/sessions.js +151 -0
  57. package/dist/transport.d.ts +30 -0
  58. package/dist/transport.js +511 -0
  59. package/dist/types.d.ts +283 -0
  60. package/dist/types.js +8 -0
  61. package/dist/webhook-resource.d.ts +12 -0
  62. package/dist/webhook-resource.js +51 -0
  63. package/dist/webhooks/index.d.ts +21 -0
  64. package/dist/webhooks/index.js +183 -0
  65. package/package.json +82 -4
package/CHANGELOG.md ADDED
@@ -0,0 +1,185 @@
1
+ # Changelog
2
+
3
+ ## 0.1.0-rc.10 — 2026-10-28 (prepared, unpublished)
4
+
5
+ - Short human links: a request identifier holding a run of 22 or more base64url characters (a
6
+ short-link token is 22, as in `/n/<token>`; a `/s/` token 43; either may be glued to more) is
7
+ withheld from `SessError.requestId` and request events. Sess's own `req_<uuid>` ids are kept.
8
+ - A key Sess does not accept (HTTP 401 `UNAUTHORIZED`) now says so: the `SessError` message is
9
+ "Sess did not accept your API key. Check SESS_API_KEY and the portal you made it on." instead of
10
+ the generic "The Sess API returned an error. See the status and code fields." Other messages
11
+ are unchanged. `code`, `status` and `requestId` are still on the error.
12
+ - A `SessError` has an own property only for a field with a value. Printing one (an uncaught
13
+ error, `console.log`, `util.inspect`, `JSON.stringify`) no longer lists absent fields as
14
+ `undefined`; reading an absent field still gives `undefined`. The Node quickstart and the
15
+ README print the message first, then a `Details:` line with the code and request ID.
16
+
17
+ ## 0.1.0-rc.9 — 2026-10-28 (prepared, unpublished)
18
+
19
+ - Commerce: bills as ordinary Surfaces, for Sess's `items` component. Sess takes no payment.
20
+ `money(amount, currency)` checks a whole number of minor units (cents for USD, yen for JPY, fils
21
+ for BHD) and an ISO 4217 code Sess accepts; it never rounds or converts. `items()` builds the
22
+ component with its subtotal, total and amount due computed exactly from the rows, lines and
23
+ payments, so Sess's arithmetic check passes. `invoice()`, `receipt()`, `quote()`, `refund()` and
24
+ `purchaseOrder()` return an `interaction` for `sessions.create()`: the card, the document's
25
+ reference in a record under a plain name, and the buttons Sess requires (Request changes
26
+ whenever a quantity is editable). `refund()` states positive amounts under "Refund total" and
27
+ never a negative total. `lintText()` finds Markdown pipe tables in text and says whether to send
28
+ an items component or a record. Limits match Sess's and reject, never truncate: row name 80,
29
+ detail 160, totals label 40, caption 200, rows 100, totals lines 8 (`ITEMS_LIMITS`); a refusal is
30
+ a `SessError` with code `INVALID_SCHEMA`, outcome `not_sent`, and the value's JSON pointer in
31
+ `field`. A `record` key `__proto__`, `constructor` or `prototype` is refused. New types
32
+ `ItemsComponent` and `ItemTotalRole` (`SurfaceComponent` includes items) and the Advanced
33
+ `locale` on an interactive interaction. Session reads now accept an items component, and a 400
34
+ for too many rows or totals lines carries Sess's sentence.
35
+ - Every request names the SDK in its `User-Agent` header: `sess-sdk/<version> node/<version>`.
36
+ The new client option `userAgent` puts a wrapping client's product tokens first, for example
37
+ `userAgent: 'my-app/1.2.0'` sends `my-app/1.2.0 sess-sdk/0.1.0-rc.9 node/24.21.0`. A value that is
38
+ not product tokens separated by single spaces (at most 256 characters) is a `configuration`
39
+ error before anything is sent.
40
+ - A plan limit is a refusal, not an uncertain outcome. Sess answers a create over the workspace's
41
+ plan with HTTP 429 `PLAN_LIMIT_REACHED`, and nothing is created. The SDK now reports it as
42
+ `kind: 'api'`, `outcome: 'rejected'`, with `code`, `reason` (`monthly_allowance` or
43
+ `active_sessions`), `status: 429` and, for `monthly_allowance`, `retryAfterMs` from
44
+ `Retry-After` (time until the period resets); it is never retried. Before, it was
45
+ `unknown_outcome` ("may have succeeded"). Any other 429 (no code, or `RATE_LIMITED`) is unchanged:
46
+ transient, retried where retries are allowed, and uncertain for a write.
47
+ - The package ships compiled output only: no source maps (`*.js.map`, `*.d.ts.map`) or
48
+ `sourceMappingURL` comments, and no `src/` TypeScript sources (every export and types path is in
49
+ `dist/`). The generated wire types' JSDoc names Sess specifications instead of runtime-repository
50
+ document paths. Every published package's packed bytes now pass a hygiene check (no maps,
51
+ fixtures, non-public hosts, credential-shaped strings or internal references).
52
+
53
+ ## 0.1.0-rc.8 — 2026-10-22 (prepared, unpublished)
54
+
55
+ - Link timing (Decision 0009 Amendment 10). On an interactive Sess link of 20 hours or less the
56
+ person may ask for more time, up to ten times, never past a fixed horizon. Session reads carry
57
+ `link_state` (`live`, `lapsed` or `expired`), `action_expires_horizon`, `extensions_used` and the
58
+ `extensions` history; the Session log (`listEvents()`) lists the same records as
59
+ `link_extensions`, beside the Events, whose shape is unchanged. New types `LinkState` and
60
+ `LinkExtension`. These fields are checked when present; a runtime without link timing omits them
61
+ and is read as before.
62
+ - `waitForResponse()` and `answer()` treat a lapsed link as still open: they keep waiting until the
63
+ horizon and end with `wait_ended` `LINK_EXPIRED` only once a read shows the link expired (two
64
+ seconds past its end on the runtime clock, or, when the end cannot be placed, such as a
65
+ revocation, a later read at least the grace after the first expired read; a short `intervalMs`
66
+ reads again sooner but never ends the wait inside the grace). A live read never ends the wait. Without `link_state` the
67
+ deadline stays final, as in rc.7.
68
+ - Contract snapshot from Sess runtime commit `2f8500e` (see `contract/contract-lock.json`). Besides link timing it carries what Sess master already
69
+ describes: the interactive text limits with `field`, `limit` and `length` on a length error,
70
+ `progress`, the receipt `format` and the renderer identities list. The generated wire types gain
71
+ them; the SDK's public types and behavior in this change are link timing only.
72
+ - Renderer identities (Decision 0009 Amendment 13). A receipt's `surface.renderer_version` now
73
+ verifies when it is an identity this release bundles (`sess-html-form-1`, `sess-html-form-2`;
74
+ `BUNDLED_RENDERER_IDENTITIES`) or one on the issuer's renderer list whose signature verifies
75
+ under the same trusted keys and issuer, so a later Sess page change needs no SDK update. Every
76
+ receipt that verified before still verifies, offline, with no list.
77
+ - `verifyResponse()` (and so `sess.ask()`'s `answer()`) fetch the list from the API origin
78
+ (`/.well-known/sess-renderer-identities.json`) only for an identity this release does not
79
+ bundle. `verifyDecisionReceipt` takes it as `rendererIdentities`; `verifyRendererIdentities`
80
+ verifies a list on its own. A forged, unsigned, re-typed, foreign or malformed list fails with
81
+ `INVALID_RENDERER_LIST`; an identity on no verified list fails with `UNSUPPORTED_RENDERER`, as
82
+ before. New types `RendererIdentitiesDocument`, `RendererIdentity` and `RendererList`.
83
+ `ReceiptClaims`' `surface.renderer_version` is now `string`.
84
+ - Renderer list editions. A list carries a signed `seq` (its edition, higher in every later
85
+ published edition) and `iat` (when that copy was signed); `verifyRendererIdentities` returns
86
+ `{ seq, iat, identities }`. `newerRendererList` orders two authentic lists by `seq`, with
87
+ containment as the cross-check, and refuses lists that disagree (`INVALID_RENDERER_LIST`);
88
+ `BUNDLED_RENDERER_LIST` is the bundled edition 1, and a verified list must agree with it. An
89
+ older list proves the identities it holds, never their absence: an identity it does not hold is
90
+ `UNSUPPORTED_RENDERER`, never accepted by fallback. Each online verification fetches the list
91
+ afresh (the endpoint is served `no-store`); nothing is cached.
92
+ - `sess verify --renderers <file>`: with the issuer's signed list (verified under `--keys` and
93
+ `--issuer`; a list that does not verify exits 2), the bundle's renderer identity must be known
94
+ or listed (otherwise invalid, exit 1). Without it, bundle verification is unchanged.
95
+ - The receipt-v1 specification copy is from Sess commit `a60ca69` (§10, renderer identities with
96
+ `seq` and `iat`).
97
+ - Sess's length limits, in Unicode code points and never truncated: title 80, description 280,
98
+ heading 60, field and option labels 60, field description 160, action label 24, record caption
99
+ 200, record key 40 and string value 200, text 4,000; at most 5 actions. The types' JSDoc gives each field its
100
+ purpose, style and limit.
101
+ - `sess.ask()` checks them before anything is sent: `question` 80, `submit_label` 24, field
102
+ labels and options 60 (were 200).
103
+ - A length error carries `field` (a JSON pointer), `limit` and `length` on `SessError`, from
104
+ `sess.ask()` (`INVALID_QUESTION`) and from Sess (400 `INVALID_SCHEMA`), and its message is
105
+ Sess's own fix. The README and the quickstart show catching it, shortening the value and asking again.
106
+ Surfaces stored before these limits still read as before.
107
+
108
+ ## 0.1.0-rc.7 — 2026-10-18 (prepared, unpublished)
109
+
110
+ Includes everything in the unpublished 0.1.0-rc.6 below, which is not published on its own.
111
+
112
+ - Advanced: a link lifetime. `sessions.create()` and `sess.ask()` take an optional `expires_in`, in
113
+ whole seconds from creation: from 30 up to your plan's link lifetime (Sess checks the ceiling).
114
+ Values below 30 or not whole are refused before anything is sent. Absent: the plan's lifetime,
115
+ as before.
116
+ - The create response carries the link's expiry as `action_expires_at`; `sess.ask()` handles expose
117
+ it as `expiresAt`. Nothing moves it later: not reading, not completing.
118
+ - `waitForResponse()` (and `answer()`) observe the expiry. Once the runtime clock (the response's
119
+ HTTP `Date`, else this machine's) is two seconds past `action_expires_at`, one final read decides:
120
+ an answer accepted before the expiry is returned as the result; otherwise the wait ends with
121
+ `wait_ended`, code `LINK_EXPIRED`. The SDK never completes a Session on its own.
122
+ - `ResponseMeta.serverDate`: the response's HTTP `Date`, when the runtime sends one.
123
+ - Contract snapshot from Sess runtime commit `b48e8e7` (see `contract/contract-lock.json`), with
124
+ `expires_in`, `action_expires_at` on create and the target's `default_expires_in`.
125
+ - `@sess.si/sdk/qr` (S-07): `qr(url, { format: 'svg' | 'png' | 'terminal' })` draws a Sess link as a
126
+ QR code locally (error correction level M, 4-module quiet zone, deterministic, no network call), and
127
+ `printQr(url)` prints "Scan to answer on your phone" and the code on an interactive terminal only:
128
+ never without a TTY, in CI or with `NODE_ENV=production`; `--no-qr` or `{ qr: false }` turn it off
129
+ and `NO_COLOR` draws it without colour. The SVG is one exact tree with the accessible title "QR code
130
+ for this Sess link". The encoder is the Sess renderer's, after Project Nayuki's QR Code generator
131
+ (MIT; see NOTICE). No new dependency; every existing export is unchanged.
132
+
133
+ ## 0.1.0-rc.6 — 2026-10-15
134
+
135
+ - `sess.ask({ question, fields })`: one question with simple typed fields (the MCP `sess_ask`
136
+ shape). It validates locally, creates the Session once and returns its private link before
137
+ waiting. `answer()` verifies the receipt and exact Surface, checks that the answer is still
138
+ current, completes the Session and returns values typed from the field definitions and checked at
139
+ runtime. New types `AskInput`, `AskField`, `AskAnswer`, `AskHandle`, `AskOptions` and
140
+ `AskAnswerOptions`. Every existing export, `verifyDecisionReceipt` and the advanced API are
141
+ unchanged.
142
+ - The README opens with `sess.ask()`; the full Surface API is under "Advanced", unchanged.
143
+ - Wording only: the README's guide list and closing note, and the `0.1.0-rc.3` entry below, no
144
+ longer refer to internal processes or unreleased work.
145
+ - Wording only: the README, the package description and four error messages say "Sess" in plain
146
+ sentences. The README drops the stale manual-refresh caveat (the hosted page now advances between
147
+ rounds by itself) and notes that Sess supplies the trusted workspace for verification. Error
148
+ `kind`, `code` and every other field are unchanged.
149
+
150
+ ## 0.1.0-rc.5 — 2026-10-15
151
+
152
+ - `verifyDecisionBundle` in `@sess.si/sdk/receipts`: offline verification of a bundle-v1 decision
153
+ bundle against the issuer and keys the caller trusts, with the Sess core's checks, order, bounds,
154
+ reasons and result object, proven against the shared conformance corpus. `BUNDLE_LIMITS` exports
155
+ its size bounds. `verifyDecisionReceipt` is unchanged.
156
+ - The `sess` executable: `sess verify <file> --issuer <url> --keys <jwks.json>` prints a short
157
+ summary (or `--json`), exits 0 valid, 1 invalid, 2 usage error, and makes no network calls.
158
+ - Verbatim receipt-v1 and bundle-v1 specifications in the source repository's `docs/spec/`, checked
159
+ against the Sess copies.
160
+ - The README's first screen installs from npm (`@sess.si/sdk@next`), runs the quickstart and says what
161
+ you'll see; it no longer describes installing a candidate tarball. Release status follows it.
162
+
163
+ ## 0.1.0-rc.4 — 2026-10-14
164
+
165
+ Documentation and packaging only; the library source is unchanged from `0.1.0-rc.3`. The README's
166
+ first screen links the runnable plain-Node quickstart (only `SESS_API_KEY` needed; the human link is
167
+ printed before waiting) and points to this changelog and the registry's dist-tags for release status.
168
+
169
+ ## 0.1.0-rc.3 — 2026-10-13
170
+
171
+ Unpublished corrective candidate, the first named `@sess.si/sdk`. Earlier candidates and their recorded hashes keep their historical `@sess/sdk` name; no alias is created. Inherit and validate polling operation budgets, dispose cancelled polling/backoff listeners, and match the runtime replay-key alphabet in transport and durable examples. Extend tracked-source and retained-history scanning with pinned tooling and synthetic controls.
172
+
173
+ ## 0.1.0-rc.2 — 2026-10-13
174
+
175
+ Unpublished corrective candidate. Return actual verified-endpoint/redelivery bodies, restore display/interactive immutable Surface retrieval, count Unicode code points, reject nonprimitive replay options, and validate versioned durable-example checkpoints with credential-scope binding. Narrow array-item schema annotations to the runtime-supported subset.
176
+
177
+ ## 0.1.0-rc.1 — Unreleased
178
+
179
+ - Compiled ESM JavaScript and declarations for the supported owner HTTP API.
180
+ - Exact-revision polling with explicit concurrency, retry and uncertain-write semantics.
181
+ - Offline and client-assisted full decision-receipt verification and raw-byte webhook verification.
182
+ - Form-authoring, durable continuation, webhook-inbox and CommonJS import examples.
183
+ - Reviewed public-contract snapshot, packed-consumer tests and protected OIDC release preparation.
184
+
185
+ This is a release candidate under review. No registry publication is implied.
package/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
package/NOTICE ADDED
@@ -0,0 +1,27 @@
1
+ SESS SDK
2
+ Copyright 2026 UppaGo (Sess)
3
+
4
+ This package is prepared for distribution under the Apache License, Version 2.0.
5
+ It contains generated types from the SESS public HTTP contract and independent client code.
6
+ The hosted SESS runtime and renderer are not included.
7
+
8
+ Runtime dependencies retain their own notices and licenses: jose (MIT),
9
+ canonicalize (Apache-2.0), and standardwebhooks (MIT). They are not bundled.
10
+
11
+ The QR Code encoder in src/qr/encoder.ts is structured after Project Nayuki's QR Code generator
12
+ library (https://www.nayuki.io/page/qr-code-generator-library), used under the MIT License:
13
+
14
+ Copyright (c) Project Nayuki. (MIT License)
15
+
16
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
17
+ associated documentation files (the "Software"), to deal in the Software without restriction,
18
+ including without limitation the rights to use, copy, modify, merge, publish, distribute,
19
+ sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
20
+ furnished to do so, subject to the following conditions:
21
+ - The above copyright notice and this permission notice shall be included in all copies or
22
+ substantial portions of the Software.
23
+ - The Software is provided "as is", without warranty of any kind, express or implied, including
24
+ but not limited to the warranties of merchantability, fitness for a particular purpose and
25
+ noninfringement. In no event shall the authors or copyright holders be liable for any claim,
26
+ damages or other liability, whether in an action of contract, tort or otherwise, arising from,
27
+ out of or in connection with the Software or the use or other dealings in the Software.