@isnap/sdk 2.1.0-next.208 → 2.2.0-next.209

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/CHANGELOG.md CHANGED
@@ -30,8 +30,9 @@ All notable changes to `@isnap/sdk` will be documented in this file. The format
30
30
  - **Every webhook event carries your own tags** (WHA-3655, additive, MINOR — `2.1.0`): `WebhookPartnerMetadata` (`{ metadata, line_metadata }`, both `Record<string, unknown> | null`) is now part of `data` on `WebhookEventBase` and on every family's event type. `data.metadata` is your metadata on the event's primary resource (the line for `line.*`, the message for `message.*`, the reacted-to message for `reaction.*`, the rented session for `macos_session.*`, the trial for `trial.*`, the pre-order for `pre_order.*`; always `null` for `typing_indicator.*`, `binding.*` and `webhook.*`), and `data.line_metadata` is your metadata on the line the event is tied to (the same object as `metadata` on `line.*`). Both keys are always present, `null` when untagged, and are a snapshot taken at emission, so a retry or a replay carries the same value. Attribute an event to your own records from its payload alone, with no second call.
31
31
  - `client.macosSessions.get(id)` (`GET /v1/macos-sessions/{id}`) and `client.macosSessions.update(id, { metadata })` (`PATCH /v1/macos-sessions/{id}`), plus `client.macosSessions.rent({ metadata })`: a rented session now takes your metadata, returned on `MacosSession.metadata` and cleared when the session is released. `update` merges: a key you send overwrites, a key sent as `null` is deleted. The one-argument `rent(opts)` form is unchanged, and the call shapes are told apart by the `metadata` key.
32
32
  - `client.trial.get(trialId)` (`GET /v1/trial/{trial_id}`) and `client.trial.update(trialId, { metadata })` (`PATCH /v1/trial/{trial_id}`), plus `metadata` on `client.trial.init({ … })` and on `TrialInitData`: the owner's read of one trial (`Trial`) and the verb that tags it, with the same merge rule. Authenticated as the trial's owner, like `revoke`.
33
- - `client.preOrders.create({ …, metadata })`: a pre-order takes your metadata, read back on `PreOrder.metadata` and echoed on every `pre_order.*` webhook. It is set at creation only and is not copied onto the line the pre-order produces.
33
+ - `client.preOrders.create({ …, metadata })`: a pre-order takes your metadata, read back on `PreOrder.metadata` and echoed on every `pre_order.*` webhook. It is not copied onto the line the pre-order produces; `preOrders.update` (below) changes it after creation.
34
34
  - Metadata on every resource that takes it (lines, messages, BYOD pairing, pre-orders, macOS sessions, trials) is now capped at 20 keys and 8192 bytes serialized; a request over the cap is a `BadRequestError` (400), and a PATCH whose merged result breaks it is `400 metadata_too_large`.
35
+ - `client.preOrders.update(id, { metadata })` (`PATCH /v1/pre-orders/{id}`, WHA-3684, additive, MINOR — `2.2.0`): change a pre-order's tags after creation, for example when it is re-assigned to another of your customers before delivery, or to backfill a pre-order placed before you tagged. `update` merges like `macosSessions.update` and `trial.update`: a key you send overwrites, a key sent as `null` is deleted, every other key is kept. It is accepted in every status, `fulfilled` and `cancelled` included, and resolves with the same `PreOrder` that `get` returns. Every `pre_order.*` webhook emitted afterwards carries the new tags as `data.metadata`, and an event already emitted keeps its original tags on every retry and replay. The tags are still not copied onto the line the pre-order produces. A pre-order placed by another account is a `NotFoundError` (404). The body type is exported as `PatchPreOrderBody`. `MIN_API_VERSION` rises from `2.0.0` to `2.24.0`, the API version that added the endpoint.
35
36
 
36
37
  ### Removed
37
38
  - **`verifyWebhook` verifies the Standard Webhooks headers only** (`webhook-id` / `webhook-timestamp` / `webhook-signature`, WHA-3658) — breaking, MAJOR (`2.0.0`). The fallback to the `X-iSnap-Signature` / `X-iSnap-Timestamp` pair is removed, because iSnap no longer sends those headers: a request that carries only them is now rejected with `WebhookSignatureError` (`Missing webhook-id header`). The key derivation no longer strips a `whs_` prefix either; only `whsec_` secrets, the only kind iSnap mints, verify. Unchanged: the `[newSecret, oldSecret]` rotation array, the `tolerance` option and its 300 s default, case-insensitive header reads, and the return value. A caller that already receives iSnap deliveries needs no code change, since every delivery since `1.4.0` carries the standard headers.
