@squidcloud/twilio-client 1.0.493

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.
@@ -0,0 +1,82 @@
1
+ /**
2
+ * A type alias for an ApiKey.
3
+ * @category Secret
4
+ */
5
+ export type ApiKey = string;
6
+ /**
7
+ * The secret key, an alias for a string.
8
+ * @category Secret
9
+ */
10
+ export type SecretKey = string;
11
+ /**
12
+ * The secret value.
13
+ * @category Secret
14
+ */
15
+ export type SecretValue = string | number | boolean;
16
+ /**
17
+ * Metadata for a secret, including its key and last updated timestamp.
18
+ * @category Secret
19
+ */
20
+ export interface SecretMetadata {
21
+ /** The key identifying the secret. */
22
+ key: SecretKey;
23
+ /** The timestamp (in milliseconds) when the secret was last updated. */
24
+ lastUpdated: number;
25
+ }
26
+ /**
27
+ * A secret entry combining metadata with a typed value.
28
+ * @category Secret
29
+ */
30
+ export interface SecretEntry<T extends SecretValue = SecretValue> extends SecretMetadata {
31
+ /** The value of the secret, constrained to the specified type. */
32
+ value: T;
33
+ }
34
+ /**
35
+ * An API key entry combining metadata with a string value.
36
+ * @category Secret
37
+ */
38
+ export interface ApiKeyEntry extends SecretMetadata {
39
+ /** The string value of the API key. */
40
+ value: string;
41
+ }
42
+ /**
43
+ * A request structure for setting a secret with a key-value pair.
44
+ * @category Secret
45
+ */
46
+ export interface SetSecretRequestEntry {
47
+ /** The key identifying the secret to set. */
48
+ key: SecretKey;
49
+ /** The value to assign to the secret. */
50
+ value: SecretValue;
51
+ }
52
+ /**
53
+ * Public representation of a management API key. Never includes the plaintext value or hash.
54
+ * @category Secret
55
+ */
56
+ export interface ManagementApiKey {
57
+ /** Stable key identifier. */
58
+ id: string;
59
+ /** User that owns the key. */
60
+ userId: string;
61
+ /** Optional human-readable description. */
62
+ description: string | null;
63
+ /** Lower-case 'active' | 'suspended' | 'deleted'. */
64
+ status: string;
65
+ /** ISO-8601 timestamp of creation. */
66
+ createdAt: string;
67
+ /** ISO-8601 timestamp of the last status / metadata change. */
68
+ updatedAt: string;
69
+ /** ISO-8601 timestamp of the last successful validation, or null if never used. */
70
+ lastUsedAt: string | null;
71
+ }
72
+ /**
73
+ * Response returned when a management API key is created. The plaintext keyValue is only
74
+ * returned at creation time — it is not retrievable afterwards.
75
+ * @category Secret
76
+ */
77
+ export interface CreateManagementApiKeyResponse {
78
+ /** Public metadata of the new key. */
79
+ key: ManagementApiKey;
80
+ /** Plaintext key value — only returned here, never persisted in clear, never returned again. */
81
+ keyValue: string;
82
+ }
package/package.json ADDED
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "@squidcloud/twilio-client",
3
+ "version": "1.0.493",
4
+ "description": "Squid Twilio Client",
5
+ "main": "dist/index.js",
6
+ "types": "dist/client/src/index.d.ts",
7
+ "scripts": {
8
+ "prebuild": "del-cli dist",
9
+ "build": "webpack --mode=production",
10
+ "lint": "eslint",
11
+ "publish:public": "npm run build && npm publish --access public"
12
+ },
13
+ "files": [
14
+ "dist/**/*"
15
+ ],
16
+ "keywords": [],
17
+ "author": "",
18
+ "license": "ISC",
19
+ "dependencies": {
20
+ "@squidcloud/client": "^1.0.493"
21
+ },
22
+ "engines": {
23
+ "node": ">=20.0.0"
24
+ }
25
+ }