@vibexp/api-client 0.70.0 → 0.72.0

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.
@@ -2101,9 +2101,14 @@ export declare const createProject: <ThrowOnError extends boolean = false>(optio
2101
2101
  */
2102
2102
  export declare const deleteProject: <ThrowOnError extends boolean = false>(options: Options<DeleteProjectData, ThrowOnError>) => RequestResult<DeleteProjectResponses, DeleteProjectErrors, ThrowOnError>;
2103
2103
  /**
2104
- * Get project by slug
2104
+ * Get project by slug or ID
2105
+ *
2106
+ * Returns a single project within the specified team, identified by its
2107
+ * URL-encoded slug. When no project has that slug and the value is a UUID,
2108
+ * it is resolved as the project ID instead, so a client that persisted a
2109
+ * project's ID can look it up directly. A slug match always takes
2110
+ * precedence, and a project ID belonging to another team returns 404.
2105
2111
  *
2106
- * Returns a single project identified by its URL-encoded slug within the specified team.
2107
2112
  */
2108
2113
  export declare const getProject: <ThrowOnError extends boolean = false>(options: Options<GetProjectData, ThrowOnError>) => RequestResult<GetProjectResponses, GetProjectErrors, ThrowOnError>;
2109
2114
  /**
@@ -5059,9 +5059,14 @@ export const deleteProject = (options) => (options.client ?? client).delete({
5059
5059
  ...options
5060
5060
  });
5061
5061
  /**
5062
- * Get project by slug
5062
+ * Get project by slug or ID
5063
+ *
5064
+ * Returns a single project within the specified team, identified by its
5065
+ * URL-encoded slug. When no project has that slug and the value is a UUID,
5066
+ * it is resolved as the project ID instead, so a client that persisted a
5067
+ * project's ID can look it up directly. A slug match always takes
5068
+ * precedence, and a project ID belonging to another team returns 404.
5063
5069
  *
5064
- * Returns a single project identified by its URL-encoded slug within the specified team.
5065
5070
  */
5066
5071
  export const getProject = (options) => (options.client ?? client).get({
5067
5072
  responseType: 'json',
@@ -7605,7 +7605,7 @@ export type ListPromptsData = {
7605
7605
  */
7606
7606
  status?: PromptStatus;
7607
7607
  /**
7608
- * Comma-separated list of labels to filter by
7608
+ * Comma-separated list of labels to filter by. A resource matches when it carries at least one of the listed labels. At most 25 labels, each at most 50 characters; beyond that the request is rejected with 400.
7609
7609
  */
7610
7610
  labels?: string;
7611
7611
  /**
@@ -7632,6 +7632,10 @@ export type ListPromptsData = {
7632
7632
  url: '/api/v1/{team_id}/prompts';
7633
7633
  };
7634
7634
  export type ListPromptsErrors = {
7635
+ /**
7636
+ * Invalid query parameter (for example an unknown `freshness` or `sort_by` value, or a `labels` filter over the documented limits)
7637
+ */
7638
+ 400: ErrorResponse;
7635
7639
  /**
7636
7640
  * Unauthorized
7637
7641
  */
@@ -14976,7 +14980,7 @@ export type GetProjectData = {
14976
14980
  */
14977
14981
  team_id: string;
14978
14982
  /**
14979
- * Project slug (URL-encoded)
14983
+ * Project slug (URL-encoded), or the project ID (UUID) when no project has that slug
14980
14984
  */
14981
14985
  slug: string;
14982
14986
  };
package/dist/schema.d.ts CHANGED
@@ -4282,8 +4282,12 @@ export interface paths {
4282
4282
  cookie?: never;
4283
4283
  };
4284
4284
  /**
4285
- * Get project by slug
4286
- * @description Returns a single project identified by its URL-encoded slug within the specified team.
4285
+ * Get project by slug or ID
4286
+ * @description Returns a single project within the specified team, identified by its
4287
+ * URL-encoded slug. When no project has that slug and the value is a UUID,
4288
+ * it is resolved as the project ID instead, so a client that persisted a
4289
+ * project's ID can look it up directly. A slug match always takes
4290
+ * precedence, and a project ID belonging to another team returns 404.
4287
4291
  */
4288
4292
  get: operations["getProject"];
4289
4293
  /**
@@ -14130,7 +14134,10 @@ export interface operations {
14130
14134
  search?: string;
14131
14135
  /** @description Filter by prompt status */
14132
14136
  status?: components["schemas"]["PromptStatus"];
14133
- /** @description Comma-separated list of labels to filter by */
14137
+ /**
14138
+ * @description Comma-separated list of labels to filter by. A resource matches when it carries at least one of the listed labels. At most 25 labels, each at most 50 characters; beyond that the request is rejected with 400.
14139
+ * @example onboarding,api
14140
+ */
14134
14141
  labels?: string;
14135
14142
  /** @description Filter by project ID */
14136
14143
  project_id?: string;
@@ -14161,6 +14168,15 @@ export interface operations {
14161
14168
  "application/json": components["schemas"]["PromptListEnvelope"];
14162
14169
  };
14163
14170
  };
14171
+ /** @description Invalid query parameter (for example an unknown `freshness` or `sort_by` value, or a `labels` filter over the documented limits) */
14172
+ 400: {
14173
+ headers: {
14174
+ [name: string]: unknown;
14175
+ };
14176
+ content: {
14177
+ "application/problem+json": components["schemas"]["ErrorResponse"];
14178
+ };
14179
+ };
14164
14180
  /** @description Unauthorized */
14165
14181
  401: {
14166
14182
  headers: {
@@ -25136,7 +25152,7 @@ export interface operations {
25136
25152
  path: {
25137
25153
  /** @description Team identifier */
25138
25154
  team_id: string;
25139
- /** @description Project slug (URL-encoded) */
25155
+ /** @description Project slug (URL-encoded), or the project ID (UUID) when no project has that slug */
25140
25156
  slug: string;
25141
25157
  };
25142
25158
  cookie?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vibexp/api-client",
3
- "version": "0.70.0",
3
+ "version": "0.72.0",
4
4
  "description": "Typed VibeXP API client generated from the OpenAPI spec (openapi-fetch main entrypoint, axios SDK at ./axios)",
5
5
  "license": "MIT",
6
6
  "repository": {