@volter/twin-twilio 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -88,7 +88,7 @@
88
88
  // `phone_number:<sid>`) — the PUBLIC sid emitted to clients is the bare Twilio-shaped sid
89
89
  // (SM…/VE…/PN…). `kid()` builds the subject id; `rows()` strips the prefix back off.
90
90
  import { createHash } from 'node:crypto';
91
- import { applyTwinWrite, projectResources } from '@volter/world-core';
91
+ import { applyTwinWrite, projectResources, worldNow } from '@volter/world-core';
92
92
  import { presentedTwilioCredentials, storedTwilioCredentials, twilioCredentials } from "./twilio-credentials.js";
93
93
  const SERVICE = 'twilio';
94
94
  const API_VERSION = '2010-04-01';
@@ -150,7 +150,7 @@ function parseFormBody(body) {
150
150
  return { ok: true, value };
151
151
  }
152
152
  function nowIso(occurredAt) {
153
- return occurredAt ?? new Date().toISOString();
153
+ return occurredAt ?? worldNow();
154
154
  }
155
155
  /** Twilio's own message/account timestamp wire format (RFC 2822-ish, e.g. "Fri, 24 May 2019
156
156
  * 17:44:46 +0000") — grounded from the twilio_api_v2010.json Messages-list example AND the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@volter/twin-twilio",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Local Twilio twin for the messaging/telephony surface (Messages send + delivery-status lifecycle, Verify start/check, Lookup, IncomingPhoneNumbers, X-Twilio-Signature-signed webhooks) built on @volter/world-core.",
5
5
  "author": "Volter (https://github.com/volter-ai)",
6
6
  "license": "Apache-2.0",
@@ -35,12 +35,12 @@
35
35
  "postpack": "node ../../../scripts/publish/prepare-publish.mjs postpack"
36
36
  },
37
37
  "peerDependencies": {
38
- "@volter/world-core": "2.0.0"
38
+ "@volter/world-core": "2.0.1"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@types/bun": "^1.2.20",
42
42
  "@types/node": "^24.0.0",
43
- "@volter/world-core": "2.0.0",
43
+ "@volter/world-core": "2.0.1",
44
44
  "@volter/world-tooling": "0.1.0",
45
45
  "twilio": "6.0.2",
46
46
  "typescript": "^5.9.0"
@@ -88,7 +88,7 @@
88
88
  // `phone_number:<sid>`) — the PUBLIC sid emitted to clients is the bare Twilio-shaped sid
89
89
  // (SM…/VE…/PN…). `kid()` builds the subject id; `rows()` strips the prefix back off.
90
90
  import { createHash } from 'node:crypto';
91
- import { applyTwinWrite, projectResources } from '@volter/world-core';
91
+ import { applyTwinWrite, projectResources, worldNow } from '@volter/world-core';
92
92
  import { presentedTwilioCredentials, storedTwilioCredentials, twilioCredentials } from './twilio-credentials.ts';
93
93
 
94
94
  const SERVICE = 'twilio';
@@ -175,7 +175,7 @@ function parseFormBody(body?: string): { ok: true; value: Record<string, string>
175
175
  }
176
176
 
177
177
  function nowIso(occurredAt?: string): string {
178
- return occurredAt ?? new Date().toISOString();
178
+ return occurredAt ?? worldNow();
179
179
  }
180
180
  /** Twilio's own message/account timestamp wire format (RFC 2822-ish, e.g. "Fri, 24 May 2019
181
181
  * 17:44:46 +0000") — grounded from the twilio_api_v2010.json Messages-list example AND the