@isnap/sdk 1.3.0-next.17 → 1.3.0-next.170
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 +3 -0
- package/README.md +1 -1
- package/dist/client.d.ts +2 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +3 -0
- package/dist/client.js.map +1 -1
- package/dist/generated/openapi.d.ts +1968 -898
- package/dist/index.d.ts +5 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/resources/apps.d.ts +11 -4
- package/dist/resources/apps.d.ts.map +1 -1
- package/dist/resources/apps.js +11 -4
- package/dist/resources/apps.js.map +1 -1
- package/dist/resources/lines.d.ts +94 -4
- package/dist/resources/lines.d.ts.map +1 -1
- package/dist/resources/lines.js +100 -4
- package/dist/resources/lines.js.map +1 -1
- package/dist/resources/macos-sessions.d.ts +48 -0
- package/dist/resources/macos-sessions.d.ts.map +1 -0
- package/dist/resources/macos-sessions.js +51 -0
- package/dist/resources/macos-sessions.js.map +1 -0
- package/dist/resources/preorders.d.ts +19 -7
- package/dist/resources/preorders.d.ts.map +1 -1
- package/dist/resources/preorders.js +19 -7
- package/dist/resources/preorders.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.d.ts.map +1 -1
- package/dist/version.js +12 -4
- package/dist/version.js.map +1 -1
- package/dist/webhooks/types.d.ts +34 -3
- package/dist/webhooks/types.d.ts.map +1 -1
- package/dist/webhooks/types.js +3 -0
- package/dist/webhooks/types.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preorders.js","sourceRoot":"","sources":["../../src/resources/preorders.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAcxC,MAAM,OAAO,iBAAkB,SAAQ,YAAY;IACjD
|
|
1
|
+
{"version":3,"file":"preorders.js","sourceRoot":"","sources":["../../src/resources/preorders.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAcxC,MAAM,OAAO,iBAAkB,SAAQ,YAAY;IACjD;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CAAC,IAAwB,EAAE,IAAqB;QACpD,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAW,MAAM,EAAE,gBAAgB,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;IAC5E,CAAC;IAED;;;;;;;;;;OAUG;IACH,OAAO,CAAC,EAAU,EAAE,IAAqB;QACvC,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CACxB,MAAM,EACN,kBAAkB,kBAAkB,CAAC,EAAE,CAAC,UAAU,EAClD,SAAS,EACT,IAAI,CACL,CAAA;IACH,CAAC;IAED;;;;;;;;;;;OAWG;IACH,IAAI,CAAC,QAA4B,EAAE,EAAE,IAAqB;QACxD,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAmB,KAAK,EAAE,gBAAgB,EAAE,SAAS,EAAE;YAC/E,GAAG,IAAI;YACP,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE;SACpC,CAAC,CAAA;IACJ,CAAC;IAED,kEAAkE;IAClE,GAAG,CAAC,EAAU,EAAE,IAAqB;QACnC,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CACxB,KAAK,EACL,kBAAkB,kBAAkB,CAAC,EAAE,CAAC,EAAE,EAC1C,SAAS,EACT,IAAI,CACL,CAAA;IACH,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,EAAU,EAAE,IAAqB;QACtC,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CACxB,MAAM,EACN,kBAAkB,kBAAkB,CAAC,EAAE,CAAC,SAAS,EACjD,SAAS,EACT,IAAI,CACL,CAAA;IACH,CAAC;CACF"}
|
package/dist/version.d.ts
CHANGED
package/dist/version.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,WAAW,UAAU,CAAA;
|
|
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"}
|
package/dist/version.js
CHANGED
|
@@ -17,8 +17,16 @@ export const SDK_VERSION = '1.3.0';
|
|
|
17
17
|
// Bump this when the SDK starts using a feature that requires a specific
|
|
18
18
|
// backend version (e.g. a new endpoint added in API minor X.Y.0 — the
|
|
19
19
|
// SDK that wraps it sets MIN_API_VERSION to X.Y.0). Within a major
|
|
20
|
-
// version
|
|
21
|
-
//
|
|
22
|
-
//
|
|
23
|
-
|
|
20
|
+
// version, the API stays additive (oasdiff `--deprecation-days-stable 30`
|
|
21
|
+
// enforced in CI), so an SDK keeps working against any backend of the same
|
|
22
|
+
// major without raising the floor.
|
|
23
|
+
//
|
|
24
|
+
// WHA-2644 — raised from `1.0.0` to `2.0.0`. The premise the old value rested
|
|
25
|
+
// on ("within 1.x the API stays additive") is precisely what the pre-order
|
|
26
|
+
// strip broke: `PreOrder` lost `amount`, `billing_tier` and
|
|
27
|
+
// `stripe_payment_intent_id`, so the generated types in this package no longer
|
|
28
|
+
// describe ANY 1.x backend. Leaving the floor at `1.0.0` would have been the
|
|
29
|
+
// same class of defect the change removes — a field that says something the
|
|
30
|
+
// code does not do.
|
|
31
|
+
export const MIN_API_VERSION = '2.0.0';
|
|
24
32
|
//# sourceMappingURL=version.js.map
|
package/dist/version.js.map
CHANGED
|
@@ -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,
|
|
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"}
|
package/dist/webhooks/types.d.ts
CHANGED
|
@@ -65,7 +65,7 @@ export interface ReactionEvent extends WebhookEventBase {
|
|
|
65
65
|
event_type: `reaction.${string}`;
|
|
66
66
|
data: ReactionEventData;
|
|
67
67
|
}
|
|
68
|
-
export type LineEventType = 'line.connected' | 'line.disconnected' | 'line.offline' | 'line.degraded' | 'line.apple_id_flagged' | 'line.quota_warning' | 'line.quota_exceeded' | 'line.capability_changed';
|
|
68
|
+
export type LineEventType = 'line.connected' | 'line.disconnected' | 'line.offline' | 'line.degraded' | 'line.apple_id_flagged' | 'line.quota_warning' | 'line.quota_exceeded' | 'line.capability_changed' | 'line.terminated';
|
|
69
69
|
/**
|
|
70
70
|
* `data` is intentionally typed as `Record<string, unknown>` until the
|
|
71
71
|
* contract pins per-event-type field shapes. Today's payloads vary by
|
|
@@ -95,7 +95,7 @@ export interface TrialEvent extends WebhookEventBase {
|
|
|
95
95
|
event_type: `trial.${string}`;
|
|
96
96
|
data: Record<string, unknown>;
|
|
97
97
|
}
|
|
98
|
-
export type PreOrderEventType = 'pre_order.fulfilled' | 'pre_order.cancelled'
|
|
98
|
+
export type PreOrderEventType = 'pre_order.fulfilled' | 'pre_order.cancelled';
|
|
99
99
|
/**
|
|
100
100
|
* Pre-order lifecycle events fired when ops procures hardware against a
|
|
101
101
|
* customer pre-order. `pre_order.fulfilled` carries the freshly-activated
|
|
@@ -127,6 +127,36 @@ export interface BindingEvent extends WebhookEventBase {
|
|
|
127
127
|
event_type: `binding.${string}`;
|
|
128
128
|
data: Record<string, unknown>;
|
|
129
129
|
}
|
|
130
|
+
export type MacosSessionEventType = 'macos_session.rented' | 'macos_session.released';
|
|
131
|
+
/**
|
|
132
|
+
* Rented hosted macOS session lifecycle (contract §4.3.8). Fires on the
|
|
133
|
+
* PARTNER, never on a line, and only for the two changes the partner did
|
|
134
|
+
* NOT just cause — `rent`, `cancel` and `uncancel` are synchronous verbs
|
|
135
|
+
* whose own response already told the caller what happened.
|
|
136
|
+
*
|
|
137
|
+
* `macos_session.rented` is iSnap attaching a session OUT OF BAND: the
|
|
138
|
+
* fulfilment of a `rent` refused for want of stock, or the migration of a
|
|
139
|
+
* tenancy that predates the surface. `data` carries
|
|
140
|
+
* `{ macos_session_id, anniversary_at, rented_at }`.
|
|
141
|
+
*
|
|
142
|
+
* `macos_session.released` is the seat going back to stock. `data` carries
|
|
143
|
+
* `{ macos_session_id, anniversary_at (nullable), cancel_at (nullable),
|
|
144
|
+
* released_at, reason: 'cancelled' | 'detached_by_admin' }` — `reason`
|
|
145
|
+
* separating the cancellation coming due from an operator handing the
|
|
146
|
+
* session back.
|
|
147
|
+
*
|
|
148
|
+
* Routed by ACCOUNT, not by line: a rented session has no line by
|
|
149
|
+
* construction, so there is no `line_id` on this payload.
|
|
150
|
+
*
|
|
151
|
+
* Left as `Record<string, unknown>` for the same reason as `LineEvent`:
|
|
152
|
+
* `event_type` is the template literal `macos_session.${string}` so the
|
|
153
|
+
* guard keeps prefix-matching, and a concrete `data` shape here would
|
|
154
|
+
* mistype any future `macos_session.*` event.
|
|
155
|
+
*/
|
|
156
|
+
export interface MacosSessionEvent extends WebhookEventBase {
|
|
157
|
+
event_type: `macos_session.${string}`;
|
|
158
|
+
data: Record<string, unknown>;
|
|
159
|
+
}
|
|
130
160
|
/**
|
|
131
161
|
* Administrative synthetic probe — the suspended-state health check that
|
|
132
162
|
* decides whether a disabled subscription can be resumed. Not a partner
|
|
@@ -159,7 +189,7 @@ export interface AdminEvent extends WebhookEventBase {
|
|
|
159
189
|
* }
|
|
160
190
|
* ```
|
|
161
191
|
*/
|
|
162
|
-
export type WebhookEvent = MessageEvent | ReactionEvent | LineEvent | TypingIndicatorEvent | TrialEvent | PreOrderEvent | BindingEvent | AdminEvent | WebhookEventBase;
|
|
192
|
+
export type WebhookEvent = MessageEvent | ReactionEvent | LineEvent | TypingIndicatorEvent | TrialEvent | PreOrderEvent | BindingEvent | MacosSessionEvent | AdminEvent | WebhookEventBase;
|
|
163
193
|
export declare function isMessageEvent(event: WebhookEventBase): event is MessageEvent;
|
|
164
194
|
export declare function isReactionEvent(event: WebhookEventBase): event is ReactionEvent;
|
|
165
195
|
export declare function isLineEvent(event: WebhookEventBase): event is LineEvent;
|
|
@@ -167,6 +197,7 @@ export declare function isTypingIndicatorEvent(event: WebhookEventBase): event i
|
|
|
167
197
|
export declare function isTrialEvent(event: WebhookEventBase): event is TrialEvent;
|
|
168
198
|
export declare function isPreOrderEvent(event: WebhookEventBase): event is PreOrderEvent;
|
|
169
199
|
export declare function isBindingEvent(event: WebhookEventBase): event is BindingEvent;
|
|
200
|
+
export declare function isMacosSessionEvent(event: WebhookEventBase): event is MacosSessionEvent;
|
|
170
201
|
export declare function isAdminEvent(event: WebhookEventBase): event is AdminEvent;
|
|
171
202
|
export {};
|
|
172
203
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/webhooks/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAErE;;;;;GAKG;AACH,MAAM,WAAW,gBAAgB;IAC/B,WAAW,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAC9B;AA0BD,MAAM,MAAM,gBAAgB,GACxB,gBAAgB,GAChB,mBAAmB,GACnB,cAAc,GACd,mBAAmB,GACnB,gBAAgB,GAChB,kBAAkB,GAClB,cAAc,GACd,mBAAmB,GAMnB,4BAA4B,CAAA;AAEhC,MAAM,WAAW,YAAa,SAAQ,gBAAgB;IACpD,UAAU,EAAE,WAAW,MAAM,EAAE,CAAA;IAC/B,IAAI,EAAE;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,CAAA;CAC3B;AAID,MAAM,MAAM,iBAAiB,GACzB,gBAAgB,GAChB,mBAAmB,GACnB,kBAAkB,CAAA;AAEtB,wEAAwE;AACxE,KAAK,qBAAqB,GAAG;IAC3B,iBAAiB,EAAE,MAAM,CAAA;IACzB,WAAW,EAAE,MAAM,CAAA;IACnB,aAAa,EAAE,YAAY,CAAA;IAC3B,cAAc,EAAE,MAAM,GAAG,IAAI,CAAA;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,MAAM,iBA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AM,EAAE,CAAA;IAC/B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAC9B;AAID;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,YAAY,GACpB,YAAY,GACZ,aAAa,GACb,SAAS,GACT,oBAAoB,GACpB,UAAU,GACV,aAAa,GACb,YAAY,GACZ,iBAAiB,GACjB,UAAU,GACV,gBAAgB,CAAA;AAIpB,wBAAgB,cAAc,CAAC,KAAK,EAAE,gBAAgB,GAAG,KAAK,IAAI,YAAY,CAE7E;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,gBAAgB,GAAG,KAAK,IAAI,aAAa,CAE/E;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,GAAG,KAAK,IAAI,SAAS,CAEvE;AAED,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,gBAAgB,GACtB,KAAK,IAAI,oBAAoB,CAE/B;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,gBAAgB,GAAG,KAAK,IAAI,UAAU,CAEzE;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,gBAAgB,GAAG,KAAK,IAAI,aAAa,CAE/E;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,gBAAgB,GAAG,KAAK,IAAI,YAAY,CAE7E;AAED,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,gBAAgB,GAAG,KAAK,IAAI,iBAAiB,CAEvF;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,gBAAgB,GAAG,KAAK,IAAI,UAAU,CAEzE"}
|
package/dist/webhooks/types.js
CHANGED
|
@@ -20,6 +20,9 @@ export function isPreOrderEvent(event) {
|
|
|
20
20
|
export function isBindingEvent(event) {
|
|
21
21
|
return event.event_type.startsWith('binding.');
|
|
22
22
|
}
|
|
23
|
+
export function isMacosSessionEvent(event) {
|
|
24
|
+
return event.event_type.startsWith('macos_session.');
|
|
25
|
+
}
|
|
23
26
|
export function isAdminEvent(event) {
|
|
24
27
|
return event.event_type.startsWith('webhook.');
|
|
25
28
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/webhooks/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/webhooks/types.ts"],"names":[],"mappings":"AA+TA,6EAA6E;AAE7E,MAAM,UAAU,cAAc,CAAC,KAAuB;IACpD,OAAO,KAAK,CAAC,UAAU,CAAC,UAAU,CAAC,UAAU,CAAC,CAAA;AAChD,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,KAAuB;IACrD,OAAO,KAAK,CAAC,UAAU,CAAC,UAAU,CAAC,WAAW,CAAC,CAAA;AACjD,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,KAAuB;IACjD,OAAO,KAAK,CAAC,UAAU,CAAC,UAAU,CAAC,OAAO,CAAC,CAAA;AAC7C,CAAC;AAED,MAAM,UAAU,sBAAsB,CACpC,KAAuB;IAEvB,OAAO,KAAK,CAAC,UAAU,CAAC,UAAU,CAAC,mBAAmB,CAAC,CAAA;AACzD,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,KAAuB;IAClD,OAAO,KAAK,CAAC,UAAU,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAA;AAC9C,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,KAAuB;IACrD,OAAO,KAAK,CAAC,UAAU,CAAC,UAAU,CAAC,YAAY,CAAC,CAAA;AAClD,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,KAAuB;IACpD,OAAO,KAAK,CAAC,UAAU,CAAC,UAAU,CAAC,UAAU,CAAC,CAAA;AAChD,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAC,KAAuB;IACzD,OAAO,KAAK,CAAC,UAAU,CAAC,UAAU,CAAC,gBAAgB,CAAC,CAAA;AACtD,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,KAAuB;IAClD,OAAO,KAAK,CAAC,UAAU,CAAC,UAAU,CAAC,UAAU,CAAC,CAAA;AAChD,CAAC"}
|