@@ -2820,7 +2820,7 @@ export interface paths {
2820
2820
  put?: never;
2821
2821
  /**
2822
2822
  * Create a pre-order (draft)
2823
- * @description Place a pre-order as a `draft` (WHA-1155). A draft has NO side effects — no provisioning line, no procurement, no Stripe charge — so the partner can hold intent / bill its own end-user first. Call `POST /v1/pre-orders/{id}/confirm` to engage the month and start procurement. A pre-order carries the area codes you would accept, in order of preference, the plan (`inbound_only`), which is remembered for confirm and read back on every response, and optionally the SKU (`billing_tier`). The tier and the plan are ORTHOGONAL — `rental_iphone` covers both the outbound and the inbound product, which is what `inbound_only` selects — so naming both is never a contradiction. `billing_tier` is optional because a pre-order that omits it is still `rental_iphone`, the only tier this flow mints; when named it is ANSWERED, never discarded: `rental_android` is `400 android_rental_not_purchasable` (no Android product exists in the Stripe catalogue, WHA-2474) and a tier no pre-order can procure — BYOD, virtual shared, pool — is `400 tier_not_pre_orderable`, naming the endpoint to call instead (WHA-2949). The body is otherwise STRICT (WHA-2644) — any other property is a `400`, including `quantity` and `metadata`, which earlier revisions of this contract documented and the server silently discarded.
2823
+ * @description Place a pre-order as a `draft` (WHA-1155). A draft has NO side effects — no provisioning line, no procurement, no Stripe charge — so the partner can hold intent / bill its own end-user first. Call `POST /v1/pre-orders/{id}/confirm` to engage the month and start procurement. A pre-order carries the area codes you would accept, in order of preference, the plan (`inbound_only`), which is remembered for confirm and read back on every response, and optionally the SKU (`billing_tier`). The tier and the plan are ORTHOGONAL — `rental_iphone` covers both the outbound and the inbound product, which is what `inbound_only` selects — so naming both is never a contradiction. `billing_tier` is optional because a pre-order that omits it is still `rental_iphone`, the only tier this flow mints; when named it is ANSWERED, never discarded: `rental_android` is `400 android_rental_not_purchasable` (no Android product exists in the Stripe catalogue, WHA-2474) and a tier no pre-order can procure — BYOD, virtual shared, pool — is `400 tier_not_pre_orderable`, naming the endpoint to call instead (WHA-2949). The body is otherwise STRICT (WHA-2644) — any other property is a `400`, including `quantity`, which earlier revisions of this contract documented and the server silently discarded.
2824
2824
  */
2825
2825
  post: {
2826
2826
  parameters: {
@@ -3097,7 +3097,87 @@ export interface paths {
3097
3097
  delete?: never;
3098
3098
  options?: never;
3099
3099
  head?: never;
3100
- patch?: never;
3100
+ /**
3101
+ * Tag a pre-order
3102
+ * @description Merge `metadata` into the pre-order’s tags: a key you send overwrites, a key sent as `null` is deleted, every other key is kept. The patch itself may carry at most 20 keys and 8192 bytes serialized, and so may the merged result (`400 metadata_too_large`); the merged-result cap never refuses a patch that only deletes keys, so a pre-order tagged over the cap can always be shrunk. An empty `metadata` object changes nothing and returns the pre-order as it is. Allowed in every status, `fulfilled` and `cancelled` included: the tags are yours and iSnap never reads them, so a finished pre-order can still be re-tagged or backfilled. Every `pre_order.*` webhook emitted after the call carries the new tags as `data.metadata`; a delivery already emitted keeps the tags it was emitted with, retries and replays included. The tags are not copied onto the line the pre-order produces. Returns the pre-order in the same shape as `GET /v1/pre-orders/{id}`. A pre-order placed by another account is `404`.
3103
+ */
3104
+ patch: {
3105
+ parameters: {
3106
+ query?: never;
3107
+ header?: never;
3108
+ path: {
3109
+ id: string;
3110
+ };
3111
+ cookie?: never;
3112
+ };
3113
+ requestBody: {
3114
+ content: {
3115
+ "application/json": components["schemas"]["PatchPreOrder"];
3116
+ };
3117
+ };
3118
+ responses: {
3119
+ /** @description The pre-order with its merged tags */
3120
+ 200: {
3121
+ headers: {
3122
+ [name: string]: unknown;
3123
+ };
3124
+ content: {
3125
+ "application/json": {
3126
+ /** @enum {boolean} */
3127
+ success: true;
3128
+ data: components["schemas"]["PreOrder"];
3129
+ trace_id: string;
3130
+ request_id: string;
3131
+ };
3132
+ };
3133
+ };
3134
+ /** @description Bad request — validation failed */
3135
+ 400: {
3136
+ headers: {
3137
+ [name: string]: unknown;
3138
+ };
3139
+ content: {
3140
+ "application/json": components["schemas"]["ErrorEnvelope"];
3141
+ };
3142
+ };
3143
+ /** @description Unauthenticated — missing or invalid bearer token */
3144
+ 401: {
3145
+ headers: {
3146
+ [name: string]: unknown;
3147
+ };
3148
+ content: {
3149
+ "application/json": components["schemas"]["ErrorEnvelope"];
3150
+ };
3151
+ };
3152
+ /** @description Not found */
3153
+ 404: {
3154
+ headers: {
3155
+ [name: string]: unknown;
3156
+ };
3157
+ content: {
3158
+ "application/json": components["schemas"]["ErrorEnvelope"];
3159
+ };
3160
+ };
3161
+ /** @description Too many requests — rate limit exceeded */
3162
+ 429: {
3163
+ headers: {
3164
+ [name: string]: unknown;
3165
+ };
3166
+ content: {
3167
+ "application/json": components["schemas"]["ErrorEnvelope"];
3168
+ };
3169
+ };
3170
+ /** @description Internal server error */
3171
+ 500: {
3172
+ headers: {
3173
+ [name: string]: unknown;
3174
+ };
3175
+ content: {
3176
+ "application/json": components["schemas"]["ErrorEnvelope"];
3177
+ };
3178
+ };
3179
+ };
3180
+ };
3101
3181
  trace?: never;
3102
3182
  };
3103
3183
  "/v1/pre-orders/{id}/cancel": {
@@ -7983,7 +8063,7 @@ export interface components {
7983
8063
  device_status?: components["schemas"]["DeviceFulfillmentStatus"];
7984
8064
  created_at: string;
7985
8065
  updated_at: string;
7986
- /** @description Your own tags on this pre-order, stated at creation and echoed as `data.metadata` on every `pre_order.*` webhook. `null` when untagged. They are not copied onto the line the pre-order produces. */
8066
+ /** @description Your own tags on this pre-order, set at creation or by `PATCH`, and echoed as `data.metadata` on every `pre_order.*` webhook. `null` when untagged. They are not copied onto the line the pre-order produces. */
7987
8067
  metadata: {
7988
8068
  [key: string]: unknown;
7989
8069
  } | null;
@@ -8003,6 +8083,17 @@ export interface components {
8003
8083
  trace_id: string;
8004
8084
  request_id: string;
8005
8085
  };
8086
+ PatchPreOrder: {
8087
+ /**
8088
+ * @description Your own key/value tags, stored verbatim and never interpreted by iSnap. Echoed on every webhook about this resource. At most 20 keys and 8192 bytes serialized.
8089
+ * @example {
8090
+ * "whatsnap_manager_id": "m1"
8091
+ * }
8092
+ */
8093
+ metadata: {
8094
+ [key: string]: unknown;
8095
+ };
8096
+ };
8006
8097
  Checkout: {
8007
8098
  /** Format: uri */
8008
8099
  url: string;
package/dist/index.d.ts CHANGED
@@ -27,7 +27,7 @@ export type { MacosSession, PatchMacosSessionBody, RentMacosSessionBody } from '
27
27
  export type { ListMessagesQuery, Message, Reaction, ReactionRemoval, ReactionType, SendMessageBody, SendReactionBody } from './resources/messages.js';
28
28
  export type { Attachment, CreateAttachmentBody, CreateAttachmentResponse, UploadInput, UploadMetadata, UploadOptions } from './resources/attachments.js';
29
29
  export type { ByodPairBody, ByodPairResponse } from './resources/byod.js';
30
- export type { CreatePreOrderBody, ListPreOrdersQuery, PreOrder, PreOrderListData, PreOrderStatus } from './resources/preorders.js';
30
+ export type { CreatePreOrderBody, ListPreOrdersQuery, PatchPreOrderBody, PreOrder, PreOrderListData, PreOrderStatus } from './resources/preorders.js';
31
31
  export type { TrialActivityData, TrialInitBody, TrialInitData, TrialRevokeBody, TrialRevokeData, TrialStatusData, Trial, PatchTrialBody } from './resources/trial.js';
32
32
  export type { CreateWebhookBody, ListDeliveriesQuery, ListEventsQuery, UpdateWebhookBody, Webhook, WebhookDelivery, WebhookDeliveryReplay, WebhookEventItem, WebhookList, WebhookRotateSecret } from './resources/webhooks.js';
33
33
  export { parseWebhookEvent } from './webhooks/parse.js';
@@ -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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,EACd,eAAe,EACf,eAAe,EACf,YAAY,EACZ,sBAAsB,EACvB,MAAM,qBAAqB,CAAA"}
@@ -6,6 +6,7 @@ export type PreOrderStatus = components['schemas']['PreOrderStatus'];
6
6
  export type PreOrderListData = components['schemas']['PreOrderList']['data'];
7
7
  export type CreatePreOrderBody = NonNullable<paths['/v1/pre-orders']['post']['requestBody']>['content']['application/json'];
8
8
  export type ListPreOrdersQuery = NonNullable<paths['/v1/pre-orders']['get']['parameters']['query']>;
9
+ export type PatchPreOrderBody = components['schemas']['PatchPreOrder'];
9
10
  export declare class PreOrdersResource extends BaseResource {
10
11
  /**
11
12
  * `POST /v1/pre-orders` — place a pre-order for a rental tier with no
@@ -52,6 +53,16 @@ export declare class PreOrdersResource extends BaseResource {
52
53
  list(query?: ListPreOrdersQuery, opts?: RequestOptions): Promise<PreOrderListData>;
53
54
  /** `GET /v1/pre-orders/{id}` — fetch a single pre-order by id. */
54
55
  get(id: string, opts?: RequestOptions): Promise<PreOrder>;
56
+ /**
57
+ * `PATCH /v1/pre-orders/{id}` — merge `metadata` into the pre-order's tags.
58
+ * A key you send overwrites, a key sent as `null` is deleted, every other key
59
+ * is kept. Allowed in every status, `fulfilled` and `cancelled` included.
60
+ * Every `pre_order.*` webhook emitted afterwards carries the new tags as
61
+ * `data.metadata`; one already emitted keeps the tags it was emitted with.
62
+ * The tags are not copied onto the line the pre-order produces. A pre-order
63
+ * placed by another account is a `NotFoundError` (404).
64
+ */
65
+ update(id: string, body: PatchPreOrderBody, opts?: RequestOptions): Promise<PreOrder>;
55
66
  /**
56
67
  * `POST /v1/pre-orders/{id}/cancel` — cancel a pre-order before it is
57
68
  * fulfilled. Refunds the Stripe payment intent (if charged) and releases the
@@ -1 +1 @@
1
- {"version":3,"file":"preorders.d.ts","sourceRoot":"","sources":["../../src/resources/preorders.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAA;AAChE,OAAO,KA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IAS7D;;;;;;;;;;;OAWG;IACH,IAAI,CAAC,KAAK,GAAE,kBAAuB,EAAE,IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAOtF,kEAAkE;IAClE,GAAG,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,QAAQ,CAAC;IASzD;;;;;;;;OAQG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,iBAAiB,EAAE,IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,QAAQ,CAAC;IASrF;;;;OAIG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,QAAQ,CAAC;CAQ7D"}
@@ -56,6 +56,18 @@ export class PreOrdersResource extends BaseResource {
56
56
  get(id, opts) {
57
57
  return this.client.request('GET', `/v1/pre-orders/${encodeURIComponent(id)}`, undefined, opts);
58
58
  }
59
+ /**
60
+ * `PATCH /v1/pre-orders/{id}` — merge `metadata` into the pre-order's tags.
61
+ * A key you send overwrites, a key sent as `null` is deleted, every other key
62
+ * is kept. Allowed in every status, `fulfilled` and `cancelled` included.
63
+ * Every `pre_order.*` webhook emitted afterwards carries the new tags as
64
+ * `data.metadata`; one already emitted keeps the tags it was emitted with.
65
+ * The tags are not copied onto the line the pre-order produces. A pre-order
66
+ * placed by another account is a `NotFoundError` (404).
67
+ */
68
+ update(id, body, opts) {
69
+ return this.client.request('PATCH', `/v1/pre-orders/${encodeURIComponent(id)}`, body, opts);
70
+ }
59
71
  /**
60
72
  * `POST /v1/pre-orders/{id}/cancel` — cancel a pre-order before it is
61
73
  * fulfilled. Refunds the Stripe payment intent (if charged) and releases the
@@ -1 +1 @@
1
- {"version":3,"file":"preorders.js","sourceRoot":"","sources":["../../src/resources/preorders.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAA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,CAAC,EAAE,CAAC,SAAS,EACjD,SAAS,EACT,IAAI,CACL,CAAA;IACH,CAAC;CACF"}
package/dist/version.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export declare const SDK_VERSION = "2.1.0";
2
- export declare const MIN_API_VERSION = "2.0.0";
1
+ export declare const SDK_VERSION = "2.2.0";
2
+ export declare const MIN_API_VERSION = "2.24.0";
3
3
  //# sourceMappingURL=version.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,WAAW,UAAU,CAAA;AAyBlC,eAAO,MAAM,eAAe,UAAU,CAAA"}
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,WAAW,UAAU,CAAA;AA6BlC,eAAO,MAAM,eAAe,WAAW,CAAA"}
package/dist/version.js CHANGED
@@ -4,7 +4,7 @@
4
4
  // contract surface. Hand-maintained: no build or publish step derives this
5
5
  // from `package.json`, so it MUST be bumped in the same commit as the
6
6
  // `version` field there. `src/version.test.ts` fails CI when they disagree.
7
- export const SDK_VERSION = '2.1.0';
7
+ export const SDK_VERSION = '2.2.0';
8
8
  // Minimum API version the SDK considers compatible. Reference-only
9
9
  // today: the client exposes `client.version()` to read `/v1/version` on
10
10
  // demand, but does NOT call it automatically at first request as a
@@ -28,5 +28,9 @@ export const SDK_VERSION = '2.1.0';
28
28
  // describe ANY 1.x backend. Leaving the floor at `1.0.0` would have been the
29
29
  // same class of defect the change removes — a field that says something the
30
30
  // code does not do.
31
- export const MIN_API_VERSION = '2.0.0';
31
+ //
32
+ // WHA-3684 — raised to `2.24.0`, the API minor that added
33
+ // `PATCH /v1/pre-orders/{id}`, which `preOrders.update` wraps: the rule above,
34
+ // applied. Against an older backend that method answers 404, not a version error.
35
+ export const MIN_API_VERSION = '2.24.0';
32
36
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,yEAAyE;AACzE,wEAAwE;AACxE,2EAA2E;AAC3E,sEAAsE;AACtE,4EAA4E;AAC5E,MAAM,CAAC,MAAM,WAAW,GAAG,OAAO,CAAA;AAElC,mEAAmE;AACnE,wEAAwE;AACxE,mEAAmE;AACnE,wEAAwE;AACxE,2EAA2E;AAC3E,gEAAgE;AAChE,uEAAuE;AACvE,oBAAoB;AACpB,EAAE;AACF,yEAAyE;AACzE,sEAAsE;AACtE,mEAAmE;AACnE,0EAA0E;AAC1E,2EAA2E;AAC3E,mCAAmC;AACnC,EAAE;AACF,8EAA8E;AAC9E,2EAA2E;AAC3E,4DAA4D;AAC5D,+EAA+E;AAC/E,6EAA6E;AAC7E,4EAA4E;AAC5E,oBAAoB;AACpB,MAAM,CAAC,MAAM,eAAe,GAAG,OAAO,CAAA"}
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,yEAAyE;AACzE,wEAAwE;AACxE,2EAA2E;AAC3E,sEAAsE;AACtE,4EAA4E;AAC5E,MAAM,CAAC,MAAM,WAAW,GAAG,OAAO,CAAA;AAElC,mEAAmE;AACnE,wEAAwE;AACxE,mEAAmE;AACnE,wEAAwE;AACxE,2EAA2E;AAC3E,gEAAgE;AAChE,uEAAuE;AACvE,oBAAoB;AACpB,EAAE;AACF,yEAAyE;AACzE,sEAAsE;AACtE,mEAAmE;AACnE,0EAA0E;AAC1E,2EAA2E;AAC3E,mCAAmC;AACnC,EAAE;AACF,8EAA8E;AAC9E,2EAA2E;AAC3E,4DAA4D;AAC5D,+EAA+E;AAC/E,6EAA6E;AAC7E,4EAA4E;AAC5E,oBAAoB;AACpB,EAAE;AACF,0DAA0D;AAC1D,+EAA+E;AAC/E,kFAAkF;AAClF,MAAM,CAAC,MAAM,eAAe,GAAG,QAAQ,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@isnap/sdk",
3
- "version": "2.1.0-next.208",
3
+ "version": "2.2.0-next.209",
4
4
  "description": "Official TypeScript SDK for the iSnap P2P telephony API",
5
5
  "license": "MIT",
6
6
  "type": "module",