@subnoto/api-client 2.3.5 → 2.3.7

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.
Binary file
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@subnoto/api-client",
3
3
  "private": false,
4
- "version": "2.3.5",
4
+ "version": "2.3.7",
5
5
  "description": "TypeScript SDK for Subnoto Public API",
6
6
  "author": "Subnoto",
7
7
  "homepage": "https://subnoto.com",
@@ -4586,6 +4586,352 @@ export interface paths {
4586
4586
  patch?: never;
4587
4587
  trace?: never;
4588
4588
  };
4589
+ "/public/workspace/create": {
4590
+ parameters: {
4591
+ query?: never;
4592
+ header?: never;
4593
+ path?: never;
4594
+ cookie?: never;
4595
+ };
4596
+ get?: never;
4597
+ put?: never;
4598
+ /**
4599
+ * create
4600
+ * @description Create a new workspace for the API key owner's team.
4601
+ */
4602
+ post: {
4603
+ parameters: {
4604
+ query?: never;
4605
+ header?: never;
4606
+ path?: never;
4607
+ cookie?: never;
4608
+ };
4609
+ requestBody: {
4610
+ content: {
4611
+ "application/json": {
4612
+ /** @description The name of the workspace to create. */
4613
+ name: string;
4614
+ /** @description The color of the workspace in hexadecimal format. */
4615
+ colorHex?: string;
4616
+ };
4617
+ };
4618
+ };
4619
+ responses: {
4620
+ /** @description Default Response */
4621
+ 200: {
4622
+ headers: {
4623
+ [name: string]: unknown;
4624
+ };
4625
+ content: {
4626
+ "application/json": {
4627
+ workspace: {
4628
+ /** @description The unique identifier of the workspace. */
4629
+ uuid: string;
4630
+ /** @description The name of the workspace. */
4631
+ name: string;
4632
+ /** @description The date and time the workspace was created (unix timestamp). */
4633
+ creationDate: number;
4634
+ /** @description The date and time the workspace was last updated (unix timestamp). */
4635
+ updateDate: number;
4636
+ /** @description Indicates whether this workspace is the default workspace for the users of the team. */
4637
+ isDefault: boolean;
4638
+ /** @description The color of the workspace in hexadecimal format. */
4639
+ colorHex: string;
4640
+ };
4641
+ };
4642
+ };
4643
+ };
4644
+ /** @description Default Response */
4645
+ 401: {
4646
+ headers: {
4647
+ [name: string]: unknown;
4648
+ };
4649
+ content: {
4650
+ "application/json": {
4651
+ /** @description HTTP status code */
4652
+ statusCode: number;
4653
+ error: {
4654
+ /**
4655
+ * @description The error code
4656
+ * @enum {string}
4657
+ */
4658
+ code: "AUTHENTICATION_ERROR" | "TUNNEL_ERROR" | "INVALID_REQUEST_FORMAT";
4659
+ /** @description The error message */
4660
+ message: string;
4661
+ /** @description A suggestion to resolve the error */
4662
+ suggestion: string;
4663
+ /** @description A URL to the documentation */
4664
+ documentationUrl: string;
4665
+ };
4666
+ /** @description The unique identifier of the request */
4667
+ requestId: string;
4668
+ /** @description The timestamp of the response */
4669
+ timestamp: string;
4670
+ /** @description The path of the request */
4671
+ path: string;
4672
+ };
4673
+ };
4674
+ };
4675
+ /** @description Default Response */
4676
+ 403: {
4677
+ headers: {
4678
+ [name: string]: unknown;
4679
+ };
4680
+ content: {
4681
+ "application/json": {
4682
+ /** @description HTTP status code */
4683
+ statusCode: number;
4684
+ error: {
4685
+ /**
4686
+ * @description The error code
4687
+ * @enum {string}
4688
+ */
4689
+ code: "AUTHORIZATION_ERROR" | "FEATURE_NOT_IN_CURRENT_PLAN" | "INVALID_REQUEST_FORMAT";
4690
+ /** @description The error message */
4691
+ message: string;
4692
+ /** @description A suggestion to resolve the error */
4693
+ suggestion: string;
4694
+ /** @description A URL to the documentation */
4695
+ documentationUrl: string;
4696
+ };
4697
+ /** @description The unique identifier of the request */
4698
+ requestId: string;
4699
+ /** @description The timestamp of the response */
4700
+ timestamp: string;
4701
+ /** @description The path of the request */
4702
+ path: string;
4703
+ };
4704
+ };
4705
+ };
4706
+ /** @description Default Response */
4707
+ 500: {
4708
+ headers: {
4709
+ [name: string]: unknown;
4710
+ };
4711
+ content: {
4712
+ "application/json": {
4713
+ /** @description HTTP status code */
4714
+ statusCode: number;
4715
+ error: {
4716
+ /**
4717
+ * @description The error code
4718
+ * @enum {string}
4719
+ */
4720
+ code: "INTERNAL_SERVER_ERROR" | "INVALID_REQUEST_FORMAT";
4721
+ /** @description The error message */
4722
+ message: string;
4723
+ /** @description A suggestion to resolve the error */
4724
+ suggestion: string;
4725
+ /** @description A URL to the documentation */
4726
+ documentationUrl: string;
4727
+ };
4728
+ /** @description The unique identifier of the request */
4729
+ requestId: string;
4730
+ /** @description The timestamp of the response */
4731
+ timestamp: string;
4732
+ /** @description The path of the request */
4733
+ path: string;
4734
+ };
4735
+ };
4736
+ };
4737
+ };
4738
+ };
4739
+ delete?: never;
4740
+ options?: never;
4741
+ head?: never;
4742
+ patch?: never;
4743
+ trace?: never;
4744
+ };
4745
+ "/public/workspace/get": {
4746
+ parameters: {
4747
+ query?: never;
4748
+ header?: never;
4749
+ path?: never;
4750
+ cookie?: never;
4751
+ };
4752
+ get?: never;
4753
+ put?: never;
4754
+ /**
4755
+ * get
4756
+ * @description Get a workspace by UUID or name. Returns workspace details including member count.
4757
+ */
4758
+ post: {
4759
+ parameters: {
4760
+ query?: never;
4761
+ header?: never;
4762
+ path?: never;
4763
+ cookie?: never;
4764
+ };
4765
+ requestBody?: {
4766
+ content: {
4767
+ "application/json": {
4768
+ /** @description The UUID of the workspace to get. */
4769
+ workspaceUuid: string;
4770
+ } | {
4771
+ /** @description The name of the workspace to get. */
4772
+ workspaceName: string;
4773
+ };
4774
+ };
4775
+ };
4776
+ responses: {
4777
+ /** @description Default Response */
4778
+ 200: {
4779
+ headers: {
4780
+ [name: string]: unknown;
4781
+ };
4782
+ content: {
4783
+ "application/json": {
4784
+ workspace: {
4785
+ /** @description The unique identifier of the workspace. */
4786
+ uuid: string;
4787
+ /** @description The name of the workspace. */
4788
+ name: string;
4789
+ /** @description The date and time the workspace was created (unix timestamp). */
4790
+ creationDate: number;
4791
+ /** @description The date and time the workspace was last updated (unix timestamp). */
4792
+ updateDate: number;
4793
+ /** @description Indicates whether this workspace is the default workspace for the users of the team. */
4794
+ isDefault: boolean;
4795
+ /** @description The color of the workspace in hexadecimal format. */
4796
+ colorHex: string;
4797
+ /** @description The number of members in this workspace. */
4798
+ membersCount: number;
4799
+ };
4800
+ };
4801
+ };
4802
+ };
4803
+ /** @description Default Response */
4804
+ 400: {
4805
+ headers: {
4806
+ [name: string]: unknown;
4807
+ };
4808
+ content: {
4809
+ "application/json": {
4810
+ /** @description HTTP status code */
4811
+ statusCode: number;
4812
+ error: {
4813
+ /**
4814
+ * @description The error code
4815
+ * @enum {string}
4816
+ */
4817
+ code: "WORKSPACE_NOT_FOUND" | "INVALID_REQUEST_FORMAT";
4818
+ /** @description The error message */
4819
+ message: string;
4820
+ /** @description A suggestion to resolve the error */
4821
+ suggestion: string;
4822
+ /** @description A URL to the documentation */
4823
+ documentationUrl: string;
4824
+ };
4825
+ /** @description The unique identifier of the request */
4826
+ requestId: string;
4827
+ /** @description The timestamp of the response */
4828
+ timestamp: string;
4829
+ /** @description The path of the request */
4830
+ path: string;
4831
+ };
4832
+ };
4833
+ };
4834
+ /** @description Default Response */
4835
+ 401: {
4836
+ headers: {
4837
+ [name: string]: unknown;
4838
+ };
4839
+ content: {
4840
+ "application/json": {
4841
+ /** @description HTTP status code */
4842
+ statusCode: number;
4843
+ error: {
4844
+ /**
4845
+ * @description The error code
4846
+ * @enum {string}
4847
+ */
4848
+ code: "AUTHENTICATION_ERROR" | "TUNNEL_ERROR" | "INVALID_REQUEST_FORMAT";
4849
+ /** @description The error message */
4850
+ message: string;
4851
+ /** @description A suggestion to resolve the error */
4852
+ suggestion: string;
4853
+ /** @description A URL to the documentation */
4854
+ documentationUrl: string;
4855
+ };
4856
+ /** @description The unique identifier of the request */
4857
+ requestId: string;
4858
+ /** @description The timestamp of the response */
4859
+ timestamp: string;
4860
+ /** @description The path of the request */
4861
+ path: string;
4862
+ };
4863
+ };
4864
+ };
4865
+ /** @description Default Response */
4866
+ 403: {
4867
+ headers: {
4868
+ [name: string]: unknown;
4869
+ };
4870
+ content: {
4871
+ "application/json": {
4872
+ /** @description HTTP status code */
4873
+ statusCode: number;
4874
+ error: {
4875
+ /**
4876
+ * @description The error code
4877
+ * @enum {string}
4878
+ */
4879
+ code: "AUTHORIZATION_ERROR" | "FEATURE_NOT_IN_CURRENT_PLAN" | "INVALID_REQUEST_FORMAT";
4880
+ /** @description The error message */
4881
+ message: string;
4882
+ /** @description A suggestion to resolve the error */
4883
+ suggestion: string;
4884
+ /** @description A URL to the documentation */
4885
+ documentationUrl: string;
4886
+ };
4887
+ /** @description The unique identifier of the request */
4888
+ requestId: string;
4889
+ /** @description The timestamp of the response */
4890
+ timestamp: string;
4891
+ /** @description The path of the request */
4892
+ path: string;
4893
+ };
4894
+ };
4895
+ };
4896
+ /** @description Default Response */
4897
+ 500: {
4898
+ headers: {
4899
+ [name: string]: unknown;
4900
+ };
4901
+ content: {
4902
+ "application/json": {
4903
+ /** @description HTTP status code */
4904
+ statusCode: number;
4905
+ error: {
4906
+ /**
4907
+ * @description The error code
4908
+ * @enum {string}
4909
+ */
4910
+ code: "INTERNAL_SERVER_ERROR" | "INVALID_REQUEST_FORMAT";
4911
+ /** @description The error message */
4912
+ message: string;
4913
+ /** @description A suggestion to resolve the error */
4914
+ suggestion: string;
4915
+ /** @description A URL to the documentation */
4916
+ documentationUrl: string;
4917
+ };
4918
+ /** @description The unique identifier of the request */
4919
+ requestId: string;
4920
+ /** @description The timestamp of the response */
4921
+ timestamp: string;
4922
+ /** @description The path of the request */
4923
+ path: string;
4924
+ };
4925
+ };
4926
+ };
4927
+ };
4928
+ };
4929
+ delete?: never;
4930
+ options?: never;
4931
+ head?: never;
4932
+ patch?: never;
4933
+ trace?: never;
4934
+ };
4589
4935
  "/public/workspace/list": {
4590
4936
  parameters: {
4591
4937
  query?: never;
@@ -4771,5 +5117,7 @@ export enum ApiPaths {
4771
5117
  PostPublicEnvelopeUpdate = "/public/envelope/update",
4772
5118
  PostPublicTemplateList = "/public/template/list",
4773
5119
  PostPublicUtilsWhoami = "/public/utils/whoami",
5120
+ PostPublicWorkspaceCreate = "/public/workspace/create",
5121
+ PostPublicWorkspaceGet = "/public/workspace/get",
4774
5122
  PostPublicWorkspaceList = "/public/workspace/list"
4775
5123
  }