@bloque/sdk-orgs 0.0.22 → 0.0.24

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/README.md ADDED
@@ -0,0 +1,5 @@
1
+ # `@bloque/sdk-orgs`
2
+
3
+ ⚠️ **Warning**: This package is intended for internal use. Its release cycle does not follow SemVer, which means we might release breaking changes (change APIs, remove functionality) without any prior warning.
4
+
5
+ For documentation, please refer to the [main SDK documentation](../sdk/README.md).
package/dist/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export * from './client';
1
+ export * from './orgs-client';
2
2
  export * from './types';
@@ -0,0 +1,76 @@
1
+ /**
2
+ * @internal
3
+ * Wire types for Organizations API communication (snake_case format)
4
+ * These types represent the raw API request/response format
5
+ * and should not be used directly by SDK consumers.
6
+ */
7
+ /**
8
+ * @internal
9
+ * Organization type
10
+ */
11
+ export type OrgType = 'business' | 'individual';
12
+ /**
13
+ * @internal
14
+ * Organization status
15
+ */
16
+ export type OrgStatus = 'awaiting_compliance_verification' | 'active' | 'suspended' | 'closed';
17
+ /**
18
+ * @internal
19
+ * Place/location for organization
20
+ */
21
+ export interface Place {
22
+ country_code: string;
23
+ state: string;
24
+ address_line1: string;
25
+ postal_code: string;
26
+ city: string;
27
+ is_primary: boolean;
28
+ }
29
+ /**
30
+ * @internal
31
+ * Organization profile (snake_case API format)
32
+ */
33
+ export interface OrgProfile {
34
+ legal_name: string;
35
+ tax_id: string;
36
+ incorporation_date: string;
37
+ business_type: string;
38
+ incorporation_country_code: string;
39
+ incorporation_state?: string;
40
+ address_line1: string;
41
+ address_line2?: string;
42
+ postal_code: string;
43
+ city: string;
44
+ logo_url?: string;
45
+ places?: Place[];
46
+ }
47
+ /**
48
+ * @internal
49
+ * Create organization request params
50
+ */
51
+ export interface CreateOrgParams {
52
+ org_type: OrgType;
53
+ profile: OrgProfile;
54
+ metadata?: Record<string, unknown>;
55
+ }
56
+ /**
57
+ * @internal
58
+ * Organization from API
59
+ */
60
+ export interface Organization {
61
+ urn: string;
62
+ org_type: OrgType;
63
+ profile: OrgProfile;
64
+ metadata?: Record<string, unknown>;
65
+ status: OrgStatus;
66
+ }
67
+ /**
68
+ * @internal
69
+ * Create organization response
70
+ */
71
+ export interface CreateOrgResponse {
72
+ result: {
73
+ organization: Organization;
74
+ };
75
+ req_id: string;
76
+ }
package/dist/types.d.ts CHANGED
@@ -1,42 +1,5 @@
1
- export type OrgType = 'business' | 'individual';
2
- export type OrgStatus = 'awaiting_compliance_verification' | 'active' | 'suspended' | 'closed';
3
- export interface Place {
4
- country_code: string;
5
- state: string;
6
- address_line1: string;
7
- postal_code: string;
8
- city: string;
9
- is_primary: boolean;
10
- }
11
- export interface OrgProfile {
12
- legal_name: string;
13
- tax_id: string;
14
- incorporation_date: string;
15
- business_type: string;
16
- incorporation_country_code: string;
17
- incorporation_state?: string;
18
- address_line1: string;
19
- address_line2?: string;
20
- postal_code: string;
21
- city: string;
22
- logo_url?: string;
23
- places?: Place[];
24
- }
25
- export interface CreateOrgParams {
26
- org_type: OrgType;
27
- profile: OrgProfile;
28
- metadata?: Record<string, unknown>;
29
- }
30
- export interface Organization {
31
- urn: string;
32
- org_type: OrgType;
33
- profile: OrgProfile;
34
- metadata?: Record<string, unknown>;
35
- status: OrgStatus;
36
- }
37
- export interface CreateOrgResponse {
38
- result: {
39
- organization: Organization;
40
- };
41
- req_id: string;
42
- }
1
+ /**
2
+ * Public types for @bloque/sdk-orgs
3
+ * Re-exports internal wire types for backward compatibility
4
+ */
5
+ export type { CreateOrgParams, CreateOrgResponse, Organization, OrgProfile, OrgStatus, OrgType, Place, } from './internal/wire-types';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bloque/sdk-orgs",
3
- "version": "0.0.22",
3
+ "version": "0.0.24",
4
4
  "type": "module",
5
5
  "keywords": [
6
6
  "bloque",
@@ -34,6 +34,6 @@
34
34
  "node": ">=22"
35
35
  },
36
36
  "dependencies": {
37
- "@bloque/sdk-core": "0.0.22"
37
+ "@bloque/sdk-core": "0.0.24"
38
38
  }
39
39
  }
File without changes