@vrplatform/api 1.3.1-stage.1705 → 1.3.1-stage.1711

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.
@@ -1 +1 @@
1
- {"version":3,"file":"sec.js","sourceRoot":"src/","sources":["sec.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,KAAK,UAAU,iBAAiB,CACrC,MAAc,EACd,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC;IAEzC,MAAM,OAAO,GAAG,IAAI,WAAW,EAAE,CAAC;IAClC,MAAM,SAAS,GAAG,MAAM,MAAM,CAAC,MAAM,CAAC,SAAS,CAC7C,KAAK,EACL,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,EACtB,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,EACjC,KAAK,EACL,CAAC,MAAM,CAAC,CACT,CAAC;IAEF,MAAM,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC,GAAG,SAAS,EAAE,CAAC,CAAC;IAC/C,MAAM,SAAS,GAAG,MAAM,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;IACvE,MAAM,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,GAAG,IAAI,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,OAAO,CAC1E,IAAI,EACJ,EAAE,CACH,CAAC;IAEF,OAAO,GAAG,SAAS,IAAI,IAAI,EAAE,CAAC;AAChC,CAAC","sourcesContent":["export async function generateApiKeySec(\n secret: string,\n timestamp = Math.floor(Date.now() / 1000)\n): Promise<string> {\n const encoder = new TextEncoder();\n const secretKey = await crypto.subtle.importKey(\n 'raw',\n encoder.encode(secret),\n { name: 'HMAC', hash: 'SHA-256' },\n false,\n ['sign']\n );\n\n const message = encoder.encode(`${timestamp}`);\n const signature = await crypto.subtle.sign('HMAC', secretKey, message);\n const hash = btoa(String.fromCharCode(...new Uint8Array(signature))).replace(\n /=/g,\n ''\n );\n\n return `${timestamp}.${hash}`;\n}\n"]}
1
+ {"version":3,"file":"sec.js","sourceRoot":"src/","sources":["sec.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,KAAK,UAAU,iBAAiB,CACrC,MAAc,EACd,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,EACxB;IACjB,MAAM,OAAO,GAAG,IAAI,WAAW,EAAE,CAAC;IAClC,MAAM,SAAS,GAAG,MAAM,MAAM,CAAC,MAAM,CAAC,SAAS,CAC7C,KAAK,EACL,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,EACtB,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,EACjC,KAAK,EACL,CAAC,MAAM,CAAC,CACT,CAAC;IAEF,MAAM,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC,GAAG,SAAS,EAAE,CAAC,CAAC;IAC/C,MAAM,SAAS,GAAG,MAAM,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;IACvE,MAAM,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,GAAG,IAAI,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,OAAO,CAC1E,IAAI,EACJ,EAAE,CACH,CAAC;IAEF,OAAO,GAAG,SAAS,IAAI,IAAI,EAAE,CAAC;AAAA,CAC/B","sourcesContent":["export async function generateApiKeySec(\n secret: string,\n timestamp = Math.floor(Date.now() / 1000)\n): Promise<string> {\n const encoder = new TextEncoder();\n const secretKey = await crypto.subtle.importKey(\n 'raw',\n encoder.encode(secret),\n { name: 'HMAC', hash: 'SHA-256' },\n false,\n ['sign']\n );\n\n const message = encoder.encode(`${timestamp}`);\n const signature = await crypto.subtle.sign('HMAC', secretKey, message);\n const hash = btoa(String.fromCharCode(...new Uint8Array(signature))).replace(\n /=/g,\n ''\n );\n\n return `${timestamp}.${hash}`;\n}\n"]}
@@ -1 +1 @@
1
- {"root":["../../src/cache.ts","../../src/client.ts","../../src/error.ts","../../src/index.ts","../../src/sec.ts","../../src/types.ts","../../src/generated/openapi-fetch.ts","../../src/generated/v1.ts"],"version":"5.9.3"}
1
+ {"version":"7.0.0-dev.20251218.3","root":["../../src/cache.ts","../../src/client.ts","../../src/error.ts","../../src/index.ts","../../src/sec.ts","../../src/types.ts","../../src/generated/openapi-fetch.ts","../../src/generated/v1.ts"]}
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "typings": "build/main/index.d.ts",
7
7
  "module": "build/module/index.js"
8
8
  },
9
- "version": "1.3.1-stage.1705",
9
+ "version": "1.3.1-stage.1711",
10
10
  "description": "",
11
11
  "main": "build/main/index.js",
12
12
  "module": "build/module/index.js",
@@ -16,8 +16,8 @@
16
16
  "npmpub:staging": "vrp-publish --tag staging",
17
17
  "npmpub:production": "vrp-publish",
18
18
  "build": "bun run generate-client && bun build:main && bun build:module",
19
- "build:main": "tsc -b tsconfig.main.json",
20
- "build:module": "tsc -b tsconfig.esm.json",
19
+ "build:main": "tsgo -b tsconfig.main.json",
20
+ "build:module": "tsgo -b tsconfig.esm.json",
21
21
  "dev": "NODE_ENV=generator bun --watch ./generate.ts",
22
22
  "generate-client": "bun generate:schema && bun generate:client",
23
23
  "generate:schema": "NODE_ENV=generator bun ./openapi.ts",
@@ -6480,7 +6480,7 @@ export interface operations {
6480
6480
  parameters: {
6481
6481
  query?: {
6482
6482
  search?: string;
6483
- status?: ("active" | "inactive") | "pending";
6483
+ status?: "active" | "inactive" | "pending";
6484
6484
  type?: "owner" | "vendor";
6485
6485
  companyType?: "c_corporation" | "limited_liability_company" | "partnership" | "s_corporation" | "trust_estate";
6486
6486
  isIndividual?: boolean;
@@ -6524,7 +6524,8 @@ export interface operations {
6524
6524
  companyType?: ("c_corporation" | "limited_liability_company" | "partnership" | "s_corporation" | "trust_estate") | null;
6525
6525
  taxIdentifier?: string | null;
6526
6526
  uniqueRef?: string | null;
6527
- status: ("active" | "inactive") | "pending";
6527
+ /** @enum {string} */
6528
+ status: "active" | "inactive" | "pending";
6528
6529
  payoutAccountId?: string | null;
6529
6530
  /** Format: uuid */
6530
6531
  id: string;
@@ -6709,7 +6710,8 @@ export interface operations {
6709
6710
  companyType?: ("c_corporation" | "limited_liability_company" | "partnership" | "s_corporation" | "trust_estate") | null;
6710
6711
  taxIdentifier?: string | null;
6711
6712
  uniqueRef?: string | null;
6712
- status: ("active" | "inactive") | "pending";
6713
+ /** @enum {string} */
6714
+ status: "active" | "inactive" | "pending";
6713
6715
  payoutAccountId?: string | null;
6714
6716
  /** Format: uuid */
6715
6717
  id: string;
@@ -6970,7 +6972,7 @@ export interface operations {
6970
6972
  parameters: {
6971
6973
  query?: {
6972
6974
  search?: string;
6973
- status?: ("active" | "inactive") | "pending";
6975
+ status?: "active" | "inactive" | "pending";
6974
6976
  type?: "owner" | "vendor";
6975
6977
  companyType?: "c_corporation" | "limited_liability_company" | "partnership" | "s_corporation" | "trust_estate";
6976
6978
  isIndividual?: boolean;
@@ -7115,7 +7117,8 @@ export interface operations {
7115
7117
  companyType?: ("c_corporation" | "limited_liability_company" | "partnership" | "s_corporation" | "trust_estate") | null;
7116
7118
  taxIdentifier?: string | null;
7117
7119
  uniqueRef?: string | null;
7118
- status: ("active" | "inactive") | "pending";
7120
+ /** @enum {string} */
7121
+ status: "active" | "inactive" | "pending";
7119
7122
  payoutAccountId?: string | null;
7120
7123
  /** Format: uuid */
7121
7124
  id: string;
@@ -7291,7 +7294,8 @@ export interface operations {
7291
7294
  companyType?: ("c_corporation" | "limited_liability_company" | "partnership" | "s_corporation" | "trust_estate") | null;
7292
7295
  taxIdentifier?: string | null;
7293
7296
  uniqueRef?: string | null;
7294
- status: ("active" | "inactive") | "pending";
7297
+ /** @enum {string} */
7298
+ status: "active" | "inactive" | "pending";
7295
7299
  payoutAccountId?: string | null;
7296
7300
  /** Format: uuid */
7297
7301
  id: string;