@deepraxis/sdk 0.1.0-dev.722c0d4 → 0.1.0-dev.9d9e2b6

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.
@@ -11364,6 +11364,50 @@ export const operations = [
11364
11364
  ],
11365
11365
  "query": []
11366
11366
  },
11367
+ {
11368
+ "resource": "organization.feedback",
11369
+ "method": "list",
11370
+ "summary": "List your organization's feedback",
11371
+ "description": "Feedback submitted by your organization, newest first, with phase and unread state. Filter by phase and search titles and message text (case-insensitive). Page with next_page. Requires a valid API key, Console session, or machine token of the organization.",
11372
+ "http": "GET",
11373
+ "path": "/organization/v1/feedback",
11374
+ "streaming": "no",
11375
+ "pagination": false,
11376
+ "pathParams": [],
11377
+ "query": [
11378
+ {
11379
+ "name": "phase",
11380
+ "type": "string",
11381
+ "enum": [
11382
+ "open",
11383
+ "awaiting_customer",
11384
+ "in_progress",
11385
+ "resolved",
11386
+ "closed"
11387
+ ],
11388
+ "required": false,
11389
+ "description": "Only feedback in this phase: open, awaiting_customer, in_progress, resolved or closed; see the phase field of a feedback for what each means."
11390
+ },
11391
+ {
11392
+ "name": "query",
11393
+ "type": "string",
11394
+ "required": false,
11395
+ "description": "Case-insensitive text matched against titles and message bodies."
11396
+ },
11397
+ {
11398
+ "name": "limit",
11399
+ "type": "integer",
11400
+ "required": false,
11401
+ "description": "Items per page, 1 to 100."
11402
+ },
11403
+ {
11404
+ "name": "page",
11405
+ "type": "string",
11406
+ "required": false,
11407
+ "description": "Opaque cursor from next_page of the previous response."
11408
+ }
11409
+ ]
11410
+ },
11367
11411
  {
11368
11412
  "resource": "organization.feedback",
11369
11413
  "method": "create",
@@ -11408,6 +11452,18 @@ export const operations = [
11408
11452
  "required": false,
11409
11453
  "description": "X-Request-Id from the failed response or the related error event ID."
11410
11454
  },
11455
+ {
11456
+ "name": "title",
11457
+ "type": "string",
11458
+ "required": false,
11459
+ "description": "Short summary shown in the feedback list; at most 200 Unicode code points."
11460
+ },
11461
+ {
11462
+ "name": "type",
11463
+ "type": "string",
11464
+ "required": false,
11465
+ "description": "Feedback type key enabled in the help settings, such as issue, suggestion, billing or other. Unknown or disabled keys are rejected with INVALID_PARAMS."
11466
+ },
11411
11467
  {
11412
11468
  "name": "tags",
11413
11469
  "type": "object",
@@ -11440,6 +11496,88 @@ export const operations = [
11440
11496
  ]
11441
11497
  }
11442
11498
  },
