@clossir-tech/ts-sdk 0.9.7 → 0.9.9

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.
Files changed (82) hide show
  1. package/README.md +14 -12
  2. package/esm/funcs/assets-delete-orgs-by-org-id-assets-by-asset-id.d.ts +18 -0
  3. package/esm/funcs/assets-delete-orgs-by-org-id-assets-by-asset-id.d.ts.map +1 -0
  4. package/esm/funcs/assets-delete-orgs-by-org-id-assets-by-asset-id.js +111 -0
  5. package/esm/funcs/assets-delete-orgs-by-org-id-assets-by-asset-id.js.map +1 -0
  6. package/esm/funcs/auth-post-auth-refresh.js +1 -1
  7. package/esm/funcs/auth-post-auth-refresh.js.map +1 -1
  8. package/esm/funcs/auth-post-auth-reset-password.js +1 -1
  9. package/esm/funcs/auth-post-auth-reset-password.js.map +1 -1
  10. package/esm/funcs/compliance-post-orgs-by-org-id-assets-by-asset-id-compliance-policy.d.ts +1 -1
  11. package/esm/funcs/compliance-post-orgs-by-org-id-assets-by-asset-id-compliance-policy.js +1 -1
  12. package/esm/funcs/kyc-post-kyc-webhook-by-provider.d.ts +2 -2
  13. package/esm/funcs/kyc-post-kyc-webhook-by-provider.d.ts.map +1 -1
  14. package/esm/funcs/kyc-post-kyc-webhook-by-provider.js +10 -8
  15. package/esm/funcs/kyc-post-kyc-webhook-by-provider.js.map +1 -1
  16. package/esm/funcs/organizations-get-orgs.d.ts +2 -2
  17. package/esm/funcs/organizations-get-orgs.d.ts.map +1 -1
  18. package/esm/funcs/organizations-get-orgs.js +26 -5
  19. package/esm/funcs/organizations-get-orgs.js.map +1 -1
  20. package/esm/funcs/organizations-post-orgs-by-org-id-invitations-by-invitation-id-resend.js +3 -1
  21. package/esm/funcs/organizations-post-orgs-by-org-id-invitations-by-invitation-id-resend.js.map +1 -1
  22. package/esm/funcs/organizations-post-orgs-by-org-id-members-invite.js +3 -1
  23. package/esm/funcs/organizations-post-orgs-by-org-id-members-invite.js.map +1 -1
  24. package/esm/funcs/organizations-post-orgs-by-org-id-members.js +2 -0
  25. package/esm/funcs/organizations-post-orgs-by-org-id-members.js.map +1 -1
  26. package/esm/lib/config.d.ts +2 -2
  27. package/esm/lib/config.js +2 -2
  28. package/esm/models/operations/delete-orgs-by-org-id-assets-by-asset-id.d.ts +26 -0
  29. package/esm/models/operations/delete-orgs-by-org-id-assets-by-asset-id.d.ts.map +1 -0
  30. package/esm/models/operations/delete-orgs-by-org-id-assets-by-asset-id.js +21 -0
  31. package/esm/models/operations/delete-orgs-by-org-id-assets-by-asset-id.js.map +1 -0
  32. package/esm/models/operations/get-orgs.d.ts +48 -0
  33. package/esm/models/operations/get-orgs.d.ts.map +1 -1
  34. package/esm/models/operations/get-orgs.js +27 -0
  35. package/esm/models/operations/get-orgs.js.map +1 -1
  36. package/esm/models/operations/index.d.ts +1 -0
  37. package/esm/models/operations/index.d.ts.map +1 -1
  38. package/esm/models/operations/index.js +1 -0
  39. package/esm/models/operations/index.js.map +1 -1
  40. package/esm/models/operations/post-kyc-webhook-by-provider.d.ts +64 -0
  41. package/esm/models/operations/post-kyc-webhook-by-provider.d.ts.map +1 -1
  42. package/esm/models/operations/post-kyc-webhook-by-provider.js +24 -0
  43. package/esm/models/operations/post-kyc-webhook-by-provider.js.map +1 -1
  44. package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-compliance-policy.d.ts +43 -1
  45. package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-compliance-policy.d.ts.map +1 -1
  46. package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-compliance-policy.js +29 -0
  47. package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-compliance-policy.js.map +1 -1
  48. package/esm/sdk/assets.d.ts +7 -0
  49. package/esm/sdk/assets.d.ts.map +1 -1
  50. package/esm/sdk/assets.js +10 -0
  51. package/esm/sdk/assets.js.map +1 -1
  52. package/esm/sdk/compliance.d.ts +1 -1
  53. package/esm/sdk/compliance.js +1 -1
  54. package/esm/sdk/kyc.d.ts +2 -2
  55. package/esm/sdk/kyc.d.ts.map +1 -1
  56. package/esm/sdk/kyc.js +3 -3
  57. package/esm/sdk/kyc.js.map +1 -1
  58. package/esm/sdk/organizations.d.ts +2 -2
  59. package/esm/sdk/organizations.d.ts.map +1 -1
  60. package/esm/sdk/organizations.js +3 -3
  61. package/esm/sdk/organizations.js.map +1 -1
  62. package/jsr.json +1 -1
  63. package/package.json +1 -1
  64. package/src/funcs/assets-delete-orgs-by-org-id-assets-by-asset-id.ts +214 -0
  65. package/src/funcs/auth-post-auth-refresh.ts +1 -1
  66. package/src/funcs/auth-post-auth-reset-password.ts +1 -1
  67. package/src/funcs/compliance-post-orgs-by-org-id-assets-by-asset-id-compliance-policy.ts +1 -1
  68. package/src/funcs/kyc-post-kyc-webhook-by-provider.ts +10 -5
  69. package/src/funcs/organizations-get-orgs.ts +37 -2
  70. package/src/funcs/organizations-post-orgs-by-org-id-invitations-by-invitation-id-resend.ts +3 -0
  71. package/src/funcs/organizations-post-orgs-by-org-id-members-invite.ts +3 -0
  72. package/src/funcs/organizations-post-orgs-by-org-id-members.ts +3 -0
  73. package/src/lib/config.ts +2 -2
  74. package/src/models/operations/delete-orgs-by-org-id-assets-by-asset-id.ts +69 -0
  75. package/src/models/operations/get-orgs.ts +91 -0
  76. package/src/models/operations/index.ts +1 -0
  77. package/src/models/operations/post-kyc-webhook-by-provider.ts +102 -0
  78. package/src/models/operations/post-orgs-by-org-id-assets-by-asset-id-compliance-policy.ts +56 -1
  79. package/src/sdk/assets.ts +22 -0
  80. package/src/sdk/compliance.ts +1 -1
  81. package/src/sdk/kyc.ts +3 -1
  82. package/src/sdk/organizations.ts +5 -1
package/src/sdk/assets.ts CHANGED
@@ -2,6 +2,7 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
+ import { assetsDeleteOrgsByOrgIdAssetsByAssetId } from "../funcs/assets-delete-orgs-by-org-id-assets-by-asset-id.js";
5
6
  import { assetsGetOrgsByOrgIdAssetsByAssetIdCollateral } from "../funcs/assets-get-orgs-by-org-id-assets-by-asset-id-collateral.js";
6
7
  import { assetsGetOrgsByOrgIdAssetsByAssetIdDocuments } from "../funcs/assets-get-orgs-by-org-id-assets-by-asset-id-documents.js";
7
8
  import { assetsGetOrgsByOrgIdAssetsByAssetIdEscrows } from "../funcs/assets-get-orgs-by-org-id-assets-by-asset-id-escrows.js";
@@ -108,6 +109,27 @@ export class Assets extends ClientSDK {
108
109
  ));
109
110
  }
110
111
 
112
+ /**
113
+ * Discard a draft asset
114
+ *
115
+ * @remarks
116
+ * Permanently deletes an asset that is still in `draft`. Synchronous — 204 on success, not a queued command. Answers 409 when the asset exists but is not a draft, or when a live deployment or dependent records block the delete. Requires assets:write and an admin/operator role.
117
+ */
118
+ async deleteOrgsByOrgIdAssetsByAssetId(
119
+ security: operations.DeleteOrgsByOrgIdAssetsByAssetIdSecurity,
120
+ orgId: string,
121
+ assetId: string,
122
+ options?: RequestOptions,
123
+ ): Promise<void> {
124
+ return unwrapAsync(assetsDeleteOrgsByOrgIdAssetsByAssetId(
125
+ this,
126
+ security,
127
+ orgId,
128
+ assetId,
129
+ options,
130
+ ));
131
+ }
132
+
111
133
  /**
112
134
  * List asset documents
113
135
  *
@@ -38,7 +38,7 @@ export class Compliance extends ClientSDK {
38
38
  * Update asset compliance policy
39
39
  *
40
40
  * @remarks
41
- * Updates the compliance policy for an asset. Stores changes in the database immediately. If chain_eid is provided and the asset is deployed on that chain, also queues an on-chain policy registration via CQRS (returns 202). Supports regulation presets (RegD 506b/c, RegS, RegA+ Tier 2) via the regulation_type field.
41
+ * Updates the compliance policy for an asset. Stores changes in the database immediately. If chain_eid is provided and the asset is deployed on that chain, also queues an on-chain policy registration via CQRS (returns 202). Supports regulation presets (RegD 506b/c, RegS, RegA+ Tier 2) via the regulation_type field. The onChainSyncOutcome field names which on-chain path ran — queued, not_requested, chain_not_deployed, no_contract_address, no_deployer_wallet or publish_failed — so a caller can tell the five non-queued outcomes apart. The local policy update is committed in every one of them, including publish_failed.
42
42
  */
43
43
  async postOrgsByOrgIdAssetsByAssetIdCompliancePolicy(
44
44
  security: operations.PostOrgsByOrgIdAssetsByAssetIdCompliancePolicySecurity,
package/src/sdk/kyc.ts CHANGED
@@ -67,15 +67,17 @@ export class Kyc extends ClientSDK {
67
67
  * KYC webhook
68
68
  *
69
69
  * @remarks
70
- * Webhook endpoint for KYC provider callbacks. Validates signature and processes status updates.
70
+ * Webhook endpoint for KYC provider callbacks. The digest is verified against the raw request bytes; every rejection returns the same opaque 400.
71
71
  */
72
72
  async postKycWebhookByProvider(
73
73
  provider: string,
74
+ body: operations.PostKycWebhookByProviderRequestBody,
74
75
  options?: RequestOptions,
75
76
  ): Promise<operations.PostKycWebhookByProviderResponse> {
76
77
  return unwrapAsync(kycPostKYCWebhookByProvider(
77
78
  this,
78
79
  provider,
80
+ body,
79
81
  options,
80
82
  ));
81
83
  }
@@ -64,15 +64,19 @@ export class Organizations extends ClientSDK {
64
64
  * List organizations
65
65
  *
66
66
  * @remarks
67
- * Returns organizations accessible to the authenticated user. With JWT auth, returns the user's org. With API key, returns the org associated with the key. Without auth, returns a limited public listing.
67
+ * Returns a paginated list of organizations the caller may see. With a user JWT: every root organization in which the user holds an active membership. With an API key (requires the `orgs:read` permission): only the organization the key belongs to. Unauthenticated requests are rejected with 401; there is no public listing. Use `page` (1-based) and `limit` (default 50, max 200).
68
68
  */
69
69
  async getOrgs(
70
70
  security: operations.GetOrgsSecurity,
71
+ page?: string | undefined,
72
+ limit?: string | undefined,
71
73
  options?: RequestOptions,
72
74
  ): Promise<operations.GetOrgsResponse> {
73
75
  return unwrapAsync(organizationsGetOrgs(
74
76
  this,
75
77
  security,
78
+ page,
79
+ limit,
76
80
  options,
77
81
  ));
78
82
  }