@isnap/sdk 1.3.0-next.99 → 1.4.0-next.203

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 (42) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/README.md +1 -1
  3. package/dist/client.d.ts +14 -3
  4. package/dist/client.d.ts.map +1 -1
  5. package/dist/client.js +16 -3
  6. package/dist/client.js.map +1 -1
  7. package/dist/generated/openapi.d.ts +2474 -937
  8. package/dist/index.d.ts +8 -4
  9. package/dist/index.d.ts.map +1 -1
  10. package/dist/index.js +3 -1
  11. package/dist/index.js.map +1 -1
  12. package/dist/resources/apps.d.ts +31 -0
  13. package/dist/resources/apps.d.ts.map +1 -0
  14. package/dist/resources/apps.js +29 -0
  15. package/dist/resources/apps.js.map +1 -0
  16. package/dist/resources/lines.d.ts +206 -6
  17. package/dist/resources/lines.d.ts.map +1 -1
  18. package/dist/resources/lines.js +215 -6
  19. package/dist/resources/lines.js.map +1 -1
  20. package/dist/resources/macos-sessions.d.ts +48 -0
  21. package/dist/resources/macos-sessions.d.ts.map +1 -0
  22. package/dist/resources/macos-sessions.js +51 -0
  23. package/dist/resources/macos-sessions.js.map +1 -0
  24. package/dist/resources/preorders.d.ts +31 -8
  25. package/dist/resources/preorders.d.ts.map +1 -1
  26. package/dist/resources/preorders.js +31 -8
  27. package/dist/resources/preorders.js.map +1 -1
  28. package/dist/resources/webhooks.d.ts +1 -1
  29. package/dist/resources/webhooks.js +1 -1
  30. package/dist/version.d.ts +2 -2
  31. package/dist/version.d.ts.map +1 -1
  32. package/dist/version.js +13 -5
  33. package/dist/version.js.map +1 -1
  34. package/dist/webhooks/types.d.ts +46 -3
  35. package/dist/webhooks/types.d.ts.map +1 -1
  36. package/dist/webhooks/types.js +3 -0
  37. package/dist/webhooks/types.js.map +1 -1
  38. package/dist/webhooks/verify.d.ts +22 -9
  39. package/dist/webhooks/verify.d.ts.map +1 -1
  40. package/dist/webhooks/verify.js +101 -29
  41. package/dist/webhooks/verify.js.map +1 -1
  42. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -6,29 +6,33 @@ export { APIConnectionError, APIError, AuthenticationError, BadRequestError, Con
6
6
  export type { APIErrorMeta } from './errors.js';
7
7
  export type { ErrorEnvelope, ErrorIssue, HttpMethod, RequestOptions } from './types.js';
8
8
  export type { RetryInfo } from './retry.js';
9
+ export { AppsResource } from './resources/apps.js';
9
10
  export { AreaCodesResource } from './resources/area-codes.js';
10
11
  export { AttachmentsResource } from './resources/attachments.js';
11
12
  export { ByodResource } from './resources/byod.js';
12
13
  export { ChatsResource } from './resources/chats.js';
13
14
  export { LinesResource } from './resources/lines.js';
14
15
  export { LookupResource } from './resources/lookup.js';
16
+ export { MacosSessionsResource } from './resources/macos-sessions.js';
15
17
  export { MessagesResource } from './resources/messages.js';
16
18
  export { PreOrdersResource } from './resources/preorders.js';
17
19
  export { TrialResource } from './resources/trial.js';
18
20
  export { WebhooksResource } from './resources/webhooks.js';
21
+ export type { AppDownloadEntry, AppManifest } from './resources/apps.js';
19
22
  export type { AreaCode, AreaCodes, Country, ListAreaCodesQuery } from './resources/area-codes.js';
20
23
  export type { Chat, ChatMarkRead, ChatTypingStart, ChatTypingStop, ListChatsQuery, MarkReadBody, ShareContactCardBody, ShareContactCardResult, TypingStartBody } from './resources/chats.js';
21
- export type { ActivateLineBody, AssignLineBody, Line, LineConfigPatch, LineConfigResponseData, LineHealth, LineList, ListLinesQuery, ListQueueQuery, MintSharedLineBody, MyLines, PatchLineBody, QueueResponseData, QuotaSnapshot, TransferOwnershipBody } from './resources/lines.js';
24
+ export type { ActivateLineBody, AssignLineBody, Line, LineConfigPatch, LineConfigResponseData, LineHealth, LineList, ListLinesQuery, ListQueueQuery, MintSharedLineBody, MyLines, PatchLineBody, QueueResponseData, QuotaSnapshot, SetLineAnniversaryBody, SetLineVariantBody, TerminateLineBody, TransferOwnershipBody } from './resources/lines.js';
22
25
  export type { LookupRequest, LookupResult } from './resources/lookup.js';
26
+ export type { MacosSession } from './resources/macos-sessions.js';
23
27
  export type { ListMessagesQuery, Message, Reaction, ReactionRemoval, ReactionType, SendMessageBody, SendReactionBody } from './resources/messages.js';
24
28
  export type { Attachment, CreateAttachmentBody, CreateAttachmentResponse, UploadInput, UploadMetadata, UploadOptions } from './resources/attachments.js';
25
29
  export type { ByodPairBody, ByodPairResponse } from './resources/byod.js';
26
30
  export type { CreatePreOrderBody, ListPreOrdersQuery, PreOrder, PreOrderListData, PreOrderStatus } from './resources/preorders.js';
27
- export type { TrialActivityData, TrialInitBody, TrialInitData, TrialStatusData } from './resources/trial.js';
31
+ export type { TrialActivityData, TrialInitBody, TrialInitData, TrialRevokeBody, TrialRevokeData, TrialStatusData } from './resources/trial.js';
28
32
  export type { CreateWebhookBody, ListDeliveriesQuery, ListEventsQuery, UpdateWebhookBody, Webhook, WebhookDelivery, WebhookDeliveryReplay, WebhookEventItem, WebhookList, WebhookRotateSecret } from './resources/webhooks.js';
29
33
  export { parseWebhookEvent } from './webhooks/parse.js';
30
34
  export { verifyWebhook } from './webhooks/verify.js';
31
35
  export type { VerifyWebhookOptions } from './webhooks/verify.js';
32
- export { isAdminEvent, isBindingEvent, isLineEvent, isMessageEvent, isPreOrderEvent, isReactionEvent, isTrialEvent, isTypingIndicatorEvent } from './webhooks/types.js';
33
- export type { AdminEvent, AdminEventType, BindingEvent, BindingEventType, LineEvent, LineEventType, MessageEvent, MessageEventType, PreOrderEvent, PreOrderEventType, ReactionEvent, ReactionEventData, ReactionEventType, TrialEvent, TrialEventType, TypingIndicatorEvent, TypingIndicatorEventType, WebhookEvent, WebhookEventBase } from './webhooks/types.js';
36
+ export { isAdminEvent, isBindingEvent, isLineEvent, isMacosSessionEvent, isMessageEvent, isPreOrderEvent, isReactionEvent, isTrialEvent, isTypingIndicatorEvent } from './webhooks/types.js';
37
+ export type { AdminEvent, AdminEventType, BindingEvent, BindingEventType, LineEvent, LineEventType, MacosSessionEvent, MacosSessionEventType, MessageEvent, MessageEventType, PreOrderEvent, PreOrderEventType, ReactionEvent, ReactionEventData, ReactionEventType, TrialEvent, TrialEventType, TypingIndicatorEvent, TypingIndicatorEventType, WebhookEvent, WebhookEventBase } from './webhooks/types.js';
34
38
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AACzC,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAC5D,YAAY,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAC/C,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAC3D,OAAO,EACL,kBAAkB,EAClB,QAAQ,EACR,mBAAmB,EACnB,eAAe,EACf,aAAa,EACb,SAAS,EACT,mBAAmB,EACnB,aAAa,EACb,oBAAoB,EACpB,qBAAqB,EACrB,kBAAkB,EAClB,cAAc,EACd,uBAAuB,EACvB,wBAAwB,EACxB,qBAAqB,EACtB,MAAM,aAAa,CAAA;AACpB,YAAY,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAC/C,YAAY,EAAE,aAAa,EAAE,UAAU,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AACvF,YAAY,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAE3C,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAA;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,y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ACf,iBAAiB,EACjB,OAAO,EACP,eAAe,EACf,qBAAqB,EACrB,gBAAgB,EAChB,WAAW,EACX,mBAAmB,EACpB,MAAM,yBAAyB,CAAA;AAEhC,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACpD,YAAY,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAChE,OAAO,EACL,YAAY,EACZ,cAAc,EACd,WAAW,EACX,cAAc,EACd,eAAe,EACf,eAAe,EACf,YAAY,EACZ,sBAAsB,EACvB,MAAM,qBAAqB,CAAA;AAC5B,YAAY,EACV,UAAU,EACV,cAAc,EACd,YAAY,EACZ,gBAAgB,EAChB,SAAS,EACT,aAAa,EACb,YAAY,EACZ,gBAAgB,EAChB,aAAa,EACb,iBAAiB,EACjB,aAAa,EACb,iBAAiB,EACjB,iBAAiB,EACjB,UAAU,EACV,cAAc,EACd,oBAAoB,EACpB,wBAAwB,EACxB,YAAY,EACZ,gBAAgB,EACjB,MAAM,qBAAqB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AACzC,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAC5D,YAAY,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAC/C,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAC3D,OAAO,EACL,kBAAkB,EAClB,QAAQ,EACR,mBAAmB,EACnB,eAAe,EACf,aAAa,EACb,SAAS,EACT,mBAAmB,EACnB,aAAa,EACb,oBAAoB,EACpB,qBAAqB,EACrB,kBAAkB,EAClB,cAAc,EACd,uBAAuB,EACvB,wBAAwB,EACxB,qBAAqB,EACtB,MAAM,aAAa,CAAA;AACpB,YAAY,EAAE,YAAY,EAAE,MAAM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cAAc,EACd,YAAY,EACZ,gBAAgB,EAChB,SAAS,EACT,aAAa,EACb,iBAAiB,EACjB,qBAAqB,EACrB,YAAY,EACZ,gBAAgB,EAChB,aAAa,EACb,iBAAiB,EACjB,aAAa,EACb,iBAAiB,EACjB,iBAAiB,EACjB,UAAU,EACV,cAAc,EACd,oBAAoB,EACpB,wBAAwB,EACxB,YAAY,EACZ,gBAAgB,EACjB,MAAM,qBAAqB,CAAA"}
package/dist/index.js CHANGED
@@ -1,17 +1,19 @@
1
1
  export { ISnapClient } from './client.js';
2
2
  export { SDK_VERSION, MIN_API_VERSION } from './version.js';
3
3
  export { APIConnectionError, APIError, AuthenticationError, BadRequestError, ConflictError, GoneError, InternalServerError, NotFoundError, PaymentRequiredError, PermissionDeniedError, QuotaExceededError, RateLimitError, ServiceUnavailableError, UnprocessableEntityError, WebhookSignatureError } from './errors.js';
4
+ export { AppsResource } from './resources/apps.js';
4
5
  export { AreaCodesResource } from './resources/area-codes.js';
5
6
  export { AttachmentsResource } from './resources/attachments.js';
6
7
  export { ByodResource } from './resources/byod.js';
7
8
  export { ChatsResource } from './resources/chats.js';
8
9
  export { LinesResource } from './resources/lines.js';
9
10
  export { LookupResource } from './resources/lookup.js';
11
+ export { MacosSessionsResource } from './resources/macos-sessions.js';
10
12
  export { MessagesResource } from './resources/messages.js';
11
13
  export { PreOrdersResource } from './resources/preorders.js';
12
14
  export { TrialResource } from './resources/trial.js';
13
15
  export { WebhooksResource } from './resources/webhooks.js';
14
16
  export { parseWebhookEvent } from './webhooks/parse.js';
15
17
  export { verifyWebhook } from './webhooks/verify.js';
16
- export { isAdminEvent, isBindingEvent, isLineEvent, isMessageEvent, isPreOrderEvent, isReactionEvent, isTrialEvent, isTypingIndicatorEvent } from './webhooks/types.js';
18
+ export { isAdminEvent, isBindingEvent, isLineEvent, isMacosSessionEvent, isMessageEvent, isPreOrderEvent, isReactionEvent, isTrialEvent, isTypingIndicatorEvent } from './webhooks/types.js';
17
19
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAGzC,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAC3D,OAAO,EACL,kBAAkB,EAClB,QAAQ,EACR,mBAAmB,EACnB,eAAe,EACf,aAAa,EACb,SAAS,EACT,mBAAmB,EACnB,aAAa,EACb,oBAAoB,EACpB,qBAAqB,EACrB,kBAAkB,EAClB,cAAc,EACd,uBAAuB,EACvB,wBAAwB,EACxB,qBAAqB,EACtB,MAAM,aAAa,CAAA;AAKpB,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAA;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAkF1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAEpD,OAAO,EACL,YAAY,EACZ,cAAc,EACd,WAAW,EACX,cAAc,EACd,eAAe,EACf,eAAe,EACf,YAAY,EACZ,sBAAsB,EACvB,MAAM,qBAAqB,CAAA"}
1
+ {"version":3,"file":"index.js","source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B,MAAM,qBAAqB,CAAA"}
@@ -0,0 +1,31 @@
1
+ import type { components } from '../generated/openapi.js';
2
+ import type { RequestOptions } from '../types.js';
3
+ import { BaseResource } from './base.js';
4
+ export type AppManifest = components['schemas']['AppManifestResponse'];
5
+ export type AppDownloadEntry = components['schemas']['AppDownloadEntry'];
6
+ export declare class AppsResource extends BaseResource {
7
+ /**
8
+ * `GET /v1/apps` — the app/bridge download manifest: per-platform installer
9
+ * URL, the version currently published for that platform, and whether this
10
+ * deployment has an artifact configured for it. Public (no auth) and, unlike
11
+ * `byod.pair`, requires no pairing in flight — use it for setup guides,
12
+ * "add a device" flows, reinstalls, and update prompts (compare `version`
13
+ * against the version the device reports).
14
+ *
15
+ * The URLs are the same stable redirects `byod.pair` returns in
16
+ * `download_urls` — one builder server-side, so they cannot drift.
17
+ *
18
+ * `version` is `string | null`. It is read from the release feed beside the
19
+ * artifact `url` resolves to, so the number and the file cannot name
20
+ * different releases, and it is `null` when that feed publishes nothing.
21
+ * Render the absence ("version not published"); never substitute a number,
22
+ * and do not treat `null` as an error. It is deliberately NOT the
23
+ * `bridge_version` string `byod.pair` returns — that field is a separate,
24
+ * device-facing value (WHA-2538).
25
+ *
26
+ * A platform with `available: false` still appears in the response; hide the
27
+ * affordance rather than offering a link that 404s on click.
28
+ */
29
+ manifest(opts?: RequestOptions): Promise<AppManifest>;
30
+ }
31
+ //# sourceMappingURL=apps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"apps.d.ts","sourceRoot":"","sources":["../../src/resources/apps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAExC,MAAM,MAAM,WAAW,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,qBAAqB,CAAC,CAAA;AACtE,MAAM,MAAM,gBAAgB,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAAA;AAExE,qBAAa,YAAa,SAAQ,YAAY;IAC5C;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,WAAW,CAAC;CAGtD"}
@@ -0,0 +1,29 @@
1
+ import { BaseResource } from './base.js';
2
+ export class AppsResource extends BaseResource {
3
+ /**
4
+ * `GET /v1/apps` — the app/bridge download manifest: per-platform installer
5
+ * URL, the version currently published for that platform, and whether this
6
+ * deployment has an artifact configured for it. Public (no auth) and, unlike
7
+ * `byod.pair`, requires no pairing in flight — use it for setup guides,
8
+ * "add a device" flows, reinstalls, and update prompts (compare `version`
9
+ * against the version the device reports).
10
+ *
11
+ * The URLs are the same stable redirects `byod.pair` returns in
12
+ * `download_urls` — one builder server-side, so they cannot drift.
13
+ *
14
+ * `version` is `string | null`. It is read from the release feed beside the
15
+ * artifact `url` resolves to, so the number and the file cannot name
16
+ * different releases, and it is `null` when that feed publishes nothing.
17
+ * Render the absence ("version not published"); never substitute a number,
18
+ * and do not treat `null` as an error. It is deliberately NOT the
19
+ * `bridge_version` string `byod.pair` returns — that field is a separate,
20
+ * device-facing value (WHA-2538).
21
+ *
22
+ * A platform with `available: false` still appears in the response; hide the
23
+ * affordance rather than offering a link that 404s on click.
24
+ */
25
+ manifest(opts) {
26
+ return this.client.request('GET', '/v1/apps', undefined, opts);
27
+ }
28
+ }
29
+ //# sourceMappingURL=apps.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"apps.js","sourceRoot":"","sources":["../../src/resources/apps.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAKxC,MAAM,OAAO,YAAa,SAAQ,YAAY;IAC5C;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,QAAQ,CAAC,IAAqB;QAC5B,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAc,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,IAAI,CAAC,CAAA;IAC7E,CAAC;CACF"}
@@ -9,6 +9,9 @@ export type ActivateLineBody = components['schemas']['ActivateLine'];
9
9
  export type TransferOwnershipBody = components['schemas']['TransferOwnership'];
10
10
  export type PatchLineBody = components['schemas']['PatchLine'];
11
11
  export type MintSharedLineBody = components['schemas']['MintSharedLine'];
12
+ export type TerminateLineBody = components['schemas']['TerminateLine'];
13
+ export type SetLineAnniversaryBody = components['schemas']['SetLineAnniversary'];
14
+ export type SetLineVariantBody = components['schemas']['SetLineVariant'];
12
15
  export type LineConfigPatch = components['schemas']['LineConfigPatch'];
13
16
  export type LineConfigResponseData = components['schemas']['LineConfigResponseData'];
14
17
  export type LineHealth = components['schemas']['LineHealth'];
@@ -56,14 +59,108 @@ export declare class LinesResource extends BaseResource {
56
59
  reserve(id: string, opts?: RequestOptions): Promise<Line>;
57
60
  /**
58
61
  * `POST /v1/lines/{id}/activate` — commit a reserved line to `active`.
59
- * Wholesale partners use this as the second phase of reserve→activate (no
60
- * Stripe checkout, EOM-metered) and may pick the inbound-only rental variant
61
- * via `body.inbound_only`. Direct callers get the mock-sub test/dev shortcut
62
- * and `inbound_only` is ignored.
62
+ * **Wholesale partners only**: the second phase of reserve→activate (no
63
+ * Stripe checkout, EOM-metered), which may pick the inbound-only rental
64
+ * variant via `body.inbound_only`. Direct customers get `402
65
+ * checkout_required` — their line activates when the Stripe Checkout session
66
+ * from `billing.checkout()` is paid, and their `inbound_only` comes from the
67
+ * price they paid.
68
+ *
69
+ * `body.billing_anchor_at` states the date the customer who pays for this
70
+ * line is billed on — every line that customer holds then moves together: one
71
+ * full month at each occurrence, with a credit at the first occurrence for
72
+ * the days the activation month had already paid for past it. Omit it and the
73
+ * line is billed on its activation instant.
63
74
  */
64
75
  activate(id: string, body?: ActivateLineBody, opts?: RequestOptions): Promise<Line>;
65
76
  /** `POST /v1/lines/{id}/release` — release an active or reserved line back to the pool. */
66
77
  release(id: string, opts?: RequestOptions): Promise<Line>;
78
+ /**
79
+ * `POST /v1/lines/{id}/terminate` — permanently END a line you own. The
80
+ * self-serve counterpart to the admin terminate, and the verb to call when
81
+ * your own customer cancels: `release()` only returns a *reserved*
82
+ * marketplace line to the shelf, while this ends a live `rental` line or a
83
+ * virtual `shared` line for good.
84
+ *
85
+ * The line comes back at the terminal `cancelled` status, keeping its owner.
86
+ * Queued messages fail, shared-fleet bindings release, device sessions are
87
+ * revoked, and `line.disconnected` fires with `reason: "customer_initiated"`.
88
+ * Billing stops in both shapes — a per-line Stripe subscription is cancelled
89
+ * immediately, and a wholesale partner's end-of-month active-line count drops
90
+ * the line in the same breath.
91
+ *
92
+ * **Idempotent.** Terminating an already-terminated line resolves with the
93
+ * unchanged line (200), never a `ConflictError` — so a retry after a timeout
94
+ * is always safe and no `opts.idempotencyKey` is needed for it.
95
+ *
96
+ * Refusals: `BadRequestError` (400 `byod_not_customer_terminable`) — a BYOD
97
+ * line is your own hardware, billed per device slot by `/v1/byod/*`;
98
+ * `PermissionDeniedError` (403 `pool_line_not_terminable`) — an owned test
99
+ * line must go through `convertFromTest()` first; `NotFoundError` (404) — a
100
+ * line that does not exist, or one you do not own (the same code for both, so
101
+ * nothing leaks).
102
+ *
103
+ * `body` defaults to `{}` (not `undefined`) so the request always carries
104
+ * `Content-Type: application/json`; the route's body is optional and the
105
+ * handler treats a missing body as `{}`.
106
+ */
107
+ terminate(id: string, body?: TerminateLineBody, opts?: RequestOptions): Promise<Line>;
108
+ /**
109
+ * `POST /v1/lines/{id}/cancel` — schedule the END of a line you own for its
110
+ * next billing anniversary, and keep using it until then.
111
+ *
112
+ * This is the verb for "my own customer cancelled". The month is already paid
113
+ * for and iSnap never prorates, so `terminate()` — which ends the line on the
114
+ * spot — throws away days you have bought. The line stays fully `active` and
115
+ * bills exactly as before; iSnap ends it itself when `cancel_at` arrives and
116
+ * fires `line.terminated` with `origin: "scheduled_cancellation"`.
117
+ *
118
+ * The resolved line carries `cancel_at`: the next occurrence of its
119
+ * `anniversary_at` strictly after now, clamped to the last day of a shorter
120
+ * month (a line taken on the 31st renews on the 28th in February and on the
121
+ * 31st again in March — the clamp never sticks).
122
+ *
123
+ * **Idempotent, and in the way that matters here.** Cancelling an
124
+ * already-cancelled line resolves with the SAME `cancel_at`, never a
125
+ * recomputed one — so a retry that happens to land after the stored date has
126
+ * passed cannot push your own cancellation a month into the future.
127
+ *
128
+ * Refusals: `ConflictError` (409 `line_has_no_anniversary`) — the line has no
129
+ * anniversary to cancel at; state it with `setAnniversary()`, or end the line
130
+ * now with `terminate()`. `ConflictError` (409
131
+ * `line_not_customer_cancellable`) — only an `active` or `suspended` line can
132
+ * be cancelled. `BadRequestError` (400 `byod_not_customer_cancellable`) and
133
+ * `PermissionDeniedError` (403 `pool_line_not_cancellable`) — those tiers have
134
+ * no per-line anniversary. `NotFoundError` (404) — a line that does not exist,
135
+ * or one you do not own (the same code for both, so nothing leaks).
136
+ */
137
+ cancel(id: string, opts?: RequestOptions): Promise<Line>;
138
+ /**
139
+ * `POST /v1/lines/{id}/uncancel` — undo a scheduled cancellation. `cancel_at`
140
+ * goes back to `null` and the line resumes renewing at its anniversary.
141
+ *
142
+ * **A no-op on a line that is not cancelled**: resolves 200 with the line and
143
+ * `cancel_at: null`, never an error — so a reconciliation loop that asserts
144
+ * "this line must not be cancelled" can run unconditionally.
145
+ *
146
+ * Refusal: `ConflictError` (409 `line_already_terminated`) once the
147
+ * anniversary has passed and iSnap has ended the line. That cannot be undone.
148
+ */
149
+ uncancel(id: string, opts?: RequestOptions): Promise<Line>;
150
+ /**
151
+ * `POST /v1/lines/{id}/anniversary` — state the instant you took this line,
152
+ * which becomes the day of the month it renews on and the date `cancel()`
153
+ * waits for.
154
+ *
155
+ * **For lines migrated from your own system**, whose real start date iSnap
156
+ * cannot know. A line taken through the iSnap API is stamped automatically at
157
+ * activation and needs no call.
158
+ *
159
+ * Refusal: `ConflictError` (409 `line_cancellation_pending`) while a
160
+ * cancellation is scheduled — that `cancel_at` was computed from the
161
+ * anniversary you are replacing, so uncancel, set the date, and cancel again.
162
+ */
163
+ setAnniversary(id: string, body: SetLineAnniversaryBody, opts?: RequestOptions): Promise<Line>;
67
164
  /**
68
165
  * `POST /v1/lines/{id}/transfer-ownership` — reassign a line to a
69
166
  * different end-user account without re-pairing the underlying device.
@@ -84,8 +181,111 @@ export declare class LinesResource extends BaseResource {
84
181
  */
85
182
  convertFromTest(id: string, opts?: RequestOptions): Promise<Line>;
86
183
  /**
87
- * `PATCH /v1/lines/{id}` — merge-patch the line's free-form metadata
88
- * object. Null-valued keys delete those keys from the stored object.
184
+ * `POST /v1/lines/{id}/variant` — move a rental line you own between the
185
+ * INBOUND product (`inbound_only: true`) and the TWO-WAY product, **keeping
186
+ * the same phone number**, the same hardware and the same device session.
187
+ *
188
+ * `inbound_only` is not "receive-only": the line converses normally, it
189
+ * simply cannot OPEN a conversation. It may message only a handle that has
190
+ * messaged it first, and once that handle has, the exchange is unrestricted
191
+ * in both directions for good. A send that breaks the rule is a
192
+ * `PermissionDeniedError` (403 `outbound_first_forbidden`).
193
+ *
194
+ * **Idempotent on the value.** Asking for the variant the line already has
195
+ * resolves with the line and writes nothing — no audit row, no
196
+ * `line.variant_changed` event — so a retry after a timeout is safe and is
197
+ * not a second change. It is not a toggle: state the value you want.
198
+ *
199
+ * `body.effective` says WHEN, and defaults to `'now'` — the only behaviour
200
+ * before the field existed, so an existing call is unchanged.
201
+ *
202
+ * - `'now'`: as above. Use it for an UPGRADE, which the customer has just
203
+ * paid for and which must apply to the very next send.
204
+ * - `'next_anchor'`: store the change against the line's next billing
205
+ * anchor. Nothing moves today — `inbound_only` keeps its current value and
206
+ * the line keeps serving the product it is being billed for — and the
207
+ * resolved line carries `pending_variant: { inbound_only, effective_at }`.
208
+ * Use it for a DOWNGRADE, so the customer keeps the two-way product
209
+ * through the month they have already bought. iSnap applies it at the
210
+ * anchor and fires `line.variant_changed` with `data.scheduled: true`;
211
+ * cancel it beforehand with {@link LinesResource.cancelVariantChange}.
212
+ *
213
+ * `body.not_before` (ISO instant, `'next_anchor'` only, defaults to now) is
214
+ * the earliest instant the change may take effect. iSnap resolves it to the
215
+ * FIRST anchor occurrence at or after it, applying the anchor's own
216
+ * day-of-month clamp — so state your customer's paid-period end and let
217
+ * iSnap pick the occurrence rather than computing one yourself. A monthly
218
+ * customer needs nothing here; a QUARTERLY or ANNUAL customer does, because
219
+ * without it the change would land on the next anchor and take back
220
+ * capability they have already paid for. The resolved instant comes back as
221
+ * `pending_variant.effective_at`. An instant in the past is a
222
+ * `BadRequestError` (400 `not_before_in_the_past`) — it is refused rather
223
+ * than clamped, because for a long-period customer the silent repair and the
224
+ * correct answer differ by months of the product they bought.
225
+ *
226
+ * Scheduling is idempotent on the PENDING value the same way an immediate
227
+ * change is on the live one: re-scheduling the change already pending
228
+ * resolves with the line and the date it was already given, and writes
229
+ * nothing. A DIFFERENT pending change is a `ConflictError` (409
230
+ * `variant_change_already_pending`) — cancel it first, because there is no
231
+ * honest way to merge two answers to "what is this line at the anchor".
232
+ *
233
+ * **A scheduled call can legitimately resolve with `pending_variant: null`,
234
+ * and that is not a failure.** Scheduling the variant the line ALREADY
235
+ * carries writes nothing, because nothing is pending — the line will still
236
+ * be on that variant at the anchor. Do not retry it. Tell it apart from a
237
+ * silently-dropped `effective` (see the deploy-order warning below) by
238
+ * reading the top-level `inbound_only`: equal to what you asked for means
239
+ * already-at-target; different means the field never reached the server and
240
+ * the change was applied immediately.
241
+ *
242
+ * ⚠️ **Adopt `effective` and `not_before` only against a deployment that has
243
+ * them.** iSnap STRIPS unknown request properties rather than rejecting
244
+ * them, so an early call gets no 400 — it gets the field dropped and an
245
+ * ordinary immediate flip, applying a downgrade on the spot. Check
246
+ * `client.version()` before sending either field.
247
+ *
248
+ * An immediate change does NOT cancel a scheduled one: they are separate
249
+ * acts, and a partner who needs an urgent upgrade must not have their
250
+ * standing downgrade withdrawn by it. Use `cancelVariantChange` for that.
251
+ *
252
+ * Refusals: `ConflictError` (409) — `not_a_rental_line` (byod / pool /
253
+ * shared have no variant), `line_not_active` (the line must be in service),
254
+ * `variant_bound_to_stripe_price` (the line carries an iSnap Stripe
255
+ * subscription, whose price IS its variant; change the subscription
256
+ * instead). A line the caller does not own is a masked `NotFoundError`
257
+ * (404), like every other per-line verb.
258
+ */
259
+ setVariant(id: string, body: SetLineVariantBody, opts?: RequestOptions): Promise<Line>;
260
+ /**
261
+ * `DELETE /v1/lines/{id}/variant` — call off the variant change scheduled
262
+ * for this line's next billing anchor.
263
+ *
264
+ * The line's live `inbound_only` is never touched: the scheduling did not
265
+ * move it either, so the only effect is that `pending_variant` becomes
266
+ * `null` and nothing happens at the anchor.
267
+ *
268
+ * A line with no pending change is a `NotFoundError` (404
269
+ * `no_pending_variant_change`), which includes a change the anchor has
270
+ * already applied — there is nothing left to cancel, and the line's own
271
+ * `inbound_only` now carries the answer. A change applied while this request
272
+ * was in flight is a `ConflictError` (409 `variant_change_already_applied`),
273
+ * so the two outcomes are distinguishable from the code alone.
274
+ *
275
+ * Succeeds on a suspended or cancelled line: withdrawing an instruction must
276
+ * never be blocked by the state that made it moot.
277
+ */
278
+ cancelVariantChange(id: string, opts?: RequestOptions): Promise<void>;
279
+ /**
280
+ * `PATCH /v1/lines/{id}` — update the line's free-form metadata object, its
281
+ * billing anchor, or both.
282
+ *
283
+ * `metadata` is a MERGE: null-valued keys delete those keys from the stored
284
+ * object. `billing_anchor_at` is the date the customer who pays for this line
285
+ * is billed on — a change takes effect at the NEXT occurrence and never
286
+ * rewrites a period already billed, and `null` clears it so the line falls
287
+ * back to its activation instant. Send at least one of the two; a body that
288
+ * states neither is refused with `no_fields_to_patch`.
89
289
  */
90
290
  patch(id: string, body: PatchLineBody, opts?: RequestOptions): Promise<Line>;
91
291
  /** `GET /v1/lines/{id}/quota` — the line's current 5-bucket quota snapshot. */
@@ -1 +1 @@
1
- {"version":3,"file":"lines.d.ts","sourceRoot":"","sources":["../../src/resources/lines.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