11499
+ {
11500
+ "resource": "organization.feedback",
11501
+ "method": "retrieve",
11502
+ "summary": "Get one of your organization's feedback",
11503
+ "description": "Read one feedback submitted by your organization with its current phase and first-response timing. Another organization's feedback answers 404 FEEDBACK_NOT_FOUND exactly like a missing one.",
11504
+ "http": "GET",
11505
+ "path": "/organization/v1/feedback/{id}",
11506
+ "streaming": "no",
11507
+ "pagination": false,
11508
+ "pathParams": [
11509
+ {
11510
+ "name": "id",
11511
+ "sdkName": "id"
11512
+ }
11513
+ ],
11514
+ "query": []
11515
+ },
11516
+ {
11517
+ "resource": "organization.feedback.messages",
11518
+ "method": "list",
11519
+ "summary": "List the messages of a feedback",
11520
+ "description": "The conversation of one feedback in time order: your messages, support replies and system events. Internal support notes are never returned. Page with next_page.",
11521
+ "http": "GET",
11522
+ "path": "/organization/v1/feedback/{id}/messages",
11523
+ "streaming": "no",
11524
+ "pagination": false,
11525
+ "pathParams": [
11526
+ {
11527
+ "name": "id",
11528
+ "sdkName": "id"
11529
+ }
11530
+ ],
11531
+ "query": [
11532
+ {
11533
+ "name": "limit",
11534
+ "type": "integer",
11535
+ "required": false,
11536
+ "description": "Items per page, 1 to 100."
11537
+ },
11538
+ {
11539
+ "name": "page",
11540
+ "type": "string",
11541
+ "required": false,
11542
+ "description": "Opaque cursor from next_page of the previous response."
11543
+ }
11544
+ ]
11545
+ },
11546
+ {
11547
+ "resource": "organization.feedback.messages",
11548
+ "method": "create",
11549
+ "summary": "Reply on a feedback",
11550
+ "description": "Add your message to a feedback conversation, for example to answer a question from support. A reply while the phase is awaiting_customer moves it to in_progress and notifies support.",
11551
+ "http": "POST",
11552
+ "path": "/organization/v1/feedback/{id}/messages",
11553
+ "streaming": "no",
11554
+ "pagination": false,
11555
+ "pathParams": [
11556
+ {
11557
+ "name": "id",
11558
+ "sdkName": "id"
11559
+ }
11560
+ ],
11561
+ "query": [],
11562
+ "body": {
11563
+ "required": true,
11564
+ "fields": [
11565
+ {
11566
+ "name": "body",
11567
+ "type": "string",
11568
+ "required": true,
11569
+ "description": "Markdown text; at most 4096 Unicode code points."
11570
+ },
11571
+ {
11572
+ "name": "attachments",
11573
+ "type": "array",
11574
+ "itemType": "object",
11575
+ "required": false,
11576
+ "description": "Up to five attachments; decoded bytes must not exceed 10 MiB each or 20 MiB in total."
11577
+ }
11578
+ ]
11579
+ }
11580
+ },
11443
11581
  {
11444
11582
  "resource": "organization.usage",
11445
11583
  "method": "list",
@@ -3582,6 +3582,110 @@ export declare function createOrganization(transport: Transport): {
3582
3582
  create: (options: import("./core/transport.js").CallOptions<Types.CreateOrganizationFeedbackData>) => Promise<{
3583
3583
  id: string;
3584
3584
  }>;
3585
+ list: (options?: import("./core/transport.js").CallOptions<Types.ListOrganizationFeedbackData> | undefined) => Promise<{
3586
+ object: "page";
3587
+ data: Array<{
3588
+ object: "feedback";
3589
+ id: string;
3590
+ title?: string | null;
3591
+ type?: string | null;
3592
+ message: string;
3593
+ phase: "open" | "awaiting_customer" | "in_progress" | "resolved" | "closed";
3594
+ status: "unresolved" | "resolved" | "ignored";
3595
+ source: "console" | "api" | "codemode";
3596
+ url?: string | null;
3597
+ first_response_due_time?: string | null;
3598
+ first_response_time?: string | null;
3599
+ last_message_time: string;
3600
+ unread: boolean;
3601
+ create_time: string;
3602
+ update_time: string;
3603
+ attachments: Array<{
3604
+ id?: string;
3605
+ name?: string;
3606
+ content_type?: string;
3607
+ size?: number;
3608
+ create_time?: string;
3609
+ }>;
3610
+ }>;
3611
+ has_more: boolean;
3612
+ next_page: string | null;
3613
+ }>;
3614
+ messages: {
3615
+ create: (options: import("./core/transport.js").CallOptions<Types.CreateOrganizationFeedbackMessageData>) => Promise<{
3616
+ object: "feedback.message";
3617
+ id: string;
3618
+ feedback_id: string;
3619
+ author: {
3620
+ kind?: "customer" | "staff" | "system";
3621
+ };
3622
+ body: string;
3623
+ event?: {
3624
+ type?: "phase_changed" | "assigned";
3625
+ from?: string | null;
3626
+ to?: string | null;
3627
+ } | null;
3628
+ attachments: Array<{
3629
+ id?: string;
3630
+ name?: string;
3631
+ content_type?: string;
3632
+ size?: number;
3633
+ create_time?: string;
3634
+ }>;
3635
+ create_time: string;
3636
+ }>;
3637
+ list: (options: import("./core/transport.js").CallOptions<Types.ListOrganizationFeedbackMessagesData>) => Promise<{
3638
+ object: "page";
3639
+ data: Array<{
3640
+ object: "feedback.message";
3641
+ id: string;
3642
+ feedback_id: string;
3643
+ author: {
3644
+ kind?: "customer" | "staff" | "system";
3645
+ };
3646
+ body: string;
3647
+ event?: {
3648
+ type?: "phase_changed" | "assigned";
3649
+ from?: string | null;
3650
+ to?: string | null;
3651
+ } | null;
3652
+ attachments: Array<{
3653
+ id?: string;
3654
+ name?: string;
3655
+ content_type?: string;
3656
+ size?: number;
3657
+ create_time?: string;
3658
+ }>;
3659
+ create_time: string;
3660
+ }>;
3661
+ has_more: boolean;
3662
+ next_page: string | null;
3663
+ }>;
3664
+ };
3665
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.GetOrganizationFeedbackData>) => Promise<{
3666
+ object: "feedback";
3667
+ id: string;
3668
+ title?: string | null;
3669
+ type?: string | null;
3670
+ message: string;
3671
+ phase: "open" | "awaiting_customer" | "in_progress" | "resolved" | "closed";
3672
+ status: "unresolved" | "resolved" | "ignored";
3673
+ source: "console" | "api" | "codemode";
3674
+ url?: string | null;
3675
+ first_response_due_time?: string | null;
3676
+ first_response_time?: string | null;
3677
+ last_message_time: string;
3678
+ unread: boolean;
3679
+ create_time: string;
3680
+ update_time: string;
3681
+ attachments: Array<{
3682
+ id?: string;
3683
+ name?: string;
3684
+ content_type?: string;
3685
+ size?: number;
3686
+ create_time?: string;
3687
+ }>;
3688
+ }>;
3585
3689
  };
3586
3690
  usage: {
3587
3691
  list: (options: import("./core/transport.js").CallOptions<Types.ListOrganizationUsageData>) => Promise<{
@@ -571,6 +571,12 @@ export function createOrganization(transport) {
571
571
  },
572
572
  feedback: {
573
573
  create: bind(transport, sdk.createOrganizationFeedback),
574
+ list: bind(transport, sdk.listOrganizationFeedback),
575
+ messages: {
576
+ create: bind(transport, sdk.createOrganizationFeedbackMessage),
577
+ list: bind(transport, sdk.listOrganizationFeedbackMessages),
578
+ },
579
+ retrieve: bind(transport, sdk.getOrganizationFeedback),
574
580
  },
575
581
  usage: {
576
582
  list: bind(transport, sdk.listOrganizationUsage),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepraxis/sdk",
3
- "version": "0.1.0-dev.722c0d4",
3
+ "version": "0.1.0-dev.9d9e2b6",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "exports